@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Nunito-700-latin-ext.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: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Nunito-700-latin.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: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/Nunito-800-latin-ext.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: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/Nunito-800-latin.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: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/NunitoSans-400-latin-ext.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: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/NunitoSans-400-latin.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: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/NunitoSans-600-latin-ext.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: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/NunitoSans-600-latin.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: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/NunitoSans-700-latin-ext.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: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/NunitoSans-700-latin.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;
}
/* ==========================================================================
   NeuroNest ADHD — public site
   Direction: "digital calm playground" — warm, tactile, predictable.
   Tokens follow the handoff proposal (semantic palette).
   ========================================================================== */

/* --- Primitive tokens — aligned with Nesto's suit (turquoise) & cape (violet) --- */
:root {
  --canvas: oklch(0.981 0.004 170);        /* #F7FAF8 */
  --surface: oklch(0.995 0.002 170);       /* near-white, slightly tinted */
  --ink: oklch(0.283 0.032 185);           /* #192D2A */
  --ink-soft: oklch(0.472 0.025 175);      /* #4E625D */
  --teal: #15867A;                         /* mascot suit, deepened for contrast */
  --teal-deep: #0F695F;
  --turquoise: #2BC0AE;                    /* mascot suit, bright — decorative */
  --calm: oklch(0.945 0.025 178);          /* soft turquoise tint */
  --coral: oklch(0.647 0.139 50);          /* #D97946 — movement */
  --coral-soft: oklch(0.93 0.045 55);
  --focus-blue: oklch(0.542 0.077 240);    /* #3F76A1 */
  --focus-soft: oklch(0.93 0.03 240);
  --gold: oklch(0.824 0.123 85);           /* #F1C45B — rewards */
  --gold-soft: oklch(0.955 0.05 90);
  --violet: #7A54E8;                       /* mascot cape */
  --violet-deep: #5F3DC4;                  /* cape, deepened for text */
  --violet-soft: oklch(0.945 0.028 292);
  --border: oklch(0.904 0.017 172);        /* #D8E4DF */
  --warn: oklch(0.55 0.19 27);

  --font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Nunito', 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;

  --radius-s: 10px;
  --radius-m: 20px;
  --radius-l: 34px;

  --shadow-soft: 0 2px 8px oklch(0.283 0.032 178 / 0.05), 0 16px 40px oklch(0.283 0.032 178 / 0.08);
  --shadow-lift: 0 4px 12px oklch(0.283 0.032 178 / 0.08), 0 22px 52px oklch(0.283 0.032 178 / 0.11);
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 var(--space-4);
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 var(--space-4); max-width: 68ch; }
ul, ol { max-width: 68ch; }
a { color: var(--teal-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible {
  outline: 3px solid var(--focus-blue);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--calm); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; top: -100px; left: var(--space-4); z-index: 60;
  background: var(--ink); color: var(--surface); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-s); transition: top 160ms ease-out;
}
.skip-link:focus { top: var(--space-4); color: var(--surface); }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--space-6); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-6);
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal-deep); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--teal-deep); }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: var(--teal); }
.btn-ghost:hover { background: var(--calm); color: var(--teal-deep); }

/* --- Announcement bar (free trial) --- */
.announce { background: var(--teal-deep); color: #fff; }
.announce-inner {
  display: flex; align-items: center; justify-content: center; gap: var(--space-4);
  min-height: 42px; padding-block: 6px; font-size: 0.92rem; font-weight: 600;
  text-align: center; flex-wrap: wrap;
}
.announce a { color: var(--gold); font-weight: 700; text-decoration-color: var(--gold); }
.announce a:hover { color: #fff; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.981 0.004 160 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--space-6); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--violet-deep);
}
.brand-word em { font-style: normal; color: var(--teal); }
.footer-brand .brand-mark { width: 26px; height: 26px; vertical-align: -6px; }
.brand-tag {
  font-family: var(--font-display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--violet-deep); border: 1.5px solid var(--violet); border-radius: 999px;
  padding: 1px 8px; text-transform: uppercase;
}
.main-nav { display: flex; gap: var(--space-1); flex-wrap: wrap; margin-left: auto; }
.main-nav a {
  font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); text-decoration: none;
  padding: var(--space-2) var(--space-3); border-radius: 999px;
  transition: background-color 140ms ease-out, color 140ms ease-out;
}
.main-nav a:hover { background: var(--calm); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--teal-deep); background: var(--calm); }
.header-tools { display: flex; align-items: center; gap: var(--space-3); }
.lang-select {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft);
  border: 1.5px solid var(--border); border-radius: 999px; padding: 6px 12px; background: var(--surface);
}
.lang-select select {
  border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink);
  cursor: pointer; min-height: 32px;
}
.nav-toggle {
  display: none; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface);
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}

