/* ToolVet - inspection directory. One bold element: the yellow inspection tag. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f5f7f4;
  --surface: #ffffff;
  --sunk: #eaeee9;
  --ink: #1b2a41;
  --ink-2: #4a5a70;
  --ink-3: #6f7d8f;
  --rule: #d5dcd6;
  --rule-strong: #b9c3bc;
  --tag: #f2d649;
  --tag-ink: #1b2a41;
  --tag-off: #d9ddd8;
  --pass: #17804a;
  --pass-soft: #dcefe3;
  --fail: #c2372b;
  --fail-soft: #f7e0dd;
  --warn: #b7791f;
  --warn-soft: #f6ead3;
  --none: #c9d0ca;
  --focus: #2f6fdb;
  --code-bg: #1b2a41;
  --code-ink: #e8edf3;

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: 2.875rem;
  --space: 1rem;
  --wrap: 72rem;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121a24;
    --surface: #18222f;
    --sunk: #0e151d;
    --ink: #e7ecf2;
    --ink-2: #b4bfcc;
    --ink-3: #8794a5;
    --rule: #2a3645;
    --rule-strong: #3a4859;
    --tag: #f2d649;
    --tag-ink: #1b2a41;
    --tag-off: #3a4554;
    --pass: #47b77a;
    --pass-soft: #173526;
    --fail: #ec6a5c;
    --fail-soft: #3a1e1c;
    --warn: #e0a84a;
    --warn-soft: #3a2d17;
    --none: #3a4554;
    --focus: #7aa7ff;
    --code-bg: #0b1118;
    --code-ink: #dfe6ee;
  }
}
:root[data-theme="dark"] {
  --paper: #121a24; --surface: #18222f; --sunk: #0e151d; --ink: #e7ecf2; --ink-2: #b4bfcc; --ink-3: #8794a5;
  --rule: #2a3645; --rule-strong: #3a4859; --tag-off: #3a4554; --pass: #47b77a; --pass-soft: #173526;
  --fail: #ec6a5c; --fail-soft: #3a1e1c; --warn: #e0a84a; --warn-soft: #3a2d17; --none: #3a4554; --focus: #7aa7ff;
  --code-bg: #0b1118; --code-ink: #dfe6ee;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--font-body);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--tag); color: var(--tag-ink); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, var(--step-4)); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: 0.9em; }
small, .small { font-size: var(--step--1); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- header / footer ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--font-display); font-weight: 750; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-mark { width: 1.1rem; height: 1.5rem; background: var(--tag); border-radius: 3px 3px 4px 4px; position: relative; flex: none; box-shadow: inset 0 0 0 1.5px var(--tag-ink); }
.brand-mark::before { content: ""; position: absolute; width: 0.34rem; height: 0.34rem; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--tag-ink); top: 0.22rem; left: 50%; transform: translateX(-50%); }
.nav { display: flex; gap: 1.25rem; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.demo-banner { background: var(--warn-soft); color: var(--ink); font-size: var(--step--1); text-align: center; padding: 0.4rem 1rem; border-bottom: 1px solid var(--rule); }

.site-footer { border-top: 1px solid var(--rule); margin-top: 5rem; padding: 2.5rem 0 3rem; color: var(--ink-2); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
main { display: block; }
/* Grid children must be allowed to shrink, or wide code blocks push the page sideways. */
.hero .wrap > *, .split > *, .svc-grid > *, .svc-head .wrap > * { min-width: 0; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.15rem; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 var(--step-0)/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.15); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--surface); }
.btn.tagged { background: var(--tag); color: var(--tag-ink); border-color: var(--tag-ink); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

label { font-weight: 600; display: block; margin-bottom: 0.35rem; }
.hint { color: var(--ink-2); font-size: var(--step--1); margin: 0.3rem 0 0; }
input[type="text"], input[type="url"], input[type="email"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--rule-strong); border-radius: var(--radius); padding: 0.65rem 0.8rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.field { margin-bottom: 1.25rem; }
.form-narrow { max-width: 38rem; }

.search { display: flex; gap: 0.5rem; max-width: 40rem; }
.search input { font-size: var(--step-1); padding: 0.85rem 1rem; border-width: 2px; border-color: var(--ink); }
.search .btn { padding-inline: 1.4rem; font-size: var(--step-1); }
.search-examples { margin: 0.75rem 0 0; color: var(--ink-2); font-size: var(--step--1); }
.search-examples a { color: var(--ink); margin-right: 0.85rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: end; margin: 1rem 0 1.5rem; }
.filters .field { margin: 0; min-width: 9rem; }
.filters label { font-size: var(--step--1); font-weight: 500; color: var(--ink-2); }
.filters select, .filters input { padding: 0.45rem 0.6rem; }
.check { display: inline-flex; gap: 0.4rem; align-items: center; font-weight: 500; }

/* ---------- the inspection tag ---------- */
.tag {
  --w: 3.1rem;
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-end;
  width: var(--w); height: calc(var(--w) * 1.22); padding-bottom: 0.3rem; flex: none;
  background: var(--tag); color: var(--tag-ink); border-radius: 5px 5px 7px 7px;
  box-shadow: inset 0 0 0 1.5px var(--tag-ink);
  font-family: var(--font-display); text-decoration: none;
  clip-path: polygon(16% 0, 84% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
}
.tag::before { content: ""; position: absolute; top: 12%; left: 50%; width: 22%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--tag-ink); }
.tag .score { font-size: calc(var(--w) * 0.42); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.tag .unit { font: 600 calc(var(--w) * 0.15)/1.1 var(--font-body); opacity: 0.8; }
.tag.off { background: var(--tag-off); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.tag.lg { --w: 7.5rem; padding-bottom: 0.9rem; }
.tag.lg .unit { font-size: 0.82rem; }

/* 30-day punch strip: one dot per day */
.punch { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; width: 100%; max-width: 12rem; }
.punch i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--none); }
.punch i.p { background: var(--pass); }
.punch i.w { background: var(--warn); }
.punch i.f { background: var(--fail); }
.punch.wide { max-width: 34rem; gap: 4px; }
.punch-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-2); margin-top: 0.5rem; }
.punch-legend span::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-right: 0.35rem; vertical-align: -0.05rem; background: var(--none); }
.punch-legend .p::before { background: var(--pass); }
.punch-legend .w::before { background: var(--warn); }
.punch-legend .f::before { background: var(--fail); }

