/* ============================================================
   WanderKid — wanderkid.app
   Magical night sky · deep purples · warm gold
   ============================================================ */

:root {
  --night: #100C28;
  --purple: #1B1045;
  --purple-2: #231457;
  --purple-3: #2C1A66;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --gold: #D4A24C;
  --gold-bright: #E0B266;
  --gold-glow: #E8C989;
  --cream: #F5EDD8;
  --text: #E8E0F0;
  --muted: #BBAFD2;
  --faint: #8878A0;
  --radius: 20px;
  --font-display: "Fredoka", "Nunito", sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: #FFFFFF;
  letter-spacing: 0.1px;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(16, 12, 40, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--cream);
}
.brand:hover { color: var(--cream); }
.brand img { width: 34px; height: 42px; }
.brand .kid { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 15px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--cream); }
.nav-links a.btn, .nav-links a.btn:hover { color: #241243; }

/* ---------- Buttons & forms ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #241243;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 24px rgba(212, 162, 76, 0.25);
  white-space: nowrap;
}
.btn:hover {
  background: var(--gold-bright);
  color: #241243;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(212, 162, 76, 0.35);
}
.btn-sm { padding: 10px 20px; font-size: 14px; box-shadow: none; }

.notify-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  width: 100%;
}
.notify-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.notify-form input[type="email"]::placeholder { color: var(--faint); }
.notify-form input[type="email"]:focus {
  border-color: rgba(212, 162, 76, 0.6);
  background: rgba(255, 255, 255, 0.09);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-msg {
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 700;
  min-height: 22px;
}
.form-msg.ok { color: var(--gold-glow); }
.form-msg.err { color: #F0A3A3; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(212, 162, 76, 0.45);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

section { position: relative; }

.section {
  padding: clamp(80px, 11vw, 130px) 0;
}

.section-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(44px, 6vw, 64px);
}
.section-head .eyebrow {
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 42px);
  margin-bottom: 16px;
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Lines that must not wrap on desktop */
@media (min-width: 1080px) {
  .section-head .no-wrap { white-space: nowrap; max-width: none; }
}

/* Lantern glows */
.lantern::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 640px 420px at 50% 18%, rgba(212, 162, 76, 0.09) 0%, rgba(212, 162, 76, 0) 70%);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 30%;
  opacity: 0.5;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(16, 12, 40, 0.96) 0%, rgba(16, 12, 40, 0.82) 38%, rgba(16, 12, 40, 0.35) 72%, rgba(16, 12, 40, 0.55) 100%),
    linear-gradient(to bottom, rgba(16, 12, 40, 0.55) 0%, rgba(16, 12, 40, 0) 30%, rgba(16, 12, 40, 0.92) 92%, #100C28 100%);
}

.stars-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.stars-global {
  position: fixed;
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-copy .pill { margin-bottom: 26px; }

.hero-copy h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero-copy h1 .gold { color: var(--gold); }

.hero-copy .lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-copy .lede strong { color: var(--cream); font-weight: 800; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--faint);
  font-size: 14px;
  font-weight: 700;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; flex: none; }

/* ---------- Phone mockup ---------- */

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-wrap::before {
  content: "";
  position: absolute;
  width: 130%;
  height: 110%;
  top: -5%;
  left: -15%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(232, 201, 137, 0.22) 0%, rgba(232, 201, 137, 0) 70%);
  pointer-events: none;
}

.phone {
  position: relative;
  width: min(312px, 80vw);
  aspect-ratio: 9 / 19.3;
  display: flex;
  flex-direction: column;
  border-radius: 50px;
  background: linear-gradient(160deg, #251650, #180F3C);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 8px rgba(11, 8, 30, 0.9),
    0 0 80px rgba(212, 162, 76, 0.12);
  padding: 12px 16px 18px;
  transform: rotate(2.5deg);
  animation: float 7s ease-in-out infinite;
}

.phone-statusrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 10px;
  flex: none;
}
.pst {
  font-size: 12px;
  font-weight: 800;
  color: var(--cream);
  min-width: 46px;
}
.pst-batt {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: var(--muted);
}
.pst-batt i {
  display: block;
  width: 21px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3.5px;
  position: relative;
  opacity: 0.9;
}
.pst-batt i::after {
  content: "";
  position: absolute;
  inset: 2px;
  right: 34%;
  background: currentColor;
  border-radius: 1.5px;
}
.dynamic-island {
  width: 88px;
  height: 25px;
  flex: none;
  background: #07051A;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

@keyframes float {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(2.5deg) translateY(-12px); }
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px 12px;
}
.phone-topbar .chapter { letter-spacing: 0.4px; }
.phone-topbar .heart { color: var(--gold); font-size: 13px; }

