/* botsread.app
   A technical manual on white paper: one grotesque in two widths, a strict 12-column grid,
   and one red that always means the crawler (its path, what it misses) or the one action, Add to Chrome.
   Fonts: Mona Sans and Fragment Mono, SIL OFL 1.1, latin subsets, self-hosted (fonts/OFL.txt).
   Motion: transform and opacity only. motion.js owns state, CSS owns timing. */

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: optional; /* preloaded; if it misses the first frame we keep the fallback: no layout shift */
}
@font-face {
  font-family: "Fragment Mono";
  src: url("fonts/fragment-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --red: #fc3d21;       /* large text and graphics only (3.6:1 on white), never small text */
  --red-press: #e2321a;
  --red-deep: #dc3018;  /* behind small white text (4.7:1, AA); --red passes only for large bold text */
  --red-deep-press: #c92810;
  --red-wash: rgba(252, 61, 33, .14);
  --graphite: #565b63;  /* secondary text, 6.8:1 on white */
  --rule: #c3c8ce;      /* drafting lines */
  --plate: #f0f1f2;     /* mounting plate behind specimens and code */
  --greek: #e1e4e7;     /* greeked lines, empty gauges */
  --chrome: #e3e6e9;    /* browser tab strip */

  --sans: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.32, .72, 0, 1);   /* settle, no overshoot */
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --margin: 20px;
  --gap: 16px;
  --section: 76px;
  --bar: 56px;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --margin: 40px; --gap: 24px; --section: 112px; --bar: 64px; } }