/* ---------- status ---------- */
.status { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: var(--step--1); white-space: nowrap; }
.status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--none); }
.status.up { color: var(--pass); } .status.up::before { background: var(--pass); }
.status.down { color: var(--fail); } .status.down::before { background: var(--fail); }
.status.unknown { color: var(--ink-3); }
.pill { display: inline-block; font-size: var(--step--1); font-weight: 600; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 0.05rem 0.55rem; color: var(--ink-2); white-space: nowrap; }
.pill.kind-x402 { border-color: var(--ink); color: var(--ink); }
.pill.verified { background: var(--pass-soft); border-color: var(--pass); color: var(--pass); }
.pill.sponsored { background: var(--warn-soft); border-color: var(--warn); color: var(--ink); }
.pill.flag { background: var(--fail-soft); border-color: var(--fail); color: var(--fail); }

/* ---------- home hero ---------- */
.hero { padding: 3.5rem 0 2.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: var(--step-1); color: var(--ink-2); max-width: 38rem; margin-bottom: 1.75rem; }
.log { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem 0.6rem; }
.log h2 { font-size: var(--step-1); margin-bottom: 0.15rem; }
.log .sub { font-size: var(--step--1); color: var(--ink-2); margin-bottom: 0.6rem; }
.log ol { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.25rem 0.75rem; align-items: baseline; padding: 0.55rem 0; border-top: 1px solid var(--rule); font-size: var(--step--1); }
.log li a { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--step-0); }
.log li a:hover { text-decoration: underline; }
.log .when { color: var(--ink-3); white-space: nowrap; }
.log .detail { grid-column: 2 / 4; color: var(--ink-2); }
.counts { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; color: var(--ink-2); }
.counts strong { display: block; font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); font-weight: 750; }

