/* FireFeed — main.css
   Swiss precision design system: white bg, black ink, red accent.
   Host Grotesk throughout.
*/

:root {
  /* Accent — Swiss red, slightly muted toward fire */
  --accent: black;
  --accent-ink: #77FEB3;
  --accent-tint: #1DF37D;

  /* Ink */
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-3: #4a4a4a;
  --ink-4: #6e6e6e;
  --ink-5: #9a9a9a;

  /* Surface */
  --bg: #ffffff;
  --bg-2: #fafaf7;
  --bg-3: #f3f1eb;
  --rule: #1a1a1a;
  --rule-soft: #d9d6cf;
  --rule-hair: #e9e6df;

  /* Type */
  --font-display: "Host Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --font-sans: "Host Grotesk", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-mono: "Host Grotesk", "Helvetica Neue", system-ui, sans-serif;

  /* Legacy aliases (kept so older inline styles still resolve) */
  --text: var(--ink);
  --text-dim: var(--ink-2);
  --muted: var(--ink-4);
  --border: var(--rule-soft);
  --surface: var(--bg);
  --surface-2: var(--bg-2);
  --link: var(--accent);
  --success: #1f8a52;
  --warning: #c47b1a;
  --danger: var(--accent);
  --max: 1320px;
  --gutter: 32px;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  --tx: cubic-bezier(0.2, 0.7, 0.2, 1);
  --mono: var(--font-mono);
  --sans: var(--font-sans);
}

/* ──────────────── reset ──────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "ss02", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.18s var(--tx); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--rule-soft); margin: 2.5rem 0; }
ul, ol { padding-left: 1.25rem; color: var(--ink-2); }
ul li, ol li { margin: 0.25rem 0; }
input, select, textarea { font: inherit; color: inherit; }

/* ──────────────── typography ──────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5vw, 72px); line-height: 0.96; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.01em; }
h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
}
p { margin: 0 0 1em; color: var(--ink-2); text-wrap: pretty; }
strong { color: var(--accent-ink); font-weight: 600; }
small { color: var(--ink-4); font-size: 13px; }
code, pre, kbd, samp { font-family: var(--font-mono); }
code {
  background: var(--bg-3);
  padding: 0.12em 0.4em;
  border-radius: 2px;
  font-size: 0.92em;
  color: var(--accent-ink);
}
pre {
  background: var(--bg-2);
  border: 1px solid var(--rule-soft);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}
blockquote {
  margin: 1.25rem 0;
  padding: 0.6rem 1rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-3);
  background: var(--bg-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ──────────────── layout ──────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(64px, 8vw, 120px) 0; }
.section.tight { padding: clamp(40px, 5vw, 72px) 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.divider { height: 1px; background: var(--rule-soft); margin: 2rem 0; border: 0; }

/* ──────────────── header / nav ──────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand-logo { height: 32px; width: auto; }
.site-footer .brand-logo { height: 24px; }

/* Legacy F monogram fallback (replaced with SVG logo on most pages) */
.brand-mark {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
}
.nav-links li { margin: 0; }
.nav-links a {
  font-size: 13.5px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  position: relative;
 
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"]::after,
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}
.nav-cta { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-links a[hreflang] { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; }
.nav-links a[hreflang] .lang-flag { width: 18px; max-width: 18px; height: auto; flex-shrink: 0; display: inline-block; }

.lang-mobile { display: none; }

.menu-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  padding: 6px 10px;
  cursor: pointer;
  display: none;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.menu-btn:focus-visible { outline: 2px solid var(--accent); }

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 64px;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--rule-soft);
    padding: 16px var(--gutter) 24px;
    gap: 4px;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    
    border-bottom: 1px solid var(--rule-hair);
    font-size: 18px;
    letter-spacing: -0.01em;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .menu-btn { display: inline-flex; }
  .nav-links li:has(a[hreflang]) { display: none; }
  .lang-mobile {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-2);
    margin-left: auto;
    margin-right: 10px;
  }
  .lang-mobile .lang-flag { width: 18px; max-width: 18px; height: auto; flex-shrink: 0; display: inline-block; }
}

/* ──────────────── buttons ──────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 74px;
  height: 40px;
  padding: 0 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s var(--tx), border-color 0.18s var(--tx), color 0.18s var(--tx);
  white-space: nowrap;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary {
  background: #1DF37D;
  color: var(--ink);
  border-color: #1DF37D;
}
.btn-primary:hover { background: #14d46d; border-color: #14d46d; color: var(--ink); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--rule-soft);
}
.btn-ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-sm { min-width: 74px; height: 36px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-width: 74px; height: 44px; padding: 0 22px; font-size: 15px; }
.btn-xl { min-width: 74px; height: 48px; padding: 0 26px; font-size: 16px; }

/* ──────────────── hero ──────────────── */
.hero {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0 clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--bg);
}
.hero h1 { max-width: 18ch; }
.hero p { font-size: clamp(18px, 1.4vw, 22px); color: var(--ink-3); max-width: 60ch; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta span::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { padding: 0; }
}

