/* ============================================================
   Gutsy Marketing Site — Styles
   Design tokens synced with GustyTheme.swift (March 2026)
   Perform-inspired dark hero + scroll animations
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  /* Core palette — synced with GustyTheme.swift */
  --background: #FFFFFF;
  --foreground: #1A3320;
  --primary: #1E3820;
  --primary-mid: #1E5C2A;
  --primary-light: #2D8A3A;
  --score-green: #5CB85C;
  --sage-mint: #8BC49A;
  --cloud-grey: #D9D9D9;
  --white: #FFFFFF;
  --dark: #0A0A0A;
  --dark-mid: #141414;
  --dark-light: #1C1C1C;
  --cream: #F7F7F3;

  /* Text hierarchy */
  --text-primary: #1A3320;
  --text-secondary: #2A4630;
  --text-body: #405344;
  --text-muted: #667469;
  --text-ghost: #8B968E;

  /* FODMAP status */
  --fodmap-low: #3D7A3A;
  --fodmap-moderate: #E8A020;
  --fodmap-high: #C4622D;

  /* Typography — synced with app */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-serif);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Container ---------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  border-radius: var(--radius-md);
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, rgba(45, 70, 40, 0.9) 0%, rgba(30, 56, 32, 0.95) 50%, rgba(20, 40, 22, 0.9) 100%);
  color: var(--white);
  padding: 14px 28px;
  font-size: 15px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 196, 154, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-primary-dark {
  background: var(--white);
  color: var(--primary);
  padding: 14px 28px;
  font-size: 15px;
}
.btn-secondary {
  background: transparent;
  color: var(--foreground);
  padding: 14px 28px;
  font-size: 15px;
  border: 1.5px solid rgba(26, 51, 32, 0.2);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 28px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 12px;
  left: 24px;
  right: 24px;
  z-index: 100;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(30, 56, 32, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s, top 0.3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  border-color: rgba(30, 56, 32, 0.1);
  padding: 10px 24px;
  top: 8px;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-icon {
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: contain;
}
.nav-logo-wordmark {
  height: 20px;
  width: auto;
  object-fit: contain;
}
.nav-wordmark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #1A5C1A;
  letter-spacing: -0.02em;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.btn-outline-light {
  background: var(--primary);
  color: var(--white);
  border: 1.5px solid var(--primary);
  padding: 10px 20px;
  font-size: 14px;
  border-radius: var(--radius-full);
}
.btn-outline-light:hover {
  background: var(--primary-mid);
  border-color: var(--primary-mid);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 10px 12px;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-links a:hover { color: var(--foreground); background: rgba(30, 56, 32, 0.04); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
}

/* ---------- Hero (Light Warm Gradient) ---------- */
.hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(165deg, #F5F0EA 0%, #EDE7DF 20%, #E8E0D6 40%, #F0EBE4 60%, #F7F4F0 80%, #FDFCFA 100%);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(200, 185, 165, 0.25) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 60%, rgba(220, 210, 195, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* ---------- Hero V2 Layout ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content-v2 {
  /* text column */
}
.hero-visual-v2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Eyebrow with animated line */
.hero-eyebrow-v2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  opacity: 0;
}
.hero-eyebrow-v2.animate {
  opacity: 1;
}
.hero-eyebrow-line {
  display: block;
  width: 0;
  height: 1.5px;
  background: rgba(30, 56, 32, 0.3);
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-eyebrow-v2.animate .hero-eyebrow-line {
  width: 48px;
}
.hero-eyebrow-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-body);
  transform: translateX(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}
.hero-eyebrow-v2.animate .hero-eyebrow-text {
  transform: translateX(0);
  opacity: 1;
}

/* Title with typewriter */
.hero-title-v2 {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--foreground);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-title-v2 em {
  font-style: normal;
  color: var(--foreground);
}
.hero-title-v2 strong {
  font-weight: 700;
}
.typewriter-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent;
  width: 0;
}
.hero-title-v2.typing .typewriter-line-1 {
  animation: typewriter 0.7s steps(16, end) 0.1s forwards, caretFade 0.1s ease 0.9s forwards;
  border-right-color: var(--primary-mid);
}
.hero-title-v2.typing .typewriter-line-2 {
  animation: typewriter 0.6s steps(14, end) 0.9s forwards, caretFade 0.1s ease 1.6s forwards;
  border-right-color: var(--primary-mid);
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blinkCaret {
  0%, 100% { border-right-color: var(--primary-mid); }
  50% { border-right-color: transparent; }
}
@keyframes caretFade {
  to { border-right-color: transparent; }
}

/* Body text — blur in */
.hero-body-v2 {
  margin-bottom: 36px;
}
.hero-body-v2 p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 16px;
}
.hero-body-v2 p:last-child { margin-bottom: 0; }
.hero-body-v2 strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Hero statement */
.hero-statement {
  margin-bottom: 36px;
}
.hero-statement-line {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.hero-statement-accent {
  color: var(--primary-mid);
  font-weight: 500;
}

/* Blur-in animation */
.blur-in {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(8px);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}
.blur-in.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.blur-in-delay-1 { transition-delay: 0.15s; }

/* Hero download buttons */
.hero-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-download .btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
}
.appstore-badge-link {
  display: inline-block;
  transition: opacity 0.2s;
}
.appstore-badge-link:hover {
  opacity: 0.8;
}
.appstore-badge-link img {
  display: block;
}

/* Email signup v2 — pill style (legacy, kept for reference) */
.hero-email-v2 {
  display: flex;
  align-items: center;
  background: rgba(30, 56, 32, 0.04);
  border: 1.5px solid rgba(30, 56, 32, 0.12);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 20px;
  max-width: 320px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.hero-email-v2:focus-within {
  border-color: var(--primary-mid);
}
.hero-email-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  padding: 8px 0;
  min-width: 0;
}
.hero-email-input::placeholder {
  color: var(--text-ghost);
}
.hero-email-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 92, 42, 0.15);
  color: var(--primary-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.hero-email-btn:hover {
  background: rgba(139, 196, 154, 0.4);
}
.hero-email-btn:active {
  transform: scale(0.95);
}

/* Feature list with left border */
.hero-features-v2 {
  margin-bottom: 32px;
  padding-left: 0;
  position: relative;
}
.hero-features-border {
  display: none;
}
.hero-features-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hero-features-tagline {
  font-style: italic;
  color: var(--text-body) !important;
}

/* Glide-up animation */
.glide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glide-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.glide-up-delay-1 { transition-delay: 0.2s; }

/* Bottom badges */
.hero-badges-v2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-ghost);
}
.hero-badge-item strong {
  color: var(--primary-mid);
  font-weight: 600;
}
.hero-badge-check {
  color: var(--primary-mid);
  flex-shrink: 0;
}

