/* ============================================================
   Story Voyagers — Marketing Website
   Brand system mirrors the app: constants/theme.ts + marketing/README.md
   Cosmic purple #9333EA · Voyager pink #EC4899 · Adventure orange #FB923C
   Ink navy #14213D · Warm cream #FFF8EE · Success green #22C55E
   ============================================================ */

:root {
  --purple: #9333ea;
  --purple-light: #a855f7;
  --purple-dark: #7e22ce;
  --pink: #ec4899;
  --pink-light: #f9a8d4;
  --orange: #fb923c;
  --orange-light: #fed7aa;
  --amber: #f59e0b;
  --green: #22c55e;
  --green-light: #bbf7d0;
  --navy: #14213d;
  --cream: #fff8ee;
  --cream-deep: #fdeed7;
  --white: #ffffff;
  --muted: #64748b;
  --border: #e2e8f0;

  --font-head: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', 'Open Sans', 'Segoe UI', sans-serif;

  --outline: 3px solid var(--navy);
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-soft: 0 2px 8px rgba(20, 33, 61, 0.06);
  --shadow-card: 0 6px 0 rgba(20, 33, 61, 1);
  --shadow-card-sm: 0 4px 0 rgba(20, 33, 61, 1);
  --shadow-float: 0 12px 32px rgba(147, 51, 234, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- dino mouse cursor ----------
   The logo dino replaces the pointer (32px, standard cursor size),
   generated from the mascot art with a transparent background.
   While the mouse button is held, main.js adds .dino-touch to <body>,
   swapping to the arms-up, big-smile pose. */
html, body, body * { cursor: url("../assets/brand/cursor-dino.png") 2 2, auto !important; }
body.dino-touch, body.dino-touch * { cursor: url("../assets/brand/cursor-dino-up.png") 2 2, auto !important; }
input[type="email"], input[type="text"], textarea { cursor: text !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.55rem); }

p { color: #3c4763; }

a { color: var(--purple); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }

/* ---------- decorative helpers ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  background: #f3e8ff;
  border: 2px solid var(--purple);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}

.eyebrow.pink { color: var(--pink); background: #fce7f3; border-color: var(--pink); }
.eyebrow.orange { color: #c2570b; background: #ffedd5; border-color: var(--orange); }
.eyebrow.green { color: #15803d; background: #dcfce7; border-color: var(--green); }

.squiggle {
  position: relative;
  display: inline-block;
}
.squiggle::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10'%3E%3Cpath d='M0 6 Q 15 0, 30 6 T 60 6 T 90 6 T 120 6' fill='none' stroke='%23fb923c' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 10px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { margin-top: 14px; font-size: 1.1rem; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--navy);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
}

.nav-logo img {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 2.5px solid var(--navy);
  background: var(--cream);
}

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 2px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s;
}

.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--orange); }

/* language switcher */
.lang-switch { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--white);
  border: 2.5px solid var(--navy);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  box-shadow: var(--shadow-card-sm);
  transition: transform 0.12s;
}
.lang-btn:hover { transform: translateY(-2px); }
.lang-caret { font-size: 0.7rem; }

.lang-flag svg {
  width: 21px; height: 14px;
  display: block;
  border-radius: 3px;
  outline: 1.5px solid rgba(20, 33, 61, 0.35);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 2.5px solid var(--navy);
  border-radius: 14px;
  box-shadow: var(--shadow-card-sm);
  padding: 6px;
  min-width: 150px;
  z-index: 300;
}
.lang-menu.open { display: block; }

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 9px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}
.lang-menu button:hover { background: #f3e8ff; }
.lang-menu button.on { background: #fce7f3; }
.lang-menu .lang-name { font-weight: 600; color: var(--muted); margin-left: auto; }

@media (max-width: 760px) {
  .lang-switch { display: flex; justify-content: center; padding: 8px 0; }
  .lang-menu { position: static; margin-top: 8px; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--navy);
  cursor: pointer;
  line-height: 1;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  padding: 14px 30px;
  border-radius: 999px;
  border: var(--outline);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  box-shadow: var(--shadow-card-sm);
  color: var(--navy);
  background: var(--white);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(20, 33, 61, 1); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(20, 33, 61, 1); }

.btn-primary { background: var(--pink); color: var(--white); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-lg { font-size: 1.2rem; padding: 17px 38px; }

/* ---------- cards ---------- */

.card {
  background: var(--white);
  border: var(--outline);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.card h3 { margin-bottom: 10px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.card { overflow-wrap: break-word; }

.icon-bubble {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  border-radius: 18px;
  border: 2.5px solid var(--navy);
  margin-bottom: 16px;
}

.bubble-purple { background: #f3e8ff; }
.bubble-pink { background: #fce7f3; }
.bubble-orange { background: #ffedd5; }
.bubble-green { background: #dcfce7; }
.bubble-blue { background: #dbeafe; }
.bubble-yellow { background: #fef3c7; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { margin: 18px 0 20px; }
.hero h1 .hl-purple { color: var(--purple); }
.hero h1 .hl-pink { color: var(--pink); }

.hero-sub { font-size: 1.2rem; max-width: 34rem; margin-bottom: 30px; }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-art { position: relative; }

.hero-art img.mascot {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  border: 4px solid var(--navy);
  box-shadow: var(--shadow-float), var(--shadow-card);
  background: var(--cream-deep);
}

.float-badge {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 600;
  background: var(--white);
  border: 2.5px solid var(--navy);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-card-sm);
  animation: bob 3.2s ease-in-out infinite;
  white-space: nowrap;
}

.float-badge.b1 { top: 6%; left: -4%; background: #fce7f3; }
.float-badge.b2 { bottom: 14%; right: -3%; background: #dcfce7; animation-delay: 0.8s; }
.float-badge.b3 { top: 42%; right: -7%; background: #ffedd5; animation-delay: 1.6s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.sparkle {
  position: absolute;
  font-size: 1.6rem;
  animation: twinkle 2.4s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(-8deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(8deg); }
}

@media (max-width: 960px) {
  .sparkle { display: none; }
}

/* proof strip */
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 34px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
}
.proof-strip span::before { content: '✦ '; color: var(--orange); }

/* ---------- alternating feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}

.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-copy h2, .feature-copy h3 { margin-bottom: 14px; }
.feature-copy p { margin-bottom: 14px; }

.feature-list { list-style: none; margin-top: 8px; }
.feature-list li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 12px;
  font-weight: 600;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  background: var(--green);
  color: white;
  border: 2px solid var(--navy);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- phone mockups ---------- */

.phone {
  width: 300px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--shadow-float), 0 8px 0 rgba(20, 33, 61, 0.9);
}

/* real screenshot dropped straight into the phone frame */
.phone-shot {
  display: block;
  width: 100%;
  border-radius: 34px;
  background: #17171c;
}

.phone-screen {
  background: #fdfdfd;
  border-radius: 34px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 13px;
  line-height: 1.45;
}

.phone-notch {
  width: 110px; height: 22px;
  background: var(--navy);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  flex-shrink: 0;
}

.ps-pad { padding: 12px 16px; }

.ps-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 4px;
}

.ps-greeting { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.ps-sub { color: var(--muted); font-size: 11.5px; }

.gem-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f3e8ff;
  border: 1.5px solid var(--purple);
  color: var(--purple-dark);
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}

.ps-card {
  background: white;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  box-shadow: 0 3px 10px rgba(20,33,61,0.07);
  padding: 12px;
  margin: 8px 16px;
}

.ps-card-gradient {
  background: linear-gradient(120deg, var(--purple), var(--pink));
  color: white;
  border: none;
}
.ps-card-gradient .ps-small { color: #f5d0fe; }

.ps-title { font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.ps-small { font-size: 11px; color: var(--muted); }

.ps-progress {
  height: 8px; background: rgba(255,255,255,0.35);
  border-radius: 99px; margin-top: 8px; overflow: hidden;
}
.ps-progress > i { display: block; height: 100%; width: 64%; background: white; border-radius: 99px; }

.ps-row { display: flex; gap: 10px; margin: 8px 16px; }
.ps-row .ps-card { flex: 1; margin: 0; text-align: center; }

.ps-stat-num { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--purple); }

.ps-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  border-top: 1.5px solid var(--border);
  padding: 10px 8px 16px;
  background: white;
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}
.ps-tabbar .on { color: var(--purple); }
.ps-tabbar span { display: block; font-size: 17px; margin-bottom: 2px; }

/* reader mockup */
.ps-reader-art {
  margin: 10px 16px 0;
  border-radius: 16px;
  height: 170px;
  background: linear-gradient(160deg, #fef3c7, #fdba74 60%, #fb923c);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  border: 1.5px solid var(--border);
}

.ps-reader-text { padding: 14px 20px; font-size: 15px; line-height: 1.8; color: #2b2b34; }

.word-hl {
  background: var(--orange);
  color: var(--navy);
  border-radius: 6px;
  padding: 1px 5px;
  font-weight: 800;
}
.word-spoken { color: var(--purple-dark); font-weight: 700; }

.ps-reader-controls {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 6px 0 10px;
}
.ps-ctl {
  width: 38px; height: 38px; border-radius: 50%;
  background: #f3e8ff; border: 1.5px solid var(--purple);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.ps-ctl.main { width: 52px; height: 52px; background: var(--purple); color: white; font-size: 20px; }

/* vocab card mockup */
.vocab-card {
  margin: 14px 16px;
  background: linear-gradient(150deg, #f3e8ff, #fce7f3);
  border: 2px solid var(--purple);
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
}
.vocab-word { font-family: var(--font-head); font-weight: 600; font-size: 26px; color: var(--purple-dark); }
.vocab-syll { color: var(--pink); font-weight: 800; letter-spacing: 0.08em; margin: 4px 0 10px; font-size: 13px; }
.vocab-def { font-size: 13px; color: #3c4763; }
.vocab-sound {
  margin: 12px auto 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--pink); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  border: 2px solid var(--navy);
}

/* quiz mockup */
.quiz-q {
  margin: 14px 16px 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
}
.quiz-opt {
  margin: 8px 16px;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  background: white;
}
.quiz-opt.correct {
  border-color: var(--green);
  background: #dcfce7;
  position: relative;
}
.quiz-opt.correct::after { content: '✓'; position: absolute; right: 12px; color: #15803d; font-weight: 900; }

/* games grid mockup */
.ps-games {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 16px;
}
.ps-game {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: white;
  box-shadow: 0 3px 8px rgba(20,33,61,0.08);
}
.ps-game img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ps-game figcaption {
  font-size: 10.5px; font-weight: 800; padding: 6px 8px; text-align: center;
  font-family: var(--font-head);
}

/* parent dashboard mockup */
.ps-bars {
  display: flex; align-items: flex-end; gap: 8px;
  height: 90px; padding: 0 6px; margin-top: 10px;
}
.ps-bars i {
  flex: 1; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--purple-light), var(--purple));
}
.ps-bars-labels {
  display: flex; gap: 8px; padding: 4px 6px 0;
  font-size: 9px; color: var(--muted); font-weight: 700;
}
.ps-bars-labels span { flex: 1; text-align: center; }

/* ---------- learn-card showcase & hover peek ---------- */

.learn-showcase {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.learn-showcase figure { margin: 0; max-width: 280px; }

.learn-showcase img {
  width: 100%;
  aspect-ratio: 780 / 1600;
  object-fit: cover;
  border-radius: 28px;
  border: 3px solid var(--navy);
  box-shadow: var(--shadow-card-sm);
  background: #17171c;
}

.learn-showcase figcaption {
  text-align: center;
  font-weight: 700;
  margin-top: 12px;
  font-size: 0.95rem;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.peek-hint {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 18px;
}

.learn-tile[data-shot] { cursor: pointer; }

#learn-peek {
  position: fixed;
  z-index: 300;
  background: var(--navy);
  border: 3px solid var(--navy);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(20, 33, 61, 0.4);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
#learn-peek.show { opacity: 1; transform: scale(1); }
#learn-peek img { display: block; border-radius: 19px 19px 0 0; }
#learn-peek .peek-label {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 7px 10px;
  height: 34px;
  box-sizing: border-box;
}

/* ---------- app screenshot carousel ---------- */

.shots-wrap { max-width: 1020px; margin: 0 auto; }

.shots-carousel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.shots-viewport { overflow: hidden; flex: 1; }

.shots-track {
  display: flex;
  transition: transform 0.45s ease;
}

.shot-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 10px;
  margin: 0;
  box-sizing: border-box;
}

.shot-slide img {
  width: 100%;
  aspect-ratio: 795 / 1600;
  object-fit: cover;
  border-radius: 28px;
  border: 3px solid var(--navy);
  box-shadow: var(--shadow-card-sm);
  background: #17171c;
}

.shot-slide figcaption {
  text-align: center;
  font-weight: 700;
  margin-top: 12px;
  font-size: 0.95rem;
}

.shot-nav {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: var(--outline);
  background: var(--white);
  color: var(--navy);
  font-size: 1.7rem;
  font-family: var(--font-head);
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-card-sm);
  transition: transform 0.12s;
}
.shot-nav:hover { transform: translateY(-2px); background: var(--orange-light); }
.shot-nav:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(20, 33, 61, 1); }

.shots-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.shots-dots button {
  width: 13px; height: 13px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--white);
  cursor: pointer;
}
.shots-dots button.on { background: var(--purple); }

.shots-empty {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 40px 20px;
}

@media (max-width: 960px) {
  .shot-slide { flex-basis: 50%; }
}
@media (max-width: 640px) {
  .shot-slide { flex-basis: 100%; }
  .shot-nav { width: 42px; height: 42px; }
}

/* ---------- game gallery ---------- */

.game-card {
  position: relative;
  background: var(--white);
  border: var(--outline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card-sm);
  transition: transform 0.15s;
}
.game-card:hover { transform: translateY(-4px) rotate(-1deg); }

/* benefit overlay shown on hover / tap / keyboard focus */
.gc-pop {
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 238, 0.96);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  overflow-y: auto;
}
.gc-pop h5 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--purple-dark);
}
.gc-pop p {
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--navy);
}
.game-card:hover .gc-pop,
.game-card:focus .gc-pop,
.game-card:focus-within .gc-pop { opacity: 1; }
.game-card:focus { outline: 3px solid var(--pink-light); }

@media (max-width: 480px) {
  .gc-pop { padding: 10px; gap: 5px; justify-content: flex-start; }
  .gc-pop h5 { font-size: 0.82rem; }
  .gc-pop p { font-size: 0.72rem; line-height: 1.45; }
}
.game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 2.5px solid var(--navy); }
.game-card .gc-body { padding: 12px 14px; }
.game-card h4 { font-size: 1rem; }
.game-card .gc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  margin-top: 6px;
  border: 1.5px solid var(--navy);
}
.tag-logic { background: #dbeafe; }
.tag-reading { background: #fce7f3; }
.tag-math { background: #f3e8ff; }
.tag-science { background: #dcfce7; }
.tag-adventure { background: #ffedd5; }
.tag-memory { background: #fef3c7; }
.tag-story { background: #ede9fe; }

/* learn cards strip */
.learn-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.learn-tile {
  border: 2.5px solid var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-card-sm);
  transition: transform 0.15s;
}
.learn-tile:hover { transform: translateY(-4px) rotate(1.5deg); }
.learn-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.learn-tile figcaption {
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.8rem; text-align: center; padding: 7px 4px;
  border-top: 2.5px solid var(--navy);
  background: var(--cream);
}

/* ---------- steps / loop ---------- */

.loop-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.loop-step { text-align: center; position: relative; padding: 26px 18px; }

.loop-num {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--navy);
  box-shadow: var(--shadow-card-sm);
}

.loop-step:nth-child(2) .loop-num { background: var(--pink); }
.loop-step:nth-child(3) .loop-num { background: var(--orange); }
.loop-step:nth-child(4) .loop-num { background: var(--green); }

/* ---------- gems ---------- */

.gem-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--outline);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-card-sm);
}
.gem-table th, .gem-table td { padding: 14px 20px; text-align: left; }
.gem-table th {
  background: var(--purple);
  color: white;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
}
.gem-table tr:not(:last-child) td { border-bottom: 2px solid var(--border); }
.gem-table td:first-child { font-weight: 800; }

/* ---------- science page ---------- */

.science-card { position: relative; padding-top: 34px; }
.science-num {
  position: absolute;
  top: -22px; left: 24px;
  background: var(--orange);
  border: 2.5px solid var(--navy);
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 6px 14px;
  font-size: 1.05rem;
  box-shadow: var(--shadow-card-sm);
}

.quote-block {
  background: var(--white);
  border: var(--outline);
  border-left: 12px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 30px 34px;
  box-shadow: var(--shadow-card-sm);
  font-size: 1.15rem;
  font-weight: 600;
}
.quote-block cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.95rem; color: var(--muted); }

/* ---------- story page ---------- */

.story-prose { max-width: 720px; margin: 0 auto; font-size: 1.15rem; }
.story-prose p { margin-bottom: 22px; }
.story-prose .lead { font-size: 1.35rem; font-weight: 700; color: var(--navy); }

/* ---------- waitlist ---------- */

.waitlist-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.form-card { padding: 36px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-group input[type='email'],
.form-group input[type='text'],
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 2.5px solid var(--navy);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--navy);
}

.form-group input:focus, .form-group select:focus {
  outline: 3px solid var(--pink-light);
}

.pill-options { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-options label {
  border: 2.5px solid var(--navy);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: white;
  margin-bottom: 0;
}
.pill-options input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.pill-options label:has(input:focus-visible) { outline: 3px solid var(--pink-light); }
.pill-options input:checked + span { color: var(--white); }
.pill-options label:has(input:checked) { background: var(--purple); color: white; }

.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; margin-bottom: 14px; }
.check-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--purple); flex-shrink: 0; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 2.5px solid var(--navy);
  font-weight: 700;
}
.form-status.ok { display: block; background: #dcfce7; }
.form-status.err { display: block; background: #fee2e2; }

/* ---------- FAQ ---------- */

.faq-item {
  background: white;
  border: var(--outline);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-card-sm);
  overflow: hidden;
}
.faq-item summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--purple); flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-body { padding: 0 24px 20px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--purple), var(--pink));
  border-top: 4px solid var(--navy);
  border-bottom: 4px solid var(--navy);
  text-align: center;
  color: white;
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: white; margin-bottom: 14px; }
.cta-band p { color: #fbe8ff; max-width: 560px; margin: 0 auto 28px; font-size: 1.15rem; }
.cta-band .btn { border-color: var(--navy); }

/* ---------- footer ---------- */

footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 56px 0 32px;
  font-size: 0.95rem;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1fr; gap: 40px; margin-bottom: 36px; }