/* --- Hero --- */
.hero { position: relative; overflow: clip; padding: var(--space-16) 0 var(--space-12); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-12); align-items: center; }
.hero-eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.9rem; color: var(--teal-deep);
  background: var(--calm); border-radius: 999px; padding: 6px 14px; margin-bottom: var(--space-4);
}
.hero-lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; }
.hero-note { font-size: 0.95rem; font-weight: 600; color: var(--teal-deep); margin-top: var(--space-3); }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }
.hero-stage {
  position: relative; border: 1.5px solid var(--border);
  border-radius: var(--radius-l);
  background: linear-gradient(150deg, var(--calm), var(--violet-soft) 70%, var(--gold-soft));
  padding: var(--space-6) var(--space-6) 0; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-stage img { margin-inline: auto; width: min(320px, 72%); filter: drop-shadow(0 18px 28px oklch(0.283 0.032 178 / 0.18)); }
.hero-trail { position: absolute; inset: 0; pointer-events: none; }
.hero-trail svg { position: absolute; width: 100%; height: 100%; }

/* --- Sections --- */
.section { padding: var(--space-16) 0; }
.section-tint { background: var(--calm); }
.section-violet { background: var(--violet-soft); }
.section-gold { background: var(--gold-soft); }
.section-head { max-width: 720px; margin-bottom: var(--space-8); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.split-media img { border-radius: var(--radius-l); box-shadow: var(--shadow-soft); }

.figure-stage {
  background: var(--surface); border-radius: var(--radius-l); border: 1.5px solid var(--border);
  padding: var(--space-6) var(--space-6) 0; overflow: hidden; text-align: center;
}
.figure-stage img { margin-inline: auto; width: min(280px, 70%); }
.figure-stage figcaption { font-size: 0.9rem; color: var(--ink-soft); padding: var(--space-3) 0 var(--space-4); }

/* --- Cards & grids (flat, no nesting) --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.tile {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-m);
  padding: var(--space-6);
}
.tile h3 { display: flex; align-items: center; gap: var(--space-3); }
.tile p:last-child { margin-bottom: 0; }
.tile-icon {
  flex: none; width: 48px; height: 48px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--teal-deep);
  background: var(--calm);
}
.tile-icon.coral { background: var(--coral-soft); color: var(--coral); }
.tile-icon.gold { background: var(--gold-soft); color: oklch(0.55 0.12 80); }
.tile-icon.violet { background: var(--violet-soft); color: var(--violet); }
.tile-icon.blue { background: var(--focus-soft); color: var(--focus-blue); }

/* --- Step list (routines) --- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); max-width: 760px; }
.steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-m);
  padding: var(--space-4) var(--space-6);
}
.step-no {
  width: 36px; height: 36px; border-radius: 999px; background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
}
.steps h3 { margin-bottom: var(--space-1); font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* --- Comparison table (Premium) --- */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-m); overflow: hidden; border: 1.5px solid var(--border); }
.compare th, .compare td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--calm); font-family: var(--font-display); font-size: 1.05rem; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 600; text-align: left; }
.compare td { text-align: center; width: 130px; }
.compare .yes { color: var(--teal-deep); font-weight: 700; }
.compare .no { color: var(--ink-soft); }

/* --- FAQ --- */
.faq details {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-m);
  padding: var(--space-4) var(--space-6); margin-bottom: var(--space-3);
}
.faq summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-top: 2px;
  border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(45deg); transition: transform 160ms ease-out;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { margin: var(--space-3) 0 0; color: var(--ink-soft); }

/* --- Notice / banners --- */
.notice {
  border: 1.5px solid var(--border); border-left: 6px solid var(--teal);
  background: var(--surface); border-radius: var(--radius-s);
  padding: var(--space-4) var(--space-6); margin: var(--space-6) 0; max-width: 760px;
}
.notice.warn { border-left-color: var(--warn); }
.notice.gold { border-left-color: var(--gold); }
.notice p:last-child { margin-bottom: 0; }