.phone-art {
  border-radius: 22px;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}
.phone-art img { width: 100%; height: 100%; object-fit: cover; }

.phone-title {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  color: #FFFFFF;
  font-size: 17px;
  padding: 14px 6px 10px;
}

.phone-story {
  padding: 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.75;
}

.karaoke .s {
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.45s ease;
}
.karaoke .s.read { color: rgba(255, 255, 255, 0.72); }
.karaoke .s.active { color: var(--gold); }

.phone-title, .phone-story, .phone-progress, .phone-topbar { flex: none; }

.phone-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 8px 4px;
  flex: none;
}
.pc-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 12px;
}
.pc-btn.play {
  width: 44px; height: 44px;
  background: var(--gold);
  color: #241243;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(212, 162, 76, 0.4);
}
.phone-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  margin: 14px 8px 0;
  overflow: hidden;
}
.phone-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 99px;
}

/* ---------- How it works ---------- */

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

.step-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(212, 162, 76, 0.35); }

.step-num {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.step-card h3 { font-size: 22px; }
.step-card > p { color: var(--muted); font-size: 15.5px; }

.step-demo {
  margin-top: auto;
  background: rgba(16, 12, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 18px 16px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  font-size: 13.5px;
}

/* step 1: ask */
.demo-greeting {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  text-align: center;
  font-size: 16px;
}
.demo-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 11px 14px;
  color: var(--cream);
  font-weight: 700;
  min-height: 42px;
}
.demo-input .caret {
  display: inline-block;
  width: 2px; height: 15px;
  background: var(--gold);
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.demo-go {
  background: var(--gold);
  color: #241243;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  padding: 9px;
}

/* step 2: create */
.gen-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-weight: 700;
  transition: color 0.3s ease;
}
.gen-row .dot {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.3s ease;
}
.gen-row.active { color: var(--cream); }
.gen-row.active .dot { border-color: var(--gold); box-shadow: 0 0 12px rgba(212, 162, 76, 0.35); }
.gen-row.done { color: var(--muted); }
.gen-row.done .dot { background: var(--gold); border-color: var(--gold); color: #241243; }

/* step 3: read along */
.mini-karaoke { font-weight: 700; line-height: 1.8; }

/* ---------- Read-along demo ---------- */

.readalong {
  background:
    radial-gradient(ellipse 700px 500px at 50% 0%, rgba(44, 26, 102, 0.55) 0%, rgba(16, 12, 40, 0) 70%);
}

.storybook {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(170deg, rgba(35, 20, 87, 0.85), rgba(24, 15, 60, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 100px rgba(212, 162, 76, 0.07);
}

.storybook-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 26px);
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
}

.storybook .karaoke {
  font-size: clamp(18px, 2.6vw, 23px);
  font-weight: 700;
  line-height: 1.9;
}

.storybook-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}
.sb-play {
  width: 52px; height: 52px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: #241243;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(212, 162, 76, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.sb-play:hover { transform: scale(1.06); background: var(--gold-bright); }
.sb-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}
.sb-track i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 99px;
}
.sb-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- Craft gallery ---------- */

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

.art-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.art-card:nth-child(odd) { transform: rotate(-1.3deg); }
.art-card:nth-child(even) { transform: rotate(1.2deg) translateY(14px); }
.art-card:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 162, 76, 0.12); z-index: 2; }

.art-card img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }

