/* The redesigned site's component library, art direction "Instrument" (docs/art-direction.md).
   Load order on every page: /css/tokens.css, then this file, then the page's own CSS.
   Mobile first. Colour, type, space, radius and motion come only from tokens.css, so every part
   works in light, in dark and inside a .theme-light or .theme-dark panel.
   Breakpoints (media queries cannot read tokens): 480 (small phones up), 720 (12 columns, 24 px
   gutters), 900 (full header navigation), 1100 (32 px gutters, roomier cards).
   The page-wide behaviour (header, phone menu, stop switch, demo forms, reveals) is in site.js.

   Contents
   01 Base                09 Cards              17 Accordion
   02 Type                10 Figures            18 Table
   03 Layout              11 Product panels     19 Callout and footnote
   04 Section anatomy     12 The gate           20 Call-to-action band
   05 Hero                13 Step rail          21 Icons, prose, utilities
   06 Header and menu     14 Stop switch        22 Reveals
   07 Footer              15 Forms              23 Reduced motion
   08 Buttons and chips   16 Logo */

/* ===================================================================== 01 Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
/* In-page links glide, once the page has loaded (site.js adds .smooth-scroll then): an address
   with a #part opens straight at that part instead of flying down from the top. */
@media (prefers-reduced-motion: no-preference) {
  html.smooth-scroll:not([data-motion='reduce']) {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: var(--tracking-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: var(--tracking-h3);
}
h4 {
  font-size: var(--fs-body);
  line-height: 1.4;
}
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
p,
li,
dd,
figcaption,
blockquote {
  text-wrap: pretty;
}
ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}
img,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--dur-1) var(--ease-out);
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  cursor: pointer;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}
code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
strong,
b {
  font-weight: 600;
}
table {
  border-collapse: collapse;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}
[hidden] {
  display: none !important;
}
::selection {
  background: color-mix(in srgb, var(--brand) 24%, transparent);
  color: var(--text);
}
/* The skip link moves focus to <main tabindex="-1">: no ring around the whole page. */
main:focus {
  outline: none;
}
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: calc(-1 * var(--s-9));
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-lift);
}
.skip-link:focus {
  top: var(--s-3);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* A page's icon set: <svg class="sprite"> holds the symbols that <use href="#i-..."> draws. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
mark.fill {
  background: var(--fill-mark);
  color: var(--text);
  padding: 1px var(--s-1);
  border-radius: 4px;
  font-weight: 600;
  /* an owner input that runs over two lines keeps its highlight on each line */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* A mail link that shows the address itself: ink, with a soft underline that firms on hover. */
.mail-link {
  color: inherit;
  text-decoration-color: var(--border-strong);
}
.mail-link:hover {
  text-decoration-color: currentColor;
}

/* ===================================================================== 02 Type */
.display,
.h1,
.h2,
.h3 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-wrap: balance;
}
.display,
.h1,
.h2 {
  font-family: var(--font-display);
}
.display {
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: var(--tracking-display);
}
.h1 {
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: var(--tracking-h2);
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: var(--tracking-h3);
}
.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--text-2);
  max-width: var(--measure-lede);
  text-wrap: pretty;
}
.body {
  font-size: var(--fs-body);
  line-height: 1.6;
}
.small {
  font-size: var(--fs-small);
  line-height: 1.55;
}
.fine {
  font-size: var(--fs-fine);
  line-height: 1.5;
  color: var(--text-2);
}
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-3);
}
.mono {
  font-family: var(--font-mono);
}
.num,
.tabular {
  font-variant-numeric: tabular-nums;
}
.text-2 {
  color: var(--text-2);
}
.text-3 {
  color: var(--text-3);
}
.measure {
  max-width: var(--measure);
}
.measure-lede {
  max-width: var(--measure-lede);
}

/* ===================================================================== 03 Layout */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: calc(var(--narrow) + 2 * var(--gutter));
}

/* The 12-column grid (4 columns on phones, from tokens.css). Children span the full row until a
   span helper says otherwise from 720 px. On phones, .phone-span-2 puts two items side by side.
   .start-N moves an item to column N and combines with a span: <div class="span-5 start-8">. */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--s-6);
}
.grid-12 > * {
  grid-column: 1 / -1;
  min-width: 0;
}
@media (max-width: 719.98px) {
  .grid-12 > .phone-span-2 {
    grid-column: auto / span 2;
  }
}
@media (min-width: 720px) {
  .grid-12 > .span-2 {
    grid-column: auto / span 2;
  }
  .grid-12 > .span-3 {
    grid-column: auto / span 3;
  }
  .grid-12 > .span-4 {
    grid-column: auto / span 4;
  }
  .grid-12 > .span-5 {
    grid-column: auto / span 5;
  }
  .grid-12 > .span-6 {
    grid-column: auto / span 6;
  }
  .grid-12 > .span-7 {
    grid-column: auto / span 7;
  }
  .grid-12 > .span-8 {
    grid-column: auto / span 8;
  }
  .grid-12 > .span-9 {
    grid-column: auto / span 9;
  }
  .grid-12 > .span-10 {
    grid-column: auto / span 10;
  }
  .grid-12 > .span-12 {
    grid-column: 1 / -1;
  }
  .grid-12 > .start-1 {
    grid-column-start: 1;
  }
  .grid-12 > .start-2 {
    grid-column-start: 2;
  }
  .grid-12 > .start-3 {
    grid-column-start: 3;
  }
  .grid-12 > .start-4 {
    grid-column-start: 4;
  }
  .grid-12 > .start-5 {
    grid-column-start: 5;
  }
  .grid-12 > .start-6 {
    grid-column-start: 6;
  }
  .grid-12 > .start-7 {
    grid-column-start: 7;
  }
  .grid-12 > .start-8 {
    grid-column-start: 8;
  }
  .grid-12 > .start-9 {
    grid-column-start: 9;
  }
}
.grid-12--center {
  align-items: center;
}
.grid-12--tight {
  row-gap: var(--s-4);
}

/* Sections: the same rhythm everywhere. */
.section {
  position: relative;
  padding-block: var(--section);
}
/* A jump to a section (a #part link) lands its top edge right under the compact header (60 px),
   not 28 px lower with a strip of the section before it showing; html's 88 px scroll padding
   still keeps headings and fields clear. The section's own padding keeps its heading clear. */
.section[id] {
  scroll-margin-top: -28px;
}
.section--tight {
  padding-block: clamp(var(--s-8), 7vw, var(--s-9));
}
.section--flush-top {
  padding-top: 0;
}
.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.section--alt + .section--alt {
  border-top: 0;
}
/* Two paper sections in a row (or the hero and a paper section): a hairline on the content
   edges divides them, as a research report divides its parts. */
.hero + .section:not(.section--alt)::before,
.section:not(.section--alt) + .section:not(.section--alt)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--max), 100% - 2 * var(--gutter));
  height: 1px;
  translate: -50% 0;
  background: var(--border);
}

/* Stacks and clusters: vertical and horizontal rhythm from the scale. */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.stack--xs {
  gap: var(--s-2);
}
.stack--sm {
  gap: var(--s-3);
}
.stack--lg {
  gap: var(--s-6);
}
.stack--xl {
  gap: var(--s-7);
}
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}
.cluster--sm {
  gap: var(--s-2);
}
.cluster--lg {
  gap: var(--s-5);
}
.cluster--between {
  justify-content: space-between;
}

