/* iQuantize site design system.
 *
 * Generated pages and the hand-authored homepage share this sheet. It is the
 * single source of the brand's visual language: cream page, ink type, one red
 * accent, white cards on thin borders, generous vertical rhythm.
 *
 * Asset paths are stable and un-fingerprinted — bump the filename when
 * replacing this file so long-lived caches pick the change up.
 */

/* ── Fonts ───────────────────────────────────────────── */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/nunito-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/nunito-sans-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/caveat-700-latin.woff2') format('woff2');
}

/* ── Tokens ──────────────────────────────────────────── */
:root {
  --bg: #FAF7F2;
  --ink: #141414;
  --red: #E0402E;
  /* The brand red is 4.25:1 on white — AA for large text only. Small text
   * (< 18.66px bold) needs 4.5:1, so it uses this 7%-darker, same-hue ink. */
  --red-ink: #D03C2B;
  --amber: #EFA23B;
  --green: #2E7D5B;
  --border: rgba(20, 20, 20, 0.12);
  --card-border: rgba(20, 20, 20, 0.14);
  --muted: rgba(20, 20, 20, 0.6);
  --body: rgba(20, 20, 20, 0.85);
  --pad-x: clamp(20px, 5vw, 64px);
  --measure: 52rem;
  --wide: 74rem;
  /* Room a deep link leaves above its target so it never lands under the
   * sticky header. Narrow screens pin only the slim link strip, so they need
   * less. */
  --anchor-off: 100px;
}

/* Smooth in-page travel, but only for readers who have not asked the OS for
 * reduced motion — an anchor jump is exactly the large sweep that setting is
 * about. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
[id] { scroll-margin-top: var(--anchor-off); }

/* Border-box everywhere: several components set `width: 100%` alongside their
 * own padding (table cells in the collapsed mobile layout, the filter fields),
 * and content-box makes those overflow their container. */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; }
.skip-link {
  /* Above the sticky nav (140), or the focused link hides behind it. */
  position: absolute; left: 0; top: 0; z-index: 300;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 0 0 6px 0; font-weight: 700; font-size: 14px;
  transform: translateY(-110%);
}
.skip-link:focus { transform: none; }

/* ── Nav ─────────────────────────────────────────────── */
/* Sticky, so a reader parked in the middle of a long read always has the site
 * sections and the download CTA one glance away. Cream background rather than
 * translucent: the shadow `pagenav.js` adds while scrolled is what signals
 * "floating", and content never ghosts through the type. */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 22px var(--pad-x);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 140;
  background: var(--bg);
  transition: box-shadow 0.25s ease;
}
.nav.floating { box-shadow: 0 6px 22px rgba(20, 20, 20, 0.08); }
/* Reading progress along the nav's bottom hairline. Ships hidden; pagenav.js
 * reveals it on pages that carry an on-page index and drives the scale. */
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%;
}
.nav-progress[hidden] { display: none; }
.nav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-brand img { display: block; mix-blend-mode: multiply; }
.nav-brand b { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.nav-link { font-weight: 600; font-size: 14px; color: rgba(20,20,20,0.7); white-space: nowrap; }
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="true"] { color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.nav-links { margin-left: auto; }
.nav-cta {
  font-weight: 700; font-size: 14px; color: var(--bg);
  background: var(--ink); padding: 9px 18px; border-radius: 6px; white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { color: var(--bg); filter: brightness(1.35); }

/* Narrow screens: brand and CTA hold the first row, section links wrap onto
 * their own row. Every destination stays one tap away — no hidden menu.
 *
 * Pinning both rows would spend ~110px of a small viewport, so the sticky top
 * is negative: the brand row scrolls away and only the slim link strip stays
 * pinned. 74px matches the strip's resting offset (22px padding + 38px brand
 * row + 14px row gap); pagenav.js measures the real value into --nav-pin for
 * the widths where the links wrap differently. */
@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap; padding-bottom: 14px; row-gap: 14px;
    top: calc(-1 * var(--nav-pin, 74px));
  }
  :root { --anchor-off: 64px; }
  .nav-brand { order: 1; }
  .nav-cta { order: 2; }
  .nav-links {
    order: 3; width: 100%; margin-left: 0;
    flex-wrap: wrap; gap: 8px 20px;
  }
  /* WCAG 2.2 "Target Size (Minimum)" wants 24x24 CSS px. A 14px text link is
   * only ~19px tall, so pad it out rather than enlarging the type. */
  .nav-link {
    font-size: 14px;
    display: inline-flex; align-items: center; min-height: 24px;
  }
  .nav-link[aria-current="true"] { padding-bottom: 1px; }
}

/* ── Page shell ──────────────────────────────────────── */
.section {
  padding: clamp(56px, 9vh, 104px) var(--pad-x);
  display: flex; justify-content: center;
}
.section + .section { border-top: 1px solid var(--border); }
.section.tight { padding-top: clamp(36px, 5vh, 56px); padding-bottom: clamp(36px, 5vh, 56px); }
.section-inner { max-width: var(--measure); width: 100%; }
.section-inner.wide { max-width: var(--wide); }