.hero-phones {
  position: relative;
  width: 420px;
  height: 540px;
  cursor: pointer;
}
.phone-frame {
  position: absolute;
  background: #0A0A0A;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 12px 32px rgba(0, 0, 0, 0.10);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), z-index 0s 0.3s;
}
.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 32px;
}
.phone-primary {
  width: 260px;
  height: 520px;
  top: 0;
  left: 0;
  z-index: 2;
  transform: rotate(-3deg);
}
.phone-secondary {
  width: 240px;
  height: 480px;
  top: 40px;
  right: 0;
  z-index: 1;
  transform: rotate(4deg);
}
@media (hover: hover) {
  .hero-phones:hover .phone-primary {
    transform: rotate(4deg) translateX(60px) scale(0.92);
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), z-index 0s;
  }
  .hero-phones:hover .phone-secondary {
    transform: rotate(-2deg) translateX(-80px) translateY(-20px) scale(1.05);
    z-index: 2;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), z-index 0s;
  }
}
.hero-phones.swapped .phone-primary {
  transform: rotate(4deg) translateX(60px) scale(0.92);
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), z-index 0s;
}
.hero-phones.swapped .phone-secondary {
  transform: rotate(-2deg) translateX(-80px) translateY(-20px) scale(1.05);
  z-index: 2;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), z-index 0s;
}
.glide-up-delay-2 { transition-delay: 0.4s; }

