/* Hallmark · genre: editorial · macrostructure: Workbench · theme: custom "Price Calculator" · nav: N10 (bar state) · footer: Ft7
 * Every color, font, space and shadow comes from tokens.css. Mobile first. No keyframes and no JS motion this round. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--nav-offset); }
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--color-paper);
  background-image: radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-display); font-weight: 800; }
h2 { font-size: var(--text-xl); font-weight: 800; }
h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--color-ink); text-decoration-line: underline; text-decoration-thickness: 2px; text-decoration-color: var(--color-green); text-underline-offset: 0.15em; }
a:active { color: var(--color-green); }
button, input { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.skip { position: absolute; left: var(--space-xs); top: -6rem; z-index: var(--z-modal); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-raised); font-weight: 700; text-decoration: none; border-radius: var(--radius); }
.skip:focus-visible { top: var(--space-xs); outline-color: var(--color-yellow); }
data { font-variant-numeric: tabular-nums; }

@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--color-green); text-decoration-color: var(--color-ink); }
}

/* ---------- Nav: N10 bar state (the pill state is the planned micro-animation) ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--color-paper); border-bottom: var(--rule-ink) solid var(--color-ink); }
.nav__inner { position: relative; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-gutter); min-height: 4rem; display: flex; align-items: center; gap: var(--space-md); }
.nav__logo { display: inline-flex; flex: none; padding-block: var(--space-xs); }
.nav__logo img { height: 1rem; width: auto; }
.nav__menu {
  margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-xs);
  min-height: 2.75rem; padding: 0 var(--space-xs);
  background: var(--color-raised); border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--shadow-hard);
  font-weight: 700; font-size: var(--text-sm); cursor: pointer; white-space: nowrap;
}
.nav__menu[aria-expanded="true"] { background: var(--color-mint); color: var(--color-accent-ink); transform: translate(4px, 4px); box-shadow: var(--shadow-none); }
.nav__menu:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.nav__links ul { list-style: none; margin: 0; padding: 0; }
.nav__links a { white-space: nowrap; font-weight: 600; font-size: 0.9375rem; text-decoration-color: transparent; }
.nav__links ul a { display: block; padding: var(--space-sm) 0; }
.nav__alerts {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--space-sm);
  background: var(--color-raised); border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--shadow-hard);
  text-decoration: none;
}
.js .nav__links {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  padding: var(--space-xs) var(--page-gutter) var(--space-lg);
  background: var(--color-raised); border-bottom: var(--rule-ink) solid var(--color-ink); box-shadow: 0 4px 0 var(--color-ink);
}
.js .nav.is-open .nav__links { display: block; }
.nav__links ul li + li { border-top: var(--rule-hair) solid var(--color-rule); }
.nav__links .nav__alerts { margin-top: var(--space-sm); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { text-decoration-color: var(--color-green); color: var(--color-ink); }
  .nav__menu:hover, .nav__alerts:hover { background: var(--color-mint-2); }
}
.nav__menu:active, .nav__alerts:active { transform: translate(4px, 4px); box-shadow: var(--shadow-none); }
@media (min-width: 23.5rem) { .nav__logo img { height: 1.25rem; } .nav__menu { padding: 0 var(--space-sm); } }
@media (min-width: 30rem) { .nav__logo img { height: 1.5rem; } }
@media (min-width: 72rem) {
  .nav__inner { min-height: 4.5rem; }
  .nav__logo img { height: 1.75rem; }
  .nav__menu { display: none; }
  .nav__links, .js .nav__links { display: flex; position: static; margin-left: auto; align-items: center; gap: var(--space-lg); padding: 0; background: none; border: 0; box-shadow: none; }
  .nav__links ul { display: flex; gap: var(--space-lg); }
  .nav__links ul li + li { border: 0; }
  .nav__links ul a { padding: var(--space-xs) 0; }
  .nav__links .nav__alerts { margin-top: 0; }
}

/* ---------- Animation tags ---------- */
.mtag { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-xs); font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--color-muted); }
.mtag__chip, .tag {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; border-radius: var(--radius);
}
.mtag__chip { padding: var(--space-2xs) var(--space-xs); color: var(--color-ink); background: var(--color-raised); border: var(--rule-ink) dashed var(--color-ink); }
.mtag__chip .i, .tag .i { width: 0.9rem; height: 0.9rem; }
.tag { padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-xs); color: var(--color-raised); background: var(--color-ink); }

