/* ==========================================================================
   Neuron landing — design tokens
   The app's warm paper, dark-grey neuron lines, and the app's yellow as the
   one lit colour: it marks the one thing to do (Get early access, Request
   access) and nothing decorative. Purple is reserved for "shaky / due".
   Values match neuron_frontend/app/globals.css. Mono is for data (labels,
   counts, citations), never for a sentence.
   ========================================================================== */
:root {
  --bg: #f1eee7;
  --bg-2: #e8e4db;
  --bg-3: #fbfaf7;
  --sunk: #e3dfd5;
  --ink: #161615;
  --ink-2: #3a3a38;
  --ink-3: #6b6b67;
  --ink-4: #9a9a95;
  --line: #3a3a38;
  --hair: rgba(22, 22, 21, 0.16);
  --hair-2: rgba(22, 22, 21, 0.08);
  --yellow: #f2c14e;
  --yellow-2: #ffd56a;
  --yellow-ink: #3b2c00;
  --yellow-deep: #8a6413;
  --purple: #7b5cff;
  --purple-2: #b7a6ff;
  --charcoal: #1b1b1a;
  --charcoal-2: #242423;
  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-pixel: "Pixelify Sans", "Geist", system-ui, sans-serif;
  --radius-pill: 999px;
  --radius: 18px;
  --gutter: clamp(20px, 4vw, 64px);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The early-access form's bot trap: off screen, out of the tab order, never read out. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* --------------------------------------------------------------------------
   Background field (fixed canvases)
   -------------------------------------------------------------------------- */
.field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.field-fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(242, 193, 78, 0.16), transparent 70%),
    /* A veil down the left, where the words sit, so a dendrite behind a
       headline is a whisper and not a strike-through. */
    linear-gradient(to right, rgba(241, 238, 231, 0.42) 0%, rgba(241, 238, 231, 0.22) 40%, rgba(241, 238, 231, 0) 72%),
    linear-gradient(to bottom, rgba(241, 238, 231, 0) 45%, rgba(241, 238, 231, 0.8) 100%);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
/* Yellow is the one lit action on a screen: Get early access, Request access. */
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-yellow .arrow { transition: transform .18s ease; }
.btn-yellow:hover .arrow { transform: translate(2px, -2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-dark .arrow { color: var(--yellow); }
.btn-ghost { background: transparent; padding-inline: 12px; }
.btn-ghost:hover { background: rgba(22,22,21,.06); }
.btn-outline { background: transparent; border-color: var(--hair); }
.btn-outline:hover { border-color: var(--ink); }
.btn-lg { padding: 15px 24px; font-size: 15px; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  backdrop-filter: blur(10px) saturate(1.1);
  background: linear-gradient(to bottom, rgba(241,238,231,.85), rgba(241,238,231,.55));
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--hair); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; letter-spacing: -0.01em; }
.brand-mark { color: var(--ink); }
.brand-word { font-family: var(--font-pixel); font-size: 22px; letter-spacing: 0.01em; }
/* Beside the mark and the word while Neuron is in beta; the web app's BetaTag. */
.brand-beta { font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); opacity: .6; border: 1px solid currentColor; border-radius: 999px; padding: 3px 6px; margin-left: -1px; }
.nav-links { display: flex; gap: 26px; justify-self: center; font-size: 14px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--yellow); transition: right .2s ease; }
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; gap: 6px; justify-self: end; }
.nav-toggle { display: none; justify-self: end; width: 40px; height: 40px; border: 1px solid var(--hair); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); top: 15px; transition: transform .2s ease, top .2s ease; }
.nav-toggle span + span { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span + span { top: 19px; transform: rotate(-45deg); }
.mobile-menu[hidden] { display: none; }
.mobile-menu { position: fixed; z-index: 19; top: var(--nav-h); left: 0; right: 0; padding: 16px var(--gutter) 28px; display: grid; gap: 4px; background: rgba(241,238,231,.96); border-bottom: 1px solid var(--hair); backdrop-filter: blur(10px); }
.mobile-menu a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--hair); }
.mobile-menu a.btn { margin-top: 14px; justify-content: center; border: 0; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; z-index: 1;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: grid; grid-template-rows: 1fr auto;
  padding: 0 var(--gutter) clamp(28px, 5vh, 56px);
}
/* left rail, lines running in from the viewport edge like the reference */
/* A grid item in the hero's top row, pinned to that row's bottom: it sits just
   above the headline on any viewport height instead of at a fixed percentage,
   which on a short laptop screen put it behind the first line. */
