@font-face {
  font-family: Fredoka;
  src: url('../assets/Fredoka-Variable.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url('../assets/Nunito-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --navy: #0B1B3A;
  --navy2: #12284F;
  --blue: #1A3A6B;
  --sky: #4DB7FF;
  --cream: #FFF6E8;
  --gold: #FFC93C;
  --coral: #FF6B6B;
  --mint: #3DDC97;
  --lilac: #A78BFA;
  --pink: #FF8DC7;
  --orange: #FF9F43;
  --text: #F7FBFF;
  --muted: #A8B8D8;
  --card: rgba(255,255,255,0.10);
  --card-border: rgba(255,255,255,0.18);
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --radius: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--navy);
  color: var(--text);
  font-family: Nunito, system-ui, sans-serif;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

#app {
  height: 100%;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(77,183,255,0.25), transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(167,139,250,0.2), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(255,201,60,0.12), transparent 50%),
    linear-gradient(180deg, #0B1B3A 0%, #12284F 55%, #0B1B3A 100%);
}

.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: calc(12px + var(--safe-top)) 16px calc(16px + var(--safe-bot));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn 0.28s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.topbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 14px; flex-shrink: 0;
  min-height: 48px;
}
.topbar h1 {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.2rem; font-weight: 600; margin: 0;
  letter-spacing: 0.01em; flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
}
.topbar .pill { flex: 0 0 auto; max-width: 100%; }
.topbar-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-pill {
  height: 40px; width: auto;
  background: rgba(255,246,232,0.95);
  border-radius: 999px; padding: 4px 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.logo-mark { height: 36px; width: auto; }

.btn-back, .btn-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--card-border);
  display: grid; place-items: center;
  font-size: 1.2rem; color: var(--cream);
  flex-shrink: 0;
}
.btn-back:active, .btn-icon:active { transform: scale(0.94); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-family: Fredoka, Nunito, sans-serif;
  font-weight: 600; font-size: 1.05rem;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.12s ease, filter 0.12s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, #FFC93C, #FF9F43); color: #1A2035; }
.btn-sky { background: linear-gradient(135deg, #4DB7FF, #3B82F6); color: #fff; }
.btn-mint { background: linear-gradient(135deg, #3DDC97, #10B981); color: #0B1B3A; }
.btn-lilac { background: linear-gradient(135deg, #A78BFA, #7C3AED); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.1);
  border-color: var(--card-border); color: var(--cream);
  box-shadow: none;
}
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.card h2, .card h3 {
  font-family: Fredoka, Nunito, sans-serif;
  margin: 0 0 8px; font-weight: 600;
}
.muted { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,201,60,0.95); color: #1A2035;
  font-family: Fredoka, sans-serif; font-size: 0.78rem; font-weight: 600;
}

/* Landing */
.landing {
  justify-content: center; align-items: center; text-align: center;
  gap: 18px;
}
.landing .hero-logo { width: min(220px, 55vw); margin: 0 auto 8px; }
.landing h1 {
  font-family: Fredoka, sans-serif; font-size: clamp(1.8rem, 6vw, 2.6rem);
  margin: 0; font-weight: 650;
}
.landing .tag {
  max-width: 340px; margin: 0 auto;
  color: var(--muted); font-size: 1.05rem; line-height: 1.5;
}
.landing .actions { width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.landing .fine { font-size: 0.75rem; color: var(--muted); margin-top: 20px; max-width: 320px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 12px; max-width: 440px; width: 100%; margin: 0 auto; }
.field label {
  display: block; font-family: Fredoka, sans-serif; font-size: 0.85rem;
  margin-bottom: 6px; color: var(--cream);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 16px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--card-border);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sky); box-shadow: 0 0 0 3px rgba(77,183,255,0.25);
}
.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.9rem; line-height: 1.4; color: var(--muted);
}
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--mint); }

/* Buddy grid */
.buddy-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.buddy-card {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 3px solid transparent; background: rgba(0,0,0,0.2);
  aspect-ratio: 1; padding: 0;
}
.buddy-card img { width: 100%; height: 100%; object-fit: cover; }
.buddy-card .name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 4px; text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-family: Fredoka, sans-serif; font-size: 0.85rem;
}
.buddy-card.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,201,60,0.35); }
.age-row { display: flex; gap: 8px; flex-wrap: wrap; }
.age-chip {
  flex: 1; min-width: 90px; padding: 12px; border-radius: 16px;
  background: rgba(255,255,255,0.08); border: 2px solid transparent;
  font-family: Fredoka, sans-serif; text-align: center;
}
.age-chip.selected { border-color: var(--sky); background: rgba(77,183,255,0.18); }

