/* ================================================================
   Bookietots — Enchanted Storybook Theme
   Pure CSS · No framework · Mobile-first
   ================================================================ */

/* ----------------------------------------------------------------
   CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
  /* Purple palette */
  --purple-950: #0f0521;
  --purple-900: #1a0a3e;
  --purple-800: #2d1b69;
  --purple-700: #4c2f8a;
  --purple-600: #6d28d9;
  --purple-500: #7c3aed;
  --purple-400: #9d4edd;
  --purple-300: #c084fc;
  --purple-100: #ede9fe;
  --purple-50:  #f5f0ff;

  /* Gold / amber */
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-300: #fde68a;
  --gold-200: #fef3c7;

  /* Coral / rose */
  --rose-500: #f43f5e;
  --rose-400: #fb7185;
  --rose-300: #fda4af;
  --pink-500: #ec4899;

  /* Green / teal */
  --green-600: #059669;
  --green-500: #10b981;
  --green-200: #a7f3d0;
  --green-100: #dcfce7;
  --mint-50:   #f0fdf4;

  /* Neutrals */
  --cream-50:  #fffbf0;
  --cream-100: #fff8ee;
  --warm-50:   #fff8e1;
  --white:     #ffffff;
  --off-white: #fafaf9;
  --lavender:  #f0f0ff;

  /* Text */
  --text-900: #1e1b4b;
  --text-700: #3730a3;
  --text-500: #6d6ac0;
  --text-400: #8885cc;
  --text-300: #c4c3e0;
  --text-light: rgba(255,255,255,0.92);
  --text-light-muted: rgba(255,255,255,0.65);

  /* Font families */
  --font-heading: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;
  --font-accent:  'Caveat', cursive;

  /* Radii */
  --r-xs:   0.5rem;
  --r-sm:   0.875rem;
  --r-md:   1.25rem;
  --r-lg:   2rem;
  --r-xl:   2.5rem;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(124,58,237,0.10);
  --shadow-md:  0 8px 32px rgba(124,58,237,0.16);
  --shadow-lg:  0 20px 60px rgba(124,58,237,0.22);
  --shadow-glow:0 0 40px rgba(124,58,237,0.30);

  /* Transitions */
  --ease: cubic-bezier(0.4,0,0.2,1);
  --ease-bounce: cubic-bezier(0.34,1.56,0.64,1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-900);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

h1,h2,h3,h4,h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

/* ----------------------------------------------------------------
   LAYOUT UTILITIES
   ---------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem);
  position: relative;
}

.text-accent      { color: var(--purple-500); }
.text-accent-warm { color: var(--gold-500); }
.text-gold        { color: var(--gold-400); }
.text-light       { color: var(--text-light); }
.text-light-muted { color: var(--text-light-muted); }


/* ----------------------------------------------------------------
   SCROLL REVEAL ANIMATIONS
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Float animation for hero book */
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
.float-anim { animation: floatY 4s ease-in-out infinite; }

/* Twinkle for stars */
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50%       { opacity: 1;   transform: scale(1.3); }
}

/* Shimmer for sparkle decos */
@keyframes shimmer {
  0%   { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
  50%  { opacity: 1;   transform: scale(1.2) rotate(20deg); }
  100% { opacity: 0.3; transform: scale(0.8) rotate(40deg); }
}

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
  50%       { box-shadow: 0 0 50px rgba(124,58,237,0.6); }
}

/* Spin slow */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Bounce in */
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}


/* ================================================================
   NAVIGATION
   ================================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

#site-header.scrolled {
  background: rgba(26, 10, 62, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem,5vw,2rem);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-logo-icon { display: flex; align-items: center; }

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: white;
  letter-spacing: -0.01em;
}

/* Nav links */
.nav-links {
  display: none;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-full);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-links a:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

@media (min-width: 900px) {
  .nav-actions { margin-left: 0; }
}

/* Language button */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all var(--t-fast);
  letter-spacing: 0.03em;
}

