/* MedStreak marketing site */
:root {
  --primary: #2BB673;
  --primary-dark: #1E8E59;
  --primary-soft: #E3F7EC;
  --btn-green: #1A8452;       /* AA-contrast button face (white text 4.7:1) */
  --btn-green-edge: #11603B;
  --accent: #FF7A59;
  --xp: #FFC83D;
  --streak: #FF9F1C;
  --energy: #4C8DFF;
  --text: #1F2A44;
  --muted: #56647F;           /* darkened from #6B7A99 for AA on white */
  --bg: #F7F9FC;
  --card: #FFFFFF;
  --border: #E3E8F0;
  --mascot: #FF6B8A;
  --mascot-dark: #D94A6A;
  --vr: #4C8DFF; --dm: #9B5DE5; --qr: #00B8A9; --sjt: #FF7A59;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 2px 0 var(--border);
  --nav-h: 72px;
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--btn-green); }
h1, h2, h3 { font-weight: 900; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons (chunky 3D) ---------- */
.btn {
  --face: var(--btn-green); --edge: var(--btn-green-edge); --ink: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 900; font-size: 1.0625rem; letter-spacing: .02em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  color: var(--ink); background: var(--face);
  border: 0; border-radius: 16px;
  padding: 14px 24px;
  box-shadow: 0 5px 0 var(--edge);
  cursor: pointer;
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { filter: brightness(1.07); }
.btn:active, .btn.is-pressed { transform: translateY(5px); box-shadow: 0 0 0 var(--edge); }
.btn--sm { padding: 10px 16px; font-size: .9375rem; border-radius: 14px; box-shadow: 0 4px 0 var(--edge); }
.btn--sm:active { transform: translateY(4px); }
.btn--lg { padding: 16px 28px; font-size: 1.1875rem; border-radius: 18px; }
.btn--block { width: 100%; }
.btn--ghost {
  --face: #fff; --edge: #D5DCE6; --ink: var(--btn-green);
  border: 2px solid #D5DCE6;
}
.btn--ghost:hover { filter: none; background: #F6FBF8; }
.btn--blue { --face: #2F6FE0; --edge: #1F4FA8; }
.btn--white { --face: #fff; --edge: #0E5E38; --ink: var(--btn-green); }
.btn__icon { width: 24px; height: 24px; flex: none; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; text-transform: none; font-size: 1.25rem; letter-spacing: 0; }
.btn__stack small { font-size: .75rem; font-weight: 700; opacity: .92; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-color: var(--border); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--primary-dark); flex: none; }
.logo__mascot { width: 38px; height: 38px; transition: transform .3s var(--ease-bounce); }
.logo:hover .logo__mascot { transform: rotate(-10deg) scale(1.1); }
.logo__word { font-weight: 900; font-size: 1.6rem; letter-spacing: -.02em; color: var(--btn-green); }
.logo__word span { color: var(--mascot-dark); }
.nav__links { display: flex; gap: 4px; margin-left: 12px; }
.nav__links a {
  color: var(--muted); text-decoration: none; font-weight: 800; font-size: 1rem;
  padding: 8px 12px; border-radius: 12px; transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--text); background: var(--bg); }
.nav__faq { display: none; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.region-toggle {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--bg); border: 2px solid var(--border); border-radius: 14px;
}
.region-toggle__btn {
  font: inherit; font-weight: 800; font-size: .875rem; color: var(--muted);
  background: transparent; border: 0; border-radius: 10px; padding: 6px 10px; cursor: pointer;
  white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s;
}
.region-toggle__btn[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 2px 0 var(--border); }
.region-toggle--lg .region-toggle__btn { font-size: 1rem; padding: 10px 16px; }

.nav__burger {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--border);
  background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav__burger span { display: block; width: 18px; height: 3px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Floating shapes ---------- */
.shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.shape {
  position: absolute; left: var(--x); top: var(--y);
  width: 28px; height: 28px; opacity: .85;
  translate: 0 var(--py, 0px);
  animation: floaty 6s ease-in-out infinite;
}
.shape:nth-child(2n) { animation-duration: 7.5s; animation-delay: -2s; }
.shape:nth-child(3n) { animation-duration: 9s; animation-delay: -4s; }
.shape--dot { border-radius: 50%; background: var(--c); width: 18px; height: 18px; }
.shape--lg { width: 30px; height: 30px; }
.shape--ring { border-radius: 50%; border: 6px solid var(--c); width: 36px; height: 36px; }
.shape--pill { width: 46px; height: 18px; border-radius: 99px; background: var(--c); rotate: -25deg; }
.shape--plus { background: linear-gradient(var(--c), var(--c)) center / 100% 8px no-repeat, linear-gradient(var(--c), var(--c)) center / 8px 100% no-repeat; border-radius: 4px; }
.shape--white { --c: rgba(255,255,255,.55); }
.shape--white.shape--dot { background: rgba(255,255,255,.5); }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(14deg); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% 0%, #EAFBF2 0%, transparent 60%), linear-gradient(180deg, #F2FBF6 0%, #F7F9FC 100%);
  padding: 48px 0 110px;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--btn-green);
  background: #fff; border: 2px solid var(--primary-soft); padding: 6px 14px; border-radius: 99px; font-size: .9375rem;
}
.eyebrow__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(43,182,115,.5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(43,182,115,.5); } 80%,100% { box-shadow: 0 0 0 10px rgba(43,182,115,0); } }
.hero__title { font-size: clamp(2.35rem, 5.6vw, 4.1rem); margin: 18px 0 18px; }
.hl { color: var(--btn-green); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .26em; z-index: -1;
  background: var(--xp); border-radius: 99px; opacity: .55;
  transform-origin: left; animation: underline 1s .5s var(--ease-bounce) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); font-weight: 700; max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 28px; margin-top: 28px; }