/* --- Demo: shared --- */
.demo-banner {
  background: var(--gold-soft); border: 1.5px dashed oklch(0.7 0.1 85);
  border-radius: var(--radius-m); padding: var(--space-3) var(--space-6);
  font-weight: 600; color: oklch(0.42 0.09 80); margin-bottom: var(--space-8); max-width: 760px;
}
.demo-tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); flex-wrap: wrap; }
.demo-tabs button {
  border: 2px solid var(--teal); background: var(--surface); color: var(--teal-deep);
  font: inherit; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  padding: var(--space-3) var(--space-6); border-radius: 999px; cursor: pointer; min-height: 48px;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.demo-tabs button[aria-selected="true"] { background: var(--teal); color: #fff; box-shadow: 0 3px 0 var(--teal-deep); }

/* --- Demo: kid mission as a mini game --- */
.game {
  --spd: 1;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow-soft);
}
.game-scene {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  background: linear-gradient(180deg, oklch(0.87 0.07 230) 0%, oklch(0.93 0.045 190) 55%, oklch(0.9 0.05 150) 100%);
}
.scene-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 700ms ease-in-out, transform 1200ms ease-in-out;
}
.scene-img.is-visible { opacity: 1; transform: scale(1); animation: sceneBob calc(7s * var(--spd)) ease-in-out infinite alternate; }
@keyframes sceneBob { from { transform: scale(1) translateY(0); } to { transform: scale(1.03) translateY(-6px); } }

/* sky decorations */
.scene-sky { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sun {
  position: absolute; top: 7%; right: 8%; width: 9%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFE9A8, var(--gold));
  box-shadow: 0 0 40px oklch(0.824 0.123 85 / 0.8);
  animation: sunPulse calc(5s * var(--spd)) ease-in-out infinite alternate;
}
@keyframes sunPulse { from { transform: scale(1); } to { transform: scale(1.12); } }
.cloud {
  position: absolute; height: 7%; aspect-ratio: 2.6; border-radius: 999px;
  background: oklch(0.99 0.005 200 / 0.9); filter: blur(1px);
  animation: cloudDrift calc(26s * var(--spd)) linear infinite;
}
.cloud.c1 { top: 10%; left: -18%; }
.cloud.c2 { top: 22%; left: -30%; animation-delay: calc(-9s * var(--spd)); transform: scale(0.7); }
.cloud.c3 { top: 4%; left: -22%; animation-delay: calc(-17s * var(--spd)); transform: scale(1.25); }
@keyframes cloudDrift { from { translate: 0 0; } to { translate: 1300% 0; } }
.twinkle {
  position: absolute; width: 2.2%; aspect-ratio: 1; opacity: 0.9;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle calc(2.4s * var(--spd)) ease-in-out infinite alternate;
}
.twinkle.t1 { top: 14%; left: 12%; }
.twinkle.t2 { top: 30%; left: 88%; animation-delay: calc(-0.8s * var(--spd)); }
.twinkle.t3 { top: 8%; left: 48%; animation-delay: calc(-1.6s * var(--spd)); }
.twinkle.t4 { top: 38%; left: 4%; animation-delay: calc(-0.4s * var(--spd)); }
@keyframes twinkle { from { transform: scale(0.6) rotate(0deg); opacity: 0.5; } to { transform: scale(1.2) rotate(25deg); opacity: 1; } }

/* dusk overlay for calm mode */
.scene-dusk {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, oklch(0.42 0.05 300 / 0.45), oklch(0.5 0.04 240 / 0.35));
  transition: opacity 600ms ease-in-out;
}

/* animated per-step overlays */
.ovl { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: none; }
.game[data-step="0"] .ovl-belly { display: block; }
.game[data-step="1"] .ovl-scent { display: block; }
.game[data-step="2"] .ovl-bubbles { display: block; }
.game[data-step="3"] .ovl-rings { display: block; }
.game[data-step="4"] .ovl-spark { display: block; }
.game.is-finished[data-mode="color"] .ovl-confetti { display: block; }

