@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:          #EDE5D0;
  --bg-dark:     #43281B;
  --bg-darker:   #2F1C13;
  --text:        #492C1D;
  --text-on-dark:#FFFFFF;
  --card-bg:     #FEFBF6;
  --btn-bg:      #492C1D;
  --btn-text:    #FEFBF6;
  --muted:       #7A5C47;
  --border:      #D9CDB8;

  --font: 'Space Grotesk', system-ui, sans-serif;
  --container: 1100px;
  --section-pad: 5rem;
}

/* ── Screen-reader only ──────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

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

.section {
  padding: var(--section-pad) 0;
}

.center { text-align: center; }

/* ── Typography ──────────────────────────────────────────── */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

p {
  color: var(--text);
  max-width: 56ch;
}

.center p { margin-left: auto; margin-right: auto; }

/* ── Wordmark pill ───────────────────────────────────────── */
.wordmark {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.icon {
  max-width: 85px;
  margin-bottom: 2em;
}

/* ── App Store badge ─────────────────────────────────────── */
.badge-link {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
}

.badge-link svg {
  height: 52px;
  width: auto;
}

/* ── Primary button (CTA) ────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  margin-top: 2rem;
  letter-spacing: 0.01em;
}

/* ── Phone mockup ────────────────────────────────────────── */
.phone-mockup {
  display: inline-block;
}

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

/* ── ① HERO ──────────────────────────────────────────────── */
.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-text p {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

.hero-text p + p {
  margin-top: 0.75rem;
}

.hero-phone {
  display: flex;
  justify-content: center;
}

.hero-phone .phone-mockup {
  max-width: 360px;
  filter: drop-shadow(0 24px 64px rgba(73, 44, 29, 0.25));
}

/* ── ② HOW IT WORKS ──────────────────────────────────────── */
#how-it-works {
  background: rgba(255, 255, 255, 0.8);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  overflow: visible;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
}

.step {
  filter: drop-shadow(0 16px 40px rgba(73, 44, 29, 0.2));
}

.step .phone-mockup {
  max-width: 240px;
  margin-bottom: 1.25rem;
}

.step-label {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.4rem;
  letter-spacing: normal;
}

.step-caption {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 22ch;
}

/* ── ③ PHILOSOPHY (dark) ─────────────────────────────────── */
.philosophy {
  background: linear-gradient(160deg, var(--bg-dark), var(--bg-darker));
  color: var(--text-on-dark);
  padding: var(--section-pad) 0;
}

.philosophy h2,
.philosophy p {
  color: var(--text-on-dark);
}

.philosophy p {
  opacity: 0.85;
  margin-top: 1rem;
}

.philosophy .no-list {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

/* ── ④ SIGNIFIERS ─────────────────────────────────────────── */
.signifier-bar {
  margin: 2.5rem auto 0;
  max-width: 560px;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(73, 44, 29, 0.18);
  overflow: hidden;
}

/* ── ⑤ PLATFORMS ─────────────────────────────────────────── */
.platform-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.5rem;
}

.platform-grid--left {
  justify-content: left;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}

.platform-item svg {
  width: auto;
  height: 40px;
  color: var(--text);
}

.platform-item span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── ⑥ THEMES ────────────────────────────────────────────── */
#themes {
  padding-bottom: 0;
}

.themes-strip {
  width: 100%;
  display: block;
  margin-top: 2.5rem;
  height: 160px;
  object-fit: cover;
  object-position: center;
}

/* ── ⑦ CTA ───────────────────────────────────────────────── */
.cta {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── ⑧ FOOTER ────────────────────────────────────────────── */
footer {
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-style: italic;
  text-align: center;
  margin: 0 auto;
}

/* ── Prose (policy pages) ─────────────────────────────────── */
.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--section-pad) 1.5rem;
}

.prose h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.prose .lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: none;
}

.prose h2 {
  font-size: 1.1rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  max-width: none;
  margin-top: 0.75rem;
}

.prose .updated {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Site nav (policy pages) ──────────────────────────────── */
.site-nav {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-nav img {
  width: 32px;
  height: 32px;
}

.site-nav .wordmark {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 720px) {
  :root { --section-pad: 3rem; }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-phone {
    order: -1;
  }

  .hero-phone .phone-mockup {
    max-width: 260px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .step .phone-mockup {
    max-width: 180px;
  }
}
