/* binpacked.com
   Paper, ink and one blue. Squares everywhere.
   ------------------------------------------------------------------ */

@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: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* System fonts resized to the brand fonts' proportions, so the text barely
   moves when the real files arrive. Measured against Arial: Mona Sans sets
   3.7% wider at text sizes and 13.5% wider in the expanded headline cut. */

@font-face {
  font-family: "Mona Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  size-adjust: 103.7%;
  ascent-override: 105.1%;
  descent-override: 30.9%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Mona Sans Display Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold");
  font-weight: 700 900;
  size-adjust: 113.5%;
  ascent-override: 96%;
  descent-override: 28.2%;
  line-gap-override: 0%;
}

/* ── Tokens ─────────────────────────────────────────────────────── */

:root {
  color-scheme: light dark;

  --paper: #f4f2ec;
  --surface: #fbfaf7;
  --ink: #0d0e12;
  --ink-2: #45464d;
  --ink-3: #62636a;
  --line: rgb(13 14 18 / 0.13);
  --line-2: rgb(13 14 18 / 0.3);

  /* One hue, two steps: solid means memory in use, tint means memory held but never touched. */
  --blue: #1e40f9;
  --blue-hover: #1632d6;
  --blue-tint: #7ba1fd;
  --on-blue: #ffffff;
  --on-tint: #0d0e12;
  --track: rgb(30 64 249 / 0.16);
  --link: #1e40f9;
  --good: #006300;
  --bad: #d03b3b; /* a status colour, used only with an icon and a label */

  --font-sans: "Mona Sans", "Mona Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Mona Sans", "Mona Sans Display Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-cell: 2px;
  --r: 4px;
  --r-lg: 8px;
  --ease: cubic-bezier(0.3, 0.7, 0.1, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0e12;
    --surface: #15171d;
    --ink: #f1efe8;
    --ink-2: #b9b8b2;
    --ink-3: #8b8b90;
    --line: rgb(241 239 232 / 0.13);
    --line-2: rgb(241 239 232 / 0.28);

    --blue: #5f8afd;
    --blue-hover: #7b9eff;
    --blue-tint: #2e4b9f;
    --on-blue: #0d0e12;
    --on-tint: #ffffff;
    --track: rgb(95 138 253 / 0.22);
    --link: #83a8ff;
    --good: #0ca30c;
  }
}

/* The inverted band is always dark, whatever the page theme. */
.band {
  color-scheme: dark;
  --paper: #0d0e12;
  --surface: #15171d;
  --ink: #f1efe8;
  --ink-2: #b9b8b2;
  --ink-3: #8b8b90;
  --line: rgb(241 239 232 / 0.13);
  --line-2: rgb(241 239 232 / 0.28);
  --blue: #5f8afd;
  --blue-hover: #7b9eff;
  --blue-tint: #2e4b9f;
  --on-blue: #0d0e12;
  --on-tint: #ffffff;
  --track: rgb(95 138 253 / 0.22);
  --link: #83a8ff;
  --good: #0ca30c;
}

@media (prefers-color-scheme: dark) {
  .band {
    --paper: #111319;
    --surface: #191c24;
  }
}

/* ── Base ───────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-sans);
  font-stretch: 100%;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ul,
ol {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

h3 {
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong,
b {
  font-weight: 650;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--blue);
  color: var(--on-blue);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  font-weight: 650;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.label,
.eyebrow {
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ico {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: inherit;
  font: 650 1rem/1 var(--font-sans);
  font-stretch: 105%;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--blue);
  color: var(--on-blue);
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn-lg {
  min-height: 56px;
  padding: 0 24px;
  font-size: 1.125rem;
}

.btn .ico {
  transition: transform 0.2s var(--ease);
}

.btn:hover .ico {
  transform: translateX(2px);
}

.btn[href^="#"]:hover .ico {
  transform: translateY(2px);
}

/* ── Mark ───────────────────────────────────────────────────────── */

