/*
 * Shared by every page on the site: docs/index.html and the privacy policy
 * generated into docs/privacy/. Same-origin, so the page still makes no
 * third-party request — which is the claim it is there to make.
 */

:root {
  --bg: #0b0b0f;
  --panel: #141419;
  --panel-2: #101014;
  --border: #26262e;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #ff3b30;
  --accent-soft: rgba(225, 29, 72, 0.14);
  --accent-line: rgba(225, 29, 72, 0.45);
  --ok: #34d399;
  --warn: #f59e0b;
  --radius: 14px;
  --measure: 68ch;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 15, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 620px) {
  .nav-links .hide-sm { display: none; }
}

/* --- hero --- */

.hero {
  padding: 76px 0 44px;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(225, 29, 72, 0.14), transparent 70%);
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.lede {
  margin: 0 0 12px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 58ch;
}
.lede strong { color: var(--text); font-weight: 600; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  flex: none;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: #ff5147; }
.btn--ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(244, 244, 245, 0.06); }

/* --- shots --- */

figure {
  margin: 0;
}
.shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
}
figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--faint);
  max-width: var(--measure);
}

.hero-shot { margin-top: 44px; }

/* The popup is 360px wide; shown any smaller it stops being readable, so
   it is pinned to its real size and centred instead of stretched. */
.popup-figure { display: flex; flex-direction: column; align-items: center; }
.shot--popup {
  width: 360px;
  max-width: 100%;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}
.popup-figure figcaption { text-align: center; }

/* --- sections --- */

section { padding: 62px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: 0; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
p { max-width: var(--measure); }
p, li { color: var(--muted); }
p strong, li strong { color: var(--text); font-weight: 600; }

/* --- signals table --- */

.table-scroll { overflow-x: auto; margin-top: 26px; }
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
td { color: var(--muted); }
td:first-child { color: var(--text); white-space: nowrap; }

.tier {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.tier--confirmed { background: var(--accent-soft); border: 1px solid var(--accent-line); color: #fda4af; }
.tier--likely { background: rgba(244, 244, 245, 0.07); border: 1px solid var(--border); color: var(--muted); }
.tier--suspected { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.4); color: #fcd34d; }

/* --- cards --- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.card {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card p { margin: 0; font-size: 14.5px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
}

ul.plain { margin: 18px 0 0; padding-left: 20px; }
ul.plain li { margin-bottom: 9px; max-width: var(--measure); }

/* --- code --- */

pre {
  margin: 22px 0 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.7;
}
code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}
p code, li code, td code {
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(244, 244, 245, 0.07);
  color: var(--text);
}
.comment { color: var(--faint); }

/* --- honesty block --- */

.limits {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 26px;
}
.limits h3 { color: var(--text); }
.limits ul { margin: 14px 0 0; padding-left: 20px; }
.limits li { margin-bottom: 10px; }

/* --- footer --- */

footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 54px;
  font-size: 14px;
  color: var(--faint);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  align-items: center;
  justify-content: space-between;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* --- prose pages (the generated privacy policy) --- */

.prose {
  padding: 54px 0 70px;
  max-width: 760px;
}
.prose h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 42px);
  max-width: none;
}
.prose .updated {
  margin: 0 0 34px;
  font-size: 14px;
  color: var(--faint);
}
.prose h2 {
  margin: 44px 0 12px;
  font-size: 21px;
  max-width: none;
  scroll-margin-top: 74px;
}
.prose p { margin: 0 0 16px; max-width: none; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose table { margin: 6px 0 18px; min-width: 480px; }
.prose a { color: #fda4af; text-underline-offset: 3px; }
.prose a:hover { color: var(--text); }

/* The policy's own lead paragraph, so the summary reads as a summary. */
.prose h2 + p { color: var(--muted); }
.prose .lead {
  font-size: 17px;
  color: var(--text);
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.backlink:hover { color: var(--text); }