/* Home island */
.home-hero {
  position: relative; border-radius: 24px; overflow: hidden;
  min-height: 160px; margin-bottom: 14px;
  background: #12284F center/cover no-repeat;
}
.home-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,27,58,0.15), rgba(11,27,58,0.75));
}
.home-hero .content {
  position: relative; z-index: 1; padding: 18px;
  display: flex; align-items: flex-end; gap: 12px; min-height: 160px;
}
.home-hero .buddy-face {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.home-hero .greet h2 { margin: 0; font-family: Fredoka, sans-serif; font-size: 1.35rem; }
.stars-badge {
  margin-left: auto; background: rgba(255,201,60,0.95); color: #1A2035;
  border-radius: 16px; padding: 8px 12px; font-family: Fredoka, sans-serif;
  font-weight: 700; white-space: nowrap;
}

.tile-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.tile {
  border-radius: 20px; padding: 16px 14px; text-align: left;
  background: rgba(255,255,255,0.1); border: 1px solid var(--card-border);
  min-height: 100px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.tile .emoji { font-size: 1.6rem; }
.tile .title { font-family: Fredoka, sans-serif; font-size: 1.05rem; font-weight: 600; }
.tile .sub { font-size: 0.78rem; color: var(--muted); }
.tile.watch { background: linear-gradient(145deg, rgba(255,107,107,0.35), rgba(255,255,255,0.08)); }
.tile.listen { background: linear-gradient(145deg, rgba(167,139,250,0.35), rgba(255,255,255,0.08)); }
.tile.play { background: linear-gradient(145deg, rgba(61,220,151,0.35), rgba(255,255,255,0.08)); }
.tile.read { background: linear-gradient(145deg, rgba(77,183,255,0.35), rgba(255,255,255,0.08)); }
.tile.wide { grid-column: 1 / -1; }

.shortcut-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px;
}
.shortcut {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px; border-radius: 16px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--card-border);
  font-family: Fredoka, sans-serif; font-size: 0.68rem; text-align: center;
}
.shortcut .ic { font-size: 1.35rem; }

/* Parent gate */
.gate-box {
  max-width: 360px; margin: auto; text-align: center;
}
.gate-box .q {
  font-family: Fredoka, sans-serif; font-size: 1.6rem; margin: 16px 0;
}
.gate-keys {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px;
}
.gate-keys button {
  padding: 16px; border-radius: 16px;
  background: rgba(255,255,255,0.12); border: 1px solid var(--card-border);
  font-family: Fredoka, sans-serif; font-size: 1.3rem;
}
.gate-keys button:active { background: rgba(77,183,255,0.3); }