.hero__fine { color: var(--muted); font-size: .9375rem; margin-top: 18px; }

.waitlist { min-width: 0; flex: 1 1 260px; max-width: 360px; margin: 0; }
.waitlist__label { margin: 0 0 6px; font-size: .9375rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-block; font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; }
.badge--soon { background: #E6EFFF; color: #2556B8; }
.waitlist__row { display: flex; gap: 8px; }
.waitlist input {
  flex: 1; min-width: 0; font: inherit; font-weight: 700; font-size: 1rem; color: var(--text);
  padding: 10px 14px; border: 2px solid #D5DCE6; border-radius: 14px; background: #fff;
}
.waitlist input::placeholder { color: #8390A8; }
.waitlist input:focus { outline: none; border-color: var(--energy); box-shadow: 0 0 0 3px rgba(76,141,255,.25); }
.waitlist input[aria-invalid="true"] { border-color: #E5484D; }
.waitlist__msg { min-height: 1.4em; margin: 6px 0 0; font-size: .875rem; }
.waitlist__msg.ok { color: var(--btn-green); }
.waitlist__msg.err { color: #C62F35; }

.hero__art { position: relative; display: flex; justify-content: flex-end; align-items: center; min-height: 560px; padding-right: 10px; }

/* Phone mockup */
.phone {
  position: relative; width: 290px; height: 580px; border-radius: 46px;
  background: #1F2A44; padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(31,42,68,.45), inset 0 0 0 2px #36415E;
  transform: rotate(3deg);
  animation: phoneIn .9s .1s var(--ease-bounce) both;
}
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotate(8deg) scale(.95); } to { opacity: 1; transform: rotate(3deg); } }
.phone__notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 24px; border-radius: 99px; background: #1F2A44; translate: -50% 0; z-index: 3; }
.phone__screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #fff;
  padding: 54px 16px 16px; display: flex; flex-direction: column; gap: 12px;
}
.ph-top { display: flex; align-items: center; gap: 8px; }
.ph-chip { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; font-size: .95rem; }
.ph-chip svg { width: 20px; height: 20px; }
.ph-chip--streak b { color: #C9620A; }
.ph-chip--xp b { color: #A87800; }
.ph-chip.bump { animation: bump .5s var(--ease-bounce); }
@keyframes bump { 40% { transform: scale(1.45); } }
.ph-progress { flex: 1; height: 12px; border-radius: 99px; background: #EEF1F6; overflow: hidden; }
.ph-progress span { display: block; height: 100%; width: 30%; border-radius: 99px; background: var(--primary); box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); transition: width .6s var(--ease-bounce); }
.ph-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 900; color: #2556B8; text-transform: uppercase; letter-spacing: .04em; }
.ph-tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vr); }
.ph-q { transition: opacity .35s, transform .35s var(--ease-bounce); }
.ph-q.hide { opacity: 0; transform: translateY(12px); }
.ph-passage { font-size: .875rem; color: var(--muted); background: var(--bg); padding: 10px 12px; border-radius: 14px; margin: 0 0 8px; line-height: 1.4; }
.ph-stmt { font-size: 1rem; font-weight: 900; margin: 0; line-height: 1.3; }
.ph-opts { display: grid; gap: 8px; }
.ph-opt {
  border: 2px solid var(--border); border-bottom-width: 4px; border-radius: 14px; padding: 9px 12px;
  font-weight: 800; font-size: .95rem; background: #fff;
  transition: opacity .3s, transform .3s var(--ease-bounce), background .2s, border-color .2s, color .2s;
}
.ph-opts.hide .ph-opt { opacity: 0; transform: translateY(10px); }
.ph-opt:nth-child(2) { transition-delay: .06s; }
.ph-opt:nth-child(3) { transition-delay: .12s; }
.ph-opt.tap { transform: translateY(2px); border-bottom-width: 2px; }
.ph-opt.correct { background: var(--primary-soft); border-color: var(--primary); color: #11603B; }
.ph-timer { height: 6px; border-radius: 99px; background: #EEF1F6; overflow: hidden; margin-top: auto; }
.ph-timer span { display: block; height: 100%; width: 100%; background: var(--energy); border-radius: 99px; transform-origin: left; }
.ph-feedback {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px 22px; background: var(--primary-soft);
  color: #11603B; font-size: .95rem; transform: translateY(100%); transition: transform .4s var(--ease-bounce);
}
.ph-feedback b { display: block; font-size: 1.15rem; }
.ph-feedback.show { transform: translateY(0); }
.ph-finger {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(31,42,68,.18); border: 3px solid rgba(255,255,255,.9); box-shadow: 0 4px 12px rgba(0,0,0,.2);
  left: 70%; top: 110%; transition: left .7s ease, top .7s ease, transform .15s; pointer-events: none;
}
.ph-finger.press { transform: scale(.8); }
.ph-xpfly { position: absolute; left: 50%; top: 50%; font-weight: 900; color: #A87800; font-size: 1.4rem; opacity: 0; translate: -50% 0; pointer-events: none; text-shadow: 0 2px 0 #fff; }
.ph-xpfly.fly { animation: xpfly 1.1s ease-out forwards; }
@keyframes xpfly { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; transform: translateY(-10px) scale(1.2); } 100% { opacity: 0; transform: translateY(-200px) scale(1); } }

/* Hero Mascot */
.hero-mascot { position: absolute; left: -30px; bottom: -16px; z-index: 2; width: 170px; }
.hero-mascot__bubble {
  position: absolute; bottom: 100%; left: 0; width: 165px; margin-bottom: 4px;
  background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: 10px 14px; font-size: .9375rem; font-weight: 800;
  box-shadow: 0 4px 0 var(--border);
  animation: pop .6s 1.2s var(--ease-bounce) both;
}
.hero-mascot__bubble::after { content: ""; position: absolute; left: 34px; bottom: -9px; width: 14px; height: 14px; background: #fff; border-right: 2px solid var(--border); border-bottom: 2px solid var(--border); rotate: 45deg; }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(10px); } to { opacity: 1; transform: none; } }
.mascot-big { width: 170px; height: auto; overflow: visible; }
.mascot-body { animation: bob 1.8s ease-in-out infinite; }
.mascot-shadow { transform-origin: 50px 98px; animation: shadow 1.8s ease-in-out infinite; }
.mascot-eyes { transform-origin: 50px 40px; animation: blink 4.2s infinite; }
.mascot-arm { transform-origin: 86px 47px; animation: wave 2.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes shadow { 0%,100% { transform: scaleX(1); opacity: .12; } 50% { transform: scaleX(.8); opacity: .07; } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes wave { 0%, 55%, 100% { transform: rotate(0); } 62% { transform: rotate(22deg); } 70% { transform: rotate(-12deg); } 78% { transform: rotate(22deg); } 86% { transform: rotate(-8deg); } }
.hero-mascot.cheer .mascot-body { animation: jump .7s var(--ease-bounce); }
@keyframes jump { 0% { transform: translateY(0); } 40% { transform: translateY(-26px) rotate(-6deg); } 100% { transform: translateY(0); } }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: 1; }

/* ---------- Stats ---------- */
.stats { background: #fff; padding: 8px 0 24px; }
.stats__list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat { text-align: center; padding: 18px 10px; border-radius: var(--radius); background: var(--bg); border: 2px solid var(--border); }
.stat b { display: block; font-size: 1.75rem; font-weight: 900; color: var(--btn-green); line-height: 1.15; }
.stat span { color: var(--muted); font-size: .9375rem; }
.stat:nth-child(2) b { color: #2F6FE0; }
.stat:nth-child(3) b { color: #C9620A; }
.stat:nth-child(4) b { color: #B5308A; }
.stat:nth-child(5) b { color: var(--text); font-size: 1.5rem; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 96px 0; }
.section > .container { position: relative; z-index: 1; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__head p { color: var(--muted); font-size: 1.15rem; }
.kicker { display: inline-block; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; color: var(--c); margin-bottom: 10px; }

/* Subtests */
.subtests { background: #fff; padding-top: 64px; }
.subtest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.subtest {
  background: var(--soft); border-radius: var(--radius-lg); padding: 26px 22px; border: 2px solid transparent;
  border-bottom: 6px solid color-mix(in srgb, var(--c) 45%, transparent);
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
  display: flex; flex-direction: column;
}
.subtest:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 18px 30px -18px var(--c); }
.subtest__icon { width: 64px; height: 64px; border-radius: 20px; background: var(--c); display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 70%, #000); transition: transform .4s var(--ease-bounce); }
.subtest:hover .subtest__icon { transform: rotate(-8deg) scale(1.08); }
.subtest__icon svg { width: 44px; height: 44px; }
.subtest h3 { font-size: 1.3rem; }
.subtest p { color: #43506B; font-size: 1rem; flex: 1; }
.subtest__meta { align-self: flex-start; font-size: .8125rem; font-weight: 900; padding: 4px 10px; border-radius: 99px; background: #fff; color: var(--text); }

/* Features */
.features { background: var(--bg); overflow: hidden; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 2px dashed var(--border); }
.feature--flip .feature__art { order: 2; }
.feature__copy p { color: var(--muted); font-size: 1.125rem; }
.feature__copy h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.feature__art { display: flex; justify-content: center; }
.art-card {
  width: min(100%, 420px); background: #fff; border-radius: var(--radius-lg); padding: 26px;
  border: 2px solid var(--border); box-shadow: 0 8px 0 var(--border);
  position: relative;
}
.art-card__title { font-weight: 900; font-size: 1.1rem; margin: 0 0 14px; }
.art-card__note { margin: 12px 0 0; color: var(--muted); font-size: .8125rem; text-align: right; }

.art-timer { display: grid; justify-items: center; gap: 14px; }
.ring { width: 200px; height: 200px; transform: rotate(-90deg); }
.ring__fg { stroke-dasharray: 100; stroke-dashoffset: 100; }
.reveal.in .ring__fg { animation: ringdown 6s linear infinite; }
@keyframes ringdown { 0% { stroke-dashoffset: 0; stroke: #2BB673; } 70% { stroke: #FFC83D; } 92% { stroke: #FF7A59; } 100% { stroke-dashoffset: 100; stroke: #FF7A59; } }
.art-timer__label { position: absolute; top: 26px; left: 0; right: 0; height: 200px; display: grid; place-content: center; text-align: center; }
.art-timer__label b { font-size: 3rem; line-height: 1; }
.art-timer__label span { color: var(--muted); }
.art-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.art-chips span { background: var(--c); color: #fff; font-weight: 900; padding: 6px 14px; border-radius: 12px; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 70%, #000); text-shadow: 0 1px 0 rgba(0,0,0,.25); }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bars li { position: relative; display: grid; gap: 6px; }
.bars li span { font-size: .95rem; }
.bars i { display: block; height: 16px; border-radius: 99px; background: #EEF1F6; position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--c); border-radius: 99px; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-bounce); box-shadow: inset 0 -4px 0 rgba(0,0,0,.1); }
.reveal.in .bars i::after { transform: scaleX(1); }
.bars li:nth-child(2) i::after { transition-delay: .15s; }
.bars li:nth-child(3) i::after { transition-delay: .3s; }
.bars li:nth-child(4) i::after { transition-delay: .45s; }
.bars em { position: absolute; right: 0; top: 0; font-style: normal; font-size: .75rem; font-weight: 900; text-transform: uppercase; color: #fff; background: #7B3FC4; padding: 2px 8px; border-radius: 99px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.1); } }

.art-league { display: grid; gap: 18px; }
.streak-big { display: flex; align-items: center; gap: 12px; background: #FFF4E3; border-radius: 18px; padding: 12px 16px; }
.streak-big svg { width: 54px; height: 54px; animation: flicker 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 0%,100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.06, .96) rotate(-3deg); } 60% { transform: scale(.97, 1.05) rotate(2deg); } }
.streak-big b { display: block; font-size: 2.2rem; line-height: 1; color: #C9620A; }
.streak-big span { color: #8A4A07; font-size: .95rem; }
.freeze { margin-left: auto; font-size: .8125rem; font-weight: 900; color: #2556B8; background: #E6EFFF; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.league__title { margin: 0 0 8px; font-weight: 900; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.league__title small { color: var(--muted); font-weight: 700; }
.league__gem { width: 18px; height: 18px; background: #E0245E; rotate: 45deg; border-radius: 4px; box-shadow: inset -4px -4px 0 rgba(0,0,0,.15); }
.league__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.league__row {
  display: grid; grid-template-columns: 24px 34px 1fr auto; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 14px; background: #fff; border: 2px solid transparent; will-change: transform;
}
.league__row.me { background: var(--primary-soft); border-color: #B7E8CF; }
.league__rank { font-weight: 900; text-align: center; color: var(--muted); }
.league__row:nth-child(-n+3) .league__rank { color: var(--btn-green); }
.league__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .875rem; background: var(--c); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.league__name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league__xp { font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.league__xp.up { color: #A87800; animation: bump .5s var(--ease-bounce); }

.art-mock { padding: 0; overflow: hidden; background: #F3F4F6; border-color: #D1D5DB; box-shadow: 0 8px 0 #D1D5DB; font-family: Arial, Helvetica, sans-serif; font-weight: 400; }
.mock-bar, .mock-foot { display: flex; justify-content: space-between; gap: 8px; background: #1F3A68; color: #fff; padding: 10px 14px; font-size: .8125rem; flex-wrap: wrap; }
.mock-foot { background: #2D4E86; }
.mock-body { background: #fff; margin: 12px; border: 1px solid #D1D5DB; padding: 16px; display: grid; gap: 16px; }
.mock-lines { display: grid; gap: 8px; }
.mock-lines i { display: block; height: 10px; background: #E5E7EB; border-radius: 2px; }
.mock-opts { display: grid; gap: 6px; }
.mock-opts span { border: 1px solid #9CA3AF; padding: 6px 10px; font-size: .875rem; }
.mock-opts span::before { content: "○ "; }
.mock-opts .on { background: #DBEAFE; border-color: #1F3A68; }
.mock-opts .on::before { content: "● "; }

.art-score { text-align: center; }
.gauge { width: 240px; margin: 0 auto; }
.gauge__fg { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s cubic-bezier(.2,.8,.2,1); }
.reveal.in .gauge__fg { stroke-dashoffset: 25; }
.art-score__num { margin-top: -36px; }
.art-score__num b { display: block; font-size: 2.6rem; line-height: 1; }
.art-score__num span { color: var(--muted); font-size: .875rem; }
.mini-scores { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.mini-scores span { border: 2px solid var(--c); border-radius: 12px; padding: 4px 10px; font-size: .8125rem; font-weight: 900; }
.mini-scores b { margin-left: 2px; }

/* ---------- Demo quiz ---------- */
.demo { background: linear-gradient(180deg, #fff 0%, #F1F6FF 100%); }
.demo__inner { max-width: 760px; }
.quiz {
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 0 var(--border);
  padding: 28px; min-height: 360px; position: relative; overflow: hidden;
}
.quiz__start, .quiz__end { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 20px 0; }
.quiz__mascot { width: 110px; height: 110px; animation: bob 1.8s ease-in-out infinite; }
.quiz__mascot--cheer { animation: jump .8s var(--ease-bounce) 2; }
.quiz__intro { color: var(--muted); font-size: 1.1rem; max-width: 30em; }
.quiz__top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.quiz__tag { font-weight: 900; font-size: .875rem; padding: 4px 12px; border-radius: 99px; color: #fff; background: var(--tag, var(--vr)); text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.quiz__count { color: var(--muted); font-weight: 800; }
.quiz__xp { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 900; color: #A87800; }
.quiz__xp svg { width: 22px; height: 22px; }
.quiz__timer { height: 14px; border-radius: 99px; background: #EEF1F6; overflow: hidden; }
.quiz__timer span { display: block; height: 100%; width: 100%; border-radius: 99px; background: var(--primary); transform-origin: left; box-shadow: inset 0 -4px 0 rgba(0,0,0,.08); transition: background .3s; }
.quiz__timer span.warn { background: var(--xp); }
.quiz__timer span.danger { background: var(--accent); }
.quiz__seconds { text-align: right; font-size: .875rem; color: var(--muted); margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.quiz__passage { background: var(--bg); border-radius: 16px; padding: 14px 16px; color: #3A4660; font-size: 1rem; margin-bottom: 14px; }
.quiz__passage:empty { display: none; }
.quiz__q { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz__q legend { font-weight: 900; font-size: 1.2rem; margin-bottom: 14px; padding: 0; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opt {
  font: inherit; font-weight: 800; font-size: 1.0625rem; text-align: left; color: var(--text);
  background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 13px 16px;
  box-shadow: 0 4px 0 var(--border); cursor: pointer; transition: transform .08s, box-shadow .08s, background .2s, border-color .2s;
  display: flex; align-items: center; gap: 12px;
}
.quiz__opt:hover:not(:disabled) { background: #F6F9FF; border-color: #C9D6EC; }
.quiz__opt:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--border); }
.quiz__opt kbd { font: inherit; font-size: .8125rem; width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 2px solid var(--border); color: var(--muted); }
.quiz__opt:disabled { cursor: default; }
.quiz__opt.correct { background: var(--primary-soft); border-color: var(--primary); box-shadow: 0 4px 0 #8FD9B3; color: #11603B; animation: bump .45s var(--ease-bounce); }
.quiz__opt.wrong { background: #FFECEC; border-color: #F59A9A; box-shadow: 0 4px 0 #F2B8B8; color: #9B1C1C; animation: shake .4s; }
.quiz__opt.dim { opacity: .55; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.quiz__feedback { margin-top: 16px; border-radius: 16px; padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; }
.quiz__feedback.show { padding: 14px 16px; max-height: 400px; }
.quiz__feedback.good { background: var(--primary-soft); color: #11603B; }
.quiz__feedback.bad { background: #FFF1EC; color: #8F2D12; }
.quiz__feedback b { display: block; font-size: 1.15rem; }
.quiz__actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.quiz__end h3 { font-size: 2rem; margin: 0; }
.quiz__end p { color: var(--muted); font-size: 1.1rem; max-width: 30em; }
.quiz__end-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.demo__note { text-align: center; color: var(--muted); font-size: .875rem; margin-top: 20px; }

/* ---------- Pricing ---------- */
.pricing { background: #fff; }
.pricing__region { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; }
.currency-toggle { display: inline-flex; gap: 6px; }
.currency-toggle button { font: inherit; font-weight: 800; font-size: .875rem; color: var(--muted); background: #fff; border: 2px solid var(--border); border-radius: 99px; padding: 5px 12px; cursor: pointer; }
.currency-toggle button[aria-pressed="true"] { color: #11603B; border-color: var(--primary); background: var(--primary-soft); }
.pricing__window { margin-top: 14px; font-weight: 800; color: var(--text); }
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; max-width: 920px; margin: 0 auto; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: 0 8px 0 var(--border); display: flex; flex-direction: column;
}
.plan--pro { border-color: var(--primary); box-shadow: 0 8px 0 #9EDDBD; background: linear-gradient(180deg, #F2FBF6 0%, #fff 40%); }
.plan__ribbon { position: absolute; top: -16px; right: 24px; background: var(--xp); color: #5C3F00; font-weight: 900; text-transform: uppercase; padding: 4px 14px; border-radius: 99px; box-shadow: 0 4px 0 #D9A41C; letter-spacing: .06em; }
.plan__name { font-size: 1.5rem; margin-bottom: 12px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; }
.plan__price b { font-size: 2.8rem; line-height: 1; font-weight: 900; }
.plan__price span { color: var(--muted); }
.plan__price--pro b { color: #11603B; display: inline-block; }
.plan__price--pro b.flip { animation: flipIn .45s var(--ease-bounce); }
@keyframes flipIn { from { opacity: 0; transform: translateY(-14px) scale(.9); } to { opacity: 1; transform: none; } }
.plan__desc { color: var(--muted); min-height: 3em; }
.plan__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.plan__list li { position: relative; padding-left: 32px; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%231A8452' stroke-width='3.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.plan__list--pro li::before { background-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%23fff' stroke-width='3.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan__fine { font-size: .875rem; color: var(--muted); margin: 14px 0 0; }
.billing { border: 0; padding: 4px; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--bg); border-radius: 16px; border: 2px solid var(--border); }
.billing label { position: relative; cursor: pointer; }
.billing input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.billing span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 4px; border-radius: 12px; font-weight: 900; font-size: .9375rem; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; line-height: 1.15; }
.billing em { font-style: normal; font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: #8A5A00; }
.billing input:checked + span { background: #fff; color: var(--text); box-shadow: 0 3px 0 var(--border); }
.billing input:focus-visible + span { outline: 3px solid var(--energy); outline-offset: 1px; }
.compare-table { max-width: 920px; margin: 36px auto 0; border: 2px solid var(--border); border-radius: var(--radius); background: #fff; }
.compare-table summary { cursor: pointer; font-weight: 900; padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; align-items: center; border-radius: var(--radius); }
.compare-table summary::-webkit-details-marker { display: none; }
.compare-table summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--btn-green); transition: transform .25s; }
.compare-table[open] summary::after { transform: rotate(45deg); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .975rem; }
th, td { padding: 12px 16px; text-align: left; border-top: 2px solid var(--border); vertical-align: top; }
thead th { border-top: 0; font-weight: 900; }
tbody th { font-weight: 800; }
.pricing__fine { text-align: center; color: var(--muted); font-size: .875rem; margin-top: 22px; }

/* ---------- Comparison ---------- */
.compare { background: var(--bg); }
.vs { max-width: 920px; margin: 0 auto; background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 0 var(--border); overflow: hidden; }
.vs__table thead th { padding: 18px 16px; font-size: 1.05rem; }
.vs__us { background: var(--primary-soft); color: #11603B; }
.vs__us svg { width: 26px; height: 26px; display: inline-block; vertical-align: -7px; margin-right: 4px; }
.vs__table td:nth-child(2) { background: #F6FCF9; }
.vs__table td { position: relative; padding-left: 44px; }
.vs__table td::before { position: absolute; left: 14px; top: 11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 900; color: #fff; }
.vs__table td.yes::before { content: "✓"; background: var(--primary); }
.vs__table td.no::before { content: "✕"; background: #C3CBD9; }
.vs__table td.meh::before { content: "~"; background: var(--xp); color: #5C3F00; }
.compare__fine { text-align: center; color: var(--muted); margin-top: 22px; }

/* ---------- Schools ---------- */
.schools { background: #fff; }
.schools__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.schools__copy p { color: var(--muted); font-size: 1.125rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; background: #E6EFFF; color: #2556B8; display: grid; place-items: center; font-weight: 900; font-size: .8rem; }
.schools__art { position: relative; display: flex; justify-content: center; padding: 20px 0 40px; }
.class-card { width: min(100%, 360px); background: linear-gradient(160deg, #EAF1FF, #F6F0FF); border-radius: var(--radius-lg); padding: 24px; border: 2px solid #D9E4FA; box-shadow: 0 8px 0 #D9E4FA; rotate: -2deg; }
.class-card__title { font-weight: 900; margin: 0 0 14px; }
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.class-grid span { aspect-ratio: 1; border-radius: 50%; background: var(--c); color: #fff; font-weight: 900; display: grid; place-items: center; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 70%, #000); text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.reveal.in .class-grid span { animation: pop .5s var(--ease-bounce) both; }
.class-grid span:nth-child(2) { animation-delay: .06s !important; } .class-grid span:nth-child(3) { animation-delay: .12s !important; }
.class-grid span:nth-child(4) { animation-delay: .18s !important; } .class-grid span:nth-child(5) { animation-delay: .24s !important; }
.class-grid span:nth-child(6) { animation-delay: .3s !important; } .class-grid span:nth-child(7) { animation-delay: .36s !important; }
.class-grid span:nth-child(8) { animation-delay: .42s !important; }
.class-stat { display: flex; align-items: center; gap: 8px; margin-top: 16px; background: #fff; border-radius: 14px; padding: 8px 12px; }
.class-stat svg { width: 26px; height: 26px; }
.schools__mascot { position: absolute; width: 90px; height: 90px; right: 6%; bottom: 0; animation: bob 2s ease-in-out infinite; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq__inner { max-width: 800px; }
.accordion { display: grid; gap: 12px; }
.acc { background: #fff; border: 2px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 0 var(--border); overflow: hidden; }
.acc h3 { margin: 0; font-size: 1.125rem; }
.acc__btn {
  width: 100%; font: inherit; font-weight: 900; font-size: 1.125rem; color: var(--text); text-align: left;
  background: none; border: 0; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer;
}
.acc__btn:focus-visible { outline-offset: -4px; }
.acc__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--primary-soft); transition: transform .35s var(--ease-bounce), background .2s; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; border-radius: 2px; background: var(--btn-green); translate: -50% -50%; }
.acc__icon::after { rotate: 90deg; transition: rotate .3s; }
.acc__btn[aria-expanded="true"] .acc__icon { transform: rotate(180deg); background: var(--primary); }
.acc__btn[aria-expanded="true"] .acc__icon::before, .acc__btn[aria-expanded="true"] .acc__icon::after { background: #fff; }
.acc__btn[aria-expanded="true"] .acc__icon::after { rotate: 0deg; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 1.0625rem; }
.acc.open .acc__panel { grid-template-rows: 1fr; }
.acc:not(.open) .acc__panel > div { visibility: hidden; transition: visibility 0s .35s; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; background: var(--primary-dark); color: #fff; padding: 96px 0; text-align: center;
  background-image: radial-gradient(600px 300px at 20% 0%, rgba(255,255,255,.14), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(255,200,61,.22), transparent 60%);
}
.final-cta__inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.final-cta__mascot { width: 120px; height: 120px; margin-bottom: 14px; animation: bob 1.8s ease-in-out infinite; filter: drop-shadow(0 10px 10px rgba(0,0,0,.18)); }
.final-cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.final-cta p { font-size: 1.2rem; opacity: .95; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { background: #fff; padding: 56px 0 32px; border-top: 2px solid var(--border); }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__brand p { color: var(--muted); max-width: 22em; margin-top: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; max-width: 520px; }
.footer__links a { color: var(--text); text-decoration: none; font-weight: 800; padding: 4px 0; }
.footer__links a:hover { color: var(--btn-green); text-decoration: underline; }
.footer__legal { margin-top: 32px; padding-top: 22px; border-top: 2px solid var(--border); color: var(--muted); font-size: .875rem; }
.footer__legal p { margin: 0 0 6px; }

/* ---------- Confetti / toast ---------- */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 300; }
.xp-pop { position: fixed; z-index: 301; pointer-events: none; font-weight: 900; font-size: 1.6rem; color: #A87800; text-shadow: 0 2px 0 #fff, 0 0 12px #fff; translate: -50% -50%; animation: xpfly 1.2s ease-out forwards; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 310; translate: -50% 0;
  background: var(--text); color: #fff; font-weight: 800; padding: 12px 20px; border-radius: 16px; box-shadow: 0 6px 0 #0E1424;
  opacity: 0; transform: translateY(20px); transition: opacity .25s, transform .35s var(--ease-bounce); pointer-events: none;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px) scale(.98); transition: opacity .7s ease, transform .8s var(--ease-bounce); }
.js .reveal.in { opacity: 1; transform: none; }
.js .subtest-grid .reveal:nth-child(2), .js .stats__list .reveal:nth-child(2) { transition-delay: .08s; }
.js .subtest-grid .reveal:nth-child(3), .js .stats__list .reveal:nth-child(3) { transition-delay: .16s; }
.js .subtest-grid .reveal:nth-child(4), .js .stats__list .reveal:nth-child(4) { transition-delay: .24s; }
.js .stats__list .reveal:nth-child(5) { transition-delay: .32s; }
.js .plans .reveal:nth-child(2) { transition-delay: .1s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links a { padding: 8px 8px; }
  .stats__list { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4), .stat:nth-child(5) { grid-column: span 1; }
  .subtest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  :root { --nav-h: 64px; }
  .nav__burger { display: inline-flex; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0; flex-direction: column; gap: 4px;
    background: #fff; padding: 12px 16px 20px; border-bottom: 2px solid var(--border); box-shadow: 0 12px 24px -12px rgba(31,42,68,.2);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .2s, visibility 0s .25s;
  }
  .nav__links.open { transform: none; opacity: 1; visibility: visible; transition: transform .25s, opacity .2s; }
  .nav__links a { padding: 12px 14px; font-size: 1.125rem; }
  .nav__faq { display: block; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__lede { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .waitlist { text-align: left; }
  .hero__art { min-height: 560px; justify-content: center; padding-right: 0; }
  .hero-mascot { left: max(0px, calc(50% - 330px)); }
  .feature { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .feature--flip .feature__art { order: 0; }
  .schools__inner { grid-template-columns: 1fr; gap: 24px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .nav__cta { display: none; }
  .logo__word { font-size: 1.35rem; }
  .logo__mascot { width: 32px; height: 32px; }
  .nav__inner { gap: 10px; }
  .nav__right { gap: 8px; }
  .region-toggle__btn { padding: 6px 8px; font-size: .8125rem; }
  .region-toggle--lg .region-toggle__btn { padding: 8px 10px; font-size: .875rem; }
  .hero { padding: 28px 0 80px; }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__ctas .btn--lg { width: 100%; }
  .waitlist { max-width: none; }
  .hero__art { min-height: 0; padding: 40px 0 10px; }
  .phone { width: 260px; height: 520px; }
  .hero-mascot { width: 100px; left: 0; bottom: -14px; }
  .mascot-big { width: 100px; }
  .hero-mascot__bubble { display: none; }
  .stats__list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat:last-child { grid-column: 1 / -1; }
  .stat b { font-size: 1.5rem; }
  .subtest-grid { grid-template-columns: 1fr; }
  .art-card { padding: 20px; }
  .ring { width: 170px; height: 170px; }
  .art-timer__label { top: 20px; height: 170px; }
  .quiz { padding: 20px 16px; }
  .quiz__opt { font-size: 1rem; padding: 12px 12px; }
  .plan { padding: 26px 18px; }
  .plan__price b { font-size: 2.4rem; }
  th, td { padding: 10px 10px; font-size: .9rem; }
  .vs__table td { padding-left: 38px; }
  .vs__table td::before { left: 9px; top: 9px; }
  .vs__table thead th { font-size: .95rem; padding: 14px 10px; }
  .final-cta { padding: 72px 0; }
  .hide-sm { display: none; }
}
@media (max-width: 380px) {
  .logo__word { font-size: 1.2rem; }
  .region-toggle__btn { padding: 6px 6px; }
  .league__row { grid-template-columns: 20px 30px 1fr auto; gap: 8px; padding: 6px 8px; }
  .league__avatar { width: 30px; height: 30px; }
  .freeze { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .shape { translate: none !important; }
  .reveal.in .ring__fg { animation: none; stroke-dashoffset: 30; }
}
