/* Landing page in the app's Bold Cards system (see src/app/globals.css). The tokens are the
   same values; keep them in step when the app's change (last synced with main at 9ada529). Never pure black: ink is #1f1f1d. */

/* Space Grotesk (SIL OFL 1.1, fonts/OFL.txt), served from our own domain rather than Google Fonts
   so visitors' IP addresses never go to Google (see privacy.html). Variable weight 300-700. */
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --paper: #fffef8;
  --paper-dot: #d9d5c3;
  --surface: #ffffff;
  --ink: #1f1f1d;
  /* Outlines, dividers and connectors: ink in light mode, a muted grey in dark mode (as in the app). */
  --line: #1f1f1d;
  --ink-muted: #4a4944;
  --ink-subtle: #55534b;
  --panel: #1f1f1d;
  --on-panel: #fffef8;
  --on-panel-muted: #cfcdc4;
  --brand: #ffe27a;
  --on-brand: #1f1f1d;
  --learning: #ffc93c;
  --learned: #3bb273;
  --learned-tint: #e7f7ee;
  --focus: #2d6cdf;
  --focus-tint: #eaf1fd;
  --danger: #b42318;
  --hard: #1f1f1d;
  --shadow-sm: 3px 3px 0 var(--hard);
  --shadow-md: 4px 4px 0 var(--hard);
  --shadow-lg: 6px 6px 0 var(--hard);
  --shadow-focus: 5px 5px 0 var(--focus);
  --shadow-goal: 5px 5px 0 var(--learning);
  --ring-soft: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --border-thin: 1.5px;
  --border-bold: 2px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --pill: 999px;
  --font: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --page: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171715;
    --paper-dot: #3a3934;
    --surface: #22221f;
    --ink: #f4f1e8;
    --line: #5c5a52;
    --ink-muted: #cfcdc4;
    --ink-subtle: #a8a59b;
    --panel: #0e0e0d;
    --on-panel: #f4f1e8;
    --on-panel-muted: #a8a59b;
    --learned: #4cc585;
    --learned-tint: #1e3a2b;
    --focus: #6e9bf0;
    --focus-tint: #1b2a44;
    --danger: #f97066;
    --hard: #33322d; /* a black shadow vanishes on the near-black page; a lifted grey keeps the depth */
    --brand: #ebd06a;
    --learning: #e5b63e;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: var(--border-bold) solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.dots {
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-dot) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}

/* ---------- shared pieces ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border: var(--border-bold) solid var(--line); border-radius: var(--pill);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm);
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.btn--primary { background: var(--brand); color: var(--on-brand); border-color: var(--hard); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
@media (hover: hover) { .btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--hard); } }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hard); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted);
}
.tag {
  display: inline-block; padding: 2px 8px;
  border: var(--border-thin) solid var(--line); border-radius: var(--pill);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.tag--now { background: var(--learned); color: var(--on-brand); border-color: var(--hard); }
.tag--soon { background: var(--surface); }

.dot { display: inline-block; width: 12px; height: 12px; flex: none; border: var(--border-thin) solid currentColor; border-radius: 50%; background: var(--surface); }
.dot--learning { background: var(--learning); }
.dot--learned { background: var(--learned); }

.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 104px 0; } }
.section__head { max-width: 640px; margin-bottom: 40px; display: grid; gap: 12px; }
.section__head h2 { font-size: clamp(28px, 5vw, 44px); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
.section__head p { color: var(--ink-muted); font-size: 18px; }
.section--panel { background: var(--panel); color: var(--on-panel); }
.section--panel .section__head p, .section--panel .eyebrow { color: var(--on-panel-muted); }

/* ---------- nav ---------- */

.nav { position: sticky; top: 0; z-index: 10; border-bottom: var(--border-thin) solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; }
.nav .btn--sm { white-space: nowrap; gap: 0; }
@media (max-width: 400px) { .nav__long { display: none; } }
.logo__mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: var(--border-bold) solid var(--hard); border-radius: var(--radius-md);
  background: var(--brand); color: var(--on-brand); box-shadow: 2px 2px 0 var(--hard);
}
.nav__links { display: none; gap: 24px; font-weight: 600; font-size: 14px; }
/* 44px tall so they're easy to tap on a tablet in landscape, where the links show. */
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-muted); }
.nav__links a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav__links { display: flex; } }