/* ---------- Workbench hero: the calculator and the animation slot ---------- */
.work {
  max-width: var(--page-max); margin-inline: auto;
  padding: var(--space-sm) var(--page-gutter) var(--space-2xl);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl);
  grid-template-areas: "tag" "head" "calc" "side";
}
.mtag--nav { grid-area: tag; }
.work__head { grid-area: head; display: grid; gap: var(--space-md); max-width: 48rem; }
.work__lead { max-width: var(--measure); }
.calc { grid-area: calc; }
.work__side { grid-area: side; min-width: 0; display: grid; gap: var(--space-xl); align-content: start; }
.work__side .slot { max-width: 36rem; }
@media (min-width: 56rem) {
  .mtag--nav { justify-content: flex-end; }
  .work__side { grid-template-columns: 32.25rem minmax(0, 1fr); align-items: start; }
  .work__side .slot { max-width: none; }
  .key { padding-top: var(--space-xl); }
}
@media (min-width: 78rem) {
  .work { grid-template-columns: minmax(0, 1fr) 28rem; grid-template-areas: "tag tag" "head side" "calc side"; column-gap: var(--space-xl); align-items: start; }
  .work__side { grid-template-columns: minmax(0, 1fr); }
  .key { padding-top: 0; }
}
/* From 1440 the slot is 516 px wide, so the still draws at its real 476 px. */
@media (min-width: 90rem) { .work { grid-template-columns: minmax(0, 1fr) 32.25rem; } }

/* Calculator panel */
.calc {
  min-width: 0; background: var(--color-raised);
  border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--shadow-hard);
  padding: var(--space-lg) var(--space-md) var(--space-md);
}
.calc__title { overflow-wrap: anywhere; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); line-height: var(--leading-snug); letter-spacing: -0.01em; margin-bottom: var(--space-lg); }
.calc__controls { display: grid; gap: var(--space-md); }
.calc__presets { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__label { display: block; padding: 0; margin: 0 0 var(--space-xs); font-size: var(--text-sm); font-weight: 600; line-height: var(--leading-snug); color: var(--color-muted); }
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xs); }
.preset {
  min-height: var(--control-h); padding: 0 var(--space-3xs);
  font-family: var(--font-mono); font-weight: 700; font-size: var(--text-sm); line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--color-raised); color: var(--color-ink);
  border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--shadow-hard);
  cursor: pointer; white-space: nowrap;
}
.preset[aria-pressed="true"] { background: var(--color-mint); color: var(--color-accent-ink); transform: translate(4px, 4px); box-shadow: var(--shadow-none); }
.preset:active { transform: translate(4px, 4px); box-shadow: var(--shadow-none); }
.preset:disabled, .preset[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: var(--shadow-hard-sm); }
.calc[aria-busy="true"] .preset[aria-pressed="true"] { background: var(--color-mint-2); }
.calc__row { display: flex; gap: var(--space-xs); align-items: center; }
@media (min-width: 23.5rem) {
  .presets { gap: var(--space-xs); }
  .preset { padding: 0 var(--space-xs); font-size: var(--text-base); }
}

