/* ============================================================
   StoryDrop — styles.css
   Mobile-first. Hanna-Barbera meets modern web.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Nunito:wght@400;600;700;800;900&display=swap');

/* ===== TOKENS ===== */
:root {
  --night:       #0f0a2e;
  --deep:        #1a1145;
  --purple:      #2d1b69;
  --teal:        #0e7490;
  --teal-bright: #22d3ee;
  --gold:        #f59e0b;
  --orange:      #f97316;
  --red:         #ef4444;
  --cream:       #fef9e7;
  --white:       #ffffff;
  --star:        #fde68a;

  --font-display: 'Bangers', cursive;
  --font-body:    'Nunito', sans-serif;

  --radius:   12px;
  --radius-lg: 20px;
  --shadow:   5px 5px 0 rgba(0,0,0,0.4);
  --shadow-lg: 8px 8px 0 rgba(0,0,0,0.4);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ===== STARS BACKGROUND ===== */
.stars-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.stars-bg::before {
  content: '';
  position: absolute;
  width: 2px; height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow:
    120px 80px 0 #fff, 240px 160px 0 rgba(255,255,255,0.6),
    380px 40px 0 #fff, 480px 200px 0 rgba(255,255,255,0.5),
    60px 300px 0 rgba(255,255,255,0.7), 700px 120px 0 #fff,
    820px 250px 0 rgba(255,255,255,0.4), 940px 90px 0 #fff,
    1050px 340px 0 rgba(255,255,255,0.6), 1150px 50px 0 #fff,
    200px 450px 0 rgba(255,255,255,0.5), 320px 520px 0 #fff,
    560px 400px 0 rgba(255,255,255,0.7), 680px 480px 0 rgba(255,255,255,0.4),
    780px 550px 0 #fff, 880px 420px 0 rgba(255,255,255,0.6),
    1000px 500px 0 rgba(255,255,255,0.3), 1100px 380px 0 #fff,
    150px 600px 0 rgba(255,255,255,0.5), 420px 650px 0 #fff,
    600px 700px 0 rgba(255,255,255,0.4), 800px 680px 0 rgba(255,255,255,0.6),
    1050px 620px 0 #fff, 300px 750px 0 rgba(255,255,255,0.5);
}
.stars-bg::after {
  content: '';
  position: absolute;
  width: 1px; height: 1px;
  border-radius: 50%;
  box-shadow:
    90px 130px 0 rgba(253,230,138,0.8), 270px 70px 0 rgba(253,230,138,0.6),
    450px 280px 0 rgba(253,230,138,0.9), 610px 160px 0 rgba(253,230,138,0.5),
    730px 320px 0 rgba(253,230,138,0.7), 860px 180px 0 rgba(253,230,138,0.8),
    970px 260px 0 rgba(253,230,138,0.4), 1080px 140px 0 rgba(253,230,138,0.6),
    180px 380px 0 rgba(253,230,138,0.5), 360px 430px 0 rgba(253,230,138,0.7),
    540px 490px 0 rgba(253,230,138,0.6), 720px 440px 0 rgba(253,230,138,0.4),
    900px 510px 0 rgba(253,230,138,0.8), 1020px 460px 0 rgba(253,230,138,0.5);
}

/* ===== LAYOUT HELPERS ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
section { position: relative; z-index: 10; }

/* ===== NAV ===== */
nav {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(15, 10, 46, 0.95);
  border-bottom: 3px solid var(--gold);
  backdrop-filter: blur(8px);
}
nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 3px 3px 0 var(--orange), -1px -1px 0 rgba(0,0,0,0.5);
}
.logo span { color: var(--teal-bright); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  padding: 10px 24px;
  border-radius: 6px;
  border: 3px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.4s;
}
.btn:hover { transform: translate(-2px,-2px); }
.btn:hover::after { left: 100%; }
.btn:active { transform: translate(1px,1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--night);
  border-color: rgba(0,0,0,0.25);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
  font-size: 1.15rem;
  padding: 12px 28px;
}
.btn-primary:hover { box-shadow: 6px 6px 0 rgba(0,0,0,0.35); }

.btn-primary-lg {
  font-size: 1.5rem;
  padding: 18px 40px;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.4);
}
.btn-primary-lg:hover { box-shadow: 8px 8px 0 rgba(0,0,0,0.4); }

.btn-nav {
  background: var(--gold);
  color: var(--night);
  border-color: var(--orange);
  box-shadow: 3px 3px 0 var(--orange);
  font-size: 0.95rem;
  padding: 9px 20px;
}
.btn-nav:hover { box-shadow: 5px 5px 0 var(--orange); }

