/* AskTeko website, "neon orbit" look.
   Brand tokens from the AskTeko brand book (Nov 2026); type is the app's own Nunito (600 body, 900 headings). */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('../assets/fonts/Nunito-latin-var.woff2') format('woff2');
}

:root {
  --purple: #5B4BFF;
  --purple-press: #3F31D6;
  --purple-deep: #2A1F9A;
  --purple-night: #150D55;
  --purple-soft: #ECEAFF;
  --ink: #12122C;
  --ink-2: #45446A;
  --ink-3: #69688E;
  --lime: #DDFF3A;
  --cyan: #3DF2FF;
  --pink: #FF4FD8;
  --sun: #FFC83D;
  --coral: #FF5A5F;
  --sky: #38B6F5;
  --paper: #F4F2FF;
  --white: #FFFFFF;
  --line: #E2DFF6;
  --maths: #8A5CFF;
  --maths-ink: #5B2FD6;
  --science: #22C55E;
  --science-ink: #0E7A37;
  --english: #FF8A3D;
  --english-ink: #B04E0C;
  --danger: #E0334F;
  --ok: #10893C;

  --g-night: radial-gradient(900px 520px at 85% 0%, rgba(138, 92, 255, .9), transparent 62%),
             radial-gradient(700px 480px at 0% 100%, rgba(255, 79, 216, .45), transparent 60%),
             radial-gradient(600px 400px at 50% 120%, rgba(61, 242, 255, .28), transparent 60%),
             linear-gradient(165deg, #2E20A8 0%, #1C1275 48%, #120A4A 100%);
  --g-brand: linear-gradient(120deg, #5B4BFF 0%, #8A5CFF 45%, #FF4FD8 100%);
  --g-neon-text: linear-gradient(90deg, #DDFF3A 0%, #3DF2FF 55%, #FF8BEA 100%);
  --g-maths: linear-gradient(140deg, #7B4DFF 0%, #B04CFF 55%, #FF4FD8 110%);
  --g-science: linear-gradient(140deg, #0F9F5F 0%, #19C27C 45%, #22C8E6 110%);
  --g-english: linear-gradient(140deg, #FF6A2B 0%, #FF8A3D 45%, #FFC83D 110%);
  --glow-lime: 0 0 18px rgba(221, 255, 58, .55), 0 0 42px rgba(221, 255, 58, .25);
  --glow-cyan: 0 0 18px rgba(61, 242, 255, .55), 0 0 42px rgba(61, 242, 255, .2);
  --glow-purple: 0 18px 60px -18px rgba(91, 75, 255, .65);

  --font: 'Nunito', 'Segoe UI Rounded', 'Segoe UI', system-ui, sans-serif;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--paper);
  /* One soft gradient over the full page height, so light sections flow into each other with no seams. */
  background-image:
    radial-gradient(60vw 900px at 0% 18%, rgba(150, 120, 255, .34), transparent 70%),
    radial-gradient(55vw 900px at 100% 34%, rgba(255, 140, 230, .22), transparent 70%),
    radial-gradient(60vw 1000px at 10% 55%, rgba(120, 190, 255, .24), transparent 70%),
    radial-gradient(55vw 900px at 100% 72%, rgba(170, 140, 255, .32), transparent 70%),
    radial-gradient(60vw 900px at 0% 90%, rgba(255, 160, 220, .2), transparent 70%),
    linear-gradient(180deg, #F3EFFF 0%, #ECE4FF 35%, #F3ECFF 65%, #EEE8FF 100%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 600 1.125rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@view-transition { navigation: auto; }
img { max-width: 100%; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-press); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); margin: 0 0 .5em; font-weight: 900; letter-spacing: -0.02em; line-height: 1.06; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.45rem; line-height: 1.18; font-weight: 900; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.12rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }
.small { font-size: .95rem; }
.neon-text { background: var(--g-neon-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 96px) 0; position: relative; }

/* ---------- Icons ---------- */
.ic { width: 1.4em; height: 1.4em; flex: none; display: inline-block; vertical-align: middle; }
.ic-tile { --t: var(--purple); width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--t); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14), 0 10px 24px -10px var(--t); flex: none; }
.ic-tile .ic { width: 38px; height: 38px; --ic-ink: #12122C; }
.ic-tile.sm { width: 46px; height: 46px; border-radius: 15px; }
.ic-tile.sm .ic { width: 28px; height: 28px; }
.t-lime { --t: var(--lime); --ic: #fff; } .t-cyan { --t: var(--cyan); --ic: #fff; } .t-pink { --t: var(--pink); --ic: #fff; }
.t-sun { --t: var(--sun); --ic: #fff; } .t-coral { --t: var(--coral); --ic: #fff; } .t-sky { --t: var(--sky); --ic: #fff; }
.t-purple { --t: var(--purple); --ic: var(--lime); } .t-maths { --t: var(--maths); --ic: #fff; }
.t-science { --t: var(--science); --ic: #fff; } .t-english { --t: var(--english); --ic: #fff; }

/* ---------- Buttons: chunky and pressable, like the app ---------- */
.btn {
  --b: var(--purple); --e: var(--purple-deep); --t: #fff;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: var(--r-md);
  font: 900 1.06rem/1 var(--font); text-decoration: none; letter-spacing: .005em;
  background: var(--b); color: var(--t); border: 0; cursor: pointer;
  box-shadow: 0 5px 0 var(--e); transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { color: var(--t); filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--e); }
.btn .ic { width: 24px; height: 24px; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .98rem; border-radius: 14px; box-shadow: 0 4px 0 var(--e); }
.btn-ghost { --b: #fff; --e: var(--line); --t: var(--ink); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.btn-ghost:hover { --t: var(--purple); }
.btn-lime { --b: var(--lime); --e: #9DB80F; --t: var(--ink); box-shadow: 0 5px 0 var(--e), var(--glow-lime); }
.btn-lime:active { box-shadow: 0 1px 0 var(--e), var(--glow-lime); }
.btn-glass { --b: rgba(255, 255, 255, .1); --e: rgba(255, 255, 255, .18); --t: #fff; border: 2px solid rgba(255, 255, 255, .35); }
.btn-glass:hover { --b: rgba(255, 255, 255, .18); }
.btn-google { --b: #fff; --e: #D9D7EC; --t: var(--ink); border: 2px solid #D9D7EC; width: 100%; }
.btn-google svg { width: 22px; height: 22px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--purple); font: inherit; font-weight: 900; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Sparks that burst from buttons (made in fx.js) */
.spark { position: fixed; z-index: 90; width: 8px; height: 8px; border-radius: 3px; pointer-events: none; animation: spark .7s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) rotate(260deg) scale(.2); opacity: 0; } }

/* ---------- Header (dark glass, always) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(90deg, rgba(27, 17, 98, .96), rgba(44, 26, 140, .96)); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 3px; width: var(--scroll, 0%); background: var(--g-neon-text); box-shadow: var(--glow-cyan); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 900 1.5rem/1 var(--font); letter-spacing: -0.03em; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(221, 255, 58, .35)); }
.brand b { color: var(--lime); font-weight: 900; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: #D8D3FF; text-decoration: none; font-weight: 800; padding: 9px 14px; border-radius: 12px; display: inline-flex; gap: 8px; align-items: center; }
.nav a .ic { width: 22px; height: 22px; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--lime); box-shadow: var(--glow-lime); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-login { color: #fff; font-weight: 900; text-decoration: none; }
.nav-login:hover { color: var(--lime); }
.sound-btn { width: 46px; height: 46px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); cursor: pointer; display: grid; place-items: center; color: #fff; position: relative; }
.sound-btn .ic { width: 26px; height: 26px; --ic: var(--lime); --ic-ink: #fff; }
.sound-btn[aria-pressed="true"] { border-color: var(--lime); box-shadow: var(--glow-lime); }
.sound-btn[aria-pressed="true"]::after { content: ''; position: absolute; inset: -6px; border-radius: 18px; border: 2px solid var(--lime); opacity: 0; animation: ping 2.2s infinite; }
@keyframes ping { 0% { opacity: .6; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); cursor: pointer; position: relative; }
.nav-toggle i { position: absolute; left: 12px; right: 12px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .2s; }
.nav-toggle i:first-of-type { top: 17px; } .nav-toggle i:last-of-type { top: 25px; }
.nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { padding: 8px var(--gutter) 24px; display: grid; gap: 4px; border-top: 1px solid rgba(255, 255, 255, .1); }
.mobile-nav a:not(.btn) { padding: 14px 4px; font-weight: 900; font-size: 1.25rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .1); display: flex; gap: 12px; align-items: center; }
.mobile-actions { display: flex; gap: 16px; align-items: center; padding-top: 16px; }
@media (max-width: 960px) {
  .nav, .nav-actions .nav-login, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-actions { gap: 10px; }
  .auth-page .nav-actions .nav-login { display: inline; }
}

/* ---------- Teko layer ---------- */
.teko-canvas { position: fixed; left: 0; top: 0; z-index: 45; pointer-events: none; opacity: 0; transition: opacity .5s; }
.teko-ready .teko-canvas { opacity: 1; }
.teko-hit { position: fixed; left: 0; top: 0; z-index: 46; border-radius: 50%; border: 0; background: transparent; cursor: grab; touch-action: none; padding: 0; }
.teko-hit.is-dragging { cursor: grabbing; }
.teko-hit:focus-visible { outline: 3px dashed var(--cyan); outline-offset: 6px; }
.teko-bubble {
  position: fixed; left: 0; top: 0; z-index: 47; max-width: min(290px, 72vw);
  background: #fff; color: var(--ink); font: 800 1rem/1.4 var(--font);
  padding: 12px 16px; border-radius: 18px; border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink), 0 0 0 4px rgba(221, 255, 58, .0); pointer-events: none;
  opacity: 0; scale: .85; transition: opacity .18s, scale .22s cubic-bezier(.3, 1.6, .5, 1);
}
.teko-bubble.is-on { opacity: 1; scale: 1; }
.teko-bubble.is-voiced { box-shadow: 0 4px 0 var(--ink), 0 0 22px rgba(61, 242, 255, .55); }
.teko-off .teko-hit, .teko-off .teko-bubble { display: none; }
.teko-slot { position: relative; aspect-ratio: 1; width: 100%; pointer-events: none; }
.teko-fallback { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; transition: opacity .4s; }
.teko-ready .teko-fallback { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .teko-bubble { transition: opacity .1s; } }

/* ---------- Night (dark neon) surfaces ---------- */
.night { background: var(--g-night); color: #fff; position: relative; overflow: clip; isolation: isolate; }
.night h1, .night h2, .night h3 { color: #fff; }
.night .lede, .night p { color: #D9D4FF; }
.night a:not(.btn) { color: var(--lime); }
.night::before { /* starfield */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 32%, rgba(221, 255, 58, .9) 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 58%, rgba(61, 242, 255, .9) 50%, transparent 51%), radial-gradient(1px 1px at 90% 84%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 92%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 52% 88%, rgba(255, 139, 234, .9) 50%, transparent 51%);
  background-size: 420px 420px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
.night::after { /* neon grid floor */
  content: ''; position: absolute; left: -10%; right: -10%; bottom: 0; height: 45%; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(61, 242, 255, .16) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(61, 242, 255, .16) 1.5px, transparent 1.5px);
  background-size: 56px 56px;
  transform: perspective(500px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
@keyframes twinkle { from { opacity: .45; } to { opacity: .9; } }
.blob { --b: #FF4FD8; position: absolute; border-radius: 50%; background: radial-gradient(closest-side, var(--b), transparent); opacity: .6; pointer-events: none; z-index: -1; animation: drift 14s ease-in-out infinite alternate; will-change: transform; }
.blob.b1 { width: 520px; height: 520px; --b: #FF4FD8; left: -120px; top: 30%; }
.blob.b2 { width: 460px; height: 460px; --b: #3DF2FF; right: 6%; top: -80px; animation-delay: -5s; opacity: .35; }
.blob.b3 { width: 380px; height: 380px; --b: #DDFF3A; right: 30%; bottom: -120px; animation-delay: -9s; opacity: .22; }
@keyframes drift { to { transform: translate(60px, -40px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .night::before, .blob { animation: none; } }

/* Neon orbit rings (inline SVG) */
.neon-orbits { position: absolute; left: -16%; top: -16%; width: 132%; height: auto; aspect-ratio: 1; pointer-events: none; overflow: visible; }
.neon-orbits .flow { animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.neon-orbits ellipse { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.neon-orbits .o-lime { stroke: var(--lime); }
.neon-orbits .o-cyan { stroke: var(--cyan); stroke-dasharray: 6 12; }
.neon-orbits .o-pink { stroke: var(--pink); opacity: .75; }
.neon-orbits .spin { transform-origin: 50% 50%; animation: orbit 30s linear infinite; }
.neon-orbits .spin.rev { animation-duration: 44s; animation-direction: reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .neon-orbits .spin { animation: none; } }
.orbit { position: absolute; pointer-events: none; border: 2px solid rgba(91, 75, 255, .16); border-radius: 50%; }
.night .orbit { border-color: rgba(255, 255, 255, .14); }

/* Floating icon "planets" around Teko */
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floater { position: absolute; width: 74px; height: 74px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .07)); border: 1.5px solid rgba(255, 255, 255, .3); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); animation: bob 5s ease-in-out infinite; transition: translate .25s ease-out; will-change: transform; }
.floater .ic { width: 44px; height: 44px; --ic-ink: #12122C; }
.floater:nth-child(2) { animation-delay: -1.3s; } .floater:nth-child(3) { animation-delay: -2.6s; } .floater:nth-child(4) { animation-delay: -3.9s; } .floater:nth-child(5) { animation-delay: -.7s; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .floater { animation: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 90px) 0 clamp(90px, 10vw, 150px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
.hero h1 { max-width: 11.5ch; }
.hero-title span { display: block; }
.hero .lede { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 800; font-size: .95rem; }
.pill .ic { width: 24px; height: 24px; }
.hero-teko { position: relative; }
.hero-teko .teko-slot { max-width: 540px; margin-left: auto; }
.hero-hint { position: absolute; left: 4%; bottom: 0; font-weight: 800; color: #C9C2FF; font-size: .95rem; display: flex; gap: 8px; align-items: center; }
.hero-hint .ic { width: 24px; height: 24px; --ic: var(--lime); --ic-ink: #fff; }
.teko-off .hero-hint { display: none; }
@media (max-width: 900px) {
  .hero { padding-top: 8px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-teko { order: -1; }
  .hero-teko .teko-slot { max-width: 250px; margin: 0 auto; }
  .hero h1 { max-width: 13ch; }
  .hero-hint { display: none; }
  .floater { width: 52px; height: 52px; border-radius: 17px; }
  .floater .ic { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-title span { animation: rise .8s cubic-bezier(.2, .9, .2, 1) both; }
  .hero-title span:nth-child(2) { animation-delay: .1s; } .hero-title span:nth-child(3) { animation-delay: .2s; }
  .hero .lede, .hero-actions, .hero-note { animation: rise .8s .3s cubic-bezier(.2, .9, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Topic ticker ---------- */
.ticker { position: relative; z-index: 2; margin: -38px 0 0; transform: rotate(-2deg); background: var(--g-brand); padding: 16px 0; box-shadow: 0 18px 40px -18px rgba(91, 75, 255, .8); overflow: hidden; }
.ticker + .ticker { margin-top: -14px; transform: rotate(1.5deg); background: #12122C; z-index: 1; }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.ticker + .ticker .ticker-track { animation-direction: reverse; animation-duration: 50s; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 900; font-size: 1.05rem; white-space: nowrap; }
.ticker + .ticker .tick { background: rgba(255, 255, 255, .06); }
.tick .ic { width: 28px; height: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Section heads ---------- */
.sec-head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.sec-head h2 { margin: 0; }

/* ---------- Generic split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .teko-slot { max-width: 360px; margin: 0 auto; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split .teko-slot { max-width: 200px; }
}

/* ---------- Spotlight + tilt (fx.js) ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .25s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 75, 255, .16), transparent 65%); }
.spot:hover::before { opacity: 1; }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: transform .18s ease-out; transform-style: preserve-3d; }

/* ---------- Arena (interactive questions) ---------- */
.arena { border-radius: var(--r-xl); padding: clamp(14px, 2.4vw, 28px); margin-top: 44px; position: relative; }
.arena::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 3px; z-index: 0; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), var(--lime), var(--cyan), var(--pink), var(--purple), var(--lime));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.arena { box-shadow: 0 0 0 1px rgba(61, 242, 255, .2), 0 30px 80px -30px rgba(91, 75, 255, .9); }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spinborder { to { --ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .arena::before { animation: none; } }
.arena > * { position: relative; z-index: 1; }
.arena-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.subject-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.subject-tab { border: 2px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 6px 18px 6px 8px; font: 900 1.02rem/1 var(--font); color: #fff; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; min-height: 48px; transition: background .15s, border-color .15s; }
.subject-tab .ic-tile { width: 34px; height: 34px; border-radius: 11px; box-shadow: none; }
.subject-tab .ic-tile .ic { width: 24px; height: 24px; }
.subject-tab:hover { background: rgba(255, 255, 255, .16); }
.subject-tab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 0 24px rgba(255, 255, 255, .35); }
.score { display: flex; gap: 14px; align-items: center; color: #fff; font-weight: 900; }
.stars { display: flex; gap: 4px; }
.stars .ic { width: 30px; height: 30px; --ic: rgba(255, 255, 255, .18); --ic-ink: rgba(255, 255, 255, .45); transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.stars .ic.on { --ic: var(--sun); --ic-ink: #12122C; transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(255, 200, 61, .7)); }
.streak { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.streak .ic { width: 26px; height: 26px; }
.arena-main { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(14px, 3vw, 36px); align-items: center; }
.arena-main .teko-slot { max-width: 280px; }
@media (max-width: 900px) { .arena-main { grid-template-columns: 1fr; } .arena-main .teko-slot { max-width: 170px; margin: 0 auto; order: -1; } .score { width: 100%; justify-content: space-between; } }
.qcard { background: #fff; border-radius: var(--r-lg); padding: clamp(20px, 3.2vw, 36px); box-shadow: 0 8px 0 rgba(0, 0, 0, .18); min-height: 400px; display: flex; flex-direction: column; }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.q-meta { font-weight: 900; color: var(--ink-3); font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; }
.q-type { font-size: .85rem; font-weight: 900; padding: 4px 10px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); }
.q-dots { display: flex; gap: 6px; }
.q-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.q-dots i.done { background: var(--ok); } .q-dots i.now { background: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.q-text { font: 900 clamp(1.35rem, 2.3vw, 1.85rem)/1.22 var(--font); letter-spacing: -0.015em; margin: 6px 0 20px; color: var(--ink); }
.q-body { flex: 1; }
.q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .q-options { grid-template-columns: 1fr; } }
.opt { text-align: left; min-height: 60px; padding: 14px 18px; border-radius: var(--r-md); border: 2px solid var(--line); background: #fff; box-shadow: 0 4px 0 var(--line); font: 800 1.1rem/1.25 var(--font); color: var(--ink); cursor: pointer; display: flex; gap: 12px; align-items: center; transition: transform .08s, box-shadow .08s, border-color .15s; }
.opt:hover { border-color: #B9B1FF; }
.opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.opt .key { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; font-size: .9rem; color: var(--ink-3); }
.is-right { border-color: var(--ok) !important; background: #E8FBEF !important; box-shadow: 0 4px 0 #A6E3BC !important; }
.is-right .key { background: var(--ok); color: #fff; border-color: var(--ok); }
.is-wrong { border-color: var(--danger) !important; background: #FFF0F2 !important; box-shadow: 0 4px 0 #F6B8C3 !important; animation: shake .35s; }
.is-wrong .key { background: var(--danger); color: #fff; border-color: var(--danger); }
@keyframes shake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }
.opt[disabled] { cursor: default; }
.frac { display: inline-grid; text-align: center; line-height: 1; font-weight: 900; vertical-align: middle; margin: 0 2px; }
.frac > span:first-child { border-bottom: 2.5px solid currentColor; padding: 0 3px 2px; }
.frac > span:last-child { padding-top: 2px; }
.q-feedback { margin-top: 18px; padding: 14px 18px; border-radius: var(--r-md); background: var(--purple-soft); font-weight: 700; display: none; }
.q-feedback.is-on { display: flex; gap: 14px; align-items: flex-start; }
.q-feedback .ic { width: 34px; height: 34px; margin-top: 2px; }
.q-feedback strong { display: block; font-size: 1.15rem; font-weight: 900; margin-bottom: 2px; }
.q-feedback.ok { background: #E8FBEF; }
.q-feedback.done { background: linear-gradient(120deg, #FFF6CF, #E9FFF2); }
.q-actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Shade the bar */
.shade-bar { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; height: 86px; }
.shade-bar button { border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; cursor: pointer; transition: background .12s, transform .12s; }
.shade-bar button[aria-pressed="true"] { background: var(--g-maths); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .15); }
.shade-bar button:active { transform: scale(.94); }
.shade-count { margin-top: 12px; font-weight: 900; color: var(--ink-2); font-size: 1.05rem; }
.shade-count b { font-size: 1.3rem; color: var(--purple); }
/* Number line */
.nline { position: relative; height: 118px; margin: 10px 18px 0; touch-action: none; }
.nline-axis { position: absolute; left: 0; right: 0; top: 64px; height: 6px; border-radius: 3px; background: var(--ink); }
.nline-tick { position: absolute; top: 56px; width: 3px; height: 22px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.nline-tick.minor { top: 60px; height: 14px; width: 2px; opacity: .6; }
.nline-label { position: absolute; top: 86px; transform: translateX(-50%); font-weight: 900; font-size: 1rem; color: var(--ink-2); }
.nline-thumb { position: absolute; top: 0; width: 58px; margin-left: -29px; height: 70px; border: 0; background: none; cursor: grab; padding: 0; touch-action: none; }
.nline-thumb span { display: grid; place-items: center; width: 58px; height: 44px; border-radius: 14px; background: var(--g-maths); color: #fff; font-weight: 900; font-size: 1.05rem; box-shadow: 0 4px 0 #4E2BC2; }
.nline-thumb::after { content: ''; position: absolute; left: 50%; top: 44px; margin-left: -9px; border: 9px solid transparent; border-top-color: #7B4DFF; border-bottom: 0; height: 0; }
.nline-thumb:active { cursor: grabbing; }
/* Tap grid */
.tap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tap-grid button { min-height: 64px; border-radius: 16px; border: 2.5px solid var(--line); background: #fff; font: 900 1.45rem/1 var(--font); color: var(--ink); cursor: pointer; box-shadow: 0 4px 0 var(--line); transition: transform .1s; }
.tap-grid button[aria-pressed="true"] { background: var(--g-maths); color: #fff; border-color: transparent; box-shadow: 0 4px 0 #4E2BC2; transform: translateY(-2px); }
@media (max-width: 520px) { .tap-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } .tap-grid button { font-size: 1.2rem; min-height: 54px; } }
/* Sort into bins */
.sort-tray { display: flex; flex-wrap: wrap; gap: 10px; min-height: 56px; padding: 10px; border-radius: 16px; background: var(--paper); margin-bottom: 14px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px 0 8px; border-radius: 999px; border: 2.5px solid var(--ink); background: #fff; font: 900 1rem/1 var(--font); color: var(--ink); cursor: grab; touch-action: none; box-shadow: 0 3px 0 var(--ink); user-select: none; }
.chip-btn .ic { width: 28px; height: 28px; }
.chip-btn[aria-pressed="true"] { background: var(--lime); transform: translateY(-3px) rotate(-2deg); }
.chip-btn.is-dragging { position: fixed; z-index: 95; pointer-events: none; transform: rotate(-4deg) scale(1.06); box-shadow: 0 14px 24px rgba(0, 0, 0, .25); }
.bins { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 10px; }
.bin { border: 2.5px dashed #C9C2F5; border-radius: 18px; min-height: 130px; padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: #fff; cursor: pointer; text-align: left; font: inherit; transition: border-color .15s, background .15s; }
.bin h4 { margin: 0 0 4px; font-size: 1rem; display: flex; gap: 8px; align-items: center; color: var(--ink); }
.bin h4 .ic { width: 26px; height: 26px; }
.bin.is-over, .bin:focus-visible { border-color: var(--purple); background: var(--purple-soft); }
.bin .chip-btn { cursor: pointer; font-size: .92rem; min-height: 38px; }
@media (max-width: 520px) { .bins { grid-template-columns: 1fr; } .bin { min-height: 80px; } }
/* Put in order / build a sentence */
.order-slots { display: grid; gap: 8px; margin-bottom: 14px; counter-reset: o; }
.order-slot { counter-increment: o; min-height: 52px; border-radius: 14px; border: 2.5px dashed #C9C2F5; display: flex; align-items: center; gap: 12px; padding: 6px 12px; font-weight: 800; color: var(--ink-3); }
.order-slot::before { content: counter(o); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); font-weight: 900; flex: none; }
.order-slot.filled { border-style: solid; border-color: var(--purple); color: var(--ink); background: #fff; }
.word-line { min-height: 64px; border-radius: 16px; border: 2.5px dashed #C9C2F5; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; font-weight: 800; color: var(--ink-3); }
.pool { display: flex; flex-wrap: wrap; gap: 10px; }
.pool .chip-btn { cursor: pointer; }
.pool .chip-btn.used { opacity: .25; pointer-events: none; }
/* Tap the word */
.sentence { font: 800 clamp(1.3rem, 2.4vw, 1.7rem)/1.9 var(--font); display: flex; flex-wrap: wrap; gap: 4px 6px; }
.sentence button { font: inherit; border: 0; background: transparent; padding: 0 6px; border-radius: 10px; cursor: pointer; color: var(--ink); border-bottom: 3px dotted #C9C2F5; }
.sentence button:hover { background: var(--purple-soft); }
.sentence button.is-right { border-bottom-color: transparent; }
.sentence button.is-wrong { border-bottom-color: transparent; }
/* Circuit */
.circuit { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; }
.circuit .wire { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, filter .3s; }
.circuit.live .wire { stroke: #F2B705; filter: drop-shadow(0 0 6px #FFD34D); }
.circuit .sw { cursor: pointer; }
.circuit .sw-arm { stroke: var(--purple); stroke-width: 7; stroke-linecap: round; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.circuit .sw-label { font: 900 20px var(--font); fill: var(--ink); }
.circuit .bulb-glass { fill: #F1EEFF; stroke: var(--ink); stroke-width: 4; transition: fill .3s; }
.circuit.live .bulb-glass { fill: #FFE45C; filter: drop-shadow(0 0 22px #FFD400); }
.circuit .sw:focus-visible .sw-hit { stroke: var(--cyan); stroke-width: 4; }

/* ---------- Modes ---------- */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.mode { border-radius: var(--r-lg); padding: 28px; background: #fff; border: 2px solid var(--line); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 0 var(--line); }
.mode h3 { margin: 4px 0 0; }
.mode p { color: var(--ink-2); margin: 0; }
.mode.feature { grid-column: span 2; background: var(--g-night); color: #fff; border-color: transparent; box-shadow: var(--glow-purple); }
.mode.feature h3 { color: #fff; } .mode.feature p { color: #D9D4FF; }
.hint-ladder { display: grid; gap: 8px; margin-top: auto; }
.hint-ladder div { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 800; font-size: .95rem; display: flex; gap: 10px; align-items: center; }
.hint-ladder div:nth-child(2) { opacity: .75; } .hint-ladder div:nth-child(3) { opacity: .5; }
.hint-ladder .ic { width: 22px; height: 22px; }
.mode-steps { display: flex; gap: 6px; margin-top: auto; }
.mode-steps span { flex: 1; height: 10px; border-radius: 6px; background: var(--purple-soft); }
.mode-steps span.on { background: var(--g-brand); }
@media (max-width: 1000px) { .modes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .modes { grid-template-columns: 1fr; } .mode.feature { grid-column: auto; } }

/* ---------- Subjects ---------- */
.subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 70px; }
.subject { --g: var(--g-brand); position: relative; border-radius: var(--r-xl); padding: 150px 26px 26px; background: var(--g); text-decoration: none; color: #fff; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 50px -24px rgba(40, 20, 120, .7); }
.subject:hover { color: #fff; --lift: -6px; }
.subject::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .28), transparent 60%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.subject:hover::after { opacity: 1; }
.subject-art { position: absolute; left: 4%; right: 4%; top: -64px; height: 200px; transform: translateZ(40px); }
.subject-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .3)); transition: opacity .3s, transform .3s; }
.subject.has-teko .subject-art img { opacity: 0; transform: scale(.9); }
.subject h3 { margin: 0; color: #fff; font-size: 1.9rem; display: flex; gap: 12px; align-items: center; transform: translateZ(20px); }
.subject p { color: rgba(255, 255, 255, .92); margin: 0; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.topic-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-weight: 900; font-size: .88rem; }
.topic-chips .ic { width: 22px; height: 22px; }
.subject .stages { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; padding-top: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-weight: 900; font-size: .86rem; background: var(--paper); color: var(--ink-2); border: 1.5px solid var(--line); }
.chip.on { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--ci); border-color: color-mix(in srgb, var(--c) 40%, #fff); }
.subject .chip { background: rgba(18, 18, 44, .22); color: #fff; border-color: rgba(255, 255, 255, .3); }
.s-maths { --c: var(--maths); --ci: var(--maths-ink); --g: var(--g-maths); }
.s-science { --c: var(--science); --ci: var(--science-ink); --g: var(--g-science); }
.s-english { --c: var(--english); --ci: var(--english-ink); --g: var(--g-english); }
@media (max-width: 900px) { .subjects { grid-template-columns: 1fr; gap: 80px; } }

/* ---------- Band (dark neon panel inside the page) ---------- */
.band { border-radius: var(--r-xl); margin: 0 clamp(8px, 2vw, 24px); }
.report { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 0 0 2px rgba(61, 242, 255, .5), 0 0 40px rgba(61, 242, 255, .3), 0 14px 0 rgba(0, 0, 0, .2); }
.report h3 { color: var(--ink) !important; font-size: 1.25rem; margin: 0; display: flex; gap: 10px; align-items: center; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.report-head span { color: var(--ink-3); font-weight: 800; font-size: .95rem; }
.bar-row { display: grid; grid-template-columns: 34px 150px 1fr 48px; gap: 12px; align-items: center; padding: 8px 0; font-weight: 800; font-size: .98rem; }
.bar-row .ic { width: 30px; height: 30px; }
.bar { height: 14px; border-radius: 8px; background: var(--paper); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); border-radius: 8px; background: var(--c, var(--purple)); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) { .report.is-seen .bar i { animation: grow 1.1s cubic-bezier(.2, .9, .2, 1) both; } .report:not(.is-seen) .bar i { transform: scaleX(0); } }
@keyframes grow { from { transform: scaleX(0); } }
.night .report p, .report .report-next { color: var(--ink); }
.report-next { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--purple-soft); font-weight: 800; font-size: .98rem; display: flex; gap: 10px; align-items: center; }
.report-next .ic { width: 28px; height: 28px; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 30px 1fr 44px; } .bar-row .bar { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Promises ---------- */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.promise { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; box-shadow: 0 6px 0 var(--line); }
.promise .ic-tile { grid-row: span 2; }
.promise h3 { font-size: 1.25rem; margin: 4px 0 0; }
.promise p { color: var(--ink-2); margin: 0; }
.night .promise { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.night .promise p { color: #D6D2FF; }
.promises.one { grid-template-columns: 1fr; }
.promises.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .promises.three { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* ---------- Steps (a real sequence) ---------- */
.loop { position: relative; margin-top: 56px; display: grid; grid-template-columns: 1fr 280px; gap: 40px; }
.loop-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; position: relative; }
.loop-steps::before { content: ''; position: absolute; left: 47px; top: 30px; bottom: 30px; width: 4px; border-radius: 2px; background: linear-gradient(var(--lime), var(--cyan), var(--pink), var(--purple)); }
.loop-step { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 22px; background: #fff; border: 2px solid var(--line); border-radius: var(--r-md); transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; }
.loop-step::before { content: counter(s); width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); font: 900 1.4rem/1 var(--font); }
.loop-step.is-active { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(91, 75, 255, .14), var(--glow-purple); transform: translateX(6px); }
.loop-step.is-active::before { background: var(--g-brand); color: #fff; box-shadow: 0 0 18px rgba(255, 79, 216, .5); }
.loop-step h3 { font-size: 1.3rem; margin: 4px 0 4px; display: flex; gap: 10px; align-items: center; }
.loop-step h3 .ic { width: 28px; height: 28px; }
.loop-step p { margin: 0; color: var(--ink-2); }
.loop-teko { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
@media (max-width: 900px) { .loop { grid-template-columns: 1fr; } .loop-teko { display: none; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-top: 40px; display: grid; gap: 12px; }
.faq-item { border-radius: var(--r-md); background: #fff; border: 2px solid var(--line); padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--purple); box-shadow: var(--glow-purple); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; font: 900 1.2rem/1.3 var(--font); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); font: 900 1.5rem/1 var(--font); transition: rotate .2s, background .2s; }
.faq-item[open] summary::after { rotate: 45deg; background: var(--lime); color: var(--ink); }
.faq-item p { color: var(--ink-2); padding-right: 48px; }

/* ---------- Closing CTA ---------- */
.cta-box { border-radius: var(--r-xl); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: center; box-shadow: var(--glow-purple); }
.cta-box h2 { max-width: 13ch; }
.cta-box p { max-width: 32em; }
.cta-box .teko-slot { max-width: 280px; }
@media (max-width: 760px) { .cta-box { grid-template-columns: 1fr; } .cta-box .teko-slot { max-width: 170px; order: -1; } }

/* ---------- Page heads (dark neon) ---------- */
.page-head { padding: clamp(48px, 8vw, 110px) 0 clamp(60px, 7vw, 100px); }
.page-head-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: center; }
.page-head h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); max-width: 14ch; }
.page-head .teko-slot { max-width: 360px; position: relative; }
.page-head .neon-orbits { left: -10%; top: -10%; width: 120%; }
@media (max-width: 900px) { .page-head-grid { grid-template-columns: 1fr; } .page-head .teko-slot { max-width: 210px; order: -1; } }

/* ---------- Subject detail ---------- */
.subject-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.subject-trio a { border-radius: var(--r-lg); padding: 16px; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .18); text-decoration: none; color: #fff !important; font-weight: 900; display: grid; gap: 8px; justify-items: center; text-align: center; transition: background .2s; }
.subject-trio a:hover { background: rgba(255, 255, 255, .16); --lift: -4px; }
.subject-trio img { height: 110px; width: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
@media (max-width: 640px) { .subject-trio { grid-template-columns: 1fr; } .subject-trio img { height: 90px; } }
.subject-detail { display: grid; grid-template-columns: 380px 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.subject-detail .teko-col { position: relative; border-radius: var(--r-xl); background: var(--g); padding: 10px; box-shadow: 0 24px 50px -24px rgba(40, 20, 120, .7); }
.subject-detail .teko-slot { max-width: 380px; }
.subject-detail .teko-col::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .35), transparent 60%); }
.strands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
.strand { padding: 14px 16px; border-radius: 16px; background: #fff; border: 2px solid var(--line); font-weight: 900; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; }
.strand .ic { width: 34px; height: 34px; grid-row: span 2; }
.strand small { display: block; color: var(--ink-3); font-weight: 700; font-size: .9rem; }
.subject-title { display: flex; align-items: center; gap: 14px; }
@media (max-width: 900px) { .subject-detail { grid-template-columns: 1fr; } .subject-detail .teko-col { max-width: 260px; margin: 0 auto; } .strands { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.moods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.mood-btn { border: 2px solid var(--line); background: #fff; border-radius: 999px; min-height: 46px; padding: 0 18px; font: 900 1rem/1 var(--font); color: var(--ink-2); cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.mood-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.mood-btn[aria-pressed="true"] { border-color: transparent; color: #fff; background: var(--g-brand); box-shadow: 0 3px 0 var(--purple-deep), 0 0 18px rgba(255, 79, 216, .4); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.values > div { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 2px solid var(--line); display: grid; gap: 12px; align-content: start; }
.values h3 { font-size: 1.3rem; margin: 0; }
.values p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.callout { padding: 18px 20px; border-radius: var(--r-md); background: #FFF6CF; border: 2px solid #F1DF8A; font-weight: 700; }

/* ---------- Auth pages ---------- */
.auth-page { }
.auth-shell { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 540px) 1fr; }
.auth-panel { background: #fff; padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.auth-panel h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 10px; }
.auth-panel .lede { font-size: 1.1rem; margin-bottom: 26px; }
.auth-stage { position: relative; display: grid; place-items: start center; padding: 40px; }
.auth-stage .teko-slot { max-width: 460px; position: sticky; top: calc(var(--header-h) + 4vh); }
.auth-stage .neon-orbits { left: 50%; top: calc(var(--header-h) - 40px); width: min(620px, 110%); translate: -50% 0; position: absolute; }
.auth-stage-note { position: absolute; bottom: 32px; left: 0; right: 0; text-align: center; color: #D9D4FF !important; font-weight: 800; padding: 0 24px; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-stage { order: -1; padding: 8px 0 30px; }
  .auth-stage .teko-slot { max-width: 150px; }
  .auth-stage .neon-orbits, .auth-stage-note { display: none; }
  .auth-panel { border-radius: var(--r-lg) var(--r-lg) 0 0; justify-content: flex-start; margin-top: -24px; }
}
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 900; font-size: 1rem; }
.input-wrap { position: relative; }
.input { width: 100%; min-height: 56px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); font: 700 1.08rem/1 var(--font); color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s; }
.input:hover { border-color: #CFCBF2; }
.input:focus { outline: none; border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(91, 75, 255, .16), 0 0 24px rgba(61, 242, 255, .25); }
.input[aria-invalid="true"] { border-color: var(--danger); background: #FFF6F7; }
.input-wrap .input { padding-right: 84px; }
.reveal-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font: 900 .95rem/1 var(--font); color: var(--purple); padding: 10px; cursor: pointer; border-radius: 10px; }
.field-hint { font-size: .92rem; color: var(--ink-3); }
.field-error { font-size: .95rem; color: var(--danger); font-weight: 800; }
.field-error:empty { display: none; }
.strength { display: flex; gap: 6px; }
.strength i { flex: 1; height: 7px; border-radius: 4px; background: var(--line); transition: background .2s, box-shadow .2s; }
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-score="2"] i:nth-child(-n+2) { background: var(--english); }
.strength[data-score="3"] i:nth-child(-n+3) { background: var(--science); }
.strength[data-score="4"] i { background: var(--lime); box-shadow: var(--glow-lime); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 1rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--purple); cursor: pointer; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-weight: 800; font-size: .95rem; margin: 4px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.form-alert { padding: 14px 16px; border-radius: 14px; font-weight: 800; font-size: 1rem; }
.form-alert:empty { display: none; }
.form-alert.err { background: #FFF0F2; color: #A3122B; border: 2px solid #F6C2CB; }
.form-alert.ok { background: #E8FBEF; color: var(--science-ink); border: 2px solid #B4E8C6; }
.auth-foot { margin-top: 26px; color: var(--ink-2); }
.auth-foot a { font-weight: 900; }
.preview-note { margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: var(--purple-soft); color: var(--ink-2); font-size: .92rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- Onboarding ---------- */
.onb { max-width: 640px; }
.progress { display: flex; gap: 6px; margin-bottom: 28px; }
.progress i { flex: 1; height: 9px; border-radius: 6px; background: var(--line); transition: background .3s; }
.progress i.on { background: var(--g-brand); box-shadow: 0 0 10px rgba(255, 79, 216, .35); }
.step legend { padding: 0; }
.step-label { display: block; font-weight: 900; color: var(--purple); margin-bottom: 8px; font-size: 1rem; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 8px 0 4px; }
.choices.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .choices.four { grid-template-columns: repeat(2, 1fr); } .choices { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; gap: 4px; min-height: 64px; justify-content: center; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; box-shadow: 0 4px 0 var(--line); font-weight: 900; transition: border-color .15s, background .15s; }
.choice span .ic { width: 34px; height: 34px; margin-bottom: 4px; }
.choice span small { font-weight: 700; color: var(--ink-3); font-size: .92rem; }
.choice input:checked + span { border-color: var(--c, var(--purple)); background: color-mix(in srgb, var(--c, var(--purple)) 9%, #fff); box-shadow: 0 4px 0 color-mix(in srgb, var(--c, var(--purple)) 45%, #fff); }
.choice input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 3px; }
.choices.four .choice span { align-items: center; text-align: center; font: 900 1.6rem/1 var(--font); }
.choices.four .choice span small { font: 700 .85rem/1.2 var(--font); }
.onb-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

/* ---------- Family home ---------- */
.home-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(50px, 6vw, 80px); margin-bottom: 30px; }
.home-head { display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: center; }
.home-head .teko-slot { max-width: 240px; }
@media (max-width: 760px) { .home-head { grid-template-columns: 1fr; } .home-head .teko-slot { max-width: 150px; order: -1; } }
.learners { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 20px 0 48px; }
.learner { background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 0 var(--line); }
.learner-top { display: flex; gap: 14px; align-items: center; }
.avatar { width: 58px; height: 58px; border-radius: 18px; background: var(--purple); color: #fff; display: grid; place-items: center; font: 900 1.6rem/1 var(--font); flex: none; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .15); }
.learner h3 { margin: 0; font-size: 1.4rem; }
.learner .meta { color: var(--ink-3); font-weight: 800; font-size: .95rem; }
.learner .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.learner-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.add-learner { border: 2.5px dashed #B9B1FF; background: transparent; border-radius: var(--r-lg); min-height: 220px; display: grid; place-items: center; text-align: center; color: var(--purple); font: 900 1.2rem/1.3 var(--font); text-decoration: none; padding: 24px; }
.add-learner:hover { background: var(--purple-soft); }
.panel { background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.panel h2 { font-size: 1.6rem; display: flex; gap: 12px; align-items: center; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 80px; }
@media (max-width: 760px) { .home-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 0 0 18px; }
.kv dt { color: var(--ink-3); font-weight: 800; }
.kv dd { margin: 0; font-weight: 800; word-break: break-word; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.contact-card { background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 10px; align-content: start; box-shadow: 0 6px 0 var(--line); }
.contact-card h2 { font-size: 1.35rem; margin: 6px 0 0; }
.contact-card p { color: var(--ink-2); margin: 0; }
.contact-card a { font-weight: 900; word-break: break-all; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #1A1166, #0E0838); color: #fff; padding: 64px 0 32px; margin-top: 60px; position: relative; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--g-neon-text); box-shadow: var(--glow-cyan); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font: 900 1rem/1 var(--font); letter-spacing: 0; color: var(--lime); margin-bottom: 14px; }
.footer-grid nav { display: grid; gap: 10px; align-content: start; }
.footer-grid nav a { color: #D6D2FF; text-decoration: none; font-weight: 700; }
.footer-grid nav a:hover { color: #fff; }
.footer-brand p { color: #C9C3F5; max-width: 34ch; margin-top: 14px; }
.teko-toggle-row { font-size: .95rem; display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer .link-btn { color: var(--lime); }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); color: #A9A3D8; font-size: .9rem; display: grid; gap: 4px; }
.footer-base p { margin: 0; max-width: 90ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; font-weight: 800; box-shadow: 0 6px 0 rgba(0, 0, 0, .2), var(--glow-cyan); transition: opacity .4s, transform .4s; }
.toast.is-out { opacity: 0; transform: translateY(10px); }

/* ---------- 404 ---------- */
.lost { min-height: 74vh; display: grid; place-items: center; text-align: center; padding: 40px 0 80px; }
.lost .teko-slot { max-width: 260px; margin: 0 auto; }
.lost h1 { margin: 0 auto; max-width: 14ch; font-size: clamp(2.4rem, 5vw, 4rem); }
.lost .lede { margin: 16px auto 28px; }

/* Light cards sitting on night surfaces keep dark text */
.night .qcard, .night .qcard p, .night .qcard h3, .night .qcard h4, .night .report, .night .report p { color: var(--ink); }
.night .qcard .muted, .night .qcard .shade-count { color: var(--ink-3); }
.night .qcard .q-text { color: var(--ink); }
.night .qcard a:not(.btn) { color: var(--purple); }
.subject-title .dot { width: 24px; height: 24px; border-radius: 8px; background: var(--g); flex: none; box-shadow: 0 0 16px color-mix(in srgb, var(--c) 60%, transparent); }
@media (max-width: 900px) {
  .hero-teko { max-width: 320px; margin: 0 auto; width: 100%; }
  .hero-teko .neon-orbits { left: -6%; top: -6%; width: 112%; }
  .ticker { margin-top: -24px; }
  .tick { font-size: .95rem; }
}
.night .preview-note { background: rgba(255, 255, 255, .1); color: #E6E2FF; border: 1.5px solid rgba(255, 255, 255, .18); }
.night .preview-note strong { color: var(--lime); }
h1, h2, h3, .q-text, .lede { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Light sections: lilac gradient and wide perspective orbits (fx.js) ---------- */
.has-deco { isolation: isolate; overflow: clip; }
.has-deco > :not(.deco) { position: relative; z-index: 1; }
.deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orbit-layer { position: absolute; inset: 0; opacity: .85; }
/* Fade the arcs out before they reach the middle of the page. */
.orbit-layer.from-left { -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 12%, transparent 42%); mask-image: linear-gradient(90deg, #000 0%, #000 12%, transparent 42%); }
.orbit-layer.from-right { -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 12%, transparent 42%); mask-image: linear-gradient(270deg, #000 0%, #000 12%, transparent 42%); }
.orbits { position: absolute; left: 0; top: 0; overflow: visible; }
.orb-dot { position: absolute; left: 0; top: 0; border-radius: 50%; offset-rotate: 0deg; offset-distance: 0%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--c) 55%); box-shadow: 0 0 10px 2px var(--g); opacity: .8;
  animation: orbit-travel 40s linear infinite paused; will-change: offset-distance; }
.deco-on .orb-dot { animation-play-state: running; }
@keyframes orbit-travel { to { offset-distance: 100%; } }
@media (prefers-reduced-motion: reduce) { .orb-dot { animation: none; } .orb-dot { offset-distance: 30%; } }
.teko-wake { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: 800 .98rem/1.2 var(--font); cursor: pointer; box-shadow: 0 4px 0 var(--ink), var(--glow-lime); }
.teko-wake img { width: 44px; height: 44px; object-fit: contain; }
.teko-wake b { color: var(--purple); }

/* ---------- Install popup (install.js) ---------- */
.install-pop { position: fixed; z-index: 70; left: 20px; bottom: 20px; width: min(400px, calc(100vw - 32px)); padding: 22px; border-radius: var(--r-lg);
  background: var(--g-night); color: #fff; box-shadow: 0 0 0 1.5px rgba(61, 242, 255, .35), 0 24px 60px -16px rgba(20, 10, 80, .7);
  opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.install-pop.is-on { opacity: 1; transform: none; }
.install-pop h2 { color: #fff; font-size: 1.35rem; margin: 2px 0 0; }
.install-top { display: flex; gap: 14px; align-items: center; padding-right: 26px; }
.install-top img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); flex: none; }
.install-kicker { margin: 0; color: var(--lime); font-weight: 900; font-size: .9rem; }
.install-text { color: #DCD7FF; margin: 14px 0 0; font-size: 1rem; }
.install-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.install-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .09); font-size: 1rem; color: #fff; }
.install-steps b { color: var(--lime); }
.step-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; color: #0A84FF; display: grid; place-items: center; flex: none; }
.step-ic .ic, .step-ic .ios-share { width: 22px; height: 22px; }
.install-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.install-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 11px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: 900 1.4rem/1 var(--font); cursor: pointer; }
.install-x:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 600px) { .install-pop { left: 12px; right: 12px; bottom: 12px; width: auto; } }
@media (display-mode: standalone) { [data-install] { display: none; } }

/* Tagline badge: "British curriculum, explained!" */
.tagline { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 18px 8px 10px; border-radius: 999px; font: 900 1.05rem/1 var(--font); letter-spacing: .01em;
  color: var(--ink); background: linear-gradient(90deg, var(--lime), #9DFFD9 55%, var(--cyan)); box-shadow: var(--glow-lime); }
.tagline .ic { width: 26px; height: 26px; --ic: var(--pink); --ic-ink: var(--ink); }
.night .tagline, .night p.tagline, .site-footer .tagline { color: var(--ink); }
.site-footer .tagline { margin-top: 18px; font-size: .95rem; box-shadow: none; }
.auth-panel .tagline { box-shadow: none; font-size: .95rem; margin-bottom: 16px; }
@media (prefers-reduced-motion: no-preference) { .hero .tagline { animation: rise .8s cubic-bezier(.2, .9, .2, 1) both; } }
.code-input { font: 900 1.6rem/1 var(--font); letter-spacing: .35em; text-align: center; }

/* ---------- Family home: letting children in ---------- */
.learner .school { display: flex; gap: 6px; align-items: center; }
.learner .school .ic { width: 18px; height: 18px; }
.devices-line { margin: 0; font-size: .92rem; color: var(--ink-3); font-weight: 700; }
.panel.wide { grid-column: 1 / -1; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--purple) 50%), linear-gradient(135deg, var(--purple) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; cursor: pointer; }
dialog.letin { border: 0; padding: 0; background: transparent; max-width: min(640px, calc(100vw - 24px)); width: 100%; }
dialog.letin::backdrop { background: rgba(18, 12, 60, .55); backdrop-filter: blur(3px); }
.letin-card { position: relative; background: #fff; border-radius: var(--r-xl); padding: clamp(22px, 4vw, 34px); box-shadow: 0 30px 80px -20px rgba(20, 10, 80, .6); }
.letin-card h2 { font-size: 1.8rem; margin: 0 40px 8px 0; }
.letin-card .install-x { background: var(--purple-soft); color: var(--purple); }
.ways { display: grid; gap: 12px; margin: 18px 0 8px; }
.way { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: center; text-align: left; padding: 16px; border-radius: var(--r-md);
  border: 2px solid var(--line); background: #fff; box-shadow: 0 4px 0 var(--line); cursor: pointer; font: inherit; color: var(--ink); }
.way:hover { border-color: var(--purple); }
.way .ic-tile { grid-row: span 2; }
.way strong { font-size: 1.15rem; font-weight: 900; }
.way span:not(.ic-tile) { color: var(--ink-2); font-size: .95rem; }
.devices-title { font-size: 1.1rem; margin: 22px 0 8px; }
.device-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--paper); }
.device-list li span { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; }
.device-list li .ic { width: 26px; height: 26px; grid-row: span 2; }
.device-list small { color: var(--ink-3); font-weight: 700; }
.qr-box { display: grid; place-items: center; width: min(280px, 100%); aspect-ratio: 1; margin: 16px auto 8px; padding: 12px; border-radius: 24px; background: #fff;
  box-shadow: 0 0 0 3px var(--purple-soft), 0 10px 30px -10px rgba(91, 75, 255, .5); }
.qr-box svg { width: 100%; height: 100%; }
.code-big { text-align: center; font: 900 2rem/1 var(--font); letter-spacing: .12em; margin: 10px 0 4px; color: var(--ink); }
[data-left] { text-align: center; }
.link-box .input { font-size: .95rem; }
/* ---------- Join page and kids view ---------- */
.join-card, .kid-card { max-width: 560px; margin: 0 auto; text-align: center; }
.kid-hero { padding: clamp(36px, 7vw, 80px) 0 clamp(60px, 8vw, 100px); min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px); display: flex; align-items: center; }
.kid-hero > .wrap { width: 100%; }
.kid-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.kid-subjects { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 6px; }
.kid-subjects a { display: grid; gap: 10px; justify-items: center; width: 150px; padding: 18px 12px; border-radius: var(--r-lg); background: var(--g); color: #fff !important;
  text-decoration: none; font-weight: 900; font-size: 1.15rem; box-shadow: 0 18px 40px -18px rgba(40, 20, 120, .8); }
.kid-subjects img { width: 120px; height: 70px; object-fit: contain; }
.kid-tools { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.pin-pad { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.pin-pad input { width: 58px; height: 66px; text-align: center; font: 900 2rem/1 var(--font); border-radius: 16px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); }
.pin-pad input:focus { outline: none; border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(91, 75, 255, .16); }

/* Onboarding: school year */
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--paper); border: 2px solid var(--line); gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 20px; border-radius: 10px; font-weight: 900; cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--purple); box-shadow: 0 2px 0 var(--line); }
.seg input:focus-visible + span { outline: 3px solid var(--purple); }
.choices.three { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.choices.three .choice span { align-items: center; text-align: center; font-size: 1.2rem; }
@media (max-width: 520px) { .choices.three { grid-template-columns: repeat(2, 1fr); } }
.stage-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--purple-soft); font-weight: 800; color: var(--ink-2); }
.stage-pick { margin-top: 10px; }
.stage-pick summary { cursor: pointer; color: var(--purple); font-weight: 800; font-size: .95rem; }