@media (min-width: 1024px) { :root { --margin: 48px; --gap: 32px; --section: 136px; } }
@media (min-width: 1280px) { :root { --margin: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 420;
  letter-spacing: -.003em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
p, ul, ol, dl, dd, figure, pre, blockquote { margin: 0; }
code, pre { font-family: var(--mono); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { text-wrap: pretty; } /* no one-word last lines */
.sentence { display: block; } /* a two-sentence heading breaks between its sentences first */
q { quotes: "“" "”"; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: var(--margin); top: -100px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- grid ---------- */
.grid, .wrap {
  max-width: calc(1312px + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
}
.grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gap); }
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid > * { grid-column: 1 / -1; }
}

/* ---------- type ---------- */
h1 {
  font-size: clamp(2.5rem, 1.1rem + 4.4vw, 4.75rem);
  font-weight: 640;
  font-stretch: 118%;
  line-height: .96;
  letter-spacing: -.042em;
}
h2 {
  font-size: clamp(2rem, 1.3rem + 2.5vw, 3.5rem);
  font-weight: 620;
  font-stretch: 115%;
  line-height: 1.02;
  letter-spacing: -.032em;
}
h3 {
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  font-weight: 620;
  font-stretch: 110%;
  line-height: 1.15;
  letter-spacing: -.016em;
}
.intro {
  margin-top: 20px;
  text-wrap: balance;
  font-size: clamp(1.125rem, 1rem + .35vw, 1.3125rem);
  line-height: 1.42;
  letter-spacing: -.008em;
  max-width: 32em;
}
.note { margin-top: 24px; font-size: .875rem; line-height: 1.5; color: var(--graphite); letter-spacing: .004em; max-width: 46em; }
.note a { color: var(--ink); }

/* telemetry numerals. Proportional figures: Mona Sans' tabular zero is slashed, and "4Ø" reads oddly. */
.num, .count-n, .big, .price, .reach b {
  font-weight: 560;
  font-stretch: 125%;
  font-variant-numeric: proportional-nums lining-nums;
  letter-spacing: -.045em;
  line-height: .9;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  font: 700 1.1875rem/1 var(--sans); /* 19px bold = large text: white on red passes AA (3:1) */
  font-stretch: 108%;
  letter-spacing: -.008em;
  text-align: center;
  text-decoration: none;
  border: 0; border-radius: 0;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .25s var(--ease);
}
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn-go { background: var(--red); color: #fff; }
.btn-go:hover { background: var(--red-press); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 1rem; font-weight: 620; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .9375rem; font-weight: 640; }
[aria-disabled="true"] { cursor: not-allowed; }
.btn[aria-disabled="true"] { opacity: .55; }

/* ---------- header: a translucent bar the page scrolls under ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--bar);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  transition: box-shadow .3s ease;
}
.top.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
@media (prefers-reduced-transparency: reduce) { .top { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
.top-grid { width: 100%; align-items: center; grid-template-columns: auto 1fr auto; }
.top-grid > * { grid-column: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.1875rem; font-weight: 660; font-stretch: 120%; letter-spacing: -.03em;
  text-decoration: none;
}
.probe { width: 12px; height: 12px; border-radius: 50%; background: var(--red); flex: none; }
.nav { display: none; justify-self: end; gap: 30px; margin-right: 30px; font-size: .9375rem; }
.nav a { text-decoration: none; padding-block: 8px; }
.nav a:hover { text-decoration: underline; }
@media (min-width: 900px) { .nav { display: flex; } }
.top .btn { grid-column: 3; }
/* Add to Chrome in the bar: drawn quietly while the hero's own button is on screen, red once it scrolls away */
.btn-bar { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-bar:hover { background: var(--ink); color: #fff; }
.top.is-live .btn-bar { background: var(--red-deep); color: #fff; box-shadow: none; } /* 15px text: needs 4.5:1 */
.top.is-live .btn-bar:hover { background: var(--red-deep-press); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(16px, 2vw, 28px); }
.hero h1 { max-width: 12.5em; }
.lead {
  margin-top: 16px;
  text-wrap: pretty;
  font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem);
  line-height: 1.4;
  letter-spacing: -.01em;
  max-width: 30em;
}
.cta { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-note { font-size: .875rem; color: var(--graphite); }
@media (min-width: 1024px) {
  .hero h1 { grid-column: 1 / 11; }
  .lead { grid-column: 1 / 9; max-width: 34em; }
  .cta { grid-column: 1 / -1; margin-top: 22px; flex-direction: row; align-items: center; gap: 20px; }
}
@media (min-width: 1280px) {
  .lead { grid-column: 1 / 8; }
  .cta { grid-column: 9 / 13; align-self: end; justify-self: end; flex-direction: column; align-items: flex-end; gap: 10px; margin-top: 0; }
}

/* the specimen: one page, two readers */
.scope {
  margin-top: clamp(22px, 2vw, 28px);
  background: var(--plate);
  padding: 12px;
  display: flex; flex-direction: column; gap: 14px;
}
.scope .panel { display: contents; }
.scope .meter { order: 1; }
.scope .sheet { order: 2; }
.scope .switch { order: 3; }
.scope .found { order: 4; }
.scope .reason { order: 5; }
.scope > figcaption { order: 6; }
@media (min-width: 640px) { .scope { padding: 20px; gap: 18px; } }
@media (min-width: 1024px) {
  .scope {
    display: grid; padding: 24px;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    column-gap: var(--gap); row-gap: 12px;
  }
  .scope .sheet { grid-column: 1; grid-row: 1; }
  .scope .panel { display: flex; flex-direction: column; gap: 16px; grid-column: 2; grid-row: 1; }
  .scope .panel > * { order: 0; }
  .scope > figcaption { grid-column: 1; grid-row: 2; }
}

.sheet { background: var(--paper); box-shadow: 0 0 0 1px var(--rule); min-width: 0; display: flex; flex-direction: column; }
/* minimal Chrome: one tab, back and forward, the address field, the extension icon */
.tabs { height: 36px; padding: 6px 10px 0; background: var(--chrome); display: flex; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  width: min(62%, 300px); height: 30px; padding: 0 12px;
  background: var(--paper); border-radius: 8px 8px 0 0;
  font-size: .75rem; color: var(--ink); white-space: nowrap;
}
.tab-icon { flex: none; width: 12px; height: 12px; border-radius: 2px; background: var(--ink); }
.tab-title { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.toolbar {
  display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--graphite);
}
.nav-arrow { flex: none; }
.omni {
  flex: 1 1 auto; min-width: 0; margin-left: 6px;
  height: 28px; padding: 0 12px; border-radius: 14px;
  display: block; line-height: 28px; /* a block, not flex: text-overflow only ellipsizes a block's own line */
  background: var(--plate); color: var(--ink);
  font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ext { flex: none; margin-left: 6px; border-radius: 4px; }

.view {
  position: relative; flex: 1 0 auto; min-height: 300px; overflow: hidden;
  container: view / inline-size;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  cursor: grab;
}
.scope.is-dragging .view { cursor: grabbing; }
@media (min-width: 640px) { .view { min-height: 330px; } }
@media (min-width: 1024px) { .view { min-height: 340px; } }

.human { position: absolute; inset: 0; background: var(--paper); }
.pg { padding: 16px 18px; }
@media (min-width: 640px) { .pg { padding: 22px 30px; } }
.pg-nav { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; font-size: .75rem; color: var(--graphite); }
.pg-nav b { margin-right: auto; color: var(--ink); font-weight: 680; font-stretch: 112%; letter-spacing: -.02em; font-size: .875rem; }
@media (max-width: 479px) { .pg-nav span { display: none; } }
.pg-h { font-size: clamp(1.375rem, 1rem + 1.4vw, 2.125rem); font-weight: 650; font-stretch: 114%; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 12px; max-width: 14em; }
.pg-p { font-size: .875rem; line-height: 1.5; max-width: 38em; margin-bottom: 14px; }
@media (min-width: 640px) { .pg-p { font-size: .9375rem; } }
.pg-btn { display: inline-block; margin-bottom: 16px; padding: 8px 14px; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 620; }
.greek { display: block; height: 7px; background: var(--greek); margin-bottom: 11px; }
.g1 { width: 94%; } .g2 { width: 86%; } .g3 { width: 90%; } .g4 { width: 58%; }

.crawler { position: absolute; inset: 0; overflow: hidden; z-index: 1; transform: translateX(-100%); will-change: transform; }
.crawler-in { position: absolute; inset: 0; background: var(--plate); transform: translateX(100%); will-change: transform; }
.raw { padding: 14px 14px; font: .75rem/1.6 var(--mono); color: var(--ink); }
@media (min-width: 640px) { .raw { padding: 22px 28px; font-size: .84375rem; line-height: 1.7; } }
.ln { display: flex; align-items: center; min-height: 1.6em; white-space: pre; }
.ln code { flex: none; font: inherit; }
.raw mark { background: var(--red-wash); color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); padding: 0 2px; }

/* annotations: a black leader from a red point on the code to a plain-words note, drawn after the scan */
.anno { position: relative; flex: 1 1 auto; display: flex; align-items: center; min-width: 0; margin-left: 14px; white-space: nowrap; }
.anno::before { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--red); opacity: 0; transition: opacity .2s ease; }
.leader { flex: 1 1 auto; min-width: 24px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform .55s var(--ease); }
.anno .say { flex: none; margin-left: 10px; font: 620 .8125rem/1.25 var(--sans); font-stretch: 106%; font-style: normal; letter-spacing: -.005em; color: var(--ink); opacity: 0; transform: translateX(-8px); transition: opacity .35s ease, transform .5s var(--ease); }
.scope.is-noted .anno::before { opacity: 1; }
.scope.is-noted .leader { transform: scaleX(1); }
.scope.is-noted .anno .say { opacity: 1; transform: none; }
.ln:nth-child(5) .anno::before, .ln:nth-child(5) .leader { transition-delay: 70ms; }
.ln:nth-child(8) .anno::before, .ln:nth-child(8) .leader { transition-delay: 140ms; }
.ln:nth-child(3) .say { transition-delay: 260ms; }
.ln:nth-child(5) .say { transition-delay: 330ms; }
.ln:nth-child(8) .say { transition-delay: 400ms; }
/* narrow windows: the note goes under its line of code instead of beside it */
@container view (max-width: 639px) {
  .raw { font-size: .75rem; line-height: 1.6; }
  .ln-note { flex-wrap: wrap; }
  .anno { flex: 0 0 100%; margin: 0 0 3px 2ch; }
  .leader { flex: 0 0 16px; min-width: 0; }
  .anno .say { font-size: .75rem; }
}

.scan { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; z-index: 2; background: var(--red); pointer-events: none; will-change: transform; }
.knob {
  position: absolute; top: 50%; left: -22px; z-index: 3;
  width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center;
  color: #fff; cursor: grab; touch-action: none;
  will-change: transform;
}
.knob::before { content: ""; position: absolute; inset: 4px; background: var(--red); transition: transform .2s var(--ease); }
.knob svg { position: relative; }
.knob:hover::before, .scope.is-dragging .knob::before { transform: scale(1.08); }
.knob:focus-visible { outline: none; }
.knob:focus-visible::before { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.hint {
  position: absolute; bottom: 14px; left: 0; z-index: 3;
  height: 28px; padding: 0 10px;
  display: flex; align-items: center;
  background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; white-space: nowrap;
  translate: 30px 0;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.scope.is-crawler .hint { translate: calc(-100% - 14px) 0; }
.scope.show-hint .hint { opacity: 1; }

/* the readout */
.switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper); }
.switch button {
  position: relative; z-index: 1;
  min-height: 44px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
  font: 620 .9375rem/1 var(--sans); font-stretch: 104%;
  color: var(--ink);
  transition: color .3s ease;
}
.switch button[aria-pressed="true"] { color: #fff; }
.switch .thumb { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--ink); transition: transform .5s var(--ease); }
.switch.is-right .thumb { transform: translateX(100%); }

.meter { display: grid; grid-template-columns: 1.25fr 1fr 1fr; column-gap: 12px; align-items: end; }
.meter dt { font-size: .8125rem; line-height: 1.25; color: var(--graphite); margin-bottom: 6px; }
.meter .num, .count-n { display: block; font-size: 2.75rem; }
.count-n { transition: color .3s ease; }
.count-n.is-one { color: var(--red); }
.count-static { display: none; }
.meter .capped .num, .m-score.capped .num { color: var(--red); }
@media (min-width: 1024px) {
  .meter { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .m-words { grid-column: 1 / -1; }
  .meter { row-gap: 12px; }
  .count-n { font-size: clamp(4rem, 2.2rem + 2.4vw, 4.75rem); }
  .meter .num { font-size: 2.75rem; }
}

.found div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: .9375rem; }
.found div:last-child { border-bottom: 1px solid var(--rule); }
.found dt { color: var(--graphite); }
.found dd { align-items: center; gap: 8px; font-weight: 620; }
.found dd::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ink); transition: background-color .2s ease; }
.found .is-missing dd::before { background: var(--red); }
/* two words, one box: whichever is shown, nothing moves */
.found dd > span, .reason > span, .tb-val > span, .tb-label > span { grid-area: 1 / 1; }
.found dd { display: inline-grid; grid-template-columns: 8px auto; }
.found dd::before { grid-area: 1 / 1; }
.found dd > span { grid-column: 2; }
.found .c, .found .is-missing .h { visibility: hidden; }
.found .is-missing .c { visibility: visible; }
.reason { display: grid; font-size: .9375rem; line-height: 1.4; }
/* one sentence leaves, then the other arrives: never two on top of each other */
.reason .h { transition: opacity .25s ease .15s, visibility 0s; }
.reason .c { visibility: hidden; opacity: 0; transition: opacity .15s ease, visibility 0s .15s; }
.scope.is-crawler .reason .h { visibility: hidden; opacity: 0; transition: opacity .15s ease, visibility 0s .15s; }
.scope.is-crawler .reason .c { visibility: visible; opacity: 1; transition: opacity .25s ease .15s, visibility 0s; }
.scope > figcaption { font-size: .8125rem; color: var(--graphite); line-height: 1.45; }

/* reduced motion: no sweep, no line; the two views cross-fade */
.scope.rm .crawler, .scope.rm .crawler-in { transform: none; }
.scope.rm .crawler { opacity: 0; transition: opacity .35s ease; }
.scope.rm.is-crawler .crawler { opacity: 1; }
.scope.rm .scan, .scope.rm .knob, .scope.rm .hint { display: none; }
.scope.rm .view { cursor: pointer; }
/* the red line exists only with motion; without it the switch does the job */
.if-still, .scope.rm .if-motion { display: none; }
.scope.rm .if-still { display: inline; }
@media (prefers-reduced-motion: reduce) {
  .leader { transform: none; transition: none; }
  .anno .say { transform: none; }
}
/* no scripting at all: show the crawler's side, which is the point */
@media (scripting: none) {
  .crawler, .crawler-in { transform: none; }
  .scan, .knob, .hint, .switch { display: none; }
  .leader { transform: none; }
  .anno::before, .anno .say { opacity: 1; transform: none; }
  [data-words] { display: none; }
  .count-static { display: block; color: var(--red); }
  .found .h { visibility: hidden; }
  .found .c { visibility: visible; }
  .found dd::before { background: var(--red); }
  .reason .h { visibility: hidden; }
  .reason .c { visibility: visible; opacity: 1; }
}

/* ---------- why: the mission profile ---------- */
.why { padding-top: var(--section); }
@media (min-width: 1024px) {
  .why h2 { grid-column: 1 / 10; }
  .why .intro { grid-column: 1 / 7; }
  .why .note { grid-column: 1 / 9; }
}
.profile {
  list-style: none; padding: 0;
  margin-top: 56px;
  position: relative;
  overflow: clip;
  view-timeline: --plot block;
}
.stage { position: relative; font-size: 1.0625rem; font-weight: 620; font-stretch: 106%; letter-spacing: -.01em; }
.stage::before { content: ""; position: absolute; background: var(--ink); }
.stage::after { content: ""; position: absolute; width: 14px; height: 14px; background: var(--ink); }
.stage-end::before { display: none; }
.stage-end::after { width: 18px; height: 18px; }
.exit { position: relative; }
.exit-h, .exit-v { display: block; overflow: visible; }
.exit path { fill: none; stroke: var(--red); stroke-width: 2.5; }
.exit::after { content: ""; position: absolute; width: 16px; height: 16px; background: var(--red); }
.reach { font-size: .9375rem; line-height: 1.35; font-weight: 450; letter-spacing: 0; max-width: 15em; }
.reach b { display: block; font-size: clamp(4rem, 2.6rem + 4vw, 6.5rem); margin-bottom: 10px; }
.reach-bot b { color: var(--red); }

/* vertical (phones, tablets) */
.stage { padding: 0 0 40px 40px; }
.stage::before { left: 7px; top: 8px; width: 2px; height: 100%; }
.stage::after { left: 1px; top: 1px; }
.stage-end { padding-bottom: 0; }
.stage-end::after { left: -1px; top: -1px; }
.exit { margin: 14px 0 0 -32px; width: 150px; }
.exit-h { display: none; }
.exit-v { width: 100%; height: 96px; }
.exit::after { right: -8px; top: 88px; }
.exit .reach { margin: 30px 0 8px 142px; width: calc(100vw - 2 * var(--margin) - 150px); max-width: 15em; }
.reach-human { margin-top: 18px; }

/* horizontal (desktop) */
@media (min-width: 1024px) {
  .profile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 360px; margin-top: 72px; }
  .stage { padding: 0 24px 0 0; }
  .stage > span { display: block; line-height: 24px; margin-bottom: 22px; }
  .stage::before { left: 0; top: 45px; width: 100%; height: 2px; }
  .stage::after { left: 0; top: 39px; }
  .stage-end::after { left: 0; top: 37px; }
  .exit { position: absolute; left: 7px; top: 46px; width: 100%; margin: 0; }
  .exit-v { display: none; }
  .exit-h { display: block; width: 100%; height: 150px; }
  .exit::after { right: -8px; top: 142px; }
  .exit .reach { position: absolute; left: calc(100% + 28px); top: 112px; margin: 0; padding: 0; width: 15em; }
  .reach-human { margin-top: 34px; }
}

/* the plotter: a paper cover with a red pen edge slides off as the profile scrolls in */
.profile::after { content: ""; display: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .profile::after {
      display: block;
      position: absolute; inset: -2px -2px -2px -4px;
      background: var(--paper);
      border-left: 2px solid var(--red);
      animation: plot linear both;
      animation-timeline: --plot;
      animation-range: entry 10% cover 45%;
      z-index: 3;
    }
  }
}
@keyframes plot { from { transform: translateX(0); } to { transform: translateX(102%); } }
@media (max-width: 1023px) {
  @keyframes plot { from { transform: translateY(0); } to { transform: translateY(102%); } }
  .profile::after { border-left: 0; border-top: 2px solid var(--red); }
}

/* ---------- examples: the log ---------- */
.examples { padding-top: var(--section); }
.ex-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.ex-bar .switch { flex: 0 0 300px; max-width: 100%; }
@media (min-width: 1024px) {
  .examples h2 { grid-column: 1 / 10; }
}
.log-head { display: none; }
.log { list-style: none; padding: 0; margin-top: 36px; border-top: 2px solid var(--ink); }
.entry { padding: 24px 0 28px; border-bottom: 1px solid var(--rule); display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.entry h3 { font-size: 1.1875rem; font-stretch: 106%; letter-spacing: -.012em; line-height: 1.2; }
.finding { display: grid; gap: 12px; }
.finding p { font-size: 1rem; line-height: 1.45; color: var(--graphite); }

.textbar { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; max-width: 30em; font-size: .875rem; }
.tb-label, .tb-val { display: grid; }
.tb-val { justify-items: end; font-weight: 640; font-variant-numeric: proportional-nums; }
.tb-track { grid-column: 1 / -1; position: relative; height: 8px; background: var(--greek); overflow: hidden; }
.tb-track i { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; transform: scaleX(1); transition: transform .9s var(--ease); }
.log[data-view="crawler"] .textbar-block .tb-track i { background: var(--red); }
.w35 { --c: .35; } .w31 { --c: .31; } .w1 { --c: .012; }
.log .c, .log[data-view="crawler"] .h { visibility: hidden; }
.log[data-view="crawler"] .c { visibility: visible; }
.log[data-view="crawler"] .tb-track i { transform: scaleX(var(--c, 1)); }
.log[data-view="crawler"] .entry:nth-child(2) .tb-track i { transition-delay: .08s; }
.log[data-view="crawler"] .entry:nth-child(3) .tb-track i { transition-delay: .16s; }

.chipset { display: grid; gap: 6px; }
.chips-label { display: grid; font-size: .8125rem; color: var(--graphite); }
.chips-label > span { grid-area: 1 / 1; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; line-height: 1.3; }
.chip::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ink); transition: background-color .3s ease; }
.chip-mono { font-family: var(--mono); font-size: .875rem; }
.log[data-view="crawler"] .chip-flip::before, .chip-block::before { background: var(--red); }
.chip-note::before { background: var(--graphite); }