/* ===== SECTION LABELS ===== */
.section-label {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--teal-bright);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 80px 20px 60px;
  background: radial-gradient(ellipse at top left, #2d1b69 0%, #1a1145 40%, var(--night) 100%);
  border-bottom: 4px solid var(--gold);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0, var(--gold) 20px, var(--orange) 20px, var(--orange) 40px);
}
.hero-text { max-width: 600px; }
.hero-badge {
  display: inline-block;
  background: var(--teal);
  border: 2px solid var(--teal-bright);
  color: var(--teal-bright);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: 2px;
  color: var(--cream);
  text-shadow: 4px 4px 0 var(--purple), 6px 6px 0 rgba(0,0,0,0.4);
  margin-bottom: 16px;
}
.hero h1 .highlight {
  color: var(--gold);
  text-shadow: 4px 4px 0 var(--orange), 6px 6px 0 rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(254,249,231,0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--gold); }
.hero-guarantee {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(254,249,231,0.6);
  font-weight: 600;
}
.hero-guarantee span { color: var(--teal-bright); }
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  border: 4px solid var(--gold);
  box-shadow: 8px 8px 0 var(--orange), 16px 16px 0 rgba(0,0,0,0.3);
  animation: float 4s ease-in-out infinite;
}
.star-burst {
  position: absolute;
  top: -16px; right: 10px;
  background: var(--gold);
  color: var(--night);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1px;
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  line-height: 1.2;
  border: 3px solid var(--orange);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
  transform: rotate(12deg);
  animation: pulse-star 2s ease-in-out infinite;
}

/* ===== PROBLEM ===== */
.problem {
  padding: 70px 20px;
  background: var(--deep);
  border-bottom: 4px solid var(--purple);
}
.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--cream);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}
.problem-lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(254,249,231,0.8);
  max-width: 600px;
  margin-bottom: 44px;
  line-height: 1.7;
}
.pain-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 50px;
}
.pain-card {
  background: var(--purple);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: var(--red);
}
.pain-emoji {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}
.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--cream);
  margin-bottom: 8px;
}
.pain-card p {
  font-size: 0.95rem;
  color: rgba(254,249,231,0.75);
  line-height: 1.65;
  font-weight: 600;
}
.problem-pivot {
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  border-radius: var(--radius-lg);
  border: 3px solid var(--teal-bright);
}
.problem-pivot h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3rem);
  letter-spacing: 2px;
  color: var(--cream);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}
.problem-pivot p {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(254,249,231,0.9);
  margin-top: 10px;
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how {
  padding: 70px 20px;
  background: radial-gradient(ellipse at center, #1a1145 0%, var(--night) 70%);
}
.how h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.5rem);
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--cream);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 960px;
  margin: 0 auto;
}
.step { text-align: center; }
.step-number {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--night);
  font-family: var(--font-display);
  font-size: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  border: 4px solid var(--night);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4), 0 0 0 3px var(--orange);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 10px;
}
.step p {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(254,249,231,0.8);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== WHY KIDS LOVE IT ===== */
.why {
  padding: 70px 20px;
  background: var(--deep);
  border-top: 4px solid var(--purple);
  border-bottom: 4px solid var(--purple);
}
.why-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.why-image img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 4px solid var(--teal-bright);
  box-shadow: 8px 8px 0 var(--teal), 16px 16px 0 rgba(0,0,0,0.3);
}
.why h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: 2px;
  color: var(--cream);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  margin-bottom: 28px;
  line-height: 1.1;
}
.why h2 span { color: var(--teal-bright); }
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feat-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feat-text h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 4px;
}
.feat-text p {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(254,249,231,0.75);
  line-height: 1.55;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 70px 20px;
  background: radial-gradient(ellipse at bottom right, #2d1b69 0%, var(--night) 70%);
}
.testimonials h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 44px;
  color: var(--cream);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  line-height: 1.15;
}
.testimonials h2 span { color: var(--gold); }
.reviews {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.review {
  background: var(--purple);
  border-radius: var(--radius);
  padding: 28px;
  border: 2px solid rgba(253,230,138,0.15);
  position: relative;
}
.review::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: 8px; left: 18px;
  line-height: 1;
  pointer-events: none;
}
.review-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.review-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
  border: 2px solid var(--teal-bright);
  flex-shrink: 0;
}
.reviewer-info h5 {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--gold);
}
.reviewer-info span {
  font-size: 0.8rem;
  color: rgba(254,249,231,0.55);
  font-weight: 600;
}