/* Peek animation */
.hero-phones.peek .phone-primary {
  animation: peekPrimary 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-phones.peek .phone-secondary {
  animation: peekSecondary 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes peekPrimary {
  0% { transform: rotate(-3deg); z-index: 2; }
  35% { transform: rotate(4deg) translateX(50px) scale(0.92); z-index: 1; }
  65% { transform: rotate(4deg) translateX(50px) scale(0.92); z-index: 1; }
  100% { transform: rotate(-3deg); z-index: 2; }
}
@keyframes peekSecondary {
  0% { transform: rotate(4deg); z-index: 1; }
  35% { transform: rotate(-2deg) translateX(-70px) translateY(-15px) scale(1.04); z-index: 2; }
  65% { transform: rotate(-2deg) translateX(-70px) translateY(-15px) scale(1.04); z-index: 2; }
  100% { transform: rotate(4deg); z-index: 1; }
}

/* ---------- Waitlist Form ---------- */
.waitlist-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 440px;
}
.waitlist-input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.waitlist-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.waitlist-input:focus {
  border-color: var(--score-green);
  background: rgba(255, 255, 255, 0.1);
}
.waitlist-submit {
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.2) 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  white-space: nowrap;
}
.waitlist-submit:hover { background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.3) 100%); border-color: rgba(255, 255, 255, 0.35); }
.waitlist-submit:active { transform: scale(0.98); }
.waitlist-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.waitlist-error {
  color: var(--fodmap-high);
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 8px;
  min-height: 18px;
}
.waitlist-counter {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.waitlist-counter strong {
  color: var(--score-green);
  font-weight: 600;
}
/* Honeypot — hidden from humans */
.waitlist-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* Dark variant (for CTA section) */
.waitlist-form-dark .waitlist-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}
.waitlist-form-dark .waitlist-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.waitlist-form-dark .waitlist-input:focus {
  border-color: var(--score-green);
  background: rgba(255, 255, 255, 0.1);
}

/* Light variant (if needed in white sections) */
.waitlist-form-light .waitlist-input {
  background: var(--cream);
  border-color: rgba(26, 51, 32, 0.15);
  color: var(--foreground);
}
.waitlist-form-light .waitlist-input::placeholder { color: var(--text-ghost); }
.waitlist-form-light .waitlist-input:focus {
  border-color: var(--primary);
  background: var(--white);
}

/* ---------- Value Props Row ---------- */
.stats {
  padding: 80px 0;
  background: var(--white);
  border-bottom: 1px solid rgba(26, 51, 32, 0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(30, 56, 32, 0.06);
  color: var(--primary);
  margin-bottom: 8px;
}
.stat-icon svg {
  width: 28px;
  height: 28px;
}
.stat-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.2;
}
.stat-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 200px;
}