/* ---------- hero ---------- */

.hero { border-bottom: var(--border-thin) solid var(--line); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 56px 64px; }
/* Always stacked: copy on top, the board full width below, so the tree never has to squeeze. */
@media (min-width: 768px) { .hero__grid { gap: 56px; padding-block: 88px 96px; } .hero__copy { max-width: 900px; } .hero__lede { max-width: 600px; } }
.hero__copy { display: grid; gap: 20px; justify-items: start; }
.hero h1 { font-size: clamp(38px, 7.4vw, 64px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; }
/* Highlighter stroke behind the lower part of the words; the phrase never splits across lines. */
.hero h1 mark { white-space: nowrap; padding: 0 .06em; margin: 0 -.06em; background: linear-gradient(transparent 52%, var(--brand) 52%, var(--brand) 92%, transparent 92%); color: inherit; }
.hero__lede { font-size: 19px; color: var(--ink-muted); max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* The demo tree: nested subtrees (card on top, children in a row under it). The connectors
   are drawn by app.js from the cards' real positions, so the layout can reflow freely. */
.board {
  position: relative; margin: 0; padding: 32px 14px 20px;
  border: var(--border-bold) solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 560px) { .board { padding: 44px 28px 28px; } }
/* The canvas holds the tree and its arrows. Topics a visitor grows (app.js) are laid over it in
   their own row, so no existing card ever moves; the canvas just grows taller to make room. */
.board__stage { position: relative; }
.board__canvas { position: relative; width: fit-content; margin: 0 auto; transition: height 420ms var(--ease-out); }
.board__grown { position: absolute; z-index: 1; display: flex; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .board__canvas { transition: none; } }
.board__edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.board__edges path { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linejoin: round; }
.board__edges path.is-new { stroke-dasharray: 5 5; }

.tree { position: relative; display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; }
.tree ul { display: flex; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; padding-top: 40px; }
@media (min-width: 560px) { .tree ul { gap: 28px; padding-top: 48px; } }
.tree ul ul { gap: 12px; }

@media (min-width: 560px) { .tree ul ul { gap: 16px; } }
.tree li { display: flex; flex-direction: column; align-items: center; flex: 0 1 auto; }

.node {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 100%; min-width: 0; padding: 10px 12px;
  border: var(--border-thin) solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink);
}
.node__title { font-weight: 600; font-size: 13px; line-height: 17px; }
.node__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 11px; line-height: 14px; color: var(--ink-muted); white-space: nowrap; }
/* Wide enough for every title on one line, like the app's fixed-width cards. */
@media (min-width: 720px) { .node__title { white-space: nowrap; } .node--goal .node__title { white-space: normal; } }
@media (min-width: 560px) {
  .node { min-width: 112px; padding: 10px 14px; }
  .node__title { font-size: 14px; line-height: 18px; }
  .node__meta { font-size: 11.5px; }
}
/* Smallest phones (320px): drop the card counts and tighten spacing so the tree fits the board. */
@media (max-width: 379px) {
  .board { padding-inline: 8px; }
  .tree ul, .tree ul ul { gap: 8px; }
  .node { padding: 8px 9px; }
  .node__meta .meta-counts { display: none; }
}
/* Goal: white card with a dark header strip and the yellow goal shadow (app since 30cbf01). */
.node--goal { gap: 0; padding: 0; overflow: hidden; max-width: 280px; border: var(--border-bold) solid var(--line); border-radius: var(--radius-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-goal); }
.node--goal .node__title { padding: 8px 14px 10px; font-size: 15px; line-height: 19px; font-weight: 700; }
.node__eyebrow { padding: 6px 14px; background: var(--panel); color: var(--brand); font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: .08em; text-transform: uppercase; }
.node--branch { border: var(--border-bold) solid var(--on-brand); border-radius: var(--radius-lg); background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-md); }
.node--branch .node__title { font-weight: 700; }
.node--branch .node__meta { color: var(--on-brand); }
.node--learned { background: var(--learned-tint); }
.node--empty { border-style: dashed; background: transparent; }
.node--empty .node__title { color: var(--ink-muted); }
.node--open { border-width: var(--border-bold); box-shadow: var(--shadow-focus); }
.node--open .node__title { font-weight: 700; }

