/* Leo Learn landing page.
 *
 * Colours are docs/design-system.html's, and the tactile language is the app's: a hard edge
 * under anything pressable (4px, 1px when pressed, 3px of travel) and flat for anything that is
 * not. A hard edge says "press me", so a static card never gets one.
 *
 * Every loop here is transform or opacity only, so it runs on the compositor and never costs a
 * layout; and every one stops for a visitor who asked for less motion (the block at the end).
 */

/* -------------------------------------------------------------------------------- fonts */

/* Served from here rather than Google Fonts: its stylesheet is a render-blocking request to a second
   host and the files a third, before a word is painted. These are Google's own subsets (all SIL Open
   Font License), one variable file each covering every weight, and `unicode-range` still means an
   English page never downloads the Sinhala or Tamil one. The portal's pages keep Google Fonts. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/fredoka-latin-ext.d3c5911bfd9a.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/fredoka-latin.9591efe1be62.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Sinhala"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/noto-sans-sinhala-sinhala.52824c82fd2b.woff2") format("woff2"); unicode-range: U+0964-0965, U+0D81-0DF4, U+1CF2, U+200C-200D, U+25CC, U+111E1-111F4; }
@font-face { font-family: "Noto Sans Tamil"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/noto-sans-tamil-tamil.d261ea350ebe.woff2") format("woff2"); unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/nunito-sans-latin-ext.9c7238686bb7.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/nunito-sans-latin.14ea133c476f.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --gold: #FFC638;
  --gold-edge: #D99A00;
  --mane: #F0642A;
  /* The mane darkened until small text on the cream passes 4.5:1; the mane itself measures 3.1. */
  --mane-ink: #C2410C;
  --ink: #302B24;
  --ink-soft: #6C655B;
  --ink-edge: #14110D;
  --surface: #FFF8E8;
  --paper: #FFFCF5;
  --white: #FFFFFF;
  --line: #DED9D0;
  --card-line: #EFE6D2;
  --outline: #8B8275;
  --blue: #086DA8;
  --green: #237A43;
  --green-soft: #E3F4E8;
  --red: #B53434;
  --red-soft: #FBE7E5;
  /* Premium's violet is premium and nothing else, as in the app (AppColors.premium, premiumDeep). */
  --premium: #7050B5;
  --premium-deep: #3B2470;
  /* The app's night, which the teacher portal's header wears (apps/portal's --color-leo-navy). */
  --navy: #24304D;
  --night: #161E33;
  --mist: #C9D3EA;
  /* Card washes, one per audience, kept as a set so a door and its section agree. */
  --wash-mane: #FFE3D1;
  --wash-blue: #DCE4F5;
  --wash-green: #D7F0DE;

  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 80px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Noto sits behind the Latin faces in both stacks, so a Sinhala or Tamil glyph falls through to
     it per character, and Google Fonts' unicode-range means an English page never downloads it. */
  --font-script: "Noto Sans Sinhala", "Noto Sans Tamil";
  --font-display: "Fredoka", var(--font-script), ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito Sans", var(--font-script), system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (max-width: 560px) { :root { --gutter: 16px; --nav-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
/* Author `display` rules would otherwise beat the attribute: a `.btn` is inline-flex. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
h2 { font-size: clamp(36px, 4.6vw, 64px); }

/* Sinhala and Tamil never take letter spacing or forced case — the same rule the app keeps.
   Spacing pulls a conjunct's parts apart, and neither script has a case to force. `:lang()` rather
   than an attribute match, so it reaches every element on a Sinhala page, not only tagged ones.
   No font override here: putting Noto first hands it the spaces and the Latin too, and its wide
   space opened every gap between Sinhala words. The shared stacks already fall back per glyph. */
:lang(si), :lang(ta) { letter-spacing: 0 !important; text-transform: none !important; }
/* Both scripts stack vowel signs above and below the line; Latin line heights clip them, and
   their words run longer than English, so the display sizes come down too. */
:lang(si) :is(h1, h2, h3), :lang(ta) :is(h1, h2, h3) { line-height: 1.35; font-weight: 700; }
:lang(si) h1, :lang(ta) h1 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.3; }
:lang(si) h2, :lang(ta) h2 { font-size: clamp(28px, 3.4vw, 44px); }
/* The hero's and the closing headline's own sizes outrank the two lines above, so they are named. */
:lang(si) .hero h1, :lang(ta) .hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.3; }
:lang(si) .final h2, :lang(ta) .final h2, :lang(si) .getapp h1, :lang(ta) .getapp h1 { max-width: 22ch; font-size: clamp(30px, 4vw, 52px); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 12px; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--mane-ink); }
.eyebrow-mane { color: var(--mane-ink); }
.eyebrow-green { color: var(--green); }
.eyebrow-gold { color: var(--gold); }
.eyebrow-violet { color: var(--premium); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 36ch; }
/* As .h1-sub's: a Sinhala or Tamil letter is far wider than the Latin "0" a `ch` measures. */
:lang(si) .lede, :lang(ta) .lede { max-width: 30em; }

/* ------------------------------------------------------------------------------ buttons */

.btn {
  --edge: var(--ink-edge);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font: 600 19px/1 var(--font-display);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 0 var(--edge);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--edge); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-white { --edge: #D8CDB4; background: var(--white); color: var(--ink); }
.btn-gold { --edge: var(--gold-edge); background: var(--gold); color: var(--ink); }
/* On the navy: a quieter second action, still pressable, so it keeps an edge. */
.btn-glass { --edge: rgb(0 0 0 / .35); background: rgb(255 255 255 / .12); color: var(--white); }
.btn-ghost { --edge: var(--line); background: var(--white); color: var(--ink); box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line); }
.btn-sm { min-height: 48px; padding: 0 22px; font-size: 17px; }

/* ---------------------------------------------------------------------------------- nav */

