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

:root {
  --midnight: #0f1229;
  --twilight: #1a1f4a;
  --deep-indigo: #232660;
  --lavender: #a89bde;
  --soft-lavender: #c4b5fd;
  --cream: #fdf8f0;
  --warm-white: #fff9f2;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --text-body: #e8e0f0;
  --text-muted: #9d8fc4;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--midnight);
  color: var(--cream);
  font-family: 'Nunito', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 30%, #1e2355 0%, #0f1229 70%);
  z-index: 0;
}

/* Stars */
.stars { position: absolute; inset: 0; }
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
}
.star-1 { width: 2px; height: 2px; top: 8%; left: 15%; opacity: 0.7; animation: twinkle 3s ease-in-out infinite; }
.star-2 { width: 3px; height: 3px; top: 12%; left: 72%; opacity: 0.9; animation: twinkle 4s ease-in-out infinite 0.5s; }
.star-3 { width: 2px; height: 2px; top: 20%; left: 55%; opacity: 0.6; animation: twinkle 2.5s ease-in-out infinite 1s; }
.star-4 { width: 4px; height: 4px; top: 5%; left: 40%; opacity: 0.8; animation: twinkle 5s ease-in-out infinite 0.3s; }
.star-5 { width: 2px; height: 2px; top: 30%; left: 85%; opacity: 0.7; animation: twinkle 3.5s ease-in-out infinite 1.5s; }
.star-6 { width: 2px; height: 2px; top: 18%; left: 25%; opacity: 0.5; animation: twinkle 4s ease-in-out infinite 2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Moon */
.moon {
  position: absolute;
  top: 8%;
  right: 18%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef9ee 0%, #f5e6b8 50%, #e8c97a 100%);
  box-shadow:
    0 0 40px rgba(245, 200, 100, 0.4),
    0 0 80px rgba(245, 200, 100, 0.15);
  animation: moonGlow 6s ease-in-out infinite;
}
@keyframes moonGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(245,200,100,0.4), 0 0 80px rgba(245,200,100,0.15); }
  50% { box-shadow: 0 0 60px rgba(245,200,100,0.6), 0 0 120px rgba(245,200,100,0.2); }
}

/* Hero inner layout */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soft-lavender);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-body);
  max-width: 440px;
  font-weight: 300;
  line-height: 1.7;
}

/* Book illustration */
.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-glow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatBook 4s ease-in-out infinite;
}
@keyframes floatBook {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.book-open {
  display: flex;
  align-items: stretch;
  width: 220px;
  filter: drop-shadow(0 20px 60px rgba(168, 155, 222, 0.35));
}

.book-page {
  background: linear-gradient(135deg, #fdf6ec 0%, #f5e8d5 100%);
  padding: 1.5rem 1.25rem;
  width: 100px;
  border-radius: 4px 0 0 4px;
}
.book-page.right {
  border-radius: 0 4px 4px 0;
  background: linear-gradient(225deg, #fdf6ec 0%, #f0e3cc 100%);
}

.book-spine {
  width: 6px;
  background: linear-gradient(to right, #d4c5a0, #c9b887, #d4c5a0);
  border-radius: 1px;
}

.page-line {
  height: 6px;
  background: rgba(80, 60, 30, 0.2);
  border-radius: 3px;
  margin-bottom: 10px;
}
.page-line.l4, .page-line.r4 { margin-bottom: 0; }
.page-line.l1 { width: 80%; }
.page-line.l2 { width: 65%; }
.page-line.l3 { width: 72%; }
.page-line.l4 { width: 50%; }
.page-line.r1 { width: 75%; }
.page-line.r2 { width: 60%; }
.page-line.r3 { width: 68%; }
.page-line.r4 { width: 45%; }

/* Sparkles */
.sparkle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  animation: sparklePulse 2s ease-in-out infinite;
}
.s1 { width: 8px; height: 8px; top: -15px; right: 20px; animation-delay: 0s; }
.s2 { width: 5px; height: 5px; bottom: 10px; right: -20px; animation-delay: 0.7s; }
.s3 { width: 6px; height: 6px; top: 50%; left: -15px; animation-delay: 1.4s; }
@keyframes sparklePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* === SHARED SECTION STYLES === */
section { padding: 6rem 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 2rem;
  font-style: italic;
}

/* === HOW IT WORKS === */
.how-it-works {
  background: var(--twilight);
  position: relative;
}
.how-it-works::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,155,222,0.3), transparent);
}

.how-it-works .container { max-width: 900px; }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.step {
  flex: 1;
  text-align: center;
}