.lang-btn:hover {
  border-color: rgba(255,255,255,0.6);
  color: white;
  background: rgba(255,255,255,0.1);
}

/* Waitlist button */
.btn-waitlist {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--purple-900);
  background: var(--gold-400);
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  transition: all var(--t-base) var(--ease-bounce);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-waitlist:hover {
  background: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}

/* Menu button */
.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--t-fast);
}

.menu-btn:hover { background: rgba(255,255,255,0.1); }

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--t-base) var(--ease);
}

.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) { .menu-btn { display: none; } }

/* Mobile menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: rgba(26, 10, 62, 0.98);
  backdrop-filter: blur(16px);
  padding: 1rem 1.5rem 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease), padding var(--t-slow) var(--ease);
}

.mobile-menu.open {
  max-height: 600px;
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--t-fast);
}

.mobile-menu a:hover { color: white; }
.mobile-menu a:last-of-type { border-bottom: none; }

.mobile-menu-bottom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 900px) { .mobile-menu { display: none !important; } }


/* ================================================================
   HERO SECTION
   ================================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  background: linear-gradient(140deg,
    var(--purple-950) 0%,
    var(--purple-900) 35%,
    var(--purple-800) 70%,
    #3d1a7a 100%
  );
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Stars layer */
.stars-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.star-dot {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--star-dur, 3s) ease-in-out infinite;
  animation-delay: var(--star-delay, 0s);
}

/* Hero decorative elements */
.hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.deco-sparkle {
  position: absolute;
  font-size: 1.2rem;
  color: var(--gold-400);
  animation: shimmer 3s ease-in-out infinite;
}

.deco-s1 { top: 20%; left: 8%;  animation-delay: 0s;    font-size: 1rem; }
.deco-s2 { top: 55%; left: 4%;  animation-delay: 0.7s;  font-size: 0.8rem; }
.deco-s3 { top: 30%; right: 5%; animation-delay: 1.4s;  font-size: 1.4rem; }
.deco-s4 { top: 70%; right: 8%; animation-delay: 0.3s;  font-size: 0.9rem; }
.deco-s5 { top: 80%; left: 15%; animation-delay: 1.8s;  font-size: 0.75rem; }

.deco-cloud { position: absolute; }
.deco-c1 { top: 5%;  left: 20%;  width: 280px; }
.deco-c2 { top: 15%; right: 10%; width: 200px; }

/* Hero content wrapper */
.hero-container {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px clamp(1.25rem,5vw,2rem) 80px;
  width: 100%;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

/* Hero text content */
.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-300);
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-accent {
  display: block;
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--rose-400) 50%, var(--purple-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Primary CTA */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--purple-900);
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  padding: 0.875rem 1.75rem;
  border-radius: var(--r-full);
  transition: all var(--t-base) var(--ease-bounce);
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245,158,11,0.55);
}

.btn-hero-primary:active { transform: translateY(-1px); }

/* Secondary CTA */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 0.875rem 1.75rem;
  border-radius: var(--r-full);
  transition: all var(--t-base);
}