.belly-ring {
  position: absolute; left: 50%; top: 58%; width: 34%; aspect-ratio: 1; border-radius: 50%;
  border: 3px solid oklch(0.99 0.01 160 / 0.85); transform: translate(-50%, -50%);
  animation: bellyPulse calc(3s * var(--spd)) ease-in-out infinite;
}
.belly-ring.r2 { animation-delay: calc(1.5s * var(--spd)); }
@keyframes bellyPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.72); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.02); opacity: 0.25; }
}
.ovl-scent i {
  position: absolute; left: 42%; top: 52%; width: 2.4%; aspect-ratio: 1; border-radius: 50%;
  background: oklch(0.99 0.02 305 / 0.95); box-shadow: 0 0 10px oklch(0.85 0.1 305 / 0.9);
  animation: scentFloat calc(3.2s * var(--spd)) ease-in infinite;
}
.ovl-scent i:nth-child(2) { animation-delay: calc(0.6s * var(--spd)); }
.ovl-scent i { animation-delay: calc(0s * var(--spd)); }
.ovl-scent i:nth-child(2) { animation-delay: calc(0.7s * var(--spd)); }
.ovl-scent i:nth-child(3) { animation-delay: calc(1.3s * var(--spd)); }
.ovl-scent i:nth-child(4) { animation-delay: calc(1.9s * var(--spd)); }
.ovl-scent i:nth-child(5) { animation-delay: calc(2.5s * var(--spd)); }
@keyframes scentFloat {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(12vw, -14vh) scale(1.15); opacity: 0; }
}
.ovl-bubbles i {
  position: absolute; left: 52%; top: 46%; border-radius: 50%;
  border: 2px solid oklch(0.95 0.05 240 / 0.9);
  background: radial-gradient(circle at 32% 30%, oklch(0.99 0.03 240 / 0.85), oklch(0.85 0.08 300 / 0.25));
  animation: bubbleRise calc(4.5s * var(--spd)) ease-in infinite;
}
.ovl-bubbles i:nth-child(1) { width: 7%; aspect-ratio: 1; }
.ovl-bubbles i:nth-child(2) { width: 4.5%; aspect-ratio: 1; animation-delay: calc(1.1s * var(--spd)); }
.ovl-bubbles i:nth-child(3) { width: 3.2%; aspect-ratio: 1; animation-delay: calc(2.2s * var(--spd)); }
.ovl-bubbles i:nth-child(4) { width: 5.5%; aspect-ratio: 1; animation-delay: calc(3.2s * var(--spd)); }
@keyframes bubbleRise {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(6vw, -34vh) scale(1.25) rotate(12deg); opacity: 0; }
}
.ovl-rings i {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border-radius: 50%;
  border: 3px solid oklch(0.94 0.04 178 / 0.8); transform: translate(-50%, -50%) scale(0.3);
  animation: ringExpand calc(3s * var(--spd)) ease-out infinite;
}
.ovl-rings i:nth-child(2) { animation-delay: calc(1s * var(--spd)); }
.ovl-rings i:nth-child(3) { animation-delay: calc(2s * var(--spd)); }
@keyframes ringExpand {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
.ovl-spark i {
  position: absolute; width: 3%; aspect-ratio: 1; background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle calc(1.6s * var(--spd)) ease-in-out infinite alternate;
}
.ovl-spark i:nth-child(1) { top: 30%; left: 22%; }
.ovl-spark i:nth-child(2) { top: 24%; left: 62%; animation-delay: calc(0.5s * var(--spd)); }
.ovl-spark i:nth-child(3) { top: 48%; left: 80%; animation-delay: calc(1s * var(--spd)); }
.ovl-confetti i {
  position: absolute; top: -4%; width: 1.4%; aspect-ratio: 0.6; border-radius: 2px;
  animation: confettiFall calc(3.4s * var(--spd)) ease-in infinite;
}
.ovl-confetti i:nth-child(4n+1) { background: var(--coral); }
.ovl-confetti i:nth-child(4n+2) { background: var(--gold); }
.ovl-confetti i:nth-child(4n+3) { background: var(--violet); }
.ovl-confetti i:nth-child(4n) { background: var(--teal); }
.ovl-confetti i:nth-child(1) { left: 8%; animation-delay: 0s; }
.ovl-confetti i:nth-child(2) { left: 15%; animation-delay: 0.5s; }
.ovl-confetti i:nth-child(3) { left: 22%; animation-delay: 1.1s; }
.ovl-confetti i:nth-child(4) { left: 30%; animation-delay: 0.3s; }
.ovl-confetti i:nth-child(5) { left: 38%; animation-delay: 1.6s; }
.ovl-confetti i:nth-child(6) { left: 46%; animation-delay: 0.3s; }
.ovl-confetti i:nth-child(7) { left: 54%; animation-delay: 0.9s; }
.ovl-confetti i:nth-child(8) { left: 61%; animation-delay: 1.4s; }
.ovl-confetti i:nth-child(9) { left: 68%; animation-delay: 0.2s; }
.ovl-confetti i:nth-child(10) { left: 75%; animation-delay: 1.8s; }
.ovl-confetti i:nth-child(11) { left: 82%; animation-delay: 0.7s; }
.ovl-confetti i:nth-child(12) { left: 88%; animation-delay: 1.3s; }
.ovl-confetti i:nth-child(13) { left: 94%; animation-delay: 0.9s; }
.ovl-confetti i:nth-child(14) { left: 50%; animation-delay: 2.1s; }
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(540deg); opacity: 0.4; }
}

