/* ===========================
   Storyweaver Landing Page
   Warm & Whimsical Theme
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #FFF8F0;
  --cream-dark: #FFF0E0;
  --yellow: #F5C542;
  --yellow-light: #FFF3D6;
  --coral: #F28B82;
  --coral-light: #FDE8E8;
  --green: #A8C5A0;
  --green-light: #E8F5E8;
  --lavender: #C5B4E3;
  --lavender-light: #E8E4F5;
  --blue-light: #E0F0FF;
  --brown: #3D2C2E;
  --brown-light: #6B5456;
  --tan: #E8D5B8;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(61, 44, 46, 0.06);
  --shadow-md: 0 4px 20px rgba(61, 44, 46, 0.08);
  --shadow-lg: 0 8px 40px rgba(61, 44, 46, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--brown);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--coral);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--brown-light);
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(242, 139, 130, 0.3);
}

.btn-primary:hover {
  background: #E87A72;
  box-shadow: 0 6px 20px rgba(242, 139, 130, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--brown);
  border: 2px solid var(--tan);
}

.btn-secondary:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 248, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--tan);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--brown);
}

.logo-icon {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--brown-light);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--coral);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--yellow-light) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--coral-light) 0%, transparent 70%);
  bottom: -50px;
  left: -100px;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--lavender-light) 0%, transparent 70%);
  top: 50%;
  left: 40%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--coral);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--brown-light);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}

/* --- Waitlist Form --- */
.waitlist-form {
  max-width: 460px;
}

.waitlist-input-wrap {
  display: flex;
  gap: 8px;
  background: var(--white);
  padding: 6px;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.waitlist-input-wrap:focus-within {
  border-color: var(--coral);
}

.waitlist-input-wrap input {
  flex: 1;
  border: none;
  background: none;
  padding: 10px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  color: var(--brown);
  outline: none;
  min-width: 0;
}

.waitlist-input-wrap input::placeholder {
  color: var(--tan);
}

.waitlist-note {
  font-size: 13px;
  color: var(--brown-light);
  margin-top: 12px;
  padding-left: 16px;
}

.waitlist-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--green-light);
  border-radius: var(--radius-md);
  color: #2D6A2E;
  font-weight: 600;
}

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

/* --- Book Mockup (Hero) --- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-mockup {
  position: relative;
  width: 320px;
  height: 400px;
  perspective: 800px;
  transform-style: preserve-3d;
}

.book-cover {
  position: absolute;
  width: 280px;
  height: 380px;
  background: linear-gradient(145deg, #F5C542, #F0B830);
  border-radius: 4px 16px 16px 4px;
  box-shadow: var(--shadow-lg), 4px 4px 0 var(--tan);
  transform: rotateY(-8deg);
  z-index: 3;
  overflow: hidden;
}

.book-cover-inner {
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.book-cover-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cover-character {
  position: absolute;
  border-radius: 50%;
}

.cover-child {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--coral-light), var(--coral));
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(242, 139, 130, 0.3);
}

.cover-child::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--cream);
  border-radius: 50%;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.cover-child::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 20px;
  border-bottom: 3px solid var(--brown);
  border-radius: 0 0 50% 50%;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.cover-parent {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--lavender-light), var(--lavender));
  bottom: 170px;
  right: 40px;
  box-shadow: 0 4px 12px rgba(197, 180, 227, 0.3);
}

.cover-stars span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  opacity: 0.6;
}

.cover-stars span:nth-child(1) { top: 20px; left: 30px; width: 6px; height: 6px; }
.cover-stars span:nth-child(2) { top: 40px; right: 40px; width: 10px; height: 10px; }
.cover-stars span:nth-child(3) { top: 70px; left: 60px; width: 5px; height: 5px; }
.cover-stars span:nth-child(4) { top: 30px; left: 150px; width: 7px; height: 7px; }
.cover-stars span:nth-child(5) { top: 80px; right: 30px; width: 4px; height: 4px; }

.book-cover-title {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--brown);
  text-align: center;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.book-cover-subtitle {
  font-size: 13px;
  color: var(--brown-light);
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 370px;
  background: linear-gradient(to right, #D4A830, #E0B835, #D4A830);
  border-radius: 4px 0 0 4px;
  transform: rotateY(-8deg) translateX(-18px);
  z-index: 2;
}

.book-pages {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 1;
}

.page {
  position: absolute;
  width: 265px;
  height: 370px;
  background: var(--cream);
  border-radius: 2px 12px 12px 2px;
  border: 1px solid var(--tan);
}

.page-1 { transform: translateX(6px) translateY(2px); }
.page-2 { transform: translateX(10px) translateY(4px); opacity: 0.7; }
.page-3 { transform: translateX(14px) translateY(6px); opacity: 0.4; }

.hero-badge {
  position: absolute;
  bottom: 20px;
  right: -10px;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

/* --- Trust Bar --- */
.trust-bar {
  padding: 32px 0;
  background: var(--white);
  border-top: 1px solid var(--tan);
  border-bottom: 1px solid var(--tan);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brown-light);
}