/* Text field (shared by the calculator and the alerts form) */
.field { position: relative; display: block; flex: 1 1 7rem; min-width: 0; }
.field input {
  width: 100%; min-height: var(--control-h); padding: 0 var(--space-xl) 0 var(--space-sm);
  font-family: var(--font-mono); font-weight: 700; font-size: var(--text-base); font-variant-numeric: tabular-nums;
  color: var(--color-ink); background: var(--color-raised);
  border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--shadow-hard);
  outline: 3px solid transparent; outline-offset: 2px;
}
.field input::placeholder { color: var(--color-neutral); opacity: 1; }
.field input:focus, .field input:focus-visible { outline-color: var(--color-focus); }
.field input:disabled { opacity: 0.55; cursor: not-allowed; }
.field__glyph { position: absolute; right: var(--space-sm); top: 0; bottom: 0; margin-block: auto; width: 1.25rem; height: 1.25rem; display: none; pointer-events: none; }
.field[data-state="success"] input { border-color: var(--color-green); }
.field[data-state="success"] .field__glyph--ok { display: block; color: var(--color-green); }
.field[data-state="error"] input { border-color: var(--color-error); background: var(--color-error-2); }
.field[data-state="error"] .field__glyph--err { display: block; color: var(--color-error); }
.field__help { margin-top: var(--space-2xs); min-height: 1lh; font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--color-muted); }
.field__help.is-error { color: var(--color-error); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .field input:hover:not(:focus):not(:disabled) { background: var(--color-paper); }
  .preset:hover:not(:disabled) { background: var(--color-mint-2); }
  .preset[aria-pressed="true"]:hover { background: var(--color-mint); }
}

/* The one yellow: the calculator's primary button */
.btn-primary {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: var(--control-h); min-width: 8.25rem; padding: 0 var(--space-md);
  font-weight: 700; font-size: var(--text-base); line-height: 1; white-space: nowrap;
  color: var(--color-accent-ink); background: var(--color-yellow);
  border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--shadow-hard);
  cursor: pointer;
}
.btn-primary__ok { display: none; width: 1.1rem; height: 1.1rem; }
.btn-primary:active { transform: translate(4px, 4px); box-shadow: var(--shadow-none); }
.btn-primary[data-state="loading"] { cursor: progress; background: var(--color-raised); }
.btn-primary[data-state="success"] { background: var(--color-mint); color: var(--color-accent-ink); }
.btn-primary[data-state="success"] .btn-primary__ok { display: inline-block; color: var(--color-green); }
.btn-primary:disabled { cursor: not-allowed; color: var(--color-neutral); background: var(--color-paper-2); border-style: dashed; box-shadow: var(--shadow-hard-sm); transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled):not([data-state]) { background: var(--color-yellow-2); }
}

@media (min-width: 48rem) {
  .calc { padding: var(--space-lg); }
  .calc__controls { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-lg); align-items: start; }
  .presets { grid-template-columns: repeat(4, auto); }
  .preset { padding: 0 var(--space-sm); min-width: 4.25rem; }
}

