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

:root {
  --cream:         #FAF7F2;
  --green-dark:    #1D4D2E;
  --green-soft:    #2D6A3F;
  --green-muted:   #a8c4b0;
  --green-light:   #C5D9CB;
  --orange:        #C4622D;
  --text-dark:     #1A1A1A;
  --text-muted:    #6B6B6B;
}

html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Grain texture ──────────────────────────────────────────────────── */
.has-grain { position: relative; }
.has-grain::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── Scroll reveal ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.75s cubic-bezier(0.34, 1.18, 0.64, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Email form ─────────────────────────────────────────────────────── */
.email-form-wrap { width: 100%; max-width: 480px; margin: 0 auto; }
.email-row {
  display: flex; height: 52px; border-radius: 12px;
  overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.20);
}
.email-row input[type="email"] {
  flex: 1; min-width: 0; padding: 0 18px; font-size: 15px;
  font-family: inherit; color: var(--text-dark); background: var(--cream);
  border: none; outline: none; transition: box-shadow 0.2s;
}
.email-row input[type="email"]:focus { box-shadow: inset 0 0 0 2px var(--orange); }
.email-row input[type="email"]::placeholder { color: #999; }
.email-row button {
  flex-shrink: 0; padding: 0 24px; font-size: 14px;
  font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  color: var(--cream); background: var(--orange); border: none;
  cursor: pointer; white-space: nowrap; transition: background 0.2s, transform 0.15s ease;
  position: relative; overflow: hidden;
}
.email-row button:hover   { background: #cf6e3f; }
.email-row button:active  { transform: scale(0.97); }
.email-row button:disabled { opacity: 0.7; cursor: not-allowed; }
.form-error { font-size: 13px; color: var(--orange); text-align: center; margin-top: 8px; min-height: 20px; }
.form-success { font-size: 16px; color: var(--cream); text-align: center; padding: 16px 0; }


/* ══════════════════════════════════════════════════════════════════════
   iPhone frame
═══════════════════════════════════════════════════════════════════════ */
.iphone {
  position: relative;
  width: 252px; height: 545px;
  background: #0d0d0d;
  border-radius: 52px;
  border: 8px solid #191919;
  flex-shrink: 0;
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 40px 80px rgba(0,0,0,0.55);
}
.iphone::before { /* power button */
  content: ''; position: absolute;
  right: -11px; top: 144px;
  width: 3px; height: 64px;
  background: #191919; border-radius: 0 2px 2px 0;
}
.iphone::after { /* vol up */
  content: ''; position: absolute;
  left: -11px; top: 112px;
  width: 3px; height: 38px;
  background: #191919; border-radius: 2px 0 0 2px;
}
.iphone-vol-down {
  position: absolute; left: -11px; top: 162px;
  width: 3px; height: 38px; background: #191919; border-radius: 2px 0 0 2px;
}
.iphone-island {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; background: #0d0d0d; border-radius: 20px; z-index: 10;
}
.iphone-screen {
  position: absolute; inset: 0; border-radius: 44px; overflow: hidden; background: #111;
}
.iphone-screen picture {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
}
.iphone-screenshot {
  width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
}

/* ── Glow behind phones ─────────────────────────────────────────────── */
.iphone-glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  pointer-events: none; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0;
}
.glow-dark  { background: radial-gradient(circle, rgba(45,106,63,0.50) 0%, transparent 65%); }
.glow-cream { background: radial-gradient(circle, rgba(45,106,63,0.14) 0%, transparent 65%); }
.phone-col {
  flex-shrink: 0; display: flex; justify-content: center;
  align-items: center; position: relative;
}
.phone-col .iphone { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════════════
   SECTION 1 — Hero (split layout)
═══════════════════════════════════════════════════════════════════════ */
#hero {
  background: var(--green-dark);
  min-height: 100dvh; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-ambient {
  position: absolute; right: 12%; top: 50%; transform: translateY(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,106,63,0.50) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.hero-ambient-left {
  position: absolute; left: -80px; top: 20%;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,106,63,0.18) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; width: 100%;
  padding: 80px 56px 72px;
  display: flex; align-items: center; gap: 88px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-wordmark {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  font-size: clamp(56px, 8vw, 76px); color: var(--cream);
  letter-spacing: -2.5px; line-height: 1; margin-bottom: 20px;
}
.hero-wordmark span { color: var(--orange); }
.hero-tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 2vw, 19px); font-weight: 400; font-style: italic;
  color: rgba(250,247,242,0.55); margin-bottom: 14px; line-height: 1.35;
}
.hero-tagline em { color: var(--cream); font-style: normal; }
.hero-headline {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  font-size: clamp(28px, 4.5vw, 40px); color: var(--cream);
  line-height: 1.2; margin-bottom: 28px; letter-spacing: -0.5px;
}
.hero-benefits { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.hero-benefit {
  display: flex; align-items: center; gap: 14px;
  font-size: 15.5px; color: rgba(250,247,242,0.78); line-height: 1.55;
}
.hero-benefit-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-benefit-icon svg { stroke: var(--cream); width: 13px; height: 13px; }
.hero-form-wrap { max-width: 440px; }
.hero-note { font-size: 12px; color: rgba(250,247,242,0.60); margin-top: 12px; letter-spacing: 0.03em; }
.spot-counter { margin-top: 14px; width: 100%; max-width: 360px; }
.spot-counter-text { font-size: 12px; color: rgba(250,247,242,0.70); margin-top: 8px; letter-spacing: 0.03em; text-align: center; }
.spot-counter-text span { font-weight: 700; color: var(--cream); }
.spot-progress { width: 100%; height: 6px; background: rgba(250,247,242,0.25); border-radius: 3px; overflow: hidden; }
.spot-progress-bar { height: 100%; background: var(--orange); width: 0%; transition: width 1.2s cubic-bezier(0.34, 1.18, 0.64, 1); border-radius: 3px; }
.hero-device-col {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-device-col .iphone {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 48px 100px rgba(0,0,0,0.6),
    0 0 100px rgba(29,77,46,0.35);
}
.hero-device-glow {
  position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,106,63,0.55) 0%, transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
}
.hero-device-col .iphone { position: relative; z-index: 1; }
.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 2;
  animation: cue-pulse 1.5s ease-in-out infinite;
}
.scroll-cue svg { width: 36px; height: 36px; display: block; }
@keyframes cue-pulse {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION 2 — Problem cards
═══════════════════════════════════════════════════════════════════════ */
#problems { background: var(--cream); padding: 80px 24px 56px; position: relative; overflow: hidden; border-top: 1px solid rgba(196,98,45,0.18); }
.problems-header { text-align: center; margin-bottom: 68px; }
.problems-eyebrow {
  display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--orange); font-weight: 600; margin-bottom: 14px;
}
.problems-heading {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  font-size: clamp(32px, 5vw, 48px); color: var(--green-dark); line-height: 1.15;
}
.problems-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.prob-image {
  display: block;
  width: calc(100% + 88px); margin-left: -44px; margin-right: -44px;
  aspect-ratio: 16 / 10; margin-bottom: 28px; overflow: hidden;
  position: relative; z-index: 1;
  background: rgba(0,0,0,0.15);
}
.prob-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.34, 1.18, 0.64, 1); }
.prob-card:hover .prob-image img { transform: scale(1.04); }
.prob-card {
  background: var(--green-dark); border-radius: 28px; padding: 52px 44px;
  position: relative; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}