/* ===================================================================== 04 Section anatomy */
/* 01 · The problem          .section-index (mono, a short hairline after the number)
   Running ads alone is ...  .section-title (the point, as a full sentence)
   One supporting sentence.  .section-lede
   [ one visual ]            .section-head keeps lede-to-visual at 48 to 64 px            */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}
@media (min-width: 720px) {
  .section-head {
    /* exactly eight of the twelve columns */
    max-width: calc((100% - 11 * var(--gutter)) / 12 * 8 + 7 * var(--gutter));
  }
}
@media (min-width: 1100px) {
  .section-head {
    margin-bottom: var(--s-8);
  }
}
.section-head--wide {
  max-width: none;
}
.section-index {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-1);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-3);
}
.section-index-n {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.section-index-n::after {
  content: '';
  inline-size: var(--s-6);
  block-size: 1px;
  background: var(--border-strong);
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: var(--tracking-h2);
  text-wrap: balance;
}
/* A reading page's section points (the FAQ's groups, How it works' steps), one step below a
   section title: 28 to 40 px, the same tracking. */
.section-title--compact {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.1;
}
.section-lede {
  max-width: var(--measure-lede);
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-7);
}

/* ===================================================================== 05 Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: var(--s-8) var(--section);
}
@media (min-width: 1100px) {
  .hero {
    padding-top: var(--s-9);
  }
}
/* The faint paper grid that fades out, and one soft cobalt light. Decoration only. */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--s-7) var(--s-7);
  background-position: center top;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 0%, #000 25%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 60% 0%, #000 25%, transparent 72%);
}
.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: -20% -10% auto 35%;
  height: 90%;
  background: radial-gradient(closest-side, var(--orb-a), transparent);
}
/* On a tall, narrow phone hero the light stays round, up in the corner, not a band down the text */
@media (max-width: 719.98px) {
  .hero-backdrop::after {
    inset: calc(-1 * var(--s-9)) -45% auto 15%;
    height: auto;
    aspect-ratio: 1;
  }
}
/* The label above a page's headline (with .label): mono, uppercase, a short hairline after it,
   the same mark as a section's index. It sits at the same height on every page. */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-5);
}
.hero-kicker::after {
  content: '';
  flex: none;
  inline-size: var(--s-6);
  block-size: 1px;
  background: var(--border-strong);
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
/* Every page below Home: the h1 size, not the display size, so headlines match page to page. */
.hero-title--page {
  font-size: var(--fs-h1);
  line-height: 1.04;
}
.hero-lede {
  margin-top: var(--s-5);
  max-width: 52ch;
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
/* Small phones: the hero's (and the call-to-action band's) buttons stack at full width, so two
   choices read as a pair rather than two ragged pills. */
@media (max-width: 479.98px) {
  .hero-actions > .btn,
  .cta-band-actions > .btn {
    flex: 1 1 100%;
  }
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--text-2);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.hero-points .icon {
  width: 18px;
  height: 18px;
  color: var(--text);
}

/* Headline reveal, line by line, with a mask (never opacity from zero). Each line starts most
   of the way up, so the headline reads from the very first frame (roadmap 6.4) and settles into
   place. CSS only, so it is there without JavaScript; still under reduced motion. */
.reveal-lines .line {
  display: block;
  overflow: clip;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.reveal-lines .line > span {
  display: block;
  animation: line-up var(--dur-3) var(--ease-out) both;
}
.reveal-lines .line:nth-child(2) > span {
  animation-delay: var(--stagger);
}
.reveal-lines .line:nth-child(3) > span {
  animation-delay: calc(2 * var(--stagger));
}
.reveal-lines .line:nth-child(4) > span {
  animation-delay: calc(3 * var(--stagger));
}
@keyframes line-up {
  from {
    transform: translateY(32%);
  }
}

/* ===================================================================== 06 Header and menu */
.site-header {
  --header-h: 72px;
  container: site-header / inline-size;
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    height var(--dur-2) var(--ease-out),
    margin var(--dur-2) var(--ease-out),
    background-color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
/* Compact after scrolling (site.js). The margin keeps the page from moving while it shrinks. */
.site-header.is-compact,
.site-header.is-menu-open {
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--glass-edge);
}
.site-header.is-compact {
  --header-h: 60px;
  margin-bottom: var(--s-3);
  box-shadow: var(--shadow-card);
}
@media (scripting: none) {
  .site-header {
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom-color: var(--glass-edge);
  }
}
/* The 1 px marker site.js watches to know when the page has scrolled. */
.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 24px;
  pointer-events: none;
}
.site-header-in {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  height: 100%;
}
.site-nav {
  display: none;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transition:
    color var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out);
}
/* Hover tints only where a pointer hovers: on a touch screen :hover sticks after a tap. */
@media (hover: hover) {
  .site-nav a:hover {
    color: var(--text);
    background: var(--surface-hover);
  }
}
.site-nav a:active {
  background: var(--surface-active);
}
.site-nav a[aria-current='page'] {
  color: var(--text);
}
.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 6px;
  height: 1px;
  background: currentColor;
}
.site-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
}
.site-actions .theme-switch,
.site-actions .site-signin {
  display: none;
}
/* The header answers to its own width (a container query), so it also works inside a frame. */
@container site-header (min-width: 900px) {
  .site-header-in {
    gap: var(--s-5);
  }
  .site-nav {
    display: flex;
    gap: var(--s-1);
    margin-left: var(--s-4);
  }
  .site-actions .theme-switch {
    display: inline-grid;
  }
  /* Sign in sits beside Start free on wide headers; on narrow ones it is in the menu. */
  .site-actions .site-signin {
    display: inline-flex;
  }
}

/* The theme switch: a moon in light, a sun in dark. It follows data-theme on <html> (set before
   the first paint by /theme.js); its name says what it does (/app.js), so it has no aria-pressed. */
.theme-switch {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-2);
  transition:
    color var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out);
}
@media (hover: hover) {
  .theme-switch:hover {
    color: var(--text);
    background: var(--surface-hover);
  }
}
.theme-switch:active {
  background: var(--surface-active);
}
.theme-switch .icon {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transition:
    transform var(--dur-3) var(--ease-out),
    opacity var(--dur-2) var(--ease-out);
}
.theme-switch .icon-sun,
:root[data-theme='dark'] .theme-switch .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
:root[data-theme='dark'] .theme-switch .icon-sun {
  opacity: 1;
  transform: none;
}

/* The phone menu button: two lines that turn into a cross. Hidden without JavaScript (the
   footer carries every link) and from 900 px. */
