/* Brainmark site. Dark by default like the app, light when the visitor prefers
   it. System fonts only: no external requests. Colours match src/theme/tokens.ts. */
:root {
  --bg: #0B0B0F; --surface: #16161D; --surface-alt: #1F1F29; --border: #2A2A36;
  --text: #F7F7FA; --muted: #A0A0B0; --faint: #6B6B7B;
  --chimp: #FFCC00; --clock: #8B5CF6; --spot: #22D3EE; --colour: #FF2D78; --count: #34D399;
  --link: #22D3EE;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #FAFAFC; --surface: #FFFFFF; --surface-alt: #F1F1F5; --border: #E3E3EA;
    --text: #101014; --muted: #55555F; --faint: #8A8A96; --link: #0E7490;
    --chimp: #B38F00; --clock: #7C3AED; --spot: #0891B2; --colour: #E11D63; --count: #059669;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--faint); }

.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; margin: 28px 0 24px; }
.lockup img { border-radius: 10px; }

/* Legal pages */
.doc h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 0 0 24px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

footer.wrap { border-top: 1px solid var(--border); margin-top: 56px; padding-top: 22px; padding-bottom: 48px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
footer a { text-decoration: none; font-weight: 600; }
footer .muted { flex-basis: 100%; }

/* Landing */
.hero { display: grid; gap: 28px; align-items: center; padding: 24px 0 8px; }
.hero img.icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 18px 50px -12px rgba(139, 92, 246, 0.55); }
.hero h1 { font-size: clamp(36px, 8vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 12px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 20px; }
.badge { display: inline-block; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; }
@media (min-width: 680px) { .hero { grid-template-columns: 160px 1fr; } }

section { margin-top: 48px; }
section h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 14px; }
.tests { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tests li { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--accent); border-radius: 14px; padding: 14px 18px; }
.tests b { color: var(--accent); display: block; font-size: 17px; }
.tests span { color: var(--muted); }
.cards { display: grid; gap: 12px; }
@media (min-width: 680px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); }
.note { color: var(--faint); font-size: 14px; }