.bar { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 11px; font-variant-numeric: tabular-nums; }
.bar__track { flex: 1; min-width: 28px; height: 8px; border: var(--border-thin) solid currentColor; border-radius: var(--pill); background: var(--surface); overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--learned); }

/* The coach bubble that "adds" the dashed topics. */
.board__coach {
  position: relative; z-index: 2; margin: 28px auto 0; max-width: 360px;
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border: var(--border-thin) solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); font-size: 13px; line-height: 1.35;
}
.board__coach b { font-weight: 700; }
.avatar { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: var(--border-thin) solid var(--hard); border-radius: 50%; background: var(--brand); color: var(--on-brand); }

.hide-sm { display: none !important; }
@media (min-width: 560px) { .hide-sm { display: flex !important; } }

/* Entrance: the board grows top-down like the app's lp-node--grow, then the coach adds topics. */
@keyframes grow { from { opacity: 0; transform: translateY(-6px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.js .board .node { opacity: 0; }
.js .board.is-live .node { animation: grow 340ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.js .board__coach { opacity: 0; }
.js .board.is-live .board__coach { animation: rise 340ms var(--ease-out) 1300ms both; }
.js .board__edges path { opacity: 0; transition: opacity 240ms var(--ease-out); }
.js .board.is-live .board__edges path { opacity: 1; transition-delay: var(--d, 0ms); }
/* ---------- tap a topic to grow it (app.js) ---------- */
/* The hint sits in the board's top-left corner; above the tree on phones, where the corner is taken. */
.board__hint {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%;
  margin: -12px auto 16px; padding: 6px 12px;
  border: var(--border-thin) solid var(--line); border-radius: var(--pill); background: var(--surface);
  font-size: 12px; font-weight: 600; color: var(--ink-muted); white-space: nowrap;
}
.board__hint[hidden] { display: none; }
@media (min-width: 1040px) { .board__hint { position: absolute; top: 14px; left: 16px; margin: 0; } }
.board__hint a { color: var(--ink); font-weight: 700; }
.board__hint.is-done { border-color: var(--hard); background: var(--brand); color: var(--on-brand); }
.board__hint.is-done a { color: var(--on-brand); }
.board__pulse { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--focus); animation: pulse 1.6s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--focus) 55%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }

/* A topic you can grow: lifts on hover, sinks when pressed, and carries the app's "+" chip. */
.node--tap { cursor: pointer; transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out); }
@media (hover: hover) { .node--tap:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--hard); } }
.node--open.node--tap:hover { box-shadow: var(--shadow-focus); }
.node--tap:active { transform: scale(.97); }
.node--tap:focus-visible { outline: var(--border-bold) solid var(--focus); outline-offset: 3px; }
.node__plus {
  position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%);
  display: grid; place-items: center; width: 22px; height: 22px;
  border: var(--border-thin) solid var(--on-brand); border-radius: var(--pill);
  background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 700; line-height: 1;
}
/* Room under topic cards for the chip, kept after growing so the tree doesn't jump. */
.tree > li > ul > li > ul > li > ul { padding-top: 52px; }

/* Grown topics arrive like new topics in the app: the arrow draws down, then the card pops in. */
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-14px) scale(.6); } to { opacity: 1; transform: none; } }
.js .board.is-live .board__edges path.is-grow { stroke-dasharray: 1; opacity: 1; transition: none; animation: draw 380ms var(--ease-out) var(--edge-d, 0ms) both; }
.js .board.is-live .node.is-grow { animation: pop 420ms cubic-bezier(0.34, 1.4, 0.64, 1) var(--pop-d, 0ms) both; }
.js .board.is-live .board__coach.is-update { animation: rise 340ms var(--ease-out) 600ms both; }
/* Once an animation has finished (app.js marks it .is-settled), detach it and pin the final look.
   Without this, Safari (WebKit) can replay a card's entrance whenever its style is recalculated,
   e.g. when a tap changes its classes, because the delay comes from a CSS variable. */