.menu-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: calc(-1 * var(--s-2));
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
}
@media (hover: hover) {
  .menu-button:hover {
    background: var(--surface-hover);
  }
}
.menu-button:active {
  background: var(--surface-active);
}
.menu-button-bars {
  position: relative;
  width: 18px;
  height: 10px;
}
.menu-button-bars::before,
.menu-button-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform var(--dur-2) var(--ease-out),
    top var(--dur-2) var(--ease-out);
}
.menu-button-bars::before {
  top: 0;
}
.menu-button-bars::after {
  top: calc(100% - 1.75px);
}
.menu-button[aria-expanded='true'] .menu-button-bars::before,
.menu-button[aria-expanded='true'] .menu-button-bars::after {
  top: calc(50% - 0.875px);
}
.menu-button[aria-expanded='true'] .menu-button-bars::before {
  transform: rotate(45deg);
}
.menu-button[aria-expanded='true'] .menu-button-bars::after {
  transform: rotate(-45deg);
}
@container site-header (min-width: 900px) {
  .menu-button {
    display: none;
  }
}
@media (scripting: none) {
  .menu-button {
    display: none;
  }
}
/* Without JavaScript, "Menu" is a plain link to the footer's list of pages (#footer-nav). */
.menu-link {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-2);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
@media (hover: hover) {
  .menu-link:hover {
    background: var(--surface-hover);
  }
}
@media (scripting: none) {
  .menu-link {
    display: inline-flex;
  }
}
@container site-header (min-width: 900px) {
  .menu-link {
    display: none;
  }
}
.site-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: var(--s-2) 0 var(--s-6);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateY(calc(-1 * var(--s-2)));
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.site-menu.is-open {
  opacity: 1;
  transform: none;
}
@container site-header (min-width: 900px) {
  .site-menu {
    display: none !important;
  }
}
/* Without JavaScript the menu never opens (its button is hidden), so it must never be in the way:
   the footer carries every link. Give it the hidden attribute in the markup as well. */
@media (scripting: none) {
  .site-menu {
    display: none !important;
  }
}
.site-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 56px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--tracking-h3);
  text-decoration: none;
}
.site-menu-list a::after {
  content: '';
  width: 16px;
  height: 16px;
  flex: none;
  background: var(--text-3);
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}
.site-menu-list a::after {
  transition:
    transform var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out);
}
@media (hover: hover) {
  .site-menu-list a:hover::after {
    background: var(--text);
    transform: translateX(2px);
  }
}
.site-menu-list a:active {
  color: var(--text-2);
}
.site-menu-list a[aria-current='page'] {
  color: var(--link);
}
.site-menu-foot {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
/* The menu's and the footer's switches pull back by their left padding, so the icon lines up
   with the text edge above it while the whole button stays the target. */
.site-menu-foot .theme-switch {
  display: inline-flex;
  gap: var(--s-2);
  width: auto;
  margin-left: calc(-1 * var(--s-2));
  padding: 0 var(--s-3) 0 var(--s-2);
  font-size: var(--fs-small);
  font-weight: 500;
}
.site-menu-foot .theme-switch .icon {
  grid-area: auto;
}
.site-menu-foot .theme-switch .icon-sun {
  display: none;
}
:root[data-theme='dark'] .site-menu-foot .theme-switch .icon-sun {
  display: block;
}
:root[data-theme='dark'] .site-menu-foot .theme-switch .icon-moon {
  display: none;
}

/* ===================================================================== 07 Footer */
.site-footer {
  padding-block: var(--s-9) var(--s-6);
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  font-size: var(--fs-small);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--s-7);
}
.footer-grid > * {
  grid-column: 1 / -1;
  min-width: 0;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
}
.footer-tagline {
  max-width: 34ch;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--gutter);
}
@media (min-width: 720px) {
  .footer-brand {
    grid-column: 1 / span 5;
  }
  .footer-nav {
    grid-column: 7 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.footer-heading {
  margin-bottom: var(--s-3);
}
.footer-links {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-2);
  text-decoration: none;
}
@media (hover: hover) {
  .footer-links a:hover {
    color: var(--text);
    text-decoration: underline;
  }
}
/* The footer names the page you are on. */
.footer-links a[aria-current='page'] {
  color: var(--text);
  font-weight: 500;
}
@media (pointer: coarse) {
  .footer-links a {
    min-width: 44px;
    min-height: 44px;
  }
}
/* The working-name line and the no-cookies line: one row with a middle dot, stacked on phones. */
.footer-fine {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
}
.footer-fine > span + span::before {
  content: '·';
  margin-right: var(--s-3);
  color: var(--text-3);
}
@media (max-width: 479.98px) {
  .footer-fine {
    flex-direction: column;
  }
  .footer-fine > span + span::before {
    content: none;
  }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-fine);
}
.footer-bottom .theme-switch {
  display: inline-flex;
  gap: var(--s-2);
  width: auto;
  margin-left: calc(-1 * var(--s-2));
  padding: 0 var(--s-3) 0 var(--s-2);
  font-size: var(--fs-fine);
  font-weight: 500;
}
.footer-bottom .theme-switch .icon {
  grid-area: auto;
}
.footer-bottom .theme-switch .icon-sun {
  display: none;
}
:root[data-theme='dark'] .footer-bottom .theme-switch .icon-sun {
  display: block;
}
:root[data-theme='dark'] .footer-bottom .theme-switch .icon-moon {
  display: none;
}
/* Without JavaScript the theme switches cannot work, so none of the three is shown. */
@media (scripting: none) {
  .site-actions .theme-switch,
  .footer-bottom .theme-switch,
  .site-menu-foot .theme-switch {
    display: none;
  }
}

/* ===================================================================== 08 Buttons and chips */
:root,
.theme-light,
.theme-dark {
  /* shared marks, drawn with currentColor through a mask so they follow the theme */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  --alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.25'/%3E%3Cpath d='M8 4.75v3.75M8 11.1v.15'/%3E%3C/svg%3E");
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--btn);
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    transform var(--dur-3) var(--ease-spring);
}
.btn:hover {
  background: var(--surface-hover);
}
/* Pressed: in quickly, back out on the spring (the only spring on the site). */
.btn:active:not(:disabled):not([aria-disabled='true']) {
  transform: scale(0.97);
  transition-duration: var(--dur-1);
  transition-timing-function: var(--ease-out);
}
.btn:active {
  background: var(--surface-active);
  box-shadow: var(--btn-pressed);
}
/* A button drawn inside a product picture (<span class="btn">) is part of the example: it looks
   the same at rest but never answers the pointer as if it could be pressed. */
span.btn {
  cursor: default;
  pointer-events: none;
}
.btn .icon {
  width: 18px;
  height: 18px;
}
.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--btn-primary);
}
.btn--primary:hover {
  background: var(--brand-hover);
}
.btn--primary:active {
  background: var(--brand-hover);
  box-shadow: var(--btn-primary-pressed);
}
.btn--secondary {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn--secondary:hover {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--field);
}
.btn--secondary:active {
  background: var(--surface-active);
  box-shadow: inset 0 0 0 1px var(--field);
}
.btn--ghost {
  background: transparent;
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--surface-hover);
}
.btn--ghost:active {
  background: var(--surface-active);
  box-shadow: none;
}
.btn--stop {
  background: var(--critical-bg);
  color: var(--critical-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--critical) 35%, transparent);
}
/* Hover and press deepen the fill only as far as the orange text keeps 4.5:1 (section 04 of the
   Design DNA checks both mixes); the edge does the rest. */
