:root {
  --bg: #FAFAF7;
  --bg-warm: #F5F0E8;
  --fg: #1A1A1A;
  --fg-muted: #6B6860;
  --accent: #FF4D2B;
  --accent-warm: #FFF0EC;
  --border: #E8E4DB;
  --surface: #FFFFFF;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

.nav-tagline-text { opacity: 0.6; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--fg); background: var(--bg-warm); }

.nav-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
  background: var(--accent);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(255, 77, 43, 0.3);
}
.nav-btn:hover { background: #e63c1a; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255, 77, 43, 0.4); }

/* ── HERO ── */
.hero {
  padding: 72px 48px 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 56px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--fg);
}

.headline-line { display: block; }

.headline-accent {
  color: var(--accent);
  font-style: italic;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* CTA row */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(255, 77, 43, 0.35);
}

.cta-primary:hover {
  background: #e63c1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 43, 0.45);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 4px;
  border-radius: 8px;
  transition: color 0.15s;
}

.cta-secondary:hover { color: var(--fg); }

/* Trust signals */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* Hero image */
.hero-image-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 6px 16px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

.hero-img-price-badge {
  position: absolute;
  bottom: -16px;
  right: -8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  text-align: left;
}

.price-badge-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.price-badge-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.price-badge-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #1A7A4A;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── STATS ROW ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: var(--border);
  margin: 0 36px;
}

/* ── HOW IT WORKS ── */
.how {
  padding: 72px 48px;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 36px;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
}

.step {
  flex: 1;
  max-width: 260px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--border);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.step-icon {
  color: var(--fg);
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.step-connector {
  padding-top: 40px;
  padding-left: 24px;
  padding-right: 24px;
  color: var(--fg-muted);
}

/* ── FEATURES ── */
.features {
  padding: 96px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 56px;
  color: var(--fg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg-warm);
}

.feature-card--large {
  grid-column: span 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-warm);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--fg);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── USE CASES ── */
.usecases {
  padding: 64px 48px;
  background: var(--fg);
  color: white;
}

.usecases-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.usecases-label {
  padding-top: 4px;
}

.usecases .section-label {
  color: rgba(255,255,255,0.5);
}

.usecases-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.usecase-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.88rem;
  transition: background 0.2s;
}

.usecase-item:hover {
  background: rgba(255,255,255,0.12);
}

.usecase-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
}

/* ── CLOSING ── */
.closing {
  padding: 96px 48px;
  text-align: center;
  background: var(--bg);
}

.closing-inner {
  max-width: 560px;
  margin: 0 auto;
}

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 36px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--fg);
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 36px;
}

.closing-cta .cta-primary {
  font-size: 1.05rem;
  padding: 16px 36px;
}

/* ── CTA SIZES ── */
.cta-primary--lg {
  font-size: 1.1rem;
  padding: 16px 32px;
  border-radius: 14px;
  letter-spacing: -0.01em;
}

/* ── TRUST BADGE PILL ── */
.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #6366F1;
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ── CLOSING SECTION UPGRADE ── */
.closing-inner .social-proof-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.closing-inner .proof-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.closing-inner .proof-item svg { color: #1A7A4A; }

.closing-inner .proof-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

.closing-inner .closing-cta-large .cta-primary {
  font-size: 1.15rem;
  padding: 18px 42px;
}

/* ── STRIPE BADGE (landing) ── */
.stripe-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}

.stripe-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.stripe-trust-item svg { flex-shrink: 0; }
.stripe-trust-divider { width: 1px; height: 20px; background: var(--border); }

/* ── DASHBOARD CTA UPGRADE ── */
.dashboard-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent) !important;
  color: white !important;
  border: none !important;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 3px 12px rgba(255,77,43,0.35);
  min-height: 44px;
  touch-action: manipulation;
}
.dashboard-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(255,77,43,0.45);
}
.dashboard-cta-btn:active { transform: translateY(0); }

/* Primary CTA per screen — hides secondary/invisible ones */
.primary-cta {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 3px 12px rgba(255,77,43,0.3);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.primary-cta:hover { background: #e63c1a; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(255,77,43,0.4); }
.primary-cta:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Action button hierarchy in dashboard */
.action-btn.primary-action {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 14px;
  font-weight: 600;
}
.action-btn.primary-action:hover { opacity: 0.88; }

/* ── FOOTER ── */
.footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 18px;
}
.footer-link {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover {
  color: var(--fg);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  opacity: 0.5;
}

/* ── DEMO CAROUSEL ── */
.demo-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.demo-phone {
  background: #111;
  border-radius: 40px;
  padding: 3px;
  width: 280px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.22), 0 8px 24px rgba(0,0,0,0.14);
  position: relative;
}

.demo-phone-notch {
  width: 100px;
  height: 28px;
  background: #111;
  border-radius: 0 0 18px 18px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-phone-notch::after {
  content: '';
  width: 60px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
}

.demo-screen {
  border-radius: 38px;
  overflow: hidden;
  background: #f5f0e8;
}

.demo-slide {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 38px;
  transition: opacity 0.35s ease;
}

.demo-slide.active {
  display: block;
}

.demo-phone-homebar {
  width: 120px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 10px auto 8px;
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.demo-dots {
  display: flex;
  gap: 7px;
}

.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.demo-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

.demo-playpause {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s;
}

.demo-playpause:hover {
  border-color: var(--accent);
  background: var(--accent-warm);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .mockup-frame { order: -1; }

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

  .usecases-inner {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .nav { padding: 16px 24px; }
  .nav-tagline { display: none; }
  .hero { padding: 56px 24px 48px; }
  .how { padding: 56px 24px; }
  .features { padding: 64px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .usecases { padding: 48px 24px; }
  .closing { padding: 72px 24px; }
  .footer { padding: 24px; }

  .how-steps {
    flex-direction: column;
    gap: 40px;
  }

  .step-connector {
    display: none;
  }

  .step { max-width: 100%; }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
}