/* ── Type ────────────────────────────────────────────── */
h1 {
  font-weight: 800; font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08; letter-spacing: -0.03em; margin: 0; text-wrap: pretty;
}
h2 {
  font-weight: 800; font-size: clamp(26px, 3vw, 34px);
  line-height: 1.14; letter-spacing: -0.03em; margin: 0; text-wrap: pretty;
}
h3 {
  font-weight: 800; font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.32; letter-spacing: -0.01em; margin: 0;
}
.kicker {
  font-weight: 700; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red-ink); margin: 0 0 14px;
}
.lede {
  font-size: clamp(17px, 1.7vw, 19px); line-height: 1.7;
  margin: 20px 0 0; max-width: 42em; color: var(--body); text-wrap: pretty;
}
.prose { margin-top: clamp(28px, 4vh, 44px); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li {
  font-size: clamp(16px, 1.6vw, 18px); line-height: 1.75;
  margin: 0 0 18px; color: var(--body); text-wrap: pretty;
}
/* A heading that opens a section needs no space above it; one that follows
 * other content does. Covers headings built outside a .prose wrapper. */
.section-inner > h2:not(:first-child) { margin-top: clamp(44px, 6vh, 64px); }
.prose h2 { margin: clamp(44px, 6vh, 64px) 0 0; }
.prose h3 { margin: 36px 0 0; font-size: clamp(19px, 2vw, 22px); }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h3 + ul { margin-top: 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.35em; }
.prose li { margin-bottom: 10px; }
.prose li:last-child { margin-bottom: 0; }
.prose strong, .prose b { font-weight: 800; color: var(--ink); }
.prose a, .lede a, .callout a, .card-note a {
  border-bottom: 1px solid rgba(20,20,20,0.35);
}
.prose a:hover, .lede a:hover, .callout a:hover, .card-note a:hover { border-bottom-color: var(--ink); }
.updated {
  font-size: 14px; color: var(--muted); margin: 18px 0 0;
}

/* ── Breadcrumbs ─────────────────────────────────────── */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin: 0 0 22px; padding: 0; list-style: none;
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "›"; color: rgba(20,20,20,0.35); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); border-bottom: 1px solid var(--ink); }
.crumbs [aria-current="page"] { color: var(--muted); }

/* ── Answer box (the direct answer, first thing on a page) ── */
.answer {
  margin-top: clamp(28px, 4vh, 40px);
  background: #FFFFFF; border: 1px solid var(--card-border);
  border-left: 4px solid var(--red);
  border-radius: 10px; box-shadow: 0 2px 10px rgba(20,20,20,0.05);
  padding: 22px 26px;
}
.answer p { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.7; margin: 0 0 12px; color: var(--body); }
.answer p:last-child { margin-bottom: 0; }
.answer strong { font-weight: 800; color: var(--ink); }
.answer a { border-bottom: 1px solid rgba(20,20,20,0.35); }

/* ── On-page index ───────────────────────────────────── */
/* Two renderings of the same list (see render.toc). The inline one is the
 * entry map: an eyebrow, then a row of quiet chips — the site's pill
 * language, so it reads as navigation rather than a run of underlined prose,
 * and wrapping produces even rows instead of a ragged second line. */