.m-b {
  fill: var(--blue);
}

.m-free {
  fill: var(--blue-tint);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  width: 26px;
  height: 26px;
  flex: none;
  overflow: visible;
}

.wordmark {
  position: relative;
  top: -0.126em; /* puts the x-height on the mark's centre line, as in the logo files */
  font-weight: 680;
  font-stretch: 110%;
  font-size: 1.3125rem;
  letter-spacing: -0.025em;
  line-height: 1;
}

/* The squares drop into the bin once, on load. */
.mark-live rect {
  transform-box: fill-box;
  animation: drop 0.5s var(--ease) both;
}

.mark-live rect:nth-child(5) { animation-delay: 0.05s; }
.mark-live rect:nth-child(6) { animation-delay: 0.13s; }
.mark-live rect:nth-child(4) { animation-delay: 0.21s; }
.mark-live rect:nth-child(3) { animation-delay: 0.29s; }
.mark-live rect:nth-child(1) { animation-delay: 0.4s; }
.mark-live rect:nth-child(2) { animation-delay: 0.48s; }

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

/* ── Nav ────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--ink);
}

@media (max-width: 899px) {
  .nav-links {
    display: none;
  }

  .nav .btn {
    margin-left: auto;
  }
}

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(36px, 5.5vw, 72px) clamp(24px, 4vw, 48px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.55), transparent 78%);
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.55), transparent 78%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}

.hero-copy {
  container-type: inline-size;
  padding-top: clamp(0px, 2vw, 28px);
}

h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-size: clamp(2.5rem, 15.4cqi, 4.75rem); /* sized so the longest line, "Stop paying", just fits the column */
}

/* "Empty space" is set hollow: an outline with nothing in it. */
.hollow {
  color: var(--paper);
  letter-spacing: 0.012em; /* room for each letter's outline */
  -webkit-text-stroke: 0.044em var(--blue);
  paint-order: stroke fill;
}

@supports not (-webkit-text-stroke: 1px black) {
  .hollow {
    color: var(--blue);
  }
}

.lede {
  margin-top: 28px;
  max-width: 33em;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.lede-tag {
  margin-top: 14px;
  font-size: 1.1875rem;
  font-weight: 650;
  font-stretch: 105%;
  letter-spacing: -0.01em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding-top: 0;
  }
}

/* On phones the two buttons stack, full width, instead of wrapping when they happen not to fit. */
@media (max-width: 479px) {
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

/* ── Figure panels ──────────────────────────────────────────────── */

.fig {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}

.fig-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--line);
}

.fig-title {
  font: 500 0.8125rem/1.35 var(--font-mono);
  color: var(--ink);
}

.fig-no {
  margin-right: 0.9em;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fig-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink-2);
  font: 500 0.8125rem/1 var(--font-mono);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.fig-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.fig-btn:active .ico {
  transform: rotate(180deg);
}

.fig-btn .ico {
  transition: transform 0.3s var(--ease);
}

.fig figcaption {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-3);
}

.fig-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}

.noscript {
  margin: 16px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.noscript-flush {
  margin: 0 0 20px;
}

/* Legend */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.legend-pad {
  padding: 12px 16px 0;
}

.sw {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: var(--r-cell);
}

.sw-use { background: var(--blue); }
.sw-held { background: var(--blue-tint); }
.sw-free { box-shadow: inset 0 0 0 1px var(--line-2); }

.key {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 0;
  border-top: 2px solid var(--blue);
}

.key-each {
  position: relative;
  border-top-color: var(--ink-3);
}

.key-each::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
  box-shadow: 0 0 0 1.5px var(--surface);
}

.key-sum {
  border-top: 2px dashed var(--ink);
}

