/* ==========================================================================
   Bronkode — site stylesheet
   Light theme is the default; dark theme follows the OS preference unless
   the visitor picks one with the toggle (stored as data-theme on <html>).
   ========================================================================== */

:root {
  --bg: #f7f5ef;
  --bg-alt: #efece3;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --text: #121a27;
  --text-muted: #566070;
  --line: #e2ddd0;
  --line-strong: #cfc8b8;

  --accent: #e9a23b;
  --accent-hover: #f2b457;
  --accent-text: #8f5a08;
  --on-accent: #1a1204;

  --ink: #0f1724;
  --ink-2: #172133;
  --on-ink: #eef1f6;
  --on-ink-muted: #a6b0c0;
  --ink-line: #273246;

  --ok: #1d8f62;
  --warn: #c27a12;
  --bad: #c8413a;
  --ok-bg: #e3f3eb;
  --warn-bg: #fbf0dc;
  --bad-bg: #fae6e4;

  --shadow: 0 1px 2px rgba(18, 26, 39, .06), 0 8px 24px rgba(18, 26, 39, .06);
  --radius: 14px;
  --radius-sm: 8px;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c121c;
    --bg-alt: #111926;
    --surface: #151e2c;
    --surface-2: #1a2434;
    --text: #e8ecf2;
    --text-muted: #9aa5b6;
    --line: #253043;
    --line-strong: #34415a;
    --accent: #f0ad4a;
    --accent-hover: #f6c06f;
    --accent-text: #f3b75c;
    --on-accent: #1a1204;
    --ink: #070b12;
    --ink-2: #101826;
    --ink-line: #222d40;
    --ok: #3fc38b;
    --warn: #eaa53f;
    --bad: #ef6b62;
    --ok-bg: rgba(63, 195, 139, .14);
    --warn-bg: rgba(234, 165, 63, .14);
    --bad-bg: rgba(239, 107, 98, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0c121c;
  --bg-alt: #111926;
  --surface: #151e2c;
  --surface-2: #1a2434;
  --text: #e8ecf2;
  --text-muted: #9aa5b6;
  --line: #253043;
  --line-strong: #34415a;
  --accent: #f0ad4a;
  --accent-hover: #f6c06f;
  --accent-text: #f3b75c;
  --on-accent: #1a1204;
  --ink: #070b12;
  --ink-2: #101826;
  --ink-line: #222d40;
  --ok: #3fc38b;
  --warn: #eaa53f;
  --bad: #ef6b62;
  --ok-bg: rgba(63, 195, 139, .14);
  --warn-bg: rgba(234, 165, 63, .14);
  --bad-bg: rgba(239, 107, 98, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .3em; }

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }

code, pre, kbd { font-family: var(--font-mono); font-size: .9em; }
:not(pre) > code { background: var(--bg-alt); border: 1px solid var(--line); padding: .05em .35em; border-radius: 5px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 16px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 780px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-mono); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__kode { color: var(--accent-text); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__list li { margin: 0; position: relative; }
.nav__link, .nav__group > button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; font-weight: 500; color: var(--text);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__group > button:hover { background: var(--bg-alt); color: var(--text); }
.nav__link[aria-current="page"], .nav__group.is-current > button { color: var(--accent-text); }
.nav__group > button svg { width: 14px; height: 14px; transition: transform .15s; }

.nav__menu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .15s;
}
.nav__menu a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none; font-size: .95rem; }
.nav__menu a small { display: block; color: var(--text-muted); font-size: .8rem; }
.nav__menu a:hover { background: var(--bg-alt); color: var(--text); }
.nav__menu a[aria-current="page"] { color: var(--accent-text); }
.nav__group:hover .nav__menu,
.nav__group:focus-within .nav__menu,
.nav__group.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__group.is-open > button svg { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle, .nav-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: var(--radius-sm); cursor: pointer;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--line-strong); }
.theme-toggle svg, .nav-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-grid; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; max-height: calc(100vh - 68px); overflow-y: auto;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; display: none; flex-direction: column; align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link, .nav__group > button { width: 100%; padding: 12px; font-size: 1rem; }
  .nav__group > button svg { display: none; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; background: none; min-width: 0; }
  .nav__menu a small { display: none; }
  .nav .btn--nav-mobile { display: inline-flex; margin-top: 12px; justify-content: center; }
}
.btn--nav-mobile { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--secondary:hover { background: var(--bg-alt); color: var(--text); }
.btn--ghost-light { background: transparent; border-color: var(--ink-line); color: var(--on-ink); }
.btn--ghost-light:hover { background: var(--ink-2); color: var(--on-ink); }
.btn--sm { padding: 9px 14px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--dark { background: var(--ink); color: var(--on-ink); }
.section--dark .muted, .section--dark .lead { color: var(--on-ink-muted); }
.section--dark a:not(.btn) { color: var(--on-ink); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--accent); }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--text-muted); line-height: 1.55; }
.muted { color: var(--text-muted); }
.small { font-size: .88rem; }
.mono { font-family: var(--font-mono); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 75% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 30%, #000 0%, transparent 70%);
  opacity: .55;
}
.hero .container { position: relative; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { color: var(--on-ink-muted); max-width: 620px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--on-ink-muted); }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta span::before { content: "✓"; color: var(--accent); font-weight: 700; }
.hero--page { padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 72px); }
.hero--page .lead { max-width: 700px; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } }

