/* FIRE: Retirement Calculator — marketing site.
   Design language mirrors the iOS app and the sibling goniometer.io site:
   emerald accent, near-black hero, restrained cards, real light + dark support. */
:root {
  --accent: #1a9f5a;
  --accent-bright: #58d996;
  --accent-ink: #ffffff;
  --hero-bg: #12211b;        /* the app icon's ground */
  --hero-fg: #f4f7f5;
  --hero-fg-dim: #a9c3b6;
  --hero-line: rgba(255,255,255,.12);
  --bg: #f6f7f6;
  --bg2: #eef1ef;            /* alternating section band */
  --surface: #ffffff;
  --ink: #16201b;
  --ink-dim: #5c6b63;
  --faint: #7c8a82;
  --line: #e3e7e4;
  /* FAQ accordion: barely-there box so items read as a clean list, not hard
     outlines — mirrors goniometer's translucent --card/--line treatment.
     Light: subtle dark overlay; dark (below): goniometer's exact white overlay. */
  --faq-fill: rgba(0,0,0,.02);
  --faq-line: rgba(0,0,0,.08);
  /* Related-guide pills: goniometer's .related pill fill is a hair lighter than
     its FAQ fill (.02 vs .035), so give the pills their own token. */
  --pill-fill: rgba(0,0,0,.02);
  --star: #ffc14d;           /* review-star gold (matches goniometer.io) */
  /* Desktop QR card: goniometer's white card sits on a dark header, so its edge is
     the shadow alone (.45). On FIRE's light header a white card needs a hairline
     edge and a lighter shadow; dark mode restores goniometer's exact values. */
  --qr-edge: var(--line);
  --qr-shadow: 0 18px 40px rgba(22,32,27,.16);
  --radius: 18px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1310;
    --bg2: #10171300;        /* transparent — band drawn with --surface instead */
    --surface: #161d18;
    --ink: #eef2ef;
    --ink-dim: #9fb0a6;
    --faint: #7f9187;
    --line: #26302a;
    --faq-fill: rgba(255,255,255,.035);   /* goniometer.io exact */
    --faq-line: rgba(255,255,255,.09);     /* goniometer.io exact */
    --pill-fill: rgba(255,255,255,.02);    /* goniometer.io .related pill fill */
    --qr-edge: transparent;                /* goniometer.io exact: shadow only */
    --qr-shadow: 0 18px 40px rgba(0,0,0,.45);
  }
  /* Ambient radial glow behind the page, mirroring goniometer's dark treatment
     (emerald instead of indigo). Dark mode only — light mode stays flat, as
     goniometer has no light theme to copy. On the homepage the solid hero band
     covers the top glow; on sub-pages (no hero band) it shows like goniometer's. */
  body {
    background:
      radial-gradient(1200px 700px at 80% -10%, rgba(26,159,90,.13), transparent 60%),
      radial-gradient(900px 600px at -10% 8%, rgba(26,159,90,.07), transparent 55%),
      var(--bg);
    background-attachment: fixed;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.accent { color: var(--accent); }

/* A11y: skip link + visible keyboard focus */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent);
  color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Header — sticky, blurred, matches goniometer.io */