/* Status line and results */
.calc__status { margin: var(--space-md) 0 var(--space-sm); padding: var(--space-xs) var(--space-sm); background: var(--color-paper-2); border-radius: var(--radius); font-size: var(--text-sm); font-weight: 600; line-height: var(--leading-snug); }
.calc[aria-busy="true"] .calc__results { opacity: 0.55; }
.calc__results { --cols: 1.75rem minmax(0, 1fr) auto; }
.rows { list-style: none; margin: 0; padding: 0; border-top: var(--rule-ink) solid var(--color-ink); }
.row {
  display: grid; grid-template-columns: var(--cols);
  grid-template-areas: "no who price" "no cad go" "no bar bar";
  column-gap: var(--space-sm); row-gap: var(--space-2xs); align-items: center;
  padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule);
}
.row--custom { grid-template-areas: "no who go" "no cad cad" "no bar bar"; }
.row__no {
  grid-area: no; align-self: start; width: 1.75rem; height: 1.75rem; border-radius: var(--radius-dot);
  display: grid; place-items: center; border: var(--rule-ink) solid var(--color-ink); background: var(--color-raised);
  font-family: var(--font-mono); font-weight: 700; font-size: var(--text-xs); line-height: 1;
}
.row__who { grid-area: who; min-width: 0; display: flex; flex-direction: column; }
.row__tool { font-weight: 700; line-height: 1.25; white-space: nowrap; text-decoration-color: var(--color-rule); text-decoration-thickness: 1px; }
a.row__tool { text-decoration-line: underline; }
span.row__tool { text-decoration: none; }
.row__meta { font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--color-muted); }
.row__plan { font-weight: 700; color: var(--color-ink); }
.cad {
  grid-area: cad; justify-self: start; padding: var(--space-2xs) var(--space-xs);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; line-height: 1; white-space: nowrap;
  border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); background: var(--color-mint); color: var(--color-accent-ink);
}
.cad--weekly { background: var(--color-ink); color: var(--color-raised); }
.cad--unpublished, .cad--unconfirmed { background: var(--color-raised); border-style: dashed; }
.row__bar { grid-area: bar; display: block; height: 0.875rem; background: var(--color-paper-2); }
.row__fill { display: block; height: 100%; width: calc(var(--v) * 100%); min-width: 0.5rem; background: var(--color-mint); border: var(--rule-ink) solid var(--color-ink); }
.row--weekly .row__fill { background-color: var(--color-mint); background-image: repeating-linear-gradient(135deg, var(--color-ink) 0 2px, transparent 2px 6px); }
.row--unpublished .row__fill, .row--unconfirmed .row__fill { background: var(--color-raised); border-style: dashed; }
.row__price { grid-area: price; justify-self: end; text-align: right; white-space: nowrap; font-family: var(--font-mono); font-weight: 700; font-size: var(--text-base); line-height: 1.15; font-variant-numeric: tabular-nums; }
.row__from { display: block; font-weight: 500; font-size: var(--text-xs); color: var(--color-neutral); }
.row__per { font-weight: 500; font-size: var(--text-xs); color: var(--color-neutral); }
.row__custom { grid-area: bar; justify-self: start; padding: var(--space-2xs) var(--space-xs); font-size: var(--text-sm); font-weight: 600; border: var(--rule-ink) dashed var(--color-ink); border-radius: var(--radius); white-space: nowrap; }
.row__go { grid-area: go; justify-self: end; display: inline-flex; align-items: center; gap: var(--space-3xs); min-height: 2rem; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.row__go .i { width: 1rem; height: 1rem; }
.axis { display: grid; grid-template-columns: var(--cols); column-gap: var(--space-sm); padding-top: var(--space-2xs); }
.axis__title { grid-column: 2 / -1; grid-row: 2; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-neutral); }
.axis__scale { grid-column: 2 / -1; position: relative; height: 1.5rem; border-top: var(--rule-ink) solid var(--color-ink); margin-inline: var(--space-xs); }
.axis__scale i { position: absolute; top: 0; left: calc(var(--t) * 100%); transform: translateX(-50%); padding-top: var(--space-xs); font-style: normal; font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1; color: var(--color-neutral); font-variant-numeric: tabular-nums; }
.axis__scale i::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 0.3rem; transform: translateX(-50%); background: var(--color-ink); }
.calc__out { margin-top: var(--space-sm); padding: var(--space-xs) var(--space-sm); font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--color-muted); background: var(--color-paper-2); border-radius: var(--radius); }
.calc__out b { color: var(--color-ink); }
.calc__foot { margin-top: var(--space-md); font-size: var(--text-sm); line-height: var(--leading-body); color: var(--color-muted); max-width: 70ch; }

@media (min-width: 48rem) {
  /* cad column fits the widest chip, "Set per project" */
  .calc__results { --cols: 1.75rem minmax(8.5rem, 1.15fr) 8.25rem minmax(5rem, 1.35fr) 5.75rem 3.5rem; }
  .row { grid-template-areas: "no who cad bar price go"; row-gap: 0; padding: var(--space-xs) 0; }
  .row--custom { grid-template-areas: "no who cad bar bar go"; }
  .row__no { align-self: center; }
  .axis__title { grid-column: 2 / 4; grid-row: 1; justify-self: end; padding-top: var(--space-xs); }
  .axis__scale { grid-column: 4; margin-inline: 0; }
}