/* Stat tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.tile {
  min-width: 0;
  padding: 14px 16px 16px;
  border-left: 1px solid var(--line);
}

.tile:first-child {
  border-left: 0;
}

.tile dt {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-3);
}

.tile dd {
  margin-top: 4px;
}

.tile-v {
  display: block;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.tile-v small {
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
}

.tile-sub,
.delta {
  display: block;
  margin-top: 3px;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--ink-3);
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--good);
}

.delta[hidden] {
  display: none;
}

.delta .ico {
  width: 12px;
  height: 12px;
}

/* Table view */

.tableview {
  font-size: 0.8125rem;
}

.tableview summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--ink-2);
  font: 500 0.8125rem/1.3 var(--font-mono);
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 0.25em;
}

.tableview summary::-webkit-details-marker {
  display: none;
}

.tableview summary:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.tableview[open] {
  flex-basis: 100%;
}

.table-scroll {
  max-height: 320px;
  margin-top: 8px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 7px 12px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  color: var(--ink-3);
  font-weight: 500;
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

tbody th {
  font-weight: 500;
  font-family: var(--font-mono);
}

/* Tooltip */

.tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  min-width: 150px;
  max-width: 260px;
  padding: 9px 11px 10px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.22);
}

.tip[hidden] {
  display: none;
}

.tip-h {
  display: block;
  margin-bottom: 5px;
  font: 500 0.75rem/1.3 var(--font-mono);
  opacity: 0.75;
}

.tip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.tip-row b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.tip-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.82;
}

.tip-row i {
  width: 10px;
  height: 0;
  border-top: 2px solid currentColor;
}

.tip-row.is-total i {
  border-top-color: var(--blue-tint);
}

.tip-row.is-total span {
  opacity: 1;
}

.tip-sep {
  height: 1px;
  margin: 6px 0;
  background: currentColor;
  opacity: 0.2;
}

/* ── Fig. 1: the fleet ────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.steps label {
  position: relative;
  display: block;
  cursor: pointer;
}

.steps input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.steps span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.15s, background-color 0.15s;
}

.steps label:last-of-type span {
  border-right: 0;
}

.steps b {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: var(--r-cell);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: 600 0.75rem/1 var(--font-mono);
  transition: background-color 0.15s, color 0.15s;
}

.steps label:hover span {
  color: var(--ink);
}

.steps input:checked + span {
  color: var(--ink);
  background: var(--paper);
}

.steps input:checked + span b {
  background: var(--blue);
  color: var(--on-blue);
  box-shadow: none;
}

.steps input:checked + span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
}

.steps input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: -3px;
}

@media (max-width: 519px) {
  .steps span {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
    font-size: 0.8125rem;
  }
}

/* The stage is laid out by script, which sets its height. Until then, while it
   is still empty, hold the space it will take: twelve square workers in four
   columns, three on a narrow figure, six on a wide one. The ratio must not
   outlive the placeholder, or the scripted height would drive the width. */
.sim {
  container-type: inline-size;
}

.sim-stage {
  position: relative;
  margin: 16px;
}

.sim-stage:empty {
  aspect-ratio: 4 / 3;
}

@container (max-width: 431.9px) {
  .sim-stage:empty {
    aspect-ratio: 3 / 4;
  }
}

@container (min-width: 872px) {
  .sim-stage:empty {
    aspect-ratio: 3 / 1;
  }
}

.worker {
  position: absolute;
  left: 0;
  top: 0;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  transition: border-color 0.4s 0.3s, opacity 0.4s 0.3s;
}

/* Cell grid inside each worker. */
.worker::before {
  content: "";
  position: absolute;
  inset: 2px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: -0.5px -0.5px;
  opacity: 0.55;
  transition: opacity 0.4s 0.3s;
}

.worker-tag {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity 0.3s;
}

.worker.is-free {
  border-style: dashed;
}

.worker.is-free::before {
  opacity: 0;
}

.worker.is-free .worker-tag {
  opacity: 1;
  transition-delay: 0.55s;
}

.worker-head {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 2px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 3px 4px 0 0;
  border-bottom: 1px dashed var(--ink-3);
  background: var(--surface);
  font: 500 0.625rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity 0.3s;
}

