/* Study marketing site. Tokens mirror src/v2/theme.ts. Flat: no shadows,
   separation by borders, tone steps and colour blocks only. */
:root {
  --bg: #FDFBF7;
  --ink: #111111;
  --text: #40484F;
  --meta: #4A5259;
  --muted: #6E777E;
  --surface: #F7F3EC;
  --panel: #EFEAE1;
  --panel2: #F3EEE6;
  --border: #E9E3D8;
  --border-strong: #DAD3C7;
  --cream-line: rgba(253, 251, 247, 0.18);
  --cream-dim: rgba(253, 251, 247, 0.72);

  --blue-soft: #E5EEF9;  --blue-mid: #C8DAF2;  --blue-strong: #3F6CA8;  --blue: #9DBDE8;
  --green-soft: #E6F0E8; --green-mid: #C5DECB; --green-strong: #3D7A50;
  --purple-soft: #E7E4F3; --purple-mid: #CDC7EA; --purple-strong: #5D53A3;
  --yellow-soft: #F6F1E3; --yellow-mid: #EADFBF; --yellow-strong: #94742C;
  --yellow-ink: #6F5518;
  --lock: #F2F0EB;
  --lock-icon: #A3A8AD;
  --red-soft: #F7DCD5;
  --flame: #D77068;

  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1240px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 400; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
em { font-style: italic; font-weight: 300; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue-strong); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Icons */
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 18px; height: 18px; }
.i-xs { width: 13px; height: 13px; }

/* Type */
.eyebrow, .mono-label, .mono-xs { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.eyebrow { font-size: 14px; line-height: 1.3; color: var(--meta); margin-bottom: 18px; }
.mono-xs { font-size: 10px; letter-spacing: 0.07em; color: var(--meta); }
.mono-label { font-size: 13px; color: var(--meta); margin-bottom: 16px; font-weight: 400; }
.display { text-wrap: balance; font-size: clamp(44px, 7.6vw, 96px); line-height: 1.02; letter-spacing: -0.045em; }
.display-2 { text-wrap: balance; font-size: clamp(36px, 4.8vw, 62px); line-height: 1.06; letter-spacing: -0.04em; }
.display-3 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.035em; }
.lede { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--text); }

/* Buttons: flat, mono caps labels */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 12px; border: 1px solid var(--ink);
  font-family: var(--mono); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #2A2A2A; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-cream { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-cream:hover { background: var(--panel); border-color: var(--panel); }
.btn-outline-cream { background: transparent; color: var(--bg); border-color: rgba(253,251,247,.5); }
.btn-outline-cream:hover { border-color: var(--bg); background: rgba(253,251,247,.08); }
.btn-sm { height: 44px; padding: 0 18px; border-radius: 8px; font-size: 13px; }
.btn-xl { height: 76px; padding: 0 52px; border-radius: 16px; font-size: 20px; }
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* App Store and Google Play buttons: the store's logo before the label. */
.btn-store { gap: 10px; }
.store-logo { width: 20px; height: 20px; flex: none; fill: currentColor; }
/* Arriving from a Download link: one soft pulse round the buttons. */
.cta-row.pulse .btn-store { animation: store-pulse 1.1s var(--ease) 2; }
@keyframes store-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253, 251, 247, 0); }
  40% { box-shadow: 0 0 0 7px rgba(253, 251, 247, .22); }
}
@media (prefers-reduced-motion: reduce) { .cta-row.pulse .btn-store { animation: none; } }

/* Announcement */
.announce {
  position: relative; background: var(--purple-mid); color: var(--ink);
  font-size: 14px; text-align: center; padding: 10px 48px;
}
.announce a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.announce a:hover { text-decoration: underline; }
.announce-tag { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; background: var(--ink); color: var(--bg); border-radius: 6px; padding: 2px 7px; margin-right: 6px; }
.announce-close { position: absolute; right: 10px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.announce-close:hover { background: rgba(17,17,17,.08); }
.announce.gone { display: none; }

/* Header: a floating rounded bar */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; }
.hdr-shell {
  max-width: var(--max); margin: 0 auto; height: 68px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 10px 0 18px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  transition: border-color .2s;
}
.site-header.scrolled .hdr-shell { border-color: var(--border-strong); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; }
.brand span { font-size: 23px; font-weight: 700; letter-spacing: -0.035em; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 14px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text); }
.nav ul a:hover { background: var(--panel2); color: var(--ink); }
.nav-mobile-ctas { display: none; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }

