/* Billprove site. Two looks share one design: light by default, and the dark (neon) look when a visitor chooses it
   with the header's switch (theme.js sets data-theme="neon" on <html>). Sora for headings and figures, IBM Plex Sans
   for text, both self-hosted (OFL, licences in /fonts). Colour carries meaning. Four highlighters mark evidence the
   same way everywhere: yellow is on the bill, blue is in the terms you agreed, green is in the paperwork, pink doesn't
   add up. Section colours are tints of them, never a fifth meaning. Documents stay white, like paper on a desk. The
   dark look's components are at the end of this file, each scoped to [data-theme="neon"]. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #172430;          /* blue-black ink */
  --ink-2: #4b5864;        /* secondary text, 7:1 on white */
  --ink-soft: #c4d0db;     /* secondary text on ink */
  --line: #dde4ea;
  --line-2: #c3cdd6;
  --field: #7d8995;        /* form borders, 3.5:1 on white */
  --paper-bg: #edf1f4;
  --surface: #ffffff;      /* cards */
  --paper: #ffffff;        /* documents: bills, agreements, an email */
  --paper-ink: #172430;
  --paper-ink-2: #4b5864;
  --paper-line: #dde4ea;

  /* The evidence highlighters: fill, and the outline that keeps them visible. */
  --hl-bill: #ffe14d;  --hl-bill-edge: #b98f00;
  --hl-terms: #a9d5ff; --hl-terms-edge: #3d84c6;
  --hl-paper: #a6e8c1; --hl-paper-edge: #2f9a62;
  --hl-query: #ffb3d1; --hl-query-edge: #d4467f;

  /* Section tints and the text colour that reads on each (4.5:1 or better). */
  --sky: #e6f1fc;   --sky-ink: #1d5d9c;
  --lilac: #eee8fd; --lilac-ink: #5a3db5;
  --mint: #e2f4e9;  --mint-ink: #1a6a41;
  --peach: #ffefdf; --peach-ink: #9a4d00;
  --blush: #fde7f0; --blush-ink: #a8285f;
  --sun: #ffe14d;

  --ok: #1d7a4a;
  --query: #b3135a;

  /* The top sections: a cool canvas on a faint grid; the home page's inside a ring of the highlighters' colours. */
  --hero-bg: #f3f6fc;
  --hero-grid: rgb(30 60 160 / 0.05);
  --ring: linear-gradient(120deg, #3fa8ff, #9c7dff 38%, #ff4f93 68%, #ffb800);

  --head-h: 72px;
  --gutter: 12px;
  --slab-r: 32px;
}

/* The dark (neon) look, chosen with the header's switch. */
:root[data-theme="neon"] {
  color-scheme: dark;
  --bg: #070c1b;           /* the deep ink canvas */
  --ink: #e8edff;          /* text on the canvas */
  --ink-2: #a9b4d6;        /* secondary text, 8:1 on the canvas */
  --ink-soft: #a9b4d6;     /* secondary text on the darkest panels */
  --line: #1f2a52;
  --line-2: #2e3b70;
  --field: #6874a0;        /* form borders, 3:1 or better on the panels */
  --paper-bg: #111a3a;     /* a raised panel */
  --surface: #0d1430;      /* cards */
  --night: #0a1026;        /* the hero, the dark sections and the footer */
  --cyan: #2ee6ff;         /* what you can do: buttons, focus, the current section */
  --paper: #ffffff;        /* documents: bills, agreements, an email */
  --paper-ink: #0b1430;    /* text on documents and on the highlighters */
  --paper-ink-2: #4b5864;
  --paper-line: #dde4ea;

  /* The evidence highlighters: fill, and the edge that makes them glow. Dark text on each reads 9:1 or better. */
  --hl-bill: #ffd84a;  --hl-bill-edge: #ffb800;
  --hl-terms: #8fc8ff; --hl-terms-edge: #3fa8ff;
  --hl-paper: #6ff0b0; --hl-paper-edge: #1fd88a;
  --hl-query: #ff9cc6; --hl-query-edge: #ff4f93;

  /* Section tints: a faint wash of each hue, and the text colour that reads on it (4.5:1 or better). */
  --sky: rgb(63 168 255 / 0.07);   --sky-ink: #8fc8ff;
  --lilac: rgb(179 148 255 / 0.08); --lilac-ink: #c3adff;
  --mint: rgb(59 242 160 / 0.06);  --mint-ink: #6ff0b0;
  --peach: rgb(255 170 90 / 0.07); --peach-ink: #ffb870;
  --blush: rgb(255 92 138 / 0.08); --blush-ink: #ff9cc6;
  --sun: #ffd84a;

  --ok: #3bf2a0;
  --query: #ff7aa2;        /* 5.9:1 or better even on the pink-tinted panels */

  /* The one bold place: the hero's ring, in the highlighters' colours. */
  --ring: linear-gradient(120deg, rgb(46 230 255 / 0.85), rgb(179 148 255 / 0.7) 38%, rgb(255 92 138 / 0.6) 68%, rgb(255 216 74 / 0.8));

}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-space, var(--head-h)) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; font-family: "Sora", "IBM Plex Sans", system-ui, sans-serif; }
p { margin: 0; }

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.65rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; font-weight: 600; }

a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.slab-ink :focus-visible { outline-color: #fff; }
.slab-ink .bill-card :focus-visible, .slab-ink .sheet :focus-visible { outline-color: var(--ink); }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

.ic {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Header: sticky, with where-you-are and how far ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  transition: box-shadow 0.2s ease;
}
.top.is-stuck { box-shadow: 0 1px 0 rgb(23 36 48 / 0.08), 0 10px 28px -18px rgb(23 36 48 / 0.4); }
.top-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: var(--head-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; font-size: 1.3125rem; letter-spacing: -0.02em;
}
.mark { width: 28px; height: 28px; flex: none; }
.mark rect { fill: var(--hl-bill); stroke: var(--ink); stroke-width: 2; }
.mark path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; font-size: 1rem; font-weight: 600; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease; }
.nav a:hover { background: var(--paper-bg); }
.nav a[aria-current="true"], .nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav .nav-cta { display: none; }