.toc { margin: 26px 0 0; }
.toc-title {
  display: block; margin: 0 0 10px;
  font-weight: 800; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.toc-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.toc-list li { display: contents; }
.toc-list a {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid var(--card-border);
  font-size: 13.5px; font-weight: 600; line-height: 1.3;
  color: rgba(20,20,20,0.75); max-width: 100%;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.toc-list a:hover {
  color: var(--ink); border-color: rgba(20,20,20,0.32);
  box-shadow: 0 2px 8px rgba(20,20,20,0.06);
}

/* The rail: the same list, fixed in the margin beside the measure, for
 * mid-read orientation. Hidden until the viewport can hold it beside 52rem of
 * content; pagenav.js reveals it once the inline copy scrolls away and parks
 * it while the footer is on screen. The active marker rides the hairline —
 * the same red thread as the nav's progress line. */
.toc-rail { display: none; }
@media (min-width: 1400px) {
  .toc-rail {
    display: block; position: fixed; z-index: 90;
    top: 132px; left: calc(50% + 28rem);
    width: 15rem; max-height: calc(100vh - 200px);
    overflow-y: auto; overflow-x: hidden;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .toc-rail.on { opacity: 1; visibility: visible; transform: none; }
  .toc-rail .toc-title { display: block; margin: 0 0 12px; }
  .toc-rail ol {
    margin: 0; padding: 0; list-style: none;
    border-left: 1px solid var(--border);
  }
  .toc-rail a {
    display: block; padding: 6px 0 6px 16px; margin-left: -1px;
    border-left: 2px solid transparent;
    font-size: 13px; line-height: 1.45; font-weight: 600;
    color: rgba(20,20,20,0.55);
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  .toc-rail a:hover { color: var(--ink); }
  .toc-rail a.on { color: var(--ink); border-left-color: var(--red); }
}

/* ── Floating top/bottom capsule ─────────────────────── */
/* Appears only once the reader is deep in a long page (pagenav.js). White
 * card language, pill radius; "bottom" is the footer, because the footer is
 * the site map. */
.fab {
  position: fixed; z-index: 150;
  right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 3vh, 28px);
  display: flex; flex-direction: column;
  background: #FFFFFF; border: 1px solid var(--card-border);
  border-radius: 999px; box-shadow: 0 8px 28px rgba(20, 20, 20, 0.16);
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.fab[hidden] { display: none; }
.fab.on { opacity: 1; visibility: visible; transform: none; }
.fab-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font: inherit; color: var(--ink);
  background: none; border: none; cursor: pointer;
}
.fab-btn:hover { background: rgba(20,20,20,0.055); color: var(--red-ink); }
.fab-btn + .fab-btn { border-top: 1px solid var(--card-border); }
.fab-btn svg { display: block; }

/* ── Callouts ────────────────────────────────────────── */
.callout {
  margin: 26px 0; padding: 16px 20px;
  border-radius: 10px; border: 1px solid var(--card-border);
  background: rgba(20,20,20,0.035);
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.65; color: var(--body);
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout p { margin: 0 0 10px; font-size: inherit; line-height: inherit; }
.callout p:last-child { margin-bottom: 0; }
.callout b, .callout strong { font-weight: 800; color: var(--ink); }
.callout.warn { background: rgba(224,64,46,0.07); border-color: rgba(224,64,46,0.28); }
.callout.tip { background: rgba(239,162,59,0.1); border-color: rgba(239,162,59,0.35); }
.callout-label {
  display: block; font-weight: 800; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.callout.warn .callout-label { color: var(--red-ink); }

/* ── Fact bar ────────────────────────────────────────── */
/* Facts that hold for everything below, as labelled values rather than a
 * paragraph the reader has to parse to find the one that applies to them. */
.fact-bar {
  margin: clamp(26px, 4vh, 36px) 0 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  background: rgba(20,20,20,0.1);
  border: 1px solid var(--card-border); border-radius: 12px;
  overflow: hidden;
}
.fact-bar .fact { background: #FFFFFF; padding: 15px 20px; }
.fact-bar dt {
  font-weight: 700; font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.fact-bar dd {
  margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); font-weight: 600;
}
.fact-bar dd b { font-weight: 800; }
.fact-bar dd a { border-bottom: 1px solid rgba(20,20,20,0.35); }
.fact-bar dd a:hover { border-bottom-color: var(--ink); }

/* ── Legend ──────────────────────────────────────────── */
.legend {
  margin: clamp(26px, 4vh, 36px) 0 0;
  background: #FFFFFF; border: 1px solid var(--card-border);
  border-radius: 12px; box-shadow: 0 2px 8px rgba(20,20,20,0.05);
  padding: 20px 22px;
}
.legend-title {
  font-weight: 800; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 16px;
}
/* A label and its description are one unit, so they sit closer to each other
 * than consecutive units do. Keep the inner gap well below the row gap. */
.legend-grid {
  display: grid;
  row-gap: 28px; column-gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.legend-item { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.legend-item p {
  margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--body);
}
/* Vertical rules between columns, only where they sit side by side. Below
 * ~830px the grid drops to two columns and the third item wraps, which would
 * leave it showing a divider with nothing beside it — so the rules start above
 * that. The row gap stays either way, so a wrapped row never collides. */
@media (min-width: 840px) {
  .legend-grid { column-gap: 0; }
  .legend-item { padding: 0 26px; border-left: 1px solid rgba(20,20,20,0.1); }
  .legend-item:first-child { padding-left: 0; border-left: none; }
  .legend-item:last-child { padding-right: 0; }
}

/* ── Compact fact chip ───────────────────────────────── */
.tag {
  display: inline-block;
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.03em;
  padding: 3px 9px; border-radius: 5px; white-space: nowrap;
  background: rgba(20,20,20,0.06); color: rgba(20,20,20,0.75);
  border: 1px solid rgba(20,20,20,0.1);
}

/* ── Status pills ────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 12px; letter-spacing: 0.02em;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.auto { color: #1F6248; background: rgba(46,125,91,0.12); border-color: rgba(46,125,91,0.3); }
.pill.learn { color: #8A5A12; background: rgba(239,162,59,0.16); border-color: rgba(239,162,59,0.42); }
.pill.none { color: rgba(20,20,20,0.6); background: rgba(20,20,20,0.07); border-color: rgba(20,20,20,0.16); }
.pill.no { color: #A62B1D; background: rgba(224,64,46,0.1); border-color: rgba(224,64,46,0.3); }
/* Savings badge. Its own variant rather than borrowing .auto, which means
 * "automatic pad mapping" in the compatibility tables — restyling that for a
 * hardware reason would otherwise silently repaint the price. The status dot is
 * dropped: it reads as a state indicator, and a saving is not a state. */
.pill.save { color: #1F6248; background: rgba(46,125,91,0.12); border-color: rgba(46,125,91,0.3); }
.pill.save::before { display: none; }

/* ── Spec list (key → value) ─────────────────────────── */
.specs {
  margin: clamp(28px, 4vh, 40px) 0 0;
  background: #FFFFFF; border: 1px solid var(--card-border);
  border-radius: 12px; box-shadow: 0 2px 10px rgba(20,20,20,0.05);
  overflow: hidden;
}
.specs div {
  display: grid; grid-template-columns: minmax(140px, 34%) 1fr;
  gap: 6px 20px; padding: 15px 22px;
  border-top: 1px solid rgba(20,20,20,0.09);
}
.specs div:first-child { border-top: none; }
.specs dt {
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); align-self: center;
}
.specs dd {
  margin: 0; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; color: var(--body);
  align-self: center;
}
.specs dd a { border-bottom: 1px solid rgba(20,20,20,0.35); }
@media (max-width: 560px) {
  .specs div { grid-template-columns: 1fr; }
}

/* ── Steps ───────────────────────────────────────────── */
.steps { margin: clamp(28px, 4vh, 40px) 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative; counter-increment: step;
  padding: 0 0 22px 52px; margin: 0;
  font-size: clamp(16px, 1.6vw, 18px); line-height: 1.7; color: var(--body);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li b, .steps li strong { font-weight: 800; color: var(--ink); }
.steps li a { border-bottom: 1px solid rgba(20,20,20,0.35); }

/* ── Card grid ───────────────────────────────────────── */
.grid {
  margin: clamp(28px, 4vh, 44px) 0 0;
  display: grid; gap: 16px;
  /* Sized so three cards share the 52rem measure rather than wrapping the
   * third onto a row of its own: floor((832 + 16) / (250 + 16)) = 3. */
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.grid.two { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 9px;
  background: #FFFFFF; border: 1px solid var(--card-border);
  border-radius: 12px; box-shadow: 0 2px 8px rgba(20,20,20,0.05);
  padding: 22px 24px;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
a.card:hover {
  box-shadow: 0 6px 20px rgba(20,20,20,0.09);
  transform: translateY(-2px);
  border-color: rgba(20,20,20,0.3);
}
.card-eyebrow {
  font-weight: 700; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.card h3 { font-size: clamp(17px, 1.7vw, 19px); }
.card p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--body); }
.card-note { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.card-foot {
  margin-top: auto; padding-top: 6px;
  font-weight: 700; font-size: 14px; color: var(--red-ink);
}
a.card:hover .card-foot { text-decoration: underline; text-underline-offset: 3px; }
.card-pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Data table (compatibility matrix) ───────────────── */
.table-wrap {
  margin: clamp(24px, 3.5vh, 36px) 0 0;
  background: #FFFFFF; border: 1px solid var(--card-border);
  border-radius: 12px; box-shadow: 0 2px 10px rgba(20,20,20,0.05);
  overflow: hidden;
}
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data caption { text-align: left; padding: 16px 22px 0; font-size: 13px; color: var(--muted); }
table.data th, table.data td {
  text-align: left; padding: 15px 18px; vertical-align: top;
  border-top: 1px solid rgba(20,20,20,0.09);
}
table.data thead th {
  border-top: none; border-bottom: 1px solid rgba(20,20,20,0.16);
  font-weight: 700; font-size: 11.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted);
  background: rgba(20,20,20,0.025);
  position: sticky; top: 0; z-index: 1;
  white-space: nowrap;
}
table.data tbody tr:hover { background: rgba(20,20,20,0.022); }
table.data td b { font-weight: 800; }
table.data a { border-bottom: 1px solid rgba(20,20,20,0.3); }
table.data a:hover { border-bottom-color: var(--ink); }

/* Column proportions. The name and the notes carry the information; the
 * status columns are fixed so they never steal width from the prose. */
table.data .col-model { width: 32%; min-width: 220px; }
table.data .col-fixed { width: 1%; white-space: nowrap; }
table.data .col-note { width: auto; }

/* ── Grouped table ───────────────────────────────────── */
/* A fact true of a whole brand is stated once in its header instead of being
 * repeated down a column, so a row only carries what makes it different. */
table.data .group-head th {
  background: rgba(20,20,20,0.04);
  border-top: 1px solid rgba(20,20,20,0.14);
  border-bottom: 1px solid rgba(20,20,20,0.1);
  padding: 13px 18px;
  text-transform: none; letter-spacing: normal;
}
.group-inner { display: block; }
.group-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
}
table.data tbody:first-of-type .group-head th { border-top: none; }
.group-name {
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--ink);
}
.group-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.group-blurb {
  display: block; max-width: 64ch; margin-top: 5px;
  font-size: 13.5px; line-height: 1.5; font-weight: 400; color: var(--body);
}
table.data.grouped tbody tr:not(.group-head) td { border-top: 1px solid rgba(20,20,20,0.07); }
table.data.grouped tbody tr:not(.group-head):first-of-type td { border-top: none; }

.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;
}

.cell-title {
  display: block; font-weight: 800; font-size: 16px;
  letter-spacing: -0.01em; line-height: 1.3;
}
.cell-title .pill { margin-left: 4px; vertical-align: 1px; }
/* Outranks the generic `table.data a` underline: in this cell the row's
 * "Setup guide" link is the affordance, so the title stays clean. */
table.data .cell-title a { border-bottom: none; }
table.data .cell-title a:hover { border-bottom: 1px solid var(--ink); }
.row-sub { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.cell-note { font-size: 14.5px; line-height: 1.55; color: var(--body); }
.cell-empty { color: var(--muted); font-size: 16px; }
/* Scoped to beat the generic `table.data a` underline on specificity rather
 * than with !important. Inline-flex with a 24px minimum keeps this inside the
 * WCAG 2.2 target size without inflating the type. */
table.data a.row-link {
  display: inline-flex; align-items: center; min-height: 24px;
  margin-top: 4px;
  font-weight: 700; font-size: 13px; color: var(--red-ink);
  border-bottom: none;
}
table.data a.row-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Small screens: collapse each row into a labelled card. */
@media (max-width: 820px) {
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr {
    border-top: 1px solid rgba(20,20,20,0.12);
    padding: 10px 0 16px;
  }
  table.data tr:first-child { border-top: none; }
  table.data td { border-top: none; padding: 7px 18px; }
  table.data td::before {
    content: attr(data-label);
    display: block; font-weight: 700; font-size: 11px; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
  }
  /* Both columns are self-evident on a card: the name is a heading and the
   * note is the only prose. Labels above them would be pure chrome. */
  table.data td.col-model::before, table.data td.col-note::before { display: none; }
  table.data td.col-model { padding-top: 12px; }
  table.data.grouped tbody tr:not(.group-head) td { border-top: none; }
  /* Nothing to report needs no card row of its own here. */
  table.data tr[data-note="no"] td.col-note { display: none; }
  table.data tr[data-note="no"] td.col-model { padding-bottom: 14px; }
  .cell-title { font-size: 18px; }

  /* Group headers become section dividers between stacked cards. */
  table.data .group-head { padding: 0; border-top: none; }
  table.data .group-head th {
    padding: 16px 18px;
    border-top: 1px solid rgba(20,20,20,0.14);
  }
  table.data tbody:first-of-type .group-head th { border-top: none; }
  /* Sticky so the brand stays visible while scrolling its modules. */
  table.data .group-head th { position: sticky; top: 0; z-index: 2; }
}

/* ── Filter bar ──────────────────────────────────────── */
.filters {
  margin: clamp(28px, 4vh, 40px) 0 0;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.filters label { position: absolute; left: -9999px; }
.field {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: #FFFFFF; border: 1px solid var(--card-border);
  border-radius: 8px; padding: 11px 14px;
  box-shadow: 0 1px 3px rgba(20,20,20,0.04);
}
.field:focus { outline: 2px solid var(--red); outline-offset: 1px; }
input.field { flex: 1 1 240px; min-width: 0; }
select.field { flex: 0 1 auto; cursor: pointer; }
.filter-count { font-size: 14px; color: var(--muted); flex-basis: 100%; margin: 2px 0 0; }
.empty-note {
  margin: 24px 0 0; padding: 20px 22px;
  border: 1px dashed var(--card-border); border-radius: 10px;
  font-size: 15px; line-height: 1.65; color: var(--body);
}

/* ── Stacked form (compatibility checker) ────────────── */
/* A questionnaire rather than a filter bar: labels are visible and numbered,
 * and each control owns its row. */
.form-stack {
  margin: clamp(28px, 4vh, 40px) 0 0;
  display: flex; flex-direction: column; gap: 18px;
  max-width: 38rem;
}
.form-stack .field { width: 100%; }
.field-label {
  display: block; margin-bottom: 7px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.form-status { margin: 0; font-size: 14px; color: var(--muted); }

/* ── Spacing utilities ───────────────────────────────── */
/* Named steps rather than inline margins, so vertical rhythm stays editable
 * from one place. */
.stack-sm { margin-top: 14px; }
.stack-md { margin-top: 16px; }
.stack-lg { margin-top: clamp(40px, 6vh, 60px); }
.btn-inline { width: auto; padding: 11px 26px; }

/* ── Comparison table ────────────────────────────────── */
/* Verdict marks. Colour is never the only signal: each mark carries a glyph
 * and a screen-reader label, so it survives greyscale and colour blindness. */
.mark { display: flex; align-items: flex-start; gap: 10px; }
.mark-icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 13px; font-weight: 800; line-height: 1;
  /* Nudged onto the first line of a wrapping note rather than its box. */
  margin-top: 1px;
}
.mark-yes .mark-icon { background: rgba(46,125,91,0.14); color: #1F6248; }
.mark-no .mark-icon { background: rgba(224,64,46,0.12); color: #A62B1D; }
.mark-part .mark-icon { background: rgba(239,162,59,0.18); color: #8A5A12; }
.mark-note { font-size: 14.5px; line-height: 1.55; color: var(--body); }
/* Standing in for an absent note, so it should read as a verdict rather
 * than as content. */
.mark-bare { color: var(--muted); }
td.mine .mark-bare { color: var(--body); font-weight: 600; }
/* Our own column reads as the answer, so its yes-marks carry full weight. */
td.mine .mark-yes .mark-icon { background: rgba(46,125,91,0.18); }
td.mine .mark-note { color: var(--ink); font-weight: 600; }
td.mine .mark-no .mark-icon { background: rgba(20,20,20,0.08); color: rgba(20,20,20,0.5); }

table.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
table.compare th, table.compare td {
  text-align: left; padding: 18px 20px; vertical-align: top;
  border-top: 1px solid rgba(20,20,20,0.09);
  line-height: 1.6;
}
table.compare thead th {
  border-top: none; border-bottom: 1px solid rgba(20,20,20,0.16);
  font-weight: 800; font-size: 16px; letter-spacing: -0.01em; color: var(--ink);
  padding-top: 14px; padding-bottom: 14px;
}
table.compare thead th:first-child { font-weight: 700; font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
table.compare tbody th {
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  text-transform: none; color: var(--ink); width: 28%;
  line-height: 1.4;
}
table.compare tbody th small {
  display: block; font-weight: 400; font-size: 13px;
  color: var(--muted); margin-top: 4px; line-height: 1.45;
}
table.compare thead th.mine, table.compare td.mine { background: rgba(239,162,59,0.07); }
table.compare thead th.mine { background: rgba(239,162,59,0.14); }
table.compare caption {
  text-align: left; padding: 14px 20px 0;
  font-size: 13px; line-height: 1.5; color: var(--muted);
}

/* Narrow screens: each dimension becomes its own card, and the two answers
 * become labelled blocks inside it. The table's own `display: block` would
 * otherwise leave the caption as a `table-caption` with nothing to size
 * against, collapsing it to a column a few characters wide. */
@media (max-width: 760px) {
  table.compare, table.compare tbody, table.compare tr,
  table.compare td, table.compare th, table.compare caption {
    display: block; width: 100%;
  }
  table.compare thead { display: none; }
  /* The caption sits inside the card, so it needs the card's own inset and a
   * rule separating it from the first dimension. */
  table.compare caption {
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(20,20,20,0.09);
  }

  table.compare tbody th { width: auto; }
  table.compare tr {
    border-top: 1px solid rgba(20,20,20,0.12);
    padding: 22px 0 18px;
  }
  table.compare tr:first-of-type { border-top: none; }

  /* The dimension is the card's heading. */
  table.compare tbody th {
    border-top: none;
    padding: 0 4px 14px;
    font-size: 17px; line-height: 1.3;
  }
  table.compare tbody th small { font-size: 13.5px; margin-top: 5px; }

  /* Each answer is a block of its own so the two never run together. */
  table.compare td {
    border-top: none;
    margin: 0 0 8px; padding: 13px 15px;
    background: rgba(20,20,20,0.03);
    border-radius: 10px;
  }
  table.compare td:last-child { margin-bottom: 0; }
  table.compare td.mine {
    background: rgba(239,162,59,0.1);
    box-shadow: inset 0 0 0 1px rgba(239,162,59,0.3);
  }
  table.compare td::before {
    content: attr(data-label);
    display: block;
    font-weight: 800; font-size: 11.5px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted);
    margin-bottom: 9px;
  }
  table.compare td.mine::before { color: #8A5A12; }
  /* A bare mark with no note should not leave the block looking empty. */
  .mark-note { font-size: 15px; }
}

/* ── Screenshot figure ───────────────────────────────── */
.shot {
  margin-top: clamp(32px, 5vh, 52px);
  border: 1px solid var(--card-border); border-radius: 10px;
  overflow: hidden; background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(20,20,20,0.05);
}
.shot img { width: 100%; height: auto; display: block; }
figure { margin: 0; }
figure + figure { margin-top: 28px; }
/* `--muted` (0.6) is the lightest ink that clears WCAG AA 4.5:1 on both the
 * cream page and white cards. A one-off lighter alpha here measured 4.01:1. */
figcaption { margin-top: 12px; font-size: 14px; font-style: italic; color: var(--muted); }

/* ── Store buttons / CTA ─────────────────────────────── */
.store-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
}
.store-row.left { justify-content: flex-start; }
.store-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 168px; box-sizing: border-box; padding: 10px 0;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: 14px;
}
.store-btn svg { display: block; flex-shrink: 0; }
.store-btn.fill { background: var(--ink); color: var(--bg); }
.store-btn.fill:hover { background: #000000; color: var(--bg); }
.store-btn.line { color: var(--ink); }
.store-btn.line:hover { background: var(--ink); color: var(--bg); }

.cta-band {
  margin: clamp(36px, 5vh, 56px) 0 0;
  background: #FFFFFF; border: 1px solid var(--card-border);
  border-radius: 14px; box-shadow: 0 2px 12px rgba(20,20,20,0.06);
  padding: clamp(28px, 4vh, 40px) clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
.cta-band h2 { font-size: clamp(22px, 2.4vw, 28px); }
.cta-band p { margin: 0; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; color: var(--body); max-width: 34em; }
.cta-band .store-row { margin-top: 4px; }
.cta-note { font-size: 14px; color: var(--muted); margin: 0; font-style: italic; }

.cta-inner {
  max-width: var(--measure); width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.cta-inner h2 { font-size: clamp(34px, 3.8vw, 46px); line-height: 1.1; }
.cta-inner p {
  font-size: clamp(17px, 1.7vw, 19px); line-height: 1.75;
  margin: 24px 0 0; max-width: 36em; text-wrap: pretty;
}
.cta-inner .store-row { margin-top: 44px; }

/* ── Price link (homepage) ───────────────────────────── */
/* Deliberately quiet: one muted line under the download buttons that leads with
 * the free trial and sends anyone who wants figures to /pricing/. A price here
 * asks for a money decision before the reader knows the app works. */
.cta-inner .price-link {
  font-size: 14px; line-height: 1.6; color: var(--muted);
  margin: 24px 0 0; max-width: 34em;
}
.cta-inner .price-link a {
  color: var(--muted); font-weight: 700;
  border-bottom: 1px solid rgba(20,20,20,0.28);
}
.cta-inner .price-link a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Per-period suffix on the pricing page's Pro card. */
.plan-per { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* ── Related links ───────────────────────────────────── */
.related { margin: clamp(40px, 6vh, 64px) 0 0; }
.related h2 { font-size: clamp(20px, 2.1vw, 24px); }
.related ul {
  margin: 20px 0 0; padding: 0; list-style: none;
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.related li { margin: 0; }
.related a {
  display: block; padding: 13px 16px;
  background: #FFFFFF; border: 1px solid var(--card-border); border-radius: 9px;
  font-size: 15px; line-height: 1.45; font-weight: 600;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.related a:hover { border-color: rgba(20,20,20,0.32); box-shadow: 0 3px 12px rgba(20,20,20,0.07); }
.related a span { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { margin-top: clamp(28px, 4vh, 44px); }
.faq h3 { font-weight: 800; font-size: clamp(18px, 1.8vw, 21px); letter-spacing: -0.01em; margin: 0 0 10px; }
.faq div + div { margin-top: 30px; }
.faq p {
  font-size: clamp(16px, 1.6vw, 18px); line-height: 1.7;
  margin: 0; color: var(--body); text-wrap: pretty;
}
.faq p + p { margin-top: 12px; }
.faq a { border-bottom: 1px solid rgba(20,20,20,0.35); }
.faq-more { margin-top: 40px; font-style: italic; }

/* ── Collapsible FAQ (/faq/ only) ────────────────────── */
/* Deliberately the same card, +/- affordance and rhythm as the support-hub
 * accordion above: two accordions on one site that look different read as two
 * different components. Only /faq/ collapses — a guide's three closing
 * questions are part of why the page ranks and stay open.
 *
 * `scroll-margin-top` is what makes a deep link land properly; without it the
 * opened row sits flush against the viewport edge under the sticky header. */
.faq-collapsible { display: flex; flex-direction: column; gap: 12px; }
.qa {
  background: #FFFFFF; border: 1px solid var(--card-border);
  border-radius: 10px; box-shadow: 0 2px 8px rgba(20,20,20,0.05);
  scroll-margin-top: var(--anchor-off);
}
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 14px;
  padding: 18px 22px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  content: "+"; flex-shrink: 0;
  font-weight: 800; font-size: 19px; line-height: 1;
  color: var(--red); transform: translateY(1px);
}
.qa[open] summary::before { content: "–"; }
.qa summary h3 {
  font-weight: 800; font-size: clamp(16px, 1.7vw, 19px);
  letter-spacing: -0.01em; line-height: 1.35; margin: 0;
}
.qa summary:hover h3 { color: rgba(20,20,20,0.75); }
/* The row is the click target, so the focus ring belongs on the whole row
 * rather than on the text inside it. */
.qa summary:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; border-radius: 10px; }

.qa-body { padding: 2px 22px 20px 55px; }
.faq .qa-body p {
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7;
  margin: 0 0 12px; color: var(--body);
}
.qa-body p:last-of-type { margin-bottom: 0; }
.qa-body ul, .qa-body ol { margin: 0 0 12px; padding-left: 1.3em; }

/* Shown only once the answer is open, which is when someone would want to
 * share it. Muted until hover so it never competes with the answer. */
.qa-permalink {
  display: inline-block; margin-top: 14px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  border-bottom: 1px solid transparent;
}
.qa-permalink::before { content: "# "; }
.qa-permalink:hover { color: var(--red-ink); border-bottom-color: rgba(224,64,46,0.4); }

@media (max-width: 560px) {
  .qa summary { padding: 16px 18px; gap: 12px; }
  .qa-body { padding: 2px 18px 18px 18px; }
}

/* ── Troubleshooting accordion (support hub) ─────────── */
.ts-list { margin-top: clamp(24px, 3.5vh, 36px); }
.ts {
  background: #FFFFFF; border: 1px solid var(--card-border);
  border-radius: 10px; box-shadow: 0 2px 8px rgba(20,20,20,0.05);
  margin-top: 14px; scroll-margin-top: var(--anchor-off);
}
.ts summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 14px;
  padding: 18px 22px;
}
.ts summary::-webkit-details-marker { display: none; }
.ts summary::before {
  content: "+"; flex-shrink: 0;
  font-weight: 800; font-size: 19px; line-height: 1;
  color: var(--red); transform: translateY(1px);
}
.ts[open] summary::before { content: "–"; }
.ts summary h3 { font-weight: 800; font-size: clamp(16px, 1.7vw, 19px); letter-spacing: -0.01em; line-height: 1.35; margin: 0; }
.ts summary:hover h3 { color: rgba(20,20,20,0.75); }
.ts-body { padding: 2px 22px 20px 55px; }
.ts-body p, .ts-body li {
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7;
  margin: 0 0 12px; color: var(--body); text-wrap: pretty;
}
.ts-body ol, .ts-body ul { margin: 0 0 12px; padding-left: 1.3em; }
.ts-body li { margin-bottom: 8px; }
.ts-body p:last-child, .ts-body ol:last-child { margin-bottom: 0; }
.ts-body .warn { font-weight: 700; }
.ts-body a { border-bottom: 1px solid rgba(20,20,20,0.35); }
.ts-body .ts-more { font-size: 14px; }
.ts-more a { font-weight: 700; }

/* ── Contact card ────────────────────────────────────── */
.contact-card {
  margin-top: 28px;
  background: #FFFFFF; border: 1px solid var(--card-border);
  border-radius: 10px; box-shadow: 0 2px 8px rgba(20,20,20,0.05);
  padding: 24px 26px;
}
.contact-card p { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7; margin: 0 0 12px; color: var(--body); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card .mail { font-weight: 800; font-size: clamp(17px, 1.8vw, 20px); color: var(--ink); }
.contact-card a { border-bottom: 1px solid rgba(20,20,20,0.35); }

/* ── Legal / document pages ──────────────────────────── */
.doc { max-width: 46rem; margin: 0 auto; padding: clamp(48px, 8vh, 80px) var(--pad-x) clamp(70px, 10vh, 110px); }
.doc h1 { font-size: clamp(30px, 3.4vw, 40px); margin: 0 0 12px; }
.doc h2 { font-weight: 800; font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; margin: 40px 0 12px; }
.doc h3 { font-weight: 800; font-size: clamp(17px, 1.7vw, 19px); letter-spacing: -0.01em; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; margin: 0 0 14px; color: rgba(20,20,20,0.9); }
.doc ul { margin: 0 0 14px; padding-left: 1.4em; }
.doc li { margin-bottom: 6px; }
.scope-note {
  font-size: 14px; line-height: 1.6; color: rgba(20,20,20,0.75);
  background: rgba(20,20,20,0.05); border-radius: 8px;
  padding: 12px 16px; margin: 0 0 28px;
}
.scope-note a, .doc a { border-bottom: 1px solid rgba(20,20,20,0.3); }

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--pad-x) 32px;
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 28px;
}
.foot-nav {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px);
}
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col b {
  font-weight: 800; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1px;
}
.foot-col a { font-size: 14px; color: rgba(20,20,20,0.65); }
.foot-col a:hover { color: var(--ink); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { display: block; mix-blend-mode: multiply; opacity: 0.85; }
.foot-brand span { font-size: 14px; color: var(--muted); }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding: 20px var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; }
.foot-links a { color: var(--muted); border-bottom: 1px solid rgba(20,20,20,0.22); }
.foot-links a:hover { color: var(--ink); }
.foot-note { font-size: 13.5px; color: var(--muted); }
/* Withdraw control sits with the legal links and must read as one of them —
 * a button element for behaviour, link styling for the eye. */
.foot-consent {
  font: inherit; font-size: 13.5px; color: var(--muted);
  background: none; border: none; border-bottom: 1px solid rgba(20,20,20,0.22);
  padding: 0; cursor: pointer;
}
.foot-consent:hover { color: var(--ink); }

/* ── Consent banner ──────────────────────────────────── */
/* Bottom-anchored and non-blocking: the page stays readable and scrollable
 * while the choice is open, which is deliberate — a wall that traps the reader
 * until they answer is the pattern that makes "consent" coerced rather than
 * freely given. The outer layer is click-through so only the card itself takes
 * pointer events. */
.consent {
  position: fixed; z-index: 200;
  left: var(--pad-x); right: var(--pad-x); bottom: clamp(14px, 3vh, 26px);
  display: flex; justify-content: center;
  pointer-events: none;
}
/* `display: flex` above would otherwise defeat the UA rule for [hidden], and
 * the banner ships hidden — without this every visitor sees it flash. */
.consent[hidden] { display: none; }
.consent-card {
  pointer-events: auto;
  width: min(44rem, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 26px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 12px 38px rgba(20, 20, 20, 0.15);
  animation: consent-in 260ms ease-out;
}
@keyframes consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.consent-copy b {
  display: block; margin-bottom: 5px;
  font-weight: 800; font-size: 15px; letter-spacing: -0.01em; color: var(--ink);
}
.consent-copy p {
  margin: 0; font-size: 14px; line-height: 1.6; color: var(--body);
}
/* Equal size, side by side, decline first. An easier "yes" than "no" is the
 * specific dark pattern EU regulators enforce against — keep them symmetric. */
.consent-actions { display: flex; gap: 10px; }
.consent-btn {
  font: inherit; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 6px; cursor: pointer; white-space: nowrap;
  color: var(--ink); background: none; border: 1px solid var(--card-border);
}
.consent-btn:hover { border-color: rgba(20,20,20,0.4); }
.consent-yes { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.consent-yes:hover { filter: brightness(1.35); border-color: var(--ink); }
.consent-fine { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.consent-fine a { color: var(--muted); border-bottom: 1px solid rgba(20,20,20,0.22); }
.consent-fine a:hover { color: var(--ink); }

/* Narrow screens: copy over buttons, and the two buttons split the row evenly
 * so neither is the easier tap target. */
@media (max-width: 620px) {
  .consent { left: 12px; right: 12px; }
  .consent-card { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .consent-actions { gap: 10px; }
  .consent-btn { flex: 1; padding: 11px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  a.card:hover { transform: none; }
}
