/* Storyscape — The Secret Sounds of the Bedtime Story Society */

:root {
  --midnight: #1a1a2e;
  --deep-plum: #2d1b4e;
  --twilight: #4a3f6b;
  --starlight: #e8d5f5;
  --moonlight: #f5f0ff;
  --gold: #c9a84c;
  --gold-dim: #a8852e;
  --warm-cream: #fff8f0;
  --ember: #e8834a;
  --ember-soft: #f5a97e;
  --text-dark: #1a1a2e;
  --text-mid: #5a4f6b;
  --text-light: #8a7fa0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--warm-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--starlight); color: var(--midnight); }

/* ─── Navigation ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(250, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.nav-logo {
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--midnight);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-logo span {
  color: var(--gold);
}

.nav-cta {
  padding: 10px 24px;
  background: var(--midnight);
  color: var(--warm-cream);
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 40px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--twilight); transform: translateY(-1px); }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  background: linear-gradient(160deg, var(--moonlight) 0%, var(--warm-cream) 55%, #f0e6ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Georgia', serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 40px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--midnight);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--twilight);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-mid);
  margin: 20px 0 40px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background: var(--midnight);
  color: var(--warm-cream);
  font-family: 'Georgia', serif;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 40px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(45,27,78,0.25);
}
.btn-primary:hover {
  background: var(--twilight);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45,27,78,0.3);
}

.btn-ghost {
  display: inline-block;
  padding: 16px 32px;
  color: var(--text-mid);
  font-family: 'Georgia', serif;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid rgba(90,79,107,0.25);
  border-radius: 40px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--twilight); color: var(--midnight); }

/* ─── Trust note ──────────────────────────────────────────── */
.trust-note {
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--text-light);
  font-family: 'Georgia', serif;
}

/* ─── Divider ornament ────────────────────────────────────── */
.ornament {
  text-align: center;
  padding: 20px 0;
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  opacity: 0.6;
}

/* ─── How it works ───────────────────────────────────────── */
.section {
  padding: 96px 48px;
}

.section-alt {
  background: var(--moonlight);
}

.section-label {
  font-family: 'Georgia', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--midnight);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 900px;
}

.step {
  background: white;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(45,27,78,0.06);
  border: 1px solid rgba(201,168,76,0.12);
}

.step-num {
  font-family: 'Georgia', serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
  font-style: italic;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ─── Features ────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 960px;
}

.feature-card {
  padding: 32px 28px;
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(45,27,78,0.07);
  box-shadow: 0 2px 12px rgba(45,27,78,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(45,27,78,0.1); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--starlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ─── Quote / social proof ────────────────────────────────── */
.quote-section {
  background: var(--midnight);
  color: var(--warm-cream);
  padding: 80px 48px;
  text-align: center;
}

.quote-text {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.5;
  color: var(--starlight);
}

.quote-attr {
  font-size: 0.85rem;
  color: rgba(232,213,245,0.6);
  letter-spacing: 0.08em;
}

/* ─── Inline hero signup ─────────────────────────────────── */
.inline-signup {
  padding: 40px 48px 48px;
  text-align: center;
  background: var(--deep-plum);
}

.inline-signup-label {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  color: var(--starlight);
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.inline-signup-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 440px;
  margin: 0 auto;
}

.inline-signup-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 20px;
  border: 1.5px solid rgba(232,213,245,0.3);
  border-radius: 40px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--midnight);
  background: rgba(255,255,255,0.92);
  outline: none;
  transition: border-color 0.2s;
}
.inline-signup-form input::placeholder { color: var(--text-light); }
.inline-signup-form input:focus { border-color: var(--gold); }