@media (max-width: 900px) {
  .site-header { padding: 0; }
  .hdr-shell { grid-template-columns: 1fr auto; border-radius: 0; border-width: 0 0 1px; height: 64px; padding: 0 var(--gutter); }
  .site-header.scrolled .hdr-shell { border-color: var(--border); }
  .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--border); padding: 4px var(--gutter) 24px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 16px 2px; font-size: 20px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav-mobile-ctas { display: grid; gap: 10px; margin-top: 20px; }
  html:not(.js) .nav { display: block; position: static; padding: 0; border: 0; grid-column: 1 / -1; }
}
@media (max-width: 360px) { .header-actions .btn-sm { display: none; } }

/* Scroll reveal and float */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: float 6s ease-in-out infinite; }
.f2 { animation-delay: -2s; animation-duration: 7s; }
.f3 { animation-delay: -4s; animation-duration: 5.5s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
}

/* The brain mascot. Each .brain is a square slot holding the clip's
   poster (its first frame, a transparent WebP); script.js adds a muted,
   looping <video> over it once the slot nears the screen, and fades the
   poster out when the video plays. Masko drew each clip with a different
   margin, so --x / --y1 (the figure's centre and lowest point as shares
   of the square, from src/v2/brain/clip-plan.ts) put the feet on the
   slot's bottom edge, centred. Set the size with --s. */
.brain { --s: 200px; --x: .5; --y1: .9; position: relative; width: var(--s); height: var(--s); flex: none; pointer-events: none; margin-bottom: calc(var(--s) * (var(--y1) - 1)); translate: calc(var(--s) * (.5 - var(--x))) 0; }
.brain > img, .brain > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.brain > video { opacity: 0; transition: opacity .25s; }
.brain.playing > video { opacity: 1; }
.brain.playing > img { opacity: 0; transition: opacity .25s .1s; }
.b-wave    { --x: .515; --y1: .912; }
.b-read    { --x: .5;   --y1: .914; }
.b-think   { --x: .492; --y1: .904; }
.b-walk    { --x: .507; --y1: .922; }
.b-run     { --x: .501; --y1: .917; }
.b-breathe { --x: .5;   --y1: .897; }
.b-lounge  { --x: .5;   --y1: .822; }

/* Speech bubbles: flat, outlined, with a small tail. */
.bubble { position: relative; background: var(--bg); border: 1.5px solid var(--ink); border-radius: 18px; padding: 12px 16px; font-size: 15px; line-height: 1.35; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.bubble::after { content: ""; position: absolute; width: 14px; height: 14px; background: inherit; border: inherit; border-width: 0 0 1.5px 1.5px; border-radius: 0 0 0 4px; }

/* 1. Hero */
.hero { padding-top: clamp(64px, 10vw, 128px); }
.hero-copy { text-align: center; }
.hero-ctas { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(32px, 4vw, 48px); }
.btn-pill-sm { height: 44px; font-size: 13px; padding: 0 20px; border-color: var(--border-strong); border-radius: 10px; }
@media (min-width: 768px) { .btn-pill-sm { display: none; } }

.hero-scene { position: relative; max-width: 1100px; height: 380px; margin: -20px auto 0; padding: 0 var(--gutter); }
.ground { position: absolute; left: 4%; right: 4%; bottom: 6px; width: 92%; height: 16px; overflow: visible; }
.ground path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ground-cream path { stroke: var(--bg); }

/* The waving brain stands on the line, centred, with its bubble up to the
   right. It leans a few pixels toward the pointer (--mx from script.js). */
.hero-brain { position: absolute; left: 50%; bottom: 14px; translate: calc(-50% + var(--mx, 0) * 10px) 0; transition: translate .9s var(--ease); display: flex; align-items: flex-end; }
.hero-brain .b-wave { --s: 400px; }
.bubble-hero { position: absolute; left: calc(100% - 64px); bottom: 262px; width: 236px; transform-origin: 0 100%; animation: bubble-pop .7s cubic-bezier(.34, 1.56, .64, 1) .6s both; }
.bubble-hero::after { left: 22px; bottom: -8px; rotate: -45deg; }
@keyframes bubble-pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-brain { transition: none; translate: -50% 0; }
  .bubble-hero { animation: none; }
}
@media (max-width: 767px) {
  .hero-scene { height: 300px; margin-top: 8px; }
  .hero-brain { translate: -50% 0; }
  .hero-brain .b-wave { --s: 236px; }
  .bubble-hero { left: auto; right: calc(100% - 64px); bottom: 186px; width: 170px; font-size: 13px; padding: 10px 12px; transform-origin: 100% 100%; }
  .bubble-hero::after { left: auto; right: 22px; rotate: 45deg; border-width: 0 1.5px 1.5px 0; border-radius: 0 0 4px 0; }
}
@media (max-width: 420px) {
  .hero-brain .b-wave { --s: 210px; }
  .bubble-hero { right: calc(100% - 92px); bottom: 172px; width: 150px; }
}