/* Discover / zones */
.zone-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.zone {
  border-radius: 18px; padding: 14px; text-align: left;
  background: rgba(255,255,255,0.1); border: 1px solid var(--card-border);
  min-height: 88px;
}
.zone .title { font-family: Fredoka, sans-serif; font-weight: 600; }
.zone .sub { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.zone.locked { opacity: 0.55; }
.zone.playable { border-color: rgba(255,201,60,0.6); background: linear-gradient(145deg, rgba(255,201,60,0.2), rgba(255,255,255,0.08)); }

.game-stage {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center;
}
.moon-sky {
  width: min(320px, 90vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1e3a6e, #060d1c 70%);
  position: relative; overflow: hidden;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 0 60px rgba(77,183,255,0.2), 0 12px 40px rgba(0,0,0,0.4);
}
.sky-obj {
  position: absolute; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.15s;
}
.sky-obj:active { transform: scale(1.08); }
.sky-obj.moon {
  width: 54px; height: 54px;
  background: radial-gradient(circle at 35% 35%, #FFF8E7, #E8D48B 60%, #C4A35A);
  box-shadow: 0 0 20px rgba(255,248,231,0.6);
}
.sky-obj.star {
  width: 28px; height: 28px;
  background: #FFE566; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  border-radius: 0; border: none;
}
.sky-obj.planet {
  width: 40px; height: 40px;
  background: radial-gradient(circle at 30% 30%, #7DD3FC, #2563EB);
}
.sky-obj.wrong-flash { box-shadow: 0 0 0 4px var(--coral); }
.sky-obj.right-flash { box-shadow: 0 0 0 4px var(--mint); }

.spell-board {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 56px;
}
.letter-slot {
  width: 48px; height: 56px; border-radius: 12px;
  background: rgba(255,255,255,0.08); border: 2px dashed rgba(255,255,255,0.25);
  display: grid; place-items: center;
  font-family: Fredoka, sans-serif; font-size: 1.4rem; font-weight: 700;
}
.letter-slot.filled { border-style: solid; border-color: var(--sky); background: rgba(77,183,255,0.2); }
.letter-tray {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px;
}
.letter-btn {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(145deg, #4DB7FF, #2563EB);
  font-family: Fredoka, sans-serif; font-size: 1.35rem; font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.letter-btn.used { opacity: 0.35; pointer-events: none; }

/* Little Helpers */
.helper-list { display: flex; flex-direction: column; gap: 10px; }
.helper-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 18px;
  background: rgba(255,255,255,0.1); border: 1px solid var(--card-border);
  text-align: left;
}
.helper-item.done { opacity: 0.7; }
.helper-item .ic { font-size: 1.5rem; }
.helper-item .meta { flex: 1; }
.helper-item .meta strong { display: block; font-family: Fredoka, sans-serif; }
.star-btn {
  background: rgba(255,201,60,0.2); border: 1px solid rgba(255,201,60,0.5);
  border-radius: 999px; padding: 8px 12px;
  font-family: Fredoka, sans-serif; color: var(--gold); font-weight: 700;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px;
}
.cal-cell {
  aspect-ratio: 1; border-radius: 10px;
  background: rgba(255,255,255,0.06); display: grid; place-items: center;
  font-size: 0.75rem; font-family: Fredoka, sans-serif;
}
.cal-cell.today { border: 2px solid var(--gold); }
.cal-cell.has-star { background: rgba(255,201,60,0.25); }

/* Safety */
.episode-card {
  border-radius: 20px; overflow: hidden; margin-bottom: 12px;
  background: rgba(255,255,255,0.1); border: 1px solid var(--card-border);
}
.episode-card img { width: 100%; height: 140px; object-fit: cover; }
.episode-card .body { padding: 14px; }
.story-pages { max-width: 480px; margin: 0 auto; }
.story-pages .page {
  background: rgba(255,255,255,0.1); border-radius: 20px; padding: 20px;
  border: 1px solid var(--card-border); min-height: 220px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  text-align: center;
}
.story-pages .page .big { font-size: 2.4rem; }
.story-pages .page p { margin: 0; font-size: 1.15rem; line-height: 1.5; }

/* Right Here */
.rh-choices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.rh-choice {
  min-height: 100px; border-radius: 20px; padding: 16px;
  background: linear-gradient(145deg, rgba(77,183,255,0.3), rgba(255,255,255,0.08));
  border: 1px solid var(--card-border);
  font-family: Fredoka, sans-serif; font-size: 1.05rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.recorder {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.rec-dot {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 8px rgba(255,107,107,0.25);
  display: grid; place-items: center; font-size: 1.5rem;
}
.rec-dot.idle { background: var(--sky); box-shadow: 0 0 0 8px rgba(77,183,255,0.25); }
video.preview, video.playback {
  width: 100%; max-width: 360px; border-radius: 16px; background: #000;
  aspect-ratio: 9/16; object-fit: cover; max-height: 360px;
}

/* Family circle */
.invite-code {
  font-family: Fredoka, sans-serif; font-size: 2rem; letter-spacing: 0.2em;
  background: rgba(0,0,0,0.3); padding: 16px; border-radius: 16px;
  text-align: center; margin: 12px 0;
}

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-bot));
  transform: translateX(-50%);
  background: rgba(15,25,50,0.95); color: var(--cream);
  padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--card-border);
  font-family: Fredoka, sans-serif; z-index: 50;
  animation: fadeIn 0.2s ease;
}

.parent-tabs {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.parent-tabs button {
  padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--card-border);
  font-family: Fredoka, sans-serif; font-size: 0.85rem;
}
.parent-tabs button.on { background: rgba(255,201,60,0.9); color: #1A2035; border-color: transparent; }

@media (min-width: 768px) {
  .screen { padding: calc(20px + var(--safe-top)) 28px calc(24px + var(--safe-bot)); }
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
  .tile.wide { grid-column: span 2; }
  .buddy-grid { grid-template-columns: repeat(6, 1fr); max-width: 720px; }
  .zone-grid { grid-template-columns: repeat(3, 1fr); }
  .shortcut-row { grid-template-columns: repeat(4, 1fr); max-width: 520px; }
  .home-hero { min-height: 200px; }
  .home-hero .content { min-height: 200px; }
}

/* ===== Marketing landing (showstopper) ===== */
html.marketing, body.marketing { height: auto; min-height: 100%; overflow: auto; }
#app.marketing { max-width: none; height: auto; min-height: 100%; overflow: visible; }
#app.marketing .screen.landing-mkt {
  display: block;
  position: relative;
  inset: auto;
  height: auto;
  min-height: 100%;
  padding: 0;
  overflow: visible;
  background:
    radial-gradient(ellipse at 15% -10%, rgba(77,183,255,0.35), transparent 42%),
    radial-gradient(ellipse at 90% 8%, rgba(167,139,250,0.28), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(255,201,60,0.16), transparent 45%),
    #071428;
}

.mkt { color: var(--text); }
.mkt-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: rgba(7,20,40,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mkt-nav .hero-logo { height: 42px; width: auto; background: #fff6e8; border-radius: 999px; padding: 4px 10px; }
.mkt-nav .spacer { flex: 1; }
.mkt-nav .btn { padding: 10px 16px; font-size: 0.92rem; }

.mkt-hero {
  position: relative;
  min-height: min(92vh, 820px);
  padding: 28px 20px 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center;
  overflow: hidden;
}
.mkt-hero .island {
  position: absolute; inset: 0;
  background: #0b1b3a center 30%/cover no-repeat;
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.05);
}
.mkt-hero .island::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,20,40,0.25) 0%, rgba(7,20,40,0.15) 35%, rgba(7,20,40,0.82) 100%);
}
.mkt-floaters {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.floater {
  position: absolute; width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 3px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 24px rgba(77,183,255,0.35);
  animation: floaty 4.8s ease-in-out infinite;
}
.floater:nth-child(2) { animation-duration: 5.4s; animation-delay: .3s; }
.floater:nth-child(3) { animation-duration: 4.2s; animation-delay: .8s; }
.floater:nth-child(4) { animation-duration: 6s; animation-delay: .15s; }
.floater:nth-child(5) { animation-duration: 5s; animation-delay: 1s; }
.floater:nth-child(6) { animation-duration: 4.6s; animation-delay: .55s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}
.mkt-hero .copy {
  position: relative; z-index: 2; max-width: 720px;
  background: rgba(7, 18, 38, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 22px 20px 18px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 50px rgba(0,0,0,0.28);
}
@media (max-width: 799px) {
  .mkt-floaters .floater:nth-child(n+3) { display: none; }
  .floater { width: 58px; height: 58px; }
}
.mkt-hero h1 {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.08; margin: 0 0 12px; font-weight: 650;
  text-shadow: 0 8px 30px rgba(0,0,0,0.45);
}
.mkt-hero .lede {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: #E8F0FF; line-height: 1.45; margin: 0 auto 22px; max-width: 34rem;
  text-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.mkt-cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mkt-wait {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  width: min(520px, 100%); margin: 0 auto 14px;
}
.mkt-wait input {
  flex: 1 1 220px; padding: 14px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(8,16,36,0.88); outline: none;
}
.mkt-wait input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,201,60,0.25); }
.trust-chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px;
}
.trust-chips span {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px; padding: 7px 12px; font-size: 0.8rem;
  font-family: Fredoka, sans-serif;
}

.mkt-section { padding: 48px 20px; max-width: 1080px; margin: 0 auto; }
.mkt-section h2 {
  font-family: Fredoka, sans-serif; font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 10px; text-align: center;
}
.mkt-section .intro { text-align: center; color: var(--muted); max-width: 40rem; margin: 0 auto 28px; line-height: 1.5; }

.mkt-split {
  display: grid; gap: 22px; align-items: center;
}
.mkt-split img {
  width: 100%; border-radius: 24px; object-fit: cover; max-height: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12);
}
.mkt-split h3 { font-family: Fredoka, sans-serif; font-size: 1.5rem; margin: 0 0 8px; }
.mkt-kicker { color: var(--gold); font-family: Fredoka, sans-serif; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 6px; }