.scores { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.score dt { font-size: .8125rem; color: var(--graphite); margin-bottom: 6px; }
.scores .num { display: block; font-size: 2.75rem; }
.capped .num { color: var(--red); }
.gauge { position: relative; display: block; height: 6px; margin-top: 10px; background: var(--greek); overflow: hidden; }
.gauge i { position: absolute; inset: 0; background: var(--ink); transform-origin: left center; transform: scaleX(var(--v, 0)); }
.capped .gauge i { background: var(--red); }
.v10 { --v: .10; } .v40 { --v: .40; } .v74 { --v: .74; } .v80 { --v: .80; } .v85 { --v: .85; } .v86 { --v: .86; } .v87 { --v: .87; } .v91 { --v: .91; } .v93 { --v: .93; } .v100 { --v: 1; }

@media (max-width: 1023px) {
  /* phones and tablets: the two scores sit beside the page name, the finding runs underneath */
  .entry { grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; row-gap: 14px; }
  .entry h3 { grid-column: 1; grid-row: 1; }
  .entry .scores { grid-column: 2; grid-row: 1; grid-template-columns: 4.25rem 4.25rem; gap: 12px; }
  .entry .finding { grid-column: 1 / -1; }
  .entry .score dt { font-size: .6875rem; white-space: nowrap; margin-bottom: 4px; }
  .entry .scores .num { font-size: 2.125rem; }
  .entry .gauge { height: 4px; margin-top: 8px; }
}
@media (min-width: 1024px) {
  .ex-bar .intro { margin-top: 20px; }
  .log-head {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
    margin-top: 44px; padding-bottom: 12px;
    font-size: .8125rem; color: var(--graphite);
  }
  .log-head span:nth-child(1) { grid-column: 1 / 4; }
  .log-head span:nth-child(2) { grid-column: 4 / 9; }
  .log-head span:nth-child(3) { grid-column: 9 / 11; }
  .log-head span:nth-child(4) { grid-column: 11 / 13; }
  .log { margin-top: 0; }
  .entry { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding: 26px 0 30px; }
  .entry h3 { grid-column: 1 / 4; padding-top: 2px; }
  .finding { grid-column: 4 / 9; padding-right: 24px; }
  .scores { grid-column: 9 / 13; }
  .score dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .scores .num { font-size: 3rem; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .entry .gauge i { animation: fill linear both; animation-timeline: view(); animation-range: entry 60% cover 40%; }
  }
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(var(--v, 0)); } }