.breadcrumb { font-size: .85rem; color: var(--on-ink-muted); margin-bottom: 16px; font-family: var(--font-mono); }
.breadcrumb a { color: var(--on-ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Tool strip ---------- */

.tool-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.tool-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding-top: 18px; padding-bottom: 18px; }
.tool-strip p { margin: 0; font-size: .88rem; color: var(--text-muted); }
.tool-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.tool-strip li { margin: 0; font-family: var(--font-mono); font-weight: 500; font-size: .92rem; }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--link { display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.card--link .card__more { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--accent-text); }
.card__kicker { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 10px; }

.pillar { position: relative; }
.pillar__num { font-family: var(--font-mono); font-size: .85rem; color: var(--accent-text); font-weight: 600; margin-bottom: 8px; display: block; }
.pillar ul { padding-left: 0; list-style: none; margin-top: 12px; }
.pillar ul li { padding-left: 22px; position: relative; font-size: .95rem; }
.pillar ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--accent); }
.pillar__q { font-style: italic; color: var(--text-muted); font-size: .95rem; }

/* ---------- Steps ---------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { margin: 0; counter-increment: step; position: relative; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: "0" counter(step); display: block; font-family: var(--font-mono); font-weight: 600; font-size: .9rem;
  color: var(--on-accent); background: var(--accent); width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: .97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Check lists ---------- */

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231d8f62' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist--x li::before {
  background: var(--bad-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c8413a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l8 8M14 6l-8 8'/%3E%3C/svg%3E") center/11px no-repeat;
}
.checklist--cols { columns: 2; column-gap: 32px; }
.checklist--cols li { break-inside: avoid; }
@media (max-width: 560px) { .checklist--cols { columns: 1; } }

.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contrast .card h3 { display: flex; align-items: center; gap: 10px; }
.contrast__ok h3 { color: var(--ok); }
.contrast__bad h3 { color: var(--bad); }
@media (max-width: 640px) { .contrast { grid-template-columns: 1fr; } }

/* ---------- Scorecard ---------- */

.scorecard {
  background: var(--ink-2); color: var(--on-ink); border: 1px solid var(--ink-line); border-radius: var(--radius);
  font-family: var(--font-mono); padding: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.scorecard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--ink-line); margin-bottom: 14px; }
