/* StoreSweep — site stylesheet. Direction: Broadsheet.
   The authority of a printed audit: a high-contrast serif at a size nothing competes with,
   hairline rules instead of boxes, a broad measure, one oxblood that only marks what needs
   attention. Nothing is filled that a rule can separate, and nothing has a shadow.
   Tokens mirror brand.py; tests/test_brand.py fails if the two drift. No build step. */

/* ---------- Fonts (self-hosted from fonts/; no third-party requests) ---------- */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/libre-franklin-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/libre-franklin-latin-wght-italic.woff2") format("woff2-variations"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Libre Franklin", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #fdfdfc;
  --bg-elev: #ffffff;
  --bg-sunken: #f6f4f0;
  --bg-code: #f4f2ee;
  --text: #14161a;
  --text-2: #33383f;
  --text-3: #65696f;
  --line: #14161a;
  --line-soft: #d5d2cc;
  --accent: #8c2f39;
  --accent-hover: #6d222b;
  --accent-text: #8c2f39;
  --accent-soft: #f6ecec;
  --on-accent: #ffffff;
  --ok-bg: #e7f0e8; --ok-fg: #1c5c33; --ok-dot: #1d6b3f;
  --warn-bg: #f7eed6; --warn-fg: #7a5006; --warn-dot: #a8710a;
  --bad-bg: #f6e6e7; --bad-fg: #8c2f39; --bad-dot: #8c2f39;
  --mute-bg: #eceae6; --mute-fg: #4a4e55; --mute-dot: #84878c;

  --measure: 66ch;
  --gutter: 20px;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131315;
    --bg-elev: #1a1a1d;
    --bg-sunken: #0d0d0f;
    --bg-code: #201f22;
    --text: #f2f1ee;
    --text-2: #c6c4bf;
    --text-3: #98968f;
    --line: #f2f1ee;
    --line-soft: #34333a;
    --accent: #c4596a;
    --accent-hover: #d9788a;
    --accent-text: #e79aa6;
    --accent-soft: #2e1b1f;
    --on-accent: #1a0c0f;
    --ok-bg: #16301f; --ok-fg: #a3d9b4; --ok-dot: #4d9e6a;
    --warn-bg: #332706; --warn-fg: #e8c476; --warn-dot: #c99526;
    --bad-bg: #331a1d; --bad-fg: #e79aa6; --bad-dot: #c4596a;
    --mute-bg: #26262a; --mute-fg: #c6c4bf; --mute-dot: #8b8a86;
  }
}
:root[data-theme="dark"] {
  --bg: #131315; --bg-elev: #1a1a1d; --bg-sunken: #0d0d0f; --bg-code: #201f22;
  --text: #f2f1ee; --text-2: #c6c4bf; --text-3: #98968f; --line: #f2f1ee; --line-soft: #34333a;
  --accent: #c4596a; --accent-hover: #d9788a; --accent-text: #e79aa6; --accent-soft: #2e1b1f; --on-accent: #1a0c0f;
  --ok-bg: #16301f; --ok-fg: #a3d9b4; --ok-dot: #4d9e6a;
  --warn-bg: #332706; --warn-fg: #e8c476; --warn-dot: #c99526;
  --bad-bg: #331a1d; --bad-fg: #e79aa6; --bad-dot: #c4596a;
  --mute-bg: #26262a; --mute-fg: #c6c4bf; --mute-dot: #8b8a86;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: .88em; }
pre {
  margin: 0; padding: 16px 0; background: none; border: 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere;
  line-height: 1.6; font-size: 14px; color: var(--text);
}
code:not(pre code) { background: var(--bg-code); padding: 1px 5px; border: 0; word-break: break-word; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }
strong { font-weight: 600; }

/* A serif with one weight: never ask it for 600, never set it below 26px. */
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; margin: 0 0 .4em; color: var(--text); }
h1 { font-size: clamp(2.75rem, 1.9rem + 4.2vw, 5rem); line-height: 0.98; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); line-height: 1.04; text-wrap: balance; }
h3, h4 { font-family: var(--font-sans); font-weight: 600; line-height: 1.3; margin: 0 0 .5em; color: var(--text); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 600; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; max-width: var(--measure); }
li { margin-bottom: .4em; }

.eyebrow {
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 18px; font-weight: 600;
}
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-3); }
.small { font-size: .9rem; }
.tight { max-width: 46ch; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 44px; } }
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 100px 0; } }
section + section { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 30ch; margin-bottom: 44px; }
.section-head .lede { max-width: 62ch; }
.grid-2 { display: grid; gap: 40px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } }

