/* Flush marketing/legal site — shared stylesheet.
   Colours are the Flush design tokens (docs/design/flush/tokens.json): void/surface/ink/grape etc.
   Night values are the defaults (Flush's primary theme); Day values apply under a light system
   preference. No web fonts, no external requests — system UI font stack only, matching the
   Bricolage-Grotesque-esque chunky weight with a heavy system fallback for headings. */

:root {
  --void: #0b0510;
  --surface: #151019;
  --surface-raised: #221a2b;
  --line: #3a2e45;
  --line-strong: #7d6d8e;
  --ink: #f6edef;
  --ink-muted: #b3a6c0;
  --grape: #b540dc;
  --on-grape: #0b0510;
  --keep-ink: #c4f135;
  --flush-ink: #f0302e;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --max-width: 720px;
}

@media (prefers-color-scheme: light) {
  :root {
    --void: #f5effc;
    --surface: #ffffff;
    --surface-raised: #ede3f9;
    --line: #d9cbe8;
    --line-strong: #7f6f93;
    --ink: #150d1d;
    --ink-muted: #5c4f68;
    --grape: #6b21d8;
    --on-grape: #ffffff;
    --keep-ink: #3f5a00;
    --flush-ink: #c42020;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--grape), var(--flush-ink));
  flex: none;
}

.brand .name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

nav.site {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

nav.site a:hover,
nav.site a:focus-visible {
  color: var(--ink);
}

h1 {
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 14px;
  color: var(--ink);
}

.lede {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 52ch;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

ul,
ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

li {
  margin-bottom: 6px;
}

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
}

.muted {
  color: var(--ink-muted);
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  min-height: 44px;
}

.btn.primary {
  background: var(--grape);
  color: var(--on-grape);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.badge-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.feature .title {
  font-weight: 700;
  margin-bottom: 4px;
}

.feature .desc {
  color: var(--ink-muted);
  font-size: 14px;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.draft-note {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 28px;
}

footer.site {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 48px;
  color: var(--ink-muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-q {
  font-weight: 700;
  margin: 22px 0 6px;
}

@media (max-width: 480px) {
  header.site,
  footer.site {
    flex-direction: column;
    align-items: flex-start;
  }
}