/* Animation slot: dashed because nothing in it moves yet */
.slot { min-width: 0; padding: var(--space-md) var(--space-sm) var(--space-sm); background: var(--color-paper-2); border: var(--rule-ink) dashed var(--color-ink); border-radius: var(--radius); }
.slot__tag, .slot__line, .slot__cap { padding-inline: var(--space-2xs); }
.slot__tag { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
.slot__name { overflow-wrap: anywhere; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); line-height: 1.2; letter-spacing: -0.01em; }
.slot__line { margin: var(--space-xs) 0 var(--space-md); font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--color-muted); max-width: 46ch; }
.slot__still { margin: 0; }
.still { width: 100%; height: auto; background: var(--color-raised); border: var(--rule-hair) solid var(--color-ink); }
/* Two drawings of the same frame: 340 for the phone slot, 476 for the tablet and desktop slot. */
.still--wide { display: none; }
@media (min-width: 30rem) {
  .slot { padding: var(--space-md); }
  .slot__tag, .slot__line, .slot__cap { padding-inline: 0; }
  .still--narrow { display: none; }
  .still--wide { display: block; }
}
.slot__cap { margin-top: var(--space-sm); font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--color-muted); }

.still .st-label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--color-neutral); }
.still .st-count { font-family: var(--font-display); font-size: 26px; font-weight: 800; fill: var(--color-ink); }
.still .st-unit { font-family: var(--font-body); font-size: 15px; font-weight: 400; fill: var(--color-muted); }
.still .st-stop { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; fill: var(--color-neutral); }
.still .st-stop--on { font-weight: 700; fill: var(--color-ink); }
.still .st-move { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; fill: var(--color-ink); }
.still .st-move--up { fill: var(--color-green); }
.still .st-move--same { fill: var(--color-neutral); }
.still .st-no { font-family: var(--font-mono); font-size: 13px; font-weight: 700; fill: var(--color-ink); }
.still .st-name { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; fill: var(--color-ink); }
.still .st-plan { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; fill: var(--color-muted); }
.still .st-old { fill: var(--color-neutral); text-decoration: line-through; }
.still .st-new { font-weight: 700; fill: var(--color-ink); }
.still .st-price { font-family: var(--font-mono); font-size: 14px; font-weight: 700; fill: var(--color-ink); }
.still .st-axis { font-family: var(--font-mono); font-size: 12px; font-weight: 500; fill: var(--color-neutral); }
.still .s-ink { stroke: var(--color-ink); }
.still .s-rule { stroke: var(--color-rule); }
.still .f-ink { fill: var(--color-ink); }
.still .f-green { fill: var(--color-green); }
.still .f-mint { fill: var(--color-mint); }
.still .f-raised { fill: var(--color-raised); }
.still .st-dash { stroke-dasharray: 4 3; }
/* The phone drawing scales down to about 0.77 at 320 px, so its text starts larger to stay at 10 px or more. */
.still--narrow .st-label, .still--narrow .st-stop, .still--narrow .st-plan, .still--narrow .st-axis, .still--narrow .st-move, .still--narrow .st-no { font-size: 13.5px; }
.still--narrow .st-name { font-size: 16px; }
.still--narrow .st-price { font-size: 15px; }