.scorecard__title { font-size: .95rem; font-weight: 600; }
.scorecard__tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-ink-muted); white-space: nowrap; }
.scorecard__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.scorecard__rows li { margin: 0; display: grid; grid-template-columns: 7.5em 1fr 3.4em; align-items: center; gap: 12px; font-size: .88rem; }
.scorecard__rows b { text-align: right; font-weight: 600; }
.bar { height: 8px; background: var(--ink-line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--v) * 10%); border-radius: 99px; background: var(--bad); }
.bar i.mid { background: var(--warn); }
.bar i.hi { background: var(--ok); }
.scorecard__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--ink-line); }
.scorecard__total span { font-size: .85rem; color: var(--on-ink-muted); text-transform: uppercase; letter-spacing: .08em; }
.scorecard__total b { font-size: 2.2rem; line-height: 1; }
.scorecard__total small { font-size: .9rem; color: var(--on-ink-muted); font-weight: 400; }
.verdict { margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.verdict--bad { background: rgba(239, 107, 98, .14); color: #ff8a80; border: 1px solid rgba(239, 107, 98, .35); }
.verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- Pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.tier { display: flex; flex-direction: column; position: relative; }
.tier__level { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.tier h3 { font-size: 1.3rem; margin: 6px 0 4px; }
.tier__price { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; letter-spacing: -.03em; margin: 8px 0 4px; }
.tier__price small { font-size: .9rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.tier__for { font-size: .92rem; color: var(--text-muted); margin-bottom: 14px; }
.tier__section { font-size: .78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 14px 0 6px; }
.tier ul { font-size: .94rem; }
.tier .btn { margin-top: auto; }
.tier__footer { margin-top: auto; padding-top: 18px; }
.tier__meta { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.tier--featured { border: 2px solid var(--accent); }
.tier__badge { position: absolute; top: -12px; right: 20px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.tier__plus { font-size: .9rem; font-weight: 600; color: var(--accent-text); margin-bottom: 4px; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 600; position: sticky; top: 0; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 500; }
.compare td { text-align: center; }
.compare thead th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: var(--line-strong); }
.compare .group th { background: var(--bg-alt); font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

/* ---------- Callouts ---------- */

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 20px 22px;
}
.callout svg { width: 24px; height: 24px; flex: none; color: var(--accent-text); margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout h3 { font-size: 1.05rem; margin-bottom: .3em; }
.callout--info { border-left-color: var(--line-strong); }

/* ---------- Diagrams & heatmap ---------- */

.diagram {
  font-family: var(--font-mono); font-size: .85rem; line-height: 1.45;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; margin: 0; overflow-x: auto; color: var(--text);
}
.diagram-label { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 8px; }

.heatmap { display: grid; gap: 10px; font-family: var(--font-mono); font-size: .88rem; }
.heatmap__row { display: grid; grid-template-columns: 6em 1fr 2em; gap: 12px; align-items: center; }
.heatmap__bar { height: 22px; border-radius: 5px; width: calc(var(--n) * 12%); }
.heatmap__row b { text-align: right; }
.sev-critical { background: var(--bad); }
.sev-high { background: color-mix(in srgb, var(--bad) 55%, var(--warn)); }
.sev-medium { background: var(--warn); }
.sev-low { background: var(--ok); }

.risk-matrix { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 4px; font-size: .78rem; font-family: var(--font-mono); }
.risk-matrix > div { padding: 12px 6px; text-align: center; border-radius: 4px; }
.risk-matrix .axis { background: none; color: var(--text-muted); display: flex; align-items: center; justify-content: center; padding: 6px; }
.rm-1 { background: var(--ok-bg); color: var(--ok); }
.rm-2 { background: var(--warn-bg); color: var(--warn); }
.rm-3 { background: var(--bad-bg); color: var(--bad); font-weight: 600; }

.finding { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; background: var(--surface); }
.finding + .finding { margin-top: 12px; }
.finding__head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.finding__head strong { font-size: .98rem; }
.finding p { margin: 0; font-size: .93rem; color: var(--text-muted); }

.pill { display: inline-block; font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.pill--critical { background: var(--bad-bg); color: var(--bad); }
.pill--high { background: var(--warn-bg); color: var(--warn); }
.pill--medium { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--line); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.3rem; color: var(--accent-text); transition: transform .15s;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq__body { padding: 16px 20px 6px; color: var(--text-muted); }

/* ---------- Forms ---------- */

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-muted); }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.field--check label { font-weight: 400; margin: 0; }
.form__note { font-size: .85rem; color: var(--text-muted); margin: 0; }
.form__status { font-size: .95rem; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form__status.is-visible { display: block; }
.form__status.is-ok { background: var(--ok-bg); color: var(--ok); }
.form__status.is-error { background: var(--bad-bg); color: var(--bad); }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input {
  flex: 1 1 220px; min-width: 0; font: inherit; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--ink-line); background: var(--ink-2); color: var(--on-ink);
}
.inline-form input::placeholder { color: var(--on-ink-muted); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--ink); color: var(--on-ink); border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-ink-muted); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); pointer-events: none; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Articles ---------- */

.post-list { display: grid; gap: 16px; }
.post-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; text-decoration: none; }
.post-card h3 { margin: 0; font-size: 1.15rem; }
.post-card p { margin: 0; color: var(--text-muted); font-size: .95rem; grid-column: 1; }
.post-card .post-card__meta { grid-row: 1 / span 2; grid-column: 2; font-family: var(--font-mono); font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
@media (max-width: 640px) { .post-card { grid-template-columns: 1fr; } .post-card .post-card__meta { grid-row: auto; grid-column: 1; } }

.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose li { margin-top: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-size: 1.12rem; color: var(--text); font-weight: 500; }
.prose .diagram, .prose .table-wrap, .prose .callout { margin: 1.5em 0; }
.post-meta { font-family: var(--font-mono); font-size: .85rem; color: var(--on-ink-muted); display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Printable checklist ---------- */

.print-check h2 { font-size: 1.3rem; margin-top: 1.6em; display: flex; align-items: center; gap: 10px; }
.print-check h2 span { font-family: var(--font-mono); font-size: .9rem; color: var(--accent-text); }
.print-check ul { list-style: none; padding: 0; }
.print-check li { margin: 0; border-bottom: 1px solid var(--line); }
.print-check label { display: flex; gap: 12px; padding: 10px 0; cursor: pointer; align-items: flex-start; }
.print-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); flex: none; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 64px 0 28px; font-size: .94rem; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo { color: var(--on-ink); }
.site-footer .logo__kode { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.5fr; gap: 32px; }
.footer__grid h4 { color: var(--on-ink); font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li + li { margin-top: 8px; }
.footer__disclaimer { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .85rem; }
.footer__disclaimer p { margin: 0; }
.footer__disclaimer a { text-decoration: underline; text-decoration-color: var(--ink-line); }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } .footer__brand, .footer__signup { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; }
.center { text-align: center; }
.stack > * + * { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .no-print, .hero::before { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero { background: #fff; color: #000; padding: 0 0 12pt; }
  .hero h1, .hero .lead { color: #000; }
  .section { padding: 0; }
  .print-check li { break-inside: avoid; }
}