.prob-card:hover { transform: translateY(-5px); box-shadow: 0 24px 56px rgba(29,77,46,0.22); }
.prob-card::before {
  content: ''; position: absolute; top: -70px; right: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(45,106,63,0.4); pointer-events: none;
}
.prob-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,196,176,0.18), transparent); pointer-events: none;
}
.prob-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.2vw, 22px); font-weight: 700;
  color: var(--cream); line-height: 1.35; margin-bottom: 24px; position: relative; z-index: 1;
}
.prob-stat { font-size: 14px; color: var(--green-muted); line-height: 1.75; margin-bottom: 36px; position: relative; z-index: 1; }
.prob-solve {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); border: 1.5px solid var(--orange);
  border-radius: 8px; padding: 11px 20px;
  font-size: 14px; color: var(--cream); font-weight: 600; position: relative; z-index: 1;
}

/* ══════════════════════════════════════════════════════════════════════
   Feature sections
═══════════════════════════════════════════════════════════════════════ */
.feat { padding: 104px 24px; position: relative; overflow: hidden; }
.feat.cream { background: var(--cream); }
.feat.dark  { background: var(--green-dark); }
.feat-inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 80px; }
.feat-inner.flip { flex-direction: row-reverse; }
.feat-text { flex: 1; min-width: 0; max-width: 480px; }
.overline {
  display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--orange); margin-bottom: 14px;
  opacity: 0; transform: translateX(-20px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.overline.visible { opacity: 1; transform: translateX(0); }
.feat-h {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  font-size: clamp(28px, 4vw, 38px); line-height: 1.2; margin-bottom: 18px;
}
.feat.cream .feat-h { color: var(--green-dark); }
.feat.dark  .feat-h { color: var(--cream); }
.feat-p { font-size: 16px; line-height: 1.8; max-width: 480px; }
.feat.cream .feat-p { color: var(--text-muted); }
.feat.dark  .feat-p { color: var(--green-muted); }
.feat-pill {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 28px;
  background: var(--orange); border: 1px solid var(--orange);
  border-radius: 100px; padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--cream);
}
.phone-enter-left  { opacity: 0; transform: translateX(-64px); transition: opacity 0.85s ease-out, transform 0.95s cubic-bezier(0.34, 1.38, 0.64, 1); }
.phone-enter-right { opacity: 0; transform: translateX(64px);  transition: opacity 0.85s ease-out, transform 0.95s cubic-bezier(0.34, 1.38, 0.64, 1); }
.phone-enter-left.visible, .phone-enter-right.visible { opacity: 1; transform: translateX(0); }
.feat-text-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease-out 0.12s, transform 0.75s cubic-bezier(0.34, 1.18, 0.64, 1) 0.12s; }
.feat-text-reveal.visible { opacity: 1; transform: translateY(0); }
.phone-wrap { transition: transform 0.05s linear; will-change: transform; }