.menu-btn {
  display: none; align-items: center; gap: 6px;
  min-height: 42px; padding: 0 14px 0 10px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px;
  font: inherit; font-size: 0.9375rem; font-weight: 650; cursor: pointer;
}
.menu-btn .ic { width: 20px; height: 20px; }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; }
.progress span {
  display: block; height: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--hl-bill), var(--hl-terms) 38%, var(--hl-paper) 68%, var(--hl-query));
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 680; font-size: 1.0625rem; white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: #263a4c; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 1rem; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hl-bill-edge); }
.btn-sun:hover { background: #ffd81f; }
.text-link { font-weight: 650; }

/* ---------- Sections and slabs ---------- */
.section { padding-block: clamp(56px, 7vw, 104px); }
.slab {
  margin: var(--gutter) var(--gutter) 0;
  border-radius: var(--slab-r);
  padding-block: clamp(56px, 7vw, 104px);
}
.slab-ink { background: var(--ink); color: #fff; }
.slab-sky { background: var(--sky); }
.slab-lilac { background: var(--lilac); }
.slab-mint { background: var(--mint); }
.slab-peach { background: var(--peach); }
.slab-sun { background: var(--sun); }

.section-lede { margin-top: 16px; color: var(--ink-2); max-width: 44em; font-size: 1.1875rem; }
.slab-ink .section-lede { color: var(--ink-soft); }
.note { font-size: 0.875rem; color: var(--ink-2); }
.split {
  margin-top: 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px clamp(32px, 5vw, 72px); align-items: start;
}

/* ---------- Evidence marks ---------- */
mark.q {
  --m: var(--hl-bill); --e: var(--hl-bill-edge);
  color: var(--ink);
  padding: 0.05em 0.28em;
  margin: 0 -0.08em;
  border-radius: 4px;
  background: linear-gradient(var(--m), var(--m)) no-repeat left center / 100% 100%;
  box-shadow: inset 0 0 0 1.5px var(--e);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
mark.q.terms { --m: var(--hl-terms); --e: var(--hl-terms-edge); }
mark.q.filed { --m: var(--hl-paper); --e: var(--hl-paper-edge); }
mark.q.bad { --m: var(--hl-query); --e: var(--hl-query-edge); }

/* The highlighter sweeps across each figure as its example comes into view. */
@media (prefers-reduced-motion: no-preference) {
  .reveal .sweep mark.q { background-size: 0% 100%; box-shadow: inset 0 0 0 1.5px transparent; }
  .reveal .sweep.lit mark.q { animation: hilite 0.6s cubic-bezier(0.3, 0.7, 0.4, 1) var(--d, 0s) both; }
}
@keyframes hilite {
  from { background-size: 0% 100%; box-shadow: inset 0 0 0 1.5px transparent; }
  to { background-size: 100% 100%; box-shadow: inset 0 0 0 1.5px var(--e); }
}

.key { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9375rem; color: var(--ink-2); }
.key li { display: inline-flex; align-items: center; gap: 9px; }
.sw { width: 15px; height: 15px; border-radius: 4px; flex: none; background: var(--m); box-shadow: inset 0 0 0 1.5px var(--e); }
.sw-bill, .row-bill { --m: var(--hl-bill); --e: var(--hl-bill-edge); }
.sw-terms, .row-terms { --m: var(--hl-terms); --e: var(--hl-terms-edge); }
.sw-paper, .row-paper { --m: var(--hl-paper); --e: var(--hl-paper-edge); }
.sw-query, .row-query { --m: var(--hl-query); --e: var(--hl-query-edge); }

/* ---------- Hero ---------- */
.hero { margin-top: 4px; padding-block: clamp(44px, 6vw, 88px) clamp(44px, 6vw, 80px); overflow: hidden; }
/* The top sections are light, with dark text: a cool canvas on a faint grid. The home page's sits inside the ring of
   highlighter colours, the one bold place. The dark look restyles both at the end of this file. */
.hero, .topic-hero {
  --ink-soft: #26333f;     /* secondary text on the light top sections, 11.9:1 (it was 10.1:1 on navy) */
  color: var(--ink);
  background:
    linear-gradient(var(--hero-grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--hero-bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--hero-grid) 1px, transparent 1px) 0 0 / 32px 32px padding-box,
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px) 0 0 / 32px 32px padding-box,
    linear-gradient(var(--hero-bg), var(--hero-bg)) padding-box,
    var(--ring) border-box;
  box-shadow: 0 30px 60px -44px rgb(23 36 48 / 0.45);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(40px, 5vw, 64px); align-items: center;
}
.hero-copy { max-width: 36rem; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.75rem); }
.hero-points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 10px; color: var(--ink-soft); font-size: 1rem; }
.hero-points li { display: flex; align-items: center; gap: 12px; }
.hero-points .ic { width: 22px; height: 22px; color: var(--hl-bill-edge); }
.lede { margin-top: 26px; font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); max-width: 32em; }
.hero .lede { color: var(--ink-soft); }
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero .text-link { color: var(--ink); }