/* ---------- sections ---------- */
.section { padding: 2.25rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); }

/* ---------- service rows (the directory table) ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) 9.5rem 12rem; gap: 0.5rem 1.25rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.row .main { min-width: 0; }
.row .title { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.row .title a { font-family: var(--font-display); font-size: var(--step-1); font-weight: 680; text-decoration: none; letter-spacing: -0.01em; }
.row .title a:hover { text-decoration: underline; }
.row .provider { color: var(--ink-2); font-size: var(--step--1); }
.row .desc { color: var(--ink-2); font-size: var(--step--1); margin: 0.2rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 62ch; }
.row .meta { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.row .price { text-align: right; }
.row .price strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; display: block; }
.row .price span { font-size: var(--step--1); color: var(--ink-2); }
.row .health { display: grid; gap: 0.35rem; justify-items: start; }
.row .health .small { color: var(--ink-2); }
.row.sponsored { background: linear-gradient(90deg, var(--warn-soft), transparent 70%); padding-left: 0.75rem; }
.row .why { font-size: var(--step--1); color: var(--ink); margin-top: 0.3rem; }

.empty { padding: 2.5rem 0; color: var(--ink-2); }
.pager { display: flex; gap: 1rem; justify-content: space-between; margin-top: 1.25rem; }

/* ---------- category index ---------- */
.cat-index { columns: 3 16rem; column-gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.cat-index li { break-inside: avoid; padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.cat-index a { font-weight: 600; text-decoration: none; display: flex; justify-content: space-between; gap: 1rem; }
.cat-index a:hover span:first-child { text-decoration: underline; }
.cat-index .n { color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 500; }
.cat-index p { margin: 0.2rem 0 0; font-size: var(--step--1); color: var(--ink-2); }

/* ---------- two audiences ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.split > div { border-top: 3px solid var(--ink); padding-top: 1.25rem; }
.split ul { padding-left: 1.1rem; margin: 0 0 1.25rem; }
.split li { margin-bottom: 0.35rem; }

pre.code { background: var(--code-bg); color: var(--code-ink); padding: 1rem 1.15rem; border-radius: var(--radius); overflow-x: auto; font-size: 0.85rem; line-height: 1.6; margin: 0 0 1.25rem; }
pre.code .c { color: #8fa3b8; }
:not(pre) > code { background: var(--sunk); padding: 0.08em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }

/* ---------- service page ---------- */
.svc-head { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.svc-head .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: start; }
.svc-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.3rem; overflow-wrap: anywhere; }
.svc-head .provider { color: var(--ink-2); margin-bottom: 0.8rem; }
.svc-head .desc { font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; }
.svc-url { font-family: var(--font-mono); font-size: var(--step--1); overflow-wrap: anywhere; color: var(--ink-2); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; padding-top: 2rem; }
.svc-grid section { margin-bottom: 2.5rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; margin: 0; font-size: var(--step--1); }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.aside-box { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.25rem; }
.aside-box h2 { font-size: var(--step-1); }

.breakdown { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.breakdown td, .breakdown th { padding: 0.45rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.breakdown th { font-weight: 500; color: var(--ink-2); }
.breakdown td.pts { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; width: 4.5rem; }
.bar { height: 0.45rem; background: var(--sunk); border-radius: 999px; overflow: hidden; width: 100%; min-width: 4rem; }
.bar > span { display: block; height: 100%; background: var(--ink); }
.bar.full > span { background: var(--pass); }

table.data { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
table.data th, table.data td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data th { color: var(--ink-2); font-weight: 500; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

.findings { list-style: none; margin: 0; padding: 0; }
.findings li { border-left: 3px solid var(--fail); padding: 0.4rem 0 0.4rem 0.8rem; margin-bottom: 0.6rem; background: var(--fail-soft); }
.findings li.ok { border-color: var(--pass); background: var(--pass-soft); }
.findings code { background: transparent; }

.tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.tools li { border-bottom: 1px solid var(--rule); padding-bottom: 0.6rem; }
.tools strong { font-family: var(--font-mono); font-weight: 500; font-size: 0.92em; }
.tools p { margin: 0.15rem 0 0; font-size: var(--step--1); color: var(--ink-2); }

.notice { border: 1px solid var(--rule-strong); border-left: 4px solid var(--ink); background: var(--surface); padding: 0.9rem 1.1rem; border-radius: var(--radius); margin: 1rem 0 1.5rem; }
.notice.ok { border-left-color: var(--pass); }
.notice.err { border-left-color: var(--fail); }
.notice.warn { border-left-color: var(--warn); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- pricing ---------- */
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.price-table th, .price-table td { text-align: left; padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.price-table td.amount { font-family: var(--font-display); font-size: var(--step-2); font-weight: 750; white-space: nowrap; }
.price-table th { color: var(--ink-2); font-weight: 500; font-size: var(--step--1); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1rem 2.6rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 700 0.9rem/1 var(--font-display); }

.prose > * { max-width: 46rem; }
.prose > .table-scroll, .prose > pre { max-width: 52rem; }
.prose h2 { margin-top: 2.25rem; font-size: var(--step-2); }
.prose li { margin-bottom: 0.4rem; }
.page-head { padding: 2.75rem 0 1.25rem; }
.page-head p { font-size: var(--step-1); color: var(--ink-2); }

/* ---------- paywall ---------- */
.paywall { max-width: 34rem; margin: 3rem auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 2rem; }
.paywall .amount { font-family: var(--font-display); font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 0.75rem 0 0.25rem; }
.paywall details { margin-top: 1.5rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.paywall summary { cursor: pointer; font-weight: 600; }
#pay-status { min-height: 1.5rem; margin-top: 1rem; font-weight: 500; }
#pay-status.err { color: var(--fail); }
#pay-status.ok { color: var(--pass); }

/* ---------- admin ---------- */
.admin-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.admin-nav a { text-decoration: none; font-weight: 600; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--rule-strong); }
.admin-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.kpi { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; }
.kpi strong { display: block; font-family: var(--font-display); font-size: var(--step-3); font-weight: 750; line-height: 1.1; }
.kpi span { color: var(--ink-2); font-size: var(--step--1); }
.chart { width: 100%; height: 10rem; display: block; }
.chart rect { fill: var(--ink); }
.chart rect.zero { fill: var(--rule); }
.inline-form { display: inline; }
.inline-form button { font: inherit; font-size: var(--step--1); background: none; border: 1px solid var(--rule-strong); border-radius: 4px; padding: 0.15rem 0.5rem; cursor: pointer; color: var(--ink); }
.inline-form button:hover { border-color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .svc-grid { grid-template-columns: 1fr; gap: 1rem; }
  .row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .row .health { grid-column: 2 / 4; }
}
@media (max-width: 640px) {
  .hero { padding-top: 2rem; }
  .search { flex-direction: column; }
  .split { grid-template-columns: 1fr; }
  .row { grid-template-columns: auto minmax(0, 1fr); }
  .row .price { grid-column: 2; text-align: left; }
  .row .price strong { display: inline; margin-right: 0.4rem; }
  .row .health { grid-column: 2; }
  .svc-head .wrap { grid-template-columns: 1fr; gap: 1rem; }
  .nav { margin-left: 0; width: 100%; gap: 1rem; padding-bottom: 0.75rem; }
  .paywall { margin: 1rem; padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
