/*
 * Biotadex, on the web.
 *
 * Four pages that exist because two app stores require them to, so the job is
 * to be legible and to load instantly — not to be a marketing site. The palette
 * is the app's own: PRIMARY 600 as the accent on an off-white ground that is
 * warmer than paper, so a wall of policy text is not a wall of glare.
 */

:root {
  --bg:      #F5F4EF;
  --surface: #FFFFFF;
  --text:    #1B2A1F;
  --muted:   #5E6B60;
  --border:  #DFDDD3;
  --accent:  #3E7A4E;
  --accent-ink: #2C5B39;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #10160F;
    --surface: #18201A;
    --text:    #E8EDE6;
    --muted:   #9AA79B;
    --border:  #2A342B;
    --accent:  #7FBE8E;
    --accent-ink: #A6D6B1;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* ── Chrome ──────────────────────────────────────────────────────────────── */
header.site {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  justify-content: space-between;
  max-width: 900px; margin: 0 auto; padding: 22px 20px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.brand .mark {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent); flex: none;
}
header.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--text); }
header.site nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }

main { max-width: 900px; margin: 0 auto; padding: 8px 20px 64px; }

footer.site {
  max-width: 900px; margin: 0 auto; padding: 28px 20px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 14px;
}
footer.site p { margin: 4px 0; }

/* ── Landing ─────────────────────────────────────────────────────────────── */
.hero { padding: 56px 0 40px; max-width: 42ch; }
.hero h1 {
  margin: 0 0 18px; font-size: clamp(30px, 6vw, 46px); line-height: 1.12;
  letter-spacing: -0.025em; text-wrap: balance;
}
.lede { margin: 0 0 18px; font-size: 18px; color: var(--muted); }
.soon {
  display: inline-block; margin: 0;
  font-size: 14px; font-weight: 600; color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px; padding: 6px 14px;
}

.cards {
  display: grid; gap: 16px; margin: 8px 0 48px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
}
.card h2 { margin: 0 0 8px; font-size: 16.5px; letter-spacing: -0.01em; }
.card p  { margin: 0; color: var(--muted); font-size: 15px; }

.quiet {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 18px; max-width: 62ch; margin-bottom: 24px;
}
.quiet h2 { margin: 0 0 8px; font-size: 16.5px; }
.quiet p  { margin: 0; color: var(--muted); }

/* ── Documents ───────────────────────────────────────────────────────────── */
.doc { max-width: 68ch; padding-top: 32px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 34px); letter-spacing: -0.02em; }
.doc .updated { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.doc h2 {
  margin: 34px 0 10px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink);
}
.doc p { margin: 0 0 14px; }
.doc strong { font-weight: 650; }