/* ---------- Sections (shared) ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--score-green);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--foreground);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
}

/* ---------- Features ---------- */
.features {
  padding: 100px 0;
  background: linear-gradient(180deg, #F0EAE0 0%, #E2D9C8 100%);
}

/* Feature Tabs */
.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.feature-tab {
  padding: 10px 24px;
  border: 1.5px solid rgba(30, 56, 32, 0.15);
  border-radius: var(--radius-full);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.feature-tab:hover {
  border-color: var(--primary);
  color: var(--foreground);
}
.feature-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Feature Carousel */
.feature-carousel {
  position: relative;
  min-height: 480px;
}
.feature-slide {
  display: none;
  align-items: center;
  gap: 64px;
}
.feature-slide.active {
  display: grid;
  grid-template-columns: 280px 1fr;
  animation: fadeSlide 0.4s ease;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Carousel dots (mobile only) */
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 0;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active {
  background: var(--forest);
  transform: scale(1.25);
}
/* Carousel nav + arrows — hidden on desktop (tabs handle navigation) */
.carousel-nav {
  display: none;
}
.carousel-arrow {
  display: none;
}

/* Slide Phone */
.feature-slide-phone {
  display: flex;
  justify-content: center;
}
.feature-slide-phone .phone-frame {
  position: relative;
  width: 260px;
  height: 520px;
  background: #0A0A0A;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.10);
}
.feature-slide-phone .phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 32px;
}

/* Slide Content */
.feature-slide-content {
  padding: 20px 0;
}
.feature-slide-content h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 16px;
}
.feature-slide-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 24px;
  max-width: 480px;
}
.feature-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-bullets li {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}
.feature-bullets li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--score-green);
  font-weight: 700;
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: 80px 0;
  background: linear-gradient(180deg, #E2D9C8 0%, #BFC0A0 100%);
}
.steps-timeline {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 40px;
}
.timeline-step:last-child {
  padding-bottom: 0;
}
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--cloud-grey));
}
.timeline-marker {
  flex-shrink: 0;
}
.timeline-marker span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-content {
  padding-top: 6px;
}
.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--foreground);
}
.timeline-content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 420px;
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 100px 0;
  background: linear-gradient(180deg, #BFC0A0 0%, #7A8E62 100%);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 740px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  border: 2px solid transparent;
}
.pricing-card-featured {
  border-color: var(--primary);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-tier {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--foreground);
}
.pricing-price {
  margin-bottom: 4px;
}
.price-amount {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.price-period {
  font-size: 16px;
  color: var(--text-muted);
}
.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pricing-features li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-body);
}
.check {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- Money-Back Guarantee ---------- */
.guarantee-banner {
  text-align: center;
  max-width: 560px;
  margin: 48px auto 0;
  padding: 32px 28px;
  background: rgba(21, 90, 3, 0.04);
  border: 1px solid rgba(21, 90, 3, 0.12);
  border-radius: 16px;
}
.guarantee-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.guarantee-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}
.guarantee-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.guarantee-fine-print {
  font-size: 11px;
  color: var(--ghost);
}
.guarantee-fine-print a {
  color: var(--ghost);
  text-decoration: underline;
}

