/* The Curated Curriculum
   Theme: light only (brief asks for bright).
   Radius rule: cards 20px, buttons + tags full pill, inputs 12px.
   Colour rule: cobalt is the only accent. Lime is used solely as the flat
   highlighter behind key words and on a few 3D tiles. */

:root {
  --paper: #F5F7FA;
  --paper-2: #E8EEF6;
  --white: #FCFDFE;
  --ink: #0D1B2A;
  --ink-2: #46546B;
  --ink-3: #6B7890;
  --line: #D6DEE9;
  --accent: #2747F5;
  --accent-deep: #1A33C9;
  --accent-soft: #DCE3FF;
  --lime: #D8F35E;

  --f-display: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Satoshi", "Helvetica Neue", Arial, sans-serif;

  --r-card: 20px;
  --r-input: 12px;
  --r-pill: 999px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(13, 27, 42, .04), 0 12px 32px -12px rgba(23, 45, 110, .18);

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(88px, 11vw, 150px);

  /* z-index scale */
  --z-nav: 50;
  --z-menu: 60;
  --z-skip: 100;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: var(--z-skip);
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-pill);
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede {
  color: var(--ink-2);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  max-width: 34em;
}
.eyebrow {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 860px; }

/* highlighter */
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark__bg {
  position: absolute; left: -.08em; right: -.1em; bottom: .06em; height: .52em;
  background: var(--lime); border-radius: 4px; z-index: 0;
  transform-origin: left center;
}
.mark__txt { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 26px;
  border-radius: var(--r-pill);
  font-family: var(--f-body); font-weight: 700; font-size: 16px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.98); }
.btn .ph { font-size: 18px; transition: transform .3s var(--ease); }
.btn:hover .ph-arrow-right { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--white); color: var(--accent); }
.btn--light:hover { background: var(--lime); color: var(--ink); }
.btn--sm { --bh: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  transition: transform .45s var(--ease), background-color .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(245, 247, 250, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 72px; display: flex; align-items: center; gap: 32px; }
.logo {
  font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; color: var(--ink);
}
.logo__the { color: var(--ink-3); font-weight: 500; margin-right: .25em; }
.logo__br { color: var(--accent); font-weight: 500; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: 16px; }
.nav__links a { text-decoration: none; color: var(--ink-2); position: relative; padding: 4px 0; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; }

.mobile-menu {
  position: fixed; inset: 72px 0 auto 0; z-index: var(--z-menu);
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 28px; display: grid; gap: 4px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 0; font-family: var(--f-display); font-weight: 700; font-size: 26px; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { padding-top: 72px; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px);
  align-items: center; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px);
}
.hero__copy { display: grid; gap: 28px; align-content: center; }
.hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(46px, 6.1vw, 88px);
  line-height: .98; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; }
.hero__sub { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 30em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }

.hero__visual { position: relative; aspect-ratio: 4 / 5; max-height: calc(100dvh - 140px); justify-self: center; width: 100%; max-width: 520px; }
.hero__photo { position: absolute; inset: 6% 8%; border-radius: var(--r-card); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.hero__tiles { position: absolute; inset: -10% -14%; width: 128%; height: 120%; pointer-events: none; }

/* ---------- Topics marquee ---------- */
.topics { border-block: 1px solid var(--line); background: var(--white); overflow: hidden; padding: 22px 0; }
.topics__track { display: flex; width: max-content; }
.topics__list { display: flex; flex-shrink: 0; }
.topics__list li {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.01em;
  padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 56px;
}
.topics__list li::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); margin-left: 28px; margin-right: -28px; }
.topics__list li:nth-child(3n+2) { color: var(--accent); }

/* ---------- Statement ---------- */
.statement { padding: var(--sec) 0; }
.statement__text {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -.02em;
  max-width: 1100px;
}
.statement__text .word, .quote__text .word { display: inline; }