/* Key */
.key { min-width: 0; }
.key__t { margin-bottom: var(--space-sm); font-weight: 700; font-size: var(--text-sm); }
.key__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--color-muted); }
.key__list li { display: flex; align-items: center; gap: var(--space-sm); }
.sw { position: relative; flex: none; width: 2.25rem; height: 0.875rem; background: var(--color-mint); border: var(--rule-ink) solid var(--color-ink); }
.sw--weekly { background-color: var(--color-mint); background-image: repeating-linear-gradient(135deg, var(--color-ink) 0 2px, transparent 2px 6px); }
.sw--unknown { background: var(--color-raised); border-style: dashed; }
.sw--notch::after { content: ""; position: absolute; left: 0.75rem; top: -0.45rem; width: 3px; height: 1.55rem; background: var(--color-ink); }

/* ---------- Bench: the sixteen plates ---------- */
.bench { max-width: var(--page-max); margin-inline: auto; padding: var(--space-xl) var(--page-gutter) var(--space-2xl); }
.bench__head, .accuracy__head { padding-top: var(--space-xl); border-top: var(--rule-ink) solid var(--color-ink); }
.bench__head > *, .accuracy__head > * { max-width: 52rem; }
.bench__head { display: grid; gap: var(--space-md); }
.bench__head p { max-width: var(--measure); }
.filters { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.filters__t { font-size: var(--text-sm); font-weight: 700; }
.filters__chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 2.75rem; padding: 0 var(--space-sm);
  font-weight: 600; font-size: var(--text-sm); line-height: 1; white-space: nowrap;
  background: var(--color-raised); color: var(--color-ink);
  border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--shadow-hard); cursor: pointer;
}
.chip__n { padding: var(--space-2xs) var(--space-xs); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; background: var(--color-paper-2); border-radius: 2px; }
.chip[aria-pressed="true"] { background: var(--color-mint); color: var(--color-accent-ink); transform: translate(4px, 4px); box-shadow: var(--shadow-none); }
.chip[aria-pressed="true"] .chip__n { background: var(--color-raised); }
.chip:active { transform: translate(4px, 4px); box-shadow: var(--shadow-none); }
.chip:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: var(--shadow-hard-sm); }
@media (hover: hover) and (pointer: fine) {
  .chip:hover:not(:disabled) { background: var(--color-mint-2); }
  .chip[aria-pressed="true"]:hover { background: var(--color-mint); }
}
.bench__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs) var(--space-lg); margin: var(--space-md) 0 var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.bench__status { font-weight: 600; color: var(--color-ink); }
.bench__disclose a { white-space: nowrap; }
.plates { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.plate {
  min-width: 0; display: flex; flex-direction: column; gap: var(--space-sm);
  padding: var(--space-md); background: var(--color-raised);
  border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--shadow-hard);
}
.plate[hidden] { display: none; }
@supports (grid-template-rows: subgrid) {
  .plates { row-gap: var(--space-lg); }
  .plate { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: var(--space-sm); }
}
.plate__top { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); line-height: 1.2; }
.plate__no { flex: none; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius-dot); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; line-height: 1; }
.plate__cat { display: inline-flex; align-items: flex-start; gap: var(--space-2xs); min-width: 0; font-weight: 600; color: var(--color-muted); }
.plate__cat .i { width: 1.1rem; height: 1.1rem; color: var(--color-ink); }
/* "Test pending" rides the plate's top edge as a tab; a tested plate would swap it for the test number and date. */
.plate { position: relative; }
.pending {
  position: absolute; top: calc(-1 * var(--space-sm)); right: var(--space-sm);
  display: inline-flex; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs) var(--space-xs); white-space: nowrap;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--color-raised); border: var(--rule-ink) dashed var(--color-ink); border-radius: var(--radius);
}
.pending .i { width: 0.95rem; height: 0.95rem; }
.plate__name { font-size: var(--text-lg); font-weight: 800; }
.plate__note { font-size: var(--text-sm); line-height: 1.5; color: var(--color-muted); }
.plate__price { display: flex; flex-direction: column; gap: var(--space-3xs); padding-top: var(--space-sm); border-top: var(--rule-ink) solid var(--color-ink); }
.plate__plan { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.plate__amount { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-xl); line-height: 1.1; font-variant-numeric: tabular-nums; }
.plate__per { font-weight: 500; font-size: var(--text-sm); color: var(--color-neutral); }
.plate__alt { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-neutral); }
.plate__spec { margin: 0; display: grid; gap: var(--space-xs); align-content: start; font-size: var(--text-sm); line-height: var(--leading-snug); }
.plate__spec div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-xs); }
.plate__spec dt { font-weight: 600; color: var(--color-neutral); }
.plate__spec dd { margin: 0; }
.tbc { display: inline-block; padding: var(--space-3xs) var(--space-xs); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); background: var(--color-tbc); border-radius: 2px; }
.plate__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; align-self: end; gap: 0 var(--space-md); padding-top: var(--space-2xs); border-top: var(--rule-hair) solid var(--color-rule); }
.plate__more, .plate__go { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 2.75rem; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.plate__more .i, .plate__go .i { width: 1rem; height: 1rem; }
@media (min-width: 40rem) { .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 85rem) { .plates { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Rank tracker accuracy: the swapped-results stages ---------- */
.accuracy { max-width: var(--page-max); margin-inline: auto; padding: var(--space-2xl) var(--page-gutter) var(--space-xl); }
.accuracy__head { display: grid; gap: var(--space-md); }
.accuracy__head p { max-width: var(--measure); }
.stages { margin: var(--space-xl) 0 0; padding: var(--space-lg) var(--space-md); background: var(--color-raised); border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--shadow-hard); }
.stages__cap { margin-bottom: var(--space-lg); font-weight: 700; font-size: var(--text-sm); }
.stages__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }
.stage { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: var(--space-sm); row-gap: var(--space-2xs); }
.stage__no { grid-row: span 2; position: relative; z-index: var(--z-base); width: 2.25rem; height: 2.25rem; display: grid; place-items: center; color: var(--color-accent-ink); background: var(--color-mint); border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius-dot); font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; line-height: 1; }
.stage__no .i { width: 1.1rem; height: 1.1rem; }
/* Connectors run from each stage to the next; the last leg, from today to the planned test, is dashed. */
.stage:not(:last-child)::after { content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.25rem; bottom: calc(-1 * var(--space-lg)); width: 2px; background: var(--color-ink); }
.stage--today:not(:last-child)::after { background: none; border-left: var(--rule-ink) dashed var(--color-ink); }
.stage--today .stage__no { background: var(--color-ink); color: var(--color-raised); }
.stage--next .stage__no { background: var(--color-raised); border-style: dashed; }
.stage__when { align-self: end; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; line-height: 1.2; }
.stage p { font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--color-muted); }
.stages__src { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-neutral); }
.mtag--stages { margin-top: var(--space-sm); }
.accuracy__body { display: grid; gap: var(--space-lg); margin-top: var(--space-xl); }
.accuracy__claim { max-width: var(--measure); }
.planned { padding: var(--space-lg); background: var(--color-paper-2); border: var(--rule-ink) dashed var(--color-ink); border-radius: var(--radius); }
.planned h3 { margin-bottom: var(--space-sm); }
@media (min-width: 64rem) {
  .stages { padding: var(--space-lg); }
  .stages__list { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--space-md); }
  .stage:not(:last-child)::after { left: 2.25rem; right: calc(-1 * var(--space-md)); top: calc(1.125rem - 1px); bottom: auto; width: auto; height: 2px; }
  .stage--today:not(:last-child)::after { border-left: 0; border-top: var(--rule-ink) dashed var(--color-ink); height: 0; }
  .stage { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .stage__no { grid-row: auto; }
  .stage__when { margin-top: var(--space-xs); }
  .mtag--stages { justify-content: flex-end; }
  .accuracy__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-2xl); align-items: start; }
}