/* The examples deck: the four selling points on top, one whole card at a time below. */
.deck { min-width: 0; }
.pillars { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pillars[hidden] { display: none; }
.pillar {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 12px; border-radius: 999px;
  background: transparent; color: var(--ink); border: 1.5px solid var(--field);
  font: inherit; font-size: 0.875rem; font-weight: 650; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pillar .ic { width: 18px; height: 18px; stroke-width: 2; }
.pillar:hover { border-color: var(--ink); background: rgb(23 36 48 / 0.05); }
.pillar[aria-current="true"] { background: var(--pt); border-color: var(--ink); color: var(--ink); }
.p-over { --pt: #ffe680; --pi: #7a5c00; --pb: #fff4c2; }
.p-fraud { --pt: #ffc2da; --pi: var(--blush-ink); --pb: var(--blush); }
.p-cash { --pt: #b7ecca; --pi: var(--mint-ink); --pb: var(--mint); }
.p-late { --pt: #bcdcfb; --pi: var(--sky-ink); --pb: var(--sky); }

.deck-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  border-radius: 24px;
  padding-bottom: 6px;
}
.js .deck-track { scrollbar-width: none; padding-bottom: 0; }
.js .deck-track::-webkit-scrollbar { display: none; }
.deck-track:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.bill-card {
  scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; gap: 14px; align-content: start;
  background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -28px rgb(23 36 48 / 0.4);
  border-radius: 24px;
  padding: clamp(18px, 2.4vw, 26px);
  font-size: 1.0625rem; line-height: 1.5;
}
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.card-pillar { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; background: var(--pb); color: var(--pi); font-size: 0.8125rem; font-weight: 700; }
.card-ref { font-size: 0.875rem; color: var(--ink-2); }
.card-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* A planned feature, labelled wherever it appears: HMRC's terms forbid presenting planned features as available. */
.soon {
  display: inline-flex; align-items: center; vertical-align: middle; white-space: nowrap;
  padding: 1px 9px; border: 1.5px dashed currentColor; border-radius: 999px;
  color: var(--ink-2); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0; line-height: 1.5;
}
h2 .soon, h3 .soon { margin-left: 6px; }
.flow-app .soon { color: var(--ink-soft); }
.card-title { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 780; letter-spacing: -0.018em; }
.card-rows { margin: 0; display: grid; gap: 12px; align-content: start; }
.card-rows > div {
  display: grid; grid-template-columns: 8.6em minmax(0, 1fr); gap: 4px 14px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.card-rows dt { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 650; color: var(--ink-2); line-height: 1.35; padding-top: 2px; }
.card-rows dt::before { content: ""; width: 12px; height: 12px; border-radius: 3px; flex: none; background: var(--m); box-shadow: inset 0 0 0 1.5px var(--e); }
.card-rows dd { margin: 0; }
.verdict { --vb: #ffe3ee; --ve: var(--hl-query-edge); --vt: var(--query); border-radius: 18px; padding: 14px 18px 16px; background: var(--vb); box-shadow: inset 5px 0 0 var(--ve); }
.verdict-good { --vb: #def5e7; --ve: var(--hl-paper-edge); --vt: var(--mint-ink); }
.verdict-info { --vb: #e3f0fc; --ve: var(--hl-terms-edge); --vt: var(--sky-ink); }
.verdict-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; }
.verdict-label { font-weight: 750; color: var(--vt); }
.verdict-amount { font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 820; letter-spacing: -0.025em; line-height: 1.15; }
.verdict-why { margin-top: 4px; font-size: 1rem; color: var(--ink-2); }
.card-link { justify-self: start; font-weight: 650; font-size: 1rem; }

.deck-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.deck-controls { display: flex; align-items: center; gap: 6px; }
.deck-controls[hidden] { display: none; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--ink); border: 1.5px solid var(--field); border-radius: 50%;
  cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { background: rgb(23 36 48 / 0.06); border-color: var(--ink); }
.icon-btn[hidden] { display: none; }
.icon-btn .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.deck-play .ic-play { display: none; }
.deck.stopped .deck-play .ic-play { display: block; }
.deck.stopped .deck-play .ic-pause { display: none; }
.deck-count { min-width: 4.6em; text-align: center; font-size: 0.9375rem; color: var(--ink-soft); }

.deck-dots { flex: 1 1 160px; display: flex; gap: 5px; }
.deck-dots span { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgb(23 36 48 / 0.14); overflow: hidden; }
.deck-dots i { position: absolute; inset: 0; background: var(--hl-bill-edge); transform-origin: 0 50%; transform: scaleX(0); }
.deck-dots .on i { transform: scaleX(1); }
.deck.playing .deck-dots .on i { animation: deck-fill var(--deck-ms, 7000ms) linear both; }
.deck.playing.paused .deck-dots .on i { animation-play-state: paused; }
@keyframes deck-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.deck-note { margin-top: 14px; font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- What it costs ---------- */
.stats { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  display: grid; gap: 12px; align-content: start;
  background: var(--tint); border-radius: 24px; padding: 26px 22px 24px;
}
.tint-peach { --tint: var(--peach); --accent: var(--peach-ink); }
.tint-blush { --tint: var(--blush); --accent: var(--blush-ink); }
.tint-sky { --tint: var(--sky); --accent: var(--sky-ink); }
.tint-lilac { --tint: var(--lilac); --accent: var(--lilac-ink); }
.stat-value { font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 820; letter-spacing: -0.035em; line-height: 1.05; }
.stat .stat-value { color: var(--accent); }
.stat .stat-value.long { font-size: clamp(1.8rem, 2.5vw, 2.3rem); }
.stat-src { font-size: 0.875rem; color: var(--ink-2); }
.stat-src a, .hint a { color: inherit; }

/* ---------- How it works: where it runs, what goes in, what comes out ---------- */
.flow {
  margin: 40px 0 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.35fr) 40px minmax(0, 1fr);
  align-items: center; gap: 12px;
}
.flow-col { background: #fff; border-radius: 24px; padding: 22px 22px 24px; align-self: stretch; }
.flow-title { font-weight: 750; font-size: 1.0625rem; }
.flow-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 1rem; }
.flow-list li { display: flex; align-items: center; gap: 10px; }
.flow-list .ic { width: 20px; height: 20px; color: var(--sky-ink); }
.flow-arrow { display: grid; place-items: center; color: var(--sky-ink); }
.flow-arrow .ic { width: 30px; height: 30px; stroke-width: 2; }
.flow-core {
  align-self: stretch;
  border: 2px dashed rgb(29 93 156 / 0.45); border-radius: 28px;
  padding: 16px; display: grid; gap: 12px; align-content: start;
}
.flow-env { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9375rem; color: var(--sky-ink); padding: 2px 6px; }
.flow-env .ic { width: 22px; height: 22px; }
.flow-app { background: var(--ink); color: #fff; border-radius: 20px; padding: 20px 22px 22px; }
.flow-app-name { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.flow-app-name .mark { width: 26px; height: 26px; }
.flow-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; font-size: 1rem; color: #dfe6ec; }
.flow-steps li { position: relative; padding-left: 22px; }
.flow-steps li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--hl-bill); }
.flow-steps li:nth-child(2)::before { background: var(--hl-terms); }
.flow-steps li:nth-child(3)::before { background: var(--hl-paper); }
.flow-steps li:nth-child(4)::before { background: var(--hl-query); }
.flow-steps li:nth-child(5)::before { background: #ffcd9b; }
.flow-badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.flow-badges span { background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 0.8125rem; font-weight: 650; color: var(--sky-ink); }

.steps {
  list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.steps li { counter-increment: step; position: relative; background: #fff; border-radius: 24px; padding: 26px 24px 28px; }
.steps li::after {
  content: counter(step); position: absolute; top: 16px; right: 22px;
  font-size: 3.25rem; font-weight: 820; line-height: 1; color: rgb(29 93 156 / 0.16);
}
.step-icon, .b-icon, .az-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 16px; background: var(--m); box-shadow: inset 0 0 0 1.5px var(--e); color: var(--ink);
}
.step-icon .ic, .b-icon .ic, .az-icon .ic { width: 26px; height: 26px; }
.step-1, .b-yellow { --m: var(--hl-bill); --e: var(--hl-bill-edge); }
.step-2, .b-blue { --m: var(--hl-terms); --e: var(--hl-terms-edge); }
.step-3, .b-green { --m: var(--hl-paper); --e: var(--hl-paper-edge); }
.step-4 { --m: var(--hl-query); --e: var(--hl-query-edge); }
.b-pink { --m: var(--hl-query); --e: var(--hl-query-edge); }
.b-lilac { --m: #d8cbff; --e: #7c5ce0; }
.b-peach { --m: #ffcd9b; --e: #d07a1f; }
.steps p, .principles p, .benefit p, .azure p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Worked examples ---------- */
.explorer { margin-top: 32px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs[hidden] { display: none; }
.tab {
  appearance: none; flex: none; margin: 0; cursor: pointer;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; color: var(--ink-2); border: 1.5px solid var(--line-2);
  font: inherit; font-size: 1rem; font-weight: 650; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tab:hover { color: var(--ink); border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--hl-bill); border-color: var(--hl-bill-edge); color: var(--ink); }

.scenario {
  margin-top: 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px clamp(28px, 4vw, 56px); align-items: start;
}
.scenario + .scenario { margin-top: 48px; padding-top: 44px; border-top: 1px solid var(--line); }
.js .scenario + .scenario { margin-top: 28px; padding-top: 0; border-top: 0; }
.scenario[hidden] { display: none; }
.scenario-title { grid-column: 1 / -1; font-size: clamp(1.375rem, 2.3vw, 1.75rem); letter-spacing: -0.018em; }

.paper {
  margin: 0;
  background: var(--paper-bg); border-radius: 24px;
  padding: clamp(12px, 2vw, 18px);
  display: grid; gap: 10px; align-content: start;
  font-size: 0.96875rem; line-height: 1.45;
}
.sheet {
  background: #fff; color: var(--ink);
  border-radius: 14px; padding: 12px 15px 14px;
  box-shadow: 0 1px 2px rgb(23 36 48 / 0.1);
}
.sheet > p + p { margin-top: 4px; }
.sheet .lines + .quote, .sheet > p + .quote { margin-top: 10px; }
.sheet-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px;
  margin-bottom: 8px; font-size: 0.8125rem; color: var(--ink-2);
}
.sheet-kind { font-weight: 700; color: var(--ink); }
.lines { width: 100%; border-collapse: collapse; }
.lines th {
  text-align: left; font-weight: 500; font-size: 0.75rem; color: var(--ink-2);
  padding: 0 0 5px; border-bottom: 1px solid var(--line);
}
.lines td { padding: 8px 0 0; vertical-align: top; }
.lines .num { text-align: right; padding-left: 12px; white-space: nowrap; }
.lines .total td { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; }

.workings h4 { font-size: 0.9375rem; font-weight: 700; color: var(--ink-2); }
.workings ol { list-style: none; counter-reset: w; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.workings li { counter-increment: w; position: relative; padding-left: 42px; min-height: 30px; }
.workings li::before {
  content: counter(w); position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 30px; height: 30px;
  background: var(--ink); color: #fff; border-radius: 50%;
  font-weight: 800; font-size: 0.875rem;
}
.result { margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.result > div { border-radius: 16px; padding: 12px 14px 14px; }
.r-billed { background: #fff5c4; }
.r-owed { background: #dbf3e5; }
.r-diff { background: #ffe1ec; }
.result dt { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.3; }
.result dd { margin: 4px 0 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 760; letter-spacing: -0.01em; white-space: nowrap; }
.r-diff dt { color: #7a1440; }
.r-diff dd { color: var(--query); }
.workings .note { margin-top: 12px; }
.split-title { margin: 14px 0 0; font-size: 0.875rem; font-weight: 650; color: var(--ink-2); }
.query-split { margin: 6px 0 0; display: grid; gap: 6px; }
.query-split > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 14px; background: #fff0f5; border-left: 3px solid var(--query); border-radius: 0 12px 12px 0; }
.query-split dt { font-size: 0.875rem; color: var(--ink-2); }
.query-split dd { margin: 0; font-weight: 700; white-space: nowrap; color: var(--query); }
.workings details { margin-top: 12px; font-size: 0.9375rem; }
.workings summary { cursor: pointer; font-weight: 650; }
.workings details p { margin: 8px 0 0; }

/* The checks every bill gets: four tiles, each with one highlighter. */
.everyday { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.everyday li { background: var(--paper-bg); border-radius: 22px; padding: 22px 20px 24px; }
.everyday h3 { margin-top: 14px; font-size: 1.0625rem; }
.everyday p { margin-top: 6px; font-size: 1rem; color: var(--ink-2); }
.ev-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--m); box-shadow: inset 0 0 0 1.5px var(--e); }
.ev-icon .ic { width: 24px; height: 24px; }
.everyday li:nth-child(1) { --m: var(--hl-terms); --e: var(--hl-terms-edge); }
.everyday li:nth-child(2) { --m: var(--hl-paper); --e: var(--hl-paper-edge); }
.everyday li:nth-child(3) { --m: var(--hl-bill); --e: var(--hl-bill-edge); }
.everyday li:nth-child(4) { --m: var(--hl-query); --e: var(--hl-query-edge); }
.sub-title { margin-top: 56px; font-size: clamp(1.375rem, 2.3vw, 1.75rem); letter-spacing: -0.018em; }
.more-link { margin-top: 36px; font-weight: 650; }
.slab-ink .more-link a { color: #fff; }

/* ---------- Lists of capabilities ---------- */
.signals { list-style: none; margin: 0; padding: 0; }
.signals li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sig-line, var(--line)); }
.signals li:first-child { padding-top: 0; }
.sig-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sig-bg, var(--paper-bg)); color: var(--sig-fg, var(--ink)); }
.sig-icon .ic { width: 22px; height: 22px; }
.signals h3 { font-size: 1.0625rem; }
.signals p { margin-top: 4px; font-size: 1rem; color: var(--sig-muted, var(--ink-2)); }
.slab-ink .signals { --sig-bg: rgb(255 179 209 / 0.16); --sig-fg: var(--hl-query); --sig-line: rgb(255 255 255 / 0.12); --sig-muted: var(--ink-soft); }
.slab-lilac .signals { --sig-bg: #fff; --sig-fg: var(--lilac-ink); --sig-line: rgb(90 61 181 / 0.18); }
.rules { margin-top: 36px; background: #fff; border-radius: 24px; padding: clamp(18px, 2.6vw, 28px); overflow-x: auto; }
.rules-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.rules-table caption { text-align: left; font-weight: 750; font-size: 1.0625rem; padding-bottom: 12px; }
.rules-table th, .rules-table td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-top: 1px solid var(--line); }
.rules-table thead th { border-top: 0; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); padding-top: 0; }
.rules-table tbody th { font-weight: 700; white-space: nowrap; }
.rules-table td { color: var(--ink-2); }
.rules .note { margin-top: 14px; }
.signals-wide { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.signals-wide li, .signals-wide li:first-child { padding: 16px 0 0; border-bottom: 0; border-top: 1px solid var(--sig-line, var(--line)); }

/* ---------- Fraud ---------- */
.slab-ink .paper { background: rgb(255 255 255 / 0.08); }
.finding {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  background: #ffe3ee; color: var(--ink); border-radius: 14px; padding: 12px 14px;
  font-size: 0.96875rem;
}
.finding-k { background: var(--query); color: #fff; font-weight: 750; font-size: 0.875rem; border-radius: 999px; padding: 2px 12px; margin-top: 1px; }
.fraud-example figcaption { font-size: 0.8125rem; color: var(--ink-soft); }
.mini-stats, .paid-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(20px, 3vw, 40px); }
.mini-stats { margin-top: 30px; }
.mini { display: grid; gap: 6px; align-content: start; font-size: 1rem; }
.mini .stat-value { font-size: clamp(2rem, 3vw, 2.5rem); }
.slab-ink .mini .stat-value { color: var(--hl-query); }
.slab-ink .stat-src { color: var(--ink-soft); }
.mini-stats > .stat-src { grid-column: 1 / -1; }
.fraud-side { display: grid; gap: 32px; align-content: start; }
.fraud-side .mini-stats { margin-top: 0; }

/* ---------- Records ---------- */
.casefile {
  margin: 0 0 20px; background: #fff; border-radius: 24px;
  padding: clamp(18px, 2.6vw, 26px); font-size: 1rem; line-height: 1.5;
  box-shadow: 0 10px 0 -5px #f7f5ff, 0 10px 0 -4px rgb(90 61 181 / 0.18), 0 20px 0 -10px #f7f5ff, 0 20px 0 -9px rgb(90 61 181 / 0.18);
}
.casefile-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 0.875rem; color: var(--ink-2); }
.casefile ul { list-style: none; margin: 14px 0 0 6px; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.casefile li { position: relative; }
.casefile li::before { content: ""; position: absolute; left: -18px; top: 0.78em; width: 12px; border-top: 2px solid var(--line); }
.doc-kind { font-weight: 700; margin-right: 6px; }
.decision { margin-top: 16px; padding: 12px 14px; background: #dbf3e5; border-radius: 14px; display: grid; gap: 4px; }
.decision p + p { color: var(--ink-2); font-size: 0.9375rem; }
.keep { margin-top: 16px; font-weight: 650; }
.casefile figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--ink-2); }

/* ---------- Savings ---------- */
.calc {
  margin-top: 40px;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px clamp(28px, 4vw, 56px); align-items: start;
}
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: 1rem; line-height: 1.35; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: end; }
.input { display: flex; align-items: center; gap: 2px; background: #fff; border: 1.5px solid var(--field); border-radius: 12px; }
.input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.input span { color: var(--ink-2); padding-inline: 12px 0; font-size: 1.0625rem; }
.input input + span { padding-inline: 0 12px; }
.input input {
  flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 1.125rem; color: var(--ink); padding: 10px 12px; min-height: 48px;
}
.input span + input { padding-left: 4px; }
fieldset:disabled .input { background: #f6f8f7; }
.input select {
  flex: 1; min-width: 0; width: 100%; min-height: 48px; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 1.0625rem; color: var(--ink); padding: 10px 12px; cursor: pointer;
}
.hint { font-size: 0.875rem; color: var(--ink-2); }

.outcome { background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 30px); }
.outcome h3 { font-size: 1.25rem; }
.outcome dl { margin: 10px 0 0; }
.outcome .row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.outcome dt { font-weight: 650; }
.outcome dd { margin: 0; }
.outcome .v { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; text-align: right; white-space: nowrap; }
.outcome .work { grid-column: 1 / -1; font-size: 0.875rem; color: var(--ink-2); }
.outcome .total { border-bottom: 0; padding-bottom: 6px; }
.outcome .total dt { font-size: 1.125rem; }
.outcome .total .v { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.outcome .note { margin-top: 10px; }

.model {
  margin-top: 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px clamp(28px, 4vw, 56px); align-items: start;
  background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 34px);
}
.model-copy { display: grid; gap: 14px; }
.model-copy h3 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); letter-spacing: -0.015em; }
.model-figure { margin: 0; display: grid; gap: 16px; }
.fig-title { font-weight: 700; font-size: 1rem; }
.bars { display: grid; gap: 14px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.bar-label strong { color: var(--ink); }
.bar-track { margin-top: 6px; height: 22px; }
.bar { height: 100%; border-radius: 0 6px 6px 0; }
.bar-them { width: 100%; background: #c3ccd4; }
.bar-ours { width: 0.91%; min-width: 6px; background: var(--hl-paper); box-shadow: inset 0 0 0 1.5px var(--hl-paper-edge); }
/* Subgrid keeps the two figures level when one label wraps. */
.model-facts { margin: 4px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 0 16px; }
.model-facts > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; padding-top: 12px; border-top: 2px solid var(--ink); }
.model-facts dt { font-size: 0.9375rem; line-height: 1.35; align-self: end; }
.model-facts dd { margin: 0; }
.model-facts .v { margin-top: 6px; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--mint-ink); }
.model-facts .vs { margin-top: 2px; font-size: 0.875rem; color: var(--ink-2); }

/* ---------- What changes ---------- */
.benefits { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 52px); }

/* ---------- Getting paid ---------- */
.paid-steps { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 20px; }
.paid-steps li { counter-increment: p; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 16px; }
.paid-steps li::before {
  content: counter(p); grid-row: span 2;
  display: grid; place-items: center; width: 38px; height: 38px;
  background: #ffcd9b; box-shadow: inset 0 0 0 1.5px #d07a1f; border-radius: 50%; font-weight: 800;
}
.paid-steps p { color: var(--ink-2); }
.mail { margin: 0; background: #fff; border-radius: 24px; overflow: hidden; font-size: 0.96875rem; line-height: 1.5; box-shadow: 0 30px 60px -36px rgb(154 77 0 / 0.55); }
.mail-bar { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 20px; font-size: 0.875rem; font-weight: 650; }
.mail-bar .ic { width: 18px; height: 18px; }
.mail-head { padding: 12px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.mail-k { display: inline-block; min-width: 4.6em; color: var(--ink-2); font-size: 0.875rem; }
.mail-body { padding: 14px 20px 16px; display: grid; gap: 10px; }
.attach { display: flex; flex-wrap: wrap; gap: 8px; }
.attach span { background: var(--peach); border-radius: 8px; padding: 3px 10px; font-size: 0.8125rem; font-weight: 650; }
.mail-next { padding: 10px 12px; border-radius: 12px; background: #fff5c4; box-shadow: inset 0 0 0 1px #e8cf6b; font-size: 0.9375rem; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 20px 18px; }
.fake-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 650; font-size: 0.9375rem; }
.fake-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.mail figcaption { padding: 10px 20px 14px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-2); }
.paid-facts { margin-top: 48px; padding-top: 24px; border-top: 2px solid rgb(154 77 0 / 0.25); }
.slab-peach .mini .stat-value { color: var(--peach-ink); }

/* ---------- Trust and Microsoft ---------- */
.principles { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.principles > div { padding-top: 16px; border-top: 2px solid var(--ink); }
.principles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
.principles-lead { margin-top: 48px; max-width: 34em; font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 750; letter-spacing: -0.012em; line-height: 1.3; }
.principles-lead + .principles-3 { margin-top: 24px; }
.principles-3 p { margin-top: 8px; color: var(--ink-2); }
.steps-paper li { background: var(--paper-bg); }

/* ---------- Charts: one measure, one axis, every value labelled ---------- */
.chart { margin: 0; display: grid; gap: 10px; align-content: start; }
.chart-title { font-weight: 700; font-size: 1rem; }
.chart svg { display: block; width: 100%; max-width: 540px; height: auto; overflow: visible; font-family: inherit; }
.chart .c-bar { fill: var(--c-fill, #ffc9de); stroke: var(--c-edge, var(--hl-query-edge)); stroke-width: 1.5; }
.chart .c-bar.c-now { fill: var(--c-now, var(--hl-query-edge)); }
.chart .c-axis { stroke: var(--c-axis, var(--line-2)); stroke-width: 1.5; }
.chart .c-label { fill: var(--c-text-2, var(--ink-2)); font-size: 14px; }
.chart .c-value { fill: var(--c-text, var(--ink)); font-size: 15px; font-weight: 750; }
.chart-src { font-size: 0.875rem; color: var(--ink-2); }
.chart-src a { color: inherit; }
.chart details { font-size: 0.875rem; color: var(--ink-2); }
.chart summary { cursor: pointer; font-weight: 650; }
.chart table { margin-top: 8px; border-collapse: collapse; }
.chart th, .chart td { text-align: left; padding: 3px 16px 3px 0; font-weight: 500; }
.chart td { text-align: right; }
.slab-ink .chart { --c-fill: rgb(255 179 209 / 0.28); --c-edge: var(--hl-query); --c-now: var(--hl-query); --c-axis: rgb(255 255 255 / 0.35); --c-text: #fff; --c-text-2: var(--ink-soft); }
.slab-ink .chart-src, .slab-ink .chart details { color: var(--ink-soft); }
.slab-peach .chart { --c-fill: #ffd9b3; --c-edge: #d07a1f; --c-now: #d07a1f; }
.chart-panel { background: #fff; border-radius: 24px; padding: clamp(18px, 2.4vw, 26px); }
.section .chart-panel { background: var(--paper-bg); }
.slab-ink .chart-panel { background: rgb(255 255 255 / 0.06); }

/* Where each figure comes from, so UK, European and worldwide figures never blur together. */
.stat-where { font-size: 0.875rem; font-weight: 700; color: var(--accent, var(--ink-2)); }
.slab-peach .mini .stat-where { color: var(--peach-ink); }
.stats-2 { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cost-chart .stats-2 { grid-template-columns: minmax(0, 1fr); }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cost-chart { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px clamp(28px, 4vw, 56px); align-items: center; }
.cost-copy { display: grid; gap: 12px; }
.cost-copy h3 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); letter-spacing: -0.015em; }
.cost-copy p { color: var(--ink-2); }
.cost-copy a { color: inherit; }
.rules-news { margin-top: 44px; }

/* Side-by-side bars: one measure per group, every bar labelled with its value. */
.compare { margin: 0; display: grid; gap: 18px; align-content: start; }
.cmp-group { display: grid; gap: 8px; }
.cmp-k { font-weight: 700; font-size: 0.9375rem; }
.cmp-row { display: grid; grid-template-columns: minmax(5.5em, 10em) minmax(0, 1fr) 6.6em; align-items: center; gap: 12px; font-size: 0.9375rem; }
.cmp-label { color: var(--cmp-label, var(--ink-2)); line-height: 1.3; }
.cmp-track { height: 16px; }
.cmp-bar { display: block; height: 100%; border-radius: 0 5px 5px 0; background: var(--cmp-base, #c3ccd4); }
.cmp-bar.cmp-hi { background: var(--cmp-hi, #ffc9de); box-shadow: inset 0 0 0 1.5px var(--cmp-hi-edge, var(--hl-query-edge)); }
.cmp-row strong { white-space: nowrap; text-align: right; }
.compare figcaption { font-size: 0.875rem; color: var(--cmp-cap, var(--ink-2)); }
.compare figcaption a { color: inherit; }
.slab-ink .compare { --cmp-base: rgb(255 255 255 / 0.3); --cmp-label: var(--ink-soft); --cmp-cap: var(--ink-soft); --cmp-hi: var(--hl-paper); --cmp-hi-edge: var(--hl-paper-edge); }
.w-15 { width: 15%; } .w-43 { width: 43%; } .w-47 { width: 47%; } .w-56 { width: 56%; } .w-64 { width: 64%; } .w-100 { width: 100%; }

/* ---------- Topic pages ---------- */
.topic-hero { margin-top: 4px; padding-block: clamp(44px, 6vw, 84px); }
.topic-hero .wrap { display: grid; gap: 20px; }
.topic-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 18em; }
.topic-hero .lede { margin-top: 0; color: var(--ink-soft); max-width: 40em; }
.topic-hero .actions { margin-top: 10px; }
.topic-hero .text-link { color: var(--ink); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.9375rem; color: var(--ink-soft); }
.crumb a { color: var(--ink); }
.slab-ink .soon { color: var(--ink-soft); }
.slab-ink .bill-card .soon { color: var(--ink-2); }
.topic-body > * + * { margin-top: 18px; }
.prose { max-width: 46em; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.azure-title { margin-top: 64px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -0.015em; }
.azure { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.az-item { background: var(--sky); border-radius: 24px; padding: 24px; }
.az-item .az-icon { --m: #fff; --e: rgb(29 93 156 / 0.25); color: var(--sky-ink); }
.az-now { background: var(--mint); }
.az-now .az-icon { --e: rgb(26 106 65 / 0.25); color: var(--mint-ink); }

/* ---------- Pilot ---------- */
.pilot-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
.pilot-copy h2 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
.pilot-copy > p { margin-top: 16px; font-size: 1.1875rem; max-width: 30em; }
.next-steps { list-style: none; counter-reset: n; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.next-steps li { counter-increment: n; position: relative; min-height: 36px; padding: 5px 0 0 52px; line-height: 1.5; }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 0.9375rem; }
.pilot-alt { margin-top: 30px; }

.pilot-form {
  position: relative;
  background: #fff; border-radius: 28px; padding: clamp(22px, 3vw, 34px);
  display: grid; gap: 16px;
  box-shadow: 0 30px 60px -32px rgb(23 36 48 / 0.5);
}
.pilot-form h3 { font-size: 1.375rem; }
.pf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pf-field { display: grid; gap: 6px; align-content: start; }
.pf-field label { font-weight: 650; font-size: 1rem; line-height: 1.35; }
.opt { font-weight: 500; color: var(--ink-2); }
.pf-field input, .pf-field select, .pf-field textarea {
  width: 100%; min-height: 50px; margin: 0;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--field); border-radius: 12px; padding: 11px 14px;
}
.pf-field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.pf-field textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.pf-field input:focus-visible, .pf-field select:focus-visible, .pf-field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); border-radius: 12px; }
.pf-field [aria-invalid="true"] { border-color: var(--query); box-shadow: 0 0 0 1px var(--query); }
.pf-error { color: var(--query); font-size: 0.9375rem; font-weight: 650; }
.pf-error[hidden] { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pf-submit { justify-self: start; min-width: 12em; }
.pf-submit[disabled] { opacity: 0.7; cursor: progress; }
.pf-note { font-size: 0.875rem; color: var(--ink-2); }
.pf-status:empty { display: none; }
.pf-status { border-radius: 14px; padding: 12px 14px; background: #ffe1ec; color: var(--ink); font-size: 0.96875rem; }
.pf-done { display: grid; gap: 12px; align-content: start; }
.pf-done .done-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--hl-paper); box-shadow: inset 0 0 0 1.5px var(--hl-paper-edge); }
.pf-done .done-mark .ic { width: 28px; height: 28px; }
.pf-done h3:focus { outline: none; }

/* ---------- Footer ---------- */
.foot { margin-bottom: var(--gutter); padding-block: clamp(44px, 5vw, 64px); font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1.2fr); gap: 28px clamp(28px, 4vw, 56px); align-items: start; }
.foot-head { font-weight: 750; color: #fff; margin-bottom: 4px; }
.foot-brand { display: grid; gap: 10px; }
.foot-brand p, .foot-legal p { color: var(--ink-soft); }
.foot-legal { display: grid; gap: 6px; font-size: 0.875rem; }
.foot-legal strong { color: #fff; }
.foot-nav { display: grid; gap: 8px; font-weight: 600; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }

/* ---------- Pages: policies and form replies ---------- */
.page { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.doc { max-width: 46em; }
.doc h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.doc .lede { color: var(--ink-2); }
.doc-nav { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-nav a { text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--paper-bg); font-weight: 600; font-size: 0.9375rem; }
.doc-nav a:hover { background: var(--line); }
.doc section { margin-top: 56px; }
.doc h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.doc h3 { margin-top: 28px; font-size: 1.125rem; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; display: grid; gap: 8px; }
.doc .sources-list { font-size: 1rem; }
.doc a { overflow-wrap: anywhere; }
.updated { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }

.notice { max-width: 36em; margin-inline: auto; text-align: left; display: grid; gap: 16px; }
.notice .done-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--hl-paper); box-shadow: inset 0 0 0 1.5px var(--hl-paper-edge); }
.notice .done-mark.warn { background: var(--hl-query); box-shadow: inset 0 0 0 1.5px var(--hl-query-edge); }
.notice .done-mark .ic { width: 30px; height: 30px; }
.notice h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.notice .actions { margin-top: 12px; }
.notfound-links { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-weight: 600; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .everyday { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --head-h: 64px; }
  /* Without script the sections stay one swipe away in a row of links. */
  .nav {
    order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .tabs {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    padding-right: 36px;
  }
  .head-cta { margin-left: auto; }
  .js .nav { display: none; }
  .js .menu-btn { display: inline-flex; }
  .js .top.open .nav {
    display: grid; position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; width: auto;
    padding: 10px; gap: 2px; overflow: visible;
    background: #fff; border-radius: 22px;
    box-shadow: 0 24px 48px -20px rgb(23 36 48 / 0.45), 0 0 0 1px rgb(23 36 48 / 0.06);
    -webkit-mask-image: none; mask-image: none;
  }
  .js .top.open .nav a { padding: 13px 16px; border-radius: 14px; font-size: 1.0625rem; }
  .js .top.open .nav .nav-cta { display: block; margin-top: 6px; background: var(--sun); box-shadow: inset 0 0 0 1.5px var(--hl-bill-edge); text-align: center; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 40rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-arrow .ic { transform: rotate(90deg); }
  .pilot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand, .foot-legal { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .scenario, .split, .calc, .model { grid-template-columns: minmax(0, 1fr); }
  .benefits, .azure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles-3, .signals-wide, .cost-chart { grid-template-columns: minmax(0, 1fr); }
  .signals-wide { gap: 16px; }
}
@media (max-width: 640px) {
  :root { --gutter: 8px; --slab-r: 24px; }
  body { font-size: 1.0625rem; }
  .lede, .section-lede, .pilot-copy > p { font-size: 1.0625rem; }
  .brand { font-size: 1.1875rem; }
  .head-cta { padding: 0 14px; font-size: 0.9375rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { min-height: 40px; padding: 0 8px; }
  .bill-card { font-size: 1rem; }
  .card-rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .principles, .benefits, .azure, .stats, .everyday { grid-template-columns: minmax(0, 1fr); }
  .rules-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rules-table tr { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
  .rules-table th, .rules-table td { display: block; padding: 0; border-top: 0; }
  .rules-table td:last-child::before { content: "Counted from: "; }
  .result { grid-template-columns: minmax(0, 1fr); }
  .result > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; }
  .result dd { margin: 0; font-size: 1.125rem; }
  .field-pair, .pf-row { grid-template-columns: minmax(0, 1fr); }
  .mini-stats, .paid-facts { grid-template-columns: minmax(0, 1fr); }
  .model-facts { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 16px; }
  .model-facts > div { grid-row: auto; grid-template-rows: none; }
  .lines th, .lines td { font-size: 0.875rem; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-submit { justify-self: stretch; }
}
@media (max-width: 640px) {
  .top-inner { gap: 8px 10px; }
  .js .menu-btn { width: 44px; padding: 0; justify-content: center; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 370px) {
  .head-cta { display: none; }
  .js .menu-btn { margin-left: auto; }
  .nav { margin-left: 0; }
}

/* ---------- The look's switch and the way back up ---------- */
/* Both need script: theme.js reveals the switch, and app.js shows the way back up once the reader is well down. */
.theme-btn, .theme-row { display: none; }
.theme-ready .theme-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; padding: 0;
  background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); border-radius: 50%;
  cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.theme-btn:hover { background: var(--paper-bg); border-color: var(--ink); }
.theme-btn .ic { width: 20px; height: 20px; }
.theme-btn .ic-sun, [data-theme="neon"] .theme-btn .ic-moon { display: none; }
[data-theme="neon"] .theme-btn .ic-sun { display: block; }
/* On smaller screens the switch is a row in the menu. */
.theme-row {
  align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 16px; border: 0; border-radius: 14px;
  background: transparent; color: inherit; font: inherit; font-size: 1.0625rem; font-weight: 600;
  text-align: left; cursor: pointer;
}
.theme-row:hover { background: var(--paper-bg); }
.switch {
  position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px;
  background: var(--paper-bg); box-shadow: inset 0 0 0 1.5px var(--field); transition: background-color 0.15s ease;
}
.switch::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink-2); transition: transform 0.15s ease;
}
.theme-row[aria-pressed="true"] .switch { background: var(--ink); box-shadow: none; }
.theme-row[aria-pressed="true"] .switch::after { background: #fff; transform: translateX(18px); }
@media (max-width: 960px) {
  .theme-ready .theme-btn { display: none; }
  .theme-ready.js .top.open .nav .theme-row { display: flex; }
}

.to-top {
  position: fixed; z-index: 30;
  right: 16px; right: max(16px, env(safe-area-inset-right));
  bottom: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: 0 12px 28px -12px rgb(23 36 48 / 0.7);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.to-top:hover { background: #263a4c; }
.to-top .ic { width: 22px; height: 22px; stroke-width: 2.2; }
/* It floats over light and dark sections alike, so its focus ring has a light gap inside a dark ring. */
.to-top:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }

/* ---------- Motion, contrast modes and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .deck-dots i { animation: none !important; }
}
/* High-contrast mode drops fills and shadows: keep marks, the chosen tab and the current section visible. */
@media (forced-colors: active) {
  mark.q { outline: 1.5px solid CanvasText; outline-offset: -1px; }
  mark.q.bad { outline-style: dashed; }
  .tab[aria-selected="true"], .nav a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 3px; }
  .bar, .deck-dots i { background: CanvasText; }
  .slab, .stat, .bill-card, .verdict, .sheet, .result > div, .query-split > div { border: 1px solid CanvasText; }
  .to-top, .switch { border: 1px solid CanvasText; }
  .theme-row[aria-pressed="true"] .switch::after { background: CanvasText; }
}
@media print {
  .top, .deck-controls, .deck-dots, .menu-btn, .pilot-form, .to-top { display: none !important; }
  .hero, .topic-hero { border: 0; box-shadow: none !important; }
  .slab { background: none !important; color: #000; margin: 0; padding-block: 24px; }
  .scenario[hidden] { display: grid !important; }
  .reveal .sweep mark.q { background-size: 100% 100%; box-shadow: inset 0 0 0 1.5px var(--e); }
}

/* ---------- Type in both looks ---------- */
h1, h2, h3, h4, .brand, .stat-value, .verdict-amount, .card-title, .outcome .v, .model-facts .v, .result dd,
.principles-lead, .flow-app-name { font-family: "Sora", "IBM Plex Sans", system-ui, sans-serif; }
.brand { font-weight: 700; letter-spacing: -0.03em; }
.stat-value, .verdict-amount, .outcome .v, .model-facts .v { font-weight: 700; letter-spacing: -0.04em; }

/* ========== The dark (neon) look: each component on the deep ink canvas ==========
   Panels are dark with a hairline edge; what you can do is cyan; a highlighter always carries dark text; documents
   (bills, agreements, the supplier's email) stay white. The hero's ring is the one bold place. Every rule below is
   scoped with :where([data-theme="neon"]), which adds no specificity, so each wins where it did when written. */

/* A faint ledger grid under a soft cyan halo. */
:where([data-theme="neon"]) body {
  background-image:
    radial-gradient(1100px 620px at 72% -120px, rgb(46 230 255 / 0.08), transparent 70%),
    linear-gradient(rgb(122 150 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(122 150 255 / 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

:where([data-theme="neon"]) :focus-visible,
:where([data-theme="neon"]) .slab-ink :focus-visible,
:where([data-theme="neon"]) .slab-ink .bill-card :focus-visible { outline-color: var(--cyan); }
:where([data-theme="neon"]) .sheet :focus-visible,
:where([data-theme="neon"]) .slab-ink .sheet :focus-visible,
:where([data-theme="neon"]) .mail :focus-visible { outline-color: var(--paper-ink); }
:where([data-theme="neon"]) .skip { background: var(--cyan); color: var(--paper-ink); }

/* Header */
:where([data-theme="neon"]) .top { background: rgb(7 12 27 / 0.82); }
:where([data-theme="neon"]) .top.is-stuck { box-shadow: 0 1px 0 rgb(140 165 255 / 0.12), 0 12px 30px -18px rgb(0 0 0 / 0.8); }
:where([data-theme="neon"]) .mark { filter: drop-shadow(0 0 6px rgb(46 230 255 / 0.55)); }
:where([data-theme="neon"]) .mark rect { fill: var(--surface); stroke: var(--cyan); }
:where([data-theme="neon"]) .mark path { stroke: var(--cyan); }
:where([data-theme="neon"]) .nav a:hover { background: var(--paper-bg); }
:where([data-theme="neon"]) .nav a[aria-current="true"], :where([data-theme="neon"]) .nav a[aria-current="page"] {
  background: rgb(46 230 255 / 0.12); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(46 230 255 / 0.5);
}
:where([data-theme="neon"]) .menu-btn { background: transparent; color: var(--ink); border-color: var(--line-2); }

/* Buttons: cyan to act, yellow to ask for a review */
:where([data-theme="neon"]) .btn { background: var(--cyan); color: var(--paper-ink); box-shadow: 0 0 28px -8px rgb(46 230 255 / 0.7); }
:where([data-theme="neon"]) .btn:hover { background: #8ff3ff; }
:where([data-theme="neon"]) .btn-sun { background: var(--sun); color: var(--paper-ink); box-shadow: inset 0 0 0 1.5px var(--hl-bill-edge), 0 0 28px -8px rgb(255 216 74 / 0.7); }
:where([data-theme="neon"]) .btn-sun:hover { background: #ffe57a; }

/* Sections: the dark ones a step lighter than the canvas, the tinted ones a faint wash with a hairline of their hue */
:where([data-theme="neon"]) .slab-ink { background: var(--night); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
/* The top sections: dark panels, the home page's inside the ring. Secondary text is a step brighter for contrast. */
:where([data-theme="neon"]) .hero, :where([data-theme="neon"]) .topic-hero { --ink-soft: #c6cfec; color: var(--ink); background: var(--night); box-shadow: inset 0 0 0 1px var(--line); }
:where([data-theme="neon"]) .hero {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--night), var(--night)) padding-box, var(--ring) border-box;
  box-shadow: 0 0 70px -24px rgb(46 230 255 / 0.5);
}
:where([data-theme="neon"]) .hero .text-link,
:where([data-theme="neon"]) .topic-hero .text-link,
:where([data-theme="neon"]) .crumb a { color: #fff; }
:where([data-theme="neon"]) .hero-points .ic { color: var(--hl-bill); }
:where([data-theme="neon"]) .slab-sky { box-shadow: inset 0 0 0 1px rgb(63 168 255 / 0.22); }
:where([data-theme="neon"]) .slab-lilac { box-shadow: inset 0 0 0 1px rgb(179 148 255 / 0.24); }
:where([data-theme="neon"]) .slab-mint { box-shadow: inset 0 0 0 1px rgb(59 242 160 / 0.2); }
:where([data-theme="neon"]) .slab-peach { box-shadow: inset 0 0 0 1px rgb(255 170 90 / 0.22); }
:where([data-theme="neon"]) .slab-sun { background: rgb(255 216 74 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 216 74 / 0.3); }

/* Evidence marks keep their highlighter and carry dark text */
:where([data-theme="neon"]) mark.q { color: var(--paper-ink); }

/* The examples deck */
:where([data-theme="neon"]) .pillar { color: #fff; border-color: rgb(255 255 255 / 0.32); }
:where([data-theme="neon"]) .pillar:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); }
:where([data-theme="neon"]) .pillar[aria-current="true"] { border-color: var(--pt); color: var(--paper-ink); }
:where([data-theme="neon"]) .p-over { --pi: #ffd84a; --pb: rgb(255 216 74 / 0.12); }
:where([data-theme="neon"]) .p-fraud { --pb: rgb(255 92 138 / 0.14); }
:where([data-theme="neon"]) .p-cash { --pb: rgb(59 242 160 / 0.12); }
:where([data-theme="neon"]) .p-late { --pb: rgb(63 168 255 / 0.12); }
:where([data-theme="neon"]) .deck-track:focus-visible { outline-color: var(--cyan); }
:where([data-theme="neon"]) .icon-btn { color: #fff; border-color: rgb(255 255 255 / 0.38); }
:where([data-theme="neon"]) .icon-btn:hover { background: rgb(255 255 255 / 0.12); border-color: #fff; }
:where([data-theme="neon"]) .deck-dots span { background: rgb(255 255 255 / 0.2); }
:where([data-theme="neon"]) .deck-dots i { background: var(--hl-bill); }
:where([data-theme="neon"]) .bill-card { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
:where([data-theme="neon"]) .card-rows > div { border-top-color: var(--line); }
:where([data-theme="neon"]) .verdict { --vb: rgb(255 92 138 / 0.1); --vt: var(--blush-ink); }
:where([data-theme="neon"]) .verdict-good { --vb: rgb(59 242 160 / 0.08); --vt: var(--mint-ink); }
:where([data-theme="neon"]) .verdict-info { --vb: rgb(63 168 255 / 0.09); --vt: var(--sky-ink); }

/* What it costs: tinted cards with a hairline and a soft glow on each figure */
:where([data-theme="neon"]) .stat { box-shadow: inset 0 0 0 1px var(--stat-edge, var(--line)); }
:where([data-theme="neon"]) .tint-peach { --stat-edge: rgb(255 170 90 / 0.3); }
:where([data-theme="neon"]) .tint-blush { --stat-edge: rgb(255 92 138 / 0.3); }
:where([data-theme="neon"]) .tint-sky { --stat-edge: rgb(63 168 255 / 0.3); }
:where([data-theme="neon"]) .tint-lilac { --stat-edge: rgb(179 148 255 / 0.3); }
:where([data-theme="neon"]) .stat .stat-value, :where([data-theme="neon"]) .mini .stat-value { text-shadow: 0 0 22px color-mix(in srgb, currentColor 45%, transparent); }

/* How it works */
:where([data-theme="neon"]) .flow-col,
:where([data-theme="neon"]) .steps li,
:where([data-theme="neon"]) .everyday li,
:where([data-theme="neon"]) .rules,
:where([data-theme="neon"]) .outcome,
:where([data-theme="neon"]) .model,
:where([data-theme="neon"]) .chart-panel,
:where([data-theme="neon"]) .section .chart-panel,
:where([data-theme="neon"]) .steps-paper li {
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
:where([data-theme="neon"]) .flow-core { border-color: rgb(63 168 255 / 0.45); }
:where([data-theme="neon"]) .flow-app { background: var(--night); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(46 230 255 / 0.35), 0 0 30px -10px rgb(46 230 255 / 0.4); }
:where([data-theme="neon"]) .flow-steps { color: var(--ink-2); }
:where([data-theme="neon"]) .flow-steps li:nth-child(5)::before { background: #ffb870; }
:where([data-theme="neon"]) .flow-badges span { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
:where([data-theme="neon"]) .steps li::after { color: rgb(143 200 255 / 0.16); }
:where([data-theme="neon"]) .step-icon,
:where([data-theme="neon"]) .b-icon,
:where([data-theme="neon"]) .az-icon,
:where([data-theme="neon"]) .ev-icon,
:where([data-theme="neon"]) .pf-done .done-mark,
:where([data-theme="neon"]) .notice .done-mark { color: var(--paper-ink); }
:where([data-theme="neon"]) .b-lilac { --m: #c3adff; --e: #9c7dff; }
:where([data-theme="neon"]) .b-peach { --m: #ffb870; --e: #ff9a3d; }

/* Worked examples: the bills and agreements are white paper; the working is on the dark panel */
:where([data-theme="neon"]) .tab { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
:where([data-theme="neon"]) .tab:hover { color: var(--ink); border-color: var(--ink-2); }
:where([data-theme="neon"]) .tab[aria-selected="true"] { background: var(--hl-bill); border-color: var(--hl-bill-edge); color: var(--paper-ink); }
:where([data-theme="neon"]) .scenario + .scenario { border-top-color: var(--line); }
:where([data-theme="neon"]) .sheet { background: var(--paper); color: var(--paper-ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.4); }
:where([data-theme="neon"]) .sheet-head, :where([data-theme="neon"]) .sheet .lines th { color: var(--paper-ink-2); }
/* Only on paper: the same label heads the dark case file, where it keeps the light text colour. */
:where([data-theme="neon"]) .sheet .sheet-kind { color: var(--paper-ink); }
:where([data-theme="neon"]) .sheet .lines th { border-bottom-color: var(--paper-line); }
:where([data-theme="neon"]) .sheet .lines .total td { border-top-color: var(--paper-line); }
:where([data-theme="neon"]) .workings li::before, :where([data-theme="neon"]) .next-steps li::before { background: var(--cyan); color: var(--paper-ink); }
:where([data-theme="neon"]) .r-billed { background: rgb(255 216 74 / 0.12); }
:where([data-theme="neon"]) .r-owed { background: rgb(59 242 160 / 0.1); }
:where([data-theme="neon"]) .r-diff { background: rgb(255 92 138 / 0.12); }
:where([data-theme="neon"]) .r-diff dt { color: var(--blush-ink); }
:where([data-theme="neon"]) .query-split > div { background: rgb(255 92 138 / 0.08); }

/* Capabilities, fraud and records */
:where([data-theme="neon"]) .slab-lilac .signals { --sig-bg: rgb(179 148 255 / 0.14); --sig-fg: var(--lilac-ink); --sig-line: rgb(179 148 255 / 0.2); }
:where([data-theme="neon"]) .slab-ink .paper { background: rgb(255 255 255 / 0.04); }
:where([data-theme="neon"]) .finding { background: rgb(255 92 138 / 0.1); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(255 92 138 / 0.35); }
:where([data-theme="neon"]) .finding-k { color: var(--paper-ink); }
:where([data-theme="neon"]) .casefile {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 0 -5px var(--night), 0 10px 0 -4px rgb(179 148 255 / 0.3),
    0 20px 0 -10px var(--night), 0 20px 0 -9px rgb(179 148 255 / 0.3);
}
:where([data-theme="neon"]) .casefile ul { border-left-color: var(--line-2); }
:where([data-theme="neon"]) .casefile li::before { border-top-color: var(--line-2); }
:where([data-theme="neon"]) .decision { background: rgb(59 242 160 / 0.1); }

/* Savings calculator and the model */
:where([data-theme="neon"]) .input { background: var(--night); border-color: var(--field); }
:where([data-theme="neon"]) .input:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 2px rgb(46 230 255 / 0.5); }
:where([data-theme="neon"]) fieldset:disabled .input { background: var(--paper-bg); }
:where([data-theme="neon"]) .outcome .row { border-bottom-color: var(--line); }
:where([data-theme="neon"]) .bar-them { background: #3a4670; }
:where([data-theme="neon"]) .principles > div, :where([data-theme="neon"]) .model-facts > div { border-top-color: rgb(46 230 255 / 0.45); }

/* Getting paid: the supplier's email is paper */
:where([data-theme="neon"]) .paid-steps li::before { background: #ffb870; box-shadow: inset 0 0 0 1.5px #ff9a3d; color: var(--paper-ink); }
:where([data-theme="neon"]) .mail { background: var(--paper); color: var(--paper-ink); box-shadow: 0 30px 60px -30px rgb(255 170 90 / 0.45); }
:where([data-theme="neon"]) .mail-bar { background: #0d1430; color: #fff; }
:where([data-theme="neon"]) .mail-head, :where([data-theme="neon"]) .mail figcaption { border-color: var(--paper-line); }
:where([data-theme="neon"]) .mail-k, :where([data-theme="neon"]) .mail figcaption { color: var(--paper-ink-2); }
:where([data-theme="neon"]) .attach span { background: #ffefdf; }
:where([data-theme="neon"]) .fake-btn { background: #0d1430; color: #fff; }
:where([data-theme="neon"]) .fake-quiet { background: transparent; color: var(--paper-ink); box-shadow: inset 0 0 0 1.5px var(--paper-ink); }
:where([data-theme="neon"]) .paid-facts { border-top-color: rgb(255 170 90 / 0.25); }

/* Charts: one measure, one axis, every value labelled, in the highlighters' colours */
:where([data-theme="neon"]) .chart { --c-fill: rgb(255 156 198 / 0.25); --c-edge: var(--hl-query); --c-now: var(--hl-query); --c-axis: rgb(255 255 255 / 0.3); --c-text: var(--ink); --c-text-2: var(--ink-2); }
:where([data-theme="neon"]) .slab-peach .chart { --c-fill: rgb(255 184 112 / 0.25); --c-edge: #ffb870; --c-now: #ffb870; }
:where([data-theme="neon"]) .slab-ink .chart-panel { background: rgb(255 255 255 / 0.04); }
:where([data-theme="neon"]) .compare { --cmp-base: rgb(255 255 255 / 0.22); --cmp-hi: rgb(255 156 198 / 0.35); --cmp-hi-edge: var(--hl-query); }

/* Topic pages and the pilot form */
:where([data-theme="neon"]) .az-item { box-shadow: inset 0 0 0 1px rgb(63 168 255 / 0.25); }
:where([data-theme="neon"]) .az-item .az-icon { --m: rgb(63 168 255 / 0.18); --e: rgb(63 168 255 / 0.4); color: var(--sky-ink); }
:where([data-theme="neon"]) .az-now { box-shadow: inset 0 0 0 1px rgb(59 242 160 / 0.25); }
:where([data-theme="neon"]) .az-now .az-icon { --m: rgb(59 242 160 / 0.16); --e: rgb(59 242 160 / 0.4); color: var(--mint-ink); }
:where([data-theme="neon"]) .pilot-form { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -32px rgb(0 0 0 / 0.8); }
/* background-color only: the select's arrow is drawn with background-image. */
:where([data-theme="neon"]) .pf-field input,
:where([data-theme="neon"]) .pf-field select,
:where([data-theme="neon"]) .pf-field textarea { background-color: var(--night); color: var(--ink); border-color: var(--field); }
:where([data-theme="neon"]) .pf-field input:focus-visible,
:where([data-theme="neon"]) .pf-field select:focus-visible,
:where([data-theme="neon"]) .pf-field textarea:focus-visible { outline-color: var(--cyan); border-color: var(--cyan); }
:where([data-theme="neon"]) .pf-status { background: rgb(255 92 138 / 0.12); color: var(--ink); }

@media (max-width: 960px) {
  :where([data-theme="neon"]).js .top.open .nav { background: var(--surface); box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.8), 0 0 0 1px var(--line-2); }
  :where([data-theme="neon"]).js .top.open .nav .nav-cta { color: var(--paper-ink); }
}

/* The look's switch and the way back up */
:where([data-theme="neon"]) .theme-row[aria-pressed="true"] .switch { background: var(--cyan); }
:where([data-theme="neon"]) .theme-row[aria-pressed="true"] .switch::after { background: var(--paper-ink); }
:where([data-theme="neon"]) .to-top { background: var(--cyan); color: var(--paper-ink); box-shadow: 0 0 26px -6px rgb(46 230 255 / 0.7); }
:where([data-theme="neon"]) .to-top:hover { background: #8ff3ff; }
:where([data-theme="neon"]) .to-top:focus-visible { outline-color: #fff; box-shadow: 0 0 0 2px var(--bg); }

/* Printing uses dark text on white paper. */
@media print {
  :where([data-theme="neon"]) body { background: #fff; color: #000; }
  :where([data-theme="neon"]) .slab,
  :where([data-theme="neon"]) .slab-ink,
  :where([data-theme="neon"]) .bill-card,
  :where([data-theme="neon"]) .stat,
  :where([data-theme="neon"]) .flow-col,
  :where([data-theme="neon"]) .steps li,
  :where([data-theme="neon"]) .everyday li,
  :where([data-theme="neon"]) .rules,
  :where([data-theme="neon"]) .outcome,
  :where([data-theme="neon"]) .model,
  :where([data-theme="neon"]) .chart-panel,
  :where([data-theme="neon"]) .casefile,
  :where([data-theme="neon"]) .paper { background: none !important; box-shadow: none !important; color: #000; }
  :where([data-theme="neon"]) .hero { border: 0; }
}