.site-head { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(12px); background: color-mix(in srgb, var(--bg) 78%, transparent); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); font-size: 16px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--ink-dim); font-weight: 600; font-size: 14px; }
.nav-link:hover { color: var(--ink); text-decoration: none; }
.nav-cta { font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  background: var(--accent); color: #fff; white-space: nowrap; }
.nav-cta:hover { filter: brightness(1.06); text-decoration: none; }
@media (max-width: 430px) { .brand span { display: none; } .nav-right { gap: 14px; } .nav-wide { display: none; } }
/* Desktop QR handoff (mirrors goniometer.io, 2026-10-02; CAMPAIGN-LINKS.md). A desktop click on an App Store
   link can't install an iPhone app, so on a mouse-and-keyboard screen the header button opens a code to scan,
   and sub-page callouts, the home hero/CTA band and /pro show one. Phones see none of it. Each code carries
   its page's own ct=web-qr-* token. Geometry = goniometer's legal.css; colors = this palette. */
.nav-get { position: relative; display: inline-flex; }
.nav-qr, .hero-qr, .box-qr { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav-qr { position: absolute; right: 0; top: 100%; padding-top: 10px; z-index: 60; }
  .nav-get:hover .nav-qr, .nav-get:focus-within .nav-qr { display: block; }
  .qr-card { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 184px; padding: 14px;
    background: #fff; border: 1px solid var(--qr-edge); border-radius: 14px; box-shadow: var(--qr-shadow);
    color: #16201b; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; }
  .qr-card img { width: 148px; height: 148px; display: block; }
  /* On the dark hero / CTA band (dark in both themes). */
  .hero-qr { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
  .hero-qr img { width: 132px; height: 132px; display: block; background: #fff; border-radius: 12px; padding: 8px; }
  .hero-qr span { color: var(--hero-fg-dim); font-size: 14px; max-width: 24ch; }
  .hero-qr b { color: var(--hero-fg); }
  .hero-qr.center { justify-content: center; text-align: left; }
  /* Inside a sub-page's closing .callout. */
  .box-qr { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
  .box-qr img { width: 128px; height: 128px; display: block; border-radius: 10px; }
  .box-qr span { color: var(--ink-dim); font-size: 14px; max-width: 30ch; }
  .box-qr b { color: var(--ink); }
}
/* A narrow desktop window stacks and centers the home hero (the .hero-grid ≤860 rule); keep the code with it. */
@media (hover: hover) and (pointer: fine) and (max-width: 860px) {
  .hero-grid .hero-qr { justify-content: center; text-align: left; }
}

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-fg); padding: 64px 0 40px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-bright); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; margin: 0; }
.hero h1 .accent { color: var(--accent-bright); }
.hero p { color: var(--hero-fg-dim); font-size: clamp(17px, 2.6vw, 20px); max-width: 620px; margin: 0 auto 30px; }
.hero .cta-row { justify-content: center; }
.hero-note { color: var(--hero-fg-dim); font-size: 13px; margin: 18px auto 0; max-width: 560px; }

/* Two-column hero (mirrors goniometer.io): copy left, app screenshot right.
   These .hero-grid rules out-specify .hero p / .hero .cta-row so the note is
   small and the layout is left-aligned. */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; text-align: left; }
.hero-grid .sub { color: var(--hero-fg-dim); font-size: clamp(16px, 2.2vw, 20px); max-width: 46ch; margin: 18px 0 28px; }
.hero-grid .cta-row { justify-content: flex-start; }
.hero-grid .hero-note { font-size: 13px; margin: 16px 0 0; max-width: 54ch; }
.hero-shot { justify-self: center; width: 100%; max-width: 300px; aspect-ratio: 620 / 1342;
  border-radius: 22px; border: 1px solid var(--hero-line); filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; justify-items: center; }
  .hero-grid .sub { margin-left: auto; margin-right: auto; }
  .hero-grid .cta-row { justify-content: center; }
  .hero-grid .hero-note { margin-left: auto; margin-right: auto; }
  .hero-shot { order: 2; max-width: 240px; }
}
/* Single-column hero (goniometer.io/pro pattern): left-aligned, no screenshot. */
.hero-single { text-align: left; }
/* goniometer's /pro hero headline caps at 54 (smaller than the home hero's 58). */
.hero-single h1 { font-size: clamp(34px, 5vw, 54px); }
.hero-single .sub { color: var(--hero-fg-dim); font-size: clamp(16px, 2.2vw, 20px); max-width: 60ch; margin: 18px 0 28px; }
.hero-single .cta-row { justify-content: flex-start; }
.hero-single .hero-note { margin: 16px 0 0; max-width: 54ch; }

/* Trust strip under the hero (mirrors goniometer.io's authority band:
   full-width top+bottom rule, a single left-aligned stacked column) */
.trust { border-top: 1px solid var(--hero-line); border-bottom: 1px solid var(--hero-line);
  margin-top: 24px; padding: 22px 0; }
