:root {
  --color-cream: #F5F3E8;
  --color-warm-white: #FDFBF5;
  --color-peach: #E8DCC8;
  --color-soft-coral: #D4C4A8;
  --color-terracotta: #A07840;
  --color-forest: #6B4030;
  --color-sage: #B07040;
  --color-text: #4A3828;
  --color-text-light: #6B5545;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-foo: #6B4030;
}

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

html, body {
  scroll-behavior: smooth;
  background-color: #f5efdd;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 18px;
}

/* Masthead */
.masthead {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.masthead::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4vw;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(245, 239, 221, 0.1) 20%,
    rgba(245, 239, 221, 0.3) 40%,
    rgba(245, 239, 221, 0.6) 60%,
    rgba(245, 239, 221, 0.85) 80%,
    #f5efdd 100%);
  pointer-events: none;
}

.masthead img {
  width: 100%;
  height: auto;
  display: block;
}

/* Header */
header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  margin-bottom: -5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-forest);
  text-decoration: none;
}

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

nav a {
  color: var(--color-text);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--color-terracotta);
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--color-forest);
  margin-bottom: 1.5rem;
}

.hero-content h1 em {
  color: var(--color-terracotta);
  /* font-style: normal; */
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 480px;
}

.cta-button {
  display: inline-block;
  background: var(--color-terracotta);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(160, 120, 64, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(160, 120, 64, 0.4);
}

.hero-visual {
  position: relative;
}

.book-mockup {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  display: block;
  box-shadow:
    0 20px 60px rgba(160, 120, 64, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.05);
}

.book-mockup img,
.book-mockup video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* Features Section */
.features {
  background: var(--color-warm-white);
  padding: 6rem 2rem;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-forest);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-forest);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 1rem;
}

/* Conversion Demo Section */
.conversion-demo {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.conversion-demo .section-header {
  margin-bottom: 3rem;
}

.conversion-demo-image {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(107, 64, 48, 0.15);
}

.conversion-demo-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--color-text-light);
  font-size: 1rem;
}

.conversion-demo-note em {
  font-style: italic;
  color: var(--color-forest);
}

/* How It Works */
.how-it-works {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  right: -1rem;
  width: 2rem;
  height: 2px;
  background: var(--color-peach);
}

.step-number {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(145deg, var(--color-peach), var(--color-soft-coral));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-forest);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Promise Section */
.promise {
  background: var(--color-foo);
  color: white;
  padding: 6rem 2rem;
}

.promise-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.promise h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
  text-align: left;
  margin: 3rem 0;
}

.promise-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.promise-item span {
  font-size: 1.5rem;
}

.promise-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.promise-item p {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Testimonial Style Quote */
.quote-section {
  background: var(--color-warm-white);
  padding: 5rem 2rem;
  border-bottom: 1px solid var(--color-peach);
}

.quote-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-size: 4rem;
  color: var(--color-peach);
  line-height: 1;
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-forest);
  font-style: italic;
  margin: 1rem 0 1.5rem;
  text-wrap: pretty;
}

.quote-author {
  color: var(--color-text-light);
}

/* CTA Section */
.cta-section {
  padding: 6rem 2rem;
  padding-bottom: 8rem;
  text-align: center;
  position: relative;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-forest);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Email Signup */
.email-signup {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.email-signup input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: 2px solid var(--color-peach);
  border-radius: 50px;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease;
}

.email-signup input:focus {
  border-color: var(--color-terracotta);
}

.email-signup button {
  background: var(--color-terracotta);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.email-signup button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(160, 120, 64, 0.3);
}

.waitlist-status {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.waitlist-status[data-state="error"] {
  color: #c44;
}

.waitlist-status[data-state="ok"] {
  color: var(--color-forest);
}

/* Footer */
footer {
  background: var(--color-foo);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

footer .logo {
  color: white;
  margin-bottom: 1rem;
  display: inline-block;
}

footer p {
  opacity: 0.7;
  font-size: 0.9rem;
}

footer p a {
  color: inherit;
  text-decoration: underline;
}

footer .tagline {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-style: italic;
}

footer .network {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 0.75rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    order: -1;
  }

  .book-mockup {
    max-width: 300px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-header h2,
  .promise h2,
  .cta-section h2 {
    font-size: 2rem;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 3rem auto 0;
  }

  nav {
    display: none;
  }

  header {
    justify-content: center;
  }
}
