/* Here — public site. Dark-first to match the app (mobile/src/theme.ts palette).
   No JS, no external assets. One deliberate look: the screen is a light source
   in a dark room, so grounds stay near-black and nothing shouts but safety. */

/* Hand-copied from mobile/src/theme.ts — this file has no build step and cannot
   import it. Values below are the same tokens under the same names; if the app
   palette moves, move them here in the same commit or the site quietly drifts. */
:root {
  --bg: #0C110E;
  --surface: #151D18;
  --surface2: #1E2820;
  --ink: #EFF4F0;
  --dim: #A7B5AC;
  --faint: #86958B;
  --line: #1F2A23;
  --line-bright: #2D3A32;
  --accent: #1D8153;
  --accent-bright: #6FA88A; /* links: clears AA on dark grounds (6.9:1 on bg) */
  --warn: #F5C451;
  --warn-soft: rgba(245, 196, 81, 0.14);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

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

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

h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 800;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.01em;
}

/* The wordmark's full stop. `accent` as text, and it may stay `accent` only
   because this glyph is 2rem/800 — 3.92:1 on bg clears WCAG's large-text
   bar. Anything smaller in the brand colour must use --accent-bright. */
h1 .dot { color: var(--accent); }

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 650;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1rem;
  font-weight: 650;
  margin: 1.5rem 0 0.25rem;
}

p, li { color: var(--ink); }
p { margin: 0.75rem 0; }

.lede { color: var(--dim); font-size: 1.1rem; margin-top: 0; }
.meta { color: var(--faint); font-size: 0.85rem; }

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

ul { padding-left: 1.25rem; margin: 0.75rem 0; }
li { margin: 0.35rem 0; }

strong { font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Draft banner — warn amber, the app's "state worth knowing about" colour. */
.draft {
  background: var(--warn-soft);
  border: 1px solid rgba(245, 196, 81, 0.45);
  border-radius: 10px;
  color: var(--warn);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Placeholders that must not survive to production — loud on purpose. */
.todo {
  background: var(--warn-soft);
  border: 1px dashed rgba(245, 196, 81, 0.6);
  border-radius: 6px;
  color: var(--warn);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.05rem 0.35rem;
  white-space: nowrap;
}

/* Tables (retention, sub-processors) scroll in their own container. */
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--line);
}
th { color: var(--dim); font-weight: 650; border-top: 0; }
tbody tr:last-child td { border-bottom: 1px solid var(--line); }

/* Landing page link cards. */
.pages { list-style: none; padding: 0; margin: 1rem 0; }
.pages li {
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: var(--surface);
  margin: 0.5rem 0;
  padding: 0;
}
.pages a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--ink);
}
.pages a:hover { background: var(--surface2); border-radius: 10px; }
.pages .sub { display: block; color: var(--faint); font-size: 0.85rem; margin-top: 0.1rem; }

footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  color: var(--faint);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
footer nav a { color: var(--dim); margin-right: 1rem; }