/* Fixed and floating, so the hero's gold runs under it rather than starting below it. */
.nav { position: fixed; inset: 14px var(--gutter) auto; z-index: 50; }
.nav-inner {
  max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgb(255 252 245 / .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgb(48 43 36 / .35);
}
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 24px/1 var(--font-display); white-space: nowrap; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { white-space: nowrap; padding: 10px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; transition: background-color .2s; }
.nav-links a:hover { background: var(--surface); }
.lang-switch { display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 999px; background: var(--surface); }
.lang-switch a { display: flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.2; color: var(--ink-soft); white-space: nowrap; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.nav-cta { white-space: nowrap; }
/* The section links go before they can squeeze anything else, at the width each language's labels
   need: English ~1040px of bar, Sinhala ~1120px, Tamil more than the page's own column. */
@media (max-width: 1100px) { .nav-links { display: none; } }
@media (max-width: 1180px) { :lang(si) .nav-links { display: none; } }
@media (max-width: 1320px) { :lang(ta) .nav-links { display: none; } }
/* On a phone the switcher is the one control that has to stay: someone who cannot read this
   language cannot find a way out of it in a menu. The brand keeps its lion and its name, the CTA
   goes, and everything tightens so the two still fit a 360px phone side by side. */
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .nav-inner { gap: 8px; padding-left: 10px; }
  .brand { gap: 8px; font-size: 20px; }
  .brand img { width: 38px; height: 38px; }
  .lang-switch a { padding: 6px 9px; font-size: 13px; }
}
/* Narrower than any common phone, the name is what gives way: the switcher outranks it. */
@media (max-width: 349px) { .brand span { display: none; } }

/* --------------------------------------------------------------------------------- hero */

.hero {
  position: relative; isolation: isolate; overflow: hidden; padding: 150px 0 140px;
  /* A sunrise behind the phone, orange creeping in at the corners, and a fine dot grid: flat gold read as a slab. */
  background:
    radial-gradient(circle at 72% 48%, #FFE68A 0%, rgb(255 230 138 / 0) 46%),
    radial-gradient(circle at 0% 100%, rgb(255 138 61 / .55) 0%, rgb(255 138 61 / 0) 42%),
    radial-gradient(circle at 100% 0%, rgb(255 138 61 / .4) 0%, rgb(255 138 61 / 0) 38%),
    radial-gradient(rgb(180 100 0 / .13) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
    var(--gold);
}
.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.d { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); opacity: .85; animation: drift var(--t) ease-in-out infinite; }
.d-dot { border-radius: 50%; background: var(--c); }
.d-star { background: var(--c); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.d-plus { background: var(--c); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
@media (max-width: 900px) { .d:nth-child(even) { display: none; } }
.burst {
  position: absolute; left: 72%; top: 52%; z-index: -1;
  width: 1900px; height: 1900px; margin: -950px 0 0 -950px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgb(255 255 255 / .28) 0deg 7deg, transparent 7deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 58%); mask: radial-gradient(circle, #000 8%, transparent 58%);
  animation: spin 80s linear infinite;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgb(255 255 255 / .65); border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mane-ink); animation: ping 1.8s infinite; }
.hero h1 { font-size: clamp(52px, 7.4vw, 104px); font-weight: 700; line-height: .98; margin: 22px 0; }
.h1-sub { display: block; max-width: 28ch; margin-top: 18px; font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.25; letter-spacing: 0; color: #4A3F2C; }
/* `ch` is the width of a Latin "0", and a Sinhala or Tamil letter is far wider, so 28ch holds half
   the English line and wraps the subtitle into a narrow column: these measure in em instead. */
:lang(si) .hero .h1-sub, :lang(ta) .hero .h1-sub { max-width: 24em; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; }
.marker { display: inline-block; background: var(--ink); color: var(--gold); padding: 0 .22em .06em; border-radius: .22em; transform: rotate(-3deg); transform-origin: 30% 60%; animation: wiggle 3.6s var(--ease) infinite; }
.hero .lede { color: #4A3F2C; font-size: clamp(18px, 1.6vw, 21px); max-width: 32ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-weight: 700; font-size: 15px; color: #4A3F2C; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust a { color: inherit; text-underline-offset: 3px; }
.trust li::before { content: ""; width: 7px; height: 13px; margin: 0 4px -2px 2px; border: solid currentColor; border-width: 0 3px 3px 0; transform: rotate(45deg) translateY(-3px); }

.stage { position: relative; aspect-ratio: 1; max-width: 600px; width: 100%; margin-left: auto; }
.stage-leo { position: absolute; inset: 6% 6% 4%; width: 88%; height: 90%; object-fit: contain; filter: drop-shadow(0 30px 30px rgb(120 70 0 / .25)); animation: bob 4s ease-in-out infinite; }
.shadow-blob { position: absolute; left: 28%; right: 28%; bottom: 2%; height: 22px; border-radius: 50%; background: rgb(120 70 0 / .22); filter: blur(6px); animation: squish 4s ease-in-out infinite; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 20px; padding: 10px 16px 10px 10px; font: 600 19px/1.15 var(--font-display); box-shadow: 0 16px 30px -14px rgb(80 50 0 / .45); white-space: nowrap; }
.chip img { width: 40px; height: 40px; }
.chip small { display: block; font: 700 12px/1 var(--font-body); color: var(--ink-soft); }
.c1 { top: 6%; left: -4%; animation: floaty 5s ease-in-out infinite; }
.c2 { top: 40%; right: -6%; animation: floaty 6s ease-in-out -2s infinite; }
.c3 { bottom: 12%; left: 0; animation: floaty 5.5s ease-in-out -1s infinite; }
.xp { position: absolute; top: 2%; right: 12%; background: var(--green); color: var(--white); font: 700 22px/1 var(--font-display); padding: 8px 16px; border-radius: 14px; transform: rotate(8deg); animation: popx 3.2s var(--ease) infinite; }
.spin-coin { position: absolute; width: 64px; animation: coinflip 2.4s linear infinite; }
.sc1 { top: 24%; left: 4%; }
.sc2 { bottom: 4%; right: 8%; width: 52px; animation-delay: -1.2s; }
.sparkle { position: absolute; fill: var(--white); animation: twinkle 2.2s ease-in-out infinite; }
.sp1 { top: 18%; right: 2%; width: 28px; }
.sp2 { bottom: 30%; left: 12%; width: 20px; animation-delay: -1s; }
.sp3 { top: 60%; right: 18%; width: 16px; animation-delay: -.5s; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; fill: var(--paper); }

/* --------------------------------------------------------------------------- ribbon */

.ribbon { position: relative; z-index: 3; overflow: hidden; margin: -34px -20px 0; padding: 18px 0; background: var(--ink); color: var(--white); transform: rotate(-2deg); box-shadow: 0 20px 40px -20px rgb(0 0 0 / .4); }
.track { display: flex; width: max-content; }
.track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font: 600 28px/1.2 var(--font-display); white-space: nowrap; }
.track img { width: 34px; height: 34px; }
/* A loop only once landing.js has doubled the set: half a lap of one set would jump. */
[data-loop].is-looping { animation: marquee 34s linear infinite; }

/* ----------------------------------------------------------------------------- sections */

.sec { position: relative; padding: 130px 0; }
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.center { align-items: center; text-align: center; }
.center .lede { margin: 0 auto; }
.section-tint { background: var(--surface); }

/* --------------------------------------------------------------------------------- video */

.vid-sec { padding: 150px 0 40px; }
.vid-sec .sec-head { margin-bottom: 44px; }
.hl2 { background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 92%, transparent 92%); padding: 0 .08em; }
.tv { position: relative; max-width: 1040px; margin: 0 auto; }
.tv-screen { position: relative; z-index: 1; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 34px; border: 10px solid var(--ink-edge); background: var(--ink-edge); box-shadow: 0 50px 90px -40px rgb(48 43 36 / .6); }
.tv-screen video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; background: #000; }
.tv-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border: 0; background: rgb(20 17 13 / .18); cursor: pointer; transition: background-color .3s; }
.tv-play:hover { background: rgb(20 17 13 / .06); }
.tv-btn { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); box-shadow: 0 6px 0 var(--gold-edge); animation: pulse 2s infinite; transition: transform .25s var(--ease); }
.tv-btn svg { width: 38px; margin-left: 6px; fill: currentColor; }
.tv-play:hover .tv-btn { transform: scale(1.1); }
.tv-len { background: var(--white); color: var(--ink); font: 600 17px/1 var(--font-display); padding: 8px 16px; border-radius: 99px; }
.tv-leo { position: absolute; right: 6%; top: -104px; width: 150px; animation: peekup 4s ease-in-out infinite; }
.tv-coin { position: absolute; left: -26px; bottom: 18%; z-index: 2; width: 70px; animation: coinflip 2.4s linear infinite; }

/* ------------------------------------------------------------------------------ who for */

.aud-sec { padding-bottom: 40px; }
.aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* The art's height is held clear above the words, so a title that wraps — Sinhala's and Tamil's
   do — grows the card downwards instead of running up under the picture. */
.door { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 220px 28px 28px; border-radius: 32px; text-decoration: none; color: var(--ink); transition: transform .35s var(--ease); }
.door:hover { transform: translateY(-8px) rotate(-1deg); }
.door-student { background: var(--wash-mane); }
.door-teacher { background: var(--wash-blue); }
.door-parent { background: var(--wash-green); }
.door img { position: absolute; top: 10px; right: -10px; width: 210px; transition: transform .45s var(--ease); }
.door:hover img { transform: scale(1.08) rotate(6deg); }
.door-title { position: relative; font: 600 34px/1.05 var(--font-display); }
.door-sub { position: relative; margin-top: 6px; font-weight: 700; opacity: .8; }
.go { position: absolute; left: 28px; top: 28px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .7); transition: transform .3s var(--ease); }
.go svg { width: 22px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.door:hover .go { transform: rotate(-45deg); }

/* ------------------------------------------------------------------------------ journey */

.journey { position: relative; }
.jsteps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.js { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.jart { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; border: 6px solid var(--white); box-shadow: 0 20px 30px -18px rgb(48 43 36 / .45); transition: transform .4s var(--ease); }
.jart img { width: 118px; height: 118px; object-fit: contain; }
.js:hover .jart { transform: translateY(-8px) rotate(-5deg) scale(1.06); }
/* Each picture swells as Leo runs past it. The delays are the moments the 16s `run` lap reaches
   the step (its left edge goes -2% to 96% of the track, the steps sit at 0, 25, 50, 75 and 100%),
   less the 0.64s a swell takes to peak: out of step, Leo would swell the wrong circle. `scale` is
   its own property so the hover's `transform` still composes with it. Only where the track shows. */
@media (min-width: 961px) {
  .jart { animation: swell 16s linear infinite; }
  .js:nth-child(1) .jart { animation-delay: -.34s; }
  .js:nth-child(2) .jart { animation-delay: 3.76s; }
  .js:nth-child(3) .jart { animation-delay: 7.86s; }
  .js:nth-child(4) .jart { animation-delay: 11.96s; }
  .js:nth-child(5) .jart { animation-delay: 14.7s; }
}
.jart-1 { background: var(--wash-mane); }
.jart-2 { background: var(--wash-blue); }
.jart-3 { background: var(--wash-green); }
.jart-4 { background: #2B2350; }
.jart-5 { background: #FFE9A8; }
.jn { position: relative; margin-top: -28px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); border: 4px solid var(--paper); font: 700 18px/1 var(--font-display); }
.js h3 { margin-top: 4px; font-size: 22px; line-height: 1.15; }
.jd { color: var(--ink-soft); font-size: 15px; max-width: 20ch; }
.jtrack { position: absolute; left: 10%; right: 10%; top: 72px; height: 8px; }
.jtrack i { position: absolute; inset: 0; border-radius: 8px; background: repeating-linear-gradient(90deg, #E6D6B4 0 18px, transparent 18px 30px); background-size: 30px 8px; animation: dash 1.1s linear infinite; }
.jrunner { position: absolute; top: -62px; width: 72px; animation: run 16s linear infinite; }
.jloop { position: relative; width: 55%; height: 44px; margin: 26px 0 0 3%; border: 3px dashed #E6D6B4; border-top: 0; border-radius: 0 0 44px 44px; }
.jmore { margin-top: 48px; text-align: center; }
.jloop span { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 24px; width: max-content; max-width: min(460px, 90vw); text-align: left; line-height: 1.35; background: var(--gold); font-weight: 800; font-size: 14px; }
.jloop svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------------------------------- try */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split-try { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split h2 { margin-top: 14px; }
.split .lede { margin-top: 18px; }
.try { background: var(--surface); }
.quiz { position: relative; padding: 30px; border-radius: 32px; background: var(--white); box-shadow: 0 30px 60px -30px rgb(48 43 36 / .35); }
.qtop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.qbar { height: 10px; margin-bottom: 22px; overflow: hidden; border-radius: 99px; background: #F1EADB; }
.qbar i { display: block; width: var(--done, 0%); height: 100%; border-radius: 99px; background: var(--green); transition: width .5s var(--ease); }
.qq { margin-bottom: 20px; font: 600 27px/1.2 var(--font-display); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 18px; border: 2px solid #E7DECB; background: var(--white); box-shadow: 0 4px 0 #E7DECB; font: 700 17px/1.25 var(--font-body); color: var(--ink); text-align: left; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s, background-color .12s; }
.opt:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #E7DECB; }
.opt:disabled { cursor: default; }
.k { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); font: 600 16px/1 var(--font-display); }
.opt.is-selected { border-color: var(--blue); box-shadow: 0 4px 0 var(--blue); background: #EEF6FC; }
.opt.is-selected .k { background: var(--blue); color: var(--white); }
.opt.is-right { border-color: var(--green); box-shadow: 0 4px 0 var(--green); background: var(--green-soft); animation: jelly .5s; }
.opt.is-right .k { background: var(--green); color: var(--white); }
.opt.is-wrong { border-color: var(--red); box-shadow: 0 4px 0 var(--red); background: var(--red-soft); animation: shake .45s; }
.opt.is-wrong .k { background: var(--red); color: var(--white); }
.fb { display: flex; gap: 14px; align-items: center; margin-top: 20px; padding: 14px 16px; border-radius: 20px; animation: rise .4s var(--ease) both; }
.fb img { flex: none; width: 64px; }
.fb b { display: block; font: 600 21px/1.2 var(--font-display); }
.fb.is-right { background: var(--green-soft); color: #14532D; }
.fb.is-wrong { background: var(--red-soft); color: #7F1D1D; }
.qfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.qhint { font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.burst-xp { position: absolute; top: -22px; right: 24px; padding: 8px 16px; border-radius: 14px; background: var(--green); color: var(--white); font: 700 22px/1 var(--font-display); animation: popx2 1.2s var(--ease) both; }

/* --------------------------------------------------------------------------------- boss */

.boss { overflow: hidden; padding-bottom: 0; background: var(--night); color: var(--white); }
.boss-bg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; object-fit: cover; object-position: center bottom; opacity: .55; }
.boss-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgb(22 30 51 / .75) 40%, rgb(22 30 51 / .2) 100%); }
.boss-in { position: relative; }
.boss .sec-head { margin-bottom: 30px; }
.boss .lede { color: var(--mist); }
.arena { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; max-width: 1000px; margin: 0 auto; padding-bottom: 30px; }
.fighter { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fighter img { width: min(100%, 380px); }
.f-leo img { animation: lunge 2.6s ease-in-out infinite; }
.f-boss img { animation: shudder 2.6s ease-in-out infinite; }
.hp { width: min(90%, 300px); display: flex; align-items: center; gap: 10px; padding: 5px; border-radius: 99px; background: rgb(255 255 255 / .12); }
.hp i { flex: 1; height: 16px; border-radius: 99px; }
.hp b { padding-right: 8px; font: 600 14px/1 var(--font-display); white-space: nowrap; }
.hp-l i { background: linear-gradient(90deg, #34D399, #22C55E); }
.hp-b i { background: linear-gradient(90deg, #FB7185, #EF4444); transform-origin: left; animation: drain 5.2s steps(1) infinite; }
.vs { align-self: center; font: 700 88px/1 var(--font-display); color: var(--gold); text-shadow: 0 6px 0 #B45309; animation: vs 1.3s ease-in-out infinite; }
.hit { position: absolute; top: 30%; left: 40%; opacity: 0; font: 700 34px/1 var(--font-display); color: var(--gold); animation: hit 2.6s ease-out infinite; }
.bigboss { position: relative; display: flex; align-items: center; gap: 24px; max-width: 860px; margin: 10px auto 0; padding: 14px 28px; border-radius: 28px; background: rgb(255 255 255 / .07); border: 2px solid rgb(255 198 56 / .4); }
.bigboss img { flex: none; width: 120px; animation: shudder 3.2s ease-in-out infinite; }
.bigboss img:last-child { animation-delay: -1.6s; }
.bigboss > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.bigboss .eyebrow { font-size: 13px; }
.bigboss h3 { font-size: 26px; line-height: 1.15; }
.bigboss p:last-child { color: var(--mist); }
.parade { position: relative; overflow: hidden; padding: 28px 0 40px; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ptrack { display: flex; gap: 44px; width: max-content; padding-right: 44px; }
.ptrack.is-looping { animation-duration: 40s; animation-direction: reverse; }
.parade img { width: 130px; height: 130px; object-fit: contain; animation: hop 1.4s ease-in-out infinite; }
.parade img:nth-child(2n) { animation-delay: -.7s; }
.parade img:nth-child(3n) { animation-delay: -.35s; }

/* -------------------------------------------------------------------------------- modes */

.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mode { position: relative; overflow: hidden; padding: 26px 26px 30px; border-radius: 32px; transition: transform .35s var(--ease); }
.mode:hover { transform: translateY(-8px); }
.mode-sprint { background: var(--wash-mane); }
.mode-survival { background: var(--wash-green); }
.mode-endless { background: var(--wash-blue); }
.mode img { width: 78%; margin: -6px auto 6px; transition: transform .5s var(--ease); }
.mode:hover img { transform: scale(1.1) rotate(-4deg); }
.mode h3 { font-size: 34px; }
.mode p:last-child { margin-top: 4px; font-weight: 700; opacity: .78; }
.tag { position: absolute; top: 20px; left: 20px; z-index: 1; padding: 5px 12px; border-radius: 99px; background: rgb(255 255 255 / .75); font: 600 14px/1.2 var(--font-display); }

/* ------------------------------------------------------------------------------- extras */

.extras-sec { padding-top: 20px; }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ex { position: relative; overflow: hidden; min-height: 470px; padding: 36px; border-radius: 36px; transition: transform .4s var(--ease); }
.ex:hover { transform: translateY(-6px); }
.ex-papers { background: #FFF1C7; }
.ex-games { background: #EAE3F7; }
.ex-txt { position: relative; z-index: 2; max-width: 52%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ex h3 { font-size: 40px; }
.ex-txt p:last-child { color: #4A4339; }
.tag2 { padding: 5px 12px; border-radius: 99px; color: var(--white); font: 600 14px/1.2 var(--font-display); }
.tag2-green { background: var(--green); }
.tag2-violet { background: var(--premium); }
.ex-phone { position: absolute; right: 30px; top: 60px; width: 220px; padding: 8px; border-radius: 34px; background: var(--ink-edge); transform: rotate(6deg); box-shadow: 0 30px 50px -26px rgb(48 43 36 / .6); transition: transform .5s var(--ease); }
.ex-phone img { border-radius: 27px; }
.ex:hover .ex-phone { transform: rotate(2deg) translateY(-16px); }
/* The games card holds two screens that overlap; the one under the pointer (or focus, for a tap) comes to the front and grows. */
.ex-games .ex-txt { max-width: 46%; }
.ex-games .ex-phone { --r: 6deg; right: 22px; top: 70px; width: 176px; z-index: 1; cursor: pointer; outline: none; }
.ex-games .ex-phone-b { --r: -5deg; right: 132px; top: 140px; z-index: 0; }
.ex-games .ex-phone, .ex-games:hover .ex-phone { transform: rotate(var(--r)); }
.ex-games .ex-phone:hover, .ex-games .ex-phone:focus { z-index: 3; transform: rotate(0deg) translateY(-22px) scale(1.08); }
.ex-leo { position: absolute; left: 26px; bottom: 14px; z-index: 2; width: 160px; animation: bob 4.2s ease-in-out infinite; }

/* ------------------------------------------------------------------------------ rewards */

.rewards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rw { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 28px; background: var(--white); box-shadow: 0 1px 0 var(--card-line); transition: transform .35s var(--ease); }
.rw:hover { transform: translateY(-6px) rotate(.6deg); }
.rw .ico { height: 124px; display: flex; align-items: flex-end; }
/* The study group is wider than it is tall: narrowed to the card rather than past it. */
.rw .ico img { width: auto; max-width: 100%; height: auto; max-height: 120px; animation: floaty 4s ease-in-out infinite; }
.rw h3 { font-size: 24px; }
.rw p { color: var(--ink-soft); font-size: 15px; }

/* ------------------------------------------------------------------------------ gallery */

.posters { overflow: hidden; padding-top: 40px; }
.posters .sec-head { margin-bottom: 40px; }
.pstrip { padding: 30px 0 50px; }
.pstrip:focus-visible { outline-offset: -3px; }
.ptrack2 { display: flex; width: max-content; }
.ptrack2.is-looping { animation-duration: 70s; }
.pstrip:hover .ptrack2, .pstrip:focus-within .ptrack2 { animation-play-state: paused; }
.poster { flex: none; width: 290px; margin-right: 28px; overflow: hidden; border-radius: 30px; box-shadow: 0 30px 50px -28px rgb(48 43 36 / .5); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.poster:nth-child(odd) { transform: rotate(-2.5deg) translateY(10px); }
.poster:nth-child(even) { transform: rotate(2deg); }
.poster:hover { position: relative; z-index: 2; transform: translateY(-14px) scale(1.06); box-shadow: 0 40px 60px -26px rgb(48 43 36 / .6); }
.poster img { width: 100%; }

/* ----------------------------------------------------------------------------- teachers */

.teach { overflow: hidden; background: var(--navy); color: var(--white); }
.teach .lede { color: var(--mist); }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 34px 0 36px; }
.feat { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: rgb(255 255 255 / .07); transition: background-color .25s; }
.feat:hover { background: rgb(255 255 255 / .12); }
.feat b { font: 600 20px/1.2 var(--font-display); }
.feat span:last-child { color: var(--mist); font-size: 15px; }
.fi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: var(--ink); }
.fi svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.teach .cta-row { margin-top: 0; }
.live-wrap { position: relative; }
.live { position: relative; padding: 4px 2px 0; }
.live-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 14px; }
.live-badge .dot { background: #DC2626; }
.live-q { margin-top: 8px; font: 600 22px/1.2 var(--font-display); }
.ring { --deg: 288deg; --ring: var(--gold); position: relative; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--ring) var(--deg), var(--card-line) 0deg); }
.ring.is-late { --ring: #DC2626; }
.ring-in { position: absolute; inset: 6px; border-radius: 50%; display: grid; place-items: center; background: var(--white); font: 700 20px/1 var(--font-display); }
.live-title { margin-bottom: 10px; font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { position: relative; overflow: hidden; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface); }
.row > * { position: relative; }
.row .bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 100%); border-radius: 16px; background: rgb(255 198 56 / .35); transition: width .9s var(--ease); }
.rank { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--white); font: 700 16px/1 var(--font-display); }
.row:first-child .rank { background: var(--gold); }
.row b { font-weight: 800; }
.score { font: 600 16px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.live-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.live-foot b { color: var(--green); }
.code { padding: 6px 14px; border-radius: 12px; background: var(--ink); color: var(--gold); font: 600 18px/1.2 var(--font-display); letter-spacing: .14em; }
/* The teacher portal in miniature: four screens a feature card beside it switches between. Fake names and
   numbers; the look follows the real portal (navy bar, paper canvas, white ringed cards, sky charts). */
.feat { cursor: pointer; }
.feat.is-on { background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 2px var(--gold); }
.feat:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tframe { position: relative; overflow: hidden; border-radius: 26px; background: var(--white); color: var(--ink); box-shadow: 0 50px 80px -40px rgb(0 0 0 / .7); transform: rotate(1.5deg) translateZ(0); backface-visibility: hidden; }
.tbar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; background: var(--night); color: var(--white); }
.tbar b { font: 600 16px/1 var(--font-display); }
.tdots { display: flex; gap: 5px; }
.tdots i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / .28); }
.tav { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #513400; font: 700 13px/1 var(--font-display); }
.ttabs { display: flex; gap: 4px; padding: 10px 14px 0; background: #FBF8F2; border-bottom: 2px solid #EFEBE3; overflow: hidden; }
.ttabs span { padding: 8px 12px; border-radius: 10px 10px 0 0; font-weight: 800; font-size: 13px; color: #78716C; white-space: nowrap; transition: color .25s, background-color .25s; }
.ttabs span.is-on { background: var(--white); color: #B9541A; box-shadow: inset 0 -3px 0 #E4752A; }
.tpanels { position: relative; min-height: 440px; padding: 14px; background: #FBF8F2; }
.tp { display: none; }
.tp.is-on { display: block; animation: tin .5s var(--ease); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.tcard { padding: 12px 14px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px #E7E5E4; }
.tgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.tch { margin-bottom: 8px; font-size: 13px; }
.tch b { font-weight: 800; }
.bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 7px; height: 104px; border-bottom: 1px solid #E7E5E4; }
.bars i { flex: 0 0 10%; height: var(--h); border-radius: 4px 4px 0 0; background: #38BDF8; transform-origin: bottom; animation: grow .8s var(--ease) both; animation-delay: var(--d); }
.bars i.now { background: #0284C7; }
@keyframes grow { from { transform: scaleY(0); } }
.bars-x { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10px; font-weight: 700; color: #78716C; }
.hm { display: flex; flex-direction: column; gap: 3px; }
.hm-r { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: #57534E; }
.hm-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-r div { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; }
.hm-r i { aspect-ratio: 1; border-radius: 3px; background: #F5F5F4; animation: pop .5s var(--ease) both; animation-delay: var(--d); }
.hm-r i.b1 { background: #BAE6FD; }
.hm-r i.b2 { background: #38BDF8; }
.hm-r i.b3 { background: #0369A1; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.ta { display: grid; gap: 4px; margin-bottom: 10px; font-size: 12px; }
.ta b { font-weight: 800; }
.ta em { font-style: normal; font-size: 11px; font-weight: 700; color: #B91C1C; }
.mt { height: 8px; border-radius: 99px; background: #F5F5F4; overflow: hidden; }
.mt i { display: block; height: 100%; width: var(--w); border-radius: 99px; animation: fill 1s var(--ease) .2s both; }
.mt i.lo { background: #EF4444; }
.mt i.mid { background: #F59E0B; }
.mt i.hi { background: #10B981; }
@keyframes fill { from { width: 0; } }
/* The live screen keeps its own markup; here it sits on the portal's canvas. */
.rows .row:nth-child(1) .rank { background: #FBBF24; }
.rows .row:nth-child(2) .rank { background: #D6D3D1; }
.rows .row:nth-child(3) .rank { background: #FDBA74; }
.cw-top { display: flex; gap: 8px; margin-bottom: 12px; }
.tbtn { padding: 7px 12px; border-radius: 9px; background: var(--white); box-shadow: 0 0 0 1px #D6D3D1; font-weight: 800; font-size: 12px; }
.tbtn-p { background: #B9541A; color: var(--white); box-shadow: none; }
.cw-list { display: flex; flex-direction: column; }
.cw-r { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 62px; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #F5F5F4; }
.cw-i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #F5F5F4; font: 700 14px/1 var(--font-display); color: #57534E; }
.cw-t { display: flex; flex-direction: column; min-width: 0; }
.cw-t b { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-t small { font-size: 11px; color: #78716C; font-weight: 700; }
.cw-d { font-size: 11px; font-weight: 700; color: #78716C; text-align: right; }
.bd { display: inline-block; padding: 3px 9px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 800; }
.bd-n { background: #F5F5F4; color: #44403C; }
.bd-g { background: #ECFDF5; color: #047857; }
.cw-s { display: grid; }
.cw-s .bd { grid-area: 1 / 1; justify-self: end; }
/* A paper is written, then published: the new row slides in as a draft and turns green. */
.tp.is-on .cw-new { animation: cwin .7s var(--ease) .35s both; }
.tp.is-on .cw-new .bd-n { animation: gone .3s 2.6s both; }
.tp.is-on .cw-new .bd-g { animation: here .4s 2.6s both; }
@keyframes cwin { from { opacity: 0; transform: translateY(-16px); } }
@keyframes gone { to { opacity: 0; transform: scale(.8); } }
@keyframes here { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.cw-new .bd-g { opacity: 0; }
.qb .tch { font-size: 15px; }
.qb-h { margin-bottom: 8px; font-size: 12px; color: #57534E; font-weight: 700; }
.qchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.qchip { padding: 5px 11px; border-radius: 99px; box-shadow: 0 0 0 1px #D6D3D1; font-size: 11px; font-weight: 800; color: #57534E; }
.qchip.is-on { background: #FFF6ED; box-shadow: 0 0 0 1px #E4752A; color: #974217; }
.qb-list { border-radius: 10px; box-shadow: 0 0 0 1px #E7E5E4; }
.qb-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-top: 1px solid #F5F5F4; }
.qb-r:first-child { border-top: 0; }
.qb-t { display: flex; flex-direction: column; }
.qb-t b { font-size: 13px; font-weight: 800; }
.qb-t small { font-size: 11px; color: #78716C; font-weight: 700; }
.step { display: inline-flex; align-items: center; border-radius: 9px; box-shadow: 0 0 0 1px #D6D3D1; overflow: hidden; }
.step u { width: 28px; height: 28px; display: grid; place-items: center; text-decoration: none; font-weight: 800; color: #57534E; }
.step output { min-width: 30px; text-align: center; font: 700 14px/28px var(--font-display); transition: color .2s; }
.qb-r.is-set .step output { color: #B9541A; }
.qb-r.is-bump .step output { animation: bump .3s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
.qb-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.qb-f .tbtn-p { transition: transform .15s, opacity .2s; }
.qb-f .tbtn-p.is-press { transform: scale(.94); }
.qb-f .tbtn-p.is-off { opacity: .5; }
/* Out past the card's corner, but only into the column gap: further and he sits on the last tile. */
.peek { position: absolute; left: -70px; bottom: -40px; z-index: 2; width: 150px; transform: rotate(-8deg); animation: peek 5s ease-in-out infinite; }

/* ------------------------------------------------------------------------------ parents */

.parents { background: var(--green-soft); }
.ptiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.pt { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 24px; background: var(--white); }
.pt .fi { width: 48px; height: 48px; border-radius: 15px; background: var(--green-soft); color: var(--green); }
.pt b { font: 600 20px/1.2 var(--font-display); }
.pt span:last-child { color: var(--ink-soft); font-size: 15px; }
.pvis { position: relative; height: 620px; }
.blob { position: absolute; inset: 12% 6% 6%; border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; background: #BFE6CB; animation: morph 12s ease-in-out infinite; }
.phone { position: absolute; left: 50%; top: 20px; width: 280px; margin-left: -140px; padding: 9px; border-radius: 40px; background: var(--ink-edge); box-shadow: 0 40px 60px -30px rgb(48 43 36 / .55); transform: rotate(4deg); animation: phoneC 7s ease-in-out infinite; }
.phone img { border-radius: 32px; }
.pleo { position: absolute; left: -6px; bottom: 0; z-index: 10; width: 190px; animation: bob 4.4s ease-in-out infinite; }
/* Three screens in a fan; the one under the pointer (or focus, for a tap) comes to the front and straightens. */
.pph { --r: 0deg; position: absolute; top: 40px; width: 40%; padding: 7px; border-radius: 32px; background: var(--ink-edge); box-shadow: 0 40px 60px -30px rgb(48 43 36 / .55); transform: rotate(var(--r)); transition: transform .5s var(--ease); cursor: pointer; outline: none; z-index: 1; }
.pph img { border-radius: 26px; }
.pph-l { --r: -8deg; left: 0; top: 80px; }
.pph-r { --r: 8deg; right: 0; top: 80px; }
.pph-c { --r: 0deg; left: 50%; margin-left: -20%; top: 20px; z-index: 2; }
.pph:hover, .pph:focus { z-index: 5; transform: rotate(0deg) translateY(-20px) scale(1.08); }
.pnote { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pfine { margin-top: 12px; font-size: 12px; color: var(--ink-soft); }
.pnote li { padding: 6px 12px; border-radius: 99px; background: rgb(255 255 255 / .7); color: var(--green); font-weight: 800; font-size: 13px; }
.sent { position: absolute; right: 8px; bottom: 28px; z-index: 11; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; background: var(--white); font-weight: 800; font-size: 15px; box-shadow: 0 20px 30px -16px rgb(20 60 30 / .4); animation: floaty 5s ease-in-out infinite; }
.sent i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); }
.sent svg { width: 16px; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------------------ pricing */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 980px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 36px; border-radius: 36px; }
.plan > * { position: relative; }
.plan-free { background: var(--white); box-shadow: 0 1px 0 var(--card-line), 0 30px 60px -40px rgb(48 43 36 / .4); }
.plan-pro { background: var(--premium-deep); color: var(--white); }
.plan h3 { font-size: 30px; }
.price { font: 700 64px/1 var(--font-display); }
.price small { font-size: 20px; font-weight: 600; opacity: .7; }
.save { align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 14px; }
.save b { font-weight: 800; }
.ticks { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
/* The disc and the tick drawn in CSS, so each plan colours them without a picture apiece. */
.ticks li::before { content: ""; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--green-soft); }
.ticks li::after { content: ""; position: absolute; left: 10px; top: 7px; width: 6px; height: 11px; border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.plan-pro .ticks li::before { background-color: rgb(255 255 255 / .14); }
.plan-pro .ticks li::after { border-color: var(--gold); }
.plan .btn { align-self: stretch; }
/* The web deal, a coupon under the store's button: dashed like a ticket, so it reads as an offer
   beside the price rather than a second way to pay the same one. */
.deal { display: flex; align-items: center; gap: 12px; margin-top: -4px; padding: 12px 14px; border: 2px dashed rgb(255 198 56 / .7); border-radius: 18px; color: var(--white); font-size: 15px; text-decoration: none; transition: background .2s var(--ease), border-color .2s var(--ease); }
.deal:hover, .deal:focus-visible { background: rgb(255 255 255 / .08); border-color: var(--gold); }
.deal-tag { flex: none; padding: 4px 10px; border-radius: 99px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.deal-text { flex: 1; font-weight: 700; }
.deal-text b { color: var(--gold); font-weight: 800; }
.deal-text s { opacity: .6; font-weight: 600; }
.deal-go { flex: none; width: 18px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chest { position: absolute !important; right: 4px; top: -116px; z-index: 2; width: 130px; filter: drop-shadow(0 16px 18px rgb(30 15 60 / .35)); animation: bob 4s ease-in-out infinite; }
.glints { position: absolute !important; right: -30px; top: -150px; z-index: 3; width: 240px; height: 240px; pointer-events: none; }
.gl { position: absolute; fill: var(--gold); filter: drop-shadow(0 0 6px rgb(255 214 90 / .9)); animation: glint 2.4s ease-in-out infinite; }
.g1 { width: 30px; left: 8px; top: 40px; }
.g2 { width: 20px; right: 20px; top: 10px; animation-delay: -.6s; }
.g3 { width: 26px; right: 0; top: 120px; animation-delay: -1.2s; }
.g4 { width: 16px; left: 40px; top: 150px; animation-delay: -1.8s; fill: var(--white); }
.g5 { width: 14px; left: 90px; top: 0; animation-delay: -.9s; fill: var(--white); }
.g6 { width: 22px; right: 48px; top: 190px; animation-delay: -1.5s; }
.dotg { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #FFE58A; box-shadow: 0 0 8px #FFE58A; animation: glint 1.8s ease-in-out infinite; }
.d1 { left: 30px; top: 100px; animation-delay: -.3s; }
.d2 { right: 70px; top: 60px; animation-delay: -1.1s; }
.d3 { right: 14px; top: 200px; animation-delay: -.7s; }

/* ---------------------------------------------------------------------------------- faq */

.faq-sec { padding-top: 0; }
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { overflow: hidden; border-radius: 22px; background: var(--white); box-shadow: 0 1px 0 var(--card-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; padding: 16px 24px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 21px; line-height: 1.25; }
.faq summary::after { content: "+"; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font: 700 24px/1 var(--font-body); transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); }
.faq details p { max-width: 62ch; padding: 0 24px 22px; color: var(--ink-soft); }
.faq details[open] p { animation: rise .35s var(--ease) both; }

/* ------------------------------------------------------------------------------ support */

.support-sec { padding-top: 0; }
.support { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 820px; margin: 0 auto; }
/* One card a way to reach us, the address written large: it is read off a screen and typed. */
.support-way { flex: 1 1 300px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 16px; padding: 22px 24px; border-radius: 22px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 0 4px 0 var(--card-line); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.support-way:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--card-line); }
.support-way:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--card-line); }
.support-way svg { grid-row: span 2; width: 48px; height: 48px; padding: 10px; border-radius: 50%; background: var(--gold); fill: var(--ink); }
.support-label { color: var(--ink-soft); font-size: 15px; }
/* An email address has no spaces to break at, and a phone's card is narrower than it. */
.support-value { font: 600 22px/1.2 var(--font-display); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------------------------- cta */

.final { position: relative; isolation: isolate; overflow: hidden; padding: 130px 0 120px; background: var(--gold); text-align: center; }
.final .burst { left: 50%; top: 60%; }
.final h2, .getapp h1 { max-width: 13ch; margin: 0 auto; font-size: clamp(42px, 6vw, 84px); }
.final-leo { width: 240px; margin: 0 auto 10px; animation: bob 3.6s ease-in-out infinite; }
.final-sub { margin-top: 18px; font-size: 19px; color: #4A3717; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 22px 10px 16px; border-radius: 18px; background: var(--ink); color: var(--white); font: 600 19px/1.1 var(--font-display); text-decoration: none; }
.store svg { flex: none; width: 28px; height: 28px; fill: var(--gold); }
a.store { box-shadow: 0 4px 0 var(--ink-edge); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
a.store:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink-edge); }
a.store:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink-edge); }
/* Not a link yet, so no edge: dashed reads as "not here", where a filled pill would look pressable. */
.store-soon { background: transparent; color: #4A3717; border: 2px dashed rgb(48 43 36 / .45); }
.store-soon svg { fill: currentColor; }
/* A text link under the badges, so it never competes with them: the app stays the recommended way. */
.web-link { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 22px; font-size: 15px; color: #4A3717; }
.web-link a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.web-link a:hover { text-decoration-thickness: 2px; }
/* The get-app page is the closing section alone, a screen tall, the brand above it. */
.getapp { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 28px 0 72px; }
.getapp .burst { top: 55%; }
.getapp-top { width: 100%; text-align: left; }
.getapp-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 24px; }

/* ------------------------------------------------------------------------------- footer */

.footer { padding: 70px 0 48px; background: var(--night); color: var(--mist); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; font-size: 15px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer .brand { color: var(--white); font-size: 22px; }
.footer .brand img { width: 36px; height: 36px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .08); color: var(--white); transition: background .15s var(--ease), color .15s var(--ease); }
.footer-social a:hover { background: rgb(255 255 255 / .16); }
.footer-social svg { width: 20px; height: 20px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-head { font: 600 18px/1.2 var(--font-display); color: var(--white); }
.footer a { font-weight: 600; text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* ------------------------------------------------------------------------ legal pages */

.doc { padding: 96px 0; }
.doc h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.03em; }
.doc-brand { margin-bottom: 56px; }
.doc-placeholder { max-width: 720px; margin-top: 28px; padding: 24px 28px; border-radius: 28px; background: var(--surface); border: 1.5px dashed var(--outline); font-size: 19px; color: var(--ink-soft); }
.doc-back { margin-top: 32px; }
.doc-notice { max-width: 720px; margin-top: 28px; padding: 16px 22px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--gold-edge); color: var(--ink); }
.doc-body { max-width: 720px; margin-top: 28px; font-size: 18px; line-height: 1.65; }
.doc-body h2 { margin: 44px 0 12px; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.01em; }
.doc-body p, .doc-body ul { margin: 0 0 16px; }
.doc-body ul { padding-left: 24px; list-style: disc; }
.doc-body li { margin-bottom: 8px; }
.doc-body .doc-updated { color: var(--ink-soft); font-size: 16px; }

/* ------------------------------------------------------------------------ coverage page */

/* One colour per state, used by every mark of it — icon, pill, bar — so a glance down a grade reads
   it without the legend. Not yet is grey on purpose: it is not a fault, just not there. */
.st-covered { --st: var(--green); --st-soft: var(--green-soft); }
.st-partly { --st: var(--gold-edge); --st-soft: #FFF1C7; }
.st-in_progress { --st: var(--gold-edge); --st-soft: #FFF1C7; }
.st-not_yet { --st: var(--outline); --st-soft: #F1ECE2; }


.cov-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--st); }
.cov-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* The page opens on the numbers, clear of the fixed nav. */
.cov-main { padding-top: 124px; }
/* All the page has above the grades, so it is set on the landing's gold, its burst turning behind,
   each card with a hard edge in its own colour. */
.cov-summary-in { position: relative; isolation: isolate; overflow: hidden; padding: 30px; border-radius: 36px; background: var(--gold); box-shadow: 0 6px 0 var(--gold-edge); }
.cov-summary-in .burst { left: 50%; top: 50%; }
.cov-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cov-total { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 22px 22px 20px; border-radius: 26px; background: var(--white); box-shadow: 0 5px 0 var(--st); transition: transform .2s var(--ease); }
.cov-total:hover { transform: translateY(-3px) rotate(-1deg); }
.cov-total .cov-icon { grid-row: span 2; width: 52px; height: 52px; }
.cov-total .cov-icon svg { width: 30px; height: 30px; }
.cov-total b { font: 700 52px/1 var(--font-display); letter-spacing: -.02em; color: var(--st); }
.cov-total span:last-child { font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--ink-soft); }
.t-ready { --st: var(--green); }
.t-question { --st: var(--gold-edge); }
.t-lesson { --st: var(--blue); }
.t-paper { --st: var(--premium); }

/* ------------------------------------------------------------ coverage: the grade picker */

/* A grade tab is a link to the grade's page at `#picker`, which keeps the fixed nav off the tabs. */
.picker { padding: 64px 0 0; scroll-margin-top: 24px; }
/* The page opens at `#picker` already there, not scrolled down to it from the top: animated, the
   slide from the hero is the jump the link exists to hide. */
html:has(#picker) { scroll-behavior: auto; }
/* The radios drive the page and the labels are what is seen; kept focusable for a keyboard, whose
   ring the page's own rules draw on the matching label. */
.pick { position: absolute; opacity: 0; pointer-events: none; }
.picker-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
/* The grades in the school system's stages, each a tray of its tabs under the stage's name. */
.grade-group { display: grid; gap: 6px; min-width: 0; }
.grade-stage { padding-left: 6px; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.grade-tabs { display: flex; flex-wrap: wrap; justify-self: start; gap: 6px; padding: 6px; border-radius: 20px; background: #F3ECDD; }
.gtab { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; min-height: 64px; padding: 6px 10px; border-radius: 20px; background: var(--white); box-shadow: 0 4px 0 #D8CDB4; cursor: pointer; transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.gtab:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #D8CDB4; }
.gtab { color: inherit; text-decoration: none; }
.gtab[aria-current="page"] { background: var(--ink); color: var(--white); box-shadow: 0 4px 0 var(--ink-edge); }
.gtab[aria-current="page"] .gtab-ready { color: #9BE3B6; }
.gtab:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gtab b { font: 700 24px/1 var(--font-display); }
.gtab small { margin-top: 3px; font-weight: 800; font-size: 12px; color: var(--green); white-space: nowrap; }
.medium { display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 999px; background: #F3ECDD; }
.medium label { display: flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
#m-en:checked ~ .picker-bar label[for="m-en"],
#m-si:checked ~ .picker-bar label[for="m-si"],
#m-ta:checked ~ .picker-bar label[for="m-ta"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
#m-en:focus-visible ~ .picker-bar label[for="m-en"],
#m-si:focus-visible ~ .picker-bar label[for="m-si"],
#m-ta:focus-visible ~ .picker-bar label[for="m-ta"] { outline: 3px solid var(--blue); outline-offset: 2px; }

.lang-note { display: none; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 18px; border-radius: 20px; background: #FFF1C7; font-weight: 700; }
.lang-note img { width: 48px; height: 48px; }
#m-en:checked ~ .lang-note[data-lang="en"],
#m-si:checked ~ .lang-note[data-lang="si"],
#m-ta:checked ~ .lang-note[data-lang="ta"] { display: flex; }
.lang-note.cov-down { display: flex; }

.panel { margin-top: 28px; }

/* ------------------------------------------------------------ coverage: a subject's card */

/* Whatever is marked for a medium shows only while that medium is picked. Hiding the others,
   rather than showing the one, leaves each element its own `display`. */
#m-en:checked ~ * [data-lang]:not([data-lang="en"]),
#m-si:checked ~ * [data-lang]:not([data-lang="si"]),
#m-ta:checked ~ * [data-lang]:not([data-lang="ta"]) { display: none; }

.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 20px; }
.panel-head h2 { font-size: clamp(28px, 3vw, 36px); }
.panel-sum { margin: 0; font-weight: 700; font-size: 16px; color: var(--ink-soft); }
.panel-note { flex-basis: 100%; margin: 0; font-size: 16px; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--white); box-shadow: 0 3px 0 var(--card-line), 0 16px 32px -12px rgb(120 80 0 / .18); transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-4px); }
/* The subject's colour is its band and nothing else: the state is the pill's to say. */
.card-band { position: relative; display: flex; justify-content: space-between; align-items: flex-start; overflow: hidden; padding: 22px 22px 18px; background: var(--band-soft); }
.card-band::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 140px; height: 140px; border-radius: 50%; background: var(--band); opacity: .35; }
.band-blue { --band: #9CC8EE; --band-soft: #DCEEFC; }
.band-green { --band: #A9DDB8; --band-soft: var(--wash-green); }
.band-mane { --band: #FFC7A6; --band-soft: var(--wash-mane); }
.band-violet { --band: #CDBDF1; --band-soft: #ECE5FA; }
.band-gold { --band: #FFD866; --band-soft: #FFF1C7; }
.band-red { --band: #F4B8B8; --band-soft: #FDE4E4; }
.band-teal { --band: #9FD9D0; --band-soft: #D5F0EC; }
.card-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; font: 700 40px/1 var(--font-display); color: var(--ink); }
.card-icon img { width: 64px; height: 64px; }
.card-pill { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--st); color: var(--white); font: 800 13px/1.2 var(--font-body); }
.card-pill .cov-icon { width: 20px; height: 20px; background: rgb(255 255 255 / .25); }
.card-pill .cov-icon svg { width: 13px; height: 13px; }
.st-partly .card-pill { background: #FFE7A8; color: #6B3B00; }
.st-partly .card-pill .cov-icon { background: var(--gold-edge); }
.st-in_progress .card-pill { background: var(--white); color: #6B3B00; }
.st-in_progress .card-pill .cov-icon { background: var(--gold-edge); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 16px; padding: 20px 22px 22px; }
.card-name { margin: 0; font-size: 26px; line-height: 1.15; }
.card-name:is(:lang(si), :lang(ta)) { font-size: 22px; }
.card-line { margin: 4px 0 0; font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.st-covered .card-line { color: var(--green); }
.st-partly .card-line { color: #7A4E00; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; font-weight: 700; font-size: 12px; color: var(--ink-soft); }
.also-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #E6F4EA; color: var(--green); font-weight: 800; font-size: 12px; line-height: 1.4; }
.units { border-radius: 16px; background: #FBF7EE; }
.units summary { padding: 10px 14px; cursor: pointer; font-weight: 800; font-size: 14px; color: var(--ink); }
.units[open] { padding-bottom: 10px; }
.units ul { display: grid; gap: 2px; margin: 0; padding: 0 14px; list-style: none; }
.units li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 14px; border-bottom: 1px dashed var(--card-line); }
.units li:last-child { border-bottom: 0; }
.listing ul { max-height: 320px; overflow-y: auto; }
.unit-tag {flex: none; padding: 1px 8px; border-radius: 999px; background: #EFE9FA; color: #4E3394; font-weight: 800; font-size: 11px; }
.card-bar { height: 12px; overflow: hidden; border-radius: 6px; background: #F1EAD8; }
.card-bar span { display: block; height: 100%; border-radius: 6px; background: #E39A12; }
.card-extras { display: grid; gap: 8px; }
.card-label { font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.card-extras ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.card-extras li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: #EFE9FA; color: #4E3394; font-weight: 800; font-size: 14px; }
.card-extras li.x-lessons { background: #E6F1FB; color: #154F7A; }
.card-extras li.x-interactive { background: #E3F5EC; color: #17603E; }
.card-extras svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.card-cta { display: flex; gap: 10px; margin-top: auto; }
.card-cta .btn { flex: 1; min-height: 50px; padding: 0 16px; border-radius: 16px; font-size: 18px; white-space: normal; text-align: center; }
.btn-line { --edge: transparent; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover, .btn-line:active { box-shadow: inset 0 0 0 2px var(--ink); }
.card-cta .btn-soft { --edge: transparent; flex: none; background: var(--surface); color: var(--ink); font: 800 14px/1.2 var(--font-body); box-shadow: none; }

/* The subjects a grade has nothing of yet, in one row under the cards: an outline each. */
.later { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 18px; border-radius: 20px; background: #F6F0E2; }
.later-label { font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.later ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.later li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1.5px dashed #C9BEA6; border-radius: 999px; background: var(--white); font-weight: 800; font-size: 15px; }
.later li img { width: 20px; height: 20px; filter: grayscale(1); opacity: .6; }
.later-letter { display: grid; place-items: center; width: 20px; font: 700 15px/1 var(--font-display); color: var(--outline); }
.later-ask { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 14px; color: var(--green); }

.cov-cta { padding: 70px 0 100px; }
.cov-cta-in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; padding: 36px 40px; border-radius: 40px; background: var(--navy); color: var(--white); }
.cov-cta-in img { width: 120px; height: 120px; object-fit: contain; }
.cov-cta-in > div:nth-child(2) { flex: 1 1 320px; }
.cov-cta-in h2 { font-size: clamp(28px, 3.2vw, 42px); }
.cov-cta-in p { margin-top: 8px; color: var(--mist); max-width: 46ch; }
.cov-cta-in .cta-row { margin-top: 0; }

@media (max-width: 960px) {
  .cov-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* An odd tile out takes the whole row rather than leaving a hole beside it. */
  .cov-total:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cov-totals { gap: 8px; }
  .cov-summary-in { padding: 14px; border-radius: 28px; }
  .cov-total { padding: 14px; border-radius: 20px; column-gap: 10px; }
  .cov-total b { font-size: 34px; }
  .cov-total .cov-icon { width: 34px; height: 34px; }
  .cov-total .cov-icon svg { width: 20px; height: 20px; }
  .cov-total b { font-size: 30px; }
  .cov-total span:last-child { font-size: 13px; }
  /* A stage's tabs in one row a thumb can pan, rather than rows of them. */
  .grade-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .grade-tabs::-webkit-scrollbar { display: none; }
  .gtab { flex: none; min-width: 58px; min-height: 58px; }
  .cards { gap: 14px; }
  .card { border-radius: 24px; }
  .card-band { padding: 16px 16px 12px; }
  .card-icon { width: 56px; height: 56px; }
  .card-icon img { width: 48px; height: 48px; }
  .card-body { padding: 16px; gap: 14px; }
  .card-name, .card-name:is(:lang(si), :lang(ta)) { font-size: 22px; }
  .medium { margin-left: 0; }
  .later-ask { margin-left: 0; }
  .cov-cta-in { padding: 28px 22px; border-radius: 30px; }
  .cov-cta-in img { width: 84px; height: 84px; }
}

/* ------------------------------------------------------------------------------ reveal */

/* Scroll-driven where the browser has it, and nothing where it does not: every element is already
   in its resting place, so an older browser simply shows the page still. No script runs for it,
   which is what took GSAP and its two CDN requests off the page. */
@supports (animation-timeline: view()) {
  [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}

/* ---------------------------------------------------------------------------- keyframes */

@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(8px, -16px) rotate(18deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes squish { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .6; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(-3deg); } 85% { transform: rotate(3deg) scale(1.06); } 90% { transform: rotate(-5deg); } 95% { transform: rotate(2deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(220 38 38 / .55); } 80%, 100% { box-shadow: 0 0 0 12px rgb(220 38 38 / 0); } }
@keyframes popx { 0%, 100% { transform: rotate(8deg) scale(1); } 10% { transform: rotate(8deg) scale(1.25); } 20% { transform: rotate(8deg) scale(1); } }
@keyframes popx2 { 0% { transform: translateY(20px) scale(.4); opacity: 0; } 40% { transform: translateY(-6px) scale(1.15); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes coinflip { to { transform: rotateY(360deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .2; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes phoneC { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-14px); } }
@keyframes morph { 0%, 100% { border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; transform: rotate(0); } 50% { border-radius: 58% 42% 40% 60% / 42% 58% 42% 58%; transform: rotate(8deg); } }
@keyframes jelly { 30% { transform: scale(1.06, .94); } 60% { transform: scale(.97, 1.03); } }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes reveal { from { transform: translateY(60px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lunge { 0%, 30%, 100% { transform: none; } 40% { transform: translateX(40px) rotate(6deg); } 50% { transform: none; } }
@keyframes shudder { 0%, 38%, 60%, 100% { transform: none; filter: none; } 42% { transform: translateX(18px); filter: brightness(1.8); } 46% { transform: translateX(-10px); } 50% { transform: translateX(6px); filter: none; } }
@keyframes hit { 0%, 38% { opacity: 0; transform: scale(.5); } 45% { opacity: 1; transform: translateY(-10px) scale(1.2); } 70% { opacity: 0; transform: translateY(-50px); } 100% { opacity: 0; } }
@keyframes vs { 0%, 100% { transform: scale(1) rotate(-6deg); } 50% { transform: scale(1.14) rotate(4deg); } }
@keyframes drain { 0% { transform: scaleX(1); } 25% { transform: scaleX(.75); } 50% { transform: scaleX(.5); } 75% { transform: scaleX(.25); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes peek { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-12px); } }
@keyframes peekup { 0%, 100% { transform: translateY(14px) rotate(-6deg); } 50% { transform: translateY(0) rotate(4deg); } }
@keyframes pulse { 0% { box-shadow: 0 6px 0 var(--gold-edge), 0 0 0 0 rgb(255 198 56 / .7); } 80%, 100% { box-shadow: 0 6px 0 var(--gold-edge), 0 0 0 28px rgb(255 198 56 / 0); } }
@keyframes glint { 0%, 100% { transform: scale(.2); opacity: 0; } 45% { opacity: 1; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } 70% { opacity: .8; } }
@keyframes dash { to { background-position: 30px 0; } }
@keyframes swell { 0%, 8% { scale: 1; } 4% { scale: 1.12; } }
@keyframes run { 0% { left: -2%; transform: translateY(0); } 10%, 30%, 50%, 70%, 90% { transform: translateY(-8px); } 20%, 40%, 60%, 80% { transform: translateY(0); } 100% { left: 96%; transform: translateY(0); } }

/* ------------------------------------------------------------------------ class pricing */

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; max-width: 980px; margin: 0 auto; }
.calc-in, .calc-out { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 32px; }
.calc-in { background: var(--white); box-shadow: 0 1px 0 var(--card-line), 0 30px 60px -40px rgb(48 43 36 / .4); }
.calc-out { background: var(--navy); color: var(--white); }
.calc-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; }
.calc-field input[type="range"] { grid-column: 1 / -1; }
.calc-label { display: flex; flex-direction: column; gap: 2px; }
.calc-label b { font: 600 21px/1.2 var(--font-display); }
.calc-label small { color: var(--ink-soft); font-size: 15px; }
/* The slider takes the plan's colour, Plus's violet being premium's in the app. */
.calc[data-plan="plus"] .calc-field input[type="range"] { --tint: var(--premium); }
.calc-count { width: 6ch; min-height: 52px; padding: 0 10px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); font: 700 26px/1 var(--font-display); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.calc-count::-webkit-inner-spin-button, .calc-count::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.calc-count:focus-visible { outline: none; border-color: var(--blue); }
/* A slider drawn as the app draws a bar: a thick rounded track and a knob with an edge under it. */
.calc-field input[type="range"] { --fill: 0%; --tint: var(--gold); width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.calc-field input[type="range"]::-webkit-slider-runnable-track { height: 12px; border-radius: 99px; background: linear-gradient(to right, var(--tint) var(--fill), var(--card-line) var(--fill)); }
.calc-field input[type="range"]::-moz-range-track { height: 12px; border-radius: 99px; background: linear-gradient(to right, var(--tint) var(--fill), var(--card-line) var(--fill)); }
.calc-field input[type="range"]::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -9px; border: 3px solid var(--ink); border-radius: 50%; background: var(--white); box-shadow: 0 3px 0 var(--ink); -webkit-appearance: none; appearance: none; }
.calc-field input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid var(--ink); border-radius: 50%; background: var(--white); box-shadow: 0 3px 0 var(--ink); }
.calc-field input[type="range"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 99px; }
.calc-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; padding: 0; border: 0; }
.calc-choice legend { margin-bottom: 10px; padding: 0; font-weight: 800; }
.calc-choice label { position: relative; }
/* The radio is kept for the keyboard and the screen reader, and the pill drawn over it. */
.calc-choice input { position: absolute; opacity: 0; }
.calc-choice span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: 8px; border: 2px solid var(--line); border-radius: 16px; font-weight: 800; text-align: center; cursor: pointer; }
.calc-choice em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--green); }
.calc-choice b { font: 600 19px/1.2 var(--font-display); }
.calc-choice small { color: var(--ink-soft); font-weight: 600; font-size: 13px; line-height: 1.3; }
.calc-plan span { min-height: 88px; gap: 4px; }
.calc-plan-plus b { color: var(--premium); }
.calc-choice .calc-plan-plus input:checked + span { border-color: var(--premium); background: #F1ECFA; }
.calc-compare { padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .12); }
.calc-choice input:checked + span { border-color: var(--ink); background: var(--surface); }
.calc-choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.calc-total b { font: 700 52px/1 var(--font-display); color: var(--gold); }
.calc-total span { color: var(--mist); font-weight: 700; }
.calc-lines { display: flex; flex-direction: column; gap: 8px; }
.calc-lines li { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 12px 14px; border-radius: 16px; background: rgb(255 255 255 / .07); }
.calc-lines li > span:not(.calc-chips) { margin-left: auto; font-weight: 800; }
/* A chip a bracket, so a teacher reads the sum's parts at a glance rather than a sentence of them. */
.calc-chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.calc-chips span { padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .1); color: var(--mist); font-size: 13px; font-weight: 700; white-space: nowrap; }
.calc-note { color: var(--mist); font-size: 15px; }
.calc-out .btn { align-self: stretch; margin-top: auto; }
.seat-foot { max-width: 980px; margin: 32px auto 0; color: var(--ink-soft); text-align: center; }

/* ------------------------------------------------------------------------------- widths */

@media (max-width: 960px) {
  .sec { padding: 96px 0; }
  .hero { padding: 130px 0 120px; }
  .hero-grid, .split, .split-try, .split-even { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stage { max-width: 440px; margin: 0 auto; }
  .hero .burst { left: 50%; top: 70%; }
  .aud, .modes, .extras { grid-template-columns: minmax(0, 1fr); }
  .door { padding-top: 180px; }
  .door img { width: 170px; }
  .rewards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs { font-size: 56px; }
  .feats, .ptiles { grid-template-columns: minmax(0, 1fr); }
  .live { transform: none; }
  .peek { display: none; }
  .pvis { width: 100%; max-width: 440px; height: 540px; margin: 0 auto; }
  .plans { grid-template-columns: minmax(0, 1fr); row-gap: 120px; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .vid-sec { padding-top: 110px; }
  .tv-leo { width: 100px; top: -70px; }
  .tv-btn { width: 80px; height: 80px; }
  .tv-screen { border-width: 6px; border-radius: 22px; }
  .tv-screen video { border-radius: 16px; }
  .tv-coin { display: none; }
  /* The journey turns into a list down the page: art on the left, words beside it. */
  .jsteps { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 520px; margin: 0 auto; }
  .js { position: relative; display: block; min-height: 100px; padding: 18px 0 0 118px; text-align: left; }
  .jart { position: absolute; left: 0; top: 0; width: 100px; height: 100px; border-width: 4px; }
  .jart img { width: 78px; height: 78px; }
  .jn { position: absolute; left: 68px; top: 64px; margin: 0; width: 34px; height: 34px; font-size: 15px; }
  .js h3 { margin: 0; }
  .jd { max-width: none; }
  .jtrack { display: none; }
  .jloop { width: auto; height: auto; margin: 22px 0 0; border: 0; text-align: center; }
  .jloop span { position: static; transform: none; text-align: center; }
  .bigboss { gap: 10px; padding: 12px 14px; }
  .bigboss img { width: 72px; }
  .bigboss h3 { font-size: 20px; }
  /* A finger swipes the posters; a loop under it would fight the swipe. */
  .pstrip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 24px 0 40px; }
  .pstrip::-webkit-scrollbar { display: none; }
  .ptrack2 { animation: none !important; padding: 0 var(--gutter); }
  .poster { width: 240px; margin-right: 18px; scroll-snap-align: center; }
  .poster[data-clone] { display: none; }
}
@media (max-width: 560px) {
  /* The mascot and the pills are the desktop hero's right half; on a phone the copy and its buttons are the first screen. */
  .stage { display: none; }
  .hero { padding-bottom: 100px; }
  .chip { font-size: 16px; padding: 8px 12px 8px 8px; }
  .chip img { width: 32px; height: 32px; }
  .c2 { right: -2%; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .qq { font-size: 23px; }
  .rewards { grid-template-columns: minmax(0, 1fr); }
  .arena { gap: 4px; }
  .vs { font-size: 40px; }
  .hp b { display: none; }
  .track span { font-size: 22px; }
  .parade img { width: 96px; height: 96px; }
  .quiz, .live, .plan, .calc-in, .calc-out { padding: 22px; }
  .price { font-size: 52px; }
  .chest { width: 100px; top: -84px; right: 0; }
  .glints { transform: scale(.7); transform-origin: top right; right: -10px; top: -110px; }
  .ex { min-height: 540px; padding: 24px; }
  .ex-txt { max-width: 100%; }
  .ex h3 { font-size: 32px; }
  .ex-phone { width: 170px; top: auto; bottom: -60px; right: 18px; }
  .ex-games .ex-txt { max-width: 100%; }
  .ex-games .ex-phone { width: 140px; top: auto; bottom: -50px; right: 14px; }
  .ex-games .ex-phone-b { right: 110px; bottom: -80px; }
  .ex-leo { width: 120px; }
  .bigboss img { display: none; }
  .pleo { width: 220px; }
  /* A 280px phone is taller than the 540px stage and ran into the heading below. */
  .phone { width: 220px; margin-left: -110px; }
  .pph { border-radius: 26px; padding: 6px; }
  .pph img { border-radius: 21px; }
  .pph-l, .pph-r { top: 90px; }
  .pleo { width: 130px; }
  .door { padding-top: 150px; }
  .door img { width: 140px; }
  /* Leo peeks over the screen's edge, so the heading needs his height clear above it. */
  .vid-sec .sec-head { margin-bottom: 84px; }
}

/* ------------------------------------------------------------------------ less motion */

/* Every loop stops, every reveal shows at once, and the posters become a row to scroll. */
@media (max-width: 560px) {
  .tgrid { grid-template-columns: minmax(0, 1fr); }
  .tpanels { min-height: 0; }
  .ttabs span { padding: 8px 9px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .pstrip { overflow-x: auto; }
  .poster[data-clone], [data-loop] > [data-clone] { display: none; }
}
