/* ─── Self-hosted DM Sans ────────────────────────────────────── */
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Regular.ttf")  format("truetype");  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Medium.ttf")   format("truetype");  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-SemiBold.ttf") format("truetype");  font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Bold.ttf")     format("truetype");  font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bg:        oklch(0.965 0.013 85);
  --bg-2:      oklch(0.94  0.016 85);
  --paper:     oklch(0.985 0.009 85);
  --ink:       oklch(0.155 0.012 60);
  --ink-soft:  oklch(0.36  0.012 60);
  --ink-mute:  oklch(0.55  0.010 60);
  --rule:      oklch(0.86  0.013 80);
  --accent:    oklch(0.62  0.12  205);
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw:   1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }

.eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
}
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); }

.row { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ─── Hiatus banner ──────────────────────────────────────────── */
.hiatus-banner {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ink);
}
.hiatus-banner strong { font-weight: 700; }
@media (max-width: 640px) {
  .hiatus-banner { font-size: 13px; padding: 10px 14px; }
}

/* ─── Nav status badge (replaces "Start a campaign" CTA) ─────── */
.nav-status {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  background: transparent; color: var(--ink-soft);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule);
  white-space: nowrap;
}
.nav-status::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--ink-mute);
  display: inline-block;
}

/* ─── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: auto; }
.brand-fallback { font-weight: 700; font-size: 20px; letter-spacing: -0.04em; line-height: 1; }
.brand-fallback span { font-weight: 400; color: var(--ink-soft); }
.nav-links { display: flex; gap: 28px; align-items: center; justify-content: center; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 2px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 18px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--ink);
  transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); background: oklch(0.22 0.012 60); }
.nav-cta .arrow { width: 14px; height: 14px; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 50px; padding: 0 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--ink);
  transition: transform 0.15s, background 0.15s, color 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); background: oklch(0.22 0.012 60); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arrow { width: 16px; height: 16px; }

/* ─── Legal page layout ──────────────────────────────────────── */
.legal-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
}
.legal-hero h1 {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-top: 16px;
  max-width: 16ch;
}
.legal-hero .updated {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.legal-body { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.legal-toc {
  position: sticky; top: 96px;
  display: grid; gap: 8px;
  font-size: 13px;
}
.legal-toc h6 {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.legal-toc a {
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color 0.15s;
}
.legal-toc a:hover { color: var(--ink); }

.prose { max-width: 70ch; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.prose h2 {
  margin: 48px 0 16px;
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -0.02em;
  color: var(--ink);
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 32px 0 12px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--bg-2); color: var(--ink); padding: 48px 0 24px; border-top: 1px solid var(--rule); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h6 { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--ink-soft); font-size: 14px; transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }
.footer-brand { display: grid; gap: 14px; max-width: 320px; }
.footer-brand p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  font-size: 12px;
  color: var(--ink-mute);
}
.footer-bottom .meta { display: flex; gap: 18px; flex-wrap: nowrap; white-space: nowrap; }
.footer-bottom button.link {
  background: none; border: none; padding: 0;
  font: inherit; color: inherit;
  text-decoration: none; cursor: pointer;
}
.footer-bottom button.link:hover { color: var(--ink); }

@media (max-width: 1024px) {
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
