/* Brilliant Roots — shared landing page design system
   Used by index.html (Abacus) and phonics.html */

:root {
  --orange: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-50: #fff4ec;
  --brand: #d2460e;
  --purple: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-800: #6b21a8;
  --blue: #3b82f6;
  --yellow: #ffd23f;
  --green: #059669;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-display: #18224f;
  --muted: #55657a;
  --line: #e2e8f0;
  --cream: #fff8ee;
  --navy: #0b1224;
  --grad: linear-gradient(100deg, #f97316 0%, #e4578f 55%, #a855f7 100%);
  --grad-deep: linear-gradient(115deg, #ea580c 0%, #c026d3 60%, #7e22ce 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05);
  --shadow: 0 18px 40px -20px rgba(15, 23, 42, .25);
  --shadow-lg: 0 40px 80px -32px rgba(15, 23, 42, .35);
  --gutter: clamp(16px, 4vw, 32px);
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--orange-600); }
:focus-visible { outline: 3px solid var(--focus, var(--purple)); outline-offset: 3px; border-radius: 6px; }
.band, .cta-panel, .site-footer { --focus: #fff; }
.plan, .person-card, .quote-card { --focus: var(--purple-700); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 900px); margin-inline: auto; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--brand);
  --fg: #fff;
  --edge: #8a2c08;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center;
  padding: 15px 28px; border: 0; border-radius: 14px;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--edge);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge); filter: brightness(1.05); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--edge); }