/* ---------- Signed: byline and disclosure ---------- */
.signed { max-width: var(--page-max); margin-inline: auto; padding: var(--space-2xl) var(--page-gutter) var(--space-3xl); display: grid; gap: var(--space-xl); }
.signed__who { display: grid; gap: var(--space-lg); }
.byline { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); align-items: start; }
.byline img { width: 112px; height: 112px; border: var(--rule-hair) solid var(--color-ink); }
.byline__text { display: grid; gap: var(--space-sm); max-width: var(--measure); }
.byline__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.byline__links a { display: inline-block; padding-block: var(--space-xs); font-weight: 600; white-space: nowrap; }
.notice { padding: var(--space-lg); background: var(--color-raised); border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--shadow-hard); display: grid; gap: var(--space-sm); align-content: start; }
.notice__t { justify-self: start; padding: var(--space-2xs) var(--space-xs); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent-ink); background: var(--color-mint); border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); }
.notice__line { font-size: var(--text-lg); font-weight: 600; line-height: var(--leading-snug); }
.notice__small { font-size: var(--text-sm); color: var(--color-muted); }
.notice__more a { font-weight: 600; white-space: nowrap; }
@media (min-width: 30rem) { .byline { grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--space-lg); } }
@media (min-width: 64rem) { .signed { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: var(--space-2xl); align-items: start; } }