.worker.has-head .worker-head {
  opacity: 1;
  transition-delay: 0.6s;
}

.vm {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: var(--r-cell);
  transition: transform 0.85s var(--ease), opacity 0.4s ease;
  will-change: transform;
}

.vm-held {
  background: var(--blue-tint);
  transform-origin: 0 100%;
}

.vm-use {
  background: var(--blue);
}

.vm.is-hot {
  z-index: 3;
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.sim-stage.no-anim .vm,
.sim-stage.no-anim .worker,
.sim-stage.no-anim .worker::before,
.sim-stage.no-anim .worker-tag,
.sim-stage.no-anim .worker-head {
  transition: none !important;
}

.sim-caption {
  min-height: 5.6em;
  padding: 0 16px 14px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-2);
}

@media (min-width: 520px) {
  .sim-caption {
    min-height: 2.8em;
  }
}

/* ── Sections ───────────────────────────────────────────────────── */

.sec {
  padding-block: clamp(72px, 10vw, 136px);
}

.sec-tint {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.sec-rule {
  border-top: 1px solid var(--line);
}

.band {
  background: var(--paper);
  color: var(--ink);
}

.sec-head {
  max-width: 47rem;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.sec-no {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sec-no b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-cell);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  margin-top: 20px;
  font-size: clamp(2.125rem, 1.25rem + 3.5vw, 3.5rem);
}

.sec-lead {
  max-width: 35em;
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ── 01 The problem ─────────────────────────────────────────────── */

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.anat-body {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.anat-worker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  margin-inline: auto;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}

.anat-worker::before {
  content: "";
  position: absolute;
  inset: 3px 4px 4px 3px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc((100% + 1px) / 8) calc((100% + 1px) / 8);
  background-position: -1px -1px;
}

.anat-worker i {
  position: relative;
  margin: 1.5px;
  border-radius: 3px;
}

.anat-worker .a-held { background: var(--blue-tint); }
.anat-worker .a-use { background: var(--blue); z-index: 1; }

.anat-key {
  padding: 0;
  list-style: none;
}

.anat-key li {
  display: grid;
  grid-template-columns: 10px 3.4em minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.anat-key li:last-child {
  padding-bottom: 0;
}

.anat-key b {
  font-size: 1.625rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1;
}

.anat-key span {
  font-weight: 650;
  line-height: 1.3;
}

.anat-key small {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-3);
}

.kinds {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.kind {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}

.kind h3 {
  margin-top: 12px;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
}

.kind > p:not(.label):not(.fix) {
  margin-top: 14px;
  max-width: 40em;
  color: var(--ink-2);
}

.fix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font: 500 0.8125rem/1 var(--font-mono);
  color: var(--ink);
}

.pull {
  max-width: 31em;
  margin-top: clamp(40px, 6vw, 80px);
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.125rem);
  font-stretch: 112%;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--ink-3);
}

.pull strong {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 900px) {
  .anatomy,
  .calc-out {
    position: sticky;
    top: 88px;
  }
}

@media (max-width: 899px) {
  .problem-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 560px) and (max-width: 899px) {
  .anat-body {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    align-items: center;
  }
}

/* ── 02 How it works ────────────────────────────────────────────── */

.how-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.how-row:last-child {
  padding-bottom: 0;
}

.how-row-flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.how-row-flip .how-copy {
  order: 2;
}

.how-copy h3 {
  margin-top: 14px;
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  font-stretch: 118%;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.how-copy > p:not(.label) {
  margin-top: 18px;
  color: var(--ink-2);
}

.sq-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.sq-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
}

.sq-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 1.5px;
  background: var(--blue);
}

.sq-list strong {
  color: var(--ink);
}

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.modes .kind h3 {
  font-size: 1.375rem;
}