.btn--stop:hover {
  background: color-mix(in srgb, var(--critical-bg) 92%, var(--critical));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--critical) 65%, transparent);
}
.btn--stop:active {
  background: color-mix(in srgb, var(--critical-bg) 90%, var(--critical));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--critical) 65%, transparent),
    inset 0 1px 3px color-mix(in srgb, var(--critical-text) 22%, transparent);
}
/* "Stop" shows a square; once pressed it reads "Start again" (site.js swaps the label and adds
   .is-stopped) with a play mark, on a neutral face, because starting again is not an alarm.
   A button whose label swaps carries no aria-pressed (the label already says the state). */
.btn--stop::before {
  content: '';
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 2px;
  background: currentColor;
}
.btn--stop.is-stopped,
.btn--stop[aria-pressed='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn--stop.is-stopped:hover,
.btn--stop[aria-pressed='true']:hover {
  background: var(--surface-hover);
  box-shadow: inset 0 0 0 1px var(--field);
}
.btn--stop.is-stopped:active,
.btn--stop[aria-pressed='true']:active {
  background: var(--surface-active);
  box-shadow: var(--btn-pressed);
}
.btn--stop.is-stopped::before,
.btn--stop[aria-pressed='true']::before {
  border-radius: 0;
  clip-path: polygon(10% 0, 100% 50%, 10% 100%);
}
.btn--lg {
  min-height: 52px;
  padding: 0 var(--s-5);
  font-size: var(--fs-body);
}
.btn--sm {
  min-height: 40px;
  padding: 0 var(--s-3);
  font-size: var(--fs-fine);
}
@media (pointer: coarse) {
  .btn--sm {
    min-height: 44px;
  }
}
.btn--block {
  width: 100%;
}
.btn--icon {
  width: 44px;
  padding: 0;
}
.btn:disabled:not([aria-busy='true']),
.btn[aria-disabled='true'] {
  background: var(--surface-sunk);
  color: var(--text-3);
  box-shadow: inset 0 0 0 1px var(--border);
  cursor: not-allowed;
  transform: none;
}
.btn[aria-busy='true'] {
  cursor: progress;
}
.btn[aria-busy='true']::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* The tertiary link: text with an arrow that moves 2 px on hover. */
.link-arrow {
  border-radius: var(--r-xs);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after {
  content: '';
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform var(--dur-1) var(--ease-out);
}
.link-arrow:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.link-arrow:hover::after {
  transform: translateX(2px);
}
.link-arrow:active {
  color: var(--text);
}
.link-arrow[aria-disabled='true'] {
  color: var(--text-3);
  text-decoration: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* Chips. Mono labels for honesty (Example, Estimated, Source); Inter for product states. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 var(--s-2);
  border-radius: var(--r-xs);
  background: var(--surface-sunk);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
/* Example: a dashed edge, the visual sign that this is not real data. */
.chip--example {
  background: var(--surface);
  box-shadow: none;
  border: 1px dashed var(--field);
}
/* Estimated: a dotted ring before the word. */
.chip--estimated::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  border: 1.5px dotted currentColor;
}
/* Source: where a number comes from. */
.chip--source {
  background: transparent;
}
.chip--source::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 1px;
  background: currentColor;
}
/* Product states: sentence case, a dot, one colour each. */
.chip--ready,
.chip--approved,
.chip--needs,
.chip--stopped {
  height: 24px;
  padding: 0 var(--s-2) 0 var(--s-2);
  border-radius: var(--r-pill);
  box-shadow: none;
  font-family: var(--font);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.chip--ready::before,
.chip--approved::before,
.chip--needs::before,
.chip--stopped::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.chip--ready {
  background: var(--info-bg);
  color: var(--info-text);
}
.chip--approved {
  background: var(--success-bg);
  color: var(--success-text);
}
.chip--approved::before {
  width: 10px;
  height: 10px;
  border-radius: 0;
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}
.chip--needs {
  background: var(--warning-bg);
  color: var(--warning-text);
}
.chip--needs::before {
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--critical) 50%, transparent);
  animation: needs-pulse 2.4s var(--ease-out) infinite;
}
@keyframes needs-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--critical) 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 5px transparent;
  }
}
.chip--stopped {
  background: var(--critical-bg);
  color: var(--critical-text);
}
.chip--stopped::before {
  border-radius: 1px;
}

/* ===================================================================== 09 Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-3);
  min-width: 0;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--border),
    var(--shadow-card);
  color: var(--text);
}
@media (min-width: 1100px) {
  .card {
    padding: var(--s-6);
  }
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--text);
}
.card-icon .icon {
  width: 22px;
  height: 22px;
}
.card-title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-h3);
  text-wrap: balance;
}
.card-text {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-2);
}
.card-foot {
  margin-top: auto;
  padding-top: var(--s-2);
}
/* The lead card: 8 px around its picture, so the picture's radius is 20 - 8 = 12. */
.card--lead {
  padding: var(--s-2);
  gap: 0;
}
.card-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: var(--s-5);
  overflow: hidden;
  border-radius: var(--r-md);
  background-color: var(--surface-2);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--s-6) var(--s-6);
  box-shadow: inset 0 0 0 1px var(--border);
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-4) var(--s-4);
}
@media (min-width: 1100px) {
  .card-body {
    padding: var(--s-6) var(--s-5) var(--s-5);
  }
}
.card--quiet {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border);
}
a.card,
.card--link {
  text-decoration: none;
  transition:
    box-shadow var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
a.card:hover,
.card--link:hover {
  box-shadow:
    inset 0 0 0 1px var(--border-strong),
    var(--shadow-lift);
  transform: translateY(-2px);
}
a.card:active,
.card--link:active {
  box-shadow:
    inset 0 0 0 1px var(--field),
    var(--shadow-card);
  transform: none;
  transition-duration: var(--dur-1);
}
a.card:focus-visible,
.card--link:focus-visible {
  outline-offset: 3px;
}
/* Groups: never six identical cards; one leads, the rest support. */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter);
}
@media (min-width: 720px) {
  .cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards--3,
  .cards--lead-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards--lead-4 > .card--lead {
    grid-column: 1 / -1;
  }
}
@media (min-width: 900px) {
  .cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cards--lead {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .cards--lead > * {
    grid-column: span 5;
  }
  .cards--lead > .card--lead {
    grid-column: span 7;
    grid-row: span 2;
  }
  .cards--lead-4 > .card--lead {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
  }
  .cards--lead-4 > .card--lead .card-media {
    order: 2;
  }
  .cards--lead-4 > .card--lead .card-body {
    justify-content: center;
    padding: var(--s-6);
  }
}
@media (min-width: 1100px) {
  .cards--lead-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===================================================================== 10 Figures */
.figure {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-width: 0;
  margin: 0;
}
.figure-frame {
  position: relative;
  min-width: 0;
  padding: var(--s-5);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--border),
    var(--shadow-card);
}
.figure-frame--grid {
  background-color: var(--surface-2);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--s-6) var(--s-6);
}
.figure-frame--bare {
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
/* FIG. 02 · What one week of ads looks like · Example */
/* Flows like a sentence, so it wraps cleanly on a phone. Spans or plain text both work. */
.figure-caption {
  display: block;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-3);
  text-wrap: balance;
}
/* It breaks inside its phrases, never beside a separator: each part is joined to the next by a
   no-break space and the figure number keeps together, so on a phone "· Example" never starts a
   line on its own. */
