/* Base styles */

:root {
  --orange: #ff7a2f;
  --orange-soft: #ffe4cf;
  --bg: #fff9f3;
  --text-main: #1e1e1e;
  --text-muted: #555555;
  --card-bg: #ffffff;
  --border-soft: #ffd5b4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Header */

.site-header {
  padding: 16px 24px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--orange);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 40px 24px 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-subtitle {
  margin: 0 0 24px;
  max-width: 440px;
  color: var(--text-muted);
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 500px;
  width: 100%;
}

.waitlist-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  font-size: 14px;
  background: var(--card-bg);
}

.waitlist-form input[type="checkbox"] {
  flex: none;
  width: auto;
}

.waitlist-form label {
  flex-basis: 100%;
  width: 100%;
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--orange);
}

.waitlist-form button {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: var(--orange);
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.waitlist-form button:hover {
  filter: brightness(0.95);
}

.small-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-illustration img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin-inline: auto;
  border-radius: 24px;
}

/* Story */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
  padding: 24px 24px 64px;
  align-items: center;
}

.story-illustration img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin-inline: auto;
  border-radius: 24px;
}

.story-text h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  margin-top: 0;
  margin-bottom: 12px;
}

.story-text p {
  margin: 0 0 8px;
  color: var(--text-muted);
}

/* How it works */

.how-it-works {
  padding: 24px 24px 64px;
  text-align: center;
}

.how-it-works h2 {
  font-size: 26px;
  margin-bottom: 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  justify-items: center;
}

.step-card {
  background: var(--card-bg);
  padding: 20px 18px 24px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  max-width: 320px;
  width: 100%;
}

.step-illustration img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
}

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

.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Benefits */

.benefits {
  padding: 24px 24px 64px;
}

.benefits h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 24px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.benefit-card {
  background: var(--card-bg);
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
}

.benefit-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.benefit-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Final CTA */

.final-cta {
  padding: 40px 24px 56px;
  text-align: center;
  background: var(--orange-soft);
}

.final-cta h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.final-cta p {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.final-cta .waitlist-form {
  justify-content: center;
  margin: 0 auto;
}

/* Footer */

.site-footer {
  padding: 18px 24px 26px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .hero,
  .story {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-illustration {
    order: -1;
    margin-bottom: 20px;
  }

  .story-illustration {
    order: -1;
  }

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

  .benefit-grid {
    grid-template-columns: 1fr;
  }
  
  .waitlist-form {
    flex-direction: column;
    width: 100%;
  }
  
  .waitlist-form input[type="email"] {
    width: 100%;
    flex: none;
  }
  
  .waitlist-form button {
    width: 100%;
  }
}

/* Mobile specific improvements */
@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .hero,
  .story,
  .how-it-works,
  .benefits,
  .final-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-illustration img,
  .story-illustration img {
    max-width: 100%;
    border-radius: 16px;
  }

  .story-text h2 {
    font-size: 24px;
  }

  .how-it-works h2,
  .benefits h2 {
    font-size: 24px;
  }

  .step-card,
  .benefit-card {
    padding: 16px;
  }

  .waitlist-form {
    max-width: 100%;
  }

  .waitlist-form label {
    font-size: 11px !important;
    line-height: 1.4;
    width: 100%;
  }

  .waitlist-form input[type="email"] {
    width: 100%;
  }

  .waitlist-form button {
    width: 100%;
  }

  .final-cta {
    padding: 32px 16px 40px;
  }

  .final-cta h2 {
    font-size: 22px;
  }

  .site-footer {
    padding: 16px;
  }

  .site-footer a {
    display: inline-block;
    margin-right: 8px !important;
  }
}

/* Extra small phones */
@media (max-width: 375px) {
  .hero-text h1 {
    font-size: 28px;
  }

  .logo-text {
    font-size: 16px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .step-illustration img {
    width: 64px;
    height: 64px;
  }

  .step-card h3,
  .benefit-card h3 {
    font-size: 16px;
  }
}