/* 2. Proof: headline + overlapping fact cards */
.proof { padding: clamp(88px, 11vw, 150px) 0 clamp(72px, 9vw, 120px); }
.proof-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .proof-grid { grid-template-columns: 0.9fr 1.5fr; gap: 48px; } }
.collage { position: relative; height: 520px; }
.fact { position: absolute; width: 290px; height: 250px; border-radius: 20px; padding: 22px; overflow: hidden; }
.fact-num { display: block; font-size: 76px; line-height: 1; font-weight: 300; letter-spacing: -0.05em; color: var(--ink); }
.fact p { font-size: 15px; line-height: 1.4; color: var(--ink); }
.fact-a { left: 0; top: 0; background: var(--blue-mid); display: flex; flex-direction: column; justify-content: space-between; }
.fact-a p { max-width: 210px; }
.fact-b { left: 34%; top: 200px; background: var(--purple-mid); z-index: 2; }
.fact-c { right: 0; top: 0; background: var(--yellow-mid); }
.fact-head { position: absolute; right: 18px; top: 18px; width: 116px; height: 96px; overflow: visible; }
.fact-head .head-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 5.2s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.12); } }
@media (prefers-reduced-motion: reduce) { .fact-head .head-eyes { animation: none; } }
.fact-art { position: absolute; left: 50%; top: 10px; width: 150px; translate: -50% 0; }
.fact-caption { position: absolute; left: 10px; right: 10px; bottom: 10px; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
@media (max-width: 999px) {
  .collage { height: auto; display: grid; gap: 14px; }
  .fact { position: relative; inset: auto; width: 100%; height: 220px; }
  .fact-b { left: auto; top: auto; }
  .fact-c { right: auto; }
}
@media (min-width: 600px) and (max-width: 999px) {
  .collage { grid-template-columns: 1fr 1fr; }
  .fact-c { grid-column: 1 / -1; }
}

/* 3. Demo block */
.demo { padding-bottom: clamp(88px, 11vw, 150px); }
.demo-head { text-align: center; max-width: 820px; margin: 0 auto; }
.demo-head .lede { max-width: 560px; margin: 22px auto 0; color: var(--meta); }
.demo { padding-top: 24px; }
.demo-note { display: flex; justify-content: flex-end; align-items: flex-end; gap: 6px; margin: 64px 4% 0 0; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--meta); }
.demo-note svg { width: 40px; height: 52px; margin-bottom: -18px; }
.demo-note path, .deck-note path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.demo-block { position: relative; margin-top: 24px; background: var(--purple-mid); border-radius: 20px; }
.demo-perch { position: absolute; left: 6%; bottom: 100%; z-index: 2; --s: 168px; }
.demo-stage { display: flex; justify-content: center; align-items: flex-start; gap: 28px; height: clamp(420px, 46vw, 560px); padding-top: clamp(40px, 5vw, 64px); overflow: hidden; border-radius: 20px 20px 0 0; }
.demo-stage .phone-main { width: 300px; }
.demo-stage .phone-side { width: 270px; margin-top: 48px; }
@media (max-width: 960px) { .demo-stage .phone-side { display: none; } }
.demo-sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 18px 16px 20px; border-top: 1px solid rgba(17,17,17,.12); }
.demo-sources li { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 500; }
.demo-sources .i { color: var(--purple-strong); }
@media (max-width: 600px) { .demo-perch { --s: 128px; left: 2%; } .demo-sources li { height: 34px; font-size: 13px; padding: 0 12px; } }

