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

:root {
  --sage:        #8BAF96;
  --sage-dark:   #6B8F78;
  --sage-nav:    #3d5c4a;
  --sage-deeper: #4a6b57;
  --light:       #F0F5F1;
  --white:       #FFFFFF;
  --text:        #2a3d30;
  --text-muted:  #5a7062;
  --shadow-card: 0 2px 16px rgba(0,0,0,0.07);
  --radius-card: 16px;
  --radius-btn:  10px;
  --nav-h:       64px;
  --max-w:       1200px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.2;
}

a { text-decoration: none; }
img, svg { display: block; }
button { cursor: pointer; font-family: inherit; }


/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(42, 70, 54, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--nav-h);
}

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

.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

/* Primary CTA button (reused in nav + footer area) */
.btn-cta {
  background: var(--white);
  color: var(--sage-nav);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

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

/* Mobile dropdown */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(42, 70, 54, 0.98);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 0.5rem 1.25rem 1.125rem;
  gap: 0;
}

.mobile-menu.open { display: flex; }

.mobile-link {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.15s;
}

.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--white); }

.mobile-link-cta {
  display: inline-block;
  margin-top: 0.5rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-btn);
  padding: 0.6rem 1.25rem;
  text-align: center;
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.mobile-link-cta:hover { background: rgba(255,255,255,0.1); }

/* Desktop: hide hamburger, show CTA. Mobile: hide CTA, show hamburger. */
@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav-cta   { display: inline-flex; }
}
@media (max-width: 767px) {
  .nav-cta { display: none; }
}


/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  background-color: var(--sage);
  overflow: hidden;
  padding: 4rem 1.25rem 3.5rem;
}

.topo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.topo-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-container {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  max-width: 600px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.875rem;
}

.hero-heading {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* App store badges */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(0,0,0,0.72);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: var(--white);
  border-radius: 11px;
  padding: 0.55rem 1.125rem;
  transition: background 0.15s, transform 0.15s;
  min-width: 148px;
}

.btn-store:hover { background: rgba(0,0,0,0.88); transform: translateY(-2px); }

.store-icon { width: 22px; height: 22px; flex-shrink: 0; }

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-label {
  font-size: 0.625rem;
  opacity: 0.78;
  letter-spacing: 0.01em;
}

.store-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-waitlist-link {
  display: inline-block;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.hero-waitlist-link:hover { color: var(--white); }

/* Phone mockup */
.hero-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 210px;
  background: #181818;
  border-radius: 40px;
  padding: 11px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.38),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

.phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 22px;
  background: #181818;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  height: 420px;
  background: var(--sage);
}

.phone-screen svg {
  display: block;
  width: 100%;
  height: 100%;
}


/* ═══════════════════════════════════════
   SHARED SECTION LAYOUT
═══════════════════════════════════════ */
.section-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

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

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════ */
.how-it-works {
  background: var(--light);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(107,143,120,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.11);
}

.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.875rem;
}

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

.step-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.4rem;
}

.step-title {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ═══════════════════════════════════════
   FEATURES
═══════════════════════════════════════ */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

.feature-card {
  background: var(--light);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.625rem;
  border: 1px solid rgba(107,143,120,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.875rem;
}

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

.feature-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ═══════════════════════════════════════
   WAITLIST
═══════════════════════════════════════ */
.waitlist {
  background: var(--sage-dark);
}

.waitlist .section-container {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

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

.waitlist-title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  color: var(--white);
  margin-bottom: 0.875rem;
}

.waitlist-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.waitlist-form { width: 100%; }

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.email-input {
  flex: 1;
  height: 52px;
  padding: 0 1.125rem;
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-btn);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}

.email-input::placeholder { color: rgba(255,255,255,0.45); }

.email-input:focus {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.16);
}

.btn-submit {
  height: 52px;
  padding: 0 1.75rem;
  background: var(--white);
  color: var(--sage-deeper);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-submit:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Spinner animation */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--sage-dark);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

.btn-submit.loading .btn-text    { display: none; }
.btn-submit.loading .btn-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-message {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 1.4em;
  transition: opacity 0.2s;
}

.form-message.success { color: #a4f0be; }
.form-message.error   { color: #ffb3b3; }


/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: var(--sage-nav);
  padding: 1.5rem 1.25rem;
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

.footer-link:hover { color: rgba(255,255,255,0.9); }

.footer-sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
}


/* ═══════════════════════════════════════
   RESPONSIVE — TABLET (640px+)
═══════════════════════════════════════ */
@media (min-width: 640px) {
  .section-container {
    padding: 5rem 2rem;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .form-row {
    flex-direction: row;
  }

  .btn-submit {
    flex-shrink: 0;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}


/* ═══════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
═══════════════════════════════════════ */
@media (min-width: 1024px) {
  .hero {
    padding: 5.5rem 2rem 4.5rem;
  }

  .hero-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3.5rem;
  }

  .hero-content {
    text-align: left;
    flex: 1;
    max-width: none;
  }

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

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-mockup {
    flex-shrink: 0;
  }

  .phone-frame {
    width: 240px;
  }

  .phone-screen {
    height: 460px;
  }

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

  .section-container {
    padding: 6rem 2rem;
  }
}