.hero-panel {
  background: var(--bg);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  
}
.hero-panel-head {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 16px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
      padding: 12px;
}
.hero-panel-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-5); }
.hero-panel-head .dot.r { background: var(--accent); }
.hero-panel-head .dot.y { background: #c47b1a; }
.hero-panel-head .dot.g { background: #1f8a52; }
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.kpi {
  background: var(--bg-2);
  border: 1px solid var(--rule-soft);
  padding: 12px;
}
.kpi .label { color: var(--ink-4); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.kpi .value { font-size: 20px; font-weight: 600; color: var(--ink); font-family: var(--font-display); letter-spacing: -0.01em; margin-top: 4px; }
.kpi .delta { font-size: 11px; color: var(--accent); font-family: var(--font-mono); margin-top: 2px; }
.kpi .delta.neg { color: var(--accent-ink); }
.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  color: var(--accent-ink);
  height: 90px;
  border-top: 1px solid var(--rule-soft);
  padding: 12px;
}
.bar {
  flex: 1;
  background: var(--ink);
  color: var(--accent-ink);
  opacity: 0.85;
}
.bar:nth-child(odd) { background: var(--accent); }

/* ──────────────── grid + cards ──────────────── */
.grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-soft);
  border-left: 1px solid var(--rule-soft);
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg);
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s var(--tx);
}
.card:hover { background: var(--bg-2); }
.card h3 { margin: 0; font-size: 22px; line-height: 1.18; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.6; }
.card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto; height: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: 8px;
  background: transparent;
  font-weight: 500;
  align-self: flex-start;
}
.card .ico::before { content: "—"; margin-right: 8px; color: var(--accent); }

/* ──────────────── tables ──────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--rule-soft);
  font-size: 14.5px;
}
.table th, .table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule-hair);
  vertical-align: top;
}
.table th {
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ──────────────── pricing ──────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule-soft);
}
.price-grid > .price-card + .price-card { border-left: 1px solid var(--rule-soft); }
@media (max-width: 720px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-grid > .price-card + .price-card { border-left: 0; border-top: 1px solid var(--rule-soft); }
}
.price-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  background: var(--bg-2);
}
.price-card.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  background: var(--accent-tint);
}
.price-card h3 { margin: 0 0 8px; font-size: 22px; }
.price-card .muted { color: var(--ink-4); font-size: 14px; margin-bottom: 16px; }
.price-card .price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 16px 0 4px;
  color: var(--ink);
  white-space: nowrap;
}
.price-card .price small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}
.price-card ul { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--rule-soft); }
.price-card ul li {
  padding: 12px 0;
  color: var(--ink-2);
  font-size: 14px;
  border-bottom: 1px solid var(--rule-hair);
  position: relative;
  padding-left: 22px;
}
.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 12px; height: 1px;
  background: var(--accent);
}
.price-card .cta { margin-top: auto; }

/* ──────────────── steps ──────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule-soft);
  counter-reset: step;
  margin-top: 1.5rem;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg);
  padding: 28px 24px;
  position: relative;
  border-right: 1px solid var(--rule-soft);
}
.step:last-child { border-right: 0; }
@media (max-width: 880px) {
  .step { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .step:last-child { border-bottom: 0; }
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ──────────────── faq ──────────────── */
.faq details {
  background: var(--bg);
  border-bottom: 1px solid var(--rule-soft);
  padding: 18px 0;
  margin: 0;
}
.faq details:first-child { border-top: 1px solid var(--rule-soft); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 400;
  font-size: 22px;
  transition: transform 0.2s var(--tx);
}
.faq details[open] summary::after { content: "−"; }
.faq details > p {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.65;
  max-width: 70ch;
}

/* ──────────────── forms ──────────────── */
.form {
  background: var(--bg);
  border: 1px solid var(--rule-soft);
  padding: 32px;
}
.form .field { margin-bottom: 20px; }
.form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-3);
  font-weight: 500;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule-soft);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--radius);
  font: inherit;
  transition: border-color 0.18s var(--tx);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .help { font-size: 12px; color: var(--ink-4); margin-top: 6px; font-family: var(--font-mono); letter-spacing: 0.02em; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form .row { grid-template-columns: 1fr; } }
.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--rule-soft);
  display: none;
  font-size: 14px;
}
.form-status.show { display: block; }
.form-status.success {
  background: #000;
  border-color: var(--success);
  color: var(--success);
}

