/* ─────────────────────────────────────────────────────────────
   Forward First design system
   Feel: a calm, well-informed friend. Editorial, warm, unhurried.
   Built for people in their 60s-80s first: large type, strong
   contrast, big tap targets, one clear action per screen, words
   over icons, no jargon.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format('woff2');
}

:root {
  /* Surfaces: warm paper, not clinical white */
  --paper: #f6f3ec;
  --surface: #ffffff;
  --sunk: #efebe2;
  --line: #e2ddd1;
  --line-strong: #cfc8b8;

  /* Ink */
  --ink: #16213a;
  --ink-2: #4a5468;
  --ink-3: #6f7789;

  /* Brand */
  --navy: #16213a;
  --brass: #a8843a;
  --brass-soft: #f1e7d0;

  /* Verdicts (text on tint passes WCAG AA) */
  --danger: #a3261b;   --danger-tint: #fbe9e6;
  --caution: #9a5200;  --caution-tint: #fcefdc;
  --unclear: #48546a;  --unclear-tint: #eceff4;
  --clear: #2c6a4a;    --clear-tint: #e4f2ea;
  --info: #2f5a8a;     --info-tint: #e7eff8;

  --wa: #1fae5b;

  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(22, 33, 58, .06), 0 4px 16px rgba(22, 33, 58, .05);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10141d; --surface: #181e2b; --sunk: #131925; --line: #283043; --line-strong: #364056;
    --ink: #eef1f6; --ink-2: #b4bccb; --ink-3: #8a93a6;
    --navy: #eef1f6; --brass: #c9a55a; --brass-soft: #2c2719;
    --danger: #ff9d90; --danger-tint: #3a1c1a; --caution: #f6b968; --caution-tint: #36260f;
    --unclear: #c3cbda; --unclear-tint: #222a39; --clear: #8fd3ad; --clear-tint: #15291f; --info: #9cc2ec; --info-tint: #17253a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
p { margin: 0 0 12px; } p:last-child { margin-bottom: 0; }
b, strong { font-weight: 650; }

/* ── Layout ── */
.page { max-width: 600px; margin: 0 auto; padding: 0 20px 64px; }
.page.wide { max-width: 880px; }
.section { margin-top: 40px; }
.stack > * + * { margin-top: 12px; }

/* ── Top bar ── */
.topbar { display: flex; align-items: center; gap: 10px; padding: max(14px, env(safe-area-inset-top)) 0 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 30px; height: 30px; }
.logo span { font: 600 22px/1 var(--serif); letter-spacing: -.01em; }
.topbar .spacer { flex: 1; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 550; }

/* ── Type ── */
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.display { font: 600 clamp(34px, 9vw, 46px)/1.08 var(--serif); letter-spacing: -.02em; margin: 8px 0 14px; font-variation-settings: 'opsz' 96; }
h1, .h1 { font: 600 30px/1.15 var(--serif); letter-spacing: -.015em; margin: 6px 0 12px; }
h2, .h2 { font: 600 23px/1.25 var(--serif); letter-spacing: -.01em; margin: 0 0 10px; }
h3, .h3 { font-size: 18px; font-weight: 650; margin: 0 0 6px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0 0 22px; }
.muted { color: var(--ink-2); } .small { font-size: 15px; } .tiny { font-size: 13px; color: var(--ink-3); }

/* ── Cards ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card.sunk { background: var(--sunk); box-shadow: none; }
.card.feature { border-color: transparent; background: var(--navy); color: var(--paper); }
@media (prefers-color-scheme: dark) { .card.feature { background: #222c42; color: var(--ink); } }

/* ── Buttons: big, full width, one primary per screen ── */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 22px; border-radius: 999px; border: 0; font: 650 18px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .08s ease, filter .15s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.985); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn + .btn { margin-top: 10px; }
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-quiet { background: transparent; color: var(--ink); min-height: 48px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .btn-row .btn + .btn { margin: 0; }

/* ── Verdict: the one thing people must see ── */
.verdict { border-radius: var(--r-lg); padding: 20px 22px; background: var(--unclear-tint); color: var(--unclear); }
.verdict .tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.verdict .tag svg { width: 20px; height: 20px; }
.verdict .say { font: 600 25px/1.25 var(--serif); color: var(--ink); margin: 10px 0 0; letter-spacing: -.01em; }
.verdict.danger { background: var(--danger-tint); color: var(--danger); }
.verdict.caution { background: var(--caution-tint); color: var(--caution); }
.verdict.clear { background: var(--clear-tint); color: var(--clear); }
.verdict.info { background: var(--info-tint); color: var(--info); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .03em; background: var(--unclear-tint); color: var(--unclear); }
.pill.danger { background: var(--danger-tint); color: var(--danger); } .pill.caution { background: var(--caution-tint); color: var(--caution); }
.pill.clear { background: var(--clear-tint); color: var(--clear); } .pill.info { background: var(--info-tint); color: var(--info); }

/* ── Numbered steps ── */
.steps { list-style: none; padding: 0; margin: 4px 0 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding-left: 46px; margin: 0 0 16px; min-height: 32px; }
.steps > li:last-child { margin-bottom: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--brass-soft); color: var(--brass); font: 700 16px/32px var(--sans); text-align: center; }

/* ── Lists with icons ── */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; padding-top: 0; } .rows > li:last-child { padding-bottom: 0; }
.ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brass-soft); color: var(--brass); }
.ico svg { width: 22px; height: 22px; }

/* ── Quote / example ── */
.quote { background: var(--sunk); border-radius: var(--r); padding: 14px 16px; font-size: 16px; line-height: 1.5; color: var(--ink); border-left: 3px solid var(--line-strong); }

/* ── Forms ── */
label.field { display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; }
input[type=text], input[type=password], input[type=email], textarea { width: 100%; min-height: 52px; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink); font: 18px/1.45 var(--sans); }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }

/* ── Footer ── */
.foot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); }
.foot a { color: var(--ink-2); }
.promise { display: grid; gap: 10px; }
.promise div { display: flex; gap: 10px; align-items: flex-start; }
.promise svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--clear); }

.hidden, [hidden] { display: none !important; }
