/* Probative Labs: one stylesheet for the website and the product. Tokens first; components after. */
:root {
  --paper: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --ink: #18191b;
  --ink-2: #3a3d42;
  --muted: #62666d;
  --line: #e2dfd7;
  --accent: #1d5c48;
  --accent-ink: #ffffff;
  --accent-soft: #e2eee8;
  --accent-2: #a8661a;
  --accent-2-soft: #f8ecd9;
  --good: #1b6b41;
  --good-soft: #e0f1e6;
  --warn: #7d5300;
  --warn-soft: #faefd6;
  --bad: #9a2a2a;
  --bad-soft: #f7e0e0;
  --focus: #2f7dd1;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 6px 24px rgba(20, 20, 20, 0.06);
  --radius: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111213; --surface: #191b1d; --surface-2: #202326; --ink: #ecebe7; --ink-2: #c9c9c4; --muted: #a0a4aa;
    --line: #2c2f33; --accent: #7fc8aa; --accent-ink: #0e1a15; --accent-soft: #1d3029; --accent-2: #e6ad62; --accent-2-soft: #33281a;
    --good: #7fd3a0; --good-soft: #1b3125; --warn: #f0c46a; --warn-soft: #362c17; --bad: #f0a0a0; --bad-soft: #3a2020;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111213; --surface: #191b1d; --surface-2: #202326; --ink: #ecebe7; --ink-2: #c9c9c4; --muted: #a0a4aa;
  --line: #2c2f33; --accent: #7fc8aa; --accent-ink: #0e1a15; --accent-soft: #1d3029; --accent-2: #e6ad62; --accent-2-soft: #33281a;
  --good: #7fd3a0; --good-soft: #1b3125; --warn: #f0c46a; --warn-soft: #362c17; --bad: #f0a0a0; --bad-soft: #3a2020;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
small, .small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.85em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.75rem; font-weight: 700; color: var(--accent); margin-bottom: 0.6rem; text-wrap: balance; }
.lead { font-size: 1.14rem; line-height: 1.6; color: var(--ink-2); max-width: 44rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 0.95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { color: var(--bad); }
.btn-sm { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin: 0 0 0.35rem; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  color: var(--ink); font: 0.95rem/1.4 var(--sans); }
input[type=file] { font: 0.9rem var(--sans); color: var(--ink-2); }
textarea { min-height: 7rem; resize: vertical; }
.field { margin-bottom: 1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { font-weight: 600; font-size: 0.9rem; padding: 0; margin: 0 0 0.35rem; }
fieldset .checkbox { margin: 0.25rem 0; }
.field .error { color: var(--bad); font-size: 0.85rem; margin-top: 0.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.checkbox { display: flex; gap: 0.5rem; align-items: center; font-weight: 500; }
.hp { position: absolute; left: -5000px; }

/* Cards, chips, tables */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.card h3 { margin-bottom: 0.35rem; }
.chip { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.chip-good, .chip-pass, .chip-succeeded, .chip-counted { background: var(--good-soft); color: var(--good); }
.chip-warn, .chip-watch, .chip-running, .chip-queued, .chip-indicative { background: var(--warn-soft); color: var(--warn); }
.chip-bad, .chip-breach, .chip-fail, .chip-failed, .chip-withheld { background: var(--bad-soft); color: var(--bad); }
.chip-neutral, .chip-unavailable, .chip-not_run { background: var(--surface-2); color: var(--muted); }
.grade { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 8px; font: 700 1.05rem var(--serif);
  background: var(--accent-soft); color: var(--accent); }
.grade.g-D, .grade.g-insufficient { background: var(--warn-soft); color: var(--warn); font-size: 0.7rem; }
.grade.g-E { background: var(--accent-2-soft); color: var(--accent-2); }
.grade.g-none { background: var(--surface-2); color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Tables that turn into stacked cards on phones: each cell labelled from data-label. */
@media (max-width: 640px) {
  table.mobile-cards thead { display: none; }
  table.mobile-cards, table.mobile-cards tbody, table.mobile-cards tr, table.mobile-cards td { display: block; width: 100%; }
  table.mobile-cards tr { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
  table.mobile-cards tr:last-child { border-bottom: 0; }
  table.mobile-cards td { border: 0; padding: 0.12rem 0; text-align: left; white-space: normal; }
  table.mobile-cards td[data-label]::before { content: attr(data-label); display: block; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-top: 0.45rem; }
  table.mobile-cards td:first-child { font-size: 1rem; }
}
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }

/* Flash messages */
.flashes { margin: 1rem 0; display: grid; gap: 0.5rem; }
.flash { border-radius: 10px; padding: 0.75rem 1rem; border: 1px solid var(--line); background: var(--surface); }
.flash-success { background: var(--good-soft); color: var(--good); border-color: transparent; }
.flash-warning { background: var(--warn-soft); color: var(--warn); border-color: transparent; word-break: break-word; }
.flash-error { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

/* ---------- Website ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font: 700 1.15rem var(--serif); color: var(--ink); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.site-nav { display: flex; gap: 1.2rem; margin-left: auto; align-items: center; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current=page] { color: var(--ink); text-decoration: underline; }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: var(--accent-ink); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; }
section { padding: 4rem 0; }
section.tight { padding: 3rem 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { padding: 4.5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { max-width: 15ch; font-size: clamp(2.4rem, 5vw, 3.5rem); }
.hero h1 .hl { color: var(--accent); white-space: nowrap; }
.works-with { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; margin-top: 3.2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line); }
.works-with > span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.works-with ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.works-with li { font-weight: 600; color: var(--ink-2); }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.proof { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow); }
.proof h3 { font-size: 1.05rem; }
.bar-row { margin: 1rem 0; }
.bar-row .label { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 0.35rem; gap: 1rem; }
.bar { height: 14px; border-radius: 7px; background: var(--surface-2); position: relative; overflow: hidden; }
.bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 7px; }
.bar .claimed { background: var(--accent-2); }
.bar .range, .bar .measured { background: var(--accent); }
.proof h3 { margin-bottom: 0.2rem; }
.proof .key { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.8rem; color: var(--ink-2); margin: 0.7rem 0 0.2rem; }
.proof .key span { display: inline-flex; align-items: center; gap: 0.4rem; }
.proof .key i { width: 0.8rem; height: 0.8rem; border-radius: 3px; }
.proof .key .claimed { background: var(--accent-2); }
.proof .key .measured { background: var(--accent); }
.proof-group { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 0.9rem; }
.proof-group h4 { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.proof-group .bar-row { margin: 0.65rem 0; }
.proof .takeaway { margin: 0.4rem 0 0; font-size: 0.86rem; color: var(--ink); }
.proof .foot { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.stat b { display: block; font: 600 2.1rem/1.1 var(--serif); margin-bottom: 0.35rem; }
.stat b.neg { color: var(--bad); }
.stat b.pos { color: var(--good); }
.stat p { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.stat a { font-size: 0.8rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare .card b { font: 600 2.2rem/1.1 var(--serif); display: block; }
.steps { counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.steps li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 0.6rem; }
.steps h3 { font-size: 1.02rem; }
.steps p { font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.grades .card { padding: 1rem; }
.grades .grade { margin-bottom: 0.5rem; }
.grades p { font-size: 0.86rem; margin: 0; color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 1.6rem; position: relative; margin: 0.45rem 0; }
.checklist li::before { content: ""; position: absolute; left: 0.2rem; top: 0.45rem; width: 0.7rem; height: 0.38rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; align-items: stretch; }
.tier { display: flex; flex-direction: column; }
.tier.featured { border: 2px solid var(--accent); }
.tier .price { font: 600 1.6rem var(--serif); margin: 0.4rem 0 0.1rem; }
.tier .checklist { flex: 1; margin: 1rem 0 1.4rem; }
.callout { border-radius: var(--radius); padding: 1.2rem 1.4rem; background: var(--accent-soft); }
.cta-band { text-align: center; }
.cta-band .cta-row { justify-content: center; }
.code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; overflow-x: auto;
  font: 0.86rem/1.6 var(--mono); white-space: pre; }
.faq dt { font-weight: 700; margin-top: 1.2rem; }
.faq dd { margin: 0.3rem 0 0; color: var(--ink-2); }
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.site-footer h4 { font: 700 0.78rem var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.3rem 0; }

/* ---------- Product ---------- */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 1.1rem 0.9rem; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar .brand { padding: 0.3rem 0.5rem 1rem; }
.sidebar .org { font-size: 0.8rem; color: var(--muted); padding: 0 0.6rem 0.9rem; }
.sidebar a.nav { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.65rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.sidebar a.nav:hover { background: var(--surface-2); color: var(--ink); }
.sidebar a.nav[aria-current=page] { background: var(--accent-soft); color: var(--accent); }
.sidebar .spacer { flex: 1; }
.sidebar .me { font-size: 0.82rem; color: var(--muted); padding: 0.6rem; border-top: 1px solid var(--line); }
.sidebar .me form { margin-top: 0.4rem; }
.main { padding: 1.6rem 2rem 4rem; max-width: 1180px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.page-head h1 { font-size: 1.9rem; margin: 0; }
.page-head .meta { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin: 0 0 1.4rem; overflow-x: auto; }
.tabs a { padding: 0.6rem 0.9rem; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.tabs a[aria-current=page] { color: var(--accent); border-bottom-color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.tile .k { font-size: 0.8rem; color: var(--muted); }
.tile .v { font: 600 1.55rem/1.25 var(--serif); margin-top: 0.15rem; }
.tile .s { font-size: 0.8rem; color: var(--muted); }
.stack { display: grid; gap: 1rem; }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.checklist-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checklist-steps li { display: flex; gap: 0.7rem; align-items: flex-start; }
.dot { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid var(--line); margin-top: 0.15rem; }
.dot.done { background: var(--accent); border-color: var(--accent); }
.inline-form { display: inline; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
details.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
details.panel summary { cursor: pointer; font-weight: 600; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 420px; padding: 2rem; }
.divider { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: 0.85rem; margin: 1.2rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

@media (max-width: 960px) {
  .hero-grid, .split, .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .grades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 0.6rem 16px; }
  .sidebar .brand, .sidebar .org { padding: 0 0.5rem 0 0; }
  .sidebar .spacer, .sidebar .org { display: none; }
  .sidebar .me { border-top: 0; padding: 0; display: flex; gap: 0.5rem; align-items: center; }
  .main { padding: 1.2rem 16px 3rem; }
}
@media (max-width: 720px) {
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 1rem 16px; gap: 0.9rem; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3, .compare { grid-template-columns: 1fr; }
  .stats, .steps, .grades { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
}

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.pillars .card { display: flex; flex-direction: column; }
.pillars .card p { flex: 1; }
.pillars .when { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pillars .out { font-size: 0.88rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 0.7rem; margin-top: 0.8rem; }
.formula { font-family: var(--serif); font-size: 1.05rem; background: var(--accent-soft); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }


/* ---------- Website components, second pass: calmer pages ---------- */
.page-hero { padding: 4.25rem 0 2.75rem; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.85rem); max-width: 24ch; margin: 0 auto 0.9rem; }
.page-hero .lead { margin: 0 auto; }
.page-hero .cta-row { justify-content: center; }
.page-hero .code { text-align: left; max-width: 34rem; margin: 1.6rem auto 0; }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0.45rem; }
.section-head p { color: var(--ink-2); margin: 0; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.trust { display: flex; flex-wrap: wrap; gap: 0.35rem 1.2rem; margin-top: 1.4rem; font-size: 0.88rem; color: var(--muted); }
.trust span::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 0.4rem; }

/* Pricing */
.plan-group + .plan-group { margin-top: 3rem; }
.plan-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.plan-group-head h2 { font-size: 1.4rem; margin: 0; }
.plan-group-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.75rem 1.75rem 1.6rem; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .badge { position: absolute; top: -0.72rem; left: 1.6rem; background: var(--accent); color: var(--accent-ink);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.22rem 0.65rem; border-radius: 999px; }
.plan h3 { font-size: 1.45rem; margin: 0 0 0.35rem; }
.plan .tagline { color: var(--ink-2); margin: 0 0 1rem; }
.plan .model { align-self: flex-start; font-size: 0.84rem; font-weight: 600; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 0.25rem 0.75rem; }
.plan .price { font: 600 2rem/1.1 var(--serif); margin: 0.2rem 0 0.4rem; }
.plan .checklist { flex: 1; margin: 1.3rem 0 1.6rem; font-size: 0.95rem; }
.plan .btn { justify-content: center; }
.includes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: 3rem; padding: 1.4rem 1.6rem;
  background: var(--surface-2); border-radius: 14px; }
.includes div { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); }
.includes svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--accent); margin-top: 0.15rem; }

.plan .code { margin: 0; }
.plan-link { align-self: center; margin-top: 0.8rem; font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.plan-link::after { content: " \2192"; }
.plan .model + h3 { margin-top: 0.9rem; }
.plan-note { margin: 0.7rem 0 0; text-align: center; font-size: 0.86rem; color: var(--muted); }
.offer { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; flex-wrap: wrap;
  margin-bottom: 2.5rem; padding: 0.85rem 1rem 0.85rem 1.4rem; background: var(--accent-soft); border-radius: 14px; }
.offer p { margin: 0; color: var(--ink); font-weight: 600; }
.cta-note { margin: 0.9rem 0 0; font-size: 0.88rem; color: var(--muted); }

/* Open source versus Cloud */
.versus th[scope=row] { width: 26%; color: var(--ink); font-size: 0.92rem; text-transform: none; letter-spacing: 0;
  font-weight: 600; background: transparent; }
.versus thead th:last-child { color: var(--accent); }
.versus td:last-child { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); color: var(--ink); }
.versus td { color: var(--ink-2); }

/* Why pay when the engine is free (pricing) */
.why { margin-top: 3rem; }
.why-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.why-head h2 { font-size: 1.4rem; margin: 0; }
.why-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem 1.5rem; }
.why-grid div { border-left: 2px solid var(--accent); padding: 0.1rem 0 0.1rem 0.9rem; }
.why-grid b { display: block; font-size: 0.97rem; margin-bottom: 0.2rem; }
.why-grid span { display: block; font-size: 0.9rem; color: var(--ink-2); }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.1rem 2.4rem 1.1rem 0; font-weight: 600; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0.35rem; top: 0.8rem; font-size: 1.45rem; font-weight: 400; color: var(--muted); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details > div { padding: 0 2.4rem 1.2rem 0; color: var(--ink-2); }
.faq-list details > div p:last-child { margin-bottom: 0; }

/* Numbered cards (rules, principles) */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; counter-reset: rule; }
.rules .card { position: relative; padding: 1.3rem 1.4rem 1.3rem 4rem; }
.rules .card::before { counter-increment: rule; content: counter(rule); position: absolute; left: 1.25rem; top: 1.25rem; width: 1.9rem;
  height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.rules .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.5rem); }
.rules h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.rules p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.rules .card-includes { margin-top: 0.75rem; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.features .card h3 { font-size: 1.1rem; }
.features .card p, .features .card li { font-size: 0.94rem; color: var(--ink-2); }
.features .card ul { padding-left: 1.1rem; margin: 0.4rem 0 0; }
.features .card li { margin: 0.35rem 0; }

/* What is open and what Cloud adds */
.compare-table td.check, .compare-table th.check { text-align: center; width: 8.5rem; }
.compare-table .yes { color: var(--accent); font-weight: 700; }
.compare-table .later { color: var(--muted); font-size: 0.85rem; }
.compare-table tr.group td { background: var(--surface-2); font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); padding-top: 0.5rem; padding-bottom: 0.5rem; }

/* Long pages: a sidebar "On this page" that follows you, collapsed into a menu on small screens */
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 3.5rem; align-items: start; }
.doc-nav { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; font-size: 0.9rem; }
.doc-nav summary { list-style: none; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.4rem; }
.doc-nav summary::-webkit-details-marker { display: none; }
.doc-nav-group { margin: 1rem 0 0.35rem; font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.doc-nav a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; }
.doc-nav a:hover { color: var(--accent); }
.doc-nav a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.doc-part { margin: 3.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.doc-part:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-part + h2 { margin-top: 0.5rem; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .doc-nav { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
    padding: 0.8rem 1rem; }
  .doc-nav summary { cursor: pointer; margin: 0; display: flex; justify-content: space-between; }
  .doc-nav summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
  .doc-nav[open] summary::after { content: "\2212"; }
  .doc-nav[open] summary { margin-bottom: 0.4rem; }
}
@media (min-width: 901px) { .doc-nav summary { pointer-events: none; } }

/* Pillars with deliverables */
.pillars .links { list-style: none; padding: 0.8rem 0 0; margin: 1rem 0 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.pillars .links li { margin: 0.3rem 0; }
.pillars .links a { text-decoration: none; font-weight: 600; }
.pillars .links a::after { content: " \2192"; }
.pillars .links span { color: var(--muted); }

@media (max-width: 960px) {
  .includes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .plans, .rules, .includes { grid-template-columns: 1fr; }
  .rules .card:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
  .page-hero { padding: 3rem 0 2rem; }
  .compare-table td.check, .compare-table th.check { width: 5.5rem; }
}

/* The free check */
.callout.info { background: var(--accent-soft); }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.check-trust { margin-bottom: 1.4rem; }
.check-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dropzone { position: relative; display: grid; place-items: center; min-height: 9.5rem; margin: 1rem 0 0.5rem; padding: 1.2rem 1rem;
  text-align: center; border: 2px dashed var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink-2);
  font-weight: 400; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
/* Only the zone takes pointer events, so dragging across its contents doesn't flicker the highlight. */
.dropzone > span { pointer-events: none; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:hover .btn-primary { filter: brightness(1.08); }
.dropzone:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.dz-empty { display: grid; justify-items: center; gap: 0.6rem; }
.dz-icon { flex: none; width: 2rem; height: 2rem; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round;
  stroke-linejoin: round; }
.dz-hint { font-size: 0.85rem; color: var(--muted); }
.dz-chosen { display: none; align-items: center; gap: 0.8rem; text-align: left; }
.dz-text { display: grid; gap: 0.1rem; min-width: 0; }
.dz-text b { color: var(--ink); overflow-wrap: anywhere; }
.dropzone.chosen { min-height: 0; place-items: center start; border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.dropzone.chosen .dz-empty { display: none; }
.dropzone.chosen .dz-chosen { display: flex; }
.dropzone.chosen .dz-hint { text-decoration: underline; text-underline-offset: 3px; }
.dz-status { margin: 0; color: var(--ink-2); }
.dz-status.error { color: var(--bad); }
.check-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; margin-top: 0.6rem; }
.check-field { display: grid; gap: 0.2rem; font-size: 0.85rem; color: var(--ink-2); }
.check-options { margin: 1.2rem 0 0.4rem; }
.check-options summary { cursor: pointer; font-weight: 600; }
.check-results { margin-top: 2rem; }
.check-results h3 { margin-top: 1.8rem; }
.check-results .headline { font-size: 1.08rem; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 10px; padding: 1rem 1.2rem; }
.check-notes { margin-top: 1.2rem; }
@media (max-width: 720px) { .check-inputs, .check-map { grid-template-columns: 1fr; } }

/* Founder */
.founder { display: flex; gap: 1.4rem; align-items: flex-start; }
.founder-photo { flex: none; border-radius: 50%; object-fit: cover; }
.founder h3 { margin: 0.2rem 0 0.4rem; }

/* A clean one-page summary when a page is printed or saved as PDF */
@media print {
  .site-header, .site-footer, .page-hero, .check-inputs, .check-options, .check-trust, #check-run, .check-actions,
  .band, .cta-band, .faq-list { display: none !important; }
  body { background: #fff; color: #000; }
  .check-results { margin: 0; }
  .table-wrap { border-color: #ccc; }
}

/* Grid items may shrink below their content's width, so a wide table scrolls inside its card
   instead of pushing the page wider than the screen. */
.hero-grid > *, .split > *, .cols > *, .features > *, .plans > * { min-width: 0; }
th.nowrap, td.nowrap { white-space: nowrap; }

th.n.wrap, td.n.wrap { white-space: normal; }
