/* Kids AI Studio – promo site. Colours, type and shapes come from design/handoff/tokens.json.
   Light/dark follows the operating system (prefers-color-scheme). No build step. */

@font-face { font-family: 'Baloo 2'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/baloo-2-latin-600-normal.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: 'Baloo 2'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/baloo-2-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/baloo-2-latin-700-normal.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: 'Baloo 2'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/baloo-2-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/baloo-2-latin-800-normal.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: 'Baloo 2'; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/baloo-2-latin-ext-800-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: light dark;
  --bg: #FFF6E6;
  --bg-soft: #FFEFD3;
  --surface: #FFFFFF;
  --surface-2: #F3ECDC;
  --field: #EDE7FF;
  --ink: #1F1147;
  --muted: #5A4F85;
  --line: #E4DCC8;
  --navy: #161C40;
  --navy-2: #232B5C;
  --gold-light: #FFE98A;
  --gold: #FFC21A;
  --gold-edge: #C98A00;
  --on-gold: #3A2600;
  --splash: #F9CD3F;
  --green: #22A06B;
  --link: #5B3FD6;
  --c-drawing: #FF7B7B;
  --c-invent: #B79CFF;
  --c-stories: #FFC233;
  --c-games: #5BB8FF;
  --c-music: #5FE3C0;
  --c-photo: #6FE08E;
  --c-party: #FF8FC4;
  --c-tell: #7CD4FF;
  --shadow-card: 0 6px 0 rgba(31,17,71,.06), 0 18px 34px rgba(31,17,71,.08);
  --shadow-pill: inset 0 -3px 0 rgba(31,17,71,.08), 0 5px 0 rgba(0,0,0,.08), 0 14px 22px rgba(31,17,71,.12);
  --shadow-gold: inset 0 3px 0 rgba(255,255,255,.75), 0 6px 0 #C98A00, 0 16px 24px rgba(0,0,0,.22);
  --shadow-frame: 0 8px 0 rgba(0,0,0,.12), 0 22px 36px rgba(31,17,71,.18);
  --radius-xl: 36px;
  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 16px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: 'Baloo 2', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1230;
    --bg-soft: #12163A;
    --surface: #1B2150;
    --surface-2: #232B5C;
    --field: #151A45;
    --ink: #FFFFFF;
    --muted: #C9C4F0;
    --line: #343B78;
    --link: #C8B8FF;
    --shadow-card: 0 6px 0 rgba(0,0,0,.25), 0 18px 34px rgba(0,0,0,.3);
    --shadow-pill: inset 0 2px 0 rgba(255,255,255,.08), 0 5px 0 rgba(0,0,0,.35), 0 14px 22px rgba(0,0,0,.35);
    --shadow-frame: 0 8px 0 rgba(0,0,0,.3), 0 22px 36px rgba(0,0,0,.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-games); outline-offset: 3px; border-radius: 12px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head h2 { font-size: clamp(32px, 5vw, 48px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }

/* ---------- Icons ---------- */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- Header: the menu bar sits in a rounded box ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; }
.nav {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 24px;
  box-shadow: var(--shadow-pill);
  padding: 8px 8px 8px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; line-height: 1; margin-right: auto; min-height: 44px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.brand span small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.nav-links a:hover { background: var(--surface-2); }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; border: 2px solid var(--line); }
.lang:hover { background: var(--surface-2); }
.nav .btn-gold { min-height: 44px; padding: 0 18px; font-size: 17px; }
@media (max-width: 960px) { .nav-links { display: none; } }
@media (max-width: 420px) { .brand span small { display: none; } .brand { font-size: 18px; } .nav .btn-gold { padding: 0 14px; } }
@media (max-width: 359px) { .brand span { display: none; } }

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--on-gold); font-weight: 800; font-size: 20px; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-gold);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-gold:hover { transform: translateY(-1px); }
.btn-gold:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255,255,255,.75), 0 2px 0 #C98A00, 0 8px 14px rgba(0,0,0,.2); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none; border: 0; cursor: pointer;
  box-shadow: var(--shadow-pill);
}
.btn-ghost:hover { transform: translateY(-1px); }

