/* Owlsplit web. Colours come from brand.css (generated from brand/tokens.json, the same values as
   the app); these names are what the pages use. */
:root {
  --bg: var(--os-background); --surface: var(--os-surface); --ink: var(--os-text-primary);
  --muted: var(--os-text-secondary); --line: var(--os-divider);
  --accent: var(--os-accent); --accent-text: var(--os-accent-text); --accent-soft: var(--os-accent-container);
  --accent-glow: color-mix(in srgb, var(--os-accent) 55%, transparent);
  --positive: var(--os-positive); --positive-soft: color-mix(in srgb, var(--os-positive-fill) 14%, var(--os-surface));
  --beak: var(--os-brand-beak);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  color-scheme: light dark;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 12px; }
.hidden { display: none; }

/* Invite page (join.html): one narrow column. */
.narrow { max-width: 440px; margin: 0 auto; padding: 40px 16px; display: flex; flex-direction: column; gap: 20px; }
.narrow .brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.narrow h1 { margin: 0; font: 800 28px/1.15 var(--display); letter-spacing: -0.02em; }
.narrow p { margin: 0; color: var(--muted); }
.card { background: var(--surface); border-radius: 20px; padding: 20px; text-align: center; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); }
.code { font: 800 36px/1.2 var(--display); letter-spacing: 0.06em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.button {
  display: block; text-align: center; text-decoration: none; font-weight: 700;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 16px; border: 0; font-size: 16px; cursor: pointer;
}
.link-button { background: none; color: var(--accent-text); padding: 8px; }
.narrow ol { margin: 0; padding-left: 20px; color: var(--muted); }
.narrow li + li { margin-top: 6px; }
.narrow a { color: var(--accent-text); font-weight: 600; }

/* Legal pages (privacidad, borrar-cuenta): long text, wider column. */
.doc { max-width: 680px; }
.doc h2 { margin: 12px 0 0; font: 800 20px/1.2 var(--display); letter-spacing: -0.01em; }
.doc ul { margin: 0; padding-left: 20px; color: var(--muted); }
.doc li + li { margin-top: 6px; }
.doc .updated { font-size: 14px; }

/* Language: the ES/EN toggle on index/join (shown by their script) and the link on the legal pages. */
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); flex: none; }
.lang-toggle[hidden] { display: none; }
.lang-toggle button {
  border: 0; background: none; cursor: pointer; border-radius: 999px; padding: 6px 10px;
  font: 700 13px/1 var(--body); letter-spacing: 0.02em; color: var(--muted);
}
.lang-toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.lang-link { font-size: 14px; }