.figure-caption > span:not(:last-child)::after {
  content: '\a0';
}
.figure-caption > .fig-no {
  white-space: nowrap;
}
.figure-caption .fig-no {
  color: var(--text);
}

/* ===================================================================== 11 Product panels */
/* The app drawn in code: 13.5 px interface type, mono numbers, real states, an Example tag. */
.panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--border),
    var(--shadow-lift);
  color: var(--text);
  font-size: var(--fs-fine);
  line-height: 1.45;
  text-align: left;
}
.panel--stopped,
.panel.is-stopped {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--critical) 55%, transparent),
    var(--shadow-lift);
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-3) 0 var(--s-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.panel-bar .logo-mark {
  width: 16px;
  height: 16px;
}
.panel-title {
  min-width: 0;
  overflow: hidden;
  font-size: var(--fs-fine);
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.panel-crumb {
  min-width: 0;
  overflow: hidden;
  color: var(--text-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.panel-tag {
  margin-left: auto;
  flex: none;
}
.panel-tag--corner {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 1;
}
/* room for the corner tag, so a long first line never runs under it */
.panel-tag--corner ~ .panel-body > :first-child {
  padding-right: var(--s-9);
}
/* Phones: a narrow panel cannot spare that room, so the tag takes its own line at the top right
   and the content below it gets the full width. */
@media (max-width: 479.98px) {
  .panel-tag--corner {
    position: static;
    display: flex;
    width: fit-content;
    margin: var(--s-3) var(--s-3) calc(-1 * var(--s-2)) auto;
  }
  .panel-tag--corner ~ .panel-body > :first-child {
    padding-right: 0;
  }
}
.panel-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-4);
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
}
.panel-heading {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}
.panel-sub {
  color: var(--text-2);
}
.panel-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: var(--s-2);
}
/* Inner tiles: 20 px outside, 16 px padding, so 6 px inside (the minimum). */
.panel-metric {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-width: 0;
  padding: var(--s-3);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
}
.panel-metric-label,
.panel-note {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-3);
}
.panel-metric-value {
  font-family: var(--font-mono);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.panel-metric-value small {
  font-size: var(--fs-fine);
  color: var(--text-2);
  letter-spacing: 0;
}
.panel-rows {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-2);
  border-top: 1px solid var(--border);
}
.panel-row:first-child {
  border-top: 0;
}
.panel-row-label {
  min-width: 0;
  color: var(--text-2);
}
.panel-row-value {
  flex: none;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}
.panel-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-1) var(--s-3);
  align-items: start;
}
.panel-item-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--text);
}
.panel-item-icon .icon {
  width: 18px;
  height: 18px;
}
.panel-item-title {
  font-weight: 600;
}
.panel-item-text {
  color: var(--text-2);
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
/* Spend against your limit: an SVG inside a rounded track. The orange tick is your limit. */
.meter {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--surface-sunk);
  box-shadow: inset 0 0 0 1px var(--border);
}
.meter svg {
  display: block;
  width: 100%;
  height: 100%;
}
.meter-fill {
  fill: var(--text);
}
.meter-limit {
  fill: var(--critical);
}
.meter-legend {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-3);
}

/* ===================================================================== 12 The gate */
/* An instrument ring: thin circles, dial ticks, a cobalt glow and an orange arc for your limit.
   Proposals are glass chips that travel toward it: one passes to Meta, one waits for your OK,
   one bounces off your limit. .is-stopped (from a stop switch) freezes it and turns it orange.
   With reduced motion it is a still, complete diagram. Sizes follow the gate's own width. */
.gate {
  position: relative;
  container: gate / inline-size;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: var(--text);
}
@media (min-width: 720px) {
  .gate {
    aspect-ratio: 16 / 10;
  }
}
.gate-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  /* fits inside the box at 16:10, so the light never meets a hard edge */
  width: 60cqw;
  height: 60cqw;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--gate-glow), transparent);
  transition: background var(--dur-3) var(--ease-out);
  animation: gate-breathe 6s var(--ease-in-out) infinite alternate;
}
@keyframes gate-breathe {
  from {
    opacity: 0.7;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}
.gate-track {
  position: absolute;
  left: 3cqw;
  right: 14cqw;
  top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gate-tick) 0 4px, transparent 4px 9px);
}
.gate-dial {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48cqw;
  height: 48cqw;
  translate: -50% -50%;
  overflow: visible;
}
.gate-ring {
  fill: none;
  stroke: var(--gate-ring);
  stroke-width: 1.5;
  transition: stroke var(--dur-3) var(--ease-out);
}
.gate-ring--dashed {
  stroke-dasharray: 2 7;
  transform-origin: 200px 200px;
  animation: gate-turn 180s linear infinite reverse;
}
.gate-ticks {
  fill: none;
  stroke: var(--gate-tick);
  stroke-width: 8;
  stroke-dasharray: 1.25 18.0184;
  transform-origin: 200px 200px;
  animation: gate-turn 120s linear infinite;
  transition: stroke var(--dur-3) var(--ease-out);
}
.gate-ticks--major {
  stroke-width: 15;
  stroke-dasharray: 2 95.389;
}
@keyframes gate-turn {
  to {
    transform: rotate(360deg);
  }
}
.gate-arc-limit {
  fill: none;
  stroke: var(--gate-bounce);
  stroke-width: 5;
  stroke-linecap: round;
}
.gate-core {
  fill: var(--surface);
  stroke: var(--gate);
  stroke-width: 2;
  transition: stroke var(--dur-3) var(--ease-out);
}
.gate-core-dot {
  fill: var(--gate);
  transition: opacity var(--dur-2) var(--ease-out);
}
.gate-core-stop {
  fill: var(--critical);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}
.gate-dest {
  position: absolute;
  right: 2cqw;
  top: 50%;
  translate: 0 -50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.9cqw, 12px);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text);
}
.gate-dest::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--text);
}
/* The proposals: glass chips on three lanes. Their resting place is the still frame. */
.proposal {
  position: absolute;
  top: 50%;
  left: 0;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: clamp(24px, 4.6cqw, 30px);
  padding: 0 clamp(8px, 1.6cqw, 11px);
  border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 0 0 1px var(--glass-edge),
    var(--shadow-card);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.9cqw, 12px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
  animation-duration: 9s;
  animation-timing-function: var(--ease-in-out);
  animation-iteration-count: infinite;
}
.proposal::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--gate);
}
.proposal--pass {
  /* at rest (the still frame) it is past the ring, on its way to Meta */
  --pass-at: 79cqw;
  left: var(--pass-at);
  animation-name: proposal-pass;
}
.proposal--pass::before {
  border-radius: 0;
  width: 10px;
  height: 10px;
  background: var(--gate-pass);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}
