:root {
  --green: #2DB04B;
  --red: #E72A3F;
  --blue: #07ADE8;
  --pink: #EF3292;
  --yellow: #F8BA16;
  --ink: #1F2140;
  --ink-soft: #4A4D6E;
  --bg: #FFF8EA;
  --tint: #FFFFFF;
  --line: #EDE3CC;
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* color helpers */
.c-green { --c: var(--green); }
.c-red { --c: var(--red); }
.c-blue { --c: var(--blue); }
.c-pink { --c: var(--pink); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 800;
  background: var(--yellow); color: var(--ink);
  border-radius: 999px; padding: 12px 22px;
  box-shadow: 0 4px 0 #D49A00;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #D49A00; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #D49A00; }
.btn-small { padding: 8px 18px; font-size: .95rem; }

/* hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, white);
  padding: 6px 12px; border-radius: 999px;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 900; }
.rainbow {
  background: linear-gradient(90deg, var(--green), var(--blue) 35%, var(--pink) 68%, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: white; border-radius: 14px;
  padding: 10px 18px 10px 14px; font-weight: 700; font-size: 1.1rem; line-height: 1.1;
  opacity: .92; cursor: default;
}
.store-btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-btn small { display: block; font-size: .7rem; font-weight: 600; opacity: .75; }

.hero-play {
  position: relative; aspect-ratio: 4 / 5; max-height: 560px; width: 100%;
  background: linear-gradient(180deg, #2A2D5C, #1B1D3F);
  border-radius: 32px;
  box-shadow: 0 24px 60px -20px rgba(31, 33, 64, .45), inset 0 0 0 6px rgba(255,255,255,.06);
  overflow: hidden;
}
.hero-play canvas { width: 100%; height: 100%; display: block; }

/* sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; font-weight: 900; }
.section-lede { color: var(--ink-soft); font-size: 1.15rem; margin: 0 0 36px; max-width: 38em; }
h3 { margin: 0 0 6px; font-size: 1.2rem; letter-spacing: -0.01em; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: white; border-radius: var(--radius); padding: 24px;
  border: 2px solid color-mix(in srgb, var(--c) 30%, white);
  border-bottom-width: 6px;
}
.step p { margin: 0; color: var(--ink-soft); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 12px; background: var(--c); color: white; font-weight: 900; font-size: 1.3rem;
}

.ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.op {
  background: var(--c); color: white; border-radius: var(--radius);
  padding: 28px 20px 22px; text-align: center;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 70%, black);
  transition: transform .15s;
}
.op:hover { transform: translateY(-4px) rotate(-1deg); }
.op-sym { display: block; font-size: 4.5rem; font-weight: 900; line-height: 1; }
.op-name { display: block; margin-top: 8px; font-weight: 800; font-size: 1.1rem; }

/* quiz */
.quiz { max-width: 560px; }
.quiz-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.qt {
  font: inherit; font-weight: 900; font-size: 1.6rem; width: 56px; height: 56px;
  border-radius: 16px; border: 3px solid var(--c); background: white; color: var(--c); cursor: pointer;
  transition: background .12s, color .12s, transform .12s;
}
.qt:hover { transform: translateY(-2px); }
.qt[aria-selected="true"] { background: var(--c); color: white; }
.qt:focus-visible, .choice:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.quiz-card { background: white; border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quiz-q { font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 900; text-align: center; margin: 0 0 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.quiz-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice {
  font: inherit; font-size: 1.7rem; font-weight: 900; padding: 16px 0;
  border-radius: 16px; border: 0; cursor: pointer;
  background: #F3EEFF; color: var(--ink); box-shadow: 0 5px 0 #D8CFF0;
  transition: transform .1s, box-shadow .1s, background .15s;
  font-variant-numeric: tabular-nums;
}
.choice:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #D8CFF0; }
.choice:active { transform: translateY(4px); box-shadow: 0 1px 0 #D8CFF0; }
.choice.right { background: var(--green); color: white; box-shadow: 0 5px 0 #1E8436; }
.choice.wrong { background: var(--red); color: white; box-shadow: 0 5px 0 #B01A2C; animation: shake .35s; }
.choice:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz-status { display: flex; justify-content: space-between; margin: 20px 0 0; color: var(--ink-soft); font-weight: 700; }
.streak b { color: var(--pink); }

/* parents */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.trust-item { background: var(--bg); border-radius: var(--radius); padding: 24px; }
.trust-item p { margin: 0; color: var(--ink-soft); }
.trust-item h3::before { content: "✓"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--green); color: white; font-size: .9rem; vertical-align: 2px; }
.fine { margin: 28px 0 0; color: var(--ink-soft); }

/* footer */
.footer { padding: 36px 0 44px; color: var(--ink-soft); font-size: .95rem; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand-foot { font-size: 1.1rem; }
.footer nav { display: flex; gap: 18px; }
.footer nav a { color: var(--ink-soft); font-weight: 700; text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.footer p { margin: 0 0 0 auto; }

/* legal page */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 36px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1.05rem; }
.legal .updated { font-weight: 700; color: var(--ink-soft); }

/* responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-play { max-width: 440px; margin-inline: auto; }
  .steps, .trust { grid-template-columns: repeat(2, 1fr); }
  .ops { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .hero { padding-top: 40px; }
  .section { padding: 60px 0; }
  .steps, .trust { grid-template-columns: 1fr; }
  .footer p { margin-left: 0; width: 100%; }
}