.btn-hero-secondary:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* Trust note */
.hero-trust {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stat-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-stat-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

/* Hero visual */
.hero-visual {
  flex: 0 0 auto;
  width: clamp(280px, 42vw, 520px);
  position: relative;
  display: none;
}

@media (min-width: 900px) { .hero-visual { display: block; } }

/* Open book */
.open-book {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
}

.book-left-page,
.book-right-page {
  flex: 1;
  background: var(--cream-50);
  padding: 1.5rem;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.book-left-page {
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: linear-gradient(180deg, #fff9f0 0%, #fef3e2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.book-right-page {
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: linear-gradient(180deg, #fff 0%, #f5f0ff 100%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
}

.book-spine {
  width: 16px;
  background: linear-gradient(180deg, #4c2f8a 0%, #7c3aed 50%, #4c2f8a 100%);
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.2), inset 2px 0 4px rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.book-page-lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.book-page-lines .bl {
  height: 2px;
  background: rgba(124,58,237,0.12);
  border-radius: 1px;
}

.book-child-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--purple-300);
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(124,58,237,0.25);
}

.book-child-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.photo-fallback-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.book-child-photo.photo-fallback .photo-fallback-inner { display: flex; }

.book-child-photo img:not([style*="display:none"]) ~ .photo-fallback-inner { display: none; }

.book-child-photo svg {
  width: 90%;
  height: 90%;
}

.book-page-caption {
  font-family: var(--font-accent);
  font-size: 0.875rem;
  color: var(--purple-500);
  text-align: center;
}

.book-chapter {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--purple-400);
  margin-bottom: 0.25rem;
}

.book-story-text {
  font-size: 0.82rem;
  color: var(--text-900);
  line-height: 1.65;
}

.book-story-small { font-size: 0.75rem; color: var(--text-500); }

.book-name-highlight { color: var(--purple-500); }

.book-deco-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-300), transparent);
  margin: 0.5rem 0;
}

/* Book decoration badges */
.book-badge-star {
  position: absolute;
  top: -16px;
  right: 30px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.05em;
}

.book-badge-star svg { position: absolute; inset: 0; }
.book-badge-star span { position: relative; z-index: 1; text-transform: uppercase; }

.book-badge-name {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-600) 100%);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-full);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(124,58,237,0.4);
}

/* Floating books & stars around hero visual */
.float-book {
  position: absolute;
  width: 44px;
  animation: floatY 3.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.fb1 { top: -20px; left: -30px; animation-delay: 0.5s; animation-duration: 3.2s; transform: rotate(-15deg); }
.fb2 { bottom: 10px; left: -40px; animation-delay: 1.2s; animation-duration: 4s; transform: rotate(10deg); }

.float-star {
  position: absolute;
  font-size: 1.3rem;
  color: var(--gold-400);
  animation: shimmer 2.5s ease-in-out infinite;
}

.fs1 { top: 10px; right: -20px; animation-delay: 0s; font-size: 1.6rem; }
.fs2 { bottom: 40px; right: -30px; animation-delay: 0.8s; font-size: 1rem; }
.fs3 { bottom: -10px; left: 50%; animation-delay: 1.5s; font-size: 1.2rem; }

/* Hero wave */
.hero-wave {
  position: relative;
  margin-top: auto;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  display: block;
}


/* ================================================================
   SECTION COMMON STYLES
   ================================================================ */
.section-cream   { background: var(--cream-50); padding: clamp(4rem,8vw,7rem) 0; }
.section-lavender{ background: var(--lavender);  padding: clamp(4rem,8vw,7rem) 0; }
.section-warm    { background: var(--warm-50);   padding: clamp(4rem,8vw,7rem) 0; }
.section-dark    { background: var(--purple-900); padding: clamp(4rem,8vw,7rem) 0; position: relative; overflow: hidden; }
.section-waitlist{ background: linear-gradient(140deg, var(--purple-900) 0%, var(--purple-800) 60%, var(--purple-700) 100%); padding: clamp(4rem,8vw,7rem) 0; position: relative; overflow: hidden; }
.section-mint    { background: var(--mint-50);   padding: clamp(4rem,8vw,7rem) 0; }
.section-white   { background: var(--off-white);  padding: clamp(4rem,8vw,7rem) 0; }

/* Wave dividers at section bottoms */
.section-wave-bottom { line-height: 0; }
.section-wave-bottom svg { width: 100%; display: block; }

/* Chapter markers */
.chapter-marker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.chapter-num {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: 700;
  color: var(--purple-300);
  line-height: 1;
  flex-shrink: 0;
}

.chapter-num-warm  { color: rgba(245,158,11,0.5); }
.chapter-num-gold  { color: var(--gold-400); }
.chapter-num-green { color: var(--green-500); opacity: 0.7; }
.chapter-num-blue  { color: #60a5fa; opacity: 0.7; }

.chapter-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-300) 0%, transparent 100%);
  opacity: 0.3;
}