/* ---------- Footer: Ft7, price-change alerts first ---------- */
.foot { background: var(--color-paper-2); border-top: var(--rule-ink) solid var(--color-ink); }
.foot__inner { max-width: var(--page-max); margin-inline: auto; padding: var(--space-2xl) var(--page-gutter) var(--space-xl); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.alerts { display: grid; gap: var(--space-xs); max-width: 40rem; }
.alerts__t { overflow-wrap: anywhere; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: var(--leading-tight); letter-spacing: -0.02em; }
.alerts__line { margin-bottom: var(--space-xs); color: var(--color-muted); }
.alerts__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.field--email { flex: 1 1 15rem; }
.field--email input { font-family: var(--font-body); font-weight: 600; font-variant-numeric: normal; }
.btn-alt {
  flex: none; min-height: var(--control-h); padding: 0 var(--space-md);
  font-weight: 700; font-size: var(--text-base); line-height: 1; white-space: nowrap;
  color: var(--color-accent-ink); background: var(--color-mint);
  border: var(--rule-ink) solid var(--color-ink); border-radius: var(--radius); box-shadow: var(--shadow-hard); cursor: pointer;
}
.btn-alt:active { transform: translate(4px, 4px); box-shadow: var(--shadow-none); }
.btn-alt:disabled { cursor: not-allowed; color: var(--color-neutral); background: var(--color-paper-2); border-style: dashed; box-shadow: var(--shadow-hard-sm); transform: none; }
@media (hover: hover) and (pointer: fine) { .btn-alt:hover:not(:disabled) { background: var(--color-mint-2); } }
.foot__small { display: grid; gap: var(--space-sm); font-size: var(--text-sm); }
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-md); }
.foot__links a { display: inline-block; padding-block: var(--space-xs); color: var(--color-muted); white-space: nowrap; text-decoration-color: var(--color-rule); text-decoration-thickness: 1px; }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); color: var(--color-neutral); }
.foot__base img { height: 1rem; width: auto; }
@media (min-width: 64rem) { .foot__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-2xl); align-items: end; } }

/* ---------- Touch: every link and button reaches 44 px on coarse pointers ---------- */
@media (pointer: coarse) {
  .row__go, .foot__links a, .byline__links a, .notice__more a, .bench__disclose a, .nav__links ul a { min-height: 2.75rem; display: inline-flex; align-items: center; }
}

/* ---------- State changes: short and plain, and none at all under reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .preset, .chip, .btn-primary, .btn-alt, .nav__menu, .nav__alerts {
    transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-instant) var(--ease-out), box-shadow var(--dur-instant) var(--ease-out);
  }
  .field input { transition: background-color var(--dur-short) var(--ease-out); }
}