.ex-notes { margin-top: 28px; display: grid; gap: 4px; }
.ex-notes > p:first-child { font-size: 1rem; line-height: 1.45; max-width: 40em; }
.ex-notes .note { margin-top: 8px; }

/* ---------- product: the popup, part by part ---------- */
.product { padding-top: var(--section); }
@media (min-width: 1024px) {
  .product h2 { grid-column: 1 / 9; }
  .product .intro { grid-column: 1 / 7; }
}
.tour { margin-top: 36px; }
.steps { list-style: none; padding: 0; display: grid; gap: 40px; }
.step h3 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); font-stretch: 116%; letter-spacing: -.03em; line-height: 1.05; }
.step p { text-wrap: balance; margin-top: 12px; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.45; max-width: 22em; color: var(--graphite); }
/* phones and tablets: each step shows the part of the real popup it talks about */
.crop {
  position: relative; margin-top: 18px;
  width: 100%; max-width: 440px; aspect-ratio: 920 / 620; overflow: hidden;
  background: #0d1117;
}
.crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* each crop starts and ends between rows of the popup, never through a line of text */
.crop-0 { aspect-ratio: 840 / 1000; }         /* the answer, the readers, both scores, the first fix in full */
.crop-0 img { object-position: 50% 0; }
.crop-1 { aspect-ratio: 840 / 772; }          /* Crawlers: "What they get" down to the end of the table */
.crop-1 img { object-position: 50% 0; }
.crop-2 { aspect-ratio: 840 / 1100; }         /* "Who may read it": the whole bot grid and its legend */
.crop-2 img { object-position: 50% 0; }
.crop-3 { aspect-ratio: 840 / 860; }          /* Toolkit: the robots.txt lines and where to paste them */
.crop-3 img { object-position: 50% 0; }
.stage-wrap { display: none; }