.proposal--wait {
  top: calc(50% - 9cqw);
  left: 31cqw;
  animation-name: proposal-wait;
  animation-delay: -6s;
}
.proposal--wait::before {
  animation: needs-pulse 2.4s var(--ease-out) infinite;
}
.proposal--bounce {
  --bounce-hit: 8.5cqw;
  top: calc(50% + 9cqw);
  left: 14cqw;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--gate-bounce) 55%, transparent),
    var(--shadow-card);
  animation-name: proposal-bounce;
  animation-delay: -3s;
}
.proposal--bounce::before {
  border-radius: 1px;
  background: var(--gate-bounce);
}
/* a small gate keeps the chip clear of the Meta label */
@container gate (max-width: 479px) {
  .proposal--pass {
    --pass-at: 72cqw;
  }
  /* lower on the arc, where it sits further in, so the chip stays inside the frame */
  .proposal--bounce {
    --bounce-hit: 3.8cqw;
    top: calc(50% + 12cqw);
    left: 15.5cqw;
  }
}
@keyframes proposal-pass {
  0% {
    transform: translateX(calc(5cqw - var(--pass-at)));
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  50% {
    transform: translateX(calc(50cqw - var(--pass-at)));
  }
  78% {
    transform: translateX(0);
    opacity: 1;
  }
  94%,
  100% {
    transform: translateX(6cqw);
    opacity: 0;
  }
}
@keyframes proposal-wait {
  0% {
    transform: translateX(-26cqw);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  40%,
  88% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0;
  }
}
@keyframes proposal-bounce {
  0% {
    transform: translateX(-12cqw);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  42% {
    transform: translateX(var(--bounce-hit));
    animation-timing-function: var(--ease-out);
  }
  58% {
    transform: translateX(-1cqw);
  }
  88% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0;
  }
}
/* Stopped: everything freezes where it is and the instrument turns orange. */
.gate.is-stopped .gate-glow {
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--critical) 24%, transparent),
    transparent
  );
}
.gate.is-stopped .gate-ring,
.gate.is-stopped .gate-ticks {
  stroke: color-mix(in srgb, var(--critical) 60%, transparent);
}
.gate.is-stopped .gate-core {
  stroke: var(--critical);
}
.gate.is-stopped .gate-core-dot {
  opacity: 0;
}
.gate.is-stopped .gate-core-stop {
  opacity: 1;
}
.gate.is-stopped *,
.gate.is-stopped *::before,
.gate.is-offscreen *,
.gate.is-offscreen *::before {
  animation-play-state: paused !important;
}
/* A still frame on purpose (storyboards, specimens): the same as reduced motion. */
.gate--still *,
.gate--still *::before {
  animation: none !important;
}
/* The legend under the gate: the same states in words. */
.gate-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-fine);
  color: var(--text-2);
}
.gate-legend li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.gate-legend li::before {
  content: '';
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--gate);
}
.gate-legend .is-pass::before {
  border-radius: 0;
  background: var(--gate-pass);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}
.gate-legend .is-bounce::before {
  border-radius: 1px;
  background: var(--gate-bounce);
}
.gate-legend .is-limit::before {
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: var(--gate-bounce);
}

/* ===================================================================== 13 Step rail */
.rail {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}
.rail-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  min-height: 52px;
  padding-bottom: var(--s-4);
  color: var(--text-3);
  font-size: var(--fs-small);
  line-height: 1.4;
}
.rail-step:last-child {
  min-height: 0;
  padding-bottom: 0;
}
/* the line to the next step */
.rail-step::before {
  content: '';
  position: absolute;
  left: 13.5px;
  top: 32px;
  bottom: 4px;
  width: 1px;
  background: var(--border-strong);
}
.rail-step:last-child::before {
  display: none;
}
.rail-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition:
    background-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out);
}
.rail-label {
  padding-top: 4px;
  transition: color var(--dur-2) var(--ease-out);
}
.rail-step.is-done {
  color: var(--text-2);
}
.rail-step.is-done::before {
  background: var(--text);
}
.rail-step.is-done .rail-n {
  background: var(--text);
  box-shadow: none;
  color: var(--bg);
}
.rail-step.is-current {
  color: var(--text);
  font-weight: 600;
}
.rail-step.is-current .rail-n {
  box-shadow: inset 0 0 0 2px var(--brand);
  color: var(--link);
  font-weight: 600;
}
.rail--sticky {
  position: sticky;
  top: calc(var(--s-9) + var(--s-2));
}
@media (min-width: 720px) {
  .rail--row {
    flex-direction: row;
  }
  .rail--row .rail-step {
    flex: 1 1 0;
    flex-direction: column;
    gap: var(--s-3);
    min-height: 0;
    padding: 0 var(--s-4) 0 0;
  }
  .rail--row .rail-step::before {
    left: 36px;
    right: var(--s-2);
    top: 13.5px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .rail--row .rail-label {
    padding-top: 0;
  }
}

/* ===================================================================== 14 Stop switch */
/* A labelled control: the label, the state in words (announced), and the switch itself. */
.stop-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--border),
    var(--shadow-card);
  transition:
    background-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
.stop-control-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.stop-control-label {
  font-weight: 600;
  line-height: 1.35;
}
.stop-control-state {
  font-size: var(--fs-fine);
  line-height: 1.45;
  color: var(--text-2);
  transition: color var(--dur-2) var(--ease-out);
}
.stop-control.is-stopped {
  background: var(--critical-bg);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--critical) 45%, transparent),
    var(--shadow-card);
}
.stop-control.is-stopped .stop-control-state {
  color: var(--critical-text);
}
.stop-switch {
  position: relative;
  flex: none;
  width: 56px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--surface-sunk);
  box-shadow: inset 0 0 0 1px var(--field);
  cursor: pointer;
  transition:
    background-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
/* a 44 px tall target around the 32 px switch */
.stop-switch::before {
  content: '';
  position: absolute;
  inset: -6px -4px;
}
.stop-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 25%, transparent),
    inset 0 0 0 1px var(--border-strong);
  transition: transform var(--dur-2) var(--ease-out);
}
.stop-switch-thumb::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 1.5px;
  background: var(--critical);
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity var(--dur-1) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.stop-switch:hover {
  box-shadow: inset 0 0 0 1px var(--text-3);
}
.stop-switch[aria-checked='true'] {
  background: var(--critical);
  box-shadow: none;
}
.stop-switch[aria-checked='true'] .stop-switch-thumb {
  transform: translateX(24px);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 30%, transparent);
}
.stop-switch[aria-checked='true'] .stop-switch-thumb::after {
  opacity: 1;
  transform: none;
}
.stop-switch[aria-checked='true']:hover {
  background: color-mix(in srgb, var(--critical) 86%, var(--text));
}
/* Pressed: the thumb gives a little under the finger (no spring: only buttons spring). */
.stop-switch:active:not(:disabled) .stop-switch-thumb {
  transform: scale(0.88);
}
.stop-switch[aria-checked='true']:active:not(:disabled) .stop-switch-thumb {
  transform: translateX(24px) scale(0.88);
}
.stop-switch:disabled {
  cursor: not-allowed;
  background: var(--surface-active);
  box-shadow: inset 0 0 0 1px var(--border);
}
.stop-switch:disabled .stop-switch-thumb {
  box-shadow: inset 0 0 0 1px var(--border);
}