.art-card figcaption {
  padding: 14px 16px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.45;
}
.art-card figcaption span {
  display: block;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Craft layout: art grid left, library phone right */
.craft-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.craft-grid .gallery { grid-template-columns: repeat(2, 1fr); }

.craft-lib {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.phone-lib {
  transform: none;
  animation: none;
  width: min(300px, 80vw);
  aspect-ratio: auto;
  height: 620px;
}
.lib-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 8px 10px;
  flex: none;
}
.lib-head h3 { font-size: 20px; }
.lib-head span { color: var(--gold); font-size: 12px; font-weight: 800; }
.lib-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
}
.lib-track { animation: libscroll 30s linear infinite; }
.lib-scroll:hover .lib-track { animation-play-state: paused; }
@keyframes libscroll { to { transform: translateY(-50%); } }

.lib-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 9px 12px;
  margin-bottom: 10px;
}
.lib-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lib-thumb.plain {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 162, 76, 0.14);
  color: var(--gold);
}
.lib-thumb.plain svg { width: 18px; height: 18px; }
.lib-info { min-width: 0; flex: 1; }
.lib-title {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-meta { display: block; font-size: 10.5px; font-weight: 700; color: var(--faint); }
.lib-heart { color: var(--gold); font-size: 13px; flex: none; }
.lib-note {
  text-align: center;
  color: var(--faint);
  font-size: 14.5px;
  font-weight: 700;
  max-width: 300px;
}

/* ---------- Storytellers ---------- */

.cast {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

.cast-stage {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
  background: linear-gradient(170deg, rgba(35, 20, 87, 0.85), rgba(24, 15, 60, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 100px rgba(212, 162, 76, 0.07);
  min-height: 360px;
}

.cast-portrait {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 7 / 9;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}
.cast-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 60px rgba(16, 12, 40, 0.35);
  pointer-events: none;
}
.cast-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cast-stage.switching .cast-portrait img { opacity: 0; transform: scale(0.96); }
.cast-stage.switching .cast-info > * { opacity: 0; transform: translateY(6px); }
.cast-info > * { transition: opacity 0.22s ease, transform 0.22s ease; }

.cast-name {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 4px;
}
.cast-role {
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
}
.cast-quote {
  color: var(--muted);
  font-size: clamp(15.5px, 1.8vw, 17.5px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 24px;
}

.cast-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: #241243;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 24px 12px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 24px rgba(212, 162, 76, 0.3);
}
.cast-play:hover { background: var(--gold-bright); transform: translateY(-1px); }
.cast-play .cp-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(36, 18, 67, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.cast-play.soon { opacity: 0.4; cursor: default; box-shadow: none; }

.cast-lineup {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 16px 20px;
  align-content: center;
  justify-content: center;
}
.cast-thumb {
  position: relative;
  width: 70px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  transition: color 0.2s ease;
}
.cast-thumb img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cast-thumb:hover { color: var(--cream); }
.cast-thumb:hover img { transform: translateY(-4px) scale(1.05); }
.cast-thumb.active { color: var(--gold); }
.cast-thumb.active img {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 0 0 2.5px var(--gold), 0 0 24px rgba(212, 162, 76, 0.45), 0 10px 22px rgba(0, 0, 0, 0.4);
}

.voices-note {
  text-align: center;
  color: var(--faint);
  font-weight: 700;
  font-size: 14.5px;
  margin-top: 26px;
}
.voices-note[hidden] { display: none; }

/* ---------- Languages ---------- */

.langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 800;
  font-size: 15px;
  color: var(--cream);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.lang-chip:hover { border-color: rgba(212, 162, 76, 0.45); transform: translateY(-2px); }
.lang-chip .flag { font-size: 18px; }

.langs-note {
  text-align: center;
  color: var(--faint);
  font-size: 15px;
  font-weight: 700;
  margin-top: 28px;
}

/* ---------- Parent's peace ---------- */

.peace-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.peace-cosmo {
  position: relative;
  display: flex;
  justify-content: center;
}
.peace-cosmo img {
  width: min(240px, 60vw);
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.peace-cosmo::before {
  content: "";
  position: absolute;
  width: 120%; height: 120%;
  top: -10%; left: -10%;
  background: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(232, 201, 137, 0.16) 0%, rgba(232, 201, 137, 0) 70%);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
}
.trust-item svg {
  width: 26px; height: 26px;
  flex: none;
  color: var(--gold);
  margin-top: 2px;
}
.trust-item h3 { font-size: 16.5px; margin-bottom: 3px; font-family: var(--font-body); font-weight: 800; }
.trust-item p { font-size: 14px; color: var(--muted); font-weight: 600; }

.peace-link {
  margin-top: 24px;
  font-weight: 800;
  font-size: 15.5px;
  display: inline-block;
}

/* ---------- Moments ---------- */

.moments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.moment-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.moment-card:hover { transform: translateY(-4px); border-color: rgba(212, 162, 76, 0.35); }
.moment-card .m-icon { font-size: 26px; margin-bottom: 12px; }
.moment-card h3 { font-size: 18px; margin-bottom: 6px; }
.moment-card p { font-size: 14px; color: var(--muted); font-weight: 600; }

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

.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 800;
  font-size: 16.5px;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.25s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 600;
}

/* ---------- Invitation ---------- */

.invite {
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 500px at 50% 100%, rgba(44, 26, 102, 0.6) 0%, rgba(16, 12, 40, 0) 70%);
}
.invite .container { position: relative; }
.invite-cosmo {
  width: 150px;
  margin: 0 auto 8px;
  animation: bob 5s ease-in-out infinite;
}
.invite h2 {
  font-size: clamp(32px, 4.6vw, 48px);
  margin-bottom: 16px;
  text-wrap: balance;
}
.invite > .container > p {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 34px;
}
.invite .notify-form { margin: 0 auto; }
.invite .pill { margin-bottom: 28px; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 48px 0 40px;
  font-size: 14.5px;
  color: var(--faint);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer .brand { font-size: 20px; }
.footer .brand img { width: 26px; height: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 700; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-note {
  width: 100%;
  text-align: center;
  margin-top: 26px;
  font-size: 13px;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- 404 ---------- */

.lost {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
}
.lost img {
  width: 150px;
  margin-bottom: 10px;
  animation: bob 5s ease-in-out infinite;
}
.lost .code {
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.lost h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 14px; text-wrap: balance; }
.lost p { color: var(--muted); font-size: 17.5px; max-width: 440px; margin-bottom: 30px; }

/* ---------- Legal pages ---------- */

.legal {
  padding: 140px 0 80px;
  max-width: 760px;
  margin: 0 auto;
  width: calc(100% - 48px);
}
.legal h1 { font-size: clamp(30px, 4.5vw, 40px); margin-bottom: 8px; }
.legal .subtitle { color: var(--gold); font-size: 14.5px; font-weight: 700; margin-bottom: 40px; }
.legal h2 {
  font-size: 21px;
  color: var(--gold);
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal p { margin-bottom: 15px; color: var(--muted); font-size: 15.5px; }
.legal strong { color: #FFFFFF; }
.legal .backlink { display: inline-block; margin-bottom: 28px; font-weight: 800; font-size: 15px; }

.legal ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.legal li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15.5px;
}
.legal li::before {
  content: "✦";
  position: absolute;
  left: 1px;
  top: 0;
  color: var(--gold);
  animation: bullet-twinkle 2.6s ease-in-out infinite;
}
.legal li:nth-child(3n+2)::before { animation-delay: 0.9s; }
.legal li:nth-child(3n)::before { animation-delay: 1.8s; }
@keyframes bullet-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-copy .notify-form { margin: 0 auto; }
  .hero-trust { justify-content: center; }
  .phone-wrap { margin-top: 16px; }
  .phone { width: min(280px, 78vw); }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-grid .gallery { max-width: 560px; margin: 0 auto; }
  .cast { grid-template-columns: 1fr; }
  .cast-lineup {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(8px, 1.4vw, 14px);
    margin-top: 26px;
  }
  .cast-stage { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .cast-portrait { width: min(240px, 64vw); margin: 0 auto; }
  .cast-play { margin: 0 auto; }
  .peace-grid { grid-template-columns: 1fr; }
  .peace-cosmo { order: -1; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .moments { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .art-card:nth-child(even) { transform: rotate(1.2deg); }
  .trust-grid { grid-template-columns: 1fr; }
  .moments { grid-template-columns: 1fr; }
  .notify-form { flex-direction: column; }
  .notify-form .btn { width: 100%; }
  .hero { padding-top: 108px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