.step-connector {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding-top: 3rem;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(168,155,222,0.12);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--soft-lavender);
}
.step-icon svg { width: 100%; height: 100%; }

.step h3 {
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* === DIFFERENTIATOR === */
.different { background: var(--midnight); }
.different-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.different-body {
  color: var(--text-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.different-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.different-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 400;
}

.different-list li svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--gold);
  margin-top: 2px;
}

/* Inbox preview */
.inbox-preview {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(168,155,222,0.15);
  border-radius: 12px;
  overflow: hidden;
}

.inbox-header {
  background: rgba(255,255,255,0.06);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(168,155,222,0.1);
}

.inbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52,211,153,0.5);
}

.inbox-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.email-preview {
  padding: 1.25rem;
}

.email-from {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--soft-lavender);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.email-subject {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.email-preview-body {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.email-meta {
  font-size: 0.7rem;
  color: rgba(157,143,196,0.6);
}

/* === ARCHIVE === */
.archive {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--twilight) 100%);
}

.archive-desc {
  color: var(--text-body);
  font-weight: 300;
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.archive-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(168,155,222,0.12);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.3s;
}

.archive-card:hover {
  border-color: rgba(196,181,253,0.3);
}

.card-stars {
  margin-bottom: 0.75rem;
}

.card-stars svg {
  width: 80px;
  height: 12px;
}

.card-date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

.archive-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

/* === CLOSING === */
.closing {
  background: var(--deep-indigo);
  text-align: center;
  padding: 8rem 0;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing-stars {
  height: 40px;
  margin-bottom: 2rem;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,200,100,0.3) 30%,
    rgba(245,200,100,0.6) 50%,
    rgba(245,200,100,0.3) 70%,
    transparent 100%
  );
  border-radius: 50%;
  filter: blur(1px);
}

.closing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.closing p {
  font-size: 1.05rem;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.7;
}

/* === FOOTER === */
footer {
  background: var(--midnight);
  border-top: 1px solid rgba(168,155,222,0.1);
  padding: 4rem 0 3rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--soft-lavender);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.footer-links {
  font-size: 0.8rem;
  color: rgba(157,143,196,0.5);
  margin-bottom: 1.5rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(157,143,196,0.35);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-illustration { order: -1; }
  .hero-sub { max-width: 100%; margin: 0 auto; }
  .steps {
    flex-direction: column;
    align-items: center;
  }
  .step-connector {
    transform: rotate(90deg);
    padding: 0;
    flex: 0 0 auto;
  }
  .step { max-width: 300px; }
  .different-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .archive-grid .archive-card:last-child { display: none; }
  .closing { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 5rem 0 4rem; min-height: 80vh; }
  .hero-headline { font-size: 2.2rem; }
  .moon { width: 60px; height: 60px; top: 6%; right: 10%; }
}

/* === HERO CTA === */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.btn-hero {
  font-size: 1rem;
  padding: 0.875rem 2rem;
}
.btn-hero-secondary {
  font-size: 0.95rem;
}
.hero-fine {
  margin-top: 0.875rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* === BUTTONS (shared) === */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--soft-lavender) 0%, var(--lavender) 100%);
  color: var(--midnight);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: 1px solid rgba(168,155,222,0.3);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(196,181,253,0.5); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--cream); }

/* === PRICING SECTION === */
.pricing {
  background: var(--twilight);
  padding: 7rem 0;
  position: relative;
}
.pricing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,155,222,0.3), transparent);
}

.pricing-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 0.75rem;
  display: block;
}

.pricing-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.pricing-sub {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 780px;
  margin: 0 auto 2rem;
}

.pricing-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(168,155,222,0.15);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  position: relative;
  transition: border-color 0.3s;
}
.pricing-card:hover {
  border-color: rgba(196,181,253,0.3);
}

.pricing-card--featured {
  background: rgba(168,155,222,0.1);
  border-color: rgba(196,181,253,0.4);
  box-shadow: 0 0 40px rgba(168,155,222,0.1);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--midnight);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
}

.plan-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 0.75rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
}
.price-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.plan-features {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.plan-features li {
  font-size: 0.875rem;
  color: var(--text-body);
  font-weight: 400;
}

.plan-cta {
  display: block;
  text-align: center;
  margin-bottom: 0.75rem;
}

.plan-fine {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 300;
}

.pricing-guarantee {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

@media (max-width: 640px) {
  .pricing-cards { grid-template-columns: 1fr; }
  .hero-cta { justify-content: center; }
}