.trust-item svg {
  color: var(--yellow);
  flex-shrink: 0;
}

/* --- How It Works --- */
.how-it-works {
  background: var(--white);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 200px;
  text-align: center;
  padding: 0 8px;
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 20px;
  color: var(--coral);
  transition: transform 0.2s ease;
}

.step:hover .step-icon {
  transform: scale(1.05);
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--brown-light);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 36px;
  flex-shrink: 0;
}

/* --- Occasions Grid --- */
.stories {
  background: var(--cream);
}

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

.occasion-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.occasion-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.occasion-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.occasion-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.occasion-card p {
  font-size: 15px;
  color: var(--brown-light);
  line-height: 1.6;
}

/* --- Illustration Styles --- */
.styles {
  background: var(--white);
}

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

.style-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.style-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.style-preview {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.style-sample-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.art-element {
  position: absolute;
}

.art-sun {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  top: 20px;
  right: 25px;
}

.art-hill {
  width: 160%;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50% 50% 0 0;
  bottom: 0;
  left: -30%;
}

.art-tree {
  width: 30px;
  height: 60px;
  bottom: 30px;
  left: 25px;
}

.art-tree::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(168, 197, 160, 0.5);
  border-radius: 50%;
  top: 0;
  left: -5px;
}

.art-tree::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 25px;
  background: rgba(139, 119, 101, 0.4);
  border-radius: 3px;
  bottom: 0;
  left: 12px;
}

.art-character {
  width: 45px;
  height: 65px;
  bottom: 35px;
  right: 35%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50% 50% 20% 20%;
}

.art-character::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}

/* Watercolor style - softer edges */
.watercolor-art .art-hill {
  filter: blur(3px);
}

.watercolor-art .art-character {
  filter: blur(1px);
}

/* Pixar style - more defined */
.pixar-art .art-character {
  border-radius: 40% 40% 15% 15%;
  background: rgba(255, 255, 255, 0.45);
}

.pixar-art .art-sun {
  background: rgba(255, 255, 200, 0.7);
}

/* Anime style - sharper */
.anime-art .art-character {
  border-radius: 30% 30% 10% 10%;
}

.anime-art .art-sun {
  background: rgba(255, 220, 220, 0.6);
}

/* Classic style - warm tones */
.classic-art .art-hill {
  background: rgba(200, 180, 140, 0.3);
}

.classic-art .art-character {
  background: rgba(200, 180, 140, 0.35);
}

.style-card h3 {
  font-size: 18px;
  padding: 16px 20px 4px;
}

.style-card p {
  font-size: 14px;
  color: var(--brown-light);
  padding: 0 20px 20px;
}

/* --- Sample Preview --- */
.preview {
  background: var(--cream);
}