@media (min-width: 1024px) {
  .tour { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 24px; }
  .steps { grid-column: 1 / 5; gap: 0; padding-block: 18vh 22vh; }
  .step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; }
  /* steps out of view are dimmed by colour, not opacity: #6f747b still reads at 4.7:1 (AA), opacity .28 did not */
  .step h3, .step p { color: #6f747b; transition: color .45s ease; }
  .tour[data-step="0"] .step[data-step="0"] h3, .tour[data-step="1"] .step[data-step="1"] h3,
  .tour[data-step="2"] .step[data-step="2"] h3, .tour[data-step="3"] .step[data-step="3"] h3 { color: var(--ink); }
  .tour[data-step="0"] .step[data-step="0"] p, .tour[data-step="1"] .step[data-step="1"] p,
  .tour[data-step="2"] .step[data-step="2"] p, .tour[data-step="3"] .step[data-step="3"] p { color: var(--graphite); }
  .crop { display: none; }
  .stage-wrap { display: block; grid-column: 5 / 13; position: relative; }
  .scene {
    position: sticky; top: calc(var(--bar) + max(20px, (100vh - var(--bar) - 640px) / 2));
    display: flex; flex-direction: column; align-items: center;
  }
  .bar-chrome {
    width: min(100%, 470px); height: 44px; padding: 0 10px 0 12px;
    display: flex; align-items: center; gap: 10px;
    background: var(--paper); box-shadow: 0 0 0 1px var(--rule);
  }
  .bar-chrome .omni { margin: 0; }
  /* the address bar names the page each screenshot was taken on: step 2 is the well-built test page */
  .bar-chrome .url-good, .tour[data-step="2"] .bar-chrome .url-spa { display: none; }
  .tour[data-step="2"] .bar-chrome .url-good { display: inline; }
  .ext-slot { flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: var(--plate); border-radius: 50%; }
  .popup {
    position: relative; align-self: center;
    width: min(100%, 400px); aspect-ratio: 840 / 1200;
    margin: 6px 0 0 70px; /* hangs under the extension icon, as in Chrome */
  }
  .pop {
    position: absolute; top: 0; left: 0; width: 100%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 24px 48px -24px rgba(0, 0, 0, .45);
    opacity: 0; transform: translateY(18px);
    transition: opacity .45s ease, transform .6s var(--ease);
  }
  .tour[data-step="0"] .pop-0, .tour[data-step="1"] .pop-1, .tour[data-step="2"] .pop-2, .tour[data-step="3"] .pop-3 { opacity: 1; transform: none; }
  .callouts { display: none; }
}
@media (min-width: 1240px) {
  .popup { margin-left: 0; }
  .callouts {
    display: block; list-style: none; padding: 0; margin: 0;
    position: absolute; top: 0; bottom: 0; left: -196px; right: -196px;
    pointer-events: none;
    font-size: .875rem; line-height: 1.25; font-weight: 560;
    opacity: 0; transition: opacity .3s ease;
  }
  .tour[data-step="0"] .co-0, .tour[data-step="1"] .co-1, .tour[data-step="2"] .co-2, .tour[data-step="3"] .co-3 { opacity: 1; transition-delay: .2s; }
  .callouts li { position: absolute; top: var(--y); width: 208px; display: flex; align-items: center; gap: 10px; transform: translateY(-50%); }
  .co-l { left: 0; text-align: right; }
  .co-r { right: 0; }
  .callouts li span, .callouts li { text-wrap: balance; }
  .callouts li::after { content: ""; flex: 1 1 auto; min-width: 28px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .5s var(--ease) .25s; }
  .callouts li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--paper); }
  .co-l::after { order: 1; transform-origin: right center; }
  .co-l::before { order: 2; }
  .co-r::before { order: -2; }
  .co-r::after { order: -1; transform-origin: left center; }
  .tour[data-step="0"] .co-0 li::after, .tour[data-step="1"] .co-1 li::after,
  .tour[data-step="2"] .co-2 li::after, .tour[data-step="3"] .co-3 li::after { transform: scaleX(1); }
  .co-l { flex-direction: row; }
  .y-a { --y: 51.6%; } .y-b { --y: 51.6%; } .y-c { --y: 66.4%; }
  .y-d { --y: 32.1%; } .y-e { --y: 40.6%; }
  .y-f { --y: 20.7%; } .y-g { --y: 75.2%; }
  .y-h { --y: 68.8%; } .y-i { --y: 28.6%; }
}
@media (prefers-reduced-motion: reduce) {
  .pop { transform: none !important; }
  .callouts li::after { transform: none !important; }
}
@media (scripting: none) { .step h3 { color: var(--ink); } .step p { color: var(--graphite); } } /* no script to light the step in view: every step at full strength */

