:root {
  --sage: #A3B86C;
  --sage-dark: #7A8A4A;
  --sage-light: #C4D58E;
  --sage-50: #F4F6EC;
  --ink: #2A3320;
  --ink-soft: #4F5944;
  --muted: #7B8473;
  --bg: #FAFBF4;
  --card: #FFFFFF;
  --border: #E5E8D6;
  --accent-warm: #F2994A;
  --shadow: 0 8px 30px rgba(80, 100, 40, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--sage-dark);
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HERO ─────────────────────────────────────────── */

.hero {
  background: linear-gradient(160deg, var(--sage-50) 0%, #ffffff 60%);
  padding-bottom: 80px;
  overflow: hidden;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}

.nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
}

.nav-link:hover {
  color: var(--sage-dark);
}

.nav-link + .nav-link,
.logo + .nav-link {
  margin-left: 0;
}

.nav-cta {
  margin-left: auto;
  background: var(--sage);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--sage-dark);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 0;
}

.hero-text h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.accent {
  color: var(--sage-dark);
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 24px;
  max-width: 540px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--sage);
  color: white;
}

.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--sage);
  color: var(--sage-dark);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--sage-50);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  max-width: 540px;
}

.hero-stats li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
}

/* ─── PHONE MOCKUPS ────────────────────────────────── */

.hero-screens {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: absolute;
  width: 240px;
  border-radius: 38px;
  box-shadow:
    0 20px 50px rgba(60, 80, 30, 0.18),
    0 6px 16px rgba(60, 80, 30, 0.10),
    0 0 0 6px rgba(20, 30, 5, 0.92);
  background: white;
}

.phone-1 {
  z-index: 3;
  transform: translateY(0) rotate(-4deg);
}

.phone-2 {
  z-index: 2;
  transform: translate(160px, -40px) rotate(6deg);
  opacity: 0.92;
}

.phone-3 {
  z-index: 1;
  transform: translate(-160px, 30px) rotate(-10deg);
  opacity: 0.85;
}

/* ─── FEATURES ─────────────────────────────────────── */

.features {
  padding: 100px 0;
}

.features h2,
.privacy h2,
.download h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ─── PRIVACY ──────────────────────────────────────── */

.privacy {
  background: var(--sage-50);
  padding: 100px 0;
}

.privacy h2 {
  margin-bottom: 24px;
}

.privacy-lede {
  text-align: center;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 48px;
}

.privacy-list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.privacy-list li {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 15px;
  color: var(--ink-soft);
}

.privacy-list strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

/* ─── DOWNLOAD ─────────────────────────────────────── */

.download {
  padding: 100px 0;
  text-align: center;
}

.download p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 36px;
}

.store-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--ink);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  min-width: 200px;
  text-align: left;
}

.store-badge.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.store-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.store-name {
  font-size: 20px;
  font-weight: 600;
}

.hint {
  font-size: 14px;
  color: var(--muted);
}

.hint a {
  color: var(--sage-dark);
  font-weight: 600;
}

/* ─── FOOTER ───────────────────────────────────────── */

footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 28px 0;
  font-size: 14px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 18px;
}

/* ─── LEGAL PAGES (privacy.html) ───────────────────── */

body.legal .hero {
  background: linear-gradient(160deg, var(--sage-50) 0%, #ffffff 100%);
  padding-bottom: 0;
}

.legal-content {
  padding: 60px 24px 80px;
  max-width: 800px;
}

.legal-content h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 12px;
}

.legal-content p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 12px 0;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin: 12px 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.legal-content li {
  margin: 8px 0;
}

.legal-content a {
  color: var(--sage-dark);
  text-decoration: underline;
}

.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0 24px;
}

.legal-footer {
  color: var(--muted);
  font-size: 14px;
}

/* ─── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 30px;
  }

  .hero-screens {
    height: 480px;
    margin-top: -10px;
  }

  .phone {
    width: 200px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .nav-link {
    display: none;
  }

  .features,
  .privacy,
  .download {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .phone {
    width: 170px;
  }

  .phone-2 {
    transform: translate(110px, -30px) rotate(6deg);
  }

  .phone-3 {
    transform: translate(-110px, 30px) rotate(-10deg);
  }

  .hero-screens {
    height: 420px;
  }
}