.js .board .node.is-settled,
.js .board .board__coach.is-settled { animation: none !important; opacity: 1; }
.js .board .board__edges path.is-settled { animation: none !important; transition: none !important; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .board .node, .js .board__coach, .js .board__edges path { opacity: 1 !important; animation: none !important; transition: none !important; }
  .board__pulse { animation: none; }
}

/* ---------- method strip ---------- */

.steps { display: grid; gap: 16px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 980px) { .steps { gap: 24px; } }
.step { display: grid; gap: 10px; align-content: start; padding: 24px; border: var(--border-bold) solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-md); }
.step__num { width: 36px; height: 36px; display: grid; place-items: center; border: var(--border-thin) solid var(--hard); border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; }
.step h3 { font-size: 20px; line-height: 1.2; }
.step p { color: var(--ink-muted); }

/* ---------- feature showcase rows ---------- */

.showcase { display: grid; gap: 40px; align-items: center; }
.showcase + .showcase { margin-top: 88px; }
@media (min-width: 900px) {
  .showcase { grid-template-columns: 1fr 1fr; gap: 64px; }
  .showcase--flip .showcase__copy { order: 2; }
}
/* Stacked (phones, tablets in portrait): the mock note and chat keep a phone-like width instead of stretching. */
@media (max-width: 899px) { .showcase .note, .showcase .chat { width: 100%; max-width: 560px; justify-self: center; } }
.showcase__copy { display: grid; gap: 16px; align-content: start; }
.showcase__copy h3 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.12; letter-spacing: -.02em; }
.showcase__copy p { color: var(--ink-muted); font-size: 17px; }
.ticks { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border: var(--border-thin) solid var(--hard); border-radius: 5px; background: var(--learned) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%231f1f1d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Mock note panel: dark header, card sections, self-test with the focus shadow. */
.note { border: var(--border-bold) solid var(--line); border-radius: var(--radius-xl); background: var(--paper); box-shadow: var(--shadow-lg); overflow: hidden; }
.note__head { display: grid; gap: 12px; padding: 16px; background: var(--panel); color: var(--on-panel); }
.note__crumb { font-size: 12px; font-weight: 600; color: var(--on-panel-muted); }
.note__title { font-size: 22px; font-weight: 700; line-height: 1.15; }
.switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.switch span { display: grid; place-items: center; height: 34px; border: var(--border-thin) solid var(--on-panel); border-radius: var(--pill); font-size: 12px; font-weight: 500; }
.switch .is-on { border-color: var(--learning); background: var(--learning); color: var(--on-brand); font-weight: 700; }
.note__body { display: grid; gap: 14px; padding: 16px; }
.cards { display: grid; gap: 8px; }
.cards h4 { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.cards h4 small { font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.card { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: var(--border-thin) solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; line-height: 1.45; }
.card__num { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: var(--border-thin) solid var(--line); border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; }
.math { font-family: "Times New Roman", Times, serif; font-style: italic; font-size: 16px; white-space: nowrap; }
.selftest { padding: 12px 14px; border: var(--border-thin) solid var(--line); border-radius: var(--radius-md); background: var(--focus-tint); box-shadow: var(--shadow-focus); font-size: 14px; }
.selftest b { display: block; margin-bottom: 4px; }

/* Mock coach chat. */
.chat { display: grid; gap: 12px; padding: 16px; border: var(--border-bold) solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); }
.chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: var(--border-thin) solid var(--line); font-weight: 700; }
.chat__head small { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.agents { display: flex; flex-wrap: wrap; gap: 6px; }
.agents span { height: 28px; padding: 0 10px; display: inline-flex; align-items: center; border: var(--border-thin) solid var(--line); border-radius: var(--pill); font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.agents .is-on { background: var(--panel); border-color: var(--panel); color: var(--brand); }
.action--next { background: var(--brand); color: var(--on-brand); border-color: var(--hard); }
.msg { max-width: 88%; padding: 10px 14px; border: var(--border-thin) solid var(--line); border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg--me { justify-self: end; background: var(--brand); color: var(--on-brand); border-color: var(--hard); border-bottom-right-radius: 4px; }
.msg--coach { background: var(--paper); border-bottom-left-radius: 4px; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.action { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: var(--border-thin) solid var(--line); border-radius: var(--pill); background: var(--surface); font-size: 12px; font-weight: 600; }
.action svg { width: 14px; height: 14px; }
.viz { padding: 10px; border: var(--border-thin) solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.viz svg text { fill: var(--ink-muted); font: 600 10px var(--font); }
.viz .axis { stroke: var(--ink-subtle); stroke-width: 1.2; }
.viz .curve { fill: none; stroke: var(--focus); stroke-width: 2.5; }
.viz .curve2 { fill: none; stroke: var(--learned); stroke-width: 2.5; stroke-dasharray: 5 4; }

/* ---------- capability grid ---------- */

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) and (max-width: 1039px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
.tile { display: grid; gap: 10px; align-content: start; padding: 22px; border: var(--border-thin) solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.tile__icon { width: 40px; height: 40px; display: grid; place-items: center; border: var(--border-thin) solid var(--hard); border-radius: var(--radius-md); background: var(--brand); color: var(--on-brand); }
.tile__icon svg { width: 20px; height: 20px; }
.tile h3 { font-size: 18px; line-height: 1.25; }
.tile p { color: var(--ink-muted); font-size: 15px; }

/* Roadmap tiles use the board's "empty topic" look: dashed, not built yet. */
.section--panel .tile { border: var(--border-thin) dashed var(--on-panel-muted); background: transparent; }
.section--panel .tile p { color: var(--on-panel-muted); }
.section--panel .tile__icon { border-color: var(--on-panel); background: transparent; color: var(--on-panel); }
.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section--panel .tag--soon { border-color: var(--learning); background: var(--learning); color: var(--on-brand); }

/* ---------- waitlist ---------- */

.join { border-top: var(--border-thin) solid var(--line); }
.join__card {
  display: grid; gap: 28px; max-width: 760px; margin: 0 auto; padding: 28px 20px;
  border: var(--border-bold) solid var(--line); border-radius: var(--radius-xl);
  background: var(--surface); box-shadow: 8px 8px 0 var(--hard);
}
@media (min-width: 768px) { .join__card { padding: 44px; } }
.join__card h2 { font-size: clamp(28px, 5vw, 42px); line-height: 1.08; letter-spacing: -.02em; }
.join__card > header { display: grid; gap: 12px; }
.join__card > header p { color: var(--ink-muted); font-size: 17px; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field label small { font-weight: 500; color: var(--ink-muted); }
.input {
  width: 100%; height: 52px; padding: 0 16px;
  border: var(--border-thin) solid var(--line); border-radius: var(--radius-md);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 16px;
  outline: none; transition: border-color 120ms, box-shadow 120ms;
}
.input::placeholder { color: var(--ink-subtle); }
.input:focus { border-color: var(--focus); box-shadow: var(--ring-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.form__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form__fine { margin-top: -6px; font-size: 13px; color: var(--ink-subtle); }
.form__fine a { color: var(--ink); font-weight: 600; text-underline-offset: 2px; }
.form__status { min-height: 24px; font-size: 15px; font-weight: 600; }
.form__status.is-error { color: var(--danger); }
/* Off-screen trap for bots; people never see or tab into it. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done { display: none; gap: 14px; justify-items: start; padding: 20px; border: var(--border-thin) solid var(--line); border-radius: var(--radius-lg); background: var(--learned-tint); }
.done h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.done p { color: var(--ink-muted); }
.join__card.is-done .form { display: none; }
.join__card.is-done .done { display: grid; animation: rise 340ms var(--ease-out) both; }

/* ---------- footer ---------- */

.foot { padding: 32px 0 48px; border-top: var(--border-thin) solid var(--line); font-size: 14px; color: var(--ink-muted); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot__links { display: flex; gap: 20px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- text pages (privacy) ---------- */

.prose { max-width: 720px; display: grid; gap: 14px; }
.prose h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 4px; }
.prose h2 { margin-top: 18px; font-size: 21px; line-height: 1.25; }
.prose p, .prose li { color: var(--ink-muted); font-size: 16px; line-height: 1.6; }
.prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); font-weight: 600; text-underline-offset: 2px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose__lede { padding: 16px 18px; border: var(--border-thin) solid var(--line); border-radius: var(--radius-lg); background: var(--surface); font-size: 17px !important; color: var(--ink) !important; }
.prose__back { margin-top: 18px; }
.prose__back .btn { text-decoration: none; }