/* guided breathing widget */
.breath-guide {
  position: absolute; right: 4%; bottom: 5%; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}
.breath-circle {
  width: clamp(56px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, oklch(0.98 0.03 178 / 0.95), oklch(0.72 0.09 178 / 0.9));
  border: 3px solid oklch(0.99 0.01 160 / 0.9);
  box-shadow: 0 0 24px oklch(0.85 0.08 178 / 0.7);
  transition: transform 3s ease-in-out;
  transform: scale(1);
}
.breath-guide:not(.exhale) .breath-circle { transform: scale(1.45); }
.breath-label {
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: #fff;
  background: oklch(0.35 0.05 178 / 0.72); border-radius: 999px; padding: 3px 12px;
}

/* speech bubble */
.game-bubble {
  position: absolute; left: 4%; top: 5%; z-index: 6; max-width: min(320px, 46%);
  background: oklch(0.995 0.002 160 / 0.94); border: 2px solid var(--teal);
  border-radius: 18px 18px 18px 4px; padding: var(--space-3) var(--space-4);
  font-weight: 700; color: var(--teal-deep); margin: 0; box-shadow: var(--shadow-soft);
  transition: background-color 400ms ease-out, border-color 400ms ease-out;
}

/* HUD under the scene */
.game-hud { padding: var(--space-6) var(--space-8) var(--space-8); }
.game-hud h2 { margin-bottom: var(--space-2); }
.game-intro { color: var(--ink-soft); margin-bottom: var(--space-6); }
.game-trail { display: flex; align-items: center; gap: 0; margin-bottom: var(--space-6); }
.trail-dot {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2.5px solid var(--border); color: var(--ink-soft);
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  transition: background-color 250ms ease-out, border-color 250ms ease-out, transform 250ms ease-out;
}
.trail-link { flex: 1; height: 4px; background: var(--border); border-radius: 4px; position: relative; overflow: hidden; }
.trail-dot.done { background: var(--teal); border-color: var(--teal); color: #fff; }
.trail-dot.done + .trail-link::after {
  content: ''; position: absolute; inset: 0; background: var(--teal);
  animation: trailFill 500ms ease-out;
}
@keyframes trailFill { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.trail-dot.is-current {
  border-color: var(--coral); color: var(--coral); transform: scale(1.18);
  animation: dotBounce calc(1.2s * var(--spd)) ease-in-out infinite alternate;
}
@keyframes dotBounce { from { transform: scale(1.12); } to { transform: scale(1.28); } }
.trail-star {
  flex: none; width: 46px; height: 46px; color: var(--border);
  transition: color 400ms ease-out, transform 400ms ease-out;
}
.trail-star svg { width: 100%; height: 100%; }
.game.is-finished .trail-star {
  color: var(--gold); transform: rotate(18deg) scale(1.25);
  filter: drop-shadow(0 0 10px oklch(0.824 0.123 85 / 0.9));
}
.game-controls { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.demo-mode-toggle { display: inline-flex; border: 2px solid var(--teal); border-radius: 999px; overflow: hidden; margin-left: auto; }
.demo-mode-toggle button {
  border: 0; background: transparent; padding: var(--space-2) var(--space-4); font: inherit;
  font-weight: 700; color: var(--teal-deep); cursor: pointer; min-height: 44px;
}
.demo-mode-toggle button[aria-pressed="true"] { background: var(--teal); color: #fff; }

/* pause freezes every animation in the scene */
.game.is-paused .game-scene *, .game.is-paused .breath-guide, .game.is-paused .trail-dot {
  animation-play-state: paused !important;
}

/* --- Calm mode: a clearly different, quieter world --- */
.game[data-mode="calm"] { --spd: 2.6; }
.game[data-mode="calm"] .game-scene {
  background: linear-gradient(180deg, oklch(0.62 0.045 300) 0%, oklch(0.72 0.04 270) 55%, oklch(0.68 0.03 230) 100%);
}
.game[data-mode="calm"] .scene-img { filter: saturate(0.38) brightness(0.9); }
.game[data-mode="calm"] .scene-dusk { opacity: 1; }
.game[data-mode="calm"] .sun {
  background: radial-gradient(circle at 40% 40%, #F6F0E4, #D9D2C4);
  box-shadow: 0 0 30px oklch(0.9 0.02 90 / 0.5);
}
.game[data-mode="calm"] .twinkle, .game[data-mode="calm"] .ovl-confetti { display: none !important; }
.game[data-mode="calm"] .ovl-scent i, .game[data-mode="calm"] .ovl-spark i { opacity: 0.5; }
.game[data-mode="calm"] .game-bubble {
  background: oklch(0.93 0.012 270); border-color: oklch(0.6 0.04 280); color: oklch(0.42 0.03 280);
}
.game[data-mode="calm"] .trail-dot.is-current { border-color: var(--focus-blue); color: var(--focus-blue); animation: none; transform: scale(1.1); }
.game[data-mode="calm"] .breath-circle {
  background: radial-gradient(circle at 38% 35%, oklch(0.94 0.02 290 / 0.95), oklch(0.7 0.04 290 / 0.9));
  box-shadow: 0 0 18px oklch(0.8 0.03 290 / 0.6);
}

/* --- Adventure Book finale (open spread, badge collection) --- */
.book-scene { margin-top: var(--space-12); }
.book-scene h2 { text-align: center; }
.book {
  position: relative; width: min(560px, 92vw); aspect-ratio: 1.55; margin: var(--space-8) auto;
  perspective: 1600px;
}
.book-page {
  position: absolute; inset: 0; border-radius: 14px;
  transform-origin: left center; backface-visibility: hidden;
  transition: transform 1000ms cubic-bezier(0.3, 0.7, 0.3, 1);
  box-shadow: var(--shadow-lift);
}
.book-cover {
  z-index: 3; background: linear-gradient(160deg, var(--violet), oklch(0.4 0.1 305));
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  border: 3px solid oklch(0.824 0.123 85 / 0.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
  text-align: center; padding: var(--space-6);
}
.book-cover .book-star { width: 72px; height: 72px; color: var(--gold); }
.book-cover .book-star svg { width: 100%; height: 100%; }
.book-spread {
  z-index: 2; display: grid; grid-template-columns: 1fr 1fr;
  background: oklch(0.99 0.008 90); border: 1.5px solid var(--border);
  overflow: hidden;
}
.book-spread::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(90deg, transparent, oklch(0.283 0.032 178 / 0.18), transparent);
}
.spread-left, .spread-right {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-2); text-align: center; padding: var(--space-4);
}
.spread-left strong { font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--teal-deep); }
.spread-left span { color: var(--ink-soft); font-size: 0.92rem; }
.spread-title { font-family: var(--font-display); font-size: 1.02rem; }
.book-medal { width: clamp(72px, 22%, 110px); aspect-ratio: 1; }
.book-medal svg { width: 100%; height: 100%; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-2); }
.badge-slot {
  width: clamp(40px, 7vw, 56px); aspect-ratio: 1; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
}
.badge-slot.earned svg { width: 100%; height: 100%; }
.badge-slot.locked {
  border: 2px dashed var(--border); color: var(--ink-soft); background: var(--canvas);
}
.book-back { z-index: 1; background: oklch(0.45 0.09 305); }
.book.open .book-cover { transform: rotateY(-165deg); }
.book-note { max-width: 52ch; margin-inline: auto; color: var(--ink-soft); }
.center-actions { justify-content: center; }

/* --- Celebration medal pop --- */
.medal-pop {
  position: absolute; inset: 0; z-index: 7; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  background: oklch(0.99 0.01 90 / 0.55); backdrop-filter: blur(2px);
  transition: opacity 500ms ease-out;
}
.medal-pop svg { width: clamp(110px, 26%, 170px); height: auto; filter: drop-shadow(0 10px 22px oklch(0.824 0.123 85 / 0.5)); }
.medal-pop strong {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  color: var(--teal-deep); text-shadow: 0 2px 0 #fff;
}
.game.is-finished .medal-pop { display: flex; animation: medalIn 600ms cubic-bezier(0.2, 1.4, 0.4, 1); }
.game.show-book .medal-pop { opacity: 0; pointer-events: none; }
@keyframes medalIn { 0% { transform: scale(0.3) rotate(-12deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }

/* --- Demo: parent screen (phone mock + Diana the in-app guide) --- */
.parent-demo { display: grid; grid-template-columns: minmax(320px, 400px) 1fr; gap: var(--space-12); align-items: center; }
.diana-card {
  display: flex; align-items: flex-end; gap: var(--space-2);
  background: linear-gradient(150deg, var(--violet-soft), #fff 70%);
  border: 1.5px solid var(--border); border-radius: var(--radius-m);
  padding: var(--space-3) var(--space-3) 0; overflow: hidden;
}
.diana-card img {
  flex: none; width: 34%; height: auto; align-self: flex-end;
  filter: drop-shadow(0 6px 10px oklch(0.283 0.032 178 / 0.15));
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}
.diana-card img.swap { opacity: 0; transform: translateY(6px); }
.diana-chat { flex: 1; padding-bottom: var(--space-3); }
.diana-bubble {
  position: relative; margin: 0 0 var(--space-2);
  background: #fff; border: 2px solid var(--violet);
  border-radius: 14px 14px 14px 4px; padding: var(--space-2) var(--space-3);
  font-size: 0.82rem; font-weight: 700; color: var(--violet-deep);
  box-shadow: var(--shadow-soft);
}
.diana-bubble.pop { animation: bubblePop 300ms ease-out; }
@keyframes bubblePop { 0% { transform: scale(0.9); opacity: 0.4; } 100% { transform: scale(1); opacity: 1; } }
.diana-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.diana-chips button {
  border: 1.5px solid var(--violet); background: #fff; color: var(--violet-deep);
  font: inherit; font-size: 0.72rem; font-weight: 800; border-radius: 999px;
  padding: 4px 10px; cursor: pointer; min-height: 32px;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.diana-chips button:hover { background: var(--violet); color: #fff; }
.phone {
  position: relative; border-radius: 44px; padding: 12px;
  background: oklch(0.3 0.02 178); box-shadow: var(--shadow-lift);
}
.parent-stage .phone { flex: 1 1 58%; }
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 24px; background: oklch(0.3 0.02 178); border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-screen {
  background: var(--canvas); border-radius: 34px; padding: var(--space-8) var(--space-4) var(--space-4);
  display: grid; gap: var(--space-3); min-height: 480px; align-content: start;
}
.phone-head { display: flex; align-items: center; gap: var(--space-2); padding-inline: var(--space-2); }
.phone-head strong { font-family: var(--font-display); font-size: 1.2rem; margin-right: auto; }
.phone-stars {
  font-size: 0.8rem; font-weight: 800; color: oklch(0.55 0.12 80);
  background: var(--gold-soft); border-radius: 999px; padding: 3px 10px;
}
.phone-badge {
  font-size: 0.72rem; font-weight: 800; color: var(--teal-deep); background: var(--calm);
  border-radius: 999px; padding: 3px 10px; text-transform: uppercase; letter-spacing: 0.05em;
}
.plan-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-m);
  padding: var(--space-3) var(--space-4); text-align: left;
}
details.plan-card summary {
  cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-2);
  align-items: center;
}
.plan-card summary::-webkit-details-marker { display: none; }
.plan-chip {
  grid-column: 1 / -1; justify-self: start; font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; border-radius: 999px; padding: 2px 9px;
}
.plan-chip.teal { background: var(--calm); color: var(--teal-deep); }
.plan-chip.violet { background: var(--violet-soft); color: var(--violet); }
.plan-name { font-family: var(--font-display); font-weight: 800; font-size: 0.98rem; }
.plan-meta { font-size: 0.8rem; color: var(--ink-soft); font-weight: 700; }
.plan-body { margin-top: var(--space-3); border-top: 1px dashed var(--border); padding-top: var(--space-3); }
.plan-steps { margin: 0 0 var(--space-3); padding-left: var(--space-6); font-size: 0.88rem; color: var(--ink-soft); display: grid; gap: 2px; }
.plan-script {
  background: var(--calm); border-radius: var(--radius-s); padding: var(--space-2) var(--space-3);
  font-size: 0.88rem; color: var(--teal-deep); margin: 0 0 var(--space-3);
}
.plan-script span { display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.plan-note { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 var(--space-3); }
.plan-send {
  display: inline-block; font-size: 0.82rem; font-weight: 800; color: #fff; background: var(--teal);
  border-radius: 999px; padding: 6px 14px;
}
.checkin { text-align: center; }
.progress-card { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.progress-ring { position: relative; flex: none; width: 64px; height: 64px; }
.progress-ring svg { width: 100%; height: 100%; }
.progress-ring strong {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 0.95rem; color: var(--teal-deep);
}
.progress-title { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; margin: 0; }
.progress-sub { font-size: 0.78rem; color: var(--ink-soft); margin: 0 0 6px; }
.progress-badges { display: flex; gap: 5px; }
.mini-badge { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px oklch(0.283 0.032 178 / 0.2); }
.mini-badge.gold { background: var(--gold); }
.mini-badge.violet { background: var(--violet); }
.mini-badge.teal { background: var(--turquoise); }
.mini-badge.more { background: var(--calm); color: var(--teal-deep); font-size: 0.6rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.checkin-q { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; margin-bottom: var(--space-2); }
.checkin-btns { display: flex; justify-content: center; gap: var(--space-3); }
.checkin-btns button {
  font-size: 1.6rem; background: var(--surface); border: 2px solid var(--border); border-radius: 50%;
  width: 52px; height: 52px; cursor: pointer; transition: transform 150ms ease-out, border-color 150ms ease-out;
}
.checkin-btns button:hover { transform: scale(1.1); }
.checkin-btns button.picked { border-color: var(--teal); transform: scale(1.15); background: var(--calm); }
.checkin-thanks { font-size: 0.85rem; color: var(--teal-deep); font-weight: 700; margin: var(--space-2) 0 0; }
.parent-side h2 { margin-bottom: var(--space-3); }
.parent-side p { color: var(--ink-soft); margin-bottom: var(--space-6); }

/* --- Legal page --- */
.legal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); max-width: 760px; }
.legal-list li { border: 1.5px solid var(--border); border-radius: var(--radius-m); background: var(--surface); }
.legal-list a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-6); text-decoration: none; color: var(--ink); font-weight: 600;
}
.legal-list .doc-status {
  flex: none; font-size: 0.8rem; font-weight: 700; color: oklch(0.55 0.1 80);
  background: var(--gold-soft); border-radius: 999px; padding: 3px 10px;
}

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: var(--space-12) 0 var(--space-6); margin-top: var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); margin-bottom: var(--space-8); }
.footer-brand { font-size: 1.2rem; margin-bottom: var(--space-3); }
.footer-mission { color: var(--ink-soft); font-size: 0.95rem; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; gap: var(--space-8); }
.footer-links li { margin-bottom: var(--space-2); break-inside: avoid; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer-links a:hover { color: var(--teal-deep); text-decoration: underline; }
.footer-note { border-top: 1px solid var(--border); padding-top: var(--space-6); }
.footer-note p { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: var(--space-2); max-width: none; }
.footer-credit { font-weight: 700; color: var(--ink) !important; }
.footer-fine { font-size: 0.8rem; }

/* --- Root redirect page --- */
.lang-picker { min-height: 100dvh; display: grid; place-items: center; padding: var(--space-6); }
.lang-picker-card { text-align: center; max-width: 520px; }
.lang-picker-card ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; max-width: none; }
.lang-picker-card a {
  display: inline-block; padding: var(--space-3) var(--space-6); border: 1.5px solid var(--border);
  border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink); background: var(--surface);
  min-width: 130px;
}
.lang-picker-card a:hover { border-color: var(--teal); color: var(--teal-deep); }