.inline-signup-form button {
  padding: 13px 28px;
  background: var(--gold);
  color: var(--midnight);
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.inline-signup-form button:hover { background: var(--gold-dim); }

.inline-signup-success {
  display: none;
  color: var(--gold);
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1rem;
  margin-top: 12px;
}

/* ─── Try a Chapter ──────────────────────────────────────── */
.try-section {
  padding: 80px 48px;
  background: var(--midnight);
  color: var(--starlight);
  text-align: center;
}

.try-inner { margin-bottom: 48px; }

.try-section .section-label { color: var(--gold); opacity: 0.8; }

.try-title {
  font-family: 'Georgia', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: normal;
  color: var(--moonlight);
  margin: 12px auto 20px;
  max-width: 520px;
  line-height: 1.35;
}

.try-sub {
  font-size: 1rem;
  color: var(--starlight);
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 1.7;
  opacity: 0.85;
}

.try-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--midnight);
  font-family: 'Georgia', serif;
  font-weight: bold;
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.try-btn:hover { background: var(--gold-dim); }

.try-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--starlight);
  opacity: 0.5;
  font-style: italic;
}

.try-signup {
  border-top: 1px solid rgba(232,213,245,0.12);
  padding-top: 40px;
  max-width: 480px;
  margin: 0 auto;
}

.try-signup-label {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: var(--starlight);
  margin-bottom: 20px;
  font-style: italic;
  opacity: 0.85;
}

.try-signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.try-signup-form input {
  flex: 1;
  min-width: 200px;
  padding: 13px 20px;
  border: 1.5px solid rgba(232,213,245,0.3);
  border-radius: 40px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--midnight);
  background: rgba(255,255,255,0.9);
  outline: none;
  transition: border-color 0.2s;
}
.try-signup-form input::placeholder { color: var(--text-light); }
.try-signup-form input:focus { border-color: var(--gold); }

.try-signup-form button {
  padding: 13px 28px;
  background: var(--gold);
  color: var(--midnight);
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}
.try-signup-form button:hover { background: var(--gold-dim); }

.try-signup-success {
  display: none;
  color: var(--gold);
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 12px;
}

/* ─── Waitlist ────────────────────────────────────────────── */
.waitlist-section {
  padding: 96px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--warm-cream) 0%, #f5eeff 100%);
}

.waitlist-section .section-title { margin-bottom: 12px; }
.waitlist-section .section-sub { margin: 0 auto 48px; }

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form > input[type="email"] {
  width: 100%;
}

.waitlist-optional-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.waitlist-optional-row input,
.waitlist-optional-row select {
  flex: 1;
}

.waitlist-form input,
.waitlist-form select {
  padding: 14px 20px;
  border: 1.5px solid rgba(45,27,78,0.2);
  border-radius: 40px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--midnight);
  background: white;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.waitlist-form input::placeholder { color: var(--text-light); }
.waitlist-form input:focus,
.waitlist-form select:focus { border-color: var(--gold); }
/* Chevron for select */
.waitlist-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a7fa0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  color: var(--text-light);
}
.waitlist-form select:valid:not([value=""]) { color: var(--midnight); }

.waitlist-form button {
  width: 100%;
  padding: 14px 32px;
  background: var(--midnight);
  color: var(--warm-cream);
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}
.waitlist-form button:hover { background: var(--twilight); transform: translateY(-1px); }

@media (max-width: 480px) {
  .waitlist-optional-row { flex-direction: column; }
}

.waitlist-privacy {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  font-family: 'Georgia', serif;
}

.waitlist-success {
  display: none;
  padding: 20px;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(201,168,76,0.25);
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(45,27,78,0.08);
}

.waitlist-success.visible { display: block; }

.waitlist-success h3 {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  color: var(--midnight);
  margin-bottom: 8px;
}

.waitlist-success p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ─── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--midnight);
  color: rgba(232,213,245,0.6);
  padding: 40px 48px;
  text-align: center;
  font-family: 'Georgia', serif;
  font-size: 0.82rem;
}

footer a { color: rgba(232,213,245,0.6); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--gold); }
footer p { margin-bottom: 8px; }

/* ─── Chapter Demo (Try a Chapter) ──────────────────────────── */
.chapter-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
  background: var(--midnight);
  text-align: center;
  min-height: 320px;
}