/* ===== PRICING ===== */
.pricing {
  padding: 70px 20px;
  background: var(--deep);
  text-align: center;
  border-top: 4px solid var(--gold);
}
.pricing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: 2px;
  color: var(--cream);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  margin-bottom: 10px;
}
.pricing-lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(254,249,231,0.7);
  margin-bottom: 44px;
}
.price-card {
  background: linear-gradient(145deg, var(--purple) 0%, #1e1060 100%);
  border: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 44px 28px 36px;
  max-width: 500px;
  margin: 0 auto 44px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.price-card::before {
  content: 'MOST MAGICAL';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--night);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 2px;
  padding: 6px 20px;
  border-radius: 20px;
  white-space: nowrap;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--gold);
  line-height: 1;
  text-shadow: 4px 4px 0 var(--orange);
}
.price-amount sup {
  font-size: 2.2rem;
  vertical-align: top;
  margin-top: 10px;
  display: inline-block;
}
.price-period {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(254,249,231,0.6);
  margin-bottom: 28px;
}
.price-includes {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-includes li {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.price-includes li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.guarantee {
  margin-top: 22px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-bright);
  background: rgba(14,116,144,0.15);
  border: 1px solid var(--teal);
  border-radius: 8px;
  padding: 12px 18px;
  display: block;
  line-height: 1.5;
}

/* ===== SIGNUP FORM ===== */
.signup-form-wrapper {
  max-width: 540px;
  margin: 0 auto;
  padding: 44px 24px 36px;
  background: linear-gradient(145deg, var(--purple) 0%, #1e1060 100%);
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--orange);
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(254,249,231,0.6);
  margin-bottom: 28px;
}
.form-section-label {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--teal-bright);
  text-transform: uppercase;
  margin: 20px 0 12px;
  display: block;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(254,249,231,0.65);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(253,230,138,0.2);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(254,249,231,0.3);
}
.form-group select option { background: var(--deep); color: var(--cream); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(253,230,138,0.3), transparent);
  margin: 18px 0;
}
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--night);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  padding: 18px;
  border-radius: 8px;
  border: 3px solid rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  margin-top: 8px;
  display: block;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.4s;
}
.btn-submit:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(0,0,0,0.3); }
.btn-submit:hover::after { left: 100%; }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: 2px 2px 0 rgba(0,0,0,0.3); }
.form-note {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(254,249,231,0.4);
  margin-top: 12px;
}

/* Form state feedback */
.form-error {
  background: rgba(239,68,68,0.12);
  border: 2px solid var(--red);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fca5a5;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
  line-height: 1.5;
}
.form-error.show { display: block; }
.form-loading {
  text-align: center;
  padding: 36px 20px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--gold);
  display: none;
}
.form-loading.show { display: block; }
.spinner {
  display: inline-block;
  width: 26px; height: 26px;
  border: 3px solid rgba(253,230,138,0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}
.field-error {
  font-size: 0.78rem;
  color: #fca5a5;
  font-weight: 700;
  margin-top: 5px;
  display: none;
}
.field-error.show { display: block; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--red);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.active { display: flex; align-items: flex-start; justify-content: center; }
.modal {
  background: var(--deep);
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 44px 24px 36px;
  max-width: 580px;
  width: 100%;
  position: relative;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.5);
  animation: modal-in 0.25s ease;
  margin: auto;
}
.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  color: rgba(254,249,231,0.45);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 4px 8px;
}
.modal-close:hover { color: var(--gold); }

/* ===== LEGAL MODAL ===== */
.legal-modal .modal { max-width: 660px; max-height: 85vh; overflow-y: auto; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--orange);
  margin-bottom: 18px;
}
.legal-content p {
  font-size: 0.95rem;
  color: rgba(254,249,231,0.8);
  line-height: 1.75;
  font-weight: 600;
  margin-bottom: 14px;
}
.legal-content h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--gold);
  margin: 22px 0 8px;
}
.legal-content .legal-meta {
  font-size: 0.82rem;
  color: rgba(254,249,231,0.5);
  margin-bottom: 20px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--night);
  border-top: 4px solid var(--gold);
  padding: 44px 20px 24px;
  position: relative;
  z-index: 10;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(254,249,231,0.5);
  margin-top: 6px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.footer-links a {
  color: rgba(254,249,231,0.55);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(253,230,138,0.12);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(254,249,231,0.35);
  font-weight: 600;
}
.footer-night {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--teal-bright);
}

