@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;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--bark);
  -webkit-font-smoothing: antialiased;
}

/* ─── 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(--paper);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 1; }

/* ─── 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; }

/* ─── Phone frame ───────────────────────────────────────────────── */

.phone-frame {
  border-radius: 2.75rem;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  max-width: 260px;
  width: 100%;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── Hero ──────────────────────────────────────────────────────── */

.hero {
  background: var(--moss);
  padding: 4.5rem 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 2rem;
}

.hero .phone-frame {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

/* ─── 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);
}

/* ─── Beta CTA strip ────────────────────────────────────────────── */

.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 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 layout (≥ 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 .phone-frame {
    flex: 0 0 auto;
    max-width: 310px;
  }

  .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 .phone-frame {
    flex: 0 0 auto;
    max-width: 280px;
  }

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