/* ══════════════════════════════════════════════════════════════════════
   Stats strip
═══════════════════════════════════════════════════════════════════════ */
#stats-strip { background: var(--cream); padding: 56px 24px 28px; position: relative; overflow: hidden; }
.stats-inner { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; align-items: center; }
.stat-divider { width: 1px; background: rgba(29,77,46,0.1); align-self: stretch; }
.stat-num {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  font-size: clamp(40px, 5.5vw, 56px); color: var(--green-dark); line-height: 1; margin-bottom: 12px;
}
.stat-num span { color: var(--orange); }
.stat-top { font-size: 14px; color: rgba(29,77,46,0.78); line-height: 1.55; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: rgba(29,77,46,0.78); line-height: 1.55; max-width: 180px; margin: 0 auto; }
.stat-footnote { font-size: 11px; color: rgba(29,77,46,0.45); text-align: center; margin-top: 36px; max-width: 880px; margin-left: auto; margin-right: auto; }
.stat-footnote cite { font-style: italic; }
.stat-ref { font-size: 11px; vertical-align: super; color: var(--orange); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }

/* ══════════════════════════════════════════════════════════════════════
   Mid-page CTA
═══════════════════════════════════════════════════════════════════════ */
#mid-cta {
  background: var(--cream); padding: 88px 24px; text-align: center;
  position: relative; overflow: hidden;
}
#mid-cta::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,106,63,0.05) 0%, transparent 70%);
  transform: translate(-50%, -50%); pointer-events: none;
}
#mid-cta > * { position: relative; z-index: 1; }
.mid-cta-eyebrow { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--orange); font-weight: 600; margin-bottom: 16px; }
.mid-cta-h { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(30px, 4.5vw, 42px); color: var(--green-dark); margin-bottom: 14px; line-height: 1.2; }
.mid-cta-setup,
.mid-cta-punch { display: block; }
.mid-cta-setup { font-size: 0.78em; color: var(--green-dark); opacity: 0.72; margin-bottom: 6px; font-weight: 600; }
.mid-cta-punch { color: var(--green-dark); }
.mid-cta-sub { font-size: 16px; color: var(--green-dark); line-height: 1.65; max-width: 440px; margin: 0 auto 40px; }
#mid-cta .form-success { color: var(--green-dark); }
#mid-cta .email-row input[type="email"] { background: #fff; }
#mid-cta .form-success-msg { color: var(--green-dark); }
#mid-cta .success-social-btn.instagram { background: rgba(29,77,46,0.10); border-color: rgba(29,77,46,0.22); color: var(--green-dark); }
#mid-cta .success-social-btn.twitter   { background: rgba(29,77,46,0.10); border-color: rgba(29,77,46,0.22); color: var(--green-dark); }
#mid-cta .waitlist-count-wrap { color: var(--green-dark); }