/* ---------- bots board ---------- */
.bots { padding-top: var(--section); }
.bots > .grid { row-gap: 0; }
.bots-copy .intro { margin-top: 20px; }
.bots-copy { margin-bottom: 28px; }
.bots-copy .note { max-width: 30em; }
.board { min-width: 0; }
@media (min-width: 1024px) {
  .bots h2 { grid-column: 1 / 10; }
  .bots-copy { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--bar) + 32px); margin-top: 28px; }
  .board { grid-column: 6 / 13; margin-top: 12px; }
}
.board-read {
  position: sticky; top: var(--bar); z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); row-gap: 10px;
  padding: 14px 0 16px; background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.score-label { display: block; font-size: .8125rem; color: var(--graphite); margin-bottom: 6px; }
.board-read .num { display: block; font-size: clamp(3rem, 2.4rem + 2vw, 4.5rem); transition: color .3s ease; }
.board-read .score.capped .num { color: var(--red); }
.board-read .gauge i { transition: transform .7s var(--ease), background-color .3s ease; }
.board-read .score.capped .gauge i { background: var(--red); }
.board-msg { grid-column: 1 / -1; font-size: .9375rem; line-height: 1.4; min-height: 2.8em; }
.group h3 { margin: 24px 0 6px; font-size: .9375rem; font-weight: 640; font-stretch: 104%; letter-spacing: -.005em; color: var(--graphite); }
.group ul { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.group button {
  width: 100%; min-height: 56px; padding: 10px 6px 10px 2px;
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
  background: none; border: 0; border-top: 1px solid var(--rule);
  color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color .15s ease, transform .2s var(--ease);
  /* Tab and Shift+Tab never park the focus under the sticky score readout (WCAG 2.4.11); motion.js measures it */
  scroll-margin-top: calc(var(--read-h, 13rem) + 8px);
}
.group button::before { content: ""; grid-row: 1 / span 2; width: 8px; height: 8px; background: var(--greek); box-shadow: inset 0 0 0 1px var(--rule); transition: background-color .2s ease; }
.group button:hover { background: var(--plate); }
.group button:active { transform: scale(.985); }
.ua { grid-column: 2; font: .875rem/1.2 var(--mono); }
.owner { grid-column: 2; font-size: .8125rem; line-height: 1.3; color: var(--graphite); }
.state { grid-column: 3; grid-row: 1 / span 2; font-size: .8125rem; color: var(--graphite); }
.group button[aria-pressed="true"]::before { background: var(--red); box-shadow: none; }
.group button[aria-pressed="true"] .state { color: var(--ink); font-weight: 680; }
.board:not(.show-all) [data-extra] { display: none; }
.more {
  margin-top: 18px; min-height: 44px; padding: 0 16px;
  background: none; border: 0; box-shadow: inset 0 0 0 1.5px var(--ink);
  font: 620 .9375rem/1 var(--sans); color: var(--ink); cursor: pointer;
}
.more:hover { background: var(--ink); color: #fff; }

/* ---------- myths ---------- */
.myths { padding-top: var(--section); }
.myth-list { list-style: none; padding: 0; margin-top: 44px; display: grid; gap: 64px; grid-template-columns: minmax(0, 1fr); }
.claim { font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); font-weight: 620; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.2; }
/* the strike is a drawn line, not a text decoration: it sits above the x-height middle and is drawn left to right */
.claim s { position: relative; display: inline-block; text-decoration: none; white-space: nowrap; }
.claim s::after {
  content: ""; position: absolute; left: -.08em; right: -.08em; top: 54%;
  height: max(3px, .09em); background: var(--red);
  transform-origin: left center;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .claim s::after { animation: strike linear both; animation-timeline: view(); animation-range: entry 70% cover 35%; }
  }
}
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.proof { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; }
.big { display: block; font-size: clamp(5.5rem, 2.4rem + 8.6vw, 10.5rem); }
.fact { margin-top: 14px; font-size: 1.0625rem; line-height: 1.5; max-width: 25em; text-wrap: pretty; }
.src { margin-top: 10px; font-size: .875rem; color: var(--graphite); }
.src a { color: var(--ink); }
@media (min-width: 1024px) {
  .myths h2 { grid-column: 1 / 9; }
  .myth-list { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 64px; }
  .myth { grid-column: span 6; }
}