/* Phone frames and app mockups */
.phone { width: 280px; max-width: 100%; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 44px; padding: 10px; }
.screen { position: relative; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 35px; padding: 40px 16px 22px; min-height: 560px; font-size: 13px; line-height: 1.4; color: var(--text); overflow: hidden; }
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 999px; background: var(--ink); }
.scr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.scr-hello, .scr-course { font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.chips { display: inline-flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.chip-yellow { background: var(--yellow-soft); color: var(--yellow-ink); border: 1px solid var(--yellow-mid); }
.chip-yellow .i { color: var(--flame); }
.chip-blue { background: var(--blue-soft); color: var(--blue-strong); border: 1px solid var(--blue-mid); }
.chip-green { background: var(--green-soft); color: #2E5E3C; border: 1px solid var(--green-mid); }
.bar { display: block; height: 6px; border-radius: 99px; background: var(--panel); overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.bar-wide { margin: 0 0 18px; }
.upload-card { background: var(--blue-soft); border-radius: 22px; padding: 22px 14px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.upload-drop { width: 64px; margin-bottom: 12px; }
.upload-title { font-size: 17px; line-height: 1.25; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; max-width: 200px; }
.src-rings { display: flex; gap: 5px; margin-top: 14px; }
.src-rings span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(17,17,17,.16); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.src-rings .i { width: 15px; height: 15px; }
.mini-btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; height: 38px; padding: 0 26px; border-radius: 10px; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.scr-label { margin: 20px 0 8px; font-weight: 600; color: var(--ink); }
.cont-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; }
.cont-icon { width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--purple-soft); color: var(--purple-strong); display: inline-flex; align-items: center; justify-content: center; }
.cont-text { flex: 1; min-width: 0; }
.cont-text b { display: block; color: var(--ink); }
.cont-text small { color: var(--meta); font-size: 12px; }
.section-banner { background: var(--blue-soft); border: 1px solid var(--blue-mid); border-radius: 16px; padding: 10px 14px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 2px; }
.section-banner .mono-xs { color: var(--blue-strong); }
.section-banner b { color: var(--ink); font-size: 15px; }
.path { display: flex; flex-direction: column; gap: 12px; }
.node-row { display: flex; align-items: center; gap: 12px; }
.node-row.z0 { padding-left: 6px; } .node-row.z1 { padding-left: 38px; } .node-row.z2 { padding-left: 64px; }
.node { width: 52px; height: 52px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.node.done { background: var(--blue-mid); color: var(--blue-strong); }
.node.locked { background: var(--lock); color: var(--lock-icon); border: 1px solid var(--border); }
.node.current { background: var(--bg); border: 2.5px solid var(--blue); outline: 11px solid var(--blue-soft); overflow: hidden; align-items: flex-end; margin: 6px 0; }
.node.current img { width: 38px; margin: 0; }
.node.current:has(img) { align-items: center; }
.node-label { font-size: 13px; color: var(--ink); line-height: 1.25; }
.node-label b { display: block; font-size: 14px; }
.node-label small { color: var(--blue-strong); font-family: var(--mono); text-transform: uppercase; letter-spacing: .07em; font-size: 10px; }
.node-label.muted { color: var(--muted); }
.flashcard { background: var(--yellow-soft); border: 1px solid var(--yellow-mid); border-radius: 20px; padding: 18px 16px; min-height: 250px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 12px; }
.flashcard p { font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.flashcard small { font-size: 13px; color: var(--text); }
.flashcard .mono-xs { color: var(--yellow-ink); }
.flashcard-back { background: var(--surface); border-color: var(--border-strong); }
.flip { font-size: 12px; color: var(--meta); }
.grade-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.grade-row span { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; border: 1px solid var(--border-strong); border-radius: 12px; font-weight: 600; color: var(--ink); font-size: 12px; }
.grade-row small { font-weight: 400; color: var(--meta); font-size: 11px; }
.grade-row .on { background: var(--green-soft); border-color: var(--green-mid); }
.q { font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 16px; }
.options { display: flex; flex-direction: column; gap: 8px; }
.options li { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong); color: var(--ink); font-weight: 500; }
.options .right { background: var(--green-soft); border-color: #8DBF9B; color: #1F4A2C; }
.options .right .i { color: var(--green-strong); }
.feedback { margin-top: 14px; background: var(--green-soft); border-radius: 12px; padding: 10px 12px; color: #2E5E3C; font-size: 12.5px; }
.feedback b { color: #1F4A2C; }
.pod-cover { background: var(--purple-soft); border-radius: 20px; height: 150px; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 12px; margin-bottom: 14px; overflow: hidden; }
.pod-cover .b-walk { --s: 150px; }
.pod-title { font-size: 17px; font-weight: 600; color: var(--ink); text-align: center; }
.pod-sub { text-align: center; color: var(--meta); font-size: 12px; margin-top: 2px; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 44px; margin-top: 14px; }
.wave i { display: block; width: 5px; border-radius: 3px; background: var(--purple-strong); }
.wave i.off { background: var(--purple-mid); }
.wave-sm { height: 34px; }
.play-btn { display: flex; width: 56px; height: 56px; margin: 14px auto 0; border-radius: 50%; background: var(--ink); color: var(--bg); align-items: center; justify-content: center; }
.play-btn .i { fill: currentColor; margin-left: 3px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; padding: 3px; margin-bottom: 16px; }
.seg span { text-align: center; padding: 7px 0; border-radius: 9px; font-weight: 600; color: var(--meta); font-size: 12px; }
.seg .on { background: var(--bg); color: var(--ink); border: 1px solid var(--border-strong); }
.exam-q { background: var(--blue-soft); border: 1px solid var(--blue-mid); border-radius: 18px; padding: 16px; }
.exam-q .mono-xs { color: var(--blue-strong); }
.exam-q p { margin-top: 6px; font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.mic-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 34px 0 22px; }
.mic-ring { width: 84px; height: 84px; border-radius: 50%; background: var(--blue); color: var(--ink); outline: 12px solid var(--blue-soft); display: inline-flex; align-items: center; justify-content: center; }
.mic-ring .i { width: 30px; height: 30px; }
.plan { display: flex; flex-direction: column; gap: 8px; }
.plan li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 10px 12px; min-height: 52px; }
.plan .day { width: 44px; flex: none; font-family: var(--mono); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: var(--meta); }
.plan .plan-text { flex: 1; color: var(--ink); }
.plan .plan-text small { display: block; color: #2E5E3C; font-size: 11px; }
.plan .done .plan-text { color: var(--muted); text-decoration: line-through; }
.plan .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--green-mid); color: #1F4A2C; display: inline-flex; align-items: center; justify-content: center; }
.plan .today { background: var(--green-soft); border-color: var(--green-mid); }
.plan .exam { background: var(--ink); border-color: var(--ink); }
.plan .exam .day, .plan .exam .plan-text { color: var(--bg); }
.screen-live { display: flex; flex-direction: column; align-items: center; text-align: center; }
.screen-live .scr-top { width: 100%; }
.live-brain { --s: 150px; margin-top: 8px; margin-bottom: calc(150px * (.904 - 1) + 14px); }
.live-q { font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--ink); padding: 0 4px; }
.live-actions { display: flex; gap: 16px; margin-top: 22px; }
.round { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: var(--surface); }
.round-end { background: var(--red-soft); border-color: #E0A091; color: #84261A; }

/* Tone helpers */
.tone-blue   { --t-soft: var(--blue-soft);   --t-mid: var(--blue-mid);   --t-strong: var(--blue-strong); }
.tone-green  { --t-soft: var(--green-soft);  --t-mid: var(--green-mid);  --t-strong: #2E5E3C; }
.tone-purple { --t-soft: var(--purple-soft); --t-mid: var(--purple-mid); --t-strong: var(--purple-strong); }
.tone-yellow { --t-soft: var(--yellow-soft); --t-mid: var(--yellow-mid); --t-strong: var(--yellow-ink); }

/* 4. Features: heading row, sticky pill tabs, fanned deck */
.features { padding-bottom: clamp(72px, 9vw, 120px); }
.split-head { display: grid; gap: 20px; align-items: end; }
.split-head .lede { color: var(--meta); max-width: 440px; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1.4fr 1fr; gap: 80px; } .split-head .lede { justify-self: end; } }
.tabs-bar { position: sticky; top: 92px; z-index: 20; margin: clamp(36px, 5vw, 56px) 0 28px; }
@media (max-width: 900px) { .tabs-bar { top: 72px; } }
.tabs {
  display: flex; gap: 4px; padding: 6px; background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none; position: relative;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: 1 0 auto; height: 48px; padding: 0 20px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.tabs [role="tab"]:hover { color: var(--ink); background: var(--panel2); }
.tabs [role="tab"][aria-selected="true"] { background: var(--panel); color: var(--ink); }
html:not(.js) .tabs-bar { display: none; }

.deck { position: relative; }
.card { border-radius: 24px; background: var(--t-mid); padding: 28px; display: grid; gap: 28px; }
.card-copy { display: flex; flex-direction: column; }
.card-copy .eyebrow { color: var(--ink); opacity: .8; margin-bottom: 14px; }
.card-copy h3 { font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 16px; }
.card-copy > p { color: var(--text); font-size: 16px; max-width: 400px; }
.card-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.card-visual { background: var(--t-soft); border-radius: 16px; overflow: hidden; display: flex; justify-content: center; padding-top: 28px; height: 380px; }
.card-visual .phone { width: 270px; flex: none; }

/* Desktop: a fanned stack; the active card in front, the rest rotated behind it. */
@media (min-width: 900px) {
  .js .deck { height: 600px; }
  .js .card {
    position: absolute; left: 0; top: 0; width: 80%; height: 540px;
    grid-template-columns: 1fr 1.05fr; padding: 40px 28px 28px 44px; gap: 36px;
    transform-origin: 30% 100%;
    transition: transform .7s var(--ease), opacity .5s;
  }
  .js .card-copy { padding: 4px 0 12px; }
  .js .card-ctas { margin-top: auto; }
  .js .card-visual { height: auto; }
  .card[data-pos="0"] { z-index: 10; transform: none; }
  .card[data-pos="1"] { z-index: 9; transform: translate(3%, 6px) rotate(2.5deg); }
  .card[data-pos="2"] { z-index: 8; transform: translate(6%, 12px) rotate(5deg); }
  .card[data-pos="3"] { z-index: 7; transform: translate(9%, 18px) rotate(7.5deg); }
  .card[data-pos="4"], .card[data-pos="5"], .card[data-pos="6"] { z-index: 6; transform: translate(11%, 22px) rotate(9.5deg); }
  .card[data-pos="1"] > *, .card[data-pos="2"] > *, .card[data-pos="3"] > *, .card[data-pos="4"] > *, .card[data-pos="5"] > *, .card[data-pos="6"] > * { visibility: hidden; }
  .card.leaving { z-index: 12; transform: translate(-115%, 40px) rotate(-10deg); opacity: 0; }
  .card.leaving > * { visibility: visible; }
  /* The front card can be dragged sideways; up and down still scroll the page. */
  .js .card[data-pos="0"] { cursor: grab; touch-action: pan-y; }
  .js .deck.dragging .card[data-pos="0"] { transition: none; cursor: grabbing; }
}
.js .deck.dragging { user-select: none; -webkit-user-select: none; }
/* Phones and tablets: a swipeable row of cards. */
@media (max-width: 899px) {
  .js .deck { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
  .js .deck::-webkit-scrollbar { display: none; }
  /* While a mouse drags the row, snapping waits until it's let go. */
  .js .deck.dragging { scroll-snap-type: none; cursor: grabbing; }
  .js .card { flex: 0 0 88%; scroll-snap-align: start; }
  .card-visual { height: 340px; }
  .card-ctas .btn { flex: 1; }
}
html:not(.js) .deck { display: grid; gap: 16px; }
@media (min-width: 900px) { html:not(.js) .card { grid-template-columns: 1fr 1fr; } }

.deck-note { display: flex; align-items: flex-start; gap: 10px; margin: 40px 0 0 18%; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--meta); }
.deck-note svg { width: 36px; height: 56px; }

/* Dark blocks */
.dark { background: var(--ink); color: var(--cream-dim); }
.dark h2, .dark h3 { color: var(--bg); }
.dark .eyebrow { color: var(--cream-dim); }
.eyebrow-rule { padding-bottom: 16px; border-bottom: 1px solid var(--cream-line); margin-bottom: 32px; }

/* 5. How it works (dark, big numerals) */
.how { padding: clamp(88px, 11vw, 150px) 0; }
.how-grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .how-grid { grid-template-columns: 1fr 1.2fr; gap: 96px; } }
.how-intro h2 { margin-bottom: 36px; }
.how-tile { position: relative; margin-top: 56px; width: min(340px, 100%); height: 300px; border-radius: 20px; background: var(--yellow-mid); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding-bottom: 22px; }
.how-tile .b-run { --s: 270px; position: relative; z-index: 1; }
.how-tile .ground { left: 8%; width: 84%; bottom: 18px; }
.tile-tag { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.tile-tag .i { color: var(--flame); }

@media (max-width: 999px) { .how-tile { margin-top: 40px; height: 240px; } .how-tile .b-run { --s: 196px; } }
.how-rows li { display: grid; grid-template-columns: auto auto 1fr; gap: 28px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--cream-line); }
.how-rows li:first-child { padding-top: 0; }
.how-num { font-size: clamp(64px, 8vw, 112px); font-weight: 300; line-height: .9; letter-spacing: -0.06em; color: var(--bg); min-width: 1.3em; }
.how-icon { width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--cream-dim); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.how-rows h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.how-rows p { font-size: 16px; }
@media (max-width: 600px) {
  .how-rows li { grid-template-columns: 1fr; gap: 18px; }
  .how-icon { width: 52px; height: 52px; }
}

/* 6. Calm study: full-bleed colour block with slides */
.calm { background: var(--blue-mid); padding: clamp(80px, 10vw, 128px) 0 56px; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; display: grid; gap: 40px; align-items: center;
  opacity: 0; visibility: hidden; transform: translateX(32px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s .6s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
html:not(.js) .slide { grid-area: auto; opacity: 1; visibility: visible; transform: none; margin-bottom: 48px; }
@media (min-width: 900px) { .slide { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.slide-copy .eyebrow { color: var(--ink); opacity: .75; }
.slide-copy h3 { margin-bottom: 20px; }
.slide-copy p { color: var(--text); max-width: 440px; margin-bottom: 32px; }
.slides { position: relative; }
.slide-art { position: relative; background: var(--bg); border-radius: 20px; height: clamp(320px, 34vw, 440px); display: flex; align-items: center; justify-content: flex-start; padding-left: 9%; overflow: hidden; }
.calm-brain { position: absolute; right: 5%; bottom: 26px; z-index: 2; pointer-events: none; }
.calm-brain .b-breathe { --s: 230px; }
.calm-brain::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -4px; height: 2px; border-radius: 2px; background: var(--ink); }
html:not(.js) .calm-brain { display: none; }
.mini { position: relative; z-index: 1; width: 260px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
/* The ring is the time left (--p, 1 to 0), drawn clockwise from the top. */
.timer-ring { --p: .748; position: relative; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--blue) calc(var(--p) * 1turn), var(--blue-soft) 0); display: flex; align-items: center; justify-content: center; }
.timer-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg); }
.timer-ring b { position: relative; font-size: 32px; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
button.mini-btn { border: 0; cursor: pointer; min-width: 104px; }
button.mini-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.mini .mini-btn { margin-top: 0; }
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: 100%; }
.moods span { font-size: 11px; color: var(--meta); padding: 34px 0 6px; border-radius: 12px; border: 1px solid var(--border); position: relative; }
.moods span::before { content: ""; position: absolute; top: 9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--yellow-mid); }
.moods .on { background: var(--yellow-soft); border-color: var(--yellow-mid); color: var(--ink); font-weight: 600; }
.moods .on::before { background: #DCC896; }
.mini-dump ul { width: 100%; display: grid; gap: 6px; text-align: left; }
.mini-dump li { background: var(--green-soft); border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--ink); }
@media (max-width: 899px) {
  .slide-art { height: auto; flex-direction: column; justify-content: flex-start; align-items: center; padding: 24px 24px 196px; }
  .calm-brain { right: 50%; translate: 50% 0; bottom: 24px; }
  .calm-brain .b-breathe { --s: 168px; }
}
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(17,17,17,.28); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.dots button[aria-selected="true"] { width: 30px; background: var(--ink); }
.dots button::after { content: ""; display: block; margin: -12px; height: 32px; }
html:not(.js) .dots { display: none; }

/* 7. FAQ */
.faq { padding: clamp(88px, 11vw, 150px) 0; }
.faq-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 0.95fr 1.05fr; gap: 96px; align-items: start; } }
.faq-intro .lede { margin: 22px 0 30px; max-width: 420px; color: var(--meta); }
.faq-tile { position: relative; margin-top: 56px; width: min(420px, 100%); height: 320px; border-radius: 20px; background: var(--purple-mid); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 20px; overflow: hidden; }
.faq-tile .b-think { --s: 250px; position: relative; z-index: 1; }
.faq-tile .ground { left: 10%; width: 80%; bottom: 16px; }
.bubble-faq { position: absolute; left: 22px; top: 26px; z-index: 2; font-size: 14px; }
.bubble-faq::after { right: 26px; bottom: -8px; rotate: -45deg; }
@media (max-width: 999px) { .faq-tile { display: none; } }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--border-strong); border-radius: 18px; background: var(--bg); transition: background-color .2s, border-color .2s; }
.faq-list details:hover { border-color: var(--meta); }
.faq-list details[open] { background: var(--surface); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.plus { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; transition: transform .3s var(--ease), background-color .2s; }
.faq-list details[open] .plus { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq-list details p { padding: 0 28px 26px; font-size: 16px; max-width: 560px; }
@media (max-width: 600px) { .faq-list summary { padding: 20px; font-size: 16px; } .faq-list details p { padding: 0 20px 20px; } }

/* 8 + 9. Dark run: testimonials and closing CTA */
.dark-run { background: var(--ink); border-radius: 0 0 clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px); }
.quotes-sec { padding: clamp(88px, 11vw, 140px) 0 clamp(56px, 7vw, 96px); background: transparent; }
.quotes-sec h2 { max-width: 720px; }
.quote-rows { display: grid; gap: clamp(40px, 5vw, 64px); margin-top: clamp(48px, 6vw, 80px); }
.qrow { margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 24px; max-width: 900px; }
.qrow-indent { margin-left: clamp(0px, 12vw, 180px); }
.qrow blockquote { margin: 0; }
.qrow blockquote p { font-size: clamp(21px, 2.3vw, 30px); line-height: 1.35; font-weight: 300; color: var(--bg); letter-spacing: -0.02em; }
.qrow figcaption { margin-top: 14px; font-size: 14px; color: var(--cream-dim); }
.q-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--t-mid); color: var(--ink); font-weight: 700; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .qrow { grid-template-columns: 1fr; gap: 16px; } .q-avatar { width: 52px; height: 52px; } }

