/* ===== Design tokens ===== */
:root {
  --color-bg-dark: #2E2727;
  --color-bg-dark-raised: #3A3231;
  --color-cream: #EFE2DB;
  --color-cream-soft: #F7F1EC;
  --color-accent-start: #F19D55;
  --color-accent-end: #F96638;
  --color-cta: #FF3B30;
  --color-cta-hover: #E0271D;
  --color-text-dark: #2E2727;
  --color-text-light: #EFE2DB;
  --color-text-muted: #8A7F7C;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background: var(--color-cream-soft);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--color-cta);
  color: #fff;
}
.btn-primary:hover { background: var(--color-cta-hover); transform: translateY(-1px); }

.btn-primary.is-disabled {
  background: var(--color-text-muted);
  cursor: default;
  pointer-events: none;
  opacity: 0.75;
}

.btn-ghost {
  background: transparent;
  color: var(--color-cream);
  border: 1px solid rgba(239, 226, 219, 0.35);
}
.btn-ghost:hover { background: rgba(239, 226, 219, 0.1); }

.btn-outline-dark {
  background: transparent;
  color: var(--color-text-dark);
  border: 1px solid rgba(46, 39, 39, 0.2);
}
.btn-outline-dark:hover { background: rgba(46, 39, 39, 0.05); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(46, 39, 39, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-cream);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--color-cream);
  text-decoration: none;
  font-size: 15px;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-dark) 70%, var(--color-bg-dark-raised) 100%);
  color: var(--color-cream);
  padding: 96px 0 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(241, 157, 85, 0.18), rgba(249, 102, 56, 0.18));
  border: 1px solid rgba(249, 102, 56, 0.35);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-accent-start);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero p.lede {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(239, 226, 219, 0.8);
  margin: 0 0 32px;
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 13px;
  color: rgba(239, 226, 219, 0.55);
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  margin: 0 auto;
  width: 260px;
  aspect-ratio: 9 / 19.5;
  background: #0f0d0d;
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
}

.phone-mockup .screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--color-cream-soft);
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background:
    repeating-linear-gradient(45deg, rgba(46,39,39,0.05) 0 10px, transparent 10px 20px);
  border: 2px dashed rgba(46, 39, 39, 0.25);
  border-radius: 30px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ===== Sections ===== */
section { padding: 88px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head .tag {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cta);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 34px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Problem */
.problem { background: var(--color-cream-soft); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid rgba(46, 39, 39, 0.08);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
}

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

/* Features grid */
.features { background: var(--color-bg-dark); color: var(--color-cream); }
.features .section-head p { color: rgba(239, 226, 219, 0.7); }
.features .section-head .tag { color: var(--color-accent-start); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: rgba(239, 226, 219, 0.06);
  border: 1px solid rgba(239, 226, 219, 0.12);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 102, 56, 0.15);
  color: var(--color-accent-start);
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(239, 226, 219, 0.68);
  margin: 0;
}

/* Screenshots */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.screen-frame {
  background: #0f0d0d;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.3);
}

.screen-frame .screenshot-placeholder {
  aspect-ratio: 9 / 18;
  border-radius: 20px;
}

.screen-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(46, 39, 39, 0.08);
  border-radius: var(--radius-md);
}

.trust-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.trust-item h3 {
  font-size: 15.5px;
  margin: 0 0 6px;
}

.trust-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 64px 32px;
}

.final-cta h2 {
  font-size: 32px;
  margin: 0 0 14px;
}

.final-cta p {
  font-size: 17px;
  margin: 0 0 32px;
  opacity: 0.95;
}

.final-cta .btn-primary {
  background: var(--color-bg-dark);
}
.final-cta .btn-primary:hover { background: #1c1717; }
.final-cta .btn-primary.is-disabled { background: rgba(46,39,39,0.55); }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(239, 226, 219, 0.7);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(239, 226, 219, 0.12);
}

.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { font-size: 14px; max-width: 32ch; line-height: 1.5; margin: 0; }

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(239, 226, 219, 0.5);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(239, 226, 219, 0.85);
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(239, 226, 219, 0.45);
}

/* ===== Legal pages (privacy / terms) ===== */
.legal-page { background: var(--color-cream-soft); }

.legal-hero {
  background: var(--color-bg-dark);
  color: var(--color-cream);
  padding: 64px 0 48px;
}

.legal-hero h1 { font-size: 36px; margin: 0 0 10px; }
.legal-hero p { color: rgba(239, 226, 219, 0.65); margin: 0; font-size: 15px; }

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  line-height: 1.7;
  font-size: 16px;
}

.legal-body h2 {
  font-size: 22px;
  margin: 40px 0 14px;
}
.legal-body h2:first-child { margin-top: 0; }

.legal-body p { margin: 0 0 16px; color: var(--color-text-dark); }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }

.legal-body a.email-link {
  color: var(--color-cta);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--color-cta);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 34px; }
  section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 32px; }
  .footer-top, .footer-bottom { flex-direction: column; }
}