/* 100 squares: 3 got requests, 97 didn't */
.matrix {
  --cell: 10px;
  display: grid; grid-template-columns: repeat(10, var(--cell)); gap: 3px;
  margin-bottom: .1em;
  view-timeline: --mx block;
}
@media (min-width: 640px) { .matrix { --cell: 12px; gap: 4px; } }
.matrix i { width: var(--cell); height: var(--cell); box-shadow: inset 0 0 0 1px var(--rule); --r: 0; --c: 0; }
.matrix .hit { background: var(--ink); box-shadow: none; }
.matrix i:nth-child(10n+2) { --c: 1; } .matrix i:nth-child(10n+3) { --c: 2; } .matrix i:nth-child(10n+4) { --c: 3; }
.matrix i:nth-child(10n+5) { --c: 4; } .matrix i:nth-child(10n+6) { --c: 5; } .matrix i:nth-child(10n+7) { --c: 6; }
.matrix i:nth-child(10n+8) { --c: 7; } .matrix i:nth-child(10n+9) { --c: 8; } .matrix i:nth-child(10n+10) { --c: 9; }
.matrix i:nth-child(n+11) { --r: 1; } .matrix i:nth-child(n+21) { --r: 2; } .matrix i:nth-child(n+31) { --r: 3; }
.matrix i:nth-child(n+41) { --r: 4; } .matrix i:nth-child(n+51) { --r: 5; } .matrix i:nth-child(n+61) { --r: 6; }
.matrix i:nth-child(n+71) { --r: 7; } .matrix i:nth-child(n+81) { --r: 8; } .matrix i:nth-child(n+91) { --r: 9; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .matrix i {
      animation: cell linear both;
      animation-timeline: --mx;
      animation-range: cover calc(6% + (var(--r) + var(--c)) * 1.3%) cover calc(16% + (var(--r) + var(--c)) * 1.3%);
    }
  }
}
@keyframes cell { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }

/* ---------- pricing ---------- */
.pricing { padding-top: var(--section); }
@media (min-width: 1024px) {
  .pricing h2 { grid-column: 1 / 9; }
  .pricing .intro { grid-column: 1 / 7; }
}
.plans { margin-top: 44px; display: grid; gap: 56px var(--gap); grid-template-columns: minmax(0, 1fr); }
.plan { display: flex; flex-direction: column; border-top: 2px solid var(--ink); padding-top: 18px; }
.plan h3 { font-size: 1.25rem; font-stretch: 108%; letter-spacing: -.01em; }
.price { font-size: clamp(3.25rem, 2.6rem + 1.8vw, 4.5rem); }
.plan-free .price { margin-top: 20px; }
.per { margin-top: 8px; font-size: .875rem; color: var(--graphite); }
.incl { list-style: none; padding: 0; margin: 22px 0 26px; font-size: 1rem; line-height: 1.4; }
.incl li { padding: 8px 0; border-top: 1px solid var(--rule); }
.plan-free .btn { margin-top: auto; width: 100%; }
.pro-what { margin-top: 12px; font-size: 1.0625rem; line-height: 1.45; max-width: 28em; }
.ways { list-style: none; padding: 0; margin-top: 18px; }
.ways li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 14px; align-items: end; padding: 20px 0; border-top: 1px solid var(--rule); }
.ways li:first-child { border-top: 0; }
.ways .price { font-size: clamp(2.5rem, 2.1rem + 1.2vw, 3.25rem); }
.ways .per { margin: 0 0 4px; }
.ways .btn { grid-column: 1 / -1; width: 100%; }
@media (min-width: 640px) {
  .ways li { grid-template-columns: 7.5rem 1fr auto; align-items: center; }
  .ways .btn { grid-column: 3; width: auto; min-width: 13.5em; }
  .ways .per { margin: 0; }
}
@media (min-width: 1024px) {
  .plans { grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 64px; }
  .plan-free { grid-column: 1 / 5; }
  .plan-pro { grid-column: 6 / 13; }
}
.price-note { margin-top: 36px; }
.price-note + .note { margin-top: 4px; }