.trust-in { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.trust p { margin: 0; color: var(--hero-fg-dim); font-size: 15px; line-height: 1.5; }
.trust p b { color: var(--hero-fg); font-weight: 600; }
.trust a { color: var(--accent-bright); font-weight: 600; }

/* App Store badge + buttons */
.cta-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
/* Spacing modifiers that used to be inline style="" attributes (moved here so the
   CSP can be style-src 'self' with no 'unsafe-inline'). Values unchanged. */
.cta-row.after-calc { margin-top: 22px; }
.cta-row.reviews-cta { justify-content: center; margin-top: 34px; }
.faint { color: var(--faint); }
.appstore { display: inline-flex; align-items: center; gap: 11px; background: #000;
  border: 1px solid rgba(255,255,255,.22); border-radius: 13px; padding: 10px 16px; }
.appstore:hover { border-color: rgba(255,255,255,.5); text-decoration: none; }
.appstore svg { width: 26px; height: 26px; fill: #fff; }
.appstore .t { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore .t small { font-size: 11px; color: #cfd7d2; }
.appstore .t strong { font-size: 18px; font-weight: 600; letter-spacing: .01em; color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--hero-fg); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,.55); text-decoration: none; }

/* Sections */
section { padding: 64px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 46ch; margin-bottom: 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin: 0 0 12px; }
.sec-head p { color: var(--ink-dim); font-size: 17px; margin: 0; }

/* Calculator card */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.calc .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 560px) { .calc .grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-dim); }
.field .hint { font-size: 12px; color: var(--faint); font-weight: 500; }
.field input, .field select {
  font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field.span-2 { grid-column: 1 / -1; }
/* Money field + per-year/per-month unit (the app's v1.3.0 entry). */
.unit-input { display: flex; gap: 8px; }
.unit-input input { flex: 1 1 auto; min-width: 0; }
.field .unit-input select.unit { flex: 0 0 auto; width: auto; padding-right: 8px; font-size: 15px; }
.toggle-row { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 14px; color: var(--ink-dim); }
.toggle-row input { accent-color: var(--accent); width: 16px; height: 16px; }
.real-note { display: block; font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 2px; }

/* Result panel */
.result { margin-top: 24px; background: var(--hero-bg); color: var(--hero-fg); border-radius: var(--radius); padding: 26px; text-align: center; }
.result .num { font-size: clamp(34px, 8vw, 50px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.result .sub { color: var(--hero-fg-dim); font-size: 14px; margin-top: 8px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.result .cd { display: flex; justify-content: center; gap: 30px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hero-line); flex-wrap: wrap; }
.result .cd .k { font-size: 22px; font-weight: 700; }
.result .cd .l { font-size: 12px; color: var(--hero-fg-dim); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.result .r-cta { font-size: 14px; line-height: 1.5; color: var(--hero-fg-dim); margin: 20px auto 0; padding-top: 18px; border-top: 1px solid var(--hero-line); max-width: 50ch; }
/* Result chart inside the (always dark) result card: balance vs the target (a
   flat FIRE number, or Coast's rising coast number), drawn by calc.js as inline SVG. FIRE-only component (goniometer
   has no calculator); colors come from the hero tokens so it reads the same in
   light and dark mode. */
.result .r-chart { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--hero-line); }
.r-chart .r-legend { display: flex; justify-content: center; gap: 6px 16px; flex-wrap: wrap; font-size: 12px; color: var(--hero-fg-dim); margin-bottom: 10px; }
.r-chart .r-legend span { display: inline-flex; align-items: center; gap: 7px; }
.r-chart .sw { display: inline-block; width: 18px; border-top: 2.5px solid var(--accent-bright); }
.r-chart .sw-coast { border-top: 2px dashed var(--hero-fg-dim); }
.r-chart .sw-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-bright); }
/* Phones: let the chart use the card's side padding, since every pixel of plot counts. */
@media (max-width: 560px) { .result .r-chart { margin-left: -16px; margin-right: -16px; } }
.r-chart-plot { display: block; width: 100%; height: auto; overflow: visible; }
.r-chart-plot text { font-family: var(--font); font-size: 12px; }
.r-chart-plot .rc-tick { fill: var(--hero-fg-dim); }
.r-chart-plot .rc-label { fill: var(--hero-fg); font-weight: 600; }
.r-chart-plot .rc-flag { fill: var(--accent-bright); }
.r-chart-plot .rc-target { fill: var(--hero-fg-dim); }
.r-chart-plot .rc-grid { stroke: var(--hero-line); stroke-width: 1; }
.r-chart-plot .rc-coast { fill: none; stroke: var(--hero-fg-dim); stroke-width: 2; stroke-dasharray: 5 5; }
.r-chart-plot .rc-bal { fill: none; stroke: var(--accent-bright); stroke-width: 2.5; stroke-linejoin: round; }
.r-chart-plot .rc-guide { stroke: var(--accent-bright); stroke-width: 1; stroke-dasharray: 2 4; opacity: .7; }
.r-chart-plot .rc-dot { fill: var(--accent-bright); stroke: var(--hero-bg); stroke-width: 3; }
.r-chart-plot .rc-end { fill: var(--hero-fg); }
.r-chart figcaption { font-size: 13px; line-height: 1.5; color: var(--hero-fg-dim); max-width: 52ch; margin: 12px auto 0; }
/* App Store badge at the result reveal, so the tap target is at the a-ha moment
   and not only below the form. Compact (.sm) variant of the shared badge. */
.result .r-actions { display: flex; justify-content: center; margin-top: 16px; }
.appstore.sm { padding: 8px 14px; gap: 9px; border-radius: 12px; }
.appstore.sm svg { width: 20px; height: 20px; }
.appstore.sm .t small { font-size: 10px; }
.appstore.sm .t strong { font-size: 15px; }

/* Feature cards with icon tiles */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.band .feature { background: var(--bg); }
.feature .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent); margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; font-weight: 700; margin: 0 0 7px; }
.feature p { margin: 0; color: var(--ink-dim); font-size: 15px; }
a.feature { transition: border-color .15s ease, box-shadow .15s ease; }
a.feature:hover { border-color: var(--accent); text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.06); }