/* --- Plain check list --- */
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); max-width: 720px; }
.plain-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); align-items: start; }
.plain-list svg { color: var(--teal); margin-top: 3px; }

/* --- Legal doc rows --- */
.legal-doc { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); }
.legal-doc-body { font-weight: 400; color: var(--ink-soft); }

/* --- Utility --- */
.center { text-align: center; }
.mt-8 { margin-top: var(--space-8); }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero { padding: var(--space-8) 0; }
  .hero-stage { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .parent-demo { grid-template-columns: 1fr; }
  .phone { max-width: 380px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: var(--space-4); }
  .header-inner { gap: var(--space-3); }
  .brand-tag { display: none; }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .nav-toggle { padding: var(--space-2) var(--space-3); }
  .lang-select { padding: 4px 8px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--space-6) var(--space-6); flex-direction: column; gap: var(--space-1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: var(--space-3) var(--space-4); font-size: 1.05rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .compare { font-size: 0.9rem; }
  .compare th, .compare td { padding: var(--space-2) var(--space-3); }
  .section { padding: var(--space-12) 0; }
  .game-hud { padding: var(--space-4) var(--space-4) var(--space-6); }
  .game-bubble { max-width: 62%; font-size: 0.85rem; }
  .demo-mode-toggle { margin-left: 0; }
  .trail-dot { width: 32px; height: 32px; font-size: 0.85rem; }
  .trail-star { width: 38px; height: 38px; }
  .demo-tabs button { flex: 1; padding-inline: var(--space-3); }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
