/* Colours and type match the app (splash backgrounds, text, brand orange, Hanken Grotesk). */
:root {
  --bg: #fedaa2;
  --text: #25283a;
  --muted: #43485e;
  --brand: #ff9a27;
  --button-bg: #25283a;
  --button-text: #ffffff;
  --card: rgba(255, 255, 255, 0.55);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #25283a;
    --text: #f1f4f9;
    --muted: #c8ccd9;
    --button-bg: #ff9a27;
    --button-text: #25283a;
    --card: rgba(255, 255, 255, 0.06);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }

.page {
  max-width: 440px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.wordmark { margin: 0; font-size: 28px; font-weight: 700; }
@media (prefers-color-scheme: dark) { .wordmark { color: var(--brand); } }
.egg { width: 120px; height: auto; margin: 8px 0; }
h1 { margin: 0; font-size: 26px; line-height: 1.25; }
.lead { margin: 0; font-size: 17px; color: var(--muted); }
.muted { margin: 0; color: var(--muted); }
.small { font-size: 14px; margin-top: 16px; }

.button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--text); border: 1px solid currentColor; }
[hidden] { display: none !important; }

footer { font-size: 14px; color: var(--muted); display: flex; gap: 16px; justify-content: center; }

/* Long-form pages (privacy, terms) */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 20px 64px; text-align: left; }
.doc h1 { font-size: 30px; margin-bottom: 4px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--muted); margin-top: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid rgba(127, 127, 127, 0.3); }
.doc .todo { background: #fff3a8; color: #25283a; padding: 0 4px; border-radius: 3px; }
.doc .back { display: inline-block; margin-bottom: 24px; font-weight: 700; text-decoration: none; }