.chapter-line-warm  { background: linear-gradient(90deg, rgba(245,158,11,0.4) 0%, transparent 100%); }
.chapter-line-gold  { background: linear-gradient(90deg, var(--gold-400) 0%, transparent 100%); }
.chapter-line-green { background: linear-gradient(90deg, var(--green-500) 0%, transparent 100%); opacity: 0.4; }
.chapter-line-blue  { background: linear-gradient(90deg, #60a5fa 0%, transparent 100%); opacity: 0.4; }

/* Section heading block */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--text-900);
  margin: 0.6rem 0 0.875rem;
  letter-spacing: -0.02em;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-500);
  line-height: 1.7;
}

.section-head-light h2 { color: white; }
.section-head-light p  { color: var(--text-light-muted); }

/* Section badge chips */
.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-full);
}

.badge-purple      { background: var(--purple-100); color: var(--purple-600); }
.badge-gold        { background: var(--gold-200);   color: #92400e; }
.badge-gold-dark   { background: rgba(251,191,36,0.15); color: var(--gold-300); border: 1px solid rgba(251,191,36,0.3); }
.badge-pink        { background: #fce7f3; color: #9d174d; }
.badge-orange      { background: #ffedd5; color: #c2410c; }
.badge-green       { background: var(--green-100); color: var(--green-600); }
.badge-blue        { background: #dbeafe; color: #1d4ed8; }


/* ================================================================
   HOW IT WORKS — STEPS
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

.step-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-bounce), box-shadow var(--t-base);
  border: 1.5px solid rgba(124,58,237,0.06);
}

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

.step-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}

.step-icon-wrap svg { width: 44px; height: 44px; }

.step-icon-1 { background: var(--purple-100); }
.step-icon-2 { background: var(--gold-200); }
.step-icon-3 { background: var(--green-100); }
.step-icon-4 { background: #fce7f3; }

.step-num-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple-500);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-500);
  line-height: 1.65;
}


/* ================================================================
   DEMO / TRANSFORMATION SHOWCASE
   ================================================================ */
.transform-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .transform-showcase {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
  }
}

/* Before / After panels */
.transform-before,
.transform-after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.transform-label {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
}

.transform-label-before {
  background: #f3e8ff;
  color: var(--purple-600);
}

.transform-label-after {
  background: linear-gradient(135deg, var(--gold-200), #fce7f3);
  color: #92400e;
}

/* Transform image wrappers */
.transform-img-wrap,
.carousel-img-wrap {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  background: #f0e6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transform-img-wrap img,
.carousel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-photo { background: linear-gradient(160deg, #fde68a 0%, #fcd34d 100%); }
.img-book1 { background: linear-gradient(160deg, #ddd6fe 0%, #ede9fe 100%); }
.img-book2 { background: linear-gradient(160deg, #a5f3fc 0%, #bae6fd 100%); }

.transform-placeholder-inner,
.carousel-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 0.5rem;
  padding: 1rem;
}

.transform-img-wrap img:not([style*="display:none"]) ~ .transform-placeholder-inner { display: none; }
.carousel-img-wrap img:not([style*="display:none"]) ~ .carousel-placeholder-inner  { display: none; }

.transform-placeholder-inner svg,
.carousel-placeholder-inner svg {
  width: 65%;
  height: auto;
}

.placeholder-label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--purple-600);
  text-align: center;
}

/* Transform arrow */
.transform-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.arrow-wrap svg { width: 80px; height: 40px; }

.arrow-label {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--purple-500);
  font-weight: 600;
  white-space: nowrap;
}

/* Carousel */
.carousel-wrap {
  width: 100%;
  max-width: 280px;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--t-slow) var(--ease);
}

.carousel-caption {
  font-family: var(--font-accent);
  font-size: 0.875rem;
  color: var(--purple-500);
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 30px);
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: var(--purple-500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-fast);
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--purple-500);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-200, #ddd6fe);
  transition: all var(--t-fast);
}

.dot.active {
  background: var(--purple-500);
  width: 22px;
  border-radius: 4px;
}

.transform-caption {
  text-align: center;
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--purple-500);
  margin-top: 1.5rem;
}


/* ================================================================
   FEATURES GRID
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 768px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(0,0,0,0.04);
  transition: transform var(--t-base) var(--ease-bounce), box-shadow var(--t-base);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  background: var(--card-color, var(--purple-100));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg { width: 32px; height: 32px; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 0.375rem;
}

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


/* ================================================================
   OCCASIONS
   ================================================================ */
.occasions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 840px;
  margin: 0 auto;
}

@media (min-width: 600px)  { .occasions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .occasions-grid { grid-template-columns: repeat(6, 1fr); } }

.occasion-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: white;
  border-radius: var(--r-xl);
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 20px rgba(245,158,11,0.12);
  border: 1.5px solid rgba(245,158,11,0.15);
  transition: transform var(--t-base) var(--ease-bounce), box-shadow var(--t-base);
  cursor: default;
}

.occasion-bubble:hover {
  transform: translateY(-6px) rotate(-2deg);
  box-shadow: 0 12px 40px rgba(245,158,11,0.25);
  border-color: rgba(245,158,11,0.4);
}

.occasion-any {
  background: linear-gradient(135deg, var(--purple-100) 0%, var(--gold-200) 100%);
  border-color: var(--purple-300);
}

.occasion-emoji {
  font-size: 2rem;
  line-height: 1;
}

.occasion-bubble span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-900);
  text-align: center;
  letter-spacing: 0.01em;
}


