@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700&family=Hanken+Grotesk:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

:root {
  --moss:   #1E3A2B;
  --paper:  #F5F1E6;
  --stone:  #E8E2D2;
  --bark:   #20231F;
  --lichen: #7C8A55;
  --hivis:  #FF6B2C;
  --font-display: 'Barlow Semi Condensed', sans-serif;
  --font-body:    'Hanken Grotesk', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--bark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Nav ─────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--moss);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.875rem 1.5rem;
}
.wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; color: var(--paper); letter-spacing: -0.01em;
}
.nav-cta {
  font-family: var(--font-body); font-weight: 600; font-size: 0.875rem;
  color: var(--bark); background: var(--hivis);
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  text-decoration: none; transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.88; }

/* ── Buttons ─────────────────────────────────────── */
.btn-cta {
  display: inline-block; background: var(--hivis); color: var(--bark);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.9rem 2rem; border-radius: 0.5rem;
  text-decoration: none; transition: opacity 0.15s;
}
.btn-cta:hover { opacity: 0.88; }
.btn-ghost {
  display: inline-block; color: var(--paper);
  font-family: var(--font-body); font-weight: 500; font-size: 0.9375rem;
  text-decoration: underline; text-underline-offset: 3px; opacity: 0.8;
}
.btn-ghost:hover { opacity: 1; }

/* ── Badges ──────────────────────────────────────── */
.badge-testing {
  display: inline-block; font-family: var(--font-mono); font-weight: 500;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hivis); border: 1px solid var(--hivis);
  padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.pill-pro {
  display: inline-block; vertical-align: middle;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.625rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bark); background: var(--hivis);
  padding: 0.15rem 0.45rem; border-radius: 999px; margin-left: 0.6rem;
}

/* ── Screenshot (pre-framed) ─────────────────────── */
.shot {
  display: block; width: 100%; max-width: 280px; height: auto;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.28));
}
.shot-lg { max-width: 300px; }
.shot-pair { display: flex; gap: 1rem; justify-content: center; }
.shot-pair .shot { width: calc(50% - 0.5rem); max-width: 210px; min-width: 0; }
.shot-pair .shot:nth-child(2) { margin-top: 2.5rem; }

/* ── Hero ────────────────────────────────────────── */
.hero { background: var(--moss); padding: 4rem 1.5rem 4rem; }
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 3rem;
}
.hero-copy { text-align: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4.5rem); color: var(--paper);
  line-height: 1.05; margin-bottom: 1rem;
}
.hero p {
  font-size: 1.125rem; color: var(--stone); line-height: 1.55;
  max-width: 480px; margin: 0 auto 1.75rem;
}
.hero .incentive {
  font-family: var(--font-mono); font-size: 0.9375rem; color: var(--hivis);
  margin-bottom: 1.75rem;
}
.hero .cta-row { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* ── Closed-testing strip ────────────────────────── */
.testing-strip {
  background: var(--stone); padding: 2rem 1.5rem; text-align: center;
  border-bottom: 3px solid var(--hivis);
}
.testing-strip p {
  max-width: 720px; margin: 0 auto; font-size: 1.0625rem;
  line-height: 1.6; color: var(--bark);
}
.testing-strip a { color: var(--moss); font-weight: 600; }

/* ── Feature sections ────────────────────────────── */
.feature { padding: 5rem 1.5rem; }
.feature[data-bg="stone"] { background: var(--stone); }
.feature[data-bg="paper"] { background: var(--paper); }
.feature-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
}
.feature-copy { text-align: center; max-width: 520px; }
.feature-label {
  display: block; font-family: var(--font-mono); font-weight: 500;
  font-size: 0.75rem; color: var(--lichen); letter-spacing: 0.12em;
  margin-bottom: 0.625rem;
}
.feature h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.875rem, 5vw, 2.75rem); color: var(--bark);
  line-height: 1.1; margin-bottom: 0.75rem;
}
.feature p { font-size: 1.0625rem; line-height: 1.65; color: var(--bark); }

/* ── Themes showcase ─────────────────────────────── */
.themes { background: var(--moss); padding: 5rem 1.5rem; text-align: center; overflow: hidden; }
.themes .feature-label { color: var(--lichen); }
.themes h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.875rem, 5vw, 2.75rem); color: var(--paper);
  line-height: 1.1; margin-bottom: 0.75rem;
}
.themes p { font-size: 1.0625rem; line-height: 1.6; color: var(--stone); max-width: 520px; margin: 0 auto 3rem; }
.themes-deck {
  position: relative; height: 420px; max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: center; align-items: flex-start;
}
.themes-deck img {
  width: 180px; height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.4));
}
/* fan: each card overlaps previous by ~80% of its width (180px * 0.8 = 144px pull) */
.themes-deck img + img { margin-left: -144px; }

/* ── Final CTA ───────────────────────────────────── */
.cta-strip { background: var(--moss); padding: 5.5rem 1.5rem; text-align: center; }
.cta-strip h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.875rem, 5vw, 3rem); color: var(--paper);
  line-height: 1.1; margin-bottom: 1rem;
}
.cta-strip p { font-size: 1.0625rem; color: var(--stone); line-height: 1.6; max-width: 500px; margin: 0 auto 1rem; }
.cta-strip .incentive { font-family: var(--font-mono); color: var(--hivis); margin-bottom: 2.25rem; }
.cta-strip .ios-note { display: block; margin-top: 1rem; font-size: 0.875rem; color: var(--lichen); }

/* ── Footer ──────────────────────────────────────── */
footer {
  background: var(--bark); color: var(--stone); padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.625rem;
  font-size: 0.875rem; text-align: center;
}
footer a { color: var(--stone); text-decoration: underline; text-underline-offset: 2px; }

/* ── Desktop (≥768px) ────────────────────────────── */
@media (min-width: 768px) {
  .hero-inner { flex-direction: row; align-items: center; gap: 5rem; }
  .hero-copy { flex: 1; text-align: left; }
  .hero p { margin-left: 0; margin-right: 0; }
  .hero .cta-row { flex-direction: row; align-items: center; }
  .hero .shot { flex: 0 0 auto; }

  .feature-inner { flex-direction: row; gap: 5rem; align-items: center; }
  .feature-inner.flip { flex-direction: row-reverse; }
  .feature-copy { flex: 1; text-align: left; max-width: none; }
  .feature .shot, .feature .shot-pair { flex: 0 0 auto; }

  .themes-deck { height: 500px; } /* 220px-wide phones render ~472px tall — fit them */
  .themes-deck img { width: 220px; }
  .themes-deck img + img { margin-left: -176px; } /* 220 * 0.8 */

  footer { flex-direction: row; justify-content: space-between; }
}

/* ── Narrow phones: themes fan tighter, allow scroll ─ */
@media (max-width: 520px) {
  .themes-deck { justify-content: flex-start; overflow-x: auto; padding-bottom: 1rem; }
  .themes-deck img { width: 150px; }
  .themes-deck img + img { margin-left: -120px; }
}
