/* FlipPilot's public pages (home, privacy, terms, delete account). Plain CSS, no outside fonts or scripts. */

:root {
  --navy: #0a1128;
  --navy-2: #131d42;
  --gold: #e3b52a;
  --gold-light: #f6dc86;
  --paper: #fbf9f4;
  --card: #ffffff;
  --ink: #141a2e;
  --muted: #5a6277;
  --line: #e7dfca;
  --link: #8a6400;
  --shadow: 0 1px 2px rgba(10, 17, 40, 0.06), 0 8px 24px rgba(10, 17, 40, 0.06);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1430;
    --card: #131c3f;
    --ink: #e9edf8;
    --muted: #a6b0cc;
    --line: #27325c;
    --link: #f0c94f;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  overflow-wrap: break-word;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.top {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  border-bottom: 3px solid var(--gold);
}
.top .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.brand span {
  font: 700 22px/1 var(--serif); letter-spacing: 0.2px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.top nav a { color: #dfe5f5; font-size: 15px; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* ---------- page ---------- */
main { padding: 36px 0 56px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 40px); margin: 0 0 6px; }
h2 { font-size: 24px; margin: 40px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 18px; margin: 24px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.lede { font-size: 19px; color: var(--ink); max-width: 62ch; }

.summary {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 18px 22px; margin: 22px 0 8px; box-shadow: var(--shadow);
}
.summary h2 { font-size: 19px; border: 0; margin: 0 0 8px; padding: 0; }
.summary ul { margin: 0; padding-left: 20px; }

.note {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin: 16px 0; color: var(--muted); font-size: 16px;
}

/* The data table: a table on a wide screen, and on a phone each row becomes its own card, headed by its first cell, with the column names written in front of the other three. */
.tablewrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15.5px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: rgba(227, 181, 42, 0.12); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; min-width: 150px; }

@media (max-width: 760px) {
  .tablewrap { overflow: visible; border: 0; background: none; margin: 8px 0 16px; }
  table, tbody, tr, td { display: block; }
  table { min-width: 0; font-size: 16px; }
  /* the column names stay for screen readers, and each card carries them in front of its cells */
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; padding: 4px 0; box-shadow: var(--shadow); }
  td { border: 0; padding: 6px 16px; min-width: 0; }
  td:first-child { font-size: 17px; padding-top: 12px; min-width: 0; }
  td:not(:first-child)::before {
    content: attr(data-label); display: block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  }
  td:last-child { padding-bottom: 12px; }
}

/* ---------- home ---------- */
.hero { padding: 8px 0 8px; }
.hero h1 { font-size: clamp(34px, 7vw, 52px); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 26px 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 8px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; font-size: 19px; }
.card p { color: var(--muted); font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none;
  color: var(--navy); background: linear-gradient(180deg, var(--gold-light), var(--gold)); border: 1px solid #c79a1a;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); font-weight: 600; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: #b9c3de; font-size: 15px; }
footer .wrap { padding-top: 26px; padding-bottom: 30px; }
footer a { color: var(--gold-light); }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; }
footer p { margin: 0 0 6px; }

@media print {
  .top, footer { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; }
}