/* ================================================================
   TRUST SECTION (DARK)
   ================================================================ */
.trust-stars, .waitlist-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform var(--t-base), background var(--t-base);
}

.trust-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.trust-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

.trust-icon svg { width: 100%; height: 100%; }

.trust-card h3 {
  font-size: 1.05rem;
  color: white;
  margin-bottom: 0.5rem;
}

.trust-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}


/* ================================================================
   WAITLIST SECTION
   ================================================================ */
.waitlist-inner {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Sparkles decoration */
.waitlist-deco { position: absolute; inset: 0; pointer-events: none; }

.wl-sparkle {
  position: absolute;
  font-size: 1.4rem;
  color: var(--gold-400);
  animation: shimmer 2.5s ease-in-out infinite;
}

.ws1 { top: 10%; left: -5%; animation-delay: 0s; }
.ws2 { top: 20%; right: -5%; animation-delay: 0.6s; }
.ws3 { bottom: 30%; left: -8%; animation-delay: 1.2s; font-size: 1rem; }
.ws4 { bottom: 20%; right: -8%; animation-delay: 1.8s; font-size: 1rem; }

.waitlist-form-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  backdrop-filter: blur(12px);
}

/* Form styles (shared between waitlist & contact) */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.label-optional {
  font-weight: 400;
  opacity: 0.7;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-900);
  background: rgba(255,255,255,0.95);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--r-sm);
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-300);
  box-shadow: 0 0 0 3px rgba(196,132,252,0.25);
  background: white;
}

.form-group textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

/* Honeypot (anti-bot) */
.hp-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
  pointer-events: none;
}

/* Submit button */
.btn-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--purple-900);
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  padding: 0.9rem 2rem;
  border-radius: var(--r-full);
  margin-top: 1.25rem;
  transition: all var(--t-base) var(--ease-bounce);
  box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}

.btn-form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245,158,11,0.5);
}

.btn-form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-sparkle {
  font-size: 1.1rem;
}

/* Form messages */
.form-msg {
  margin-top: 0.875rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  min-height: 24px;
  padding: 0.5rem 0;
  border-radius: var(--r-sm);
}

.form-msg.success {
  color: #166534;
  background: #dcfce7;
  padding: 0.6rem 1rem;
}