/* ===================================================================== 15 Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.form-card {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--border),
    var(--shadow-card);
}
@media (min-width: 720px) {
  .form-card {
    padding: var(--s-7);
  }
}
.form-row {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-width: 0;
}
.field-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-2);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
}
.field-optional {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-3);
}
.field-hint {
  margin-top: calc(-1 * var(--s-1));
  font-size: var(--fs-fine);
  line-height: 1.45;
  color: var(--text-2);
}
/* Kept at one class of weight (:where), so hover, focus, error and the select's arrow room
   below always win over the resting look. */
.input,
.field :where(input:not([type='checkbox']):not([type='radio']), select, textarea) {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--s-4);
  border: 1px solid var(--field);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.4;
  transition:
    border-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out);
}
.field textarea {
  min-height: 120px;
  padding-block: var(--s-3);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
  opacity: 1;
}
.input:hover,
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--text-3);
}
.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
  outline: none;
}
.input:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: none;
}
.input:disabled,
.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  border-color: var(--border);
  background: var(--surface-sunk);
  color: var(--text-3);
  cursor: not-allowed;
}
.select {
  position: relative;
  display: block;
}
.select select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: var(--s-8);
  cursor: pointer;
}
.select::after {
  content: '';
  position: absolute;
  right: var(--s-4);
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: var(--text-2);
  pointer-events: none;
  -webkit-mask: var(--chevron) center / contain no-repeat;
  mask: var(--chevron) center / contain no-repeat;
}
/* Error: the field turns orange and says what it needs, in words. */
.field[data-invalid] input,
.field[data-invalid] select,
.field[data-invalid] textarea,
.field [aria-invalid='true'] {
  border-color: var(--critical);
}
.field[data-invalid] input:focus,
.field[data-invalid] select:focus,
.field[data-invalid] textarea:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--critical) 18%, transparent);
}
.field-error {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  color: var(--critical-text);
  font-size: var(--fs-fine);
  font-weight: 500;
  line-height: 1.45;
}
.field-error:empty {
  display: none;
}
.field-error::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--alert) center / contain no-repeat;
  mask: var(--alert) center / contain no-repeat;
}
/* Checkbox: the whole sentence is the target. */
.checkbox {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  padding-block: var(--s-1);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}
.checkbox input {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--field);
  border-radius: var(--r-xs);
  background: var(--surface);
  cursor: pointer;
  transition:
    background-color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out);
}
.checkbox input::before {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--on-brand);
  transform: scale(0);
  transition: transform var(--dur-2) var(--ease-out);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}
.checkbox:hover input {
  border-color: var(--text-3);
}
.checkbox input:checked {
  border-color: var(--brand);
  background: var(--brand);
}
.checkbox input:checked::before {
  transform: none;
}
.checkbox input:disabled {
  border-color: var(--border);
  background: var(--surface-sunk);
  cursor: not-allowed;
}
.field[data-invalid] .checkbox input,
.checkbox input[aria-invalid='true'] {
  border-color: var(--critical);
}
.form-note {
  font-size: var(--fs-fine);
  line-height: 1.5;
  color: var(--text-2);
}
/* A gentle note that answers a choice (site.js shows it): never an error, never blocks sending.
   <p class="field-note" data-note-for="spend" data-note-value="under-500" hidden>…</p> */
.field-note {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-3);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text-2);
  font-size: var(--fs-fine);
  line-height: 1.5;
}
.field-note::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  flex: none;
  border-radius: 50%;
  background: var(--text-3);
}
/* The hairline between required and optional questions, with one mono label. */
.form-divider {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0;
}
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
}
.form-error {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--critical-bg);
  color: var(--critical-text);
  font-size: var(--fs-small);
  font-weight: 500;
}
.form-error::before {
  content: '';
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--alert) center / contain no-repeat;
  mask: var(--alert) center / contain no-repeat;
}
/* Success: a check that draws itself (still under reduced motion). */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--border),
    var(--shadow-card);
}
.form-success:focus {
  outline: none;
}
.form-success:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.form-success-check {
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-2);
  overflow: visible;
}
.form-success-check circle {
  fill: var(--success-bg);
  stroke: var(--success);
  stroke-width: 1.5;
}
.form-success-check path {
  fill: none;
  stroke: var(--success);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}
.form-success.is-shown .form-success-check circle {
  animation: success-ring var(--dur-3) var(--ease-out) both;
}
.form-success.is-shown .form-success-check path {
  animation: success-draw var(--dur-3) var(--ease-out) 150ms both;
}
@keyframes success-ring {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
.form-success-check circle {
  transform-origin: 24px 24px;
}
@keyframes success-draw {
  from {
    stroke-dashoffset: 24;
  }
}
.form-success-title {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--tracking-h3);
  line-height: 1.3;
}
.form-success-text {
  max-width: var(--measure-lede);
  color: var(--text-2);
}

/* ===================================================================== 16 Logo */
/* The gate ring with one notch, where a proposal (the cobalt dot) passes through. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: var(--tracking-h3);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover {
  color: var(--text);
}
.logo-mark {
  width: 26px;
  height: 26px;
  flex: none;
  overflow: visible;
}
.logo-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}
.logo-dot {
  /* --logo-dot lets a tile recolour the dot, e.g. white on a cobalt favicon */
  fill: var(--logo-dot, var(--brand));
}
.logo-word {
  display: inline-block;
}

/* ===================================================================== 17 Accordion */
.accordion {
  border-top: 1px solid var(--border);
}
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 64px;
  padding-block: var(--s-4);
  color: var(--text);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
  list-style: none;
  cursor: pointer;
}
.accordion-summary::-webkit-details-marker {
  display: none;
}
.accordion-summary:hover .accordion-icon {
  background: var(--surface-hover);
  box-shadow: inset 0 0 0 1px var(--field);
}
.accordion-summary:active .accordion-icon {
  background: var(--surface-active);
}
.accordion-summary:focus-visible {
  border-radius: var(--r-xs);
}
.accordion-icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--text);
  transition:
    background-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.75px;
  margin: -0.875px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out);
}
.accordion-icon::after {
  transform: rotate(90deg);
}
.accordion-item[open] .accordion-icon::after {
  transform: rotate(0deg);
}
.accordion-item[open] .accordion-icon {
  background: var(--text);
  box-shadow: none;
  color: var(--bg);
}
.accordion-panel {
  max-width: var(--measure);
  padding: 0 var(--s-8) var(--s-5) 0;
  color: var(--text-2);
}
.accordion-panel > * + * {
  margin-top: var(--s-3);
}
@supports selector(::details-content) {
  .accordion-item {
    interpolate-size: allow-keywords;
  }
  .accordion-item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition:
      block-size var(--dur-2) var(--ease-out),
      content-visibility var(--dur-2) allow-discrete;
  }
  .accordion-item[open]::details-content {
    block-size: auto;
  }
}