.rail { grid-row: 1; align-self: end; justify-self: start; margin-left: calc(-1 * var(--gutter)); margin-bottom: clamp(20px, 5vh, 72px); display: grid; gap: 4px; }
.rail-item { position: relative; padding-left: calc(var(--gutter) + 8px); }
.rail-item::before {
  content: ""; position: absolute; left: 0; top: 21px; height: 1px;
  width: var(--gutter); background: var(--line); opacity: .28; transition: width .25s ease, opacity .25s ease;
}
.rail-item.is-active::before { width: calc(var(--gutter) + 10px); opacity: 1; height: 2px; background: var(--yellow); }
.rail-item button { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px 6px 0; background: none; border: 0; cursor: pointer; color: var(--ink-3); font-size: 15px; transition: color .2s ease; }
.rail-item:hover button { color: var(--ink); }
.rail-item.is-active button { color: var(--ink); font-weight: 500; }
.rail-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); background: transparent; }
.rail-item:not(.is-active) .rail-icon { width: 0; overflow: hidden; }
.rail-caption { max-width: 34ch; margin: 0 0 8px 40px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.rail-item:not(.is-active) .rail-caption { display: none; }

/* The headline column takes the width of its longest claim; the card gets the rest, up to 500px. */
.hero-bottom { grid-row: 2; display: grid; grid-template-columns: auto minmax(340px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.display {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(37px, 5.4vw, 82px); line-height: 0.92; letter-spacing: -0.02em;
  text-wrap: balance;
}
/* One claim per line at every width: balance must never break inside a claim. */
.display .line { display: block; }
.display em { font-style: normal; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 92% / 0% .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: underline 1s .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes underline { to { background-size: 100% .14em; } }

/* The copy sits on a pane of glass, the same recipe as the app's composer:
   the network blurs behind the words instead of running through them. */
.hero-side {
  display: grid; gap: 14px; justify-self: end; width: 100%; max-width: 500px;
  position: relative; padding: 22px 24px 22px;
  border-radius: var(--radius);
  /* Near-clear glass: almost no fill, so the pane is the blur and its rim.
     Muddy enough that the network softens under the words, clear enough
     that it is still the sheet behind. */
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(22,22,21,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 1px 0 rgba(255,255,255,.5),
              0 1px 2px rgba(22,22,21,.04);
}
/* What Neuron is, first, and it never changes while someone reads it. */
.hero-copy { font-size: 21px; line-height: 1.38; letter-spacing: -0.01em; color: var(--ink); max-width: 30ch; text-wrap: pretty; }
.hero-sub { font-size: 14px; color: var(--ink-3); max-width: 44ch; }
.hero-feats { display: none; }
.hero-cta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

.scroll-hint { position: absolute; right: var(--gutter); top: 40%; width: 1px; height: 56px; background: var(--hair); overflow: hidden; }
.scroll-hint span { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ink); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { to { top: 110%; } }

/* The first screen, one column: Neuron says who they are, the headline says
   what you get, then one line on how, then the two actions. */
.hero-center { display: grid; place-items: center; grid-template-rows: 1fr; padding-top: clamp(24px, 6vh, 64px); }
.hero-stack { display: grid; justify-items: center; text-align: center; gap: clamp(16px, 2.4vh, 26px); max-width: 980px; }
.hero-center .display { font-size: clamp(42px, 7.2vw, 108px); line-height: .95; }
.hero-center .hero-copy { font-size: clamp(18px, 1.6vw, 22px); max-width: 36ch; color: var(--ink-2); }
.hero-center .hero-cta { justify-content: center; margin-top: 4px; }
.hero-coach { display: flex; align-items: center; gap: 14px; }
.hero-neuron { width: clamp(92px, 9vw, 128px); height: auto; overflow: visible; }
.hero-coach .bubble { text-align: left; max-width: 300px; }
.nu-wave { transform-origin: 86px 73px; animation: nu-wave 1.4s ease-in-out infinite; }
@keyframes nu-wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-38deg); } }

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Sections (shared)
   -------------------------------------------------------------------------- */
.section { position: relative; z-index: 1; padding: clamp(72px, 11vh, 140px) var(--gutter); }
/* On wide screens every section sits in one centred 1200px column, so the eye never crosses the whole screen. */
.section { padding-inline: max(var(--gutter), calc((100% - 1200px) / 2)); }
.section-head { display: grid; gap: 18px; max-width: 900px; margin-bottom: clamp(36px, 6vh, 72px); }
/* The app's .label: mono, uppercase, after a short yellow rule. */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--yellow); flex: none; }
.eyebrow-light { color: rgba(255,255,255,.6); }
.display-2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(31px, 4.1vw, 58px); line-height: 0.95; letter-spacing: -0.02em; text-wrap: balance; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 58ch; }

/* --------------------------------------------------------------------------
   How it teaches
   -------------------------------------------------------------------------- */
.how { background: linear-gradient(to bottom, rgba(232,228,219,.55), var(--bg-2)); }
.how-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(320px, 520px); justify-content: center; gap: clamp(28px, 4vw, 64px); align-items: start; }

