/* ── Custom properties ─────────────────────────────── */
:root {
  --bg:              #faf5ed;
  --card:            #fff7f0;
  --primary:         #1b7d45;
  --primary-hover:   #34c759;
  --text:            #1c1c1e;
  --text-secondary:  #6c6c70;
  --text-on-btn:     #ffffff;
  --radius:          16px;
  --radius-pill:     100px;
  --shadow-phone:    0 24px 80px rgba(0, 0, 0, 0.15);
  --max-width:       1100px;
  --font:            -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

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

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--text-on-btn);
}

.btn--primary:hover  { background-color: var(--primary-hover); }
.btn--primary:active { transform: scale(0.98); }

.btn--sm {
  padding: 10px 20px;
  font-size: 15px;
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background-color: rgba(250, 245, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav__name {
  font-size: 18px;
  font-weight: 700;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.hero__headline {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero__subline {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

.appstore-link {
  display: inline-block;
}

.appstore-badge {
  height: 54px;
  width: auto;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.appstore-badge:hover {
  opacity: 0.85;
  transform: scale(1.03);
}


/* ── Features ────────────────────────────────────────── */
.features {
  padding: 40px 0 80px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 72px 0;
}

.feature + .feature {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.feature--reverse .feature__content { order: 2; }
.feature--reverse .feature__visual  { order: 1; }

.feature__icon {
  font-size: 40px;
  display: block;
  margin-bottom: 16px;
}

.feature__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.feature__desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 420px;
}

.feature__visual {
  display: flex;
  justify-content: center;
}

.feature__iphone {
  width: 240px;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.18));
  transition: transform 0.4s ease, filter 0.4s ease;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.feature__visual:hover .feature__iphone {
  animation: float 2.4s ease-in-out infinite;
  filter: drop-shadow(0 32px 80px rgba(0, 0, 0, 0.22));
}

/* ── CTA Banner ──────────────────────────────────────── */
.cta {
  background-color: var(--bg);
  padding: 100px 0;
  text-align: center;
  scroll-margin-top: 72px;
}

.cta__headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 32px;
}


/* ── Footer ──────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--primary); }

/* ── Responsive — mobile (<768px) ───────────────────── */
@media (max-width: 767px) {
  /* Hero: full-width centered */
  .hero__subline {
    max-width: 100%;
  }

  /* Features: stack vertically, remove alternating */
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
    text-align: center;
  }

  .feature--reverse .feature__content { order: 0; }
  .feature--reverse .feature__visual  { order: 0; }

  .feature__visual { justify-content: center; }

  .feature__iphone { width: 200px; }

  .feature__desc { max-width: 100%; }

  /* Footer: stack vertically */
  .footer__container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ── Legal pages (privacy, terms) ───────────────────── */
.legal {
  padding: 60px 0 100px;
}

.legal__container {
  max-width: 720px;
}

.legal h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.legal__date {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal a {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .nav { transition: none; }
  .feature__visual:hover .feature__iphone { animation: none; }
}