.preview-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.preview-content h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.preview-content p {
  font-size: 17px;
  color: var(--brown-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.preview-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
}

.preview-features li svg {
  flex-shrink: 0;
}

.preview-visual {
  display: flex;
  justify-content: center;
}

.book-spread {
  display: flex;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.spread-left {
  flex: 1;
  background: linear-gradient(135deg, #FDEBD3, #F7D1BA, #E8C4D8);
  min-height: 300px;
  position: relative;
}

.spread-illustration {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illust-scene {
  position: relative;
  width: 100%;
  height: 100%;
}

.illust-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: rgba(168, 197, 160, 0.3);
  border-radius: 50% 60% 0 0;
}

.illust-char {
  position: absolute;
  width: 60px;
  height: 80px;
  background: rgba(242, 139, 130, 0.4);
  border-radius: 45% 45% 20% 20%;
  bottom: 35%;
  left: 50%;
  transform: translateX(-50%);
}

.illust-char::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(242, 139, 130, 0.45);
  border-radius: 50%;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.illust-detail {
  position: absolute;
  width: 25px;
  height: 50px;
  bottom: 30%;
  left: 25%;
}

.illust-detail::before {
  content: '';
  position: absolute;
  width: 35px;
  height: 35px;
  background: rgba(168, 197, 160, 0.5);
  border-radius: 50%;
  top: 0;
}

.illust-detail::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 20px;
  background: rgba(139, 119, 101, 0.3);
  border-radius: 3px;
  bottom: 0;
  left: 15px;
}

.spread-right {
  flex: 1;
  background: var(--cream);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spread-story {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.8;
  color: var(--brown);
}

.spread-page {
  font-size: 12px;
  color: var(--tan);
  margin-top: 24px;
  text-align: right;
}

/* --- Pricing --- */
.pricing {
  background: var(--white);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: transform 0.2s ease;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-featured {
  background: var(--white);
  border-color: var(--coral);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}

.pricing-featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--yellow-light);
  color: #B8860B;
  margin-bottom: 16px;
}

.pricing-featured .pricing-badge {
  background: var(--coral-light);
  color: #C0392B;
}

.pricing-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.price {
  margin-bottom: 16px;
}

.price-amount {
  font-family: 'Lora', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--brown);
}

.price-unit {
  font-size: 15px;
  color: var(--brown-light);
  margin-left: 4px;
}

.pricing-desc {
  font-size: 15px;
  color: var(--brown-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.pricing-features li svg {
  flex-shrink: 0;
}

/* --- Final CTA --- */
.cta {
  background: var(--cream);
}

.cta-inner {
  position: relative;
  background: linear-gradient(135deg, var(--yellow-light), var(--coral-light), var(--lavender-light));
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
}

.cta-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
}

.cta-shape-1 {
  width: 200px;
  height: 200px;
  background: var(--yellow);
  top: -40px;
  left: -40px;
}

.cta-shape-2 {
  width: 160px;
  height: 160px;
  background: var(--coral);
  bottom: -40px;
  right: -20px;
}

.cta-inner h2 {
  font-size: 40px;
  margin-bottom: 16px;
  position: relative;
}

.cta-inner > p {
  font-size: 18px;
  color: var(--brown-light);
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
}

.waitlist-form-cta {
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

/* --- Footer --- */
.footer {
  background: var(--brown);
  color: rgba(255, 248, 240, 0.7);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 248, 240, 0.1);
}

.footer-brand .logo {
  color: var(--cream);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 15px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 64px;
  justify-content: flex-end;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cream);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
}

/* ===========================
   Animations
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.fade-in-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.fade-in-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.fade-in-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }
.fade-in-stagger.visible > *:nth-child(9) { transition-delay: 0.45s; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .waitlist-form {
    margin: 0 auto;
  }

  .hero-visual {
    order: -1;
  }

  .book-mockup {
    width: 260px;
    height: 340px;
  }

  .book-cover {
    width: 230px;
    height: 320px;
  }

  .book-spine {
    height: 310px;
  }

  .page {
    width: 220px;
    height: 310px;
  }

  .book-cover-title {
    font-size: 20px;
  }

  .styles-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-featured {
    transform: none;
  }

  .pricing-featured:hover {
    transform: translateY(-4px);
  }

  .preview-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .preview-content {
    text-align: center;
  }

  .preview-features {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--tan);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .waitlist-input-wrap {
    flex-direction: column;
    border-radius: var(--radius-md);
    gap: 0;
  }

  .waitlist-input-wrap input {
    padding: 14px 16px;
  }

  .waitlist-input-wrap .btn {
    border-radius: 0 0 12px 12px;
  }

  .trust-items {
    gap: 24px;
    justify-content: center;
  }

  .trust-item span {
    font-size: 14px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .step {
    max-width: 320px;
  }

  .step-connector {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .occasions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .styles-showcase {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .book-spread {
    flex-direction: column;
  }

  .spread-left {
    min-height: 200px;
  }

  .spread-right {
    padding: 28px 24px;
  }

  .cta-inner {
    padding: 56px 24px;
  }

  .cta-inner h2 {
    font-size: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 40px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .cta-inner h2 {
    font-size: 26px;
  }

  .price-amount {
    font-size: 40px;
  }

  .book-mockup {
    width: 220px;
    height: 290px;
  }

  .book-cover {
    width: 200px;
    height: 270px;
  }

  .book-spine {
    height: 260px;
  }

  .page {
    width: 190px;
    height: 260px;
  }

  .book-cover-title {
    font-size: 18px;
  }

  .cover-child {
    width: 60px;
    height: 60px;
    bottom: 110px;
  }

  .cover-parent {
    width: 45px;
    height: 45px;
    bottom: 130px;
    right: 30px;
  }
}