@media (max-width: 559px) {
  .modes {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 899px) {
  .how-row,
  .how-row-flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .how-row-flip .how-copy {
    order: 0;
  }
}

/* Fig. 3: meters */

.pair-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pair-col {
  padding: 16px;
}

.pair-col + .pair-col {
  border-left: 1px solid var(--line);
}

.pair-h {
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mnode {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}

.mnode-name {
  font: 500 0.8125rem/1.3 var(--font-mono);
}

.mnode-name span {
  margin-left: 10px;
  font-family: var(--font-sans);
  color: var(--ink-3);
}

.meter {
  display: grid;
  grid-template-columns: 4.4em minmax(0, 1fr) 2.6em;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.m-track {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--track);
}

.m-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.m-track i[data-v="63"] { width: 63%; }
.m-track i[data-v="75"] { width: 75%; }
.m-track i[data-v="81"] { width: 81%; }
.m-track i[data-v="94"] { width: 94%; }
.m-track i[data-v="100"] { width: 100%; }

/* Past its limit: the one place a status colour appears, always beside an icon and words. */
.m-over {
  background: color-mix(in srgb, var(--bad) 28%, transparent);
}

.m-over i {
  background: var(--bad);
}

.m-v {
  text-align: right;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.mnode-note {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-3);
}

.mnode-flag {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink-2);
}

.mnode-flag .ico {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--bad);
}

.mnode-flag b {
  color: var(--ink);
}

@media (max-width: 559px) {
  .pair-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .pair-col + .pair-col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Fig. 4: the chart */

.chart {
  container-type: inline-size;
}

.chart-plot {
  position: relative;
  min-height: 334px;
  padding: 10px 8px 4px;
}

@container (max-width: 475.9px) {
  .chart-plot {
    min-height: 264px;
  }
}

.chart-plot svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  outline-offset: 2px;
}

.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { stroke: var(--line-2); stroke-width: 1; }

.ch-tick {
  fill: var(--ink-3);
  font: 400 11px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.ch-each {
  fill: none;
  stroke: var(--ink-3);
  stroke-opacity: 0.6;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ch-total {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ch-area {
  fill: var(--blue);
  fill-opacity: 0.1;
}

.ch-dot-each {
  fill: var(--ink-3);
  stroke: var(--surface);
  stroke-width: 2;
}

.ch-dot-total {
  fill: var(--blue);
  stroke: var(--surface);
  stroke-width: 2;
}

.ch-sum {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.ch-gap {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1;
}

.ch-label {
  fill: var(--ink);
  font: 650 12px/1 var(--font-sans);
}

.ch-label-dim {
  fill: var(--ink-3);
  font: 400 11px/1 var(--font-sans);
}

.ch-halo {
  stroke: var(--surface);
  stroke-width: 4;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.ch-cross {
  stroke: var(--ink-2);
  stroke-width: 1;
}

.ch-hit {
  fill: transparent;
  cursor: crosshair;
}

/* ── 03 Safety ──────────────────────────────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--line-2);
}

.b {
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--surface);
}

.b7 { grid-column: span 7; }
.b5 { grid-column: span 5; }

.b h3 {
  font-size: 1.25rem;
}

.b p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--ink-2);
}

.glyph {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: clamp(24px, 3.4vw, 44px);
  fill: var(--blue);
  shape-rendering: crispEdges;
}

.glyph .g-dim {
  fill: var(--blue-tint);
}

@media (max-width: 1023px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b7,
  .b5 {
    grid-column: span 1;
  }
}

@media (max-width: 599px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .glyph {
    margin-bottom: 20px;
  }
}

/* ── 04 Calculator ──────────────────────────────────────────────── */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.field {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.field:first-child {
  padding-top: 0;
  border-top: 0;
}

.field label {
  font-weight: 650;
}

.field-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field output {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.hint {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-3);
}

.formula code {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--line);
  color: var(--ink-2);
  font: 0.8125rem/1.4 var(--font-mono);
}

.numfield {
  display: flex;
  align-items: center;
  height: 56px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.numfield span {
  margin-left: 10px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}

.numfield .numfield-pre {
  margin: 0 6px 0 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

/* The two typed-in numbers sit side by side where there is room. */
.field-pair {
  display: grid;
  gap: 22px 20px;
}

@media (min-width: 520px) {
  .field-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tile-money {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
}

.tile-money[hidden] {
  display: none;
}

.tile-money.is-less {
  color: var(--good);
}

.tile-money .ico {
  width: 12px;
  height: 12px;
}

.numfield input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.numfield:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 28px;
  margin: 8px 0 0;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--blue) var(--fill, 50%), var(--track) var(--fill, 50%));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--surface);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--track);
}

input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--blue);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--surface);
}

