/* ==========================================================================
   AhaMind promo site · design system ported 1:1 from the iOS app
   Source of truth: ios/Brainova/Core/DesignSystem/DesignSystem.swift ("Playful")
   White canvas, one accent, domain hues for content, 3D buttons, 2px strokes.
   ========================================================================== */

/* ---------- Fonts (self-hosted Nunito, OFL. CJK falls back to system) ----- */
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --canvas: #FFFFFF;
  --soft-bg: #F7F7F7;
  --border: #E5E5E5;
  --ink: #4B4B4B;
  --ink-2: #777777;
  --ink-3: #AFAFAF;

  --green: #58CC02;  --green-edge: #58A700;  --green-soft: #D7FFB2;
  --blue: #1CB0F6;   --blue-edge: #1899D6;   --blue-soft: #DDF4FF;
  --red: #FF4B4B;    --red-edge: #EA2B2B;
  --yellow: #FFC800; --yellow-edge: #E5A400; --yellow-soft: #FFF4CC;
  --orange: #FF9600; --orange-edge: #E08600; --orange-soft: #FFE7C2;
  --purple: #CE82FF; --purple-edge: #A56AD4; --purple-soft: #F1E3FF;
  --teal: #00C2D1;

  /* App icon navy (science sections) */
  --navy: #17546F;
  --navy-deep: #0F3D52;
  --navy-ink: #CFE8F4;

  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  html[lang='zh'] { --font: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif; }

  --r-card: 16px;
  --r-big: 24px;
  --depth: 4px;
  --snappy: cubic-bezier(.3, .7, .4, 1);
  --bouncy: cubic-bezier(.34, 1.56, .64, 1);
  --fluid: cubic-bezier(.32, .72, 0, 1);

  --container: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; color: var(--ink); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.lede { color: var(--ink-2); font-size: 17px; max-width: 60ch; }