.chapter-demo-label {
  font-family: 'Georgia', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 12px;
}

.chapter-demo-title {
  font-family: 'Georgia', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: var(--moonlight);
  margin-bottom: 8px;
  line-height: 1.3;
  font-style: italic;
}

.chapter-demo-sub {
  font-size: 0.85rem;
  color: var(--starlight);
  opacity: 0.6;
  margin-bottom: 40px;
  font-family: 'Georgia', serif;
}

/* Play button circle */
.chapter-circle-wrap {
  position: relative;
  margin-bottom: 28px;
}

.chapter-circle {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--gold) 0%, var(--gold-dim) 60%, rgba(168,133,46,0.3) 100%);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(201,168,76,0.3), 0 0 60px rgba(201,168,76,0.1);
}

.chapter-circle:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 30px rgba(201,168,76,0.5), 0 0 80px rgba(201,168,76,0.2);
}

.chapter-play-btn {
  background: none;
  border: none;
  color: var(--midnight);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.chapter-play-btn:hover { transform: scale(1.1); }
.chapter-play-btn:active { transform: scale(0.95); }

/* Ornate ring decoration */
.chapter-circle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.4);
  pointer-events: none;
}

.chapter-circle::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.15);
  pointer-events: none;
}

.chapter-label {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--starlight);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.chapter-subtitle {
  font-size: 0.78rem;
  color: var(--starlight);
  opacity: 0.5;
  font-family: 'Georgia', serif;
  font-style: italic;
}

/* Scene label */
.chapter-scene-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 20px;
  font-family: 'Georgia', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(232,213,245,0.5);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.chapter-scene-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

/* Layer track visual (subtle waveform indicator) */
.chapter-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  margin-bottom: 20px;
  opacity: 0;
  transition: opacity 0.5s;
}

.chapter-wave.active { opacity: 1; }

.chapter-wave-bar {
  width: 3px;
  background: rgba(201,168,76,0.4);
  border-radius: 2px;
  transition: height 0.1s;
}

/* CTA link */
.chapter-demo-cta {
  font-family: 'Georgia', serif;
  font-size: 0.82rem;
  color: var(--gold);
  opacity: 0.7;
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.chapter-demo-cta:hover { opacity: 1; }

/* ─── Read Aloud Section ─────────────────────────────────── */
.read-aloud-section {
  padding: 80px 48px;
  background: linear-gradient(180deg, #0d0d18 0%, #14102a 100%);
  text-align: center;
  color: var(--starlight);
}

.read-aloud-section .section-label {
  color: var(--gold);
  opacity: 0.75;
}

.read-aloud-title {
  font-family: 'Georgia', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--moonlight);
  margin: 12px auto 10px;
  font-style: italic;
}

.read-aloud-sub {
  font-size: 1.02rem;
  color: var(--starlight);
  opacity: 0.7;
  margin-bottom: 40px;
  font-family: 'Georgia', serif;
}

/* Consent gate */
.read-aloud-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
}

.read-aloud-passage {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--starlight);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 32px;
  opacity: 0.88;
  border-left: 2px solid rgba(201,168,76,0.35);
  padding-left: 20px;
  text-align: left;
}

.read-aloud-start-btn {
  padding: 15px 40px;
  background: var(--gold);
  color: var(--midnight);
  font-family: 'Georgia', serif;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(201,168,76,0.25);
  margin-bottom: 16px;
}
.read-aloud-start-btn:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.35);
}
.read-aloud-start-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.read-aloud-privacy {
  font-size: 0.78rem;
  color: var(--starlight);
  opacity: 0.45;
  font-family: 'Georgia', serif;
  font-style: italic;
}