.btn .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.btn--white { --bg: #fff; --fg: var(--orange-700); --edge: rgba(15, 23, 42, .22); }
.btn--outline { --bg: #fff; --fg: var(--ink); --edge: #cbd5e1; border: 1.5px solid #cbd5e1; padding: 13.5px 26px; }
.btn--sm { padding: 11px 20px; font-size: 15px; border-radius: 12px; box-shadow: 0 3px 0 var(--edge); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.section-cta { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .3); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 48px; height: auto; }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.call-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.call-link:hover { color: var(--orange-600); }
.call-link__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-600); }
.call-link__icon .icon { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 42% 62% at 60% 40%, #fffaf1 0%, rgba(255, 250, 241, 0) 72%),
    linear-gradient(180deg, #fff5e6 0%, #ffeed6 100%);
}
.hero__waves { position: absolute; left: 0; bottom: -1px; z-index: 0; width: 100%; height: clamp(90px, 10vw, 150px); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 370px); gap: 32px; align-items: center; min-height: clamp(560px, 45vw, 640px); padding-block: clamp(36px, 4vw, 56px) clamp(100px, 9vw, 124px); }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; max-width: 545px; }
.hero__photo { position: absolute; z-index: 1; left: 37%; bottom: clamp(40px, 4vw, 64px); width: min(540px, 40vw); aspect-ratio: 1; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 56%, transparent 98%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 56%, transparent 98%); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__doodle { position: absolute; z-index: 2; pointer-events: none; color: var(--orange); height: auto; }
.hero__doodle--sum { left: 41%; top: 13%; width: clamp(90px, 8vw, 128px); transform: rotate(-10deg); }
.hero__doodle--bulb { left: 63%; top: 4%; width: clamp(56px, 5vw, 78px); }
.hero__burst { position: absolute; z-index: 2; width: 42px; height: 42px; color: var(--yellow); pointer-events: none; }
.hero__burst--l { left: -54px; top: 34%; }
.hero__burst--r { right: -50px; top: 6%; }
.hero h1 { margin: 0; font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: clamp(34px, 3.45vw, 50px); line-height: 1.04; letter-spacing: -.01em; color: var(--ink-display); }
.hero h1 .kicker { display: block; margin-bottom: 10px; font-family: 'Poppins', sans-serif; font-size: clamp(16px, 1.35vw, 19px); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--ink-display); }
.hero h1 .l { display: block; }
.hero h1 .l:has(> em.u):not(:last-child) { margin-bottom: .14em; } /* room for the swoosh when another line follows */
.hero h1 .hero__label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .12em; line-height: 1.45; text-transform: uppercase; color: var(--orange-700); }
.hero h1 .hero__label::before { content: ""; flex: none; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.hero h1 em { font-style: normal; color: var(--orange-600); }
.hero h1 em.u { position: relative; display: inline-block; }
.hero h1 em.u::after, .swoosh::after {
  content: ""; position: absolute; left: 0; right: 3%; bottom: -8px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9C60 2 140 1 197 6' stroke='%23ffc21a' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero__lead { margin: 0; max-width: 470px; font-size: clamp(15.5px, 1.2vw, 17px); line-height: 1.6; color: var(--ink-2); }
.hero__points { --accent: #fff; --accent-soft: var(--orange); gap: 9px; font-size: 15px; font-weight: 600; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid rgba(15, 23, 42, .06); box-shadow: 0 8px 18px -12px rgba(124, 45, 18, .45); font-weight: 600; font-size: 13.5px; line-height: 1.3; color: var(--ink); }
.chip__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; background: #fff3d6; color: #d97706; }
.chip__icon--purple { background: #f3e8ff; color: var(--purple-700); }
.chip__icon--orange { background: #ffedd5; color: var(--orange-700); }
.chip__icon .icon { width: 16px; height: 16px; }

/* lead form card */
.lead-card { position: relative; z-index: 3; justify-self: end; width: 100%; max-width: 370px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 34px 64px -30px rgba(124, 45, 18, .5), 0 0 0 1px rgba(15, 23, 42, .04); }
.lead-card__head { padding: 15px 20px 13px; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%), linear-gradient(120deg, var(--orange-600), var(--orange-700)); }
.lead-card__head h2 { margin: 0; text-align: center; font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.2; color: #fff; }
.lead-card__head h2 span { color: #ffe14a; }
.lead-form { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px; }
.field { position: relative; display: block; }
.field__icon { position: absolute; z-index: 1; left: 9px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ffedd5; color: var(--orange-700); pointer-events: none; }
.field__icon .icon { width: 16px; height: 16px; }
.field input, .field select {
  width: 100%; height: 54px; padding: 18px 16px 2px 54px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: #f8fafc; border: 1.5px solid var(--line); border-radius: 999px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
.field select:invalid { color: transparent; }
.field select:focus:invalid { color: var(--muted); }
.field select option { color: var(--ink); }
.field__label { position: absolute; left: 55px; top: 50%; transform: translateY(-50%); font-size: 14.5px; font-weight: 500; color: var(--muted); pointer-events: none; transition: top .18s ease, font-size .18s ease, color .18s ease; }
.field input::placeholder { color: transparent; }
.field input:focus::placeholder { color: #94a3b8; }
.field input:focus ~ .field__label, .field input:not(:placeholder-shown) ~ .field__label,
.field select:focus ~ .field__label, .field select:valid ~ .field__label { top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--orange-700); }
.field input:focus, .field select:focus { outline: none; background-color: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(249, 115, 22, .15); }
.lead-form .btn { margin-top: 2px; border-radius: 999px; padding-block: 15px; font-size: 16px; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.form-note .icon { flex: none; width: 22px; height: 22px; }
/* sending state, the problem message (shown only when it has text) and the hidden spam trap */
.lead-card[aria-busy="true"] .lead-form .btn { opacity: .7; cursor: progress; }
.form-error { margin: 0; padding: 10px 14px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: #b91c1c; text-align: center; }
.form-error:empty { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- stats bar ---------- */
.stats { position: relative; z-index: 4; height: 0; }
.stats > .container { transform: translateY(-50%); }
.stats__bar { position: relative; padding: 18px clamp(12px, 2vw, 26px); background: #fff; border-radius: 22px; box-shadow: 0 26px 50px -26px rgba(67, 20, 7, .4), 0 0 0 1px rgba(15, 23, 42, .04); }
.stats__eyebrow { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 4px 16px; border-radius: 999px; background: linear-gradient(180deg, #ffe169, var(--yellow)); box-shadow: 0 3px 0 #e8b400; white-space: nowrap; }
.stats__eyebrow .eyebrow { color: var(--ink); font-size: 11.5px; }
.stats__eyebrow .eyebrow::before, .stats__eyebrow .eyebrow::after { display: none; }
.stats__eyebrow + .stats__grid { padding-top: 8px; }
.stats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { --s-bg: #ffedd5; --s-c: #ea580c; display: flex; align-items: center; gap: 12px; padding: 4px clamp(8px, 1.4vw, 20px); border-left: 1.5px dashed #e2e8f0; }
.stat:first-child { border-left: 0; }
.stat:nth-child(2) { --s-bg: #f3e8ff; --s-c: #9333ea; }
.stat:nth-child(3) { --s-bg: #fef3c7; --s-c: #d97706; }
.stat:nth-child(4) { --s-bg: #fce7f3; --s-c: #db2777; }
.stat:nth-child(5) { --s-bg: #ede9fe; --s-c: #6d28d9; }
.stat__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--s-bg); color: var(--s-c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .05); }
.stat__icon .icon { width: 26px; height: 26px; }
.stat__num { font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: clamp(22px, 2vw, 29px); line-height: 1; color: var(--ink-display); }
.stat__label { margin-top: 2px; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.stat__sub { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.stats + .band, .stats + .section { padding-top: calc(clamp(64px, 8vw, 104px) + 64px); }

/* ---------- section scaffolding ---------- */
.section { position: relative; padding-block: clamp(64px, 8vw, 104px); }
.section--cream { background: var(--cream); }
.section--soft { background: #f8fafc; }
.section--lilac { background: #f8f4ff; }
.band { position: relative; padding-block: clamp(64px, 8vw, 104px); overflow: hidden; isolation: isolate; color: #fff; }
.band--orange { background: radial-gradient(ellipse 60% 55% at 50% 0%, #e65a18 0%, rgba(230, 90, 24, 0) 72%), var(--brand); }
.band--orange::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 64px 64px;
}
.section-head { max-width: 800px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section-head--left { margin-inline: 0; text-align: left; align-items: flex-start; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-700); line-height: 1.4; }
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.section-title { margin: 0; font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
.section-lead { margin: 0; font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink-2); max-width: 720px; }
.band .section-head { max-width: 1120px; }
.band .section-title { color: #fff; text-transform: uppercase; font-weight: 800; letter-spacing: -.005em; font-size: clamp(24px, 2.45vw, 36px); line-height: 1.15; }
.band .section-title .hl { color: #ffd23f; }
.band .eyebrow { color: #fff; }
.band .section-lead { color: #fff; font-weight: 500; }

/* band doodles */
.doodle { position: absolute; z-index: -1; color: rgba(255, 255, 255, .5); pointer-events: none; }
.doodle .icon { width: 100%; height: 100%; stroke-width: 2.2; }
.doodle--tl { top: 48px; left: 3%; width: 118px; height: 118px; transform: rotate(-10deg); }
.doodle--tr { top: 110px; right: 4%; width: 100px; height: 100px; transform: rotate(8deg); }
.doodle--bl { bottom: 70px; left: 3%; width: 96px; height: 96px; }
.doodle--br { bottom: 90px; right: 4%; width: 104px; height: 104px; transform: rotate(-6deg); }

/* ---------- pricing ---------- */
.band-wave { position: absolute; left: 0; bottom: -1px; z-index: -1; width: 100%; height: clamp(60px, 7vw, 110px); pointer-events: none; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 30px); max-width: 1080px; margin-inline: auto; align-items: stretch; }
.plans--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.plan {
  --h1: #ec4899; --h2: #be185d; --accent: #fff; --accent-soft: var(--orange);
  position: relative; display: flex; flex-direction: column; border-radius: 24px; background: #fff; color: var(--ink-2);
  box-shadow: 0 34px 60px -30px rgba(67, 20, 7, .8), 0 0 0 5px rgba(255, 255, 255, .28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 42px 70px -30px rgba(67, 20, 7, .85), 0 0 0 5px rgba(255, 255, 255, .4); }
.plan--purple { --h1: #a855f7; --h2: #7e22ce; }
.plan--indigo { --h1: #6366f1; --h2: #4338ca; }
.plan__head { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 22px; border-radius: 24px 24px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 52%), linear-gradient(120deg, var(--h1), var(--h2)); }
.plan__head h3 { margin: 0; font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.1; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.plan__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); color: #ffd23f; }
.plan__icon .icon { width: 24px; height: 24px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.plan__body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 24px; }
.plan__sessions { align-self: center; padding: 5px 18px; border-radius: 999px; background: color-mix(in srgb, var(--h1) 14%, #fff); color: var(--h2); font-weight: 700; font-size: 14px; line-height: 1.4; text-align: center; text-wrap: balance; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; line-height: 1.5; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--accent-soft); }
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: 6px; width: 11px; height: 11px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan .checklist { font-size: 15px; color: var(--ink); }
.plan__price { margin-top: auto; min-height: 74px; display: flex; flex-direction: column; gap: 2px; }
.plan__amount { font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: clamp(32px, 3vw, 40px); line-height: 1.05; letter-spacing: -.01em; color: var(--ink-display); }
.plan__note { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.plan__per { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); white-space: nowrap; }
.plan .btn { border-radius: 999px; }
.plan-footnote { display: flex; align-items: center; justify-content: center; gap: 10px; margin: clamp(26px, 3vw, 38px) auto 0; font-size: 15px; font-weight: 500; text-align: center; color: #fff; }
.plan-footnote .icon { width: 20px; height: 20px; }

/* ---------- playful sections: how it works / why choose / study materials ---------- */
.fun { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(64px, 7vw, 104px); }
.fun--sky {
  background:
    radial-gradient(ellipse 52% 46% at 50% 40%, #fff 30%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(160deg, #fff3e8 0%, #fdf7ff 48%, #f1e8ff 100%);
}
.fun--white { background: linear-gradient(180deg, #fff 0%, #fffaf6 100%); padding-bottom: clamp(130px, 12vw, 176px); }
.fun--peach {
  background:
    radial-gradient(ellipse 50% 45% at 50% 35%, #fff 30%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(200deg, #fff6ec 0%, #fffdfb 50%, #f6efff 100%);
}
.fun__cloud { position: absolute; z-index: -1; color: #fff; pointer-events: none; filter: drop-shadow(0 12px 22px rgba(126, 34, 206, .10)); }
.fun__cloud svg { display: block; width: 100%; height: auto; }
.fun__dot { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.fun__deco { position: absolute; z-index: 0; pointer-events: none; height: auto; filter: drop-shadow(0 16px 18px rgba(15, 23, 42, .12)); }
.fun-burst { flex: none; width: 40px; height: 40px; color: var(--yellow); pointer-events: none; }
.fun-burst--r { transform: scaleX(-1); }

.fun-head { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.fun-head > .fun-burst { position: absolute; top: 34%; width: 46px; height: 46px; }
.fun-head { --bx: min(330px, 23vw); }
.why .fun-head { --bx: min(450px, 31vw); }
.fun-head > .fun-burst--l { left: calc(50% - var(--bx) - 50px); }
.fun-head > .fun-burst--r { right: calc(50% - var(--bx) - 50px); }
.fun-title { margin: 0; display: flex; flex-direction: column; align-items: center; font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: clamp(36px, 4.8vw, 64px); line-height: 1; letter-spacing: -.012em; color: var(--ink-display); }
.fun-title--md { display: block; font-size: clamp(32px, 4.1vw, 54px); line-height: 1.1; }
.why .fun-title em { position: relative; display: inline-block; }
.why .fun-title em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -10px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9C60 2 140 1 197 6' stroke='%23ffc21a' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.fun-title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .03em; }
.fun-ribbon {
  position: relative; display: inline-block; margin-bottom: 12px; padding: 7px 30px 3px;
  font-size: .56em; line-height: 1.1; color: var(--ink);
  background: linear-gradient(180deg, #ffe169 0%, var(--yellow) 100%);
  border-radius: 8px; box-shadow: 0 5px 0 #e0a800; transform: rotate(-2deg);
}
.fun-ribbon::before, .fun-ribbon::after { content: ""; position: absolute; top: 10px; width: 22px; height: 100%; background: #f2b705; }
.fun-ribbon::before { left: -22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 36% 50%); }
.fun-ribbon::after { right: -22px; clip-path: polygon(0 0, 100% 0, 64% 50%, 100% 100%, 0 100%); }
.fun-pill { position: relative; display: inline-flex; align-items: center; padding: 7px 24px; border-radius: 999px; background: linear-gradient(180deg, #ffe169, var(--yellow)); color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: .14em; line-height: 1.4; box-shadow: 0 4px 0 #e0a800; }
.fun-pill::before, .fun-pill::after { content: ""; position: absolute; top: 50%; width: 44px; height: 3px; border-radius: 3px; }
.fun-pill::before { right: calc(100% + 12px); background: var(--ink); }
.fun-pill::after { left: calc(100% + 12px); background: var(--purple); }

/* shared colour sets: steps run along the brand gradient */
.fun-card { --c: #f97316; --c-ribbon: #d2460e; --c-dark: #9a3412; --c-soft: #fff1e6; }
.fun-card--pink { --c: #ec4899; --c-ribbon: #db2777; --c-dark: #9d174d; --c-soft: #fff0f6; }
.fun-card--magenta { --c: #c026d3; --c-ribbon: #a21caf; --c-dark: #701a75; --c-soft: #fcefff; }
.fun-card--purple { --c: #9333ea; --c-ribbon: #7e22ce; --c-dark: #4c1d95; --c-soft: #f4edff; }
.fun-num {
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: 28px; line-height: 1; color: #fff;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 50%, #fff) 0%, var(--c) 52%, var(--c-ribbon) 100%);
  border: 4px solid #fff; box-shadow: 0 10px 18px -8px var(--c-dark);
}
.fun-label {
  position: relative; align-self: stretch; margin: 0 -16px 16px; padding: 11px 14px 8px;
  font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.15; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 48%), linear-gradient(180deg, var(--c) 0%, var(--c-ribbon) 100%);
  border-radius: 16px; box-shadow: 0 12px 18px -12px var(--c-dark); text-shadow: 0 1px 0 rgba(0, 0, 0, .14);
}
.fun-label::before, .fun-label::after { content: ""; position: absolute; bottom: -9px; border-top: 9px solid var(--c-dark); }
.fun-label::before { left: 0; border-left: 16px solid transparent; }
.fun-label::after { right: 0; border-right: 16px solid transparent; }
.fun-arrow { position: absolute; z-index: 3; width: calc(var(--gap) + 30px); height: auto; right: calc(-1 * var(--gap) - 16px); color: var(--c); pointer-events: none; }

/* how it works */
.hiw-steps { --gap: clamp(34px, 4.2vw, 60px); position: relative; z-index: 1; list-style: none; margin: clamp(60px, 6vw, 84px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px var(--gap); }
.hiw-card { position: relative; display: flex; flex-direction: column; align-items: center; padding: 44px 0 26px; text-align: center; background: linear-gradient(180deg, var(--c-soft) 0%, #fff 58%); border: 2.5px solid var(--c); border-radius: 34px; box-shadow: 0 28px 44px -32px var(--c-dark), inset 0 0 0 5px rgba(255, 255, 255, .75); }
.hiw-card__art { display: block; height: clamp(84px, 7.6vw, 108px); width: auto; max-width: 84%; margin: 0 auto 12px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(15, 23, 42, .10)); }
svg.hiw-card__art { aspect-ratio: 200 / 125; }
.hiw-card .fun-label { font-size: clamp(17px, 1.4vw, 21px); white-space: nowrap; display: flex; align-items: center; justify-content: center; }
.hiw-card p { margin: 0; padding: 0 20px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.hiw-card .fun-arrow { top: 64px; }
.hiw__kid { --kw: clamp(196px, 17vw, 250px); position: absolute; z-index: 1; width: var(--kw); height: auto; left: calc(50% - var(--kw) * .5965); bottom: calc(100% - 2px); pointer-events: none; }
.hiw-card .fun-num { z-index: 2; }
.hiw__tr { right: max(8px, calc(50% - 750px)); top: 58px; width: clamp(170px, 16vw, 250px); transform: rotate(7deg); }
.hiw__tr-cloud { right: max(-60px, calc(50% - 800px)); top: 196px; width: 320px; }
.hiw__bl { left: max(0px, calc(50% - 760px)); bottom: 0; width: clamp(130px, 13vw, 200px); }
.hiw__br { right: max(0px, calc(50% - 760px)); bottom: 0; width: clamp(140px, 13vw, 210px); }

/* fun CTA button */
.fun-cta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: clamp(44px, 5vw, 64px); }
.fun-btn { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; transition: transform .15s ease; }
.fun-btn:hover { transform: translateY(-2px); }
.fun-btn__main {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; border-radius: 999px;
  font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: clamp(21px, 2.1vw, 28px); line-height: 1; color: #fff;
  background: linear-gradient(180deg, #e2520f 0%, var(--brand) 100%);
  box-shadow: 0 6px 0 #8a2c08, 0 22px 34px -14px rgba(210, 70, 14, .7);
}
.fun-btn__main em { font-style: normal; color: #ffe14a; }
.fun-btn__gift { width: 54px; height: 54px; margin: -16px -2px -8px 0; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2)); }
.fun-btn__go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); }
.fun-btn__go .icon { width: 22px; height: 22px; stroke-width: 2.6; }

/* why choose */
.why-grid { --gap: clamp(30px, 3.4vw, 50px); position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 76px var(--gap); margin-top: clamp(66px, 6.5vw, 88px); }
.why-card { position: relative; display: flex; flex-direction: column; padding: 56px 0 28px; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--c-soft) 100%); border: 2px solid color-mix(in srgb, var(--c) 40%, #fff); border-radius: 32px; box-shadow: 0 28px 44px -30px var(--c-dark); }
.why-card__icon { position: absolute; top: -44px; left: 50%; transform: translateX(-50%); width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 45%, #fff) 0%, var(--c) 55%, var(--c-ribbon) 100%); border: 5px solid #fff; box-shadow: 0 14px 24px -10px var(--c-dark); }
.why-card__icon .icon { width: 38px; height: 38px; stroke-width: 2; }
.why-card .fun-label { display: flex; align-items: center; gap: 12px; min-height: 2.9em; margin: 0 -14px 20px; padding: 10px 18px 8px 12px; text-align: left; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.02; }
.fun-label__text { max-width: 6.4em; }
.fun-label__num { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--c-ribbon); font-size: 22px; text-shadow: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, #fff); }
.why-card p { margin: 0; padding: 0 24px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.why-card::after { content: ""; display: block; width: 84px; height: 5px; margin: 22px auto 0; border-radius: 5px; background: var(--c); opacity: .4; }
.why-card .fun-arrow { top: 2px; }
.fun-hills { position: absolute; left: 0; bottom: -1px; z-index: -1; width: 100%; height: clamp(84px, 9vw, 132px); }
.why__mascot { position: absolute; z-index: 2; left: max(0px, calc(50% - 735px)); bottom: 150px; width: clamp(230px, 19vw, 310px); }
.why__mascot:has(.why__solo) { z-index: 0; left: max(10px, calc(50% - 648px)); bottom: 64px; width: clamp(250px, 21vw, 330px); }
.why .fun-hills { z-index: 3; }
/* boy + books: as wide as the gap before card 01 allows (his hair is at 92.4% of the image width),
   so his head always stays clear of the card and its ribbon (which juts ~13px out), like the reference */
.why__mascot:has(.why__books) { width: calc((max(32px, 50% - 600px) + clamp(200px, 17vw, 250px) - max(10px, 50% - 648px) - 26px) * 1.082); bottom: 52px; }
.why__mascot > img.why__books { -webkit-mask-image: none; mask-image: none; }
.why__mascot img { display: block; width: 100%; height: auto; }
.why__mascot > img:first-child { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.why__mascot .why__prop { position: absolute; right: -36%; bottom: -16%; width: 64%; transform: rotate(-10deg); filter: drop-shadow(0 12px 14px rgba(15, 23, 42, .18)); }
.why__mascot svg.why__prop { aspect-ratio: 200 / 125; height: auto; }
.why__doodle { position: absolute; z-index: 0; right: max(12px, calc(50% - 730px)); top: 36px; width: clamp(90px, 9vw, 140px); height: auto; color: #c4b5fd; }

/* study materials */
.mat-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); margin-top: clamp(36px, 4vw, 52px); }
.mat-card {
  --t1: #fff8dc; --t2: #ffe7a0; --c: #f59e0b; --n: #ea580c; --n2: #c2410c;
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 0; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--t1) 0%, var(--t2) 100%);
  border: 2px solid color-mix(in srgb, var(--c) 45%, #fff); border-radius: 26px;
  box-shadow: 0 24px 40px -30px var(--n2), inset 0 0 0 3px rgba(255, 255, 255, .55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mat-card:hover { transform: translateY(-5px); box-shadow: 0 30px 46px -28px var(--n2), inset 0 0 0 3px rgba(255, 255, 255, .55); }
.mat-card--lilac { --t1: #f8f2ff; --t2: #e8d8ff; --c: #a855f7; --n: #9333ea; --n2: #6b21a8; }
.mat-card--sky { --t1: #eff6ff; --t2: #d4e5ff; --c: #3b82f6; --n: #2563eb; --n2: #1e40af; }
.mat-card--mint { --t1: #edfcf4; --t2: #cbf1dd; --c: #10b981; --n: #059669; --n2: #065f46; }
.mat-card__head { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: color-mix(in srgb, var(--c) 24%, #fff); box-shadow: 0 6px 14px -10px var(--n2); }
.mat-card__num { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: 21px; color: #fff; background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--n) 55%, #fff) 0%, var(--n) 55%, var(--n2) 100%); }
.mat-card h3 { margin: 0; text-align: left; font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.15; color: var(--ink); }
.mat-card__art { display: block; width: 100%; max-width: 230px; height: auto; aspect-ratio: 200 / 125; margin: auto auto 0; }
.mats__bl { left: max(0px, calc(50% - 760px)); bottom: 0; width: clamp(120px, 12vw, 190px); }
.mats__br { right: max(0px, calc(50% - 760px)); bottom: 0; width: clamp(150px, 13vw, 220px); }
.fun-cta .btn { border-radius: 999px; padding: 15px 34px; font-size: 17px; }

/* ---------- teacher + results ---------- */
.section-title--lined { display: flex; align-items: center; justify-content: center; gap: 18px; }
.section-title--lined::before, .section-title--lined::after { content: ""; flex: none; width: clamp(28px, 6vw, 80px); height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.section--faq .section-title--lined::before, .section--faq .section-title--lined::after { background: var(--orange); opacity: 1; }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.person-card, .quote-card { position: relative; display: flex; gap: 16px; padding: 14px; background: #fff; color: var(--ink-2); border-radius: 22px; box-shadow: 0 30px 50px -30px rgba(67, 20, 7, .75), 0 0 0 4px rgba(255, 255, 255, .25); transition: transform .25s ease; }
.person-card:hover, .quote-card:hover { transform: translateY(-4px); }
.person-card__media { position: relative; flex: none; width: 42%; min-height: 180px; border-radius: 16px; overflow: hidden; background: #fde7d3; }
.person-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 4px 4px 4px 0; }
.person-card__tag { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--orange-700); }
.person-card__name { position: relative; margin: 0; padding-bottom: 8px; font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.1; color: var(--orange-600); }
.person-card__name::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 3px; background: var(--orange); }
.person-card__meta { margin: 2px 0 0; font-weight: 600; font-size: 13px; line-height: 1.45; color: var(--ink); }
.person-card__note { margin: 0; font-style: italic; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.quote { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.quote p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.quote footer { padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; line-height: 1.45; color: var(--orange-700); }
.quote-card { flex-direction: column; justify-content: center; padding: 18px 22px 20px; }
.quote-card::before { content: "\201C"; display: block; height: 34px; font-family: Georgia, 'Times New Roman', serif; font-size: 80px; line-height: .9; font-weight: 700; color: var(--orange); }
.quote-card .quote footer { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.quote-card--blank { justify-content: flex-start; min-height: 208px; } /* review slot kept, content left empty for now */
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #fed7aa; }
.band__dots { position: absolute; z-index: -1; top: 34px; left: 3%; width: 84px; height: 56px; background-image: radial-gradient(rgba(255, 255, 255, .45) 2px, transparent 2.5px); background-size: 14px 14px; pointer-events: none; }
.doodle--sum { top: 28px; right: 4%; width: 140px; height: 54px; color: rgba(255, 255, 255, .45); }
[aria-labelledby="results-title"] .doodle--bl { left: 1.2%; bottom: 40px; width: 84px; height: 84px; }
[aria-labelledby="results-title"] .doodle--br { right: 1.2%; bottom: 30px; top: auto; width: 84px; height: 84px; }
@media (max-width: 1400px) { [aria-labelledby="results-title"] .doodle--bl, [aria-labelledby="results-title"] .doodle--br { display: none; } }

/* ---------- philosophy / generic cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.mini-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; background: #fff; border-radius: 22px; border: 1px solid rgba(126, 34, 206, .08); box-shadow: var(--shadow-sm); }
.mini-card h3 { margin: 6px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.mini-card p { margin: 0; font-size: 15.5px; }
.tile-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #f3e8ff; color: var(--purple-700); }
.tile-icon .icon { width: 24px; height: 24px; }
.tile-icon--orange { background: var(--orange-50); color: var(--orange-600); }
.tile-icon--blue { background: #e0edff; color: #1d4ed8; }
.tile-icon--green { background: #dcf7ea; color: #047857; }

/* ---------- program intro (phonics) ---------- */
.letter-tiles { display: flex; gap: 10px; justify-content: center; }
.letter-tiles span { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; box-shadow: 0 4px 0 rgba(15, 23, 42, .18); }
.letter-tiles span:nth-child(1) { background: var(--orange); transform: rotate(-6deg); }
.letter-tiles span:nth-child(2) { background: var(--purple-600); transform: translateY(-6px); }
.letter-tiles span:nth-child(3) { background: var(--blue); transform: rotate(5deg); }
.letter-tiles span:nth-child(4) { background: var(--green); transform: translateY(-3px) rotate(-3deg); }
.intro-text { margin: 0; font-size: clamp(16.5px, 1.45vw, 19px); line-height: 1.75; color: var(--ink-2); text-align: center; }

/* ---------- FAQ ---------- */
.section--faq { overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 50% 60% at 50% 40%, #fff 30%, rgba(255, 255, 255, 0) 75%), linear-gradient(180deg, #fff8f1 0%, #fdf6ff 100%); }
.section--faq .section-title { color: var(--ink-display); }
.faq-art { position: absolute; z-index: -1; pointer-events: none; }
.faq-art--l { left: max(0px, calc(50% - 700px)); top: 50%; width: clamp(180px, 16vw, 240px); transform: translateY(-40%); }
.faq-art--l .faq-art__q { display: block; width: 74%; height: auto; margin: 0 auto -18%; filter: drop-shadow(0 14px 16px rgba(194, 65, 12, .25)); }
.faq-art--l img { display: block; width: 100%; height: auto; }
.faq-art--r { right: max(0px, calc(50% - 700px)); top: 50%; width: clamp(180px, 16vw, 250px); height: auto; transform: translateY(-30%) rotate(8deg); filter: drop-shadow(0 16px 18px rgba(15, 23, 42, .15)); }
.faq-sign { position: absolute; z-index: -1; font-family: 'Baloo 2', 'Poppins', sans-serif; font-weight: 800; font-size: 48px; line-height: 1; pointer-events: none; }
.faq-sign--plus { right: 17%; top: 18%; color: #fdba74; }
.faq-sign--div { right: 12%; top: 30%; color: #c4b5fd; }
.faq { display: grid; gap: 10px; max-width: 780px; margin-inline: auto; }
.faq details { background: #fff; border: 1.5px solid #f3e3d3; border-radius: 14px; box-shadow: 0 8px 18px -14px rgba(124, 45, 18, .35); transition: border-color .2s ease, background-color .2s ease; }
.faq details[open] { background: #fff5eb; border-color: #fdba74; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; list-style: none; cursor: pointer; font-weight: 600; font-size: 15.5px; line-height: 1.45; color: var(--ink); border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 4px 8px -3px rgba(194, 65, 12, .5); transition: transform .25s ease;
}
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); transform: rotate(180deg); }
.faq summary:hover { color: var(--orange-700); }
.faq details p { margin: 0; padding: 0 18px 14px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- SEO prose (phonics) ---------- */
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; }
.prose h3 { margin: 10px 0 0; font-size: 21px; font-weight: 700; }
.prose p { margin: 0; font-size: 17px; line-height: 1.75; }
.prose .checklist { --accent: #059669; --accent-soft: #d1fae5; font-size: 17px; }
.prose .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- other courses (phonics) ---------- */
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.course { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.course h3 { margin: 8px 0 0; font-size: 22px; font-weight: 700; }
.course p { margin: 0; }
.course a { margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration: none; color: var(--orange-700); }
.course a:hover { color: var(--purple-700); }

/* ---------- final CTA ---------- */
.cta { padding-block: clamp(56px, 7vw, 96px); }
.cta-panel { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: clamp(22px, 2.2vw, 26px) clamp(24px, 5vw, 64px); border-radius: 26px;
  background:
    radial-gradient(circle 90px at calc(91% - 90px) 20px, rgba(255, 255, 255, .1) 88px, rgba(255, 255, 255, .2) 88.5px 90px, transparent 90.5px),
    radial-gradient(circle 100px at calc(74% - 100px) calc(100% + 50px), rgba(255, 255, 255, .08) 98px, rgba(255, 255, 255, .16) 98.5px 100px, transparent 100.5px),
    linear-gradient(90deg, #fd9c06 0%, #fd5e38 26%, #ee2980 44%, #cd27ba 70%, #8728f5 100%); color: #fff; text-align: center; box-shadow: 0 40px 80px -40px rgba(126, 34, 206, .7); }
.cta-panel h2 { margin: 0; max-width: 640px; font-size: clamp(24px, 2.4vw, 31px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.cta-panel p { margin: 0; font-size: 19px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.cta-panel .btn { margin-top: 6px; font-size: 15px; padding: 12px 26px; border-radius: 12px; --fg: var(--ink-display); --edge: rgba(15, 23, 42, .18); }
.cta-panel--mascot { padding-left: clamp(280px, 30%, 370px); }
.cta-mascot { position: absolute; z-index: 1; left: clamp(10px, 2.4vw, 34px); bottom: 0; height: 107.4%; aspect-ratio: 474 / 320; pointer-events: none; }
.cta-mascot img { display: block; width: 100%; height: 100%; }
.cta-mascot .cta-mascot__prop { position: absolute; right: -40%; bottom: -4%; width: 56%; transform: rotate(-8deg); -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .25)); }
.cta-dots { position: absolute; z-index: -1; right: 3.5%; top: auto; bottom: 26px; width: 70px; height: 56px; background-image: radial-gradient(rgba(255, 255, 255, .5) 2px, transparent 2.5px); background-size: 14px 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #cbd5e1; padding-block: 56px 30px; font-size: 14.5px; line-height: 1.7; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; text-decoration: none; }
.footer-brand img { width: 56px; padding: 6px; border-radius: 14px; background: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-address { margin: 0; max-width: 460px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-list li { display: flex; align-items: flex-start; gap: 12px; }
.footer-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--orange); }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; color: #94a3b8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- floating demo pill ---------- */
.demo-pill {
  position: fixed; left: 50%; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px; border-radius: 999px;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 18px 34px -12px rgba(234, 88, 12, .75), 0 0 0 6px rgba(249, 115, 22, .16);
  opacity: 0; visibility: hidden; transform: translate(-50%, 140%);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, visibility 0s linear .4s;
}
.demo-pill.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, visibility 0s; }
.demo-pill:hover { color: #fff; background: var(--orange-700); }
.demo-pill .icon { width: 18px; height: 18px; stroke-width: 2.4; }

/* ---------- motion ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }
.js .hero__copy > *, .js .lead-card { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero__copy > :nth-child(2) { animation-delay: .06s; }
.js .hero__copy > :nth-child(3) { animation-delay: .12s; }
.js .hero__copy > :nth-child(4) { animation-delay: .18s; }
.js .hero__copy > :nth-child(5) { animation-delay: .24s; }
.js .hero__copy > :nth-child(6) { animation-delay: .30s; }
.js .lead-card { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero__copy > *, .js .lead-card,   .btn, .mat-card, .course, .demo-pill, .fun-btn { transition: none; }
}


/* ---------- playful motion (only when landing.js runs; off for reduced motion) ---------- */
@keyframes br-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes br-float-sm { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes br-zoom-in { from { opacity: 0; scale: .94; } to { opacity: 1; scale: 1; } }
.reveal-on .hiw__tr, .reveal-on .hiw__bl, .reveal-on .hiw__br, .reveal-on .mats__bl, .reveal-on .mats__br,
.reveal-on .faq-art, .reveal-on .why__mascot { animation: br-float 6.5s ease-in-out infinite; }
.reveal-on .hiw__bl, .reveal-on .mats__br, .reveal-on .faq-art--r { animation-duration: 7.5s; animation-delay: -2.5s; }
.reveal-on .hiw__br, .reveal-on .mats__bl { animation-duration: 5.8s; animation-delay: -1.2s; }
.reveal-on .doodle, .reveal-on .hero__doodle, .reveal-on .why__doodle, .reveal-on .fun-burst, .reveal-on .hero__burst, .reveal-on .faq-sign { animation: br-float-sm 4.8s ease-in-out infinite; }
.reveal-on .doodle--tr, .reveal-on .doodle--br, .reveal-on .hero__doodle--bulb, .reveal-on .fun-burst--r { animation-delay: -2.2s; }
.reveal-on .hero__photo { animation: br-zoom-in 1.1s cubic-bezier(.2, .7, .2, 1) both .1s; }
/* step arrows draw themselves in */
.reveal-on .reveal .fun-arrow { stroke-dasharray: 130; stroke-dashoffset: 130; transition: stroke-dashoffset 1s cubic-bezier(.4, 0, .2, 1) .55s; }
.reveal-on .reveal.is-in .fun-arrow { stroke-dashoffset: 0; }
/* badges and icons pop */
.reveal-on .reveal .fun-num, .reveal-on .reveal .why-card__icon, .reveal-on .reveal .plan__icon, .reveal-on .reveal .mat-card__num { scale: .3; opacity: 0; transition: scale .55s cubic-bezier(.34, 1.56, .64, 1) .3s, opacity .3s ease .3s; }
.reveal-on .reveal.is-in .fun-num, .reveal-on .reveal.is-in .why-card__icon, .reveal-on .reveal.is-in .plan__icon, .reveal-on .reveal.is-in .mat-card__num { scale: 1; opacity: 1; }
/* ribbons open from the centre */
.reveal-on .reveal .fun-label { clip-path: inset(0 50% 0 50%); transition: clip-path .65s cubic-bezier(.4, 0, .2, 1) .2s; }
.reveal-on .reveal.is-in .fun-label { clip-path: inset(-20px -30px -20px -30px); }
/* arrow nudge on the playful button */
.fun-btn__go .icon { transition: translate .2s ease; }
.fun-btn:hover .fun-btn__go .icon { translate: 3px 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .hiw__tr, .reveal-on .hiw__bl, .reveal-on .hiw__br, .reveal-on .mats__bl, .reveal-on .mats__br, .reveal-on .faq-art, .reveal-on .why__mascot,
  .reveal-on .cta-mascot, .reveal-on .hiw__kid, .reveal-on .doodle, .reveal-on .hero__doodle, .reveal-on .why__doodle, .reveal-on .fun-burst,
  .reveal-on .hero__burst, .reveal-on .faq-sign, .reveal-on .hero__photo { animation: none; }
  .reveal-on .reveal .fun-arrow { stroke-dashoffset: 0; transition: none; }
  .reveal-on .reveal .fun-num, .reveal-on .reveal .why-card__icon, .reveal-on .reveal .plan__icon, .reveal-on .reveal .mat-card__num { scale: 1; opacity: 1; transition: none; }
  .reveal-on .reveal .fun-label { clip-path: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) { .hero__burst--l { display: none; } }
@media (max-width: 1180px) { .faq-art, .faq-sign { display: none; } }
@media (max-width: 900px) { .cta-panel--mascot { padding-left: clamp(24px, 5vw, 64px); } .cta-mascot { display: none; } }
/* "Book a FREE Demo" under the hero text: phones only (desktop has the form right beside it) */
.hero__cta-mobile { display: none; }
@media (max-width: 760px) { .hero__cta-mobile { display: inline-flex; align-self: flex-start; } }
/* hero chips on phones: one tidy row of three equal tiles (icon over text) instead of ragged pills */
@media (max-width: 760px) {
  .hero .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero .chip { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 10px 6px 11px; border-radius: 16px; text-align: center; font-size: 12.5px; line-height: 1.3; }
  .hero .chip__icon { width: 30px; height: 30px; }
}
@media (max-width: 760px) { .hero__inner { padding-bottom: 170px; } .stats + .band, .stats + .section { padding-top: calc(64px + 150px); } }
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .hero__copy { max-width: 660px; }
  .hero__photo { position: relative; left: auto; bottom: auto; width: 100%; max-width: 560px; aspect-ratio: 16 / 11; border-radius: 28px; overflow: hidden; -webkit-mask-image: none; mask-image: none; box-shadow: var(--shadow-lg); }
  .hero__doodle, .hero__burst { display: none; }
  .lead-card { justify-self: start; max-width: 560px; }
  .stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .stat:nth-child(4) { border-left: 0; }
}
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(even) { border-left: 1.5px dashed #e2e8f0; }
  .stat:last-child { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 1279px) { .hiw-card .fun-label { white-space: normal; min-height: 2.9em; } }
@media (min-width: 1181px) { .why-grid { margin-left: clamp(200px, 17vw, 250px); } .why .fun-head { translate: clamp(100px, 8.5vw, 125px) 0; } }
@media (max-width: 1180px) { .why__mascot, .why__doodle { display: none; } }
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hiw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hiw-steps > :nth-child(2) .fun-arrow { display: none; }
  .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hiw__bl, .hiw__br, .mats__bl, .mats__br, .hiw__kid { display: none; }
}
@media (max-width: 960px) {
  .plans:not(.plans--two) { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plans:not(.plans--two) .plan__price { min-height: 0; }
  .why-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .why-grid .fun-arrow, .hiw__kid, .hiw__tr { display: none; }
  .results { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .courses { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .doodle { display: none; }
}
@media (max-width: 760px) {
  .header-actions .btn { display: none; }
  .call-link__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .plans--two { grid-template-columns: 1fr; max-width: 560px; }
  .plans--two .plan__price { min-height: 0; }
}
@media (max-width: 600px) {
  .hiw-steps, .mat-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .fun-arrow, .fun-head > .fun-burst, .fun-cta > .fun-burst { display: none; }
  .fun-btn__main { gap: 10px; font-size: 20px; }
  .fun-pill::before, .fun-pill::after { width: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .demo-pill { padding: 15px 28px; font-size: 14px; }
  .plan-footnote { align-items: flex-start; text-align: left; }
  .plan-footnote .icon { margin-top: 3px; }
}
@media (max-width: 440px) {
  .brand img { width: 40px; }
  .brand-name { font-size: 19px; }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 auto; padding-inline: 18px; }
  .chips { gap: 8px; }
  .chip { padding: 8px 12px; font-size: 13px; }
  .cta-panel { padding-inline: 18px; }
  .cta-panel .btn, .prose .btn { padding-inline: 18px; font-size: 15px; gap: 8px; }
  .plan__amount { font-size: 34px; }
}
