/* Aporo landing · premium scroll story.
   Calm warm-white page, forest type and action, sage stages for product,
   teaching gold only for Apo's marks. Onest everywhere; Patrick Hand only
   inside the whiteboard and the recreated test screen (as in the app). */

@font-face { font-family: "Onest"; src: url("/fonts/Onest-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Aporo Minus"; src: local("Helvetica Neue"), local("HelveticaNeue"), local("Arial"), local("Segoe UI"); unicode-range: U+2212; }
@font-face { font-family: "Patrick Hand"; src: url("/fonts/patrick-hand-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #faf9f5;
  --surface: #ffffff;
  --paper: #fffefa;
  --sage: #edf1e8;
  --sage-2: #e3e9dc;
  --line: #e6e4da;
  --line-2: #d8d6ca;
  --ink: #14211f;
  --ink-2: #2e3b36;
  --muted: #56615b;
  --faint: #7d857f;
  --forest: #1e3a31;
  --forest-hover: #2b4f43;
  --on-forest: #f6f4ec;
  --on-forest-muted: #bccabf;
  --gold: #d8a84f;
  --gold-deep: #b8862f;
  --gold-ink: #7d5a12;
  --butter: #f2c75c;
  --butter-hover: #e9b944;
  --success: #2f6a4c;
  --copper: #8f402d;
  --copper-tint: #f6e7de;
  --hl: rgba(242, 199, 92, .45);
  --shadow-window: 0 1px 2px rgba(20, 33, 31, .05), 0 28px 60px -30px rgba(20, 33, 31, .32);
  --shadow-float: 0 8px 24px -10px rgba(20, 33, 31, .35);
  --sans: "Aporo Minus", "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Patrick Hand", "Segoe Print", cursive;
  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --bar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: proportional-nums; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 560; text-wrap: balance; color: var(--ink); }
p, dd { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--hl); }
:focus-visible { outline: 2.5px solid var(--forest); outline-offset: 3px; border-radius: 8px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--forest); color: var(--on-forest); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px 0 22px; border-radius: 12px; background: var(--forest); color: var(--on-forest); font: 600 16px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.btn svg { width: 19px; height: 19px; transition: transform .3s var(--ease); }
.btn:hover { background: var(--forest-hover); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 24px 0 26px; font-size: 17px; border-radius: 14px; }
.btn-light { background: var(--butter); color: var(--ink); }
.btn-light:hover { background: var(--butter-hover); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet:hover { background: rgba(20, 33, 31, .05); }
.only-phone { display: none !important; }
@media (hover: none) and (pointer: coarse) {
  .only-computer { display: none !important; }
  .btn.only-phone { display: inline-flex !important; }
  p.only-phone { display: block !important; }
}

/* ---------- Header ---------- */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.bar.is-stuck { background: rgba(250, 249, 245, .95); }
@supports (backdrop-filter: blur(10px)) { .bar.is-stuck { background: rgba(250, 249, 245, .9); backdrop-filter: blur(12px); } }
.bar-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { width: 80px; height: 24px; background: currentColor; -webkit-mask: url("/brand/aporo-hand-drawn-wordmark.png") center / contain no-repeat; mask: url("/brand/aporo-hand-drawn-wordmark.png") center / contain no-repeat; }
.bar-nav { display: flex; gap: 2px; margin-left: auto; }
.bar-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s, background-color .2s; }
.bar-nav a:hover { color: var(--ink); background: rgba(20, 33, 31, .05); }

/* ---------- Hero: the promise beside a finished lesson, a test and the score goal ---------- */
.hero-grid { max-width: calc(var(--wrap) + 2 * var(--gutter)); min-height: calc(100svh - var(--bar-h)); margin: 0 auto; padding: 24px var(--gutter) 72px; display: grid; grid-template-columns: minmax(0, 4.3fr) minmax(0, 7.7fr); gap: clamp(36px, 4.5vw, 80px); align-items: center; }
.hero-visual { position: relative; padding: 34px 0 58px; }
.hv-shot .stage { box-shadow: var(--shadow-window); }
.hv-shot .beats { display: none; }
/* The score card overlaps the board's foot; give it blank paper there, not Apo's reply. */
@media (min-width: 901px) { .hv-shot .cam { padding-bottom: 3.4em; } }
.hv-test, .hv-score { position: absolute; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-window); }
.hv-test { top: 0; right: clamp(-28px, -2vw, -8px); width: 236px; padding: 14px 16px 16px; }
.hv-test-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.hv-clock { color: var(--ink); font-variant-numeric: tabular-nums; }
.hv-test-q { margin-top: 6px; font: 400 21px/1.2 var(--hand); }
.hv-nav { margin-top: 12px; display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.hv-nav li { position: relative; aspect-ratio: 1; border: 1px dashed var(--line-2); border-radius: 4px; }
.hv-nav .done { border: 0; background: var(--forest); }
.hv-nav .is-now { border: 1.5px solid var(--forest); }
.hv-nav .is-marked::after { content: ""; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1.5px var(--surface); }
.hv-score { left: clamp(-28px, -2vw, -8px); bottom: 0; width: 372px; padding: 16px 22px 18px; }
.hv-score-t { color: var(--muted); font-size: 13px; font-weight: 650; }
.hv-score-row { margin-top: 6px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; }
.hv-from, .hv-to { position: relative; display: grid; }
.hv-from b, .hv-to b { font-size: 34px; font-weight: 520; line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hv-from b { color: var(--faint); }
.hv-to b { font-size: 44px; color: var(--forest); }
.hv-from > span, .hv-to > span { color: var(--muted); font-size: 12.5px; font-weight: 550; }
.hv-arrow { width: 100%; max-width: 82px; height: 34px; justify-self: center; overflow: visible; }
.hv-arrow path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hv-to b { position: relative; }
.hv-ring { position: absolute; left: -14%; top: -20%; width: 128%; height: 140%; max-width: none; overflow: visible; pointer-events: none; }
.hv-ring path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hv-bar { margin-top: 14px; height: 6px; border-radius: 3px; background: var(--sage-2); overflow: hidden; }
.hv-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest) 70%, var(--gold)); transform-origin: left; }
.motion .hv-shot { animation: hv-rise .9s var(--ease) both; }
.motion .hv-test { animation: hv-rise .8s var(--ease) .3s both; }
.motion .hv-score { animation: hv-rise .8s var(--ease) .45s both; }
.motion .hv-arrow path { animation: hv-draw .6s var(--ease) 1s both; }
.motion .hv-arrow path + path { animation-delay: 1.45s; animation-duration: .3s; }
.motion .hv-bar i { animation: hv-fill 1.6s cubic-bezier(.2, .7, .2, 1) 1.2s both; }
.motion .hv-ring path { animation: hv-draw .75s var(--ease) 2.9s both; }
@keyframes hv-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes hv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hv-fill { from { transform: scaleX(.675); } }