/* Numbered how-to steps (matches goniometer.io/pro's .steps/.step exactly;
   emerald tint + light/dark theme are the only differences). */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent-bright); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.step p { color: var(--ink-dim); font-size: 15px; margin: 0; }
.band .step { background: var(--bg); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Screenshot gallery — horizontal scroll-snap carousel (matches goniometer.io) */
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 6px 0 26px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery img { height: 520px; width: auto; aspect-ratio: 620 / 1342; border-radius: 22px;
  scroll-snap-align: center; flex: 0 0 auto; border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0,0,0,.12); background: var(--hero-bg); }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 8px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 560px) { section { padding: 48px 0; } .gallery img { height: 440px; } }

/* Guide pill links */
.links { display: flex; flex-wrap: wrap; gap: 12px; }
.links a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; color: var(--ink); font-size: 15px; font-weight: 500; }
.band .links a { background: var(--bg); }
.links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
/* Sub-page/guide related-guide pills match goniometer's subtle .related pills
   (14px, weight 400, muted text, .02 translucent fill + translucent .09 border,
   container margin 6px 0 10px); homepage guide strip keeps .links above. */
.subpage .links { gap: 10px; margin: 6px 0 10px; }
.subpage .links a { font-size: 14px; font-weight: 400; padding: 8px 14px; color: var(--ink-dim);
  background: var(--pill-fill); border-color: var(--faq-line); }
.subpage .links a:hover { border-color: var(--accent); color: var(--ink); }

/* FAQ accordion — matches goniometer.io */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--faq-fill); border: 1px solid var(--faq-line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-dim); margin: 0 0 18px; font-size: 15px; line-height: 1.6; }
/* Sub-page/guide FAQ = divider-only (no box), matching goniometer's article FAQ
   (its guide inline style: `.faq details{border-bottom:1px solid var(--line);padding:2px 0}`).
   The homepage keeps the boxed treatment above. */
.subpage .faq { display: block; max-width: none; }
.subpage .faq details { background: none; border: none; border-bottom: 1px solid var(--faq-line); border-radius: 0; padding: 2px 0; }
.subpage .faq summary { padding: 15px 0; }
.subpage .faq details p { margin: 0 0 15px; }

/* Disclaimer + CTA band */
.disclaimer { font-size: 13px; color: var(--ink-dim); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; margin-top: 26px; }
/* Trust-closer under the App Store CTA at the calculator a-ha moment (the privacy
   wedge the market audit calls for). FIRE-only; goniometer has no calculator. */
.cta-trust { text-align: center; margin: 12px 0 0; font-size: 14px; color: var(--ink-dim); }
.cta-band { text-align: center; background: var(--hero-bg); color: var(--hero-fg); }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin: 0 0 10px; }
.cta-band p { color: var(--hero-fg-dim); margin: 0 0 26px; }
.cta-band .cta-row { justify-content: center; }