/* ──────────────── pills / chips ──────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--rule-soft);
  color: var(--ink-3);
  margin-right: 6px;
  margin-bottom: 4px;
}
.pillo {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--rule-soft);
  color: var(--ink-3);
  margin-right: 6px;
}
.pillo.accent { color: var(--ink); border-color: var(--accent-tint); background: var(--accent-tint); }
.pill.accent { color: var(--ink); border-color: var(--accent-tint); background: var(--accent-tint); }
.pill.ok { color: var(--success); border-color: var(--success); background: rgba(31, 138, 82, 0.06); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  background: var(--bg);
}
.chip .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--rule-soft);
  color: var(--ink-3);
  background: var(--bg);
}
.badge-restricted { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }

/* ──────────────── flow / diagram ──────────────── */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--rule-soft);
}
@media (max-width: 880px) { .flow { grid-template-columns: 1fr; } }
.flow-node {
  background: var(--bg);
  padding: 20px 18px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-2);
  border-right: 1px solid var(--rule-soft);
}
.flow-node:last-child { border-right: 0; }
.flow-node strong { display: block; margin-bottom: 4px; font-size: 14px; }
.flow-node small { color: var(--ink-4); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; }
.flow-arrow {
  text-align: center;
  color: var(--accent);
  font-weight: 400;
  font-size: 18px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--rule-soft);
}
@media (max-width: 880px) {
  .flow-node, .flow-arrow { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .flow-arrow { padding: 8px 0; }
  .flow-node:last-child, .flow-arrow:last-child { border-bottom: 0; }
}

/* ──────────────── footer ──────────────── */
.site-footer {
  background: var(--ink);
  color: #ddd;
  padding: 80px 0 32px;
  margin-top: 0;
  border-top: 0;
}
.site-footer a { color: #ddd; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer p { color: #9a9a9a; font-size: 14px; line-height: 1.6; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0; padding: 5px 0; }
.footer-grid li a { color: #bbb; font-size: 13.5px; }
.footer-grid li a:hover { color: #fff; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #888;
  text-transform: uppercase;
}

/* ──────────────── cookie banner ──────────────── */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--ink);
  color: #eee;
  padding: 16px 20px;
  border: 1px solid var(--ink);
  z-index: 60;
  display: none;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 280px; color: #eee; }
.cookie-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 0 14px; font-size: 13px; }
.cookie-banner .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cookie-banner .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cookie-banner .btn-ghost { color: #eee; border-color: #444; background: transparent; }
.cookie-banner .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ──────────────── page header ──────────────── */
.page-header {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.page-header h1 { margin-bottom: 16px; font-size: clamp(36px, 4.5vw, 64px); }
.page-header p { max-width: 70ch; color: var(--ink-3); font-size: clamp(17px, 1.3vw, 20px); }

/* ──────────────── aside / TOC ──────────────── */
.with-aside {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
}
@media (max-width: 980px) { .with-aside { grid-template-columns: 1fr; gap: 40px; } }
.toc {
  position: sticky;
  top: 90px;
  align-self: start;
  border-left: 1px solid var(--rule-soft);
  padding: 4px 0 4px 18px;
}
.toc h4 { margin: 0 0 12px; color: var(--ink-4); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; padding: 6px 0; font-size: 13.5px; }
.toc a { color: var(--ink-3); }
.toc a:hover { color: var(--ink); }

/* ──────────────── note callouts ──────────────── */
.note {
  background: var(--bg-2);
  border-left: 2px solid var(--ink-5);
  color: var(--ink-2);
  padding: 16px 20px;
  margin: 1.25rem 0;
  font-size: 14.5px;
  line-height: 1.6;
}
.note.warn { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-ink); }
.note.success { border-color: var(--success); background: rgba(31, 138, 82, 0.06); }

/* ──────────────── lists ──────────────── */
.no-bullets { list-style: none; padding-left: 0; }
.check-list, .x-list { list-style: none; padding-left: 0; }
.check-list li, .x-list li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 12px; height: 1px;
  background: var(--accent);
}
.x-list li::before {
  content: "×";
  position: absolute;
  left: 0; top: 0;
  color: var(--ink-5);
  font-weight: 400;
}

/* ──────────────── prose (legal) ──────────────── */
.prose, .legal-prose {
  max-width: 70ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.prose h2, .legal-prose h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  color: var(--ink);
}
.prose h2:first-child, .legal-prose h2:first-child { margin-top: 0; }
.prose h3, .legal-prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p + p, .legal-prose p + p { margin-top: 12px; }
.prose ul, .legal-prose ul { list-style: none; padding: 0; margin: 14px 0; }
.prose ul li, .legal-prose ul li {
  position: relative;
  padding-left: 22px;
  margin-top: 8px;
}
.prose ul li::before, .legal-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

/* ──────────────── reveal animation ──────────────── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--tx), transform 0.7s var(--tx);
}
.reveal.in { opacity: 1; transform: none; }

/* ──────────────── skip link ──────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.skip-link:focus { left: 16px; top: 16px; color: #fff; }

/* ──────────────── misc ──────────────── */
.muted { color: var(--ink-4); }
.accent { color: var(--accent); }
.kbd {
  font-family: var(--font-mono);
  background: var(--bg-3);
  border: 1px solid var(--rule-soft);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  font-size: 0.85em;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