.hero h1 { font-size: clamp(40px, 3.8vw, 56px); line-height: 1.04; letter-spacing: -.036em; font-weight: 560; max-width: 12em; }
.lede { margin-top: 24px; max-width: 30em; color: var(--muted); font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-note { margin-top: 14px; color: var(--faint); font-size: 14.5px; }
/* The launch price and its lock-in; it links to the plans and never counts down. */
.offer-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: border-color .2s; }
.offer-pill b { flex: none; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: #f6ecd2; color: var(--gold-ink); font-size: 13px; font-weight: 650; }
.offer-pill svg { width: 16px; height: 16px; color: var(--muted); transition: transform .3s var(--ease); }
.offer-pill:hover { border-color: var(--line-2); }
.offer-pill:hover svg { transform: translateX(3px); }

/* ---------- Story: the lesson is a timeline, scroll is the playhead ---------- */
/* The section is tall and its pin holds the steps and the board in view; story.js
   maps the scroll through it onto the lesson. Each step owns about a screen. */
.story { --pin-h: calc(100svh - var(--bar-h)); --travel: 360svh; position: relative; }
.js .story { height: calc(var(--pin-h) + var(--travel)); }
.story-pin { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 48px var(--gutter); display: grid; grid-template-columns: minmax(0, 4.3fr) minmax(0, 7.7fr); gap: clamp(36px, 4.5vw, 80px); align-items: center; }
.js .story-pin { position: sticky; top: var(--bar-h); height: var(--pin-h); padding-block: 0; }

/* The four steps are one list on a rail; the rail fills as the lesson plays. */
.story-steps { display: grid; }
.step { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 22px; padding-bottom: 30px; }
.step:last-child { padding-bottom: 0; }
.step-copy { min-width: 0; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -3px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); color: var(--faint); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .4s, color .4s, border-color .4s, translate .5s var(--ease); }
.step::before, .step::after { content: ""; position: absolute; left: 15.25px; top: 43px; bottom: 4px; width: 1.5px; border-radius: 1px; }
.step::before { background: var(--line-2); }
.step::after { background: var(--forest); transform: scaleY(var(--fill, 0)); transform-origin: top; }
.step:last-child::before, .step:last-child::after { display: none; }
.step h2 { font-size: clamp(30px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.03em; color: var(--ink); transition: font-size .5s var(--ease), line-height .5s var(--ease), letter-spacing .5s var(--ease), color .4s; }
.step-more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease), opacity .45s var(--ease); }
.step-more > div { min-height: 0; overflow: hidden; margin: 0 -6px; padding: 0 6px 6px; }
.step-more p { margin-top: 14px; max-width: 24em; color: var(--muted); font-size: 18.5px; line-height: 1.55; }
.step .btn { margin-top: 24px; }
.step.is-active .step-n { translate: 0 8px; border-color: var(--forest); background: var(--forest); color: var(--on-forest); }
html:not(.js) .step-n { translate: 0 8px; }
.step.is-done .step-n { border-color: var(--sage-2); background: var(--sage); color: var(--forest); }
/* Steps the lesson hasn't reached, or has passed, fold down to their headline. */
.js .step:not(.is-active) h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.015em; color: var(--faint); }
.js .step.is-done:not(.is-active) h2 { color: var(--muted); }
.js .step:not(.is-active) .step-more { grid-template-rows: 0fr; opacity: 0; }

.story-stage { min-width: 0; }

/* Sage stage: the product sits on it like an object on a table. */
.stage { position: relative; padding: clamp(16px, 2.4vw, 32px); border-radius: 28px; background: var(--sage); }
.stage-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--faint); font-size: 13.5px; }
.stage-ctl { flex: none; min-height: 32px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 550; cursor: pointer; transition: border-color .2s; }
.stage-ctl:hover { border-color: var(--ink-2); }
.stage-ctl[hidden] { display: none; }