.feat-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feat {
  border-radius: 22px; overflow: hidden; text-align: left;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  min-height: 160px; padding: 0; color: inherit;
}
.feat img { width: 100%; height: 130px; object-fit: cover; }
.feat .body { padding: 14px 16px 18px; }
.feat h3 { margin: 0 0 6px; font-family: Fredoka, sans-serif; font-size: 1.15rem; }
.feat p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

.cast-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 8px 4px 16px;
  justify-content: center; flex-wrap: wrap;
}
.cast-row img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,255,255,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.trust-grid { display: grid; gap: 12px; }
.trust-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px; padding: 16px;
}
.trust-card strong { display: block; font-family: Fredoka, sans-serif; margin-bottom: 4px; }

.mkt-finale {
  text-align: center; padding: 56px 20px 40px;
  background: linear-gradient(180deg, transparent, rgba(255,201,60,0.08));
}
.mkt-finale h2 { font-family: Fredoka, sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 10px; }
.mkt-foot {
  text-align: center; padding: 12px 20px 40px; color: var(--muted); font-size: 0.82rem; line-height: 1.5;
}
.mkt-foot .proto { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0; }

@media (min-width: 800px) {
  .mkt-hero { min-height: 88vh; padding-bottom: 72px; }
  .floater { width: 96px; height: 96px; }
  .mkt-split { grid-template-columns: 1.1fr 0.9fr; }
  .mkt-split.reverse { grid-template-columns: 0.9fr 1.1fr; }
  .mkt-split.reverse img { order: -1; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .feat img { height: 160px; }
}
@media (min-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
}


.mkt-nav .night-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 1.15rem;
}
.mkt-nav .parent-nav { padding: 10px 14px; }
@media (max-width: 430px) {
  .mkt-nav { gap: 8px; padding: 10px 12px; }
  .mkt-nav .hero-logo { height: 34px; padding: 3px 8px; }
  .mkt-nav .btn { padding: 8px 12px; font-size: 0.8rem; }
  .mkt-nav .btn-primary { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.mkt-hero .h1, .mkt-hero h1 .world-name {
  white-space: normal;
}
.world-kicker { margin-bottom: 8px !important; }

/* Landing night sky */
.mkt-stars {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  transition: opacity 0.5s ease;
}
.mkt-hero.is-night .mkt-stars { opacity: 1; }
.mkt-stars i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.8);
  animation: twinkle 2.8s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}