/* ---------- How (horizontal pan) ---------- */
.how { background: var(--paper-2); border-radius: 36px 36px 0 0; }
.how__pin { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 4vw, 56px); padding: clamp(80px, 9vw, 120px) 0; overflow: hidden; }
.how__head { display: grid; gap: 16px; }
.how__track {
  display: flex; gap: 20px; width: max-content;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-right: var(--gutter);
}
.step {
  width: clamp(290px, 28vw, 380px); min-height: 420px; flex-shrink: 0;
  background: var(--white); border-radius: var(--r-card); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.step p { color: var(--ink-2); }
.step__icon { font-size: 40px; color: var(--accent); margin-bottom: auto; }
.step__title { font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1.08; letter-spacing: -.015em; }
.step--accent { background: var(--accent); color: var(--white); }
.step--accent p { color: rgba(252, 253, 254, .82); }
.step--accent .step__icon { color: var(--lime); }
.step--tint { background: var(--accent-soft); }
.step--photo { padding: 0; overflow: hidden; width: clamp(300px, 32vw, 440px); }
.step--photo img { width: 100%; height: 100%; object-fit: cover; }
.step--anatomy { width: clamp(320px, 34vw, 460px); background: var(--ink); color: var(--paper); }
.step--anatomy .step__title { margin-bottom: 8px; }
.anatomy { display: grid; gap: 0; counter-reset: a; }
.anatomy li {
  counter-increment: a; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px;
  padding: 10px 0; border-top: 1px solid rgba(245, 247, 250, .14); font-size: 15px; color: rgba(245, 247, 250, .7);
}
.anatomy li::before { content: counter(a); grid-row: span 2; font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--lime); line-height: 1.3; }
.anatomy li span { color: var(--paper); font-weight: 700; font-size: 17px; }

/* Step visuals: each one shows what the step means. They play once,
   when the card enters view (.is-in is added by main.js). */
.viz { position: relative; flex: 1; min-height: 230px; margin-bottom: 12px; }

/* Level ladder */
.viz--levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; padding-top: 44px; }
.lvl { position: relative; display: grid; gap: 8px; height: 100%; align-content: end; }
.lvl__bar { display: block; border-radius: 10px; background: var(--accent-soft); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); }
.lvl:nth-child(1) .lvl__bar { height: 62px; }
.lvl:nth-child(2) .lvl__bar { height: 98px; transition-delay: .08s; }
.lvl:nth-child(3) .lvl__bar { height: 136px; transition-delay: .16s; background: var(--accent); }
.lvl:nth-child(4) .lvl__bar { height: 172px; transition-delay: .24s; }
.lvl__lab { font-family: var(--f-display); font-weight: 800; font-size: 18px; text-align: center; color: var(--ink-3); }
.lvl.is-you .lvl__lab { color: var(--ink); }
.lvl__pin {
  position: absolute; left: 50%; bottom: calc(136px + 40px); transform: translate(-50%, 8px); opacity: 0;
  background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; white-space: nowrap;
  padding: 5px 11px; border-radius: var(--r-pill); transition: opacity .5s .7s, transform .6s .7s var(--ease);
}
.lvl__pin::after { content: ""; position: absolute; left: 50%; top: 100%; border: 6px solid transparent; border-top-color: var(--ink); transform: translateX(-50%); }
.is-in .lvl__bar { transform: scaleY(1); }
.is-in .lvl__pin { opacity: 1; transform: translate(-50%, 0); }

/* Topic chips */
.viz--chips span {
  position: absolute; left: var(--x); top: var(--y);
  background: var(--white); color: var(--ink); white-space: nowrap;
  font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  padding: 10px 18px; border-radius: var(--r-pill);
  transform: translateY(-60px) rotate(0deg); opacity: 0;
  transition: transform .9s var(--ease), opacity .4s;
}
.viz--chips span.is-lime { background: var(--lime); }
.viz--chips span:nth-child(2) { transition-delay: .07s; }
.viz--chips span:nth-child(3) { transition-delay: .14s; }
.viz--chips span:nth-child(4) { transition-delay: .21s; }
.viz--chips span:nth-child(5) { transition-delay: .28s; }
.viz--chips span:nth-child(6) { transition-delay: .35s; }
.is-in .viz--chips span { transform: translateY(0) rotate(var(--r)); opacity: 1; }