/* ---------- The lesson board ---------- */
.board { container-type: inline-size; position: relative; overflow: hidden; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-window); }
.board-bar { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.board-title { color: var(--ink); font-weight: 600; }
.board-topic::before { content: "/"; margin-right: 10px; color: var(--line-2); }
/* Apo's live state, the way the lesson header shows it. */
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 11px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 600; transition: background-color .3s, color .3s, box-shadow .3s; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background-color .3s; }
.status[data-state="live"] i { background: var(--forest); animation: status-pulse 1.3s ease-in-out infinite; }
.status[data-state="think"] i { background: var(--gold); animation: status-pulse .9s ease-in-out infinite; }
.status[data-state="ask"] { background: #fbf3e2; box-shadow: inset 0 0 0 1px #efdcb4; color: var(--gold-ink); }
.status[data-state="ask"] i { background: var(--gold); }
.status[data-state="done"] { background: #edf5ef; box-shadow: inset 0 0 0 1px #cde2d3; color: var(--success); }
.status[data-state="done"] i { background: var(--success); }
@keyframes status-pulse { 50% { transform: scale(.55); opacity: .5; } }
.beats { position: absolute; left: 0; right: 0; bottom: -1px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; height: 2px; }
.beats li { overflow: hidden; }
.beats span { display: block; height: 100%; background: var(--forest); transform: scaleX(0); transform-origin: left; }

/* The board scales by its own width so both columns of working fit, and by the
   screen's height so the whole lesson fits the pin: it stands about 26.4em plus
   its 50px header, and the pin keeps about 250px for the stage and margins. */
.board-page { --grid: #f0efe6; position: relative; overflow: hidden; font-size: clamp(10.5px, min(3.9cqi, (100svh - 252px) / 26.4), 17px); background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 1.6em 1.6em; background-position: -1px -1px; }
.cam { position: relative; padding: 1.4em 1.6em 1.2em; will-change: transform; }

/* The question: an empty box that a snapped photo fills, leaving its thumbnail. */
.b-q { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.1em; min-height: 4.6em; padding: .85em .9em .9em 1.1em; border-radius: .8em; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(20, 33, 31, .04); }
.q-text, .q-empty { grid-area: 1 / 1; }
.q-text { max-width: 30em; font-size: 1.1em; line-height: 1.42; color: var(--ink-2); }
.q-empty { display: flex; align-items: center; gap: .55em; color: var(--faint); font-size: 1.02em; opacity: 0; }
.q-empty svg { flex: none; width: 1.35em; height: 1.35em; }
.q-thumb { grid-area: 1 / 2; position: relative; width: 3.3em; height: 2.5em; border-radius: .3em; background: #fbf8ef; box-shadow: 0 0 0 1px var(--line-2), 0 3px 8px -3px rgba(20, 33, 31, .3); rotate: 4deg; }
.q-thumb::before { content: ""; position: absolute; left: .45em; right: .55em; top: .6em; height: 2px; border-radius: 1px; background: rgba(46, 59, 54, .5); box-shadow: 0 .5em 0 rgba(46, 59, 54, .5), 0 1em 0 rgba(46, 59, 54, .32); }

/* The working: your first try beside your fix, in your own handwriting. */
.work { margin-top: 1.25em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.6em; }
.col { position: relative; min-width: 0; }
.col-fix::before { content: ""; position: absolute; left: -.8em; top: .3em; bottom: .2em; width: 1.5px; background: repeating-linear-gradient(var(--line-2) 0 .35em, transparent .35em .7em); opacity: var(--fix, 1); }
.col-h { font-family: var(--hand); font-size: 1.05em; line-height: 1.2; color: var(--muted); }
.w-line { font-family: var(--hand); font-size: 1.72em; line-height: 1.45; color: var(--ink); white-space: nowrap; }
.col-h + .w-line { margin-top: .15em; }
.w-line .ink { position: relative; display: inline-block; isolation: isolate; }
.tok, .slip, .wrong, .ans { position: relative; display: inline-block; }
.slip { margin-left: .14em; }
.reader { position: absolute; left: 0; top: .1em; z-index: -1; width: 100px; height: 1.15em; border-radius: .22em; background: var(--hl); opacity: 0; transform-origin: 0 50%; pointer-events: none; }
.ring { position: absolute; left: -.3em; top: -.2em; width: calc(100% + .66em); height: calc(100% + .4em); max-width: none; overflow: visible; }
.ring path, .box path, .strike path, .tick path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ring path { stroke: var(--gold); stroke-width: 3.2; }
.tick { position: absolute; right: -.18em; top: -.22em; width: .46em; height: .46em; max-width: none; overflow: visible; }
.tick path { stroke: var(--success); stroke-width: 3; }
.strike { position: absolute; left: -.08em; top: 40%; width: calc(100% + .16em); height: .36em; max-width: none; overflow: visible; }
.strike path { stroke: var(--ink); stroke-width: 4.5; }
.ans { padding: 0 .12em; }
.box { position: absolute; left: -.26em; top: -.12em; width: calc(100% + .52em); height: calc(100% + .24em); max-width: none; overflow: visible; }
.box path { stroke: var(--success); stroke-width: 3.2; }

/* Apo and what he says. */
.b-apo-row { margin-top: .7em; display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: .9em; align-items: end; min-height: 5.1em; }
.b-apo { clip-path: inset(-60px -60px 0 -60px); }
.bubble { position: relative; justify-self: start; margin-bottom: .45em; padding: .5em 1em .62em; border: 1.5px solid var(--ink); border-radius: 1.1em 1.1em 1.1em .3em; background: var(--paper); transform-origin: 0 100%; }
.bubble::before { content: ""; position: absolute; left: -.55em; bottom: .8em; width: .8em; height: .8em; background: var(--paper); border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.from { font-size: .78em; font-weight: 650; color: var(--gold-ink); }
.b-hw { font-family: var(--hand); font-size: 1.38em; line-height: 1.22; color: var(--ink); }
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; }
.hello .ink, .ask .ink { display: inline-block; }
.ask, .said { opacity: 0; }

/* Props that cross the board: the photo, the input dock and the pen. */
.snap { position: absolute; left: 0; top: 0; z-index: 4; display: grid; gap: .4em; width: 13em; padding: .65em .85em .85em; border-radius: .7em; background: #fbf8ef; box-shadow: 0 0 0 1px rgba(20, 33, 31, .08), 0 22px 44px -18px rgba(20, 33, 31, .5); opacity: 0; pointer-events: none; transform-origin: 0 0; }
.snap-top { display: flex; align-items: center; gap: .4em; color: var(--muted); font-size: .78em; font-weight: 600; }
.snap svg { width: 1.3em; height: 1.3em; }
.snap p { font-family: var(--hand); font-size: 1.15em; line-height: 1.25; color: var(--ink); }
.dock { position: absolute; right: 1.2em; bottom: 1.4em; z-index: 4; display: flex; gap: .25em; padding: .3em; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); opacity: 0; pointer-events: none; }
.dock span { display: inline-flex; align-items: center; gap: .4em; padding: .45em .85em; border-radius: 999px; font-size: .9em; font-weight: 550; color: var(--muted); }
.dock svg { width: 1.15em; height: 1.15em; }
.dock .is-on { background: var(--forest); color: var(--on-forest); }
.pen { position: absolute; left: 0; top: 0; z-index: 5; width: 1.9em; height: 1.9em; opacity: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M3 37c1-3.4 2.2-6.8 3.4-10.1L28 5.3c1.8-1.8 4.6-1.8 6.4 0 1.8 1.8 1.8 4.6 0 6.4L12.8 33.3C9.6 34.6 6.3 35.8 3 37Z' fill='%2314211f'/%3E%3Cpath d='M3 37l2.4-.9-1.5-1.5Z' fill='%23d8a84f'/%3E%3C/svg%3E") left bottom / contain no-repeat; filter: drop-shadow(0 6px 6px rgba(20, 33, 31, .22)); }
@container (max-width: 520px) {
  .board-topic { display: none; }
  .dock span { padding: .45em .7em; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 11vw, 168px) 0; }
.section h2 { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.04; letter-spacing: -.034em; }
.feat { font-weight: 600; color: var(--ink); white-space: nowrap; }
.fine { margin-top: 20px; color: var(--faint); font-size: 13.5px; }

/* Fork */
.fork { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fork-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.fork-head p { max-width: 30em; color: var(--muted); font-size: 19px; }
.fork-stage { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); padding: clamp(20px, 2.6vw, 36px); border-radius: 28px; background: var(--bg); border: 1px solid var(--line); }
.fork-q { font-size: 15px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.choices { margin-top: 12px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.choices button { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.choices button:hover { border-color: var(--faint); }
.choices b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink-2); font-size: 12.5px; font-weight: 650; transition: background-color .2s, color .2s, border-color .2s; }
.choices span { font-size: 18px; font-weight: 520; }
.choices button[aria-checked="true"] { border-color: var(--gold-deep); box-shadow: 0 0 0 1px var(--gold-deep); background: #fffaf0; }
.choices button[aria-checked="true"] b { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.choices button[data-path="right"][aria-checked="true"] { border-color: var(--success); box-shadow: 0 0 0 1px var(--success); background: #f1f7f2; }
.choices button[data-path="right"][aria-checked="true"] b { background: var(--success); border-color: var(--success); }
.hint { margin-top: 12px; color: var(--faint); font-size: 14px; }
.fork-viz { position: relative; min-width: 0; }
/* Fork flow: ink dots travelling the routes, drawn over the map. */
.fork-flow { position: absolute; left: 0; top: 0; pointer-events: none; }
.fork-map { width: 100%; height: auto; overflow: visible; }
.fork-map text { font-family: var(--sans); font-size: 22px; font-weight: 500; fill: var(--ink); font-variant-numeric: tabular-nums; }
.fork-map .lbl { transition: opacity .4s var(--ease), fill .3s; }
.fork-map .casing { fill: none; stroke: var(--bg); stroke-width: 12; stroke-linecap: round; }
.fork-map .line-main, .fork-map .base, .fork-map .overlay { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fork-map .line-main { stroke: var(--ink); stroke-width: 2.6; }
.fork-map .base { stroke: #c4c7bf; stroke-width: 2.2; stroke-dasharray: 2 8; }
.fork-map .overlay { stroke: var(--gold-deep); stroke-width: 3.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fork-map .main .overlay { stroke: var(--success); }
.fork-map .is-on .overlay { stroke-dashoffset: 0; }
.fork-map .stop { fill: var(--bg); stroke: var(--ink); stroke-width: 2.4; transition: stroke .3s; }
.fork-map .branch .stop { stroke: #c4c7bf; }
.fork-map .branch .lbl { fill: #8b928c; }
.fork-map .branch.is-on .stop { stroke: var(--gold-deep); }
.fork-map .branch.is-on .lbl { fill: var(--ink); }
.fork-map .branch.is-off { opacity: .35; }
.fork-map .main.is-on .stop { stroke: var(--success); }
.fork-map .bubble-c { fill: var(--bg); stroke: var(--ink-2); stroke-width: 1.8; }
.fork-map .bubble-t { font-size: 14px; font-weight: 650; text-anchor: middle; dominant-baseline: central; }
.fork-map .is-on .bubble-c { fill: var(--ink); stroke: var(--ink); }
.fork-map .is-on .bubble-t { fill: var(--surface); }
.fork-map .main.is-on .bubble-c { fill: var(--success); stroke: var(--success); }
.fork-map .fork-ring path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fork-map .fork-ring.is-good path { stroke: var(--success); }
.fork-diff { display: none; }
.fork-note { position: relative; z-index: 2; display: flex; gap: 12px; align-items: center; width: min(400px, 100%); margin-top: 14px; padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .6s var(--ease); }
.fork-note::before { content: ""; position: absolute; left: 32px; top: -7px; width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.fork-note.is-right::before { left: auto; right: 32px; }
.fork-note-apo { flex: none; width: 50px; }
.fork-slip { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.fork-ask { margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--gold-ink); }
.fork-note.is-good .fork-ask { color: var(--success); }

/* Practice */
.practice { background: var(--bg); }
.practice-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.practice-copy > p { margin-top: 20px; color: var(--muted); font-size: 19px; max-width: 26em; }
/* Test dial: two module arcs, one tick per question, a sweeping hand. */
.dial-wrap { margin-top: 36px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; max-width: 540px; }
.dial { width: 200px; height: 200px; overflow: visible; }
.dial-face { fill: var(--surface); stroke: var(--line); }
.dial-arc { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-linecap: round; }
.dial-tick { stroke: #d2d0c4; stroke-width: 2.6; stroke-linecap: round; transition: stroke .25s; }
.dial-tick.is-done { stroke: var(--forest); }
.dial-min { font: 560 52px var(--sans); fill: var(--ink); text-anchor: middle; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dial-sub { font: 500 11.5px var(--sans); fill: var(--muted); text-anchor: middle; }
.dial-progress { fill: none; stroke: var(--forest); stroke-width: 3; stroke-linecap: round; }
.dial-tip { fill: var(--gold); stroke: var(--surface); stroke-width: 2.5; }
.dial-legend { display: grid; gap: 8px; }
.dial-legend button { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.dial-legend button:hover { border-color: var(--faint); }
.dial-legend b { font-size: 15px; font-weight: 600; }
.dial-legend span { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.dial-legend button[aria-checked="true"] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.dial-note { margin-top: 4px; color: var(--faint); font-size: 13.5px; }
.stage-tests { background: var(--sage); }
.exam { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-window); }
.exam-body { flex: 1; }
.exam-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.exam-clock { margin: 0 auto; font-size: 17px; font-weight: 650; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.exam-clock.is-low { color: var(--copper); }
.tool { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); font-size: 13.5px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.tool svg { width: 17px; height: 17px; }
.tool:hover { border-color: var(--ink-2); }
.tool[aria-pressed="true"] { background: var(--sage); border-color: var(--ink-2); }
.tool[data-mark][aria-pressed="true"] svg path { fill: var(--gold); }
.exam-body { position: relative; padding: 18px 20px 4px; }
.exam-n { font-family: var(--hand); font-size: 24px; line-height: 1.1; }
.exam-tools { margin-top: 10px; display: flex; gap: 8px; }
.exam-q { position: relative; z-index: 1; margin-top: 16px; font-family: var(--hand); font-size: 25px; line-height: 1.3; }
.hl { border-radius: 4px; transition: background-color .35s; }
.exam-q.is-text { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.exam-passage { display: block; margin-bottom: 14px; font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.exam-stem { display: block; }
.exam-q.is-text .exam-stem { font-weight: 550; }
.exam-choices.is-text span { font-family: var(--sans); font-size: 16px; }
.hl.is-on { background: var(--hl); }
.exam-choices { position: relative; z-index: 1; margin-top: 12px; border: 0; display: grid; gap: 8px; }
.exam-choices label { display: grid; grid-template-columns: 20px 18px 1fr 44px; align-items: center; gap: 10px; min-height: 48px; padding-left: 14px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.exam-choices label:hover { border-color: var(--ink-2); }
.exam-choices input { width: 18px; height: 18px; margin: 0; accent-color: var(--forest); }
.exam-choices b { font-size: 14px; }
.exam-choices span { font-family: var(--hand); font-size: 21px; }
.exam-choices label:has(input:checked) { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: #f2f7f2; }
.exam-choices .x { align-self: stretch; border: 0; border-left: 1px solid var(--line); background: none; color: var(--faint); font-size: 17px; cursor: pointer; border-radius: 0 11px 11px 0; }
.exam-choices .x:hover { color: var(--ink); background: var(--bg); }
.exam-choices label.is-out span, .exam-choices label.is-out b { text-decoration: line-through; text-decoration-color: var(--copper); text-decoration-thickness: 2px; color: var(--faint); }
.exam-reader { position: absolute; left: 0; right: 0; top: 0; height: 50px; z-index: 2; pointer-events: none; box-shadow: 0 0 0 999px rgba(20, 33, 31, .5); border-block: 2px solid var(--butter); opacity: 0; transition: opacity .25s; }
.exam.is-reading .exam-reader { opacity: 1; }
.exam-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 18px 14px; border-top: 1px solid var(--line); }
.exam-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.exam-nav li { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border: 1px dashed #b4b2a6; border-radius: 5px; font-size: 10.5px; font-weight: 600; color: var(--faint); transition: background-color .25s, border-color .25s, color .25s; }
.exam-nav li.is-now { border: 1.5px solid var(--ink); color: var(--ink); }
.exam-nav li.is-done { background: var(--forest); border: 1.5px solid var(--forest); color: var(--on-forest); }
.exam-nav li.is-flag::after { content: ""; position: absolute; right: -4px; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 1.5px solid var(--paper); }
.exam-saved { margin-left: auto; color: var(--success); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Trust + Apo */
.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.stage-apo { display: grid; justify-items: center; padding-top: clamp(28px, 4vw, 48px); transition: background-color .6s var(--ease); }
.trust.is-mad .stage-apo { background: var(--copper-tint); }
.apo-poke { width: min(300px, 82%); padding: 0; border: 0; background: none; cursor: pointer; border-radius: 24px; -webkit-tap-highlight-color: transparent; }
.apo-poke svg { width: 100%; height: auto; }
.apo-says { margin-top: 6px; color: var(--muted); font-size: 15px; min-height: 1.5em; text-align: center; }
.mad { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .3s, color .3s; }
.mad svg { width: 19px; height: 19px; }
.mad i { position: relative; width: 40px; height: 24px; margin-left: 6px; border-radius: 999px; background: #d3d1c4; transition: background-color .3s; }
.mad i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .35s var(--ease); }
.mad[aria-checked="true"] { border-color: var(--copper); color: var(--copper); }
.mad[aria-checked="true"] i { background: var(--copper); }
.mad[aria-checked="true"] i::after { transform: translateX(16px); }
.trust-apo { display: grid; justify-items: start; }
.trust-apo .stage { width: 100%; }
.points { margin-top: 32px; border-top: 1px solid var(--line); }
.points div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.points dt { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.points dd { color: var(--muted); font-size: 16.5px; line-height: 1.5; }
.trust-mad { margin-top: 22px; color: var(--muted); font-size: 16px; }

/* Compare: Aporo's column stands proud of the table; reasons open on the row you point at. */
.compare { background: var(--bg); border-top: 1px solid var(--line); }
.compare-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.compare-head p { max-width: 30em; color: var(--muted); font-size: 19px; }
.vs { display: none; }
.ctable { --aporo-w: 172px; --col-w: 132px; position: relative; margin-top: clamp(40px, 5vw, 64px); padding: 14px 0; }
.aporo-card { position: absolute; top: 0; bottom: 0; right: calc(var(--col-w) * 3); width: var(--aporo-w); border-radius: 24px; background: var(--forest); box-shadow: 0 34px 70px -34px rgba(20, 33, 31, .55); }
.crow { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) var(--aporo-w) repeat(3, var(--col-w)); align-items: stretch; outline: none; }
.crow > span { border-bottom: 1px solid var(--line); }
.crow > .is-aporo { border-bottom-color: rgba(246, 244, 236, .1); }
.crow:last-child > span { border-bottom: 0; }
.crow > span { display: grid; place-items: center; padding: 18px 10px; }
.crow > .clabel { display: flex; flex-direction: column; justify-content: center; place-items: normal; padding: 20px 24px 20px 4px; text-align: left; }
.clabel-t { display: block; font-size: 17.5px; font-weight: 520; line-height: 1.4; color: var(--ink); }
.cwhy { display: grid; grid-template-rows: 0fr; opacity: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; transition: grid-template-rows .4s var(--ease), opacity .3s; }
.cwhy > span { min-height: 0; overflow: hidden; }
.cwhy > span::before { content: ""; display: block; height: 6px; }
.crow:not(.chead):hover .cwhy, .crow:focus-visible .cwhy, .crow.is-open .cwhy { grid-template-rows: 1fr; opacity: 1; }
.crow:not(.chead):hover > :not(.is-aporo), .crow:focus-visible > :not(.is-aporo), .crow.is-open > :not(.is-aporo) { background: var(--surface); }
.crow:focus-visible .clabel-t { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.chead > span { padding-top: 22px; padding-bottom: 22px; font-size: 18px; font-weight: 560; color: var(--ink-2); }
.chead .is-aporo { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--on-forest); font-size: 23px; letter-spacing: -.02em; }
.col-mark { width: 30px; height: 30px; }
.col-mark svg { width: 100%; height: 100%; }
.yes-a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--butter); }
.yes-a svg { width: 26px; height: 26px; }
.yes svg, .no svg { width: 26px; height: 26px; }
.yes-a path, .yes path, .no path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.yes-a path { stroke: var(--ink); stroke-width: 2.4; }
.yes path { stroke: var(--success); stroke-width: 2.2; }
.no path { stroke: #a3a9a3; stroke-width: 1.7; }
.motion .compare:not(.is-in) .ctable path { stroke-dashoffset: 1; }
.motion .compare:not(.is-in) .yes-a { transform: scale(.6); }
.motion .compare:not(.is-in) .aporo-card { transform: translateY(14px); opacity: 0; }
.motion .compare .yes-a { transition: transform .5s var(--ease) calc(var(--i, 0) * 90ms + .25s); }
.motion .compare .ctable path { transition: stroke-dashoffset .45s cubic-bezier(.5, 0, .3, 1) calc(var(--i, 0) * 90ms + .35s); }
.motion .compare .aporo-card { transition: transform .7s var(--ease), opacity .5s; }
.compare-legend { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--muted); font-size: 14px; }
.compare-legend span { display: inline-flex; align-items: center; gap: 6px; }
.compare-legend .yes svg, .compare-legend .no svg { width: 18px; height: 18px; }
.sources { margin-top: 14px; color: var(--faint); font-size: 13.5px; }
.sources summary { display: inline-flex; min-height: 40px; align-items: center; color: var(--muted); font-weight: 550; cursor: pointer; }
.sources p { max-width: 62em; line-height: 1.6; }
.sources a { color: var(--ink-2); }

/* Offer */
.offer { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offer-wrap { text-align: center; }
.offer h2 { max-width: 15em; margin: 0 auto; }
.offer-lede { margin: 18px auto 0; max-width: 32em; color: var(--muted); font-size: 19px; }
/* Plans: three ways to pay for the same Aporo; Quarterly is the forest card. */
.plans { margin: 52px auto 0; max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; text-align: left; }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: var(--bg); }
.plan.is-featured { border-color: var(--forest); background: var(--forest); color: var(--on-forest); box-shadow: 0 34px 70px -34px rgba(20, 33, 31, .55); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.plan-top h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: inherit; }
.saving { padding: 3px 10px; border-radius: 999px; background: #f6ecd2; color: var(--gold-ink); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.is-featured .saving { background: rgba(242, 199, 92, .16); color: var(--butter); }
.was { margin-top: 20px; color: var(--muted); font-size: 14.5px; }
.was s { color: var(--ink-2); font-size: 16px; font-weight: 550; text-decoration-thickness: 1.5px; }
.amount { margin-top: 4px; display: flex; align-items: baseline; gap: 8px; }
.amount small { position: relative; top: -.95em; margin-left: 2px; font-size: .45em; letter-spacing: -.02em; }
.amount b { font-size: clamp(48px, 4.6vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.amount span { color: var(--muted); font-size: 15px; }
.billed { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.desc { margin: 20px 0 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.lock { margin-top: 10px; display: flex; align-items: center; gap: 7px; color: var(--success); font-size: 14px; font-weight: 600; }
.lock svg { flex: none; width: 17px; height: 17px; }
.is-featured .amount span, .is-featured .billed, .is-featured .was { color: var(--on-forest-muted); }
.is-featured .was s { color: var(--on-forest); }
.is-featured .lock { color: var(--butter); }
.is-featured .desc { border-top-color: rgba(246, 244, 236, .16); color: var(--on-forest); }
.plan .btn { margin-top: auto; width: 100%; }
.includes { margin: 16px auto 0; max-width: 1080px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 20px 40px; align-items: center; padding: clamp(22px, 2.8vw, 34px); border-radius: 24px; background: var(--sage); text-align: left; }
.includes-t { color: var(--muted); font-size: 14px; font-weight: 650; }
.includes-promise { margin-top: 8px; font-size: clamp(21px, 2vw, 26px); font-weight: 560; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.includes-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.includes-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.includes-list svg { width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--forest); color: var(--on-forest); }
.free-band { margin: 16px auto 0; max-width: 1080px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: clamp(20px, 2.6vw, 30px) clamp(22px, 2.8vw, 34px); border: 1px solid var(--line); border-radius: 24px; background: var(--bg); text-align: left; }
.free-t { margin-top: 6px; font-size: clamp(20px, 1.9vw, 24px); font-weight: 560; letter-spacing: -.02em; }
.free-d { margin-top: 4px; color: var(--ink-2); font-size: 15.5px; }
.plans-note { margin: 18px auto 0; max-width: 62em; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* FAQ */
.faq { background: var(--bg); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding: 16px 0; font-size: 19px; font-weight: 560; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .4s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: var(--forest-hover); }
.faq details p { max-width: 38em; padding: 0 0 22px; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* Close: the one dark band */
.close { position: relative; overflow: hidden; background: var(--forest); color: var(--on-forest); padding: clamp(96px, 11vw, 160px) 0; }
/* Faint handwritten working drifts behind the close; gold rings land on slips. */
.close-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.close-grid { position: relative; z-index: 1; }
.close-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.close-apo { width: min(280px, 100%); justify-self: center; }
.close h2 { color: var(--on-forest); font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.038em; max-width: 12em; }
.ringed { position: relative; display: inline-block; padding: 0 .12em; }
.close-ring { position: absolute; left: -3%; top: -10%; width: 106%; height: 132%; max-width: none; overflow: visible; }
.close-ring path { fill: none; stroke: var(--butter); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .close-ring path { stroke-dashoffset: 1; transition: stroke-dashoffset .8s cubic-bezier(.5, 0, .3, 1) .2s; }
.js .close.is-in .close-ring path { stroke-dashoffset: 0; }
.close p { margin-top: 18px; color: var(--on-forest-muted); font-size: 19px; }
.close .btn { margin-top: 32px; }
.close :focus-visible { outline-color: var(--butter); }

/* Footer */
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center; padding-top: 36px; padding-bottom: 48px; font-size: 13.5px; color: var(--faint); }
.foot nav { display: flex; gap: 24px; justify-self: end; }
.foot nav a { padding: 6px 0; color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { grid-column: 1 / -1; max-width: 72em; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bar-nav { display: none; }
  .bar-in { justify-content: space-between; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; gap: 28px; }
  .hero-visual { padding: 0; }
  .hv-test { display: none; }
  .hv-score { position: relative; left: auto; bottom: auto; width: auto; max-width: 360px; margin: -22px auto 0; }
  /* The board pins under the header and the current step sits beneath it. */
  .story-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 0; }
  .story-stage { order: -1; padding-top: 10px; }
  .story-stage .stage { padding: 8px; border-radius: 22px; }
  .story-stage .stage-cap { margin-top: 8px; padding: 0 6px; font-size: 12px; }
  /* Under the board the pin keeps about 200px for the current step. */
  .story-stage .board-page { font-size: clamp(10.5px, min(3.9cqi, (100svh - 368px) / 26.4), 17px); }
  .story-steps { padding-top: 24px; }
  .step { grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding-bottom: 28px; }
  .step-n, .step.is-active .step-n { width: 28px; height: 28px; margin-top: 1px; translate: none; font-size: 12.5px; }
  .step::before, .step::after { display: none; }
  .step h2, .js .step:not(.is-active) h2 { font-size: clamp(24px, 6.6vw, 30px); line-height: 1.1; letter-spacing: -.028em; color: var(--ink); }
  .step-more p { margin-top: 10px; font-size: 16.5px; }
  .js .story-steps > .step { grid-area: 1 / 1; padding-bottom: 0; transition: opacity .4s var(--ease), translate .55s var(--ease); }
  .js .step:not(.is-active) { opacity: 0; translate: 0 16px; pointer-events: none; }
  .js .step.is-done:not(.is-active) { translate: 0 -16px; }
  .js .step:not(.is-active) .step-more { grid-template-rows: 1fr; opacity: 1; }
  .fork-grid, .practice-grid, .trust-grid, .faq-grid, .close-grid { grid-template-columns: 1fr; }
  .plans, .includes { grid-template-columns: 1fr; }
  .fork-head { grid-template-columns: 1fr; }
  .fork-stage { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr 1fr; }
  .trust-copy { order: -1; }
  .close-apo { justify-self: start; width: 200px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .fork-map, .fork-flow { display: none; }
  .compare-head { grid-template-columns: 1fr; }
  .vs { margin-top: 28px; display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .vs button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: none; font-size: 14.5px; font-weight: 550; color: var(--muted); cursor: pointer; }
  .vs button[aria-checked="true"] { background: var(--forest); color: var(--on-forest); }
  .ctable { --aporo-w: 84px; --col-w: 84px; margin-top: 20px; }
  .aporo-card { right: var(--col-w); }
  .crow { grid-template-columns: minmax(0, 1fr) var(--aporo-w) var(--col-w); }
  .ctable[data-show="1"] [data-col]:not([data-col="1"]), .ctable[data-show="2"] [data-col]:not([data-col="2"]), .ctable[data-show="3"] [data-col]:not([data-col="3"]) { display: none; }
  .clabel-t { font-size: 15.5px; }
  .chead > span { font-size: 14.5px; }
  .chead .is-aporo { flex-direction: column; gap: 2px; font-size: 15px; }
  .col-mark { width: 24px; height: 24px; }
  .yes-a { width: 38px; height: 38px; }
  .yes-a svg, .yes svg, .no svg { width: 22px; height: 22px; }

  .fork-diff { display: grid; }
  .fork-note { transform: none !important; width: 100%; }
  .fork-note::before { display: none; }
  .points div { grid-template-columns: 1fr; gap: 4px; }
  .fork-copy > p:not(.fork-q):not(.hint), .practice-copy > p, .offer-lede, .close p { font-size: 17.5px; }
}
@media (max-width: 520px) {
  .btn-lg { width: 100%; }
  .includes-list { grid-template-columns: 1fr; }
  .offer-pill { gap: 8px; padding-right: 10px; font-size: 13px; }
  .offer-pill svg { display: none; }
  .dial-wrap { grid-template-columns: 1fr; justify-items: start; }
  .dial { width: 180px; height: 180px; }
  .stage { border-radius: 20px; }
  .exam-bar { flex-wrap: wrap; }
  .exam-clock { margin: 0 0 0 auto; }
  .exam-bar .tool { width: 100%; justify-content: center; }
  .foot-in { grid-template-columns: 1fr; }
  .foot nav { justify-self: start; }
}

.fork-diff li { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-variant-numeric: tabular-nums; }
.fork-diff li.d-head { color: var(--faint); font-size: 12.5px; font-weight: 600; }
.fork-diff li.d-shared span { grid-column: 1 / -1; }
.fork-diff li.d-fork { border-top: 2px solid var(--gold); }
.fork-diff .d-slip { color: var(--gold-ink); font-weight: 550; }
.fork-diff .d-ok { color: var(--success); font-weight: 600; }

@media (max-width: 900px) and (max-height: 700px) {
  .story-steps { padding-top: 18px; }
  .step h2, .js .step:not(.is-active) h2 { font-size: 23px; }
  .step-more p { font-size: 15.5px; line-height: 1.5; }
}
/* Too short to pin (a phone on its side): the steps stack beside a finished board. */
@media (max-height: 520px) {
  .js .story { height: auto; }
  .js .story-pin { position: relative; top: auto; height: auto; padding-block: 48px; }
  .js .story-steps > .step { grid-area: auto; opacity: 1; translate: none; padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
