/* Cookie Chomper website. The extension's world (src/ui/tokens.css): warm paper, deep green ink,
   cookie brown, the cracked-cookie icon. Display face: Bricolage Grotesque (OFL), self-hosted. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/bricolage-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/bricolage-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 dark;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --bg: #f6f3ec;
  --bg-deep: #ede6d8;
  --surface: #fffdf8;
  --ink: #1d2b25;
  --ink-2: #4a5a52;
  --line: #e3ddd0;
  --line-strong: #cbc3b3;
  --accent: #2f6f4f;
  --accent-hover: #255a40;
  --on-accent: #fbf8f1;
  --accent-soft: #e4efe6;
  --green-field: #1d2b25;
  --on-green: #f4efe6;
  --on-green-2: #b9c7bf;
  --cookie: #e8b46c;
  --cookie-deep: #6b4226;
  --cookie-soft: #f5ead8;
  --amber: #b7791f;
  --amber-ink: #734511;
  --amber-soft: #fbeed6;
  --focus: #2f6f4f;
  --shadow-pile: 0 2px 3px rgb(29 43 37 / 0.06), 0 18px 40px -18px rgb(29 43 37 / 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a16;
    --bg-deep: #0f1613;
    --surface: #19241f;
    --ink: #eee8dc;
    --ink-2: #b2bcb5;
    --line: #26332d;
    --line-strong: #3a4a42;
    --accent: #7cc39b;
    --accent-hover: #93d1ad;
    --on-accent: #0f1f18;
    --accent-soft: #1b3428;
    --green-field: #1b3428;
    --on-green: #eee8dc;
    --on-green-2: #b2c7ba;
    --cookie-soft: #2b251b;
    --cookie-deep: #ecd3ae;
    --amber: #e8b46c;
    --amber-ink: #f1cd96;
    --amber-soft: #33271a;
    --focus: #93d1ad;
    --shadow-pile: 0 2px 3px rgb(0 0 0 / 0.3), 0 18px 40px -18px rgb(0 0 0 / 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgb(232 180 108 / 0.45); color: inherit; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 750; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 32px, 72rem); margin-inline: auto; }

/* Header */
.site-header { position: relative; z-index: 3; padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 750; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.header-note { font-size: 0.9375rem; color: var(--ink-2); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent);
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }
.button:active { transform: translateY(1px); }
.button svg { width: 20px; height: 20px; flex: none; }
.button .short { display: none; }
@media (max-width: 520px) { .button .long { display: none; } .button .short { display: inline; } }

/* ------------------------------------------------------------------ */
/* The story: a pile of banners, answered one by one as you scroll.   */
/* ------------------------------------------------------------------ */

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
.story-text { padding-bottom: 12vh; }

.hero { min-height: calc(100svh - 90px); display: flex; flex-direction: column; justify-content: center; padding-block: 24px 64px; }
.hero h1 { font-size: clamp(2.75rem, 4.2vw + 1.2rem, 5.25rem); font-stretch: 88%; margin-bottom: 24px; }
.hero h1 .no { color: var(--accent); }
.hero .lede { font-size: 1.25rem; color: var(--ink-2); max-width: 30rem; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.price-line { color: var(--ink-2); font-size: 0.9375rem; }
.price-line strong { color: var(--ink); font-weight: 650; }
.scroll-cue { margin-top: 56px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 0.9375rem; }
.scroll-cue svg { width: 18px; height: 18px; animation: nudge 2.4s var(--ease-out) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(4px); } }

.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; }
.step h2 { font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.625rem); margin-bottom: 14px; }
.step p { margin: 0; color: var(--ink-2); font-size: 1.125rem; }
.step p + p { margin-top: 12px; }
.step-end { min-height: 45vh; }