/* Sub-pages (about, privacy, support, guides, Pro, hub) — goniometer's plain
   header pattern: a narrow 760px column with the h1 directly on the body (no
   hero band, no visible breadcrumb), a small .updated meta/byline line, then
   content. Full-width interactive bands (calculator, CTA) sit between .subpage
   blocks. Type scale matches goniometer's legal.css (h1 30–42, h2 20, lead 18). */
/* No top padding: goniometer's sub-page <main class="wrap"> zeroes its own top
   padding, so its h1 sits right under the nav (~65px). Match that; the 54px we
   had put every FIRE header 54px lower. Full-width bands carry their own 64px. */
.subpage { max-width: 760px; margin: 0 auto; padding: 0 22px 40px; line-height: 1.6; }
.subpage h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.6; margin: 0 0 6px; }
.subpage .updated { color: var(--faint); font-size: 14px; margin: 0 0 8px; }
.subpage .updated a { color: var(--accent); font-weight: 600; }
.subpage .lead { color: var(--ink); font-size: 18px; line-height: 1.6; margin: 18px 0 8px; max-width: 68ch; }
.subpage h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.6; margin: 34px 0 8px; }
.subpage h2.es-title { font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin: 10px 0 16px; }
.subpage h3 { font-size: 18px; font-weight: 700; line-height: 1.6; margin: 26px 0 8px; }
.subpage p { color: var(--ink-dim); margin: 0 0 14px; max-width: 68ch; }
.subpage ul, .subpage ol { color: var(--ink-dim); margin: 0 0 14px; padding-left: 22px; max-width: 68ch; }
/* Legal pages (privacy/support) run full-width like goniometer's legal.css
   (its 68ch cap is guide/about-only, not on legal pages). */
.subpage.legal p, .subpage.legal ul, .subpage.legal ol, .subpage.legal .lead { max-width: none; }
.subpage li { margin: 0 0 8px; }
.subpage li::marker { color: var(--accent); }
.subpage strong { font-weight: 700; }
/* References — mirrors goniometer.io's .refs (faint, small, academic-style list). */
.subpage .refs { color: var(--faint); font-size: 14px; line-height: 1.55; }
.subpage .refs li { color: var(--faint); margin: 0 0 10px; }
.subpage .refs li::marker { color: var(--faint); }
.subpage .refs a { color: var(--faint); text-decoration: underline; }
.subpage .refs a:hover { color: var(--ink); }
.subpage sup { font-size: .72em; }
.subpage a { font-weight: 600; }
.subpage hr.lang-rule { border: none; border-top: 1px solid var(--line); margin: 48px 0 8px; }
/* Honest developer-disclosure box on the app-intent pages (mirrors
   goniometer.io/best-goniometer-app's .disclosure): muted, subtle, bordered. */
.disclosure { color: var(--faint); font-size: 14px; line-height: 1.6; max-width: 68ch;
  border: 1px solid var(--line); border-radius: 14px; background: var(--faq-fill);
  padding: 14px 18px; margin: 0 0 22px; }
.disclosure strong { color: var(--ink-dim); }
.disclosure a { color: var(--accent); font-weight: 600; }

/* Product figure (widget screenshots on the widget page): matches the site's
   phone-shot treatment — rounded, bordered, soft shadow — a content figure. */
.wshot { margin: 26px 0; text-align: center; }
.wshot img { width: 100%; max-width: 560px; height: auto; border-radius: 22px;
  border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(0,0,0,.18); }
.wshot figcaption { font-size: 13px; line-height: 1.6; color: var(--ink-dim);
  margin-top: 12px; max-width: 60ch; margin-left: auto; margin-right: auto; }
.wshot-phone img { max-width: 288px; box-shadow: 0 16px 44px rgba(0,0,0,.24); }

/* Comparison table inside a guide (its own horizontal-scroll container). */
.subpage .twrap { overflow-x: auto; margin: 22px 0; }
.subpage table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.subpage th, .subpage td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.subpage thead th { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line); }
.subpage tbody th { font-weight: 600; color: var(--ink-dim); white-space: nowrap; }