/* ══════════════════════════════════════════════════════════════════════
   Footer
═══════════════════════════════════════════════════════════════════════ */
footer { background: #163d22; padding: 48px 24px; text-align: center; }
footer p { font-size: 13px; color: rgba(250,247,242,0.7); }
footer a { color: rgba(250,247,242,0.7); text-decoration: none; }
footer a:hover { text-decoration: underline; color: rgba(250,247,242,0.9); }
.footer-signin-link {
  background: none; border: none; font-size: 13px; color: rgba(250,247,242,0.5);
  cursor: pointer; font-family: inherit; padding: 0; text-decoration: underline;
}
.footer-signin-link:hover { color: rgba(250,247,242,0.8); }

/* ══════════════════════════════════════════════════════════════════════
   Nav
═══════════════════════════════════════════════════════════════════════ */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; background: rgba(29,77,46,0); transition: background 0.3s;
}
#site-nav.scrolled { background: rgba(29,77,46,0.97); backdrop-filter: blur(8px); }
.nav-wordmark { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 20px; color: #fff; text-decoration: none; letter-spacing: -0.5px; }
.nav-wordmark span { color: var(--orange); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-btn-signin { font-size: 13px; font-family: inherit; font-weight: 500; color: rgba(255,255,255,0.8); background: none; border: none; cursor: pointer; padding: 6px 10px; text-decoration: none; transition: color 0.15s; }
.nav-btn-signin:hover { color: #fff; }
.nav-btn-signup { font-size: 13px; font-family: Georgia, "Times New Roman", serif; font-weight: 700; color: var(--cream); background: var(--orange); border: none; border-radius: 6px; padding: 7px 14px; cursor: pointer; text-decoration: none; transition: background 0.15s, transform 0.1s; display: inline-block; }
.nav-btn-signup:hover { background: #cf6e3f; }
.nav-btn-signup:active { transform: scale(0.97); }
.nav-user { font-size: 13px; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 10px; }
.nav-account-link { font-size: 13px; font-family: inherit; font-weight: 500; color: #fff; text-decoration: none; background: rgba(255,255,255,0.12); border-radius: 6px; padding: 6px 12px; transition: background 0.15s; }
.nav-account-link:hover { background: rgba(255,255,255,0.2); }

/* ══════════════════════════════════════════════════════════════════════
   Sign-in modal
═══════════════════════════════════════════════════════════════════════ */
#signin-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
#signin-modal.open { opacity: 1; pointer-events: auto; }
.signin-card { background: #fff; border-radius: 16px; padding: 36px 32px; width: 100%; max-width: 400px; position: relative; }
@media (max-width: 480px) { .signin-card { padding: 28px 20px; } }
.signin-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: #999; line-height: 1; padding: 4px 8px; }
.signin-close:hover { color: #333; }
.signin-wordmark { display: block; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 22px; color: var(--green-dark); text-align: center; text-decoration: none; margin-bottom: 20px; }
.signin-wordmark span { color: var(--orange); }
.signin-heading { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 700; color: var(--text-dark); text-align: center; margin-bottom: 20px; }
.signin-oauth { width: 100%; height: 44px; border-radius: 8px; border: 1.5px solid #e8e0d4; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; font-family: inherit; font-weight: 500; cursor: pointer; margin-bottom: 8px; transition: background 0.15s; }
.signin-oauth.apple  { background: #000; color: #fff; border-color: #000; }
.signin-oauth.apple:hover  { background: #1a1a1a; }
.signin-oauth.google { background: #fff; color: var(--text-dark); }
.signin-oauth.google:hover { background: #f7f7f7; }
.signin-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 12px; color: #999; }
.signin-divider::before, .signin-divider::after { content: ''; flex: 1; height: 1px; background: #e8e0d4; }
.signin-input { width: 100%; height: 44px; padding: 0 12px; font-size: 14px; font-family: inherit; background: #FAF7F2; border: 1.5px solid #e8e0d4; border-radius: 8px; color: var(--text-dark); outline: none; margin-bottom: 10px; -webkit-appearance: none; transition: border-color 0.2s; }
.signin-input:focus { border-color: var(--green-dark); }
.signin-input::placeholder { color: #bbb; }
.signin-submit { width: 100%; height: 44px; border-radius: 8px; border: none; background: var(--orange); color: var(--cream); font-size: 14px; font-family: Georgia, "Times New Roman", serif; font-weight: 700; cursor: pointer; margin-top: 4px; transition: background 0.2s; }
.signin-submit:hover:not(:disabled) { background: #cf6e3f; }
.signin-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.signin-error { font-size: 12px; color: var(--orange); text-align: center; margin-top: 8px; min-height: 16px; }
.signin-footer { font-size: 12px; color: #999; text-align: center; margin-top: 14px; }
.signin-footer a { color: var(--green-dark); text-decoration: none; font-weight: 500; }
.signin-footer a:hover { text-decoration: underline; }

/* ── Scroll progress ─────────────────────────────────────────────────── */
#scroll-progress { position: fixed; left: 0; top: 0; width: 2px; height: 100%; background: var(--orange); transform-origin: top center; transform: scaleY(0); z-index: 9999; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════════
   Responsive
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
  .hero-inner { flex-direction: column; align-items: center; text-align: center; padding: 104px 28px 80px; gap: 56px; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-benefit { text-align: left; }
  .hero-form-wrap { max-width: 100%; }
  .hero-ambient { display: none; }
}
@media (max-width: 740px) {
  .feat-inner, .feat-inner.flip { flex-direction: column; gap: 48px; }
  .feat-p { max-width: 100%; }
  .iphone { width: 212px; height: 458px; border-radius: 44px; }
  .iphone-screen { border-radius: 36px; }
  .iphone-island { width: 76px; height: 22px; top: 14px; }
  .problems-grid { grid-template-columns: 1fr; }
  .prob-card { padding: 36px 32px; }
  .prob-image { width: calc(100% + 64px); margin-left: -32px; margin-right: -32px; }
  .stats-inner { grid-template-columns: 1fr; gap: 40px; }
  .stat-divider { display: none; }
  .feat          { padding: 64px 24px; }
  #problems      { padding: 36px 24px 32px; }
  #stats-strip   { padding: 40px 24px 48px; }
  #mid-cta       { padding: 72px 24px; }
  .feat-text     { order: -1; }
}
@media (max-width: 600px) {
  .email-row input[type="email"] { padding: 0 14px; font-size: 14px; }
  .email-row button { padding: 0 14px; font-size: 13px; }
}
@media (max-width: 380px) {
  .email-row { flex-direction: column; height: auto; border-radius: 12px; }
  .email-row input[type="email"] { border-radius: 12px 12px 0 0; height: 52px; width: 100%; }
  .email-row button { border-radius: 0 0 12px 12px; height: 52px; width: 100%; }
}
@media (min-width: 768px) { .phone-col { perspective: 800px; } }


/* ── iOS launch badge ───────────────────────────────────────────────── */
.launch-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(250,247,242,0.09);
  border: 1px solid rgba(250,247,242,0.22);
  border-radius: 100px; padding: 10px 22px;
  font-size: 13px; font-weight: 500; color: rgba(250,247,242,0.82);
  margin-bottom: 32px; letter-spacing: 0.02em; cursor: default;
}
.launch-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(250,247,242,0.82); flex-shrink: 0;
}

/* ── Hero ambient glow breathe ─────────────────────────────────────── */
@keyframes glow-breathe {
  0%, 100% { transform: translate(-50%,-50%) scale(1);    opacity: 0.85; }
  50%       { transform: translate(-50%,-50%) scale(1.18); opacity: 1;    }
}
.hero-device-glow { animation: glow-breathe 5s ease-in-out infinite; }

/* ── Hero element stagger ───────────────────────────────────────────── */
.launch-badge.reveal                              { transition-delay: 0ms;   }
.hero-wordmark.reveal                             { transition-delay: 90ms;  }
.hero-tagline.reveal                              { transition-delay: 190ms; }
.hero-headline.reveal                             { transition-delay: 240ms; }
.hero-benefits .hero-benefit:nth-child(1).reveal  { transition-delay: 360ms; }
.hero-benefits .hero-benefit:nth-child(2).reveal  { transition-delay: 480ms; }
.hero-benefits .hero-benefit:nth-child(3).reveal  { transition-delay: 600ms; }
.hero-form-wrap.reveal                            { transition-delay: 720ms; }

/* ── Problem card stagger ───────────────────────────────────────────── */
.problems-grid .prob-card:nth-child(1) { transition-delay: 0ms;   }
.problems-grid .prob-card:nth-child(2) { transition-delay: 150ms; }

/* ── Floating hero particles ───────────────────────────────────────── */
.hero-dot { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
@keyframes dot-drift {
  0%   { transform: translate(0,0) scale(1);    opacity: var(--lo); }
  33%  { transform: translate(var(--dx1),var(--dy1)) scale(1.15); opacity: var(--hi); }
  66%  { transform: translate(var(--dx2),var(--dy2)) scale(0.88); opacity: var(--lo); }
  100% { transform: translate(0,0) scale(1);    opacity: var(--lo); }
}

/* ── Stat count-up ─────────────────────────────────────────────────── */
.stat-val { display: inline; font-variant-numeric: tabular-nums; }

/* ── Stats stagger ──────────────────────────────────────────────────── */
#stats-strip .stats-inner > div:nth-child(1).reveal { transition-delay: 0ms;   }
#stats-strip .stats-inner > div:nth-child(2).reveal { transition-delay: 180ms; }
#stats-strip .stats-inner > div:nth-child(3).reveal { transition-delay: 360ms; }

/* ── Stat number flash ──────────────────────────────────────────────── */
@keyframes stat-flash {
  0%   { color: var(--green-dark); }
  45%  { color: var(--orange); }
  100% { color: var(--green-dark); }
}
.stat-num.flashing { animation: stat-flash 0.65s ease-out forwards; }

/* ── Mid-CTA stagger ────────────────────────────────────────────────── */
#mid-cta .mid-cta-eyebrow.reveal { transition-delay: 0ms;   }
#mid-cta .mid-cta-h.reveal       { transition-delay: 100ms; }
#mid-cta .mid-cta-sub.reveal     { transition-delay: 200ms; }
#mid-cta > div.reveal            { transition-delay: 320ms; }

/* ── Prob-card icon bounce on hover ─────────────────────────────────── */

/* ── Pill & solve badge hover ───────────────────────────────────────── */
.feat-pill, .prob-solve {
  transition: transform 0.2s cubic-bezier(0.34, 1.18, 0.64, 1),
              border-color 0.2s ease, box-shadow 0.2s ease;
}
.feat-pill:hover  { transform: scale(1.04); background: #cf6e3f; border-color: #cf6e3f; box-shadow: 0 2px 12px rgba(196,98,45,0.25); }
.prob-solve:hover { transform: scale(1.04); background: #cf6e3f; border-color: #cf6e3f; box-shadow: 0 2px 12px rgba(196,98,45,0.25); }

/* ── Feature text inner stagger ─────────────────────────────────────── */
.feat-text-reveal .feat-h,
.feat-text-reveal .feat-p,
.feat-text-reveal .feat-pill {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.34, 1.18, 0.64, 1);
}
.feat-text-reveal.visible .feat-h    { opacity: 1; transform: translateY(0); transition-delay: 60ms;  }
.feat-text-reveal.visible .feat-p    { opacity: 1; transform: translateY(0); transition-delay: 160ms; }
.feat-text-reveal.visible .feat-pill { opacity: 1; transform: translateY(0); transition-delay: 260ms; }

/* ── Section heading underline slide-in ─────────────────────────────── */
.feat-h { position: relative; }
.feat-h::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 52px; height: 3px; border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.34, 1.18, 0.64, 1) 0.28s;
}
.feat-text-reveal.visible .feat-h::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════════════════════════════
   How it works
═══════════════════════════════════════════════════════════════════════ */
#how-it-works { background: var(--green-dark); padding: 88px 24px 80px; text-align: center; }
.how-heading { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(28px, 4vw, 38px); color: var(--cream); margin-bottom: 56px; }
.how-steps { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; position: relative; }
.how-step { position: relative; }
.how-num { width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; position: relative; z-index: 1; }
.how-h { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 17px; color: var(--cream); margin-bottom: 10px; line-height: 1.3; }
@media (min-width: 641px) {
  /* connector line spans the full gap between adjacent step circles */
  .how-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px; /* vertical center of the 48px circle */
    left: 100%; /* start at right edge of this grid column */
    width: 48px; /* exactly the grid gap — fills to left edge of next column */
    border-top: 1px dashed rgba(250,247,242,0.22);
    pointer-events: none;
  }
}
@media (max-width: 640px) {
  .how-steps { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .how-step { display: flex; align-items: center; gap: 16px; }
  .how-num { margin: 0; flex-shrink: 0; }
  .how-h { margin-bottom: 0; }
}

/* ══════════════════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════════════════ */
#faq { background: var(--green-dark); padding: 96px 24px 80px; }
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-heading { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(28px, 4vw, 38px); color: var(--cream); margin-bottom: 52px; }
.faq-item { border-top: 1px solid rgba(250,247,242,0.15); padding: 0; }
.faq-item:last-child { border-bottom: 1px solid rgba(250,247,242,0.15); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 17px; color: var(--cream); margin: 0; flex: 1; }
.faq-chevron { color: var(--orange); flex-shrink: 0; transition: transform 0.28s cubic-bezier(0.34, 1.18, 0.64, 1); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a { font-size: 15px; color: var(--green-muted); line-height: 1.75; padding: 0 0 22px; margin: 0; }
.faq-a a { color: var(--cream); text-decoration: underline; }
.faq-item summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 740px) { #faq { padding: 64px 24px 56px; } }

/* ── Success state social follow ────────────────────────────────────── */
.form-success-wrap { text-align: center; padding: 12px 0; }
.form-success-msg { font-size: 16px; color: var(--cream); margin-bottom: 18px; line-height: 1.5; }
.success-social { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.success-social-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: opacity 0.15s;
}
.success-social-btn:hover { opacity: 0.82; }
.success-social-btn.instagram { background: rgba(250,247,242,0.15); border: 1px solid rgba(250,247,242,0.28); color: var(--cream); }
.success-social-btn.twitter   { background: rgba(250,247,242,0.15); border: 1px solid rgba(250,247,242,0.28); color: var(--cream); }

/* ── Waitlist count ─────────────────────────────────────────────────── */
.waitlist-count-wrap { display: block; font-size: 12px; color: rgba(250,247,242,0.45); text-align: center; margin-top: 10px; letter-spacing: 0.03em; }

@media (prefers-reduced-motion: reduce) {
  .hero-device-col  { animation: none !important; }
  .hero-device-glow { animation: none !important; }
  .hero-dot { animation: none !important; }
  .scroll-cue { animation: none !important; }
  .stat-num.flashing { animation: none !important; }
  .reveal, .feat-text-reveal, .phone-enter-left, .phone-enter-right, .overline,
  .feat-text-reveal .feat-h, .feat-text-reveal .feat-p, .feat-text-reveal .feat-pill {
    transition-duration: 0.01ms !important; transition-delay: 0ms !important;
  }
  .feat-h::after { transition: none !important; }
}
