/* Biomon — shared styles.
   Deliberately dependency-free: no CDN, no fonts to fetch, no framework.
   The site is three static pages on S3 and should stay that way. */

:root {
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #5c6370;
  --line: #e4e7ec;
  --accent: #0a84ff;
  --card: #f7f8fa;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --fg: #edeff3;
    --muted: #99a0ad;
    --line: #262b33;
    --accent: #4da3ff;
    --card: #171a20;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

header.site {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  color: var(--fg);
}

.brand span { color: var(--muted); font-weight: 400; font-size: 15px; }

nav.site { margin-left: auto; display: flex; gap: 18px; padding-left: 16px; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.site a:hover { color: var(--accent); }

h1 { font-size: 40px; line-height: 1.15; margin: 46px 0 10px; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 26px 0 6px; }

.lede { font-size: 21px; color: var(--muted); margin: 0 0 30px; line-height: 1.5; }

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

ul { padding-left: 20px; }
li { margin: 7px 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 18px 0;
}

.card h3 { margin-top: 0; }

.muted { color: var(--muted); }
.small { font-size: 14px; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } }

table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.scroll-x { overflow-x: auto; }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 26px 0 50px;
  color: var(--muted);
  font-size: 14px;
}

footer.site a { color: var(--muted); }

.disclaimer {
  border-left: 3px solid var(--line);
  padding-left: 14px;
  color: var(--muted);
  font-size: 15px;
}

/* --- Illustrative charts -------------------------------------------------
   Inline SVG rather than images: no extra requests, no asset pipeline, and
   they adapt to light/dark for free because they inherit CSS variables.
   Deliberately labelled as illustrative — this site's claim is that every
   number is traceable, so presenting invented data as a real reading would
   undercut the one thing it is arguing.                                   */

.figure { margin: 20px 0 26px; }

.figure svg { width: 100%; height: auto; display: block; }

.figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-band { fill: var(--muted); opacity: 0.10; }
.chart-axis { fill: var(--muted); font-size: 10px; }
.chart-dash { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: 0.7; }
.chart-label { fill: var(--fg); font-size: 11px; font-weight: 600; }

/* --- Hero call to action ------------------------------------------------- */

.cta { margin: 26px 0 10px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.badge .apple { font-size: 20px; line-height: 1; }

.requires {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.requires strong { color: var(--fg); }

/* --- App icon ------------------------------------------------------------
   The real 1024px app icon, downscaled — not a redrawn approximation. The
   whole point is that the site and the Home Screen show the same mark, so
   anything hand-traced could drift from the shipped asset.
   border-radius approximates iOS's superellipse mask closely enough at
   these sizes; the source PNG is square and unmasked.                     */

.brand-row { display: flex; align-items: center; gap: 11px; }
.brand-icon { width: 30px; height: 30px; border-radius: 22.5%; display: block; }

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22.5%;
  display: block;
  margin: 42px 0 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
