/* bomwerk.com. One stylesheet for every page; every page extends
   templates/base.html, so the nav, footer and these tokens exist once. */
:root {
  --accent: #D97706;
  --accent-dark: #B45309;
  --accent-soft: rgba(217,119,6,.08);
  --ink: #141414;
  --ink-soft: #4a4540;
  --ink-faint: #78716c;
  --bg: #FAFAF7;
  --panel: #ffffff;
  --border: #e7e2da;
  --border-strong: #d6cfc4;
  --paper-tint: #f5f1ea;
  --code-bg: #141414;
  --code-ink: #e7e2da;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 8px 24px rgba(20,20,20,.06);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 17px;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; max-width: 760px; }
section { padding: 84px 0; }
section.tint { background: var(--paper-tint); }
code { font-family: var(--mono); font-size: 0.88em; }
.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 660px; }
.fine { font-size: 0.86rem; color: var(--ink-faint); margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 13px 24px; border-radius: var(--radius); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn { background: var(--accent); color: #fff; border: 1px solid var(--accent-dark); }
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn:disabled { opacity: .75; cursor: default; }
.btn-outline { background: var(--panel); color: var(--ink); border: 1px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--ink); text-decoration: none; }
.btn-outline.on-dark { background: transparent; color: #fff; border-color: #57534e; }
.btn-outline.on-dark:hover { border-color: #fff; }
.btn-lg { font-size: 1.05rem; padding: 15px 28px; }
.btn-sm { font-size: 0.92rem; padding: 8px 16px; }
.btn-block { width: 100%; }
.btn-ghost { display: inline-block; font-weight: 600; padding: 12px 4px; color: var(--ink); }
.btn-ghost:hover { color: var(--accent-dark); text-decoration: none; }
.btn-ghost::after { content: " →"; color: var(--accent); }
.btn-icon { width: 17px; height: 17px; margin-right: 7px; flex: none; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-icon.spin { animation: btn-spin 0.8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .btn-icon.spin { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 20; background: rgba(250,250,247,.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.95rem; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--ink-soft); position: relative; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; background: var(--accent);
}
.nav-gh { display: inline-flex; align-items: center; }
.nav-gh svg { fill: currentColor; display: block; }
.nav-gh-label { display: none; }
.nav-links .nav-cta { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong); border-radius: 8px;
  width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-size: 0.85rem; font-weight: 500; color: var(--ink-soft);
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 14px;
}
.hero-pill:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(217,119,6,.18); flex: none; }
.hero h1 { font-size: 3.4rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.03em; }
.hero .sub { font-size: 1.18rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 22px; }
.hero .sub strong { color: var(--ink); font-weight: 600; }
.eco-strip { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; max-width: 540px; margin-bottom: 30px; }
/* Seven equals, deliberately. C/C++ is not highlighted: the subheadline already
   carries the depth claim, and a louder C/C++ badge re-creates the exact
   "C++ tool" read S15 exists to kill (library/20 §4: plain text badges). */
.eco-strip li {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500; color: var(--ink-soft);
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 4px 10px; white-space: nowrap;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: var(--ink-soft); }
.hero-proof li { display: flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.term-caption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 12px; padding: 0 4px; }

/* ---------- Terminal ---------- */
.terminal {
  background: var(--code-bg); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid #000; font-family: var(--mono); font-size: 0.86rem;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #292524; border-bottom: 1px solid #000; }
.term-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.term-dot.r { background: #ef5f56; } .term-dot.y { background: #f5bf4f; } .term-dot.g { background: #61c454; }
.term-title { margin-left: 8px; color: #8a837b; font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body { padding: 18px 16px; color: var(--code-ink); line-height: 1.75; overflow-wrap: anywhere; }
.term-body .prompt { color: var(--accent); }
.term-body .cmd { color: #fff; }
.term-body .ok { color: #61c454; }
.term-body .warn {
  display: block; color: #fca55c; background: rgba(217,119,6,.13);
  border-left: 3px solid var(--accent); padding: 5px 10px; margin: 8px -6px 0;
  border-radius: 0 4px 4px 0;
}
.term-body .dim { color: #8a837b; }

/* ---------- CRA band ---------- */
.cra-band { background: var(--ink); color: #fff; }
.cra-inner { display: flex; align-items: center; gap: 16px 36px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.cra-item { display: flex; flex-direction: column; }
.cra-k { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #a8a29e; }
.cra-v { font-weight: 700; font-size: 1.02rem; }
.cra-days { color: var(--accent); }
.cra-link { margin-left: auto; color: #fff; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.cra-link span { color: var(--accent); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; background: var(--panel); }
.card .tag { font-family: var(--mono); font-size: 0.78rem; color: var(--accent-dark); margin-bottom: 12px; display: block; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card .big { font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.card .card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card .card-icon { color: var(--accent); width: 20px; height: 20px; flex: none; display: block; }
.card .card-head .tag { margin-bottom: 0; }
a.card { display: flex; flex-direction: column; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.path-cta { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--accent-dark); font-size: 0.95rem; }
.path-cta::after { content: " →"; }

/* ---------- How it works ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 38px; counter-reset: flow; }
.flow-step {
  position: relative; padding-top: 26px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column;
}
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -17px; top: 26px; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%; background: var(--paper-tint);
  color: var(--accent); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
}
.flow-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.n {
  font-family: var(--mono); font-weight: 700; font-size: 0.9rem; color: #fff;
  background: var(--accent); width: 30px; height: 30px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.flow-label { font-weight: 700; font-size: 1.08rem; }
.flow-tag {
  position: absolute; top: -11px; right: 18px; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; color: var(--accent-dark);
  background: var(--panel); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 9px;
}
.flow-step p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 14px; }
.flow-step p code { background: var(--paper-tint); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.flow-out {
  margin-top: auto; padding-top: 14px; font-size: 0.86rem; font-weight: 600; color: var(--ink);
  display: flex; gap: 7px; align-items: baseline;
}
.flow-out::before { content: "↳"; color: var(--accent); }
.snippet {
  font-family: var(--mono); font-size: 0.76rem; background: var(--code-bg); color: var(--code-ink);
  padding: 10px 12px; border-radius: 7px; white-space: pre-wrap; overflow-wrap: anywhere;
  padding-left: 28px; text-indent: -16px;
}
.snippet .prompt { color: var(--accent); margin-right: 8px; }
.flow-more { margin-top: 18px; font-size: 0.95rem; }
.flow-more a { font-weight: 600; }
.flow-more a::after { content: " →"; }

.pro-panel {
  margin-top: 34px; border: 1px dashed var(--accent); border-radius: 14px; padding: 28px;
  background: var(--panel); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: center;
}
.pro-head .pro-mark { margin: 0 0 10px; }
.pro-head h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pro-head p { color: var(--ink-soft); font-size: 0.95rem; }
.pro-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: pro; }
.pro-steps li {
  counter-increment: pro; background: var(--paper-tint); border-radius: 8px; padding: 14px 12px;
  font-size: 0.86rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px;
}
.pro-steps li::before { content: "0" counter(pro); font-family: var(--mono); font-size: 0.72rem; color: var(--accent-dark); }
.pro-steps strong { color: var(--ink); font-size: 0.98rem; }
.status-note { margin-top: 22px; font-size: 0.88rem; color: var(--ink-faint); max-width: 820px; }
.status-note strong { color: var(--ink-soft); }
/* Marks a capability that belongs to the commercial Pro extension, so the
   site never implies it ships in the open-source CLI. */
.pro-mark {
  display: inline-block; margin-left: 8px; padding: 1px 8px; vertical-align: middle;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-dark);
  border: 1px solid var(--accent); border-radius: 999px; background: var(--panel);
}

/* ---------- Paths ---------- */
.path-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.path-icon svg, .il-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Proof band ---------- */
.proof { background: var(--ink); color: #e7e5e4; }
.proof h2 { color: #fff; }
.proof .eyebrow { color: var(--accent); }
.proof-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.proof p { color: #c9c2b8; max-width: 560px; margin-top: 6px; }
.proof p strong { color: #fff; }
.proof-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.proof-list { list-style: none; display: grid; gap: 14px; }
.proof-list li {
  border: 1px solid #3a3634; border-radius: var(--radius); padding: 16px 18px; background: #1c1917;
  display: flex; flex-direction: column; gap: 3px; font-size: 0.93rem; color: #c9c2b8;
}
.proof-k { font-weight: 700; color: #fff; }
.proof-list code { color: var(--accent); }

/* ---------- Works alongside ---------- */
.alongside { margin-top: 34px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.al-row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 20px 24px; }
.al-row + .al-row { border-top: 1px solid var(--border); }
.al-tool { font-weight: 700; }
.al-for { color: var(--ink-soft); font-size: 0.95rem; }
.al-add { font-size: 0.95rem; padding-left: 16px; border-left: 3px solid var(--accent); }
.al-k { display: block; font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 4px; }
.al-add .al-k { color: var(--accent-dark); }
.compare-note { margin-top: 16px; color: var(--ink-faint); font-size: 0.86rem; max-width: 860px; }

/* ---------- Data control ---------- */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.icon-list { list-style: none; display: grid; gap: 18px; margin-top: 26px; }
.icon-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); font-size: 0.98rem; }
.icon-list strong { color: var(--ink); }
.icon-list code { background: var(--panel); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.il-icon {
  width: 38px; height: 38px; border-radius: 9px; background: var(--panel); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.il-icon svg { width: 19px; height: 19px; }
.privacy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; }

/* ---------- Latest posts ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-card h3 { font-size: 1.05rem; line-height: 1.35; }

/* ---------- Checklist ---------- */
.checklist-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.check-areas { list-style: none; counter-reset: area; margin: 26px 0 30px; display: grid; gap: 10px; }
.check-areas li { counter-increment: area; display: flex; gap: 12px; align-items: baseline; color: var(--ink-soft); font-size: 0.97rem; flex-wrap: wrap; }
.check-areas li::before { content: "0" counter(area); font-family: var(--mono); font-weight: 700; color: var(--accent); }
.check-areas strong { color: var(--ink); min-width: 118px; }
.checklist-grid .form-note { margin-top: 14px; }
.doc-mock { display: flex; justify-content: center; }
.doc-page {
  width: 100%; max-width: 330px; aspect-ratio: 1 / 1.3; background: #fff; border-radius: 6px;
  border: 1px solid var(--border); box-shadow: 0 2px 4px rgba(20,20,20,.05), 0 24px 48px rgba(20,20,20,.12);
  padding: 26px 24px; transform: rotate(2deg);
}
.doc-brand { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 600; font-size: 0.8rem; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.doc-title { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.doc-sub { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 12px; }
.doc-sec { font-weight: 700; font-size: 0.78rem; margin: 12px 0 7px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.doc-sec span { font-family: var(--mono); color: var(--accent); margin-right: 4px; }
.doc-row { height: 9px; margin: 7px 0 7px 18px; border-radius: 3px; background: var(--paper-tint); position: relative; }
.doc-row::before { content: ""; position: absolute; left: -18px; top: -1px; width: 10px; height: 10px; border: 1.5px solid var(--ink-soft); border-radius: 2px; }
.doc-row.done::before { background: var(--accent); border-color: var(--accent); }

/* ---------- Free scan ---------- */
.scan { background: linear-gradient(180deg, var(--paper-tint), var(--bg)); border-top: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; margin-top: 30px; align-items: start; }
.lead-form {
  display: flex; flex-direction: column; gap: 16px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--shadow);
}
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--ink-faint); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,119,6,.15); }
.field textarea { resize: vertical; min-height: 90px; }
.field-checkbox .checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.95rem; font-weight: 500; cursor: pointer;
}
.field-checkbox input[type="checkbox"] {
  width: 18px; height: 18px; margin: 2px 0 0; padding: 0; flex: none;
  border: 1px solid var(--border-strong); border-radius: 4px; accent-color: var(--accent);
}
.field-hint { font-size: 0.86rem; color: var(--ink-faint); margin: 6px 0 0 28px; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 0.9rem; }
.form-status:empty { display: none; }
.form-status.success { color: var(--ink-soft); }
.form-status.error {
  color: var(--ink); background: rgba(217,119,6,.1); border-left: 3px solid var(--accent);
  padding: 10px 12px; border-radius: 0 6px 6px 0;
}
.form-side h3 { font-size: 1.15rem; margin-bottom: 18px; }
.next-steps { list-style: none; counter-reset: next; display: grid; gap: 18px; }
.next-steps li { counter-increment: next; position: relative; padding-left: 46px; color: var(--ink-soft); font-size: 0.96rem; }
.next-steps li::before {
  content: counter(next); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent-dark); font-family: var(--mono); font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; background: var(--panel);
}
.next-steps strong { color: var(--ink); display: block; }

/* ---------- FAQ ---------- */
#faq { border-top: 1px solid var(--border); }
.faq-list { margin-top: 26px; border-top: 1px solid var(--border); max-width: 860px; }
details { border-bottom: 1px solid var(--border); }
details summary {
  cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.05rem;
  list-style: none; position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 6px; top: 18px; font-size: 1.5rem;
  font-weight: 400; color: var(--accent);
}
details[open] summary::after { content: "−"; }
details .answer { padding: 0 40px 22px 0; color: var(--ink-soft); }
details .answer code { background: var(--paper-tint); padding: 1px 6px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--border); padding: 56px 0 28px; font-size: 0.92rem; color: var(--ink-soft); background: var(--panel); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin: 12px 0 16px; max-width: 300px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h2 { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 4px; }
.foot-col a { color: var(--ink-soft); }
.foot-col a:hover { color: var(--ink); }
.foot-eu { display: flex; align-items: center; gap: 8px; }
.foot-eu .eu-flag { display: block; width: 21px; height: 14px; border-radius: 2px; flex: none; }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px; font-size: 0.84rem; color: var(--ink-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .flow, .pro-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:not(:last-child)::after { display: none; }
  .pro-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 44px 0 56px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-grid, .form-grid, .proof-inner, .privacy-grid, .checklist-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cards, .flow { grid-template-columns: minmax(0, 1fr); }
  .al-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cra-link { margin-left: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .doc-mock { display: none; }

  /* Mobile menu. With JS the links collapse behind the toggle; without it they
     wrap onto a second row, which is plain but always usable. */
  .nav-inner { flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; gap: 8px 18px; padding-bottom: 12px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 16px;
  }
  .js header.nav.open .nav-links { display: flex; }
  .js .nav-links a:not(.btn) { padding: 12px 2px; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .js .nav-links a[aria-current="page"]::after { display: none; }
  .js .nav-links a[aria-current="page"] { color: var(--accent-dark); }
  .js .nav-gh-label { display: inline; margin-left: 8px; }
  .js .nav-links .nav-cta { margin-top: 14px; padding: 13px; font-size: 1rem; }
}
@media (max-width: 520px) {
  .pro-steps { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn, .hero-actions .btn-outline { width: 100%; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Blog, posts and standalone pages ---------- */
.blog-index { max-width: 680px; margin: 0 auto; overflow-wrap: break-word; }
  .blog-index > h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
  .blog-index > .lead { color: var(--ink-soft); margin-bottom: 40px; }
  .post-list { list-style: none; }
  .post-list li { padding: 24px 0; border-top: 1px solid var(--border); position: relative; }
  .post-list li:last-child { border-bottom: 1px solid var(--border); }
  .post-list h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
  .post-list h2 a { color: var(--ink); }
  .post-list h2 a:hover { color: var(--accent-dark); text-decoration: none; }
  .post-list h2 a::after { content: ""; position: absolute; inset: 0; }
  .post-list .post-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 8px; }
  .post-list p { color: var(--ink-soft); font-size: 0.96rem; }
  .empty { color: var(--ink-faint); padding: 24px 0; border-top: 1px solid var(--border); }

.post { max-width: 680px; margin: 0 auto; overflow-wrap: break-word; }
  .post-head { margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
  .post-head h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 14px; }
  .post-meta { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-faint); }
  .post-body h2 { font-size: 1.5rem; font-weight: 700; margin: 38px 0 12px; }
  .post-body h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 8px; }
  .post-body p { margin-bottom: 18px; color: var(--ink-soft); }
  .post-body ul, .post-body ol { margin: 0 0 18px 22px; color: var(--ink-soft); }
  .post-body li { margin-bottom: 7px; }
  .post-body strong { color: var(--ink); font-weight: 600; }
  .post-body a { text-decoration: underline; }
  .post-body a[target="_blank"]::after { content: " \2197"; font-size: 0.8em; }
  .post-body hr { border: none; border-top: 1px solid var(--border); margin: 34px 0; }
  .post-body pre {
    background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius);
    padding: 18px 20px; overflow-x: auto; margin-bottom: 22px;
    font-family: var(--mono); font-size: 0.84rem; line-height: 1.65;
  }
  .post-body pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
  .post-body code {
    font-family: var(--mono); font-size: 0.86em; background: var(--paper-tint);
    border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; color: var(--ink);
  }
  .post-body blockquote {
    border-left: 3px solid var(--accent); padding-left: 18px; margin: 0 0 20px;
    color: var(--ink-soft); font-style: italic;
  }
  .post-body table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-collapse: collapse; width: 100%; max-width: 100%; margin-bottom: 22px; font-size: 0.92rem;
  }
  .post-body th, .post-body td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
  .post-body th { background: var(--panel); font-weight: 600; }
  .post-cta {
    margin-top: 42px; padding: 26px; background: var(--panel);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
  }
  .post-cta p { margin-bottom: 14px; color: var(--ink-soft); }
  .back-link { display: inline-block; margin: -10px 0 16px; padding: 10px 0; font-size: 0.9rem; }
  @media (max-width: 860px) { .post-head h1 { font-size: 1.9rem; } }

.page { max-width: 760px; margin: 0 auto; }
  .page h1 { font-size: 2.35rem; margin-bottom: 10px; }
  .page h2 { font-size: 1.35rem; margin-top: 34px; margin-bottom: 10px; }
  .page p { margin-top: 14px; color: var(--ink-soft); }
  .page strong { color: var(--ink); }
  .page h2 + p, .page h2 + pre, .page h2 + ul, .page h2 + table { margin-top: 10px; }
  .page ul { margin: 14px 0 0 22px; color: var(--ink-soft); }
  .page li { margin-bottom: 7px; }
  .page pre {
    background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius);
    padding: 18px 20px; overflow-x: auto; margin-top: 16px;
    font-family: var(--mono); font-size: 0.84rem; line-height: 1.65;
  }
  .page pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
  .page code {
    font-family: var(--mono); font-size: 0.86em; background: var(--paper-tint);
    border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; color: var(--ink);
  }
  .page table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-collapse: collapse; width: 100%; max-width: 100%; margin-top: 16px; font-size: 0.92rem;
  }
  .page th, .page td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
  .page th { background: var(--panel); font-weight: 600; }
  .page a { text-decoration: underline; }
.site-main { padding: 56px 0 72px; }


.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; font-size: 0.95rem; }
.pager-step { font-weight: 600; }
.pager-step.disabled { color: var(--ink-faint); opacity: .5; }
.pager-pages { display: flex; gap: 6px; }
.pager-num {
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); font-family: var(--mono); font-size: 0.88rem;
}
a.pager-num:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.pager-num[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