/* The stage holds the page the banners sit on. It stays in view while the steps scroll past. */
.story-stage { position: relative; }
.stage {
  position: sticky; top: 24px; height: calc(100svh - 48px); min-height: 560px; max-height: 820px;
  display: grid; place-items: center;
}
.defs { position: absolute; }
.page {
  position: relative; width: 100%; height: 100%;
  border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-pile);
  overflow: hidden; isolation: isolate;
}
.page-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.page-bar .dots { display: flex; gap: 6px; }
.page-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.page-bar .address { flex: 1; height: 26px; border-radius: 999px; background: var(--surface); display: flex; align-items: center; padding: 0 12px; font-size: 0.8125rem; color: var(--ink-2); }
.page-bar .chomper { width: 24px; height: 24px; border-radius: 6px; }

/* The site underneath: a wireframe, blocks only, so the banners are what you watch. */
.page-bar .address i { display: block; width: 42%; height: 8px; border-radius: 4px; background: var(--line); }
.wireframe { padding: 26px 32px 0; display: grid; gap: 12px; }
.wireframe i { display: block; border-radius: 6px; background: var(--line); }
.wf-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wf-nav i { width: 44px; height: 8px; }
.wf-nav .wf-logo { width: 26px; height: 26px; border-radius: 8px; margin-right: auto; background: var(--line-strong); }
.wf-title { width: 68%; height: 26px; }
.wf-line { height: 10px; width: 100%; }
.wf-line.short { width: 58%; }
.wf-image { height: 170px; margin: 10px 0; border-radius: 12px !important; background: var(--bg-deep) !important; }
.wf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wf-cols > div { display: grid; gap: 10px; }

/* While banners are up, the page sits behind a veil, as under a real modal. It lifts at the end. */
.veil {
  position: absolute; inset: 44px 0 0; z-index: 1;
  background: rgb(29 43 37 / 0.34); backdrop-filter: blur(2px) saturate(0.7); -webkit-backdrop-filter: blur(2px) saturate(0.7);
  transition: opacity 700ms var(--ease-out);
}
.stage[data-step='5'] .veil { opacity: 0; }
.stage-note { position: absolute; left: 0; right: 0; bottom: -28px; text-align: center; font-size: 0.8125rem; color: var(--ink-2); }

/* Banners: illustrations of the kinds of banner the web is full of. No real brands. They stand as one
   neat stack: only the front one is readable; the ones behind show as blank card edges. */
.banner {
  position: absolute; left: 7%; right: 7%; bottom: 8%; z-index: 5;
  font-family: var(--font-sans); color: #1f2421; background: #ffffff;
  border-radius: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 20px 40px -16px rgb(0 0 0 / 0.45);
  padding: 22px 24px;
  transform-origin: 50% 100%;
  transition: transform 520ms var(--ease-out), opacity 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
}
.banner-content { transition: opacity 300ms var(--ease-out); }
.banner[data-depth='1'] { transform: translateY(-16px) scale(0.95); }
.banner[data-depth='2'] { transform: translateY(-30px) scale(0.9); }
.banner[data-depth='3'] { transform: translateY(-42px) scale(0.85); }
.banner:not([data-depth='0']) .banner-content, .banner:not([data-depth='0']) .stamp { opacity: 0; }
.banner:not([data-depth='0']) { box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); background: #e3e7e4; border-color: transparent; overflow: hidden; }
.banner.is-gone { opacity: 0; visibility: hidden; }