/* ---------- About / Dark Section ---------- */
.about-dark {
  padding: 100px 0;
  background: linear-gradient(180deg, #7A8E62 0%, #3A4D2F 100%);
  color: var(--white);
}
.about-dark .section-eyebrow { color: var(--score-green); }
.about-dark .section-title { color: var(--white); }
.about-dark .section-subtitle { color: rgba(255, 255, 255, 0.6); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.about-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.about-card-icon {
  margin-bottom: 16px;
  color: var(--sage-mint);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(139, 196, 154, 0.1);
}
.about-card-icon svg {
  width: 22px;
  height: 22px;
}
.about-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}
.about-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- FAQ ---------- */
.faq {
  padding: 100px 0;
  background: linear-gradient(180deg, #3A4D2F 0%, #1E3820 100%);
  color: var(--white);
}
.faq .section-eyebrow { color: var(--sage-mint); }
.faq .section-title { color: var(--white); }
.faq .section-subtitle { color: rgba(255, 255, 255, 0.6); }
.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--sage-mint);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item p {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}
.faq-item p a {
  color: var(--sage-mint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Download / Waitlist CTA ---------- */
.download-cta {
  padding: 100px 0;
  background: linear-gradient(165deg, var(--primary) 0%, var(--dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(92, 184, 92, 0.1) 0%, transparent 60%);
}
.download-inner {
  position: relative;
  z-index: 1;
}
.download-inner .section-title {
  color: var(--white);
}
.download-inner .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
}
.download-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.download-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  background: linear-gradient(180deg, #141E10 0%, #0D120A 40%, #0A0A0A 100%);
  color: rgba(255, 255, 255, 0.7);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Success Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: modalIn 0.35s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s;
}
.modal-close:hover { background: var(--cloud-grey); }
.modal-position {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.modal-position-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.modal h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--foreground);
}
.modal p {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.6;
}
.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.share-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(26, 51, 32, 0.15);
  background: var(--white);
  color: var(--foreground);
  transition: background 0.2s, border-color 0.2s;
}
.share-btn:hover {
  background: var(--cream);
  border-color: rgba(26, 51, 32, 0.3);
}
.share-btn.copied {
  background: var(--score-green);
  color: var(--white);
  border-color: var(--score-green);
}

/* ---------- Confetti ---------- */
.confetti-container {
  position: fixed;
  inset: 0;
  z-index: 201;
  pointer-events: none;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  top: -10px;
  animation: confettiFall 2.5s ease-in forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg) scale(0.5); opacity: 0; }
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero staggered entrance (legacy, kept for other sections) */
.hero-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.5s cubic-bezier(0.44, 0, 0.56, 1) forwards;
}
.hero-animate-1 { animation-delay: 0.2s; }
.hero-animate-2 { animation-delay: 0.4s; }
.hero-animate-3 { animation-delay: 0.6s; }
.hero-animate-4 { animation-delay: 0.8s; }
.hero-animate-5 { animation-delay: 1.0s; }
.hero-animate-6 { animation-delay: 1.2s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero background zoom */
.hero-bg-zoom {
  animation: heroZoom 2.5s cubic-bezier(0.12, 0.23, 0.5, 1) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 48px;
  }
  .hero-title-v2 { font-size: 42px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .feature-slide.active {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }
  .feature-slide-phone .phone-frame {
    width: 220px;
    height: 440px;
    border-radius: 36px;
    padding: 8px;
  }
  .feature-slide-phone .phone-frame img { border-radius: 28px; }
  .feature-slide-content h3 { font-size: 26px; }
  .feature-carousel { min-height: 440px; position: relative; overflow: hidden; }
  .feature-tabs { display: none; }
  .carousel-dots { display: flex; }
  /* Carousel nav: title above image */
  .carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
  }
  .carousel-nav-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--foreground);
    text-align: center;
  }
  /* Arrows positioned at midpoint of phone image */
  .carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 220px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(30, 56, 32, 0.2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .carousel-arrow:active {
    background: var(--primary);
    border-color: var(--primary);
  }
  .carousel-arrow:active svg { stroke: #fff; }
  .carousel-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--foreground);
  }
  .carousel-arrow-left { left: 8px; }
  .carousel-arrow-right { right: 8px; }
  .feature-slide-content h3 { display: none; }
  .timeline-step { gap: 20px; }
  .timeline-content p { font-size: 14px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-right .btn-outline-light { display: inline-flex; padding: 8px 14px; font-size: 11px; white-space: nowrap; }
  .mobile-menu-btn { display: flex; }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-title-v2 { font-size: 32px; }
  .hero-phones { width: 320px; height: 440px; }
  .phone-primary { width: 200px; height: 400px; border-radius: 32px; padding: 8px; }
  .phone-primary img { border-radius: 26px; }
  .phone-secondary { width: 185px; height: 370px; border-radius: 32px; padding: 8px; }
  .phone-secondary img { border-radius: 26px; }
  .section-title { font-size: 30px; }
  .stat-name { font-size: 18px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-submit { width: 100%; }
  .feature-slide.active {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .feature-slide.active.slide-right {
    animation: slideFromRight 0.35s ease;
  }
  .feature-slide.active.slide-left {
    animation: slideFromLeft 0.35s ease;
  }
  .feature-slide-content { padding: 0; }
  .feature-slide-content p { margin-left: auto; margin-right: auto; }
  .feature-bullets { align-items: center; }
  .feature-carousel { min-height: auto; }
  .feature-slide-phone .phone-frame {
    width: 200px;
    height: 400px;
    border-radius: 32px;
    padding: 8px;
  }
  .feature-slide-phone .phone-frame img { border-radius: 26px; }
  .carousel-arrow { top: 200px; }
  .carousel-nav-title { font-size: 22px; }
  .hero-phones { width: 320px; height: 440px; }
  .phone-primary { width: 200px; height: 400px; border-radius: 32px; padding: 8px; }
  .phone-primary img { border-radius: 26px; }
  .phone-secondary { width: 185px; height: 370px; border-radius: 32px; padding: 8px; }
  .phone-secondary img { border-radius: 26px; }
  .about-card { padding: 24px 20px; }
  .modal { padding: 36px 28px; }
  .modal-position { font-size: 44px; }
  .share-buttons { flex-direction: column; }
}