.final { padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); background: transparent; border-top: 1px solid var(--cream-line); }
.final-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .final-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.final-copy .lede { color: var(--cream-dim); margin: 22px 0 32px; max-width: 440px; }
.final-scene { position: relative; height: 320px; border-radius: 24px; background: var(--green-mid); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px; overflow: hidden; }
.final-scene .b-lounge { --s: 340px; position: relative; z-index: 1; }
.final-scene .ground { left: 8%; width: 84%; bottom: 20px; }
@media (max-width: 899px) { .final-scene { height: 250px; } .final-scene .b-lounge { --s: 270px; } }

/* Footer */
.site-footer { padding: clamp(64px, 8vw, 96px) 0 28px; }
.footer-top { display: grid; gap: 48px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr 2fr; gap: 64px; } }
.footer-brand p { margin-top: 16px; max-width: 280px; font-size: 15px; color: var(--meta); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols ul { display: grid; gap: 12px; }
.footer-cols a { text-decoration: none; color: var(--text); font-size: 15px; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-mascot { position: relative; height: 140px; margin-top: 40px; }
.footer-mascot .b-walk { --s: 132px; position: absolute; right: 12%; bottom: 13px; }
.footer-mascot .ground { left: auto; right: 0; width: 40%; }
@media (max-width: 640px) { .footer-mascot .ground { width: 70%; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--meta); }
.footer-bottom ul { display: flex; gap: 24px; }
.footer-bottom a { text-decoration: none; color: var(--meta); }
.footer-bottom a:hover { color: var(--ink); text-decoration: underline; }

/* Phone-width tuning */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn-xl { height: 64px; padding: 0 40px; font-size: 18px; }
  .faq-intro .cta-row .btn, .final-copy .cta-row .btn { flex: 1 1 100%; }
  .slide-copy .btn { width: 100%; }
  .card { padding: 22px 18px 18px; }
  .announce { font-size: 13px; padding: 9px 44px 9px 14px; text-align: left; }
}