/* ---------- faq ---------- */
.faq { padding-top: var(--section); }
.faq-list { margin-top: 32px; border-bottom: 1px solid var(--rule); }
@media (min-width: 1024px) {
  .faq h2 { grid-column: 1 / 5; }
  .faq-list { grid-column: 5 / 13; margin-top: 6px; }
}
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 16px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); font-stretch: 104%; letter-spacing: -.012em; line-height: 1.3; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; font-size: 1.0625rem; line-height: 1.55; max-width: 38em; }

/* ---------- closing ---------- */
.closing { padding-block: var(--section); }
.closing-cta { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (min-width: 1024px) {
  .closing h2 { grid-column: 1 / 9; font-size: clamp(2.5rem, 1rem + 3.4vw, 4.25rem); }
  .closing-cta { grid-column: 9 / 13; align-self: end; justify-self: end; align-items: flex-end; margin-top: 0; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 44px 0 36px; font-size: .875rem; line-height: 1.55; color: var(--graphite); }
.foot-grid { row-gap: 28px; }
.foot .brand { color: var(--ink); margin-bottom: 12px; }
.foot-about p { max-width: 36em; }
.foot-about p + p { margin-top: 6px; }
.foot h2 { font-size: .875rem; font-weight: 640; font-stretch: 100%; letter-spacing: 0; line-height: 1.4; color: var(--ink); margin-bottom: 6px; }
.foot address { font-style: normal; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li + li { margin-top: 4px; }
.foot a { color: var(--ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: pointer; }
.foot li a, .foot li .linklike { display: inline-block; padding-block: 4px; }
@media (min-width: 1024px) {
  .foot-about { grid-column: 1 / 6; }
  .foot-seller { grid-column: 7 / 10; }
  .foot-legal { grid-column: 10 / 13; }
}
.foot-small { margin-top: 4px; }

/* ---------- consent (site.js) ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  max-width: 440px; padding: 20px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink), 0 18px 40px -20px rgba(0, 0, 0, .35);
  font-size: .9375rem;
}
.consent[hidden] { display: none; }
.consent-actions { display: flex; gap: 8px; margin-top: 14px; }

/* =========================================================
   Secondary pages: privacy, terms, welcome, bye, 404
   ========================================================= */
.doc { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.doc > header { max-width: 42em; }
.doc h1, .simple h1 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.25rem); }
.muted { margin-top: 14px; color: var(--graphite); font-size: .9375rem; }
.measure { max-width: 42em; margin-top: 36px; }
.measure h2 { font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); margin: 52px 0 14px; letter-spacing: -.024em; }
.measure h3 { font-size: 1.1875rem; margin: 30px 0 8px; }
.measure p, .measure ul, .measure ol { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.62; }
.measure ul, .measure ol { padding-left: 1.25em; }
.measure li + li { margin-top: 6px; }
.measure code { font-size: .9em; background: var(--plate); padding: 1px 5px; }
.summary { background: var(--plate); padding: 20px 24px; margin: 0 0 14px; }
.summary p { margin: 0; }
.statement { border-left: 3px solid var(--ink); padding-left: 16px; font-weight: 560; }
.table-wrap { overflow-x: auto; margin: 0 0 14px; }
.measure table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.45; }
.measure th, .measure td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
.measure thead th { border-bottom: 2px solid var(--ink); font-weight: 640; }

.simple { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.simple .lead { margin-top: 18px; }
.box { margin-top: 56px; max-width: 42em; padding: 24px; background: var(--plate); }
.box h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.box p { margin-top: 10px; font-size: 1.0625rem; line-height: 1.55; }
.box .btn { margin-top: 18px; }
.fine { margin-top: 36px; font-size: .9375rem; color: var(--graphite); max-width: 42em; }
.fine a { color: var(--ink); }
.reasons { list-style: none; padding: 0; margin-top: 36px; max-width: 42em; border-bottom: 1px solid var(--rule); }
.reasons li { border-top: 1px solid var(--rule); }
.reasons a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; font-size: 1.125rem; font-weight: 560; text-decoration: none; }
.reasons a::after { content: ""; flex: none; width: 10px; height: 10px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); margin-right: 4px; transition: transform .25s var(--ease); }
.reasons a:hover { text-decoration: underline; }
.reasons a:hover::after { transform: translateX(4px) rotate(45deg); }

/* welcome: three steps, each with a small drawing */
.how3 { list-style: none; padding: 0; margin-top: 48px; display: grid; gap: 40px; counter-reset: s; }
@media (min-width: 900px) { .how3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); } }
.how3 li { border-top: 2px solid var(--ink); padding-top: 16px; counter-increment: s; }
.how3 li::before { content: counter(s); display: block; font-size: 3.5rem; font-weight: 560; font-stretch: 125%; letter-spacing: -.045em; line-height: .9; }
.how3 h2 { margin-top: 16px; font-size: 1.5rem; letter-spacing: -.02em; }
.how3 p { margin-top: 8px; font-size: 1.0625rem; line-height: 1.5; color: var(--graphite); max-width: 24em; }
.sketch { margin-top: 18px; height: 120px; background: var(--plate); display: grid; place-items: center; }
.sketch svg { width: 100%; max-width: 260px; height: 100px; }

/* ---------- print ---------- */
@media print {
  .top { position: static; }
  .profile::after, .scan, .knob, .hint, .switch, .consent, .stage-wrap { display: none !important; }
  .entry .gauge i, .matrix i, .claim s::after { animation: none !important; }
  .crop { display: block !important; }
}