/* Store badges (built in HTML so they stay sharp and localisable; swap for the official badge art when you have it) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 14px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1.5px solid #A6A6A6; line-height: 1;
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; gap: 3px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.store b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Hero ---------- */
.hero { padding: 16px 0 0; }
.hero-card {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #121838 0%, #1A2142 45%, #232A45 100%); color: #fff; isolation: isolate;
  box-shadow: var(--shadow-frame);
}
@media (prefers-color-scheme: dark) { .hero-card { background: linear-gradient(180deg, #080B22 0%, #0E1430 50%, #141A30 100%); } }
.hero-scene { position: absolute; left: 0; right: 0; bottom: 0; z-index: -2; }
.hero-scene img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
}
.hero-card::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 72% 34%, rgba(10,14,48,.55), transparent 70%); }
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(24px, 4vw, 56px); align-items: start;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 64px) clamp(250px, 27vw, 330px);
}
.hero-copy { grid-column: 2; grid-row: 1; }
.hero .magic { grid-column: 1; grid-row: 1; }
.hero h1 { font-size: clamp(38px, 4.9vw, 62px); text-shadow: 0 3px 0 rgba(0,0,0,.28), 0 8px 18px rgba(0,0,0,.35); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-lead { margin-top: 18px; font-size: clamp(18px, 1.7vw, 21px); color: #F2EFFF; max-width: 44ch; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero .stores { margin-top: 26px; }
.hero-quiz-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #fff; font-weight: 800; font-size: 18px; min-height: 44px; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 5px; }
.hero-quiz-link:hover { text-decoration-color: var(--gold); }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 16px; font-weight: 700; color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.trust .ic { width: 20px; height: 20px; color: var(--gold-light); }
.hero .trust { margin-top: 18px; }

.magic { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; margin-top: 12px; }
.frame { position: absolute; background: #fff; padding: 8px; border-radius: 22px; box-shadow: 0 8px 0 rgba(0,0,0,.2), 0 22px 36px rgba(0,0,0,.35); }
.frame img { border-radius: 15px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.frame-before { width: 68%; left: 0; top: 0; transform: rotate(-5deg); }
.frame-after { width: 90%; right: 0; top: 44%; transform: rotate(3deg); }
.frame-tag { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy); border-radius: 999px; padding: 4px 12px 4px 6px; font-size: 15px; font-weight: 800; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.frame-tag img { width: 24px; height: 24px; aspect-ratio: 1; border-radius: 50%; }
.frame-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--on-gold); box-shadow: var(--shadow-gold); }
.frame-play .ic { width: 26px; height: 26px; margin-left: 3px; }
.magic-arrow { position: absolute; left: 70%; top: 18%; width: 64px; height: 64px; color: var(--gold-light); transform: rotate(40deg); filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.magic-arrow .ic { width: 64px; height: 64px; stroke-width: 2.6; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 22px 0; gap: 8px; }
  .hero-copy, .hero .magic { grid-column: 1; grid-row: auto; }
  .hero .magic { max-width: 340px; margin: 22px 0 0; aspect-ratio: 1 / .92; }
  .hero-scene { position: relative; z-index: -2; margin-top: -70px; }
  .hero-scene img { width: 112%; max-width: none; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%); mask-image: linear-gradient(180deg, transparent 0%, #000 28%); }
  .hero-card::after { background: none; }
}
@media (max-width: 520px) {
  .hero-inner { padding: 32px 20px 0; }
  .hero-scene img { width: 190%; }
  .store b { font-size: 19px; }
}

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: clamp(28px, 4vw, 40px) 0 0; padding: 0; list-style: none; }
.facts li { background: var(--surface); border-radius: var(--radius-m); padding: 18px 20px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 14px; }
.facts img { width: 52px; height: 52px; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.facts b { display: block; font-size: 28px; line-height: 1; }
.facts span { color: var(--muted); font-size: 16px; line-height: 1.25; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .facts li { padding: 14px; gap: 10px; } .facts img { width: 42px; height: 42px; } .facts b { font-size: 24px; } }

/* ---------- Problem: watching vs creating ---------- */
.versus { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: stretch; }
.vs-card { border-radius: var(--radius-l); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.vs-card figure { margin: 0; position: relative; }
.vs-card figure img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.vs-today figure img { filter: saturate(.55) brightness(.9); }
.vs-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vs-label { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 16px; font-weight: 800; }
.vs-today .vs-label { background: var(--surface-2); color: var(--muted); }
.vs-with .vs-label { background: #DFF7E8; color: #0E6B44; }
@media (prefers-color-scheme: dark) { .vs-with .vs-label { background: #164A36; color: #A6F0C6; } }
.vs-label .ic { width: 20px; height: 20px; }
.vs-body h3 { font-size: clamp(24px, 2.6vw, 30px); }
.vs-body p { color: var(--muted); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 8px; }
.flow-step { text-align: center; }
.flow-step .thumb { border-radius: 16px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 4px 0 rgba(0,0,0,.08), 0 10px 18px rgba(31,17,71,.12); background: #fff; }
.flow-step .thumb img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.flow-step .pip { aspect-ratio: 4/3; display: grid; place-items: center; }
.flow-step .pip img { width: 92%; height: auto; }
.flow-step b { display: block; margin-top: 8px; font-size: 17px; line-height: 1.15; }
.flow-step span { display: block; font-size: 14px; color: var(--muted); line-height: 1.25; }
.flow .arrow { color: var(--gold-edge); }
@media (prefers-color-scheme: dark) { .flow .arrow { color: var(--gold); } }
@media (max-width: 700px) { .versus { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .flow { gap: 4px; } .flow .arrow .ic { width: 18px; height: 18px; } .flow-step b { font-size: 15px; } .flow-step span { display: none; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius-xl); padding: 26px 24px 0; box-shadow: var(--shadow-card); display: flex; flex-direction: column; overflow: hidden; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--navy); background: var(--accent, var(--gold)); box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.step h3 { margin-top: 16px; font-size: 26px; }
.step p { margin: 8px 0 24px; color: var(--muted); }
.phone { margin: auto auto 0; width: min(78%, 260px); border-radius: 36px 36px 0 0; padding: 9px 9px 0; background: #0B0E26; box-shadow: 0 -2px 0 rgba(255,255,255,.08) inset, 0 18px 40px rgba(0,0,0,.25); }
.phone img { border-radius: 28px 28px 0 0; width: 100%; aspect-ratio: 300/480; object-fit: cover; object-position: top; }
.s1 { --accent: var(--c-drawing); } .s2 { --accent: var(--c-games); } .s3 { --accent: var(--c-music); }
@media (max-width: 960px) { .steps { gap: 14px; } .step { padding: 20px 16px 0; } .step h3 { font-size: 22px; } .step p { font-size: 16px; } .phone { width: 88%; } }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .phone { width: min(78%, 260px); } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.work { grid-column: span 4; position: relative; background: var(--navy); border-radius: var(--radius-l); padding: 10px 10px 16px; color: #fff; box-shadow: 0 0 0 3px var(--tc), 0 0 22px color-mix(in srgb, var(--tc) 70%, transparent), 0 16px 26px rgba(0,0,0,.25); }
.work:nth-child(1), .work:nth-child(2), .work:nth-child(6), .work:nth-child(7) { grid-column: span 6; }
.work .after { border-radius: 20px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.work .before { position: absolute; left: 22px; top: 22px; width: 34%; border: 5px solid #fff; border-radius: 12px; transform: rotate(-4deg); box-shadow: 0 6px 14px rgba(0,0,0,.35); aspect-ratio: 16/9; object-fit: cover; }
.work-meta { display: flex; align-items: center; gap: 12px; padding: 14px 8px 0; }
.work-meta img { width: 44px; height: 44px; border-radius: 50%; background: #fff; flex: none; }
.work-meta h3 { font-size: 22px; }
.work-meta p { font-size: 15px; color: #C9C4F0; line-height: 1.25; }
.badge { position: absolute; right: 22px; top: 22px; background: #fff; color: var(--navy); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.t-film { --tc: var(--c-drawing); } .t-game { --tc: var(--c-games); } .t-song { --tc: var(--c-music); } .t-stickers { --tc: var(--c-party); }
.t-animal { --tc: var(--c-invent); } .t-monster { --tc: var(--c-invent); } .t-book { --tc: var(--c-stories); }
@media (max-width: 960px) { .work, .work:nth-child(1), .work:nth-child(2), .work:nth-child(6) { grid-column: span 6; } .work:nth-child(7) { grid-column: span 12; } .work:nth-child(7) .after { aspect-ratio: 21/9; } .work:nth-child(7) .before { width: 22%; } }
@media (max-width: 640px) { .work:nth-child(7) .after { aspect-ratio: 16/9; } .work:nth-child(7) .before { width: 34%; } }
@media (max-width: 640px) { .work, .work:nth-child(n) { grid-column: span 12; } }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card); font-weight: 800; font-size: 17px; }
.chips li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--cc); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }

/* ---------- Quiz ---------- */
.quiz-section { background: var(--bg-soft); }
.quiz-shell { position: relative; max-width: 940px; margin: 0 auto; background: var(--navy); color: #fff; border-radius: var(--radius-xl); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-frame); overflow: hidden; isolation: isolate; }
.quiz-shell::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 100% 0%, rgba(183,156,255,.22), transparent 55%), radial-gradient(90% 70% at 0% 100%, rgba(95,227,192,.16), transparent 60%); }
.quiz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.quiz-back { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.quiz-back[hidden] { display: none; }
.quiz-back:hover { background: rgba(255,255,255,.2); }
.progress { flex: 1; height: 12px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transition: width .35s ease; }
.quiz-count { font-weight: 800; color: #C9C4F0; font-size: 16px; min-width: 44px; text-align: right; }
.quiz-q { font-size: clamp(26px, 3.6vw, 38px); }
.quiz-sub { margin-top: 6px; color: #D9D6F7; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; list-style: none; padding: 0; }
.options.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt {
  width: 100%; height: 100%; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; min-height: 84px; border-radius: 24px; border: 0;
  background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 4px var(--oc), 0 8px 0 rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.opt:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 4px var(--oc), 0 0 24px color-mix(in srgb, var(--oc) 60%, transparent), 0 10px 0 rgba(0,0,0,.22); }
.opt:active { transform: translateY(4px); box-shadow: inset 0 0 0 4px var(--oc), 0 3px 0 rgba(0,0,0,.22); }
.opt[aria-pressed='true'] { box-shadow: inset 0 0 0 4px var(--oc), 0 0 30px rgba(255,194,26,.7), 0 8px 0 rgba(0,0,0,.22); }
.opt-ic { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--oc) 28%, #fff); color: color-mix(in srgb, var(--oc) 55%, #1F1147); overflow: hidden; }
.opt-ic img { width: 100%; height: 100%; object-fit: cover; }
.opt-ic .ic { width: 28px; height: 28px; }
.opt b { display: block; font-size: 20px; line-height: 1.15; }
.opt small { display: block; font-size: 15px; color: var(--muted-on-white, #5A4F85); font-weight: 600; line-height: 1.25; margin-top: 2px; }
.options.three .opt { flex-direction: column; text-align: center; padding: 18px 12px; }
.options.three .opt-ic { width: 84px; height: 84px; }
@media (max-width: 640px) { .options, .options.three { grid-template-columns: 1fr; } .options.three .opt { flex-direction: row; text-align: left; } .options.three .opt-ic { width: 56px; height: 56px; } }
.quiz-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: #C9C4F0; font-size: 15px; }
.quiz-note .ic { width: 18px; height: 18px; color: var(--c-photo); }
.quiz-start { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.quiz-start img { width: clamp(120px, 18vw, 200px); }
.quiz-start .btn-gold { margin-top: 22px; }
@media (max-width: 560px) { .quiz-start { grid-template-columns: 1fr; } .quiz-start img { order: -1; width: 120px; } }
.qstep { animation: obin .35s ease both; }
@keyframes obin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Result */
.result-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.result-medal { width: 112px; height: 112px; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 0 0 5px var(--tc), 0 0 34px var(--tc); }
.result-medal img { width: 100%; height: 100%; }
.result-kicker { color: #D9D6F7; font-size: 18px; }
.result-head h3 { font-size: clamp(30px, 4.4vw, 46px); }
.result-head h3 span { color: var(--tc); }
.result-text { margin-top: 18px; font-size: 20px; color: #F2EFFF; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 26px; }
.rbox { border-radius: 24px; padding: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.rbox h4 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.rbox h4 .ic { width: 22px; height: 22px; }
.rbox p { margin-top: 8px; color: #D9D6F7; font-size: 17px; }
.rbox.today h4 { color: #FFC9C0; }
.rbox.with h4 { color: #A6F0C6; }
.rbox.wide { grid-column: 1 / -1; }
.tools3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; list-style: none; padding: 0; }
.tools3 li { background: #0E1230; border-radius: 18px; padding: 6px 6px 10px; box-shadow: 0 0 0 3px var(--tc2), 0 0 16px color-mix(in srgb, var(--tc2) 55%, transparent); }
.tools3 img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 13px; }
.tools3 b { display: block; padding: 8px 6px 0; font-size: 16px; line-height: 1.15; }
.tools3 span { display: block; padding: 0 6px; font-size: 13px; color: #C9C4F0; }
@media (max-width: 640px) { .result-grid { grid-template-columns: 1fr; } .tools3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .tools3 b { font-size: 14px; } .tools3 span { display: none; } .result-head { grid-template-columns: 1fr; } .result-medal { width: 88px; height: 88px; } }
.result-cta { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.result-cta h4 { font-size: 24px; }
.result-cta p { color: #D9D6F7; font-size: 16px; }
.again { margin-top: 18px; background: none; border: 0; color: #fff; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-weight: 800; min-height: 44px; padding: 0; }

/* ---------- Safety ---------- */
.safety { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.safety li { background: var(--surface); border-radius: var(--radius-l); padding: 22px; box-shadow: var(--shadow-card); border-left: 8px solid var(--sc); }
.safety .sic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--sc) 26%, var(--surface)); color: color-mix(in srgb, var(--sc) 50%, var(--ink)); }
.safety .sic .ic { width: 28px; height: 28px; }
.safety h3 { margin-top: 14px; font-size: 23px; }
.safety p { margin-top: 6px; color: var(--muted); font-size: 17px; }
@media (max-width: 900px) { .safety { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .safety { grid-template-columns: 1fr; } }
.safety-more { margin-top: 26px; text-align: center; color: var(--muted); }

/* ---------- Parents ---------- */
.parents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.parents figure { margin: 0; position: relative; }
.parents figure img { border-radius: var(--radius-xl); box-shadow: var(--shadow-frame); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
.parents figure .phone-float { position: absolute; right: -12px; bottom: -28px; width: 34%; border-radius: 24px; border: 6px solid #0B0E26; box-shadow: var(--shadow-frame); aspect-ratio: 300/560; object-fit: cover; object-position: top; }
.parents h2 { font-size: clamp(32px, 4.4vw, 46px); }
.parents > div > p { margin-top: 14px; color: var(--muted); font-size: 20px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: var(--green); color: #fff; stroke-width: 3; margin-top: 1px; }
.ticks b { display: block; }
.ticks span { color: var(--muted); font-size: 17px; }
@media (max-width: 860px) { .parents { grid-template-columns: 1fr; } .parents figure { margin-right: 12px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; min-height: 64px; font-weight: 800; font-size: 20px; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s ease; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(90deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Final CTA ---------- */
.final { background: var(--splash); color: #3A2600; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; box-shadow: var(--shadow-frame); overflow: hidden; }
.final img { width: clamp(140px, 20vw, 240px); filter: drop-shadow(0 10px 18px rgba(90,61,0,.35)); }
.final h2 { font-size: clamp(32px, 4.6vw, 50px); color: #2A1B00; }
.final p { margin-top: 10px; font-size: 20px; color: #5A3D00; }
.final .stores { margin-top: 24px; }
@media (max-width: 700px) { .final { grid-template-columns: 1fr; text-align: left; } .final img { width: 140px; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 96px); padding: 48px 0 40px; background: var(--surface); border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot h2 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot a { color: var(--ink); display: inline-flex; align-items: center; min-height: 36px; }
.foot address { font-style: normal; line-height: 1.6; }
.credits { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.credits p + p { margin-top: 6px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 0 0; }
.legal h1 { font-size: clamp(36px, 5vw, 54px); }
.legal .meta { margin-top: 12px; color: var(--muted); }
.legal .summary { margin-top: 26px; background: var(--surface); border-radius: var(--radius-l); padding: 22px 24px; box-shadow: var(--shadow-card); border-left: 8px solid var(--c-photo); }
.legal .summary h2 { font-size: 22px; margin: 0 0 8px; }
.legal .summary ul { margin: 0; padding-left: 22px; }
.legal .summary li + li { margin-top: 4px; }
.legal nav.toc { margin-top: 24px; background: var(--surface-2); border-radius: var(--radius-m); padding: 18px 22px; }
.legal nav.toc h2 { font-size: 18px; margin: 0 0 6px; }
.legal nav.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.legal nav.toc li { break-inside: avoid; padding: 2px 0; }
.legal nav.toc a { color: var(--ink); }
@media (max-width: 640px) { .legal nav.toc ol { columns: 1; } }
.legal section { margin-top: 40px; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); }
.legal h3 { font-size: 20px; margin-top: 22px; }
.legal p, .legal li { font-size: 18px; line-height: 1.6; }
.legal p { margin-top: 12px; }
.legal ul, .legal ol { margin: 12px 0 0; padding-left: 24px; }
.legal li + li { margin-top: 6px; }
.table-wrap { margin-top: 16px; overflow-x: auto; border-radius: var(--radius-m); box-shadow: var(--shadow-card); background: var(--surface); }
.legal table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--surface-2); font-weight: 800; }
.legal tr:last-child td { border-bottom: 0; }
.legal .company { margin-top: 16px; background: var(--surface); border-radius: var(--radius-m); padding: 18px 22px; box-shadow: var(--shadow-card); font-style: normal; line-height: 1.6; }

/* Category and card colours (set in CSS, so the pages need no inline styles) */
.chips li[data-cc='drawing'] { --cc: var(--c-drawing); } .chips li[data-cc='invent'] { --cc: var(--c-invent); }
.chips li[data-cc='stories'] { --cc: var(--c-stories); } .chips li[data-cc='games'] { --cc: var(--c-games); }
.chips li[data-cc='music'] { --cc: var(--c-music); } .chips li[data-cc='photo'] { --cc: var(--c-photo); }
.chips li[data-cc='party'] { --cc: var(--c-party); } .chips li[data-cc='tell'] { --cc: var(--c-tell); }
.safety li:nth-child(1) { --sc: var(--c-drawing); } .safety li:nth-child(2) { --sc: var(--c-invent); }
.safety li:nth-child(3) { --sc: var(--c-photo); } .safety li:nth-child(4) { --sc: var(--c-party); }
.safety li:nth-child(5) { --sc: var(--c-stories); } .safety li:nth-child(6) { --sc: var(--c-games); }
.notfound { text-align: center; padding-bottom: 80px; }
.notfound img { margin: 0 auto 16px; width: 180px; }
.notfound p:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
html { background: var(--surface); }
.legal .faq { margin-top: 16px; }