.banner .banner-title { display: block; margin: 0 0 6px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.banner p { margin: 0 0 16px; font-size: 0.875rem; line-height: 1.45; color: #4b524e; }
.banner .buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.banner .b { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 8px; font-size: 0.875rem; font-weight: 600; border: 1.5px solid #c9cdca; background: #fff; color: #1f2421; transition: transform 140ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.banner .b.loud { background: #1f6fd6; border-color: #1f6fd6; color: #fff; }
.banner .b.clicked { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2f6f4f; }
.banner .fake-link.clicked { background: rgb(47 111 79 / 0.2); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.banner .b.pressed { transform: scale(0.94); }

/* 1: the platform bar */
.banner.b1 { border-top: 5px solid #1f6fd6; }
.banner.b1 .b.loud { background: #1f6fd6; }
/* 2: the preference centre */
.toggles { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.toggles li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.875rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; background: #f3f5f4; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #1f6fd6; flex: none; transition: background-color 260ms var(--ease-out); }
.switch::after { content: ''; position: absolute; top: 3px; left: 19px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); transition: left 260ms var(--ease-out); }
.switch.locked { background: #9fb4a8; }
.switch.off { background: #aab3ae; }
.switch.off::after { left: 3px; }
/* 3: a small site's own banner */
.banner.b3 { background: #fff7e8; border: 2px dashed #d8a24b; border-radius: 4px; font-family: Georgia, 'Times New Roman', serif; }
.banner.b3 .banner-title { font-size: 1.125rem; }
.banner.b3 p { color: #5a4a33; }
.banner.b3 .b { border-radius: 2px; background: #3b6d2f; border-color: #3b6d2f; color: #fff; letter-spacing: 0.04em; }
.banner.b3 .fake-link { color: #3b6d2f; text-decoration: underline; border-radius: 3px; transition: background-color 200ms var(--ease-out); }
/* 4: the pay-or-consent wall */
.banner.b4 .b.loud { background: #c2362b; border-color: #c2362b; }
/* Set aside at the end: small, lower right, still stamped. */
.banner.b4.is-aside { transform: scale(0.62) rotate(2deg); transform-origin: 100% 100%; right: 4%; bottom: 4%; }

/* Stamps: a rubber stamp pressed across the banner. Ink multiplies into the paper, so the words
   under it stay readable; the filter gives it wobbly edges and grain. */
.stamp {
  --ink: #1f6a45;
  position: absolute; left: 50%; top: 50%; z-index: 3;
  display: grid; justify-items: center; gap: 2px;
  padding: 12px 22px 11px;
  color: var(--ink);
  border: 4px solid var(--ink); border-radius: 10px;
  box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 5px var(--ink);
  font-family: var(--font-display); text-transform: uppercase; text-align: center; white-space: nowrap;
  mix-blend-mode: multiply; filter: url(#stamp-ink);
  transform: translate(-50%, -50%) rotate(-9deg);
  opacity: 0; pointer-events: none;
}
.stamp b { font-size: 2.75rem; font-weight: 800; font-stretch: 78%; letter-spacing: 0.04em; line-height: 1; }
.stamp small { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; }
.stamp[data-tone='left'] { --ink: #9a5b12; }
.banner.is-stamped .stamp { opacity: 0.9; }

/* The bite: three overlapping circles along the right-hand corner, like teeth marks. It is taken
   where the veil, not the next banner, shows through, so the hole reads. */
@property --bite-1 { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --bite-2 { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --bite-3 { syntax: '<length>'; inherits: false; initial-value: 0px; }
.banner.is-chomping {
  --bite-mask:
    radial-gradient(circle at 100% 58%, transparent var(--bite-1), #000 calc(var(--bite-1) + 0.5px)),
    radial-gradient(circle at 100% 100%, transparent var(--bite-2), #000 calc(var(--bite-2) + 0.5px)),
    radial-gradient(circle at 84% 100%, transparent var(--bite-3), #000 calc(var(--bite-3) + 0.5px));
  -webkit-mask-image: var(--bite-mask);
  -webkit-mask-composite: source-in;
  mask-image: var(--bite-mask);
  mask-composite: intersect;
}

.crumbs { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.crumb { position: absolute; width: 7px; height: 6px; border-radius: 45% 55% 40% 60%; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12); }

/* ------------------------------------------------------------------ */
/* After the story                                                     */
/* ------------------------------------------------------------------ */

.section { padding-block: 104px; }
.section h2 { font-size: clamp(2rem, 2.6vw + 1.2rem, 3.5rem); margin-bottom: 18px; }
.section .lede { color: var(--ink-2); font-size: 1.1875rem; max-width: 40rem; margin: 0 0 40px; }

/* The run log */
.log { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.log caption { text-align: left; color: var(--ink-2); font-size: 0.875rem; padding-bottom: 12px; }
.log th { text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); padding: 0 16px 10px 0; border-bottom: 1.5px solid var(--ink); }
.log td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.log td:first-child { font-weight: 650; white-space: nowrap; }
.log td:last-child, .log th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.log .how { color: var(--ink-2); }
.log .how q { color: var(--ink); quotes: '“' '”'; }
.pill { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 650; vertical-align: 1px; }
.pill.rule { background: var(--accent-soft); color: var(--accent); }
.pill.ai { background: var(--cookie-soft); color: var(--cookie-deep); }
.pill.left { background: var(--amber-soft); color: var(--amber-ink); }

/* Tested: one bar of what happened to every banner met, labelled directly */
.tested {
  --seg-refused: #1c7a4b;
  --seg-left: #d4891c;
  --seg-not: #d6cfbf;
}
@media (prefers-color-scheme: dark) {
  /* Dark steps of the same hues, validated against the dark surface. */
  .tested { --seg-refused: #48a974; --seg-left: #c0852a; --seg-not: #3a4a42; }
}
.result-bar { display: flex; gap: 2px; height: 28px; margin: 8px 0 24px; }
.result-bar .seg { position: relative; min-width: 6px; border-radius: 2px; cursor: default; }
.result-bar .seg:first-child { border-radius: 6px 2px 2px 6px; }
.result-bar .seg:last-child { border-radius: 2px 6px 6px 2px; }
.seg-refused { background: var(--seg-refused); }
.seg-left { background: var(--seg-left); }
.seg-not { background: var(--seg-not); }
.result-bar .seg:hover, .result-bar .seg:focus-visible { filter: brightness(1.08); }
.result-bar .seg[data-tip]:hover::after, .result-bar .seg[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--bg);
  font-size: 0.8125rem; font-weight: 600; pointer-events: none; z-index: 2;
}
.result-bar .seg:last-child[data-tip]:hover::after, .result-bar .seg:last-child[data-tip]:focus-visible::after { left: auto; right: 0; transform: none; }
.result-legend { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
.result-legend li { display: flex; gap: 12px; align-items: flex-start; }
.result-legend .swatch { flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 4px; }
.leg-refused .swatch { background: var(--seg-refused); }
.leg-left .swatch { background: var(--seg-left); }
.leg-not .swatch { background: var(--seg-not); box-shadow: inset 0 0 0 1px var(--line-strong); }
.leg-text strong { display: block; font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
.leg-count { display: block; color: var(--ink-2); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.leg-note { display: block; color: var(--ink-2); font-size: 0.9375rem; margin-top: 4px; }
.tested-note { color: var(--ink-2); max-width: 44rem; margin: 0; }

/* Never accept: the refusal words */
.refusals { background: var(--green-field); color: var(--on-green); }
.refusals h2 { color: var(--on-green); }
.refusals .lede { color: var(--on-green-2); }
.words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 3.2vw + 0.6rem, 3.75rem); line-height: 1.12; letter-spacing: -0.03em; font-stretch: 82%; }
.words li { color: var(--on-green); }
.words li:nth-child(3n + 2) { color: var(--cookie); }
.words li:nth-child(3n + 3) { color: var(--on-green-2); }
.words li span { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; vertical-align: super; margin-left: 4px; color: var(--on-green-2); }

/* Two plain columns */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.columns h3 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); margin-bottom: 12px; }
.columns p { color: var(--ink-2); margin: 0 0 12px; }

/* Price, as the close */
.close { text-align: center; }
.close .amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 9vw + 1rem, 6rem); letter-spacing: -0.04em; line-height: 0.95; font-stretch: 85%; margin: 0 0 12px; }
.close .amount small { font-size: 0.32em; letter-spacing: -0.01em; font-weight: 650; color: var(--ink-2); }
.close .lede { margin-inline: auto; }
.close .cta-row { justify-content: center; }
.close .fine { margin: 20px auto 0; max-width: 34rem; color: var(--ink-2); font-size: 0.9375rem; }

/* Questions */
.faq { max-width: 46rem; margin-inline: auto; }
.faq h2 { text-align: left; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 650; font-size: 1.0625rem; }
summary::-webkit-details-marker { display: none; }
summary svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); transition: transform 240ms var(--ease-out); }
details[open] summary svg { transform: rotate(45deg); }
details p { color: var(--ink-2); margin: 0 0 20px; max-width: 40rem; }

/* Legal and utility pages */
.prose { width: min(100% - 32px, 42rem); margin-inline: auto; padding-bottom: 32px; }
.prose h1 { font-size: clamp(2.25rem, 3vw + 1rem, 3.25rem); margin: 40px 0 10px; }
.prose .updated { color: var(--ink-2); margin: 0 0 36px; font-size: 0.9375rem; }
.prose h2 { font-size: 1.375rem; margin: 40px 0 10px; letter-spacing: -0.015em; }
.prose p, .prose li { max-width: 70ch; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose .summary { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 8px; }
.prose .summary ul { margin: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.prose td, .prose th { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 48px; }
.center-page img { width: 88px; height: 88px; }
.center-page h1 { font-size: clamp(2rem, 2vw + 1.2rem, 2.75rem); margin: 20px 0 10px; }
.center-page p { color: var(--ink-2); margin: 0 auto 8px; max-width: 30rem; }
.center-page .status { min-height: 1.6em; }
.center-page .cta-row { justify-content: center; margin-top: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 56px; color: var(--ink-2); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer address strong { color: var(--ink); font-weight: 650; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Small screens: the page sits on top, the steps scroll beneath it.  */
/* ------------------------------------------------------------------ */
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { order: -1; position: sticky; top: 0; z-index: 2; height: 46svh; padding: 8px 0 12px; background: var(--bg); box-shadow: -16px 0 0 var(--bg), 16px 0 0 var(--bg); }
  .story-stage::after { content: ''; position: absolute; left: -16px; right: -16px; top: 100%; height: 24px; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
  .stage { position: relative; top: 0; height: 100%; min-height: 0; }
  .stage-note { display: none; }
  .wireframe { padding: 16px 18px 0; gap: 9px; }
  .wf-nav { margin-bottom: 8px; }
  .wf-title { height: 18px; }
  .wf-image { height: 90px; }
  .banner { left: 5%; right: 5%; bottom: 6%; padding: 14px 16px; }
  .banner .banner-title { display: block; font-size: 0.9375rem; }
  .banner p { font-size: 0.75rem; margin-bottom: 10px; }
  .banner .b { min-height: 30px; padding: 0 10px; font-size: 0.75rem; }
  .toggles { gap: 5px; margin-bottom: 10px; }
  .toggles li { padding: 5px 9px; font-size: 0.75rem; }
  .stamp { padding: 7px 12px 6px; }
  .stamp b { font-size: 1.75rem; }
  .stamp small { font-size: 0.5625rem; letter-spacing: 0.12em; }
  .hero { min-height: auto; padding-block: 20px 40px; }
  .hero h1 { font-size: clamp(2.25rem, 9vw, 2.75rem); margin-bottom: 16px; }
  .hero .lede { font-size: 1.0625rem; margin-bottom: 24px; }
  .hero .scroll-cue { display: none; }
  .step { min-height: 64svh; justify-content: flex-start; padding-top: 20svh; }
  .columns { grid-template-columns: 1fr; gap: 40px; }
  .result-legend { grid-template-columns: 1fr; gap: 16px; }
  .result-bar .seg[data-tip]:hover::after, .result-bar .seg[data-tip]:focus-visible::after { left: auto; right: 0; transform: none; }
  .section { padding-block: 72px; }
  .log td:nth-child(2) { white-space: normal; }
  .header-note { display: none; }
}
@media (max-width: 520px) {
  .log thead { display: none; }
  .log tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .log td { border: 0; padding: 0; }
  .log td.how { grid-column: 1 / -1; padding-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .banner, .banner-content, .switch, .switch::after, .veil { transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