/* Active stage */
.read-aloud-stage {
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Breathing orb ────────────────────────────────────────── */
.orb-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.orb {
  position: relative;
  z-index: 3;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(201,168,76,0.9) 0%, rgba(168,133,46,0.75) 55%, rgba(45,27,78,0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(201,168,76,0.2), 0 0 60px rgba(201,168,76,0.08);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  /* Default gentle breathing animation */
  animation: orb-breathe 3.8s ease-in-out infinite;
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 24px rgba(201,168,76,0.2), 0 0 60px rgba(201,168,76,0.08); }
  50%       { transform: scale(1.06); box-shadow: 0 0 36px rgba(201,168,76,0.32), 0 0 80px rgba(201,168,76,0.14); }
}

/* When voice is detected, pause animation (JS drives it directly) */
.orb-wrap[data-state="calm"] .orb,
.orb-wrap[data-state="animated"] .orb,
.orb-wrap[data-state="pause"] .orb {
  animation: none;
}

.orb-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.4));
  transition: opacity 0.3s;
}

/* Concentric rings */
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.25);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orb-ring-1 { width: 114px; height: 114px; opacity: 0.6; animation: ring-pulse 3.8s ease-in-out infinite 0.4s; }
.orb-ring-2 { width: 136px; height: 136px; opacity: 0.35; animation: ring-pulse 3.8s ease-in-out infinite 0.9s; }
.orb-ring-3 { width: 158px; height: 158px; opacity: 0.15; animation: ring-pulse 3.8s ease-in-out infinite 1.4s; }

@keyframes ring-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.9; transform: translate(-50%, -50%) scale(1.04); }
}

.orb-ring-2 { animation-name: ring-pulse; }
.orb-ring-2 { animation-delay: 0.9s; }

/* State label */
.read-aloud-state-label {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 28px;
  min-height: 1.4em;
  transition: opacity 0.4s;
}

/* Passage box shown while reading */
.read-aloud-passage-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 500px;
  text-align: left;
  margin-bottom: 8px;
}

.read-aloud-passage-live {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--starlight);
  line-height: 1.8;
  opacity: 0.88;
}

/* Stop button */
.read-aloud-stop-btn {
  margin-top: 20px;
  background: transparent;
  border: 1px solid rgba(232,213,245,0.2);
  color: var(--starlight);
  opacity: 0.5;
  font-family: 'Georgia', serif;
  font-size: 0.8rem;
  padding: 8px 20px;
  border-radius: 40px;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.04em;
}
.read-aloud-stop-btn:hover { opacity: 1; }

/* Denied state */
.read-aloud-denied {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--starlight);
  opacity: 0.7;
}

.read-aloud-fallback-link {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 1px;
  transition: opacity 0.2s;
  opacity: 0.8;
}
.read-aloud-fallback-link:hover { opacity: 1; }

/* ─── Founding Page ─────────────────────────────────────── */
.founding-hero {
  padding: 140px 48px 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--moonlight) 0%, var(--warm-cream) 60%, #f0e6ff 100%);
  position: relative;
}

.founding-seal {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.7;
  letter-spacing: 0.3em;
  margin-bottom: 24px;
}

.founding-guild {
  font-family: 'Georgia', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 20px;
}

.founding-headline {
  font-family: 'Georgia', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--midnight);
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.founding-pitch {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto 20px;
  line-height: 1.8;
  font-style: italic;
}

.founding-subline {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* Form section */
.founding-form-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--warm-cream) 0%, #f5eeff 100%);
}

.founding-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 56px 48px;
  box-shadow: 0 4px 32px rgba(45,27,78,0.08);
  border: 1px solid rgba(201,168,76,0.15);
}

.founding-card-title {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--midnight);
  margin-bottom: 12px;
}

.founding-card-sub {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Form */
.founding-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.founding-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.founding-field label {
  font-family: 'Georgia', serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-mid);
}

.founding-required { color: var(--ember); }

.founding-field input,
.founding-field select,
.founding-field textarea {
  padding: 14px 18px;
  border: 1.5px solid rgba(45,27,78,0.18);
  border-radius: 14px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--midnight);
  background: white;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.founding-field input::placeholder,
.founding-field textarea::placeholder { color: var(--text-light); }
.founding-field input:focus,
.founding-field select:focus,
.founding-field textarea:focus { border-color: var(--gold); }