/* ===================================================================== 18 Table */
/* Give it role="region", an aria-label(ledby) and tabindex="0", so a keyboard can scroll it.
   When a table is wider than its frame (phones), a soft shadow at the edge says there is more;
   the two covers scroll with the table and hide the shadow once an edge is reached. */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--r-lg);
  background:
    linear-gradient(to right, var(--surface) 40%, transparent) left / var(--s-6) 100% no-repeat
      local,
    linear-gradient(to left, var(--surface) 40%, transparent) right / var(--s-6) 100% no-repeat
      local,
    radial-gradient(
        farthest-side at 0 50%,
        color-mix(in srgb, var(--text) 16%, transparent),
        transparent
      )
      left / var(--s-3) 100% no-repeat scroll,
    radial-gradient(
        farthest-side at 100% 50%,
        color-mix(in srgb, var(--text) 16%, transparent),
        transparent
      )
      right / var(--s-3) 100% no-repeat scroll,
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  line-height: 1.45;
}
.table th,
.table td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  padding-block: var(--s-3);
  border-bottom-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.table tbody th {
  font-weight: 600;
}
.table tbody tr:last-child > * {
  border-bottom: 0;
}
.table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table thead .num {
  text-align: right;
}
.table tbody tr {
  transition: background-color var(--dur-1) var(--ease-out);
}
.table tbody tr:hover {
  background: var(--surface-2);
}

/* ===================================================================== 19 Callout and footnote */
/* For nuance that needs a second look, such as Meta's daily flexibility, with its source. */
.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-1) var(--s-4);
  align-items: start;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
}
.callout-icon {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--text);
}
.callout-icon .icon {
  width: 20px;
  height: 20px;
}
.callout-title {
  font-weight: 600;
  line-height: 1.4;
}
.callout-text {
  max-width: var(--measure);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-2);
}
.callout-source {
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-3);
}
.callout--attention {
  background: var(--critical-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--critical) 30%, transparent);
}
.callout--attention .callout-icon {
  color: var(--critical-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--critical) 45%, transparent);
}
.callout--attention .callout-text {
  color: var(--text);
}
.callout--attention .callout-source {
  color: var(--critical-text);
}
.footnote {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  max-width: var(--measure);
  padding-top: var(--s-3);
  font-size: var(--fs-fine);
  line-height: 1.5;
  color: var(--text-2);
}
.footnote::before {
  content: '';
  width: var(--s-8);
  height: 1px;
  margin-bottom: var(--s-2);
  background: var(--border-strong);
}
.footnote-mark,
.fn-ref {
  font-family: var(--font-mono);
  font-size: max(0.75em, 11px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  vertical-align: super;
  line-height: 0;
}
.fn-ref {
  margin-left: 1px;
  color: var(--link);
  text-decoration: none;
}
.footnote-source {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-3);
}

/* ===================================================================== 20 Call-to-action band */
/* The one place copy may be centred. Faint dial rings and one soft light, nothing more. */
.cta-band {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  overflow: hidden;
  padding: var(--s-9) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--border),
    var(--shadow-card);
  text-align: center;
}
@media (min-width: 1100px) {
  .cta-band {
    padding-block: var(--s-10);
  }
}
.cta-band::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -60%;
  z-index: -1;
  width: 140%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0 39px,
    var(--grid-line) 39px 40px
  );
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.cta-band::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -30%;
  z-index: -1;
  width: 80%;
  height: 80%;
  translate: -50% 0;
  background: radial-gradient(closest-side, var(--orb-a), transparent);
}
/* 18ch of Inter's display cut, written in em: a ch is measured on whichever font is showing, and
   the stand-in's is 12% narrower, so in ch the headline would break differently until Inter
   arrives. */
.cta-band-title {
  max-width: 11.49em;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: var(--tracking-h2);
  text-wrap: balance;
}
.cta-band-text {
  max-width: 48ch;
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: balance;
}
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
/* The band's parts, the same on every page: the gate's ring mark (48 px) heads it, then the
   index label, the headline, one line, the buttons and a fine line. */
.cta-band-mark {
  width: 48px;
  height: 48px;
}
.cta-band .section-index {
  margin: 0;
}
.cta-band-fine {
  max-width: 54ch;
  margin-top: var(--s-2);
  color: var(--text-2);
  font-size: var(--fs-fine);
  line-height: 1.5;
  text-wrap: balance;
}
/* Phones: the band's lines run past two lines in a narrow column, and a centred paragraph longer
   than two lines is off the brief, so the band reads from the left edge like every section. */
@media (max-width: 719.98px) {
  .cta-band {
    align-items: flex-start;
    padding-block: var(--s-7);
    text-align: left;
  }
  /* a shorter band: the soft light rises with it, behind the buttons rather than empty card */
  .cta-band::after {
    bottom: -10%;
  }
  .cta-band-text,
  .cta-band-fine {
    text-wrap: pretty;
  }
  .cta-band-actions {
    align-self: stretch;
    justify-content: flex-start;
  }
}

/* ===================================================================== 21 Icons, prose, utilities */
/* One set: 24 px grid, 1.75 px stroke, round caps and joins, currentColor. */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon--sm {
  width: 20px;
  height: 20px;
}
.icon--lg {
  width: 32px;
  height: 32px;
}
.icon-dot {
  fill: currentColor;
  stroke: none;
}
/* Long reading, such as the privacy notice. */
.prose {
  max-width: var(--measure);
}
.prose > * + * {
  margin-top: var(--s-4);
}
.prose h2 {
  margin-top: var(--s-8);
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: var(--tracking-h3);
}
.prose h3 {
  margin-top: var(--s-6);
  font-size: var(--fs-body);
  letter-spacing: 0;
}
.prose ul,
.prose ol {
  padding-left: var(--s-5);
}
.prose li + li {
  margin-top: var(--s-2);
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--s-3);
}
.check-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--text);
  -webkit-mask:
    var(--check) center / 12px no-repeat,
    radial-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    var(--check) center / 12px no-repeat exclude,
    radial-gradient(#000 0 0);
}
.rule {
  height: 1px;
  border: 0;
  background: var(--border);
}

/* ===================================================================== 22 Reveals */
/* Pictures and cards rise into place as they scroll in (site.js marks the ones below the first
   screen .is-waiting, then .is-revealed). Movement
   only, never opacity: their text is readable at every moment (roadmap 6.4, and nothing waits
   on a script to be seen). Only things below the first screen move. */
.has-reveal [data-reveal].is-waiting {
  transform: translateY(var(--rise));
}
.has-reveal [data-reveal] {
  transition: transform var(--dur-3) var(--ease-out) var(--reveal-delay, 0ms);
}
@media print {
  .has-reveal [data-reveal].is-waiting {
    transform: none;
  }
}

/* ===================================================================== 23 Reduced motion */
/* Still and complete: every animation rests on its finished frame (the gate on its labelled
   still diagram). data-motion="reduce" on <html> previews the same thing. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
:root[data-motion='reduce'] *,
:root[data-motion='reduce'] *::before,
:root[data-motion='reduce'] *::after {
  animation: none !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  .has-reveal [data-reveal].is-waiting {
    transform: none;
  }
}
:root[data-motion='reduce'].has-reveal [data-reveal].is-waiting {
  transform: none;
}

/* ===================================================================== 24 The closed waitlist */
/* Until the privacy notice is complete there is no form: one calm card says the waitlist
   opens soon (Home's final call and Early access's join section). */
.waitlist-closed {
  display: grid;
  gap: var(--s-3);
  align-content: start;
}
.waitlist-closed-title {
  font-size: var(--fs-h3);
  letter-spacing: var(--tracking-h3);
  line-height: 1.3;
}
.waitlist-closed-text {
  color: var(--text-2);
  max-width: var(--measure);
}