.form-msg.error {
  color: #991b1b;
  background: #fee2e2;
  padding: 0.6rem 1rem;
}

.form-msg.success-dark {
  color: var(--green-200);
  background: rgba(16,185,129,0.12);
  padding: 0.6rem 1rem;
}

.form-msg.error-dark {
  color: #fca5a5;
  background: rgba(239,68,68,0.12);
  padding: 0.6rem 1rem;
}


/* ================================================================
   FAQ
   ================================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: white;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(16,185,129,0.12);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.faq-item.open {
  border-color: rgba(16,185,129,0.35);
  box-shadow: 0 4px 20px rgba(16,185,129,0.08);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  background: none;
  cursor: pointer;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-900);
  flex: 1;
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--green-500);
  transition: transform var(--t-base);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease);
}

.faq-item.open .faq-body { max-height: 400px; }

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-500);
  line-height: 1.7;
}


/* ================================================================
   CONTACT
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.6fr; gap: 3rem; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(0,0,0,0.05);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.contact-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg { width: 22px; height: 22px; }

.contact-icon-email { background: #dbeafe; color: #2563eb; }
.contact-icon-insta { background: #fce7f3; color: #db2777; }

.contact-item-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-400);
}

.contact-item-val {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-900);
}

.contact-note {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--lavender);
  border-radius: var(--r-md);
}

.contact-note-icon { font-size: 1.4rem; flex-shrink: 0; }

.contact-note-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 0.25rem;
}

.contact-note-desc {
  font-size: 0.83rem;
  color: var(--text-500);
  line-height: 1.6;
}

/* Contact form card */
.contact-form-card {
  background: white;
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

/* Override form label color for contact (light bg) */
.contact-form-card .form-group label {
  color: var(--text-900);
}

.contact-form-card .form-group input,
.contact-form-card .form-group select,
.contact-form-card .form-group textarea {
  background: var(--off-white);
  border-color: rgba(0,0,0,0.12);
  color: var(--text-900);
}

.contact-form-card .form-group input:focus,
.contact-form-card .form-group select:focus,
.contact-form-card .form-group textarea:focus {
  border-color: var(--purple-400);
  background: white;
}

.btn-contact-submit {
  color: white;
  background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-600) 100%);
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}

.btn-contact-submit:hover {
  box-shadow: 0 8px 30px rgba(124,58,237,0.45);
}

.btn-contact-submit .btn-sparkle { font-size: 1.2rem; font-weight: 400; }


/* ================================================================
   FOOTER
   ================================================================ */
#site-footer {
  background: var(--purple-900);
  padding: 0 0 2rem;
  position: relative;
  color: rgba(255,255,255,0.7);
}

.footer-wave {
  line-height: 0;
}

.footer-wave svg { width: 100%; display: block; }

.footer-the-end {
  text-align: center;
  font-family: var(--font-accent);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(251,191,36,0.5);
  padding: 1.5rem 0 0.5rem;
  letter-spacing: 0.05em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-top: 0.75rem;
  max-width: 240px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: white;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast);
}

.footer-col a:hover { color: white; }

.footer-social {
  flex-direction: column;
}

.footer-social .footer-col {
  flex-direction: row;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--t-fast);
}

.social-link svg { width: 18px; height: 18px; }

.social-link:hover {
  background: rgba(255,255,255,0.18);
  color: white;
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.35);
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}

#footer-copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
}


/* ================================================================
   RESPONSIVE ADJUSTMENTS
   ================================================================ */
@media (max-width: 899px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-bottom: 40px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

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

@media (max-width: 599px) {
  .transform-showcase {
    grid-template-columns: 1fr;
  }

  .transform-arrow svg {
    transform: rotate(90deg);
  }
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */
:focus-visible {
  outline: 3px solid var(--purple-400);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  #site-header, .hero-deco, .stars-layer, .trust-stars, .waitlist-stars { display: none; }
  section { padding: 2rem 0; }
}