.founding-field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.founding-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a7fa0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  color: var(--text-light);
}
.founding-field select:valid:not([value=""]) { color: var(--midnight); }

/* Radio group */
.founding-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.founding-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid rgba(45,27,78,0.18);
  border-radius: 40px;
  cursor: pointer;
  font-family: 'Georgia', serif;
  font-size: 0.88rem;
  color: var(--text-mid);
  transition: border-color 0.2s, background 0.2s;
}

.founding-radio:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
  color: var(--midnight);
}

.founding-radio input[type="radio"] { display: none; }

/* Submit button */
.founding-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--midnight);
  color: var(--warm-cream);
  font-family: 'Georgia', serif;
  font-size: 1rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 24px rgba(45,27,78,0.2);
}
.founding-submit:hover { background: var(--twilight); transform: translateY(-1px); }
.founding-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.founding-privacy {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  font-family: 'Georgia', serif;
  text-align: center;
}

/* Confirmation */
.founding-confirmation {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}

.founding-confirmation-seal {
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 24px;
}

.founding-confirmation-text {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--midnight);
  margin-bottom: 12px;
}

.founding-confirmation-sub {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 380px;
}

/* ─── World Picker ───────────────────────────────────────── */
.worlds-section {
  padding: 80px 48px;
  background: linear-gradient(180deg, #0d0d18 0%, #10102a 60%, #0a1a10 100%);
  text-align: center;
  color: var(--starlight);
}

.worlds-label {
  color: var(--gold);
  opacity: 0.75;
}

.worlds-title {
  font-family: 'Georgia', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--moonlight);
  margin: 12px auto 10px;
  font-style: italic;
}

.worlds-sub {
  font-size: 0.9rem;
  color: var(--starlight);
  opacity: 0.6;
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.worlds-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}

/* Forest variant of scene tag */
.chapter-scene-tag--forest {
  background: rgba(60, 160, 80, 0.12);
  color: #7dd08a;
  border-color: rgba(60, 160, 80, 0.25);
}

/* Forest variant of play circle */
.chapter-circle--forest {
  background: radial-gradient(circle at 35% 35%, rgba(60,160,80,0.35) 0%, rgba(10,40,20,0.9) 60%);
  border-color: rgba(60,160,80,0.3);
  box-shadow: 0 0 40px rgba(60,160,80,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}

.chapter-circle--forest::before {
  border-color: rgba(60,160,80,0.2);
}
.chapter-circle--forest::after {
  border-color: rgba(60,160,80,0.1);
}

/* Ghost "coming soon" tile */
.world-card--ghost {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(201,168,76,0.2);
  border-radius: 20px;
  padding: 40px 36px;
  width: 280px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0.55;
  transition: opacity 0.25s;
}
.world-card--ghost:hover { opacity: 0.75; }

.world-ghost-tag {
  font-family: 'Georgia', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  padding: 5px 14px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 20px;
}

.world-ghost-title {
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--moonlight);
  font-style: italic;
  opacity: 0.7;
}

.world-ghost-sub {
  font-size: 0.82rem;
  color: var(--starlight);
  opacity: 0.5;
  line-height: 1.6;
  max-width: 220px;
  text-align: center;
}

.world-ghost-cta {
  font-size: 0.78rem;
  color: var(--gold);
  opacity: 0.6;
  text-decoration: none;
  font-family: 'Georgia', serif;
  border-bottom: 1px dotted rgba(201,168,76,0.3);
  transition: opacity 0.2s;
}
.world-ghost-cta:hover { opacity: 1; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .section { padding: 64px 24px; }
  .waitlist-section { padding: 64px 24px; }
  .quote-section { padding: 64px 24px; }
  .footer { padding: 32px 24px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .worlds-section { padding: 60px 20px; }
  .worlds-picker { flex-direction: column; align-items: center; }
  .world-card--ghost { width: 100%; max-width: 320px; }
}