/* Columns are separated by a rule, never by a card. */
@media (min-width: 820px) {
  .grid-2 > * + * { border-left: 1px solid var(--line-soft); padding-left: 40px; }
  .grid-2 > *:first-child { padding-right: 40px; }
}
@media (min-width: 960px) {
  .grid-3 > * + * { border-left: 1px solid var(--line-soft); padding-left: 28px; }
  .grid-3 > *:not(:last-child) { padding-right: 28px; }
}

.skip-link {
  position: absolute; left: 20px; top: -100px; z-index: 100; padding: 12px 16px;
  background: var(--text); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Masthead ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em;
  font-size: 1.2rem; color: var(--text); text-decoration: none;
}
.wordmark:hover { color: var(--text); }
.wordmark svg { width: 23px; height: 23px; flex: none; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { color: var(--text-2); text-decoration: none; font-weight: 500; padding: 10px 12px; font-size: .95rem; display: inline-block; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav a.btn-primary { color: var(--on-accent); background: var(--text); margin-left: 10px; border-color: var(--text); }
.site-nav a.btn-primary:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.nav-toggle {
  margin-left: auto; display: none; background: none; border: 1px solid var(--line);
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--text); cursor: pointer;
}
@media (max-width: 899px) {
  /* Without JavaScript the menu simply stays open under the wordmark; with it, the toggle takes over. */
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 4px; }
  .site-nav { flex-basis: 100%; padding: 4px 0 12px; }
  html.js .nav-toggle { display: inline-flex; }
  html.js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 2px solid var(--line); padding: 8px var(--gutter) 16px; margin: 0; }
  html.js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav .btn { margin: 12px 0 0; width: 100%; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.cta-note { font-size: .9rem; color: var(--text-3); margin-top: 14px; max-width: 52ch; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 0; border-bottom: 1px solid var(--line-soft); position: relative; }
@media (min-width: 900px) { .hero { padding-top: 88px; } }
.hero h1 { max-width: 24ch; margin-bottom: 26px; }
.hero .lede { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.hero-actions a:not(.btn) { font-weight: 500; }
@media (min-width: 1000px) {
  /* The lede and the actions sit beside the headline's foot, newspaper-fashion. */
  .hero > .wrap > div:first-child { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; }
  .hero h1 { grid-column: 1 / -1; }
  .hero .lede { margin-bottom: 0; align-self: end; }
  .hero-actions { align-self: end; flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero .cta-note { grid-column: 1 / -1; margin-top: 22px; }
}
.hero .panels { display: grid; gap: 0; min-width: 0; margin-top: 56px; border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .hero .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Data panels: rules, not cards ---------- */
.panel {
  position: relative; background: none; border: 0; border-bottom: 1px solid var(--line-soft);
  overflow: hidden; font-size: .93rem; color: var(--text); padding: 26px 0 30px;
}
@media (min-width: 1000px) {
  .hero .panels .panel { border-bottom: 0; padding-right: 40px; }
  .hero .panels .panel + .panel { border-left: 1px solid var(--line-soft); padding-left: 40px; padding-right: 0; }
}
.panel-bar {
  display: flex; align-items: baseline; gap: 12px; padding: 0 0 4px;
  background: none; border: 0; font-size: .95rem; color: var(--text); font-weight: 600;
}
.panel-bar .crumb { margin-left: auto; font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.panel-body { padding: 0; }
.panel h3, .panel h4 { margin-bottom: 4px; }
.panel .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 10px 16px; font-size: .78rem; color: var(--text-3); margin: 14px 0 18px; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line-soft); }
.panel .stats li { margin: 0; }
.panel .stats strong { display: block; color: var(--text); font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.05; font-variant-numeric: tabular-nums; }

table.inv { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.inv th, table.inv td { text-align: left; padding: 10px 10px 10px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.inv th { font-family: var(--font-mono); font-weight: 400; color: var(--text-3); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; border-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
table.inv td:last-child, table.inv th:last-child { padding-right: 0; }
table.inv td.script, table.inv td.rule { font-family: var(--font-mono); font-size: .78rem; color: var(--text); }
/* Only a URL is long enough to need breaking mid-token; a rule or page name is not, and
   breaking one gives you 'Categ ory'. */
table.inv td.script { overflow-wrap: anywhere; }
table.inv td.why { color: var(--text-2); min-width: 14ch; }
table.inv .by { display: block; color: var(--text-3); font-size: .72rem; font-family: var(--font-mono); margin-top: 5px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0; border-top: 0; }
.table-scroll:focus-visible { outline-offset: 0; }

/* A status is a word in its own colour. No fill on the page; the dashboard keeps pills
   because it is a working surface where density wins. */
.pill {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap; line-height: 1.7;
}
.pill-ok { color: var(--ok-fg); }
.pill-warn { color: var(--warn-fg); }
.pill-bad { color: var(--bad-fg); }
.pill-mute { color: var(--mute-fg); }

/* Alert email mock */
.email .row { display: flex; gap: 12px; font-size: .82rem; padding: 4px 0; }
.email .row dt { color: var(--text-3); min-width: 54px; margin: 0; }
.email .row dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.email dl { margin: 14px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.email .finding { padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; background: none; }
.email .finding:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.email .finding .tag { font-family: var(--font-mono); font-size: .7rem; color: var(--text-3); display: flex; gap: 10px; align-items: baseline; margin-bottom: 7px; flex-wrap: wrap; }
.email .finding p { font-size: .9rem; max-width: none; }
.email .finding code { font-size: .8rem; }

/* Evidence pack cover mock: the one object on the page allowed to look like paper. */
.cover {
  height: 100%; min-height: 470px; width: 100%;
  background: var(--bg-elev); border: 1px solid var(--line);
  padding: 32px 32px 26px; display: flex; flex-direction: column; font-size: .85rem; position: relative;
}
.cover .rule { height: 2px; width: 52px; background: var(--accent); margin-bottom: 22px; }
.cover .title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; margin-bottom: 10px; }
.cover .domain { font-family: var(--font-mono); font-size: .82rem; color: var(--text-2); margin-bottom: 28px; }
.cover dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; margin: 0; font-size: .78rem; }
.cover dt { color: var(--text-3); }
.cover dd { margin: 0; font-family: var(--font-mono); font-size: .74rem; }
.cover .sections { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: .76rem; color: var(--text-2); }
.cover .sections p { max-width: none; margin-bottom: 5px; }
.cover .foot { margin-top: 16px; font-size: .62rem; color: var(--text-3); line-height: 1.4; }
.cover .foot p { max-width: none; margin-bottom: 5px; }

/* ---------- The two requirements ---------- */
.req { padding: 0; border: 0; background: none; }
.req h3 { margin-bottom: 6px; font-size: 1.35rem; }
.req .ref { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); margin-bottom: 20px; letter-spacing: .04em; text-transform: uppercase; }
.req dl { margin: 0; }
.req dt { font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-top: 20px; }
.req dt:first-child { margin-top: 0; }
.req dd { margin: 6px 0 0; color: var(--text-2); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: step; max-width: none; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { position: relative; padding: 26px 26px 30px 0; counter-increment: step; margin: 0; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 720px) { .steps li:nth-child(2n) { border-left: 1px solid var(--line-soft); padding-left: 26px; } }
@media (min-width: 1040px) {
  .steps li { border-bottom: 0; }
  .steps li:nth-child(2n) { border-left: 0; padding-left: 0; }
  .steps li + li { border-left: 1px solid var(--line-soft); padding-left: 26px; }
}
.steps .num { font-family: var(--font-mono); color: var(--accent-text); font-size: .7rem; letter-spacing: .12em; margin-bottom: 18px; display: block; text-transform: uppercase; }
.steps h3 { font-size: 1.08rem; margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: .95rem; }
.steps svg { width: 34px; height: 34px; color: var(--text); margin-bottom: 18px; stroke-width: 1.3; }
.callout {
  margin-top: 44px; padding: 20px 0 0; border: 0; border-top: 2px solid var(--line);
  background: none; display: flex; gap: 16px; align-items: flex-start; max-width: 80ch;
}
.callout svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--accent-text); margin-top: 4px; }
.callout p { max-width: none; font-size: .97rem; color: var(--text-2); }

/* ---------- Two halves ---------- */
.half { padding: 0; border: 0; background: none; display: flex; flex-direction: column; }
.half .ref { font-family: var(--font-mono); font-size: .72rem; color: var(--accent-text); margin-bottom: 12px; letter-spacing: .06em; text-transform: uppercase; }
.half h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 22px; }
.half h4 { margin: 24px 0 10px; }
.half ul { margin: 0; padding-left: 1.1em; color: var(--text-2); }
.half li { margin-bottom: .4em; }

/* ---------- Evidence pack section ---------- */
.scope { padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); background: none; font-size: .9rem; color: var(--text-2); }
.scope .label { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 10px; }
.scope p { max-width: none; }
.pack-contents { display: grid; gap: 40px; grid-template-columns: 1fr; margin: 36px 0; }
@media (min-width: 820px) { .pack-contents { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; } .pack-contents > *:first-child { padding-right: 40px; } .pack-contents > * + * { border-left: 1px solid var(--line-soft); padding-left: 40px; } }
.pack-contents h3 { font-size: 1.05rem; margin-bottom: 10px; }
.pack-contents ol { color: var(--text-2); padding-left: 1.2em; }
.delivery { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; padding: 0; margin: 0 0 32px; max-width: none; }
.delivery li { padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; color: var(--text-2); background: none; margin: 0; flex: 1 1 220px; }

/* ---------- Bot block ---------- */
.bot-block { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .bot-block { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; } .bot-block > *:first-child { padding-right: 48px; } .bot-block > * + * { border-left: 1px solid var(--line-soft); padding-left: 48px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 0; max-width: none; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.checklist svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--ok-dot); margin-top: 4px; }
.checklist.never svg { color: var(--bad-dot); }

/* ---------- Pricing ---------- */
.toggle { display: inline-flex; align-items: center; gap: 16px; margin: 4px 0 36px; flex-wrap: wrap; }
.switch { display: inline-flex; border: 1px solid var(--line); background: none; }
.switch button {
  border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 600; font-size: .92rem;
  padding: 10px 20px; min-height: 44px; cursor: pointer;
}
.switch button + button { border-left: 1px solid var(--line); }
.switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.toggle .save { font-size: .9rem; color: var(--text-3); }

.pricing { display: grid; gap: 0; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; max-width: none; border-top: 1px solid var(--line); }
@media (min-width: 680px) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan {
  border: 0; border-bottom: 1px solid var(--line-soft); background: none; padding: 28px 28px 30px 0;
  display: flex; flex-direction: column; margin: 0; position: relative;
}
@media (min-width: 680px) { .plan:nth-child(2n) { border-left: 1px solid var(--line-soft); padding-left: 28px; } }
@media (min-width: 1040px) {
  .plan:nth-child(2n) { border-left: 0; padding-left: 0; }
  .plan:not(:nth-child(3n+1)) { border-left: 1px solid var(--line-soft); padding-left: 28px; }
}
.plan.is-default { background: var(--bg-sunken); padding-left: 28px; padding-right: 28px; box-shadow: inset 0 3px 0 var(--accent); }
.plan .flag {
  position: static; display: inline-block; background: none; color: var(--accent-text);
  font-family: var(--font-mono); font-size: .66rem; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; padding: 0; margin-bottom: 10px;
}
.plan h3 { font-size: 1.15rem; margin-bottom: 6px; }
.plan .who { color: var(--text-3); font-size: .88rem; margin-bottom: 20px; min-height: 2.8em; max-width: none; }
.plan .price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.plan .price .amt { font-family: var(--font-display); font-size: 2.9rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price .per { color: var(--text-3); font-size: .88rem; }
.plan .billed { font-size: .74rem; color: var(--text-3); min-height: 1.4em; margin-bottom: 20px; font-family: var(--font-mono); }
.plan .facts { display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; margin: 0 0 20px; font-size: .88rem; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.plan .facts dt { color: var(--text-3); }
.plan .facts dd { margin: 0; font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: .92rem; color: var(--text-2); flex: 1; }
.plan li { display: flex; gap: 10px; margin-bottom: 9px; }
.plan li::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; background: var(--accent); margin-top: .62em; }
.plan li.no { color: var(--text-3); }
.plan li.no::before { background: var(--line-soft); }
.plan .btn { width: 100%; }
.pricing-note { margin-top: 32px; font-size: .95rem; color: var(--text-2); max-width: 74ch; padding: 18px 0 0; border: 0; border-top: 2px solid var(--line); }
.pricing-note p { max-width: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; border-top: 2px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.15rem;
  position: relative; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 1px;
  background: var(--text);
}
.faq summary::before {
  content: ""; position: absolute; right: 9px; top: 50%; width: 1px; height: 12px; margin-top: -6px;
  background: var(--text); transition: opacity .15s ease;
}
.faq details[open] summary::before { opacity: 0; }
.faq summary:hover { color: var(--accent-text); }
.faq .answer { padding: 0 0 26px; color: var(--text-2); max-width: 68ch; }
.faq .answer p { max-width: none; }

/* ---------- Final CTA ---------- */
.cta-band { background: var(--bg-sunken); }
.cta-band .wrap { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.cta-band h2 { max-width: 18ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--line); padding: 52px 0 44px; font-size: .9rem; color: var(--text-2); background: var(--bg); }
.site-footer .cols { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .site-footer .cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.site-footer address { font-style: normal; line-height: 1.7; margin-top: 16px; }
.site-footer nav ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a { color: var(--text-2); }
.site-footer nav a:hover { color: var(--text); }
.disclaimers { display: grid; gap: 0; }
.disclaimers blockquote { margin: 0; padding: 16px 0; border: 0; border-top: 1px solid var(--line-soft); font-size: .84rem; line-height: 1.55; color: var(--text-3); background: none; }
.disclaimers blockquote:last-child { border-bottom: 1px solid var(--line-soft); }
.disclaimers blockquote p { max-width: none; }
.site-footer .legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: .82rem; color: var(--text-3); align-items: center; }
.site-footer .legal p { margin: 0; max-width: none; }
.no-3p { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .76rem; }
.no-3p svg { width: 13px; height: 13px; color: var(--ok-dot); }

/* ---------- Document pages (/bot, /privacy, /terms) ---------- */
.doc-header { padding: 64px 0 44px; border-bottom: 2px solid var(--line); }
.doc-header h1 { font-size: clamp(2.4rem, 1.8rem + 2.8vw, 4rem); max-width: 20ch; }
.doc-header .meta { font-family: var(--font-mono); font-size: .76rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 20px; }
.doc-header .meta span { overflow-wrap: anywhere; }
.doc .wrap > * { min-width: 0; }
.doc { padding: 48px 0 100px; }
.doc .wrap { display: grid; gap: 44px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .doc .wrap { grid-template-columns: 210px minmax(0, 1fr); gap: 72px; } }
.toc { position: sticky; top: 92px; font-size: .88rem; }
.toc h2 { font-family: var(--font-sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 600; margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-soft); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--text-2); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.prose { min-width: 0; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-top: 2em; padding-top: .7em; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 1.8em; }
.prose p, .prose ul, .prose ol { color: var(--text-2); }
.prose li { margin-bottom: .45em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 0 0 1.2em; }
.prose th, .prose td { text-align: left; padding: 11px 12px 11px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.prose th { font-weight: 600; color: var(--text-3); border-top: 0; border-bottom: 1px solid var(--line); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.prose tr:last-child td { border-bottom: 1px solid var(--line-soft); }
.prose pre { margin: 0 0 1.4em; }
.draft {
  display: inline-block; padding: 0; background: none;
  color: var(--warn-fg); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 20px;
}
.notice { padding: 18px 0 0; border: 0; border-top: 2px solid var(--warn-dot); background: none; margin-bottom: 32px; font-size: .95rem; }
.notice p { max-width: none; }
.kv { display: grid; grid-template-columns: 1fr; gap: 0; border: 0; border-top: 1px solid var(--line); overflow: hidden; margin-bottom: 1.6em; font-size: .94rem; background: none; }
.kv > div { display: grid; grid-template-columns: 1fr; gap: 2px 20px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 640px) { .kv > div { grid-template-columns: 180px minmax(0, 1fr); } }
.kv dt { color: var(--text-3); font-size: .82rem; }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.kv code { font-size: .86rem; }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
caption.visually-hidden { display: block; } /* a table-caption box ignores position:absolute and wraps into a tall 1px column */
.mt-3 { margin-top: 14px; }
.mt-6 { margin-top: 32px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 14px; }
.gap-tight { gap: 0; }
.label-mono { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 400; margin-bottom: 14px; }

/* ---------- Narrow screens: inventory tables stack into rows ---------- */
.panel-bar > span:not(.crumb) { white-space: nowrap; }
@media (max-width: 599px) {
  table.inv, table.inv tbody, table.inv tr, table.inv td { display: block; }
  table.inv thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.inv tr { border-top: 1px solid var(--line-soft); padding: 12px 0; }
  table.inv td { border-top: 0; padding: 2px 0; }
  table.inv td.script { white-space: normal; overflow-wrap: anywhere; color: var(--text); margin-bottom: 5px; }
  table.inv td.rule { display: inline-block; margin-right: 10px; }
  table.inv td:has(.pill) { display: inline-block; margin-right: 10px; }
  table.inv td.why { padding-top: 7px; }
  .table-scroll { overflow: visible; }
  .panel .stats strong { font-size: 1.6rem; }
}
figure { margin: 0; }
