/* Video Replay — shared site styles.
   Dark by default and orange-accented, matching the app itself: someone arriving here from
   the share sheet should recognise it as the same product. */

:root {
  --bg: #0b0b0d;
  --surface: #141416;
  --surface-2: #1b1b1f;
  --border: #2a2a2f;
  --text: #ececf0;
  --text-dim: #9a9aa4;
  --text-faint: #6a6a74;
  --accent: #ff6b35;
  --accent-soft: rgba(255, 107, 53, 0.12);
  --gold: #f5c030;
  --silver: #c9ccd4;
  --bronze: #cd8341;
  --good: #4caf50;
  --radius: 14px;
  --maxw: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 13, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 15px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #141416;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 15px;
}

.brand span { color: var(--accent); }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: none;
  color: var(--text);
  font-family: inherit;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text-faint); }

/* ── Sections ─────────────────────────────────────────────────────────── */

section { padding: 56px 0; }

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.5px; }
h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.3px; }
h3 { font-size: 18px; margin: 0 0 8px; }

.lede { color: var(--text-dim); font-size: 18px; max-width: 62ch; margin: 0 0 26px; }
.muted { color: var(--text-dim); }
.small { font-size: 13px; }

/* ── Cards ────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* ── Notices ──────────────────────────────────────────────────────────── */

.notice {
  border: 1px solid rgba(255, 107, 53, 0.4);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
}

.notice strong { color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--text-faint);
  font-size: 13px;
}

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .spacer { margin-left: auto; }

@media (max-width: 640px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; }
  section { padding: 40px 0; }
}

/* ── Prose pages (privacy, referral rules) ───────────────────────────── */

.doc { max-width: 760px; }
.doc h1 { font-size: clamp(26px, 4vw, 38px); }
.doc h2 { font-size: 20px; margin-top: 38px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--text-faint); font-size: 14px; margin-top: 0; }
.doc .lead {
  font-size: 17px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--text);
}
.doc .warn {
  border-left: 3px solid #e53935;
  background: rgba(229, 57, 53, 0.07);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
}
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc table { border-collapse: collapse; width: 100%; margin-top: 12px; }
.doc th, .doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 15px;
}
.doc th { color: var(--text-faint); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.doc code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .92em;
  letter-spacing: .5px;
}

/* Announced to screen readers, invisible to everyone else. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