/* Grammar correction */
.viz--fix { display: grid; align-content: center; gap: 6px; }
.step .fix__line { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.fix__line s { text-decoration: none; position: relative; color: var(--ink-3); }
.fix__line s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 3px; background: #C2263B; border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .5s .3s var(--ease); }
.fix__new { display: inline-block; color: var(--accent); transform: translateY(10px); opacity: 0; transition: transform .6s .75s var(--ease), opacity .4s .75s; }
.fix__hl { background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 85% / 0% .45em; transition: background-size .7s 1.1s var(--ease); }
.fix__note { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent) !important; opacity: 0; transition: opacity .5s 1.4s; }
.is-in .fix__line s::after { transform: scaleX(1); }
.is-in .fix__new { transform: none; opacity: 1; }
.is-in .fix__hl { background-size: 100% .45em; }
.is-in .fix__note { opacity: 1; }

/* Reading photo */
.viz--photo { border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.viz--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.is-in .viz--photo img { transform: scale(1); }

/* Personal colour schemes */
.viz--themes { display: grid; align-content: center; gap: 14px; }
.theme { display: flex; align-items: center; background: var(--white); border-radius: 16px; padding: 12px 16px; transform: translateX(40px); opacity: 0; transition: transform .8s var(--ease), opacity .5s; }
.theme:nth-child(2) { transition-delay: .1s; }
.theme:nth-child(3) { transition-delay: .2s; }
.theme span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--white); margin-right: -10px; background: var(--a); }
.theme span:nth-child(2) { background: var(--b); }
.theme span:nth-child(3) { background: var(--c); }
.theme b { margin-left: 22px; font-family: var(--f-display); font-weight: 700; font-size: 17px; }
.is-in .theme { transform: none; opacity: 1; }

/* Difficulty dials */
.viz--dial { display: grid; align-content: center; gap: 10px; }
.dial__row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.dial__row--2 { margin-top: 18px; }
.dial__track { position: relative; height: 10px; border-radius: var(--r-pill); background: var(--paper-2); --to: 42%; --from: 82%; }
.dial__track--2 { --to: 30%; --from: 70%; }
.dial__fill { position: absolute; inset: 0 auto 0 0; width: var(--from); border-radius: inherit; background: var(--accent); transition: width 1.1s .3s var(--ease); }
.dial__knob { position: absolute; top: 50%; left: var(--from); width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); transform: translate(-50%, -50%); box-shadow: var(--shadow); transition: left 1.1s .3s var(--ease); }
.is-in .dial__fill { width: var(--to); }
.is-in .dial__knob { left: var(--to); }

/* ---------- Missions bento ---------- */
.missions { padding: var(--sec) 0; }
.bento {
  display: grid; gap: 20px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "a a a a a a a d d d d d"
    "b b b b b b c c c c c c"
    "e e e e e f f f f f f f";
}
.bento__a { grid-area: a; }
.bento__b { grid-area: b; }
.bento__c { grid-area: c; }
.bento__d { grid-area: d; }
.bento__e { grid-area: e; }
.bento__f { grid-area: f; }