/* Guide/resource cards — goniometer.io/guides `.gcard`: eyebrow + title + `›` arrow.
   Placed AFTER .subpage so `.gcard h2`/`.gcard p` win over `.subpage h2`/`.subpage p`
   when the guides hub nests its cards inside .subpage (goniometer's 760 column, 1.6
   leading). Geometry/type mirror goniometer exactly (radius 16, padding 22/24, gap 18,
   margin 28/0/10, h2 19/700/-.01em/1.6, eyebrow 12/.1em, p 15/1.6, `›` top20/right22/22).
   Only allowed differences: opaque --surface fill (light theme) and emerald vs indigo. */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0 10px; }
.gcard { display: block; position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 24px; transition: border-color .15s, transform .15s; }
.gcard:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.gcard::after { content: "\203A"; position: absolute; top: 20px; right: 22px; color: var(--accent);
  font-size: 22px; line-height: 1; opacity: .6; transition: opacity .15s, transform .15s; }
.gcard:hover::after { opacity: 1; transform: translateX(2px); }
.gcard .eyebrow { display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.gcard h2 { font-size: 19px; font-weight: 700; line-height: 1.6; color: var(--ink); margin: 0 0 8px; letter-spacing: -.01em; padding-right: 22px; }
.gcard p { color: var(--ink-dim); font-size: 15px; line-height: 1.6; margin: 0; max-width: none; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Intro line under a section head (calculator, hub) */
.lead { color: var(--ink-dim); font-size: 17px; margin: 0 0 22px; max-width: 60ch; }

/* Long-form article prose */
.prose { max-width: 720px; }
.prose.prose-wide { max-width: 760px; }
.prose h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; margin: 40px 0 12px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 9px; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose sup { font-size: .72em; }
.prose a { font-weight: 600; }

/* Key-takeaway / trial callout */
/* Accent-tinted emphasis box — mirrors goniometer's .contact-box / .keyfig treatment
   (tinted fill + tinted border + 14px radius), not a border-left callout. */
.callout { background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 14px;
  padding: 18px 20px; margin: 18px 0; color: var(--ink); font-size: 16px; }
.callout strong { color: var(--ink); }

/* Free-vs-Pro — two side-by-side tier cards (matches goniometer.io/pro's
   layout exactly; emerald palette + light/dark theme are the only differences). */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.tier.pro { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--accent) 3%, transparent));
  border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.tier .price { font-size: 15px; color: var(--accent); font-weight: 600; margin: 4px 0 18px; }
.tier h3 { font-size: 20px; font-weight: 800; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tier li { display: flex; gap: 11px; color: var(--ink); font-size: 15px; }
.tier li.dim { color: var(--ink-dim); }
.tier svg { width: 20px; height: 20px; flex: 0 0 20px; stroke: var(--accent); fill: none; stroke-width: 2; margin-top: 1px; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

/* Pricing card */
.plan { max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.band .plan { background: var(--bg); }
.plan .tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.plan h3 { font-size: 23px; font-weight: 800; margin: 0 0 6px; }
.plan .plan-note { color: var(--ink-dim); font-size: 15px; margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; display: grid; gap: 11px; }
.plan li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 6px; height: 11px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan .cta-row { justify-content: center; }


/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-dim); font-size: 14px; }
/* Sub-pages use goniometer's legal.css footer metrics (34px + 40 top margin);
   the homepage keeps 40px. */
body:has(.subpage) .site-foot { padding: 34px 0; margin-top: 40px; }
.site-foot .foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-foot .brand { color: var(--ink-dim); font-weight: 600; font-size: 15px; }
.site-foot .brand img { width: 26px; height: 26px; }
.site-foot .row { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-dim); }
.site-foot a:hover { color: var(--ink); }
.site-foot .fine { margin-top: 18px; color: var(--faint); font-size: 13px; max-width: 70ch; }

/* Reviews — star ratings + testimonial cards (mirrors goniometer.io) */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: var(--star); }
.hero-rating { display: inline-flex; align-items: center; gap: 9px; }
.rating-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; color: var(--ink-dim); white-space: nowrap; }
.rating-badge b { color: var(--ink); font-weight: 700; }
.rating-badge:hover { border-color: var(--accent); }
.reviews { column-count: 2; column-gap: 18px; }
.review { break-inside: avoid; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin: 0 0 18px; }
.review .stars { margin-bottom: 13px; }
.review h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.review blockquote { margin: 0; color: var(--ink-dim); font-size: 15px; line-height: 1.6; }
.review .who { margin-top: 15px; color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: .01em; }
@media (max-width: 760px) { .reviews { column-count: 1; } }