.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #2c3e5f;
  color: #fff;
  margin-bottom: 0;
  transition: background 0.15s, transform 0.15s;
}
.social-row a:hover { background: var(--orange); color: var(--navy); transform: translateY(-2px); }
.social-row svg { width: 20px; height: 20px; display: block; }

footer h4 { color: white; margin-bottom: 14px; font-size: 1.05rem; }
footer a { color: #cbd5e1; text-decoration: none; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--orange-light); }
footer p { color: #94a3b8; }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { width: 42px; height: 42px; border-radius: 10px; }
.footer-logo span { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: white; }

.footer-bottom {
  border-top: 1px solid #2c3e5f;
  padding-top: 22px;
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
}

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-badge, .sparkle { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .loop-steps { grid-template-columns: repeat(2, 1fr); }
  .learn-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 52px 0; }

  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 12px; border-bottom: none; }
  .nav-toggle { display: block; }

  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  .float-badge.b1 { left: 0; }
  .float-badge.b2 { right: 0; }
  .float-badge.b3 { display: none; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-copy { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }

  .waitlist-wrap { grid-template-columns: 1fr; }
  .learn-strip { grid-template-columns: repeat(2, 1fr); }
  .gem-table { font-size: 0.9rem; }
  .gem-table th, .gem-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid-4 .card { padding: 18px 14px; }
  .grid-4 .card h3 { font-size: 1.05rem; }
  .loop-steps { grid-template-columns: 1fr; }
  .phone { width: 270px; }
}