.mkt-hero .island { transition: filter 0.55s ease; }
.mkt-hero.is-night .island {
  filter: none;
}
.mkt-hero.is-night .island::after {
  background: linear-gradient(180deg, rgba(4,10,30,0.18) 0%, rgba(6,14,36,0.08) 40%, rgba(5,8,22,0.55) 100%);
}
.mkt-hero.is-night .floater {
  box-shadow: 0 10px 28px rgba(0,0,0,0.5), 0 0 28px rgba(255,201,60,0.35);
}
.mkt-hero.is-night .copy {
  background: rgba(6, 12, 28, 0.72);
}

/* App-wide night mode (kid/parent screens) */
html.night {
  --navy: #050816;
  --navy2: #0A1020;
  --blue: #10182C;
  --sky: #7EB6FF;
  --muted: #8FA0C0;
  --card: rgba(255,255,255,0.07);
}
html.night #app {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(40,80,160,0.18), transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(120,90,200,0.14), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(255,180,80,0.08), transparent 50%),
    linear-gradient(180deg, #050816 0%, #0A1020 55%, #050816 100%);
}
html.night .home-hero::after {
  background: linear-gradient(180deg, rgba(5,8,22,0.35), rgba(5,8,22,0.82));
}
html.night.marketing, html.night.marketing body, body.night.marketing {
  background: #050816;
}