/* ---------- Eyebrow chip (used sparingly: max 4 on the page) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--soft-bg);
  color: var(--ink-2);
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.eyebrow--dark { background: rgba(255,255,255,.12); color: #A8D8EC; }
.eyebrow--dark::before { background: var(--yellow); }

/* ---------- 3D buttons: flat face + darker bottom edge, the app's signature - */
.btn3d {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-card);
  background: var(--green);
  color: #fff;
  font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 var(--depth) 0 var(--green-edge);
  transition: transform .12s var(--snappy), box-shadow .12s var(--snappy), opacity .12s;
  white-space: nowrap;
}
.btn3d:hover { filter: brightness(1.04); }
.btn3d:active { transform: translateY(var(--depth)); box-shadow: 0 0 0 var(--green-edge); }
.btn3d:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}
.btn3d--blue { background: var(--blue); box-shadow: 0 var(--depth) 0 var(--blue-edge); }
.btn3d--blue:active { box-shadow: 0 0 0 var(--blue-edge); }
.btn3d--yellow { background: var(--yellow); box-shadow: 0 var(--depth) 0 var(--yellow-edge); color: var(--ink); }
.btn3d--yellow:active { box-shadow: 0 0 0 var(--yellow-edge); }
.btn3d--bordered {
  background: #fff; color: var(--blue);
  border: 2px solid var(--border);
  box-shadow: 0 var(--depth) 0 var(--border);
}
.btn3d--bordered:active { box-shadow: 0 0 0 var(--border); }
.btn3d--lg { padding: 17px 30px; font-size: 16px; }
.btn3d .icon { font-size: 20px; }
.btn3d--navy { background: #fff; color: var(--navy); box-shadow: 0 var(--depth) 0 rgba(0,0,0,.28); }
.btn3d--navy:active { box-shadow: 0 0 0 rgba(0,0,0,.28); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--r-card);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.brand .brand-icon { width: 34px; height: 34px; border-radius: 8px; }
.brand .brand-mark { height: 26px; width: auto; }
.footer .brand .brand-mark { height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-weight: 700; font-size: 15px; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; font-weight: 800; font-size: 13px; border: 2px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 5px 12px; color: var(--ink-3); }
.lang-switch a[aria-current] { background: var(--soft-bg); color: var(--ink); }
.nav .btn3d { padding: 10px 18px; font-size: 13px; }
.nav-burger { display: none; font-size: 26px; line-height: 1; padding: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 420px at 82% 8%, var(--green-soft) 0%, transparent 62%),
    radial-gradient(420px 380px at 4% 78%, var(--purple-soft) 0%, transparent 60%);
  opacity: .55;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 72px;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 900; letter-spacing: -0.025em;
  margin: 18px 0 18px;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lede { font-size: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* Phone with a real component preview of the Today screen */
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone {
  width: 320px; border-radius: 44px;
  border: 3px solid #3a3a3a;
  background: var(--canvas);
  box-shadow: 0 24px 60px rgba(75,75,75,.18), 0 4px 0 #2c2c2c;
  overflow: hidden;
  position: relative;
}
.phone::after { /* dynamic island */
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; border-radius: 999px; background: #1c1c1e; z-index: 3;
}
.screen { padding: 52px 16px 12px; display: grid; gap: 12px; background: var(--canvas); }
.sc-top { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.sc-hello { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.sc-date { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.sc-streak {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange-edge);
  font-size: 13px; font-weight: 800;
}
.sc-streak .icon { color: var(--orange); }
.sc-ba { border: 2px solid var(--border); border-radius: var(--r-big); padding: 16px; text-align: center; position: relative; overflow: hidden; }
.sc-ba::before { content: ''; position: absolute; inset: 0 0 55% 0; background: radial-gradient(200px 90px at 50% 0%, var(--purple-soft), transparent 70%); }
.sc-ba-label { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); position: relative; }
.sc-ba-num { font-size: 58px; font-weight: 900; line-height: 1.05; color: var(--ink); position: relative; }
.sc-ba-num small { font-size: 16px; font-weight: 800; color: var(--ink-3); margin-left: 2px; }
.sc-ba-sub { font-size: 12px; font-weight: 700; color: var(--purple-edge); position: relative; }
.sc-coach { display: flex; gap: 10px; align-items: flex-start; }
.sc-coach img { width: 34px; height: 34px; }
.sc-bubble {
  flex: 1; background: #fff; border: 2px solid var(--border);
  border-radius: 4px 14px 14px 14px; padding: 9px 12px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.45;
}
.sc-bubble strong { color: var(--ink); }
.rx { display: grid; gap: 8px; }
.rx-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.rx-track { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; }
.rx-fill { height: 100%; width: 66%; border-radius: 999px; background: var(--green); }
.rx-game {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--border); border-radius: 14px; padding: 9px 12px;
}
.rx-game .g-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 17px; flex: none; }
.rx-game b { font-size: 13.5px; display: block; line-height: 1.2; }
.rx-game span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.rx-game .icon { margin-left: auto; color: var(--ink-3); font-size: 18px; }
.sc-tabs { display: flex; justify-content: space-around; border-top: 2px solid var(--border); padding: 10px 4px 16px; margin-top: 2px; }
.sc-tab { display: grid; justify-items: center; gap: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; color: var(--ink-3); }
.sc-tab .icon { font-size: 20px; }
.sc-tab.on { color: var(--green); }
.float-chip {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 2px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 800; color: var(--ink);
  box-shadow: 0 3px 0 var(--border);
}
.float-chip .icon { font-size: 16px; }
.fc-1 { top: 12%; left: -4%; color: var(--orange-edge); } .fc-1 .icon { color: var(--orange); }
.fc-2 { bottom: 16%; right: -6%; color: var(--blue-edge); } .fc-2 .icon { color: var(--blue); }

/* ---------- Facts band ---------- */
.facts { border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); background: var(--soft-bg); }
.facts-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 24px; text-align: center; }
.fact b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; color: var(--ink); line-height: 1.1; }
.fact:nth-child(1) b { color: var(--green-edge); }
.fact:nth-child(2) b { color: var(--purple-edge); }
.fact:nth-child(3) b { color: var(--blue-edge); }
.fact:nth-child(4) b { color: var(--orange-edge); }
.fact span { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head .lede { font-size: 17px; }

/* ---------- Domains ---------- */
.domains-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.domain {
  border-radius: var(--r-big); padding: 22px 18px; border: 2px solid transparent;
  display: grid; gap: 10px; align-content: start; min-height: 240px;
  transition: transform .18s var(--snappy), box-shadow .18s var(--snappy);
}
.domain:hover { transform: translateY(-5px); box-shadow: 0 5px 0 var(--d-edge); border-color: var(--d-edge); }
.domain .d-ic {
  width: 46px; height: 46px; border-radius: 15px; background: var(--d-base); color: #fff;
  display: grid; place-items: center; font-size: 24px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.14);
}
.domain h3 { font-size: 19px; }
.domain p { font-size: 13.5px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.domain .d-games { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--d-edge); margin-top: auto; }