input[type="range"]:focus-visible {
  outline: 0;
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--blue);
}

input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--blue);
}

.calc-out {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.calc-big {
  display: block;
  font-size: clamp(3rem, 1.8rem + 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.calc-big-l {
  display: block;
  max-width: 26em;
  margin-top: 12px;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.calc-big-l b {
  color: var(--ink);
}

.segwrap {
  margin-top: 28px;
}

.segbar {
  display: flex;
  gap: 2px;
  height: 28px;
  margin-bottom: 12px;
}

.seg {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: default;
  transition: flex-grow 0.25s var(--ease), filter 0.15s;
}

.seg:hover,
.seg:focus-visible {
  filter: brightness(1.08);
}

.seg.is-zero {
  display: none;
}

.seg.is-tight span {
  visibility: hidden;
}

/* Widths start at the page's starting values (45 / 30 / 25) and are then set by the script. */
.seg-use {
  flex-grow: 45;
  background: var(--blue);
  color: var(--on-blue);
}

.seg-held {
  flex-grow: 30;
  background: var(--blue-tint);
  color: var(--on-tint);
}

.seg-free {
  flex-grow: 25;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink);
}

.seg-title {
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-3);
}

.tiles-calc {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.tiles-calc + .tableview {
  margin-top: 16px;
}

.calc-next {
  margin-top: 18px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.calc-next + .tableview {
  margin-top: 12px;
}

.formula {
  display: grid;
  gap: 8px;
  max-width: 44em;
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-3);
}

@media (max-width: 899px) {
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 559px) {
  .tiles-calc {
    grid-template-columns: minmax(0, 1fr);
  }

  .tiles-calc .tile {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tiles-calc .tile:first-child {
    border-top: 0;
  }
}

/* ── 05 Getting started ─────────────────────────────────────────── */

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.steps-list li {
  position: relative;
  padding: 28px 28px 0 0;
}

.steps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -7px;
  width: 12px;
  height: 12px;
  border-radius: var(--r-cell);
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--paper);
}

.step-n {
  font: 500 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.steps-list h3 {
  margin-top: 12px;
  font-size: 1.5rem;
}

.steps-list p {
  margin-top: 10px;
  color: var(--ink-2);
}

@media (max-width: 899px) {
  .steps-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
    border-top: 0;
  }

  .steps-list li {
    border-top: 2px solid var(--ink);
  }
}

@media (max-width: 559px) {
  .steps-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── 06 FAQ ─────────────────────────────────────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.faq-grid .sec-head {
  margin-bottom: 0;
}

.faq details {
  border-top: 1px solid var(--line-2);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line-2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.1875rem;
  font-weight: 650;
  font-stretch: 105%;
  letter-spacing: -0.01em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat;
  transform: rotate(180deg);
}

.faq summary:hover {
  color: var(--link);
}

.faq details p {
  max-width: 43em;
  padding-bottom: 26px;
  color: var(--ink-2);
}

@media (max-width: 899px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── CTA ────────────────────────────────────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 112px);
  background: var(--blue);
  color: var(--on-blue);
}

.cta::selection,
.cta ::selection {
  background: var(--on-blue);
  color: var(--blue);
}

.cta-in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}

.cta h2 {
  margin-top: 0;
}

.cta p {
  max-width: 28em;
  margin-top: 18px;
  font-size: 1.1875rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.btn-inverse {
  background: var(--on-blue);
  color: var(--blue);
}

.btn-inverse:hover {
  background: color-mix(in srgb, var(--on-blue) 90%, var(--blue));
}

.btn-quiet {
  border-color: color-mix(in srgb, var(--on-blue) 45%, transparent);
  color: var(--on-blue);
  min-height: 56px;
}

.btn-quiet:hover {
  border-color: var(--on-blue);
}

.btn-quiet:hover .ico {
  transform: none;
}

.cta :focus-visible {
  outline-color: var(--on-blue);
}

@media (max-width: 899px) {
  .cta-in {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

/* ── Footer ─────────────────────────────────────────────────────── */

.foot {
  padding-block: clamp(48px, 6vw, 72px) 28px;
}

.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.foot-brand p {
  max-width: 22em;
  margin-top: 14px;
  color: var(--ink-3);
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 40px;
}

.foot-links a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.stamp {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  grid-auto-rows: 34px;
  gap: 2px;
}

.stamp span {
  display: grid;
  place-items: center;
  border-radius: var(--r-cell);
  background: var(--blue-tint);
  color: var(--on-tint);
  font: 600 0.9375rem/1 var(--font-mono);
}

.stamp span:nth-child(1),
.stamp span:nth-child(4),
.stamp span:nth-child(7),
.stamp span:nth-child(5),
.stamp span:nth-child(6),
.stamp span:nth-child(8),
.stamp span:nth-child(9) {
  background: var(--blue);
  color: var(--on-blue);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: none;
  font: 400 0.8125rem/1.4 var(--font-mono);
  color: var(--ink-3);
}

@media (max-width: 759px) {
  .foot-in {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* ── 404 ────────────────────────────────────────────────────────── */

.lost {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 65px);
  min-height: calc(100svh - 65px);
  padding-block: 48px;
  text-align: center;
}

.lost-bin {
  display: grid;
  place-items: center;
  width: min(220px, 56vw);
  aspect-ratio: 1;
  margin: 0 auto 36px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lost h1 {
  margin-top: 0;
  font-size: clamp(2.25rem, 1.4rem + 4vw, 4rem);
}

.lost .eyebrow {
  margin-bottom: 16px;
}

.lost p:not(.eyebrow) {
  max-width: 28em;
  margin: 18px auto 0;
  font-size: 1.1875rem;
  color: var(--ink-2);
}

.lost .btn {
  margin-top: 28px;
}

/* ── Preferences ────────────────────────────────────────────────── */

/* Without script the figures stay empty, so give their space back. */
@media (scripting: none) {
  .sim-stage,
  .steps,
  .sim-caption,
  .fig-btn,
  #sim-stats,
  #sim .fig-foot,
  #oc .legend,
  .chart-plot,
  #oc .tiles,
  #oc .fig-foot,
  .anat-worker {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}

@media (forced-colors: active) {
  .hollow {
    color: CanvasText;
    -webkit-text-stroke: 0;
  }

  .vm-use,
  .a-use,
  .sw-use,
  .seg-use,
  .m-track i,
  .m-b {
    forced-color-adjust: none;
    background: Highlight;
    fill: Highlight;
    color: HighlightText;
  }

  .vm-held,
  .a-held,
  .sw-held,
  .seg-held,
  .m-free {
    forced-color-adjust: none;
    background: GrayText;
    fill: GrayText;
    color: Canvas;
  }

  .seg-free {
    box-shadow: inset 0 0 0 1px CanvasText;
  }

  .m-track,
  .sw-free {
    box-shadow: inset 0 0 0 1px CanvasText;
  }
}

@media print {
  .nav,
  .skip,
  .fig-btn,
  .tableview {
    display: none;
  }

  .sec {
    padding-block: 32px;
  }
}