.moves { display: grid; border-top: 1px solid var(--hair); }
.move { display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; padding: 28px 0; border-bottom: 1px solid var(--hair); position: relative; }
.move-num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); padding-top: 6px; }
.move h3 { font-family: var(--font-display); font-weight: 600; font-size: 27px; line-height: 1.0; letter-spacing: -0.02em; }
.move p { grid-column: 2; font-size: 16px; color: var(--ink-2); max-width: 46ch; }
.move::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--yellow); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.move.is-lit::before { width: 100%; }
.move.is-lit .move-num { color: var(--ink); }

/* mock session, drawn the way the app draws one */
.session {
  background: var(--bg); border: 1px solid var(--hair); border-radius: var(--radius);
  box-shadow: 0 30px 60px -44px rgba(22,22,21,.45);
  overflow: hidden; position: sticky; top: calc(var(--nav-h) + 24px);
}
.session-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--hair-2); }
.session-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-title small { font-size: 13px; color: var(--ink-3); margin-right: 6px; }
.session-title b { font-size: 15px; font-weight: 500; }
.session-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.session-body { padding: 22px 22px 6px; display: grid; gap: 16px; }
.msg { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.msg.is-in { opacity: 1; transform: none; }
.msg p { font-size: 15.5px; line-height: 1.55; }
.msg.student { justify-self: end; max-width: 82%; padding: 10px 15px; background: var(--sunk); color: var(--ink); border-radius: 18px 18px 6px 18px; }
.msg.student p { font-size: 15px; line-height: 1.45; }
.msg.tutor { justify-self: start; display: grid; gap: 8px; }
.who { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.who svg { margin-left: -3px; }
.cite { display: inline-flex; align-items: center; gap: 6px; justify-self: start; height: 26px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 12.5px; color: var(--ink-2); }
.cite::before { content: ""; width: 9px; height: 11px; border: 1.4px solid currentColor; border-radius: 2px; opacity: .7; }
.cite:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.saved { display: flex; align-items: center; gap: 10px; padding: 12px 0 4px; border-top: 1px solid var(--hair-2); font-size: 13.5px; color: var(--ink-2); opacity: 0; transition: opacity .4s ease; }
.saved strong { font-weight: 500; color: var(--ink); }
.saved small { margin-left: auto; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.saved.is-in { opacity: 1; }
.saved-mark { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.session-typing { display: flex; gap: 4px; padding: 0 22px 10px; height: 16px; }
.session-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: blink 1.2s infinite; }
.session-typing span:nth-child(2) { animation-delay: .2s; } .session-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.session-composer { margin: 0 14px 14px; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 20px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--hair); font-size: 15px; color: var(--ink-4); }
.session-composer > span:first-child { flex: 1; min-width: 0; }
.session-send { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }

/* --------------------------------------------------------------------------
   Versus (dark)
   -------------------------------------------------------------------------- */
.versus { background: var(--charcoal); color: #fff; }
.versus .display-2 { color: #fff; }
.versus .lede { color: rgba(255,255,255,.66); }
.versus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs-card { border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; min-height: 320px; }
.vs-them { background: var(--charcoal-2); border: 1px solid rgba(255,255,255,.08); }
.vs-us { background: var(--bg-3); color: var(--ink); }
.vs-head { display: flex; justify-content: space-between; padding: 14px 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.08); }
.vs-us .vs-head { border-bottom-color: var(--hair-2); color: var(--ink-3); }
.vs-meta { opacity: .6; }
.vs-body { padding: 20px 18px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.55); position: relative; }
.vs-body.blur { mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.vs-us .vs-body { display: grid; align-content: center; gap: 6px; }
.vs-q { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.4vw, 31px); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.vs-foot { padding: 14px 18px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.55); }
.vs-us .vs-foot { border-top-color: var(--hair-2); color: var(--ink-2); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; color: rgba(255,255,255,.62); }
.principles strong { display: block; color: #fff; font-weight: 500; margin-bottom: 4px; }
.principles strong::before { content: "— "; color: rgba(255,255,255,.4); }

/* --------------------------------------------------------------------------
   Concept map
   -------------------------------------------------------------------------- */
.map { background: var(--bg-2); }
.map-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.map-copy { display: grid; gap: 18px; }
.legend { display: grid; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 10px; }
.swatch { width: 12px; height: 12px; border-radius: 50%; }
.swatch-yellow { background: var(--yellow); box-shadow: 0 0 0 3px rgba(242,193,78,.3); }
.swatch-purple { background: var(--purple); box-shadow: 0 0 0 3px rgba(123,92,255,.25); }
.swatch-grey { background: transparent; border: 1.5px solid var(--ink-4); }
.map-figure { position: relative; background: var(--bg-3); border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); overflow: hidden; }
.map-figure::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(22,22,21,.12) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.cmap { width: 100%; height: auto; position: relative; }
.cmap text { font-family: var(--font-mono); font-size: 12px; text-anchor: middle; fill: var(--ink-2); paint-order: stroke; stroke: var(--bg-3); stroke-width: 4px; stroke-linejoin: round; }
.n-yellow { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.2; }
.n-purple { fill: var(--purple-2); stroke: var(--purple); stroke-width: 1.4; }
.n-grey { fill: var(--bg-3); stroke: var(--ink-4); stroke-width: 1.2; stroke-dasharray: 3 3; }
.pulse { animation: nodepulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes nodepulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.map-callout { position: relative; margin-top: 8px; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--hair); font-size: 14px; color: var(--ink-2); }
.map-callout strong { color: var(--ink); font-weight: 500; }
.map-callout-dot { flex: none; margin-top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px rgba(123,92,255,.2); }

/* --------------------------------------------------------------------------
   Early access (yellow close)
   -------------------------------------------------------------------------- */
.access { background: var(--bg); color: var(--ink); }
.access-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 112px); align-items: end; }
.access-inner { display: grid; gap: 22px; min-width: 0; }
.access-title { font-size: clamp(34px, 4.9vw, 71px); }
.access-lede { font-size: 18px; color: var(--ink-2); max-width: 54ch; }
/* The field and its button are one object: a plate holding both. */
.access-form { display: flex; gap: 8px; max-width: 580px; margin-top: 8px; padding: 6px; border-radius: var(--radius-pill); background: var(--bg-3); border: 1px solid var(--hair); transition: border-color .2s ease, box-shadow .2s ease; }
.access-form:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22,22,21,.08); }
.access-form input { flex: 1; min-width: 0; padding: 0 16px; height: 50px; border: 0; border-radius: var(--radius-pill); background: transparent; font: inherit; font-size: 15.5px; color: var(--ink); outline: none; }
.access-form input::placeholder { color: var(--ink-4); }
.access-form:has(input[aria-invalid="true"]) { border-color: #b3261e; }
.access-form .btn-lg { height: 50px; }
.access-note { font-size: 13px; line-height: 1.5; color: var(--ink-3); max-width: 62ch; }
.access-note.is-ok { color: var(--ink); }
.access-note.is-ok::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--yellow); vertical-align: 1px; }
.access-privacy { margin-top: -14px; }
.access-privacy a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.access-privacy a:hover { color: var(--ink); text-decoration-color: currentColor; }
.access-next { display: grid; border-top: 1px solid var(--hair); }
.access-next li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.access-next-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); padding-top: 5px; }
.access-next strong { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.05; letter-spacing: -0.02em; }
.access-next p { grid-column: 2; font-size: 14.5px; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { position: relative; z-index: 1; background: var(--charcoal); color: rgba(255,255,255,.7); padding: 40px var(--gutter) 28px; display: grid; gap: 24px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .brand-word { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 14px; }
.footer-links a:hover { color: var(--yellow); }
.footer-meta { font-size: 13px; color: rgba(255,255,255,.45); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }

/* --------------------------------------------------------------------------
   The line: a goal drawn as a graph of ideas, like the concept map, with a
   line between what you know and what you don't yet. line.js sets data-step
   on .climb from the step in view, moves the line and colours the nodes.
   -------------------------------------------------------------------------- */
.line-story { background: linear-gradient(to bottom, rgba(241,238,231,0), rgba(232,228,219,.55)); }
.line-grid { display: grid; grid-template-columns: minmax(0, 540px) minmax(360px, 540px); justify-content: center; gap: clamp(28px, 3.5vw, 56px); align-items: start; }
.line-story .section-head { max-width: 1136px; width: 100%; }
.line-steps { display: grid; padding-bottom: 18vh; }
/* Each step is tall enough that one is in view at a time while the figure holds still. */
.line-step { display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; align-content: center; min-height: 66vh; padding: 28px 0; opacity: .3; transition: opacity .35s ease; }
.line-step.is-active { opacity: 1; }
.line-step h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(27px, 2.6vw, 38px); line-height: 1.0; letter-spacing: -0.02em; }
.line-step p { grid-column: 2; font-size: 17px; color: var(--ink-2); max-width: 44ch; }

.climb { position: sticky; top: max(calc(var(--nav-h) + 20px), calc(50vh - 330px)); display: grid; gap: 4px; padding: 20px 22px 22px; }
.climb > * { position: relative; }
.climb-head { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.climb-later { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); border: 1px solid rgba(123,92,255,.35); background: #fff; border-radius: 999px; padding: 3px 9px; opacity: 0; transform: translateY(-3px); transition: opacity .35s ease, transform .35s ease; }
.climb[data-step="4"] .climb-later { opacity: 1; transform: none; }

.graph { width: 100%; height: auto; }
.graph text { font-family: var(--font-mono); font-size: 11.5px; text-anchor: middle; fill: var(--ink-2); paint-order: stroke; stroke: var(--bg-3); stroke-width: 4px; stroke-linejoin: round; }
.graph .g-edge { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-opacity: .22; transition: stroke-opacity .6s ease; }
.graph .g-edge.is-known { stroke-opacity: .6; }
.graph .g-below { fill: url(#g-wash); }
.graph .g-line { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(242,193,78,.65)); }
.graph .g-tag rect { fill: var(--ink); }
.graph .g-tag text { fill: #fff; stroke: none; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.graph .n { transition: fill .5s ease, stroke .5s ease; }
.graph .g-node.is-new .n { filter: url(#g-glow); }
.graph .g-node.is-new .n, .graph .g-node.is-recall .n { animation: nodepulse 1.2s ease-in-out 2; }
.graph .g-goal .n-goal { fill: var(--bg-3); stroke: var(--ink); stroke-width: 1.4; }
.graph .g-goal-ring { fill: none; stroke: var(--ink-4); stroke-width: 1; stroke-dasharray: 2 4; animation: goalspin 30s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes goalspin { to { transform: rotate(360deg); } }
.graph .g-flag { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.graph .g-flag { fill: var(--yellow); }
.graph text.g-goal-label { font-family: var(--font-sans); font-size: 14px; font-weight: 500; fill: var(--ink); }

/* Each step's teammate, big, with what they'd say in a bubble beside them. */
.line-step { grid-template-columns: 64px 1fr; }
.step-copy, .step-say { grid-column: 2; }
.step-say { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; margin-top: 18px; max-width: 520px; }
.step-say .say-who { width: 112px; height: 112px; overflow: visible; }
.bubble { position: relative; font-size: 16px; line-height: 1.42; color: var(--ink); background: #fff; border: 1px solid var(--hair); border-radius: 18px; padding: 12px 16px; box-shadow: 0 10px 24px -18px rgba(22,22,21,.35); }
.bubble::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--hair); border-bottom: 1px solid var(--hair); transform: translateY(-50%) rotate(45deg); }
.bubble b { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.line-step .step-say { opacity: .5; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.line-step.is-active .step-say { opacity: 1; transform: none; }

/* The zoom out is drawn frame by frame in line.js: Marketing moves to its place
   in the whole plan, its ideas become moons around it, and lines grow out of it. */
.graph .g-big .g-node { opacity: 0; }
.graph .g-edge.is-drawn { stroke-dasharray: 1; }
.climb .head-big { display: none; }
/* The first beat shows only the two sides of the line: the ideas' names step
   back, and each side gets one big label. */
.graph .g-intro { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.climb[data-step="0"] .g-intro { opacity: 1; }
.graph .g-sub .g-node text { transition: opacity .5s ease; }
.climb[data-step="0"] .g-sub .g-node:not(.g-goal) text { opacity: 0; }
.graph text.g-zone { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; stroke-width: 6px; }
.graph text.g-zone-yes { fill: var(--yellow-deep); }
.graph text.g-zone-no { fill: var(--ink-3); }
.climb[data-step="5"] .head-big, .climb[data-step="6"] .head-big, .climb[data-step="7"] .head-big, .climb[data-step="8"] .head-big, .climb[data-step="9"] .head-big, .climb[data-step="10"] .head-big, .climb[data-step="11"] .head-big { display: inline; }
.climb[data-step="5"] .head-sub, .climb[data-step="6"] .head-sub, .climb[data-step="7"] .head-sub, .climb[data-step="8"] .head-sub, .climb[data-step="9"] .head-sub, .climb[data-step="10"] .head-sub, .climb[data-step="11"] .head-sub { display: none; }
.graph .g-edge.is-path { stroke: var(--yellow-deep); stroke-opacity: .9; stroke-width: 2; stroke-dasharray: 4 5; animation: pathflow 1.2s linear infinite; }
@keyframes pathflow { to { stroke-dashoffset: -18; } }
.graph .g-star { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.graph .g-goal .n-goal { transition: fill .6s ease; }
.graph .g-goal.is-lit .n-goal { fill: var(--yellow); }

/* The team, drawn and coloured as in the app (components/NeuronCharacter.tsx,
   agents/Oli.tsx, agents/Pyra.tsx; colours from globals.css). */
.m-shadow { fill: #161615; opacity: .12; }
.m-shine { fill: #fff; opacity: .3; }
.m-blush { fill: #ff8fb8; opacity: .6; }
.m-eye { fill: #fdfcfa; }
.m-pupil { fill: #2a2926; }
.m-pupil-shine { fill: #fff; }
.m-smile { fill: none; stroke: #2a2926; stroke-width: 2.7; stroke-linecap: round; }
.m-mouth { fill: #2b1650; }
.m-tongue { fill: #ff8fb8; }
.m-lit { fill: #f2c14e; }
.m-fig { transform-origin: 60px 112px; animation: m-bob 2.8s ease-in-out infinite; }
.m-eyes { transform-origin: 60px 64px; animation: m-blink 4.6s linear 1.2s infinite; }
@keyframes m-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes m-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.nu-limb { fill: none; stroke: #6a4df5; stroke-linecap: round; stroke-linejoin: round; }
.nu-bead, .nu-shade { fill: #6244ec; }
.nu-body { fill: #7b5cff; }
.oli .ol-thread { fill: none; stroke: #3a3a38; stroke-width: 2.4; stroke-linecap: round; }
.oli .ol-end { fill: #fbfaf7; stroke: #3a3a38; stroke-width: 2.4; }
.oli .ol-end-lit { fill: #f2c14e; }
.oli .ol-limb { fill: none; stroke: #3a74f0; stroke-linecap: round; stroke-linejoin: round; }
.oli .ol-bead { fill: #3068e6; }
.oli .ol-body { fill: #4b86ff; }
.oli .ol-hand { fill: #dfe8ff; stroke: #3068e6; stroke-width: 2; }
.pyra .py-limb { fill: none; stroke: #189fb2; stroke-linecap: round; stroke-linejoin: round; }
.pyra .py-bead { fill: #1596a8; }
.pyra .py-body { fill: #1fb6c9; }
.pyra .py-card-face { fill: #fdfcfa; stroke: #2a2926; stroke-width: 1.8; }
.pyra .py-card-tick { fill: none; stroke: #1596a8; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pyra .py-card-line { fill: none; stroke: #9a9a95; stroke-width: 1.5; stroke-linecap: round; }
.pyra .py-card { transform-box: fill-box; transform-origin: center; transform: rotate(10deg); }

@media (max-width: 900px) {
  /* Phone: the figure sticks under the nav and the steps scroll beneath it. */
  .line-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-coach { flex-direction: column; gap: 8px; }
  .hero-coach .bubble { text-align: center; }
  .hero-coach .bubble::before { left: 50%; top: -7px; transform: translateX(-50%) rotate(135deg); }
  .climb { order: -1; top: calc(var(--nav-h) + 6px); z-index: 2; padding: 12px 14px 14px; }
  .climb .graph { max-height: calc(min(62svh, 600px) - 56px); }
  .graph text { font-size: 13px; }
  .graph text.g-goal-label { font-size: 16px; }
  .step-say { grid-template-columns: 72px 1fr; gap: 10px; margin-top: 12px; }
  .step-say .say-who { width: 72px; height: 72px; }
  .bubble { font-size: 14.5px; padding: 10px 13px; }
  .line-step { grid-template-columns: 30px 1fr; min-height: 50vh; align-content: start; padding-top: 12px; }
  .line-step p { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   The lesson: the next step in the plan opens into a session that fills the
   card, drawn as the app draws one (top island, turns, reply bar), and shows
   one scene per scroll. The instrument is the app's own page
   (instrument-break-even.html, built by core/instruments.assemble).
   -------------------------------------------------------------------------- */
.climb { --emerald: #2f8a5b; --emerald-deep: #1d6a43; --emerald-wash: rgba(47,138,91,.11); --emerald-mark: rgba(47,138,91,.26);
  --rose: #d0405c; --rose-deep: #a3243d; --rose-wash: rgba(208,64,92,.10); --rose-mark: rgba(208,64,92,.24); --purple-deep: #4b35b8; }
.climb-chat {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  clip-path: circle(0px at 50% 50%); visibility: hidden;
}
.climb.is-lesson .climb-chat { visibility: visible; }
.climb-chat .label { font-family: var(--font-mono); font-size: 10px; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.island-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fbfaf7; box-shadow: 0 0 0 1px var(--hair-2), 0 4px 12px -6px rgba(22,22,21,.3); color: var(--ink); }
.topic-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #fbfaf7; box-shadow: 0 0 0 1px var(--hair-2), 0 4px 12px -6px rgba(22,22,21,.3); font-size: 14px; }
.topic-pill b { font-weight: 600; }
.topic-ring { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--yellow) 0 30%, var(--hair-2) 30% 100%); }
.topic-ring svg { background: #fbfaf7; border-radius: 50%; padding: 4px; width: 20px; height: 20px; box-sizing: border-box; }
/* One scene at a time: the old one rises away as the new one arrives. */
.scenes { position: relative; flex: 1; }
.scene { position: absolute; inset: 0; padding: 6px 18px 10px; display: flex; flex-direction: column; justify-content: center; gap: 6px; opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.scene.is-on { opacity: 1; transform: none; pointer-events: auto; }
.scene.is-past { opacity: 0; transform: translateY(-18px); }
/* The reader rises over the first scene, which stays dimmed under it. */
.scene-sheet { justify-content: flex-end; padding: 10px; }
.scene[data-scene="3"] { justify-content: flex-start; }
.climb-chat.show-sheet .scene[data-scene="0"] { opacity: .35; transform: none; filter: blur(1px); }
.turn { padding: 6px 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
.turn p { margin: 0 0 8px; }
.turn-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.who-face { width: 30px; height: 30px; overflow: visible; }
.who-name { font-size: 13px; font-weight: 500; }
.turn-head .time { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); }
.turn-head .bm { margin-left: auto; color: var(--ink-4); }
.ask { font-weight: 600; padding-left: 12px; box-shadow: inset 2px 0 0 var(--yellow); }
.turn-student { display: flex; justify-content: flex-end; }
.turn-student .well { width: 86%; background: var(--sunk); border-radius: 18px; padding: 12px 16px; }
.turn-student .turn-head { margin-bottom: 6px; }
.referenced { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--hair); }
.climb-chat .cite { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font: 500 10.5px/1.6 var(--font-mono); color: var(--ink-2); white-space: nowrap; }
.later { align-self: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-deep); background: color-mix(in srgb, var(--purple) 12%, transparent); padding: 3px 10px; border-radius: 999px; margin: 0; }
/* Figure and instrument cards: the app's 18px plates with a hairline. */
.fig-card, .vis-card { border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; background: #fff; }
.card-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13.5px; }
.fig-body { border-top: 1px solid var(--hair); background: var(--bg-3); padding: 8px; }
.fig-slide { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--hair-2); }
.fig-slide text { font-family: var(--font-sans); }
.fs-title { font-family: var(--font-display) !important; font-weight: 600; font-size: 14px; fill: var(--ink); }
.fs-axis { fill: none; stroke: var(--ink-4); stroke-width: 1; }
.fs-in { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.fs-out { fill: none; stroke: var(--yellow-deep); stroke-width: 2.2; stroke-dasharray: 6 4; }
.fs-loss { fill: var(--rose-wash); } .fs-profit { fill: var(--emerald-wash); }
.fs-dot { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.6; }
.fs-lab { font-size: 11px; fill: var(--ink-2); font-weight: 500; }
.fs-red { fill: var(--rose-deep); } .fs-green { fill: var(--emerald-deep); }
.fs-ax { font-size: 10px; fill: var(--ink-3); }
.card-foot { border-top: 1px solid var(--hair); padding: 9px 12px; font-size: 14px; color: var(--ink-2); }
.vis-ico { color: var(--ink-3); display: grid; }
.vis-title { display: grid; flex: 1; line-height: 1.25; }
.vis-title small { font-size: 11px; color: var(--ink-3); }
.btn-mini { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--hair); font-size: 11.5px; color: var(--ink-2); }
.vis-frame { display: block; width: 100%; height: 330px; border: 0; border-top: 1px solid var(--hair); background: var(--bg); }
/* Option rows: chosen in ink, then right in green, wrong in rose. */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.option { min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--hair); background: var(--bg-3); color: var(--ink); font: 500 15px var(--font-sans); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.option:hover { border-color: var(--ink-4); }
.option.is-right { border-color: var(--emerald); background: var(--emerald-wash); color: var(--emerald-deep); }
.option.is-wrong { border-color: var(--rose); background: var(--rose-wash); color: var(--rose-deep); }
.option.is-right::after { content: " · correct"; font-size: 12px; font-weight: 600; }
/* Pyra's check: paint on the answer, then the verdict rows. */
.mk-right, .mk-wrong { border-radius: 4px; padding: 0 2px; color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mk-right { background: var(--emerald-mark); }
.mk-wrong { background: var(--rose-mark); }
.verdict { border: 1px solid var(--hair); border-radius: 18px; background: #fff; padding: 4px 14px; }
.verdict-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.tag { padding: 2px 8px; border-radius: 999px; font: 10px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.tag-due { background: color-mix(in srgb, var(--purple) 13%, transparent); color: var(--purple-deep); }
.vrow { display: grid; grid-template-columns: 6rem 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.45; }
.climb-chat .label.v-right { color: var(--emerald-deep); }
.climb-chat .label.v-wrong { color: var(--rose-deep); }
/* The reader: the passage sheet. */
.sheet { background: var(--bg-3); border: 1px solid var(--hair); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(22,22,21,.45); transform: translateY(40px); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.scene-sheet.is-on .sheet { transform: none; }
.sheet-head { display: grid; gap: 2px; padding: 16px 20px 10px; }
.sheet-head small { font-size: 12px; color: var(--ink-3); }
.sheet-head b { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.sheet-head span { font-size: 12px; color: var(--ink-3); }
.sheet-body { border-top: 1px solid var(--hair); padding: 12px 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.passage-lit { margin-inline: -6px; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--yellow) 26%, transparent); box-shadow: inset 2px 0 0 var(--yellow); color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sheet-foot { border-top: 1px solid var(--hair); padding: 10px 20px 14px; }
.btn-dark-sm { display: inline-flex; gap: 6px; align-items: center; padding: 8px 16px; border-radius: 999px; background: #1b1b1a; color: #fff; font-size: 13px; font-weight: 500; }
.btn-dark-sm span { color: var(--yellow); }
/* The reply bar, as in the app. */
.reply-bar { margin: 0 12px 12px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 999px; background: rgba(251,250,247,.9); box-shadow: 0 0 0 1px rgba(22,22,21,.13), 0 10px 24px -14px rgba(22,22,21,.4); font-size: 13px; color: var(--ink-3); }
.rb-btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--hair); color: var(--ink-2); font-size: 16px; }
.rb-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-send { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--ink-3); }
.step-q { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
/* The node that opens into the lesson: lit and ringed while it lifts. */
.graph .g-node.is-opening .n { fill: var(--yellow); stroke: var(--ink); }
.graph .g-node.is-opening text { font-family: var(--font-sans); font-weight: 600; fill: var(--ink); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  /* The map's labels scale with its drawing; keep them readable as it narrows. */
  .cmap text { font-size: 18px; stroke-width: 5px; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .rail { display: none; }
  .hero { grid-template-rows: 1fr auto; }
  .hero-bottom { grid-template-columns: 1fr; gap: 20px; }
  .hero-feats { display: flex; flex-wrap: wrap; gap: 8px; }
  .hero-feats li { font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--hair); border-radius: 999px; padding: 4px 11px; }
  .scroll-hint { display: none; }
  .access-grid { grid-template-columns: 1fr; align-items: start; }
  .how-grid, .map-grid { grid-template-columns: 1fr; }
  .session { position: static; }
  .versus-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 20px; }
  .move { grid-template-columns: 44px 1fr; }
}
@media (max-height: 800px) {
  .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  /* The wider face cannot keep "Checks you remember." on one line at 360px
     at a readable size; it breaks after "you". */
  .display { font-size: clamp(29px, 8.9vw, 51px); }
  .hero-side { padding: 20px; }
  .hero-copy { font-size: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-cta .btn-yellow { height: 54px; }
  /* Stacked, the field keeps its own height: flex: 1 in a column would collapse it. */
  .access-form { flex-direction: column; padding: 0; border: 0; background: transparent; gap: 10px; }
  .access-form:focus-within { box-shadow: none; }
  .access-form input { flex: none; height: 54px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--hair); }
  .access-form input:focus { border-color: var(--ink); }
  .access-form input[aria-invalid="true"] { border-color: #b3261e; }
  .access-form .btn-lg { height: 54px; justify-content: center; }
  .access-privacy { margin-top: -10px; }
  .vs-body.blur { max-height: 11.5em; overflow: hidden; }
  .cmap text { font-size: 24px; stroke-width: 6px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* Narrower desktops: the teammate shrinks so the bubble keeps its width. */
@media (max-width: 1100px) and (min-width: 901px) {
  .step-say { grid-template-columns: 76px 1fr; gap: 10px; }
  .step-say .say-who { width: 76px; height: 76px; }
}
@media (max-width: 900px) {
  /* The lesson needs more room than the graph: the card grows when it opens,
     and its pieces tighten to fit a phone. */
  /* One height for the whole section, so the step band under it never moves. */
  .climb { min-height: min(62svh, 600px); align-content: start; }
  .climb-chat[data-beat="3"] .reply-bar, .climb-chat[data-beat="3"] .vis-card .card-head { display: none; }
  .scene[data-scene="3"] { padding-top: 0; padding-bottom: 0; }
  .climb-chat .app-top { padding: 8px 10px; }
  .climb-chat .island-btn { width: 30px; height: 30px; }
  .scene { padding: 2px 12px 6px; gap: 4px; }
  .turn { font-size: 14px; line-height: 1.45; padding: 3px 0; }
  .turn p { margin-bottom: 6px; }
  .turn-head { margin-bottom: 4px; }
  .who-face { width: 24px; height: 24px; }
  .scene[data-scene="2"] .turn-head, .scene[data-scene="3"] .turn-head { display: none; }
  .vis-title small { display: none; }
  .card-head { padding: 7px 10px; font-size: 13px; }
  .card-foot { padding: 7px 10px; font-size: 13px; }
  .sheet-head { padding: 12px 14px 8px; }
  .sheet-head b { font-size: 18px; }
  .sheet-body { padding: 10px 14px; font-size: 13.5px; }
  .sheet-foot { padding: 8px 14px 10px; }
  .options { gap: 6px; }
  .option { min-height: 40px; padding: 8px 12px; font-size: 14px; }
  .turn-student .well { width: 94%; padding: 9px 12px; }
  .verdict { padding: 2px 12px; }
  .vrow { grid-template-columns: 5.2rem 1fr; gap: 8px; padding: 7px 0; font-size: 13px; }
  .reply-bar { margin: 0 8px 8px; padding: 4px 4px 4px 6px; font-size: 12px; }
  .rb-btn, .rb-send { width: 26px; height: 26px; }
  .line-step.step-session { min-height: 40vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint span, .pulse, .session-typing span, .display em { animation: none; }
  .display em { background-size: 100% .14em; }
  .msg, .saved { opacity: 1; transform: none; transition: none; }
  .step-say, .line-step, .graph .n, .graph .g-edge, .climb-later { transition: none; }
  .graph .g-edge.is-path { animation: none; }
  .scene, .sheet { transition: none; }
  .graph .g-node .n, .graph .g-goal-ring, .m-fig, .m-eyes, .nu-wave { animation: none !important; }
}
.climb-chat .cite::before { display: none; }
