/* ---------------------------------------------------------------------------
   Landing page styles. Deliberately a linked file rather than a <style> block:
   a linked stylesheet is covered by `style-src 'self'`, so this page needs no
   'unsafe-inline' anywhere. See landing/_headers.

   Tokens mirror src/styles.scss so the page and the app look like one thing.
   --------------------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --border: #d8d8de;
  --text: #16161a;
  --text-muted: #6b6b76;
  --accent: #2f6fed;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f12;
    --surface: #1a1a20;
    --border: #2c2c35;
    --text: #f2f2f5;
    --text-muted: #9a9aa6;
    --accent: #6d9bff;
    --accent-text: #0f0f12;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.mark {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
}

h1 {
  margin: 0.75rem 0 0;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0.5rem auto 1.75rem;
  max-width: 26rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.cta {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.cta:hover,
.cta:focus-visible {
  filter: brightness(1.08);
}

.fineprint {
  margin: 0.875rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

section {
  padding-top: 2.25rem;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 0.875rem;
}

section p {
  color: var(--text-muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
}

a {
  color: var(--accent);
}

@media (min-width: 40rem) {
  main {
    padding-top: 5rem;
  }

  h1 {
    font-size: 2.5rem;
  }
}