.card { border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.card p { color: var(--ink-2); font-size: 16px; }
.card b { color: var(--ink); font-weight: 700; }
.card__body { padding: 28px; display: grid; gap: 10px; align-content: start; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-weight: 500; font-size: 15px !important; }
.card__meta span { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; padding: 2px 10px; border-radius: var(--r-pill); font-size: 13px; }
.card__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.015em; }
.card__media { overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.bento__d .card__media { aspect-ratio: 4 / 3.2; }
.card--side { flex-direction: row; }
.card--side .card__media { aspect-ratio: auto; flex: 0 0 42%; }
.card--solid { background: var(--accent); padding: 32px; gap: 12px; justify-content: flex-end; min-height: 300px; }
.card--solid p, .card--solid b { color: var(--white); }
.card--solid p { opacity: .85; }
.card--solid .card__meta span { background: var(--lime); color: var(--ink); }
.card--solid .card__title { color: var(--white); }
.card--tint { background: var(--paper-2); padding: 32px; gap: 12px; justify-content: flex-end; min-height: 300px; }
.card--solid, .card--tint { display: grid; align-content: end; }

/* ---------- Teacher ---------- */
.teacher { padding: 0 0 var(--sec); }
.teacher__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.teacher__photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.teacher__photo img { width: 100%; height: 115%; object-fit: cover; }
.teacher__copy { display: grid; gap: 22px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.fact { background: var(--white); border-radius: 16px; padding: 18px 18px 20px; display: grid; gap: 6px; align-content: start; }
.fact dt { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.fact dd { font-size: 16px; line-height: 1.35; color: var(--ink-2); }
.fact dd b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1.05; color: var(--ink); letter-spacing: -.02em; }

/* ---------- Courses ---------- */
.courses { padding: var(--sec) 0; background: var(--white); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 14px; background: var(--paper);
  transition: transform .4s var(--ease), border-color .3s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--ink-3); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan__name { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.plan__tag { background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: var(--r-pill); }
.plan__tag--soft { background: var(--accent-soft); color: var(--accent-deep); }
.plan__price { font-family: var(--f-display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -.03em; margin-top: 8px; }
.plan__per { font-weight: 700; color: var(--ink-2); font-size: 15px; }
.plan__text { color: var(--ink-2); font-size: 16px; flex-grow: 1; }
.plan .btn { margin-top: 8px; }
.plan--feature { background: var(--accent); border-color: var(--accent); color: var(--white); }
.plan--feature:hover { border-color: var(--accent); }
.plan--feature .plan__per, .plan--feature .plan__text { color: rgba(252, 253, 254, .85); }
.blocks { display: flex; flex-wrap: wrap; gap: 4px; min-height: 28px; align-content: flex-start; max-width: 200px; }
.blocks i { width: 16px; height: 12px; border-radius: 3px; background: var(--accent); display: block; }
.plan--feature .blocks i { background: var(--lime); }

/* ---------- Parents (sticky stack) ---------- */
.parents { padding: var(--sec) 0; }
.parents__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.parents__head { position: sticky; top: 120px; display: grid; gap: 20px; }
.parents__photo { border-radius: var(--r-card); overflow: hidden; margin-top: 16px; aspect-ratio: 3 / 2; }
.parents__photo img { width: 100%; height: 100%; object-fit: cover; }
.stack { display: grid; gap: 24px; padding-bottom: 8vh; }
.stack__card {
  position: sticky; top: 120px;
  background: var(--white); border-radius: var(--r-card); padding: clamp(28px, 3vw, 44px);
  min-height: 340px; display: flex; flex-direction: column; gap: 14px; justify-content: flex-end;
  box-shadow: var(--shadow); transform-origin: 50% 0;
}
.stack__card:nth-child(2) { top: 140px; }
.stack__card:nth-child(3) { top: 160px; }
.stack__card:nth-child(4) { top: 180px; }
.stack__card h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -.015em; }
.stack__card p { color: var(--ink-2); max-width: 30em; }
.stack__icon { font-size: 44px; color: var(--accent); margin-bottom: auto; }
.stack__card--accent { background: var(--accent); color: var(--white); }
.stack__card--accent p { color: rgba(252, 253, 254, .85); }
.stack__card--accent .stack__icon { color: var(--lime); }
.stack__card--tint { background: var(--paper-2); }
.stack__extra { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--ink) !important; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.stack__extra .ph { font-size: 22px; color: var(--accent); }

/* ---------- Quote ---------- */
.quote { padding: calc(var(--sec) * .6) 0 var(--sec); }
.quote__fig { display: grid; gap: 28px; max-width: 1100px; }
.quote__text {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.12; letter-spacing: -.02em; text-wrap: balance;
}
.quote__cap { font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 14px; }
.quote__cap::before { content: ""; width: 40px; height: 2px; background: var(--accent); }

/* ---------- FAQ ---------- */
.faq { padding: var(--sec) 0; background: var(--white); border-radius: 36px 36px 0 0; }
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__side { position: sticky; top: 120px; display: grid; gap: 32px; }
.hours { display: flex; gap: 16px; background: var(--paper-2); border-radius: var(--r-card); padding: 26px; }
.hours .ph { font-size: 32px; color: var(--accent); }
.hours__label { font-weight: 700; }
.hours__time { font-family: var(--f-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; line-height: 1.15; }
.hours__note { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa h3 { font-size: inherit; }
.qa button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: none; border: 0; padding: 26px 0; cursor: pointer; text-align: left;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(21px, 1.9vw, 26px); letter-spacing: -.01em;
}
.qa button .ph { font-size: 22px; flex-shrink: 0; transition: transform .4s var(--ease); color: var(--accent); }
.qa button[aria-expanded="true"] .ph { transform: rotate(45deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa__a p { color: var(--ink-2); padding-bottom: 26px; max-width: 36em; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }

/* ---------- Start / form ---------- */
.start { padding: var(--sec) 0; background: var(--white); }
.start__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.start__copy { display: grid; gap: 24px; }
.start__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.start__title .mark { white-space: normal; display: inline; }
.start__title .mark__bg { display: none; }
.start__title .mark__txt { background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 88% / var(--hl, 100%) .42em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.contact { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.contact li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.contact .ph { font-size: 22px; color: var(--accent); }
.contact a { text-decoration: none; border-bottom: 1.5px solid var(--line); transition: border-color .2s; }
.contact a:hover { border-color: var(--accent); }

.form-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-input);
  border: 1.5px solid #B9C4D4; background: var(--white); color: var(--ink);
  font: 500 16px/1 var(--f-body); transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 256 256'%3E%3Cpath fill='%2346546B' d='M213.7 101.7l-80 80a8 8 0 0 1-11.4 0l-80-80a8 8 0 0 1 11.4-11.4L128 164.7l74.3-74.4a8 8 0 0 1 11.4 11.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field input::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input, .field.has-error select { border-color: #C2263B; }
.field__err { color: #B01F33; font-size: 14px; font-weight: 500; min-height: 0; }
.field__err:empty { display: none; }
.field__help { color: var(--ink-3); font-size: 14px; }
.form__err { color: #B01F33; font-weight: 500; font-size: 15px; }
.btn__loading { display: none; }
.is-loading .btn__label { display: none; }
.is-loading .btn__loading { display: inline; }
.is-loading { pointer-events: none; opacity: .8; }
.form-done { display: grid; gap: 10px; justify-items: start; padding: 24px 0; outline: none; }
.form-done[hidden] { display: none; }
.form-done .ph { font-size: 48px; color: var(--accent); }
.form-done h3 { font-family: var(--f-display); font-weight: 800; font-size: 32px; letter-spacing: -.015em; }
.form-done p { color: var(--ink-2); }

/* ---------- Footer ---------- */
.foot { background: var(--white); border-top: 1px solid var(--line); }
.foot__inner { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; font-weight: 500; font-size: 15px; }
.foot__links a { text-decoration: none; color: var(--ink-2); }
.foot__links a:hover { color: var(--accent); }
.foot__small { grid-column: 1 / -1; color: var(--ink-3); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 20px; font-size: 15px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; border-radius: var(--r-pill); border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
  }
  .nav__toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; max-height: none; }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "a a" "d d" "b b" "c c" "e f";
  }
  .teacher__inner, .parents__inner, .faq__inner, .start__inner { grid-template-columns: 1fr; }
  .parents__head, .faq__side { position: static; }
  .teacher__photo { aspect-ratio: 16 / 10; }
}

@media (max-width: 767px) {
  body { font-size: 17px; }
  .hero__title { font-size: clamp(42px, 12vw, 56px); }
  .hero__ctas .btn { flex: 1 1 auto; }

  /* horizontal pan collapses to a vertical list */
  .how__pin { min-height: 0; }
  .how__track { flex-direction: column; width: 100%; padding: 0 var(--gutter); }
  .step, .step--photo, .step--anatomy { width: 100%; min-height: 0; }
  .step__icon { margin-bottom: 8px; }
  .viz { min-height: 200px; flex: none; }
  .viz--levels { height: 230px; }
  .step--photo { aspect-ratio: 4 / 3; }

  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "d" "b" "c" "e" "f"; }
  .card--side { flex-direction: column; }
  .card--side .card__media { aspect-ratio: 16 / 9; flex: none; }

  .plans { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stack__card { position: relative; top: 0 !important; min-height: 0; }
  .foot__inner { grid-template-columns: 1fr; }
  .foot__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
}
