/*
 * HEXR website — the app's design system, on the web.
 *
 * Tokens are taken from src/ui/theme.ts, not reinvented: the site must look like the same product.
 * Archivo is the app's typeface (bundled there via @expo-google-fonts/archivo); here it comes from
 * Google Fonts with a real fallback stack, so a blocked or slow font never leaves a blank page.
 *
 * radius: 0 everywhere. That is a product decision in the app, not an oversight, and it carries over.
 */
:root {
  /* dark surfaces — the hero */
  --bg: #0B0E13;
  --surface: #151A22;
  --elevated: #1B2230;
  --border: #232B36;
  --text: #F2F5F8;
  --text-muted: #8A97A6;
  /* light surfaces — the body */
  --light-bg: #e9eef2;
  --light-surface: #ffffff;
  --ink: #0B0E13;
  --ink-muted: #5A6472;
  --rule: rgba(11, 14, 19, .18);
  /* accents */
  --accent: #32A6FC;        /* actions */
  --accent-ink: #04121F;    /* label colour ON an accent fill — never white */
  --accent-deep: #125C93;   /* any blue carrying white text */
  --green-deep: #16713A;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--light-bg);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* ── the dark hero ─────────────────────────────────────────────────────── */
.hero {
  background: var(--bg);
  color: var(--text);
  padding: 72px 24px 64px;
  border-bottom: 2px solid var(--accent);
}
.hero-inner, .wrap { max-width: 720px; margin: 0 auto; }

/* The wordmark is drawn artwork, not type. Height is fixed and width follows the artwork's own
   1809:730 ratio, so it can never be stretched; `height:auto` would let a wide viewport do exactly
   that. 60 px clears the brand minimum of 150 px wide for the full logo (60 x 2.478 = 149). */
.wordmark {
  display: block;
  height: 60px;
  width: auto;
  margin: 0 0 20px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero p { color: var(--text-muted); font-size: 19px; margin: 0 0 28px; max-width: 34em; }

/* ── body ──────────────────────────────────────────────────────────────── */
main { padding: 56px 24px 80px; }
h2 {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
  padding-top: 20px;
  border-top: 2px solid var(--rule);
}
h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
h3 { font-weight: 600; font-size: 17px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
a { color: var(--accent-deep); }
strong { font-weight: 600; }

ul { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 6px; }

/* Zero radius throughout — the app has none, and the site must not invent one. */
.card, .note, .cta, table, th, td, .badge { border-radius: 0; }

.card, .note {
  background: var(--light-surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 18px 20px;
  margin: 20px 0;
}
.note.plain { border-left-color: var(--ink-muted); }
.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);      /* never white on #32A6FC — 5.04:1 rule from the theme */
  font-weight: 800;
  letter-spacing: .4px;
  padding: 14px 26px;
  text-decoration: none;
}
.cta:hover { background: #56b5fd; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--ink-muted); }

.muted { color: var(--ink-muted); }

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  border-top: 2px solid var(--rule);
  color: var(--ink-muted);
  font-size: 15px;
}
footer a { color: var(--ink-muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 48px 20px 40px; }
  main { padding: 40px 20px 64px; }
}