/* ===== SUCCESS PAGE ===== */
.success-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  background: radial-gradient(ellipse at top, #2d1b69 0%, var(--night) 70%);
}
.success-icon {
  font-size: 5rem;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
  display: block;
}
.success-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5rem);
  letter-spacing: 2px;
  color: var(--gold);
  text-shadow: 4px 4px 0 var(--orange), 6px 6px 0 rgba(0,0,0,0.4);
  margin-bottom: 18px;
  line-height: 1.05;
}
.success-sub {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(254,249,231,0.85);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.success-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto 44px;
  text-align: left;
}
.success-step {
  background: var(--purple);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 2px solid rgba(253,230,138,0.15);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.success-step .s-icon { font-size: 1.8rem; flex-shrink: 0; }
.success-step h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 4px;
}
.success-step p {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(254,249,231,0.75);
  line-height: 1.55;
}
.whitelist-steps {
  list-style: none;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: whitelist;
}
.whitelist-steps li {
  counter-increment: whitelist;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(254,249,231,0.75);
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.whitelist-steps li::before {
  content: counter(whitelist);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--night);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.sample-story {
  max-width: 580px;
  margin: 0 auto;
  padding: 70px 24px;
}
.sample-story h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  letter-spacing: 2px;
  color: var(--cream);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  margin-bottom: 8px;
}
.sample-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--teal-bright);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}
.story-card {
  background: var(--deep);
  border: 3px solid var(--teal-bright);
  border-radius: var(--radius);
  padding: 32px 28px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.85;
  color: rgba(254,249,231,0.88);
  position: relative;
}
.story-card::before {
  content: 'Chapter 1';
  position: absolute;
  top: -14px; left: 20px;
  background: var(--teal);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 12px;
  border: 2px solid var(--teal-bright);
}
.story-card p + p { margin-top: 14px; }
.story-cliffhanger {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(253,230,138,0.2);
  font-style: italic;
  color: var(--gold);
  font-weight: 700;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  position: relative;
  z-index: 10;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  letter-spacing: 2px;
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--orange);
  margin-bottom: 8px;
  line-height: 1.1;
}
.legal-page .meta {
  font-size: 0.85rem;
  color: rgba(254,249,231,0.5);
  font-weight: 600;
  margin-bottom: 40px;
  display: block;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--teal-bright);
  margin: 36px 0 12px;
}
.legal-page p {
  font-size: 0.97rem;
  font-weight: 600;
  color: rgba(254,249,231,0.82);
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-page ul {
  margin: 0 0 14px 24px;
}
.legal-page ul li {
  font-size: 0.97rem;
  font-weight: 600;
  color: rgba(254,249,231,0.82);
  line-height: 1.8;
  margin-bottom: 6px;
}
.legal-page a {
  color: var(--teal-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-callout {
  background: var(--purple);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(254,249,231,0.9);
  line-height: 1.6;
}

/* ===== 404 PAGE ===== */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page .error-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 25vw, 14rem);
  color: var(--gold);
  text-shadow: 6px 6px 0 var(--orange), 12px 12px 0 rgba(0,0,0,0.4);
  line-height: 1;
  letter-spacing: 4px;
  animation: float 3s ease-in-out infinite;
}
.error-page h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  letter-spacing: 2px;
  color: var(--cream);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  margin: 12px 0 16px;
}
.error-page p {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(254,249,231,0.7);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-star {
  0%, 100% { transform: rotate(12deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.08); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes modal-in {
  from { transform: scale(0.88) translateY(16px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ===== TABLET: 640px+ ===== */
@media (min-width: 640px) {
  .pain-cards { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .reviews { display: grid; grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: row; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .hero-image img { max-width: 360px; }
}

/* ===== DESKTOP: 1024px+ ===== */
@media (min-width: 1024px) {
  nav { padding: 20px 48px; }
  .logo { font-size: 2rem; }
  .hero {
    flex-direction: row;
    align-items: center;
    padding: 100px 60px 70px;
  }
  .hero-text { flex: 1; }
  .hero-image { flex: 1; justify-content: flex-end; }
  .hero-image img { max-width: 520px; }
  .star-burst { width: 88px; height: 88px; font-size: 1rem; top: -20px; right: -8px; }
  .problem { padding: 90px 60px; }
  .how { padding: 90px 60px; }
  .why { padding: 90px 60px; }
  .why-grid { flex-direction: row; align-items: center; gap: 70px; }
  .why-image { flex: 1; }
  .why-image img { max-width: 100%; margin: 0; }
  .why-content { flex: 1; }
  .testimonials { padding: 90px 60px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .pricing { padding: 90px 60px; }
  footer { padding: 52px 60px 28px; }
  .success-steps { flex-direction: row; flex-wrap: wrap; }
  .success-step { flex: 1; min-width: 220px; }
}