/* ---------- Games marquee ---------- */
.games { background: var(--soft-bg); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); overflow: hidden; }
.marquee { position: relative; }
.marquee-track { display: flex; gap: 18px; width: max-content; padding: 8px 0 22px; animation: scroll 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee .fade { position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.marquee .fade-l { left: 0; background: linear-gradient(90deg, var(--soft-bg), transparent); }
.marquee .fade-r { right: 0; background: linear-gradient(-90deg, var(--soft-bg), transparent); }
.gtile { width: 224px; flex: none; padding: 14px; display: grid; gap: 12px; justify-items: center; }
.gtile .board { height: 128px; display: grid; place-items: center; }
.gtile b { font-size: 14.5px; }
.gtile span { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: -8px; }
.game-points { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.gp { display: flex; align-items: flex-start; gap: 12px; max-width: 300px; }
.gp .icon { font-size: 26px; margin-top: 2px; }
.gp b { display: block; font-size: 15.5px; }
.gp span { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }

/* mini boards (real component previews of in-app games) */
.b-sudoku { display: grid; grid-template-columns: repeat(3, 26px); gap: 3px; }
.b-sudoku i { height: 26px; border-radius: 5px; background: var(--blue-soft); }
.b-sudoku i.n { background: var(--blue); color: #fff; font-style: normal; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.b-schulte { display: grid; grid-template-columns: repeat(5, 24px); gap: 4px; }
.b-schulte i { height: 24px; border-radius: 6px; background: var(--orange-soft); font-style: normal; font-weight: 800; font-size: 11px; color: var(--orange-edge); display: grid; place-items: center; }
.b-schulte i.hot { background: var(--orange); color: #fff; }
.b-mines { display: grid; grid-template-columns: repeat(4, 26px); gap: 3px; }
.b-mines i { height: 26px; border-radius: 5px; background: var(--green-soft); }
.b-mines i.dug { background: #fff; border: 1.5px solid var(--border); font-style: normal; font-weight: 800; font-size: 12px; display: grid; place-items: center; color: var(--blue-edge); }
.b-mines i.boom { background: var(--red); }
.b-flow { display: grid; grid-template-columns: repeat(4, 26px); gap: 4px; }
.b-flow i { height: 26px; border-radius: 6px; background: var(--soft-bg); font-style: normal; display: grid; place-items: center; font-size: 12px; }
.b-flow i.p1 { background: var(--red); border-radius: 13px; }
.b-flow i.p2 { background: var(--yellow); border-radius: 13px; }
.b-hanoi { display: flex; gap: 16px; align-items: flex-end; height: 96px; }
.b-hanoi .rod { width: 5px; height: 76px; background: var(--ink-3); border-radius: 3px; position: relative; }
.b-hanoi .rod::after { content: ''; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); width: 58px; height: 5px; border-radius: 3px; background: var(--ink-3); }
.b-hanoi .disc { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 12px; border-radius: 6px; }
.b-hanoi .d1 { width: 26px; background: var(--red); }
.b-hanoi .d2 { width: 40px; background: var(--orange); }
.b-hanoi .d3 { width: 54px; background: var(--green); }
.b-memory { display: grid; grid-template-columns: repeat(3, 34px); gap: 6px; }
.b-memory i { height: 34px; border-radius: 8px; background: var(--purple); font-style: normal; display: grid; place-items: center; color: #fff; font-size: 15px; }
.b-memory i.up { background: var(--purple-soft); color: var(--purple-edge); }
.b-ball { display: flex; gap: 12px; align-items: flex-end; height: 96px; }
.b-ball .tube { width: 26px; height: 88px; border: 3px solid var(--border); border-top: 0; border-radius: 0 0 13px 13px; display: flex; flex-direction: column-reverse; gap: 3px; padding: 3px; }
.b-ball i { height: 15px; border-radius: 50%; font-style: normal; }
.b-nonogram { display: grid; grid-template-columns: repeat(5, 20px); gap: 3px; }
.b-nonogram i { height: 20px; border-radius: 4px; background: #fff; border: 1.5px solid var(--border); }
.b-nonogram i.x { background: var(--teal); border-color: var(--teal); }
.b-code { display: grid; gap: 6px; }
.b-code .row { display: flex; gap: 5px; align-items: center; }
.b-code .row i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--border); font-style: normal; }
.b-code .row i.g { background: var(--green); border-color: var(--green); }
.b-code .row i.o { background: var(--orange); border-color: var(--orange); }
.b-code .row em { font-style: normal; font-weight: 800; font-size: 11px; color: var(--ink-3); margin-left: 4px; }
.b-code .peg { margin-left: auto; display: flex; gap: 3px; }
.b-code .peg i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.b-code .peg i.hit { background: var(--green); }

/* ---------- Aha AI ---------- */
.aha-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.aha-mascot { position: relative; display: grid; place-items: center; }
.aha-mascot::before {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--blue-soft), transparent 68%);
}
.aha-mascot img { width: min(320px, 80%); position: relative; filter: drop-shadow(0 14px 24px rgba(27,94,123,.16)); }
.aha-bubbles { display: grid; gap: 16px; }
.bubble {
  position: relative; background: #fff; border: 2px solid var(--border);
  border-radius: 16px; padding: 14px 18px;
  font-size: 15.5px; font-weight: 600; max-width: 46ch;
}
.bubble::before {
  content: ''; position: absolute; top: -9px; left: 28px;
  border: 8px solid transparent; border-top: 0;
  border-bottom: 9px solid var(--border);
}
.bubble::after {
  content: ''; position: absolute; top: -5px; left: 30px;
  border: 6px solid transparent; border-top: 0;
  border-bottom: 7px solid #fff;
}
.bubble--user { justify-self: end; background: var(--blue-soft); border-color: var(--blue-edge); }
.bubble--user::before { border-bottom-color: var(--blue-edge); left: auto; right: 28px; }
.bubble--user::after { border-bottom-color: var(--blue-soft); left: auto; right: 30px; }
.bubble .who { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.bubble--user .who { color: var(--blue-edge); }
.aha-feats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.feat-chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 2px solid var(--border); border-radius: 999px; padding: 9px 16px;
  font-size: 13.5px; font-weight: 800; background: #fff;
}
.feat-chip .icon { font-size: 16px; }
.aha-privacy { margin-top: 22px; display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--ink-2); font-size: 14.5px; }
.aha-privacy .icon { color: var(--green); font-size: 20px; }

/* ---------- Science (navy color-block, the one theme flip) ---------- */
.science { background: var(--navy); color: #EAF5FB; position: relative; overflow: hidden; }
.science::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 420px at 88% 0%, rgba(28,176,246,.25), transparent 60%),
              radial-gradient(480px 380px at 6% 100%, rgba(206,130,255,.16), transparent 60%);
}
.science .sec-head h2 { color: #fff; }
.science .lede { color: var(--navy-ink); }
.sci-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.sci-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pillar { background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.14); border-radius: var(--r-card); padding: 20px; }
.pillar .icon { font-size: 26px; color: var(--yellow); }
.pillar h3 { color: #fff; font-size: 16.5px; margin: 10px 0 6px; }
.pillar p { font-size: 13.5px; color: var(--navy-ink); font-weight: 600; line-height: 1.55; }
.sci-viz { display: grid; gap: 18px; justify-items: center; }
.radar-card { background: #fff; border-radius: var(--r-big); padding: 22px 26px 14px; color: var(--ink); width: min(360px, 100%); }
.radar-card h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.radar-legend { display: flex; justify-content: center; gap: 14px; padding: 8px 0 10px; flex-wrap: wrap; }
.radar-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; }
.radar-legend i { width: 9px; height: 9px; border-radius: 3px; }
.sci-fine { margin-top: 40px; font-size: 12.5px; color: rgba(234,245,251,.62); font-weight: 600; }
.sci-link { margin-top: 26px; }

/* ---------- Streak / share ---------- */
.streak { background: var(--yellow-soft); }
.streak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.streak-stats { display: flex; gap: 14px; margin: 28px 0 6px; flex-wrap: wrap; }
.st-stat { background: #fff; border: 2px solid var(--border); border-radius: var(--r-card); padding: 16px 20px; min-width: 130px; }
.st-stat b { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 900; }
.st-stat .icon { font-size: 26px; }
.st-stat .flame { color: var(--orange); }
.st-stat .ice { color: var(--blue); }
.st-stat span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.share-card {
  width: min(340px, 100%); margin: 0 auto;
  background: var(--navy); color: #EAF5FB;
  border-radius: var(--r-big); padding: 26px;
  box-shadow: 0 18px 44px rgba(15,61,82,.35);
  transform: rotate(2deg);
}
.share-brand { font-size: 10.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #9CC9DE; }
.share-num { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 2px; }
.share-num b { font-size: 64px; font-weight: 900; line-height: 1; color: #fff; }
.share-num span { font-size: 14px; font-weight: 700; color: #9CC9DE; }
.share-verdict { display: inline-flex; align-items: center; gap: 7px; background: var(--green); color: #fff; font-size: 12.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.share-tag { margin-top: 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #9CC9DE; border-top: 1px solid rgba(255,255,255,.16); padding-top: 12px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { padding: 30px 28px; display: flex; flex-direction: column; gap: 0; position: relative; }
.plan--pro { border-color: var(--green); box-shadow: 0 5px 0 var(--green-edge); transform: translateY(-8px); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: var(--ink); font-size: 11.5px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 0 var(--yellow-edge); white-space: nowrap;
}
.plan h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.plan .price { margin: 12px 0 2px; display: flex; align-items: baseline; gap: 7px; }
.plan .price b { font-size: 42px; font-weight: 900; letter-spacing: -0.02em; }
.plan .price span { font-weight: 700; color: var(--ink-3); font-size: 14px; }
.plan .bill-note { font-size: 12.5px; color: var(--ink-3); font-weight: 700; min-height: 18px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.plan li .icon { color: var(--green); font-size: 17px; margin-top: 3px; }
.plan li.dim { opacity: .55; }
.plan li.dim .icon { color: var(--ink-3); }
.plan .btn3d { margin-top: auto; width: 100%; }
.pricing-note { text-align: center; margin-top: 26px; font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details { border: 2px solid var(--border); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.faq-list summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 800; font-size: 16px; cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { font-size: 18px; color: var(--ink-3); transition: transform .2s var(--snappy); flex: none; }
.faq-list details[open] summary .icon { transform: rotate(45deg); color: var(--green); }
.faq-list details p { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; max-width: 60ch; }

/* ---------- Final CTA + footer ---------- */
.finale { background: var(--navy-deep); color: #EAF5FB; text-align: center; padding: 96px 0 72px; position: relative; overflow: hidden; }
.finale::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 300px at 50% 0%, rgba(88,204,2,.18), transparent 65%);
}
.finale img.app-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.finale h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); max-width: 18ch; margin: 0 auto 14px; }
.finale p { color: var(--navy-ink); font-weight: 600; margin-bottom: 32px; }
.store-btn { display: inline-flex; }
.footer { background: var(--navy-deep); color: #9CC9DE; border-top: 2px solid rgba(255,255,255,.1); padding: 52px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { color: #fff; }
.footer .brand img { border-radius: 8px; }
.footer-about { font-size: 13.5px; margin-top: 12px; max-width: 30ch; font-weight: 600; }
.footer h4 { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer a { font-size: 14px; font-weight: 600; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(156,201,222,.75); }

/* ---------- Mini-game modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .2s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(43,43,43,.55); }
.modal-card {
  position: relative; width: min(430px, 100%);
  background: #fff; border-radius: var(--r-big); padding: 30px 28px;
  text-align: center; transform: translateY(14px) scale(.97); transition: transform .25s var(--bouncy);
  border: 2px solid var(--border);
}
.modal.open .modal-card { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; color: var(--ink-2); }
.modal-close .icon { font-size: 15px; }
.modal-kicker { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.modal h3 { font-size: 24px; margin: 8px 0 4px; }
.modal .sub { color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.schulte { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 22px 0 6px; }
.schulte button {
  aspect-ratio: 1; border-radius: 12px; background: var(--orange-soft);
  font-weight: 900; font-size: 19px; color: var(--orange-edge);
  border: 2px solid transparent;
  transition: transform .1s var(--snappy), background .15s, color .15s;
}
.schulte button:not(:disabled):hover { background: var(--orange); color: #fff; }
.schulte button.done { background: var(--green-soft); color: var(--green-edge); }
.schulte button.wrong { background: var(--red); color: #fff; animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px);} 75% { transform: translateX(4px);} }
.mg-hud { display: flex; justify-content: space-between; font-weight: 800; font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.mg-hud b { font-variant-numeric: tabular-nums; }
.mg-result .big { font-size: 76px; font-weight: 900; line-height: 1.05; color: var(--ink); }
.mg-result .big small { font-size: 18px; color: var(--ink-3); font-weight: 800; }
.mg-result .verdict { display: inline-flex; margin: 6px 0 14px; }
.mg-fine { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: 14px; }

/* ---------- Reveal choreography (mirrors StaggerIn) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--fluid), transform .55s var(--fluid); transition-delay: calc(var(--i, 0) * 60ms); }
  .rv.in { opacity: 1; transform: none; }
  .pop { opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--bouncy); }
  .pop.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 44px; }
  .hero-copy { text-align: center; }
  .hero-ctas { justify-content: center; }
  .fc-1 { left: 4%; } .fc-2 { right: 4%; }
  .domains-grid { grid-template-columns: repeat(3, 1fr); }
  .aha-grid, .sci-grid, .streak-grid { grid-template-columns: 1fr; gap: 40px; }
  .aha-mascot { order: -1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan--pro { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .nav-links { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav .btn3d { display: none; }
  .facts-inner { grid-template-columns: 1fr 1fr; gap: 26px 10px; }
  .domains-grid { grid-template-columns: 1fr 1fr; }
  .domain { min-height: 0; }
  .sci-pillars { grid-template-columns: 1fr; }
  .game-points { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .hero h1 br { display: none; }
  .hero-ctas .btn3d { flex: 1 1 100%; padding-left: 16px; padding-right: 16px; font-size: 14px; }
  .finale .btn3d { font-size: 14px; padding-left: 18px; padding-right: 18px; }
  .float-chip { display: none; }
  .phone { width: 280px; }
}

/* ---------- Document pages (privacy / terms / methodology) ---------- */
.doc-nav { border-bottom: 2px solid var(--border); }
.doc-nav .nav-inner { height: 64px; }
.doc { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); margin: 10px 0 6px; }
.doc .doc-meta { font-size: 13.5px; color: var(--ink-3); font-weight: 700; margin-bottom: 30px; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; }
.doc p, .doc li { font-size: 15.5px; color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; margin: 10px 0; }
.doc strong { color: var(--ink); }
.doc .draft-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--yellow-soft); border: 2px solid var(--yellow-edge);
  border-radius: var(--r-card); padding: 14px 18px; margin-bottom: 30px;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.doc .draft-note .icon { color: var(--orange-edge); font-size: 20px; margin-top: 2px; }
.doc-footer { margin-top: 48px; padding-top: 20px; border-top: 2px solid var(--border); font-size: 14px; font-weight: 700; }
.doc-footer a { color: var(--blue-edge); }
