/* The site's one stylesheet. Dark graphite always, 1 px rules instead of
   shadows, no gradient, one 6 px corner radius (--r) on controls and cards
   (owner 2026-10-20; everything else stays on the square grid). Colours are the desktop window's, read off
   native/Source/Editor/Shell/Style.h (each token names the function it
   copies), with Primary #0070E0 the one accent. Light values stay in the
   tokens, unused, for a later toggle. site/deploy/test/deploy.test.mjs holds
   every text pair to WCAG AA.

   The system, and the whole of it:
   - two faces. IBM Plex Sans for everything a person reads, headings and
     labels included; IBM Plex Mono only for data: figures, records, dates,
     tables and code.
   - one type scale, --t-xs to --t-hero, fixed rungs (12, 14, 16, 18, 22, 28,
     then three fluid display sizes). No other font size in this file.
   - two letter-spacings: --ls-label on the small upper-case labels, --ls-tight
     on display sizes. Nothing else is tracked.
   - one spacing ladder, --s1 to --s10 (4 to 128 px), and one container,
     --wide, with --gutter at its edge.
   - colour only from the tokens in :root.
   Mobile first: the base rules are the phone; each @media (min-width) adds
   columns. */

@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }

:root {
  color-scheme: dark;

  --ui:   "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: var(--ui);

  /* light-dark(light, dark). The dark value is the Style.h function named. */
  --p0:  light-dark(#ffffff, #0f0f0f); /* Input */
  --p1:  light-dark(#f5f5f5, #151515); /* Background */
  --p3:  light-dark(#ffffff, #1a1a1a); /* Recessed: link ink on Panel #242424 is 4.3:1 */
  --p4:  light-dark(#ebebeb, #2f2f2f); /* Header */
  --p5:  light-dark(#dcdcdc, #383838); /* InputOutline */
  --p6:  light-dark(#b8b8b8, #4c4c4c); /* DropdownOutline */
  --p8:  light-dark(#585b62, #8a8f98); /* Name */
  --p9:  light-dark(#404040, #c0c0c0); /* Foreground */
  --p11: light-dark(#151515, #c8c8c8); /* ForegroundHeader */
  --p12: light-dark(#151515, #ffffff); /* ForegroundHover */

  --paper: var(--p1);
  --panel: var(--p3);
  --well:  var(--p0);
  --ink:   var(--p11);
  --head:  var(--p12);
  --mute:  var(--p8);
  --line:  var(--p5);
  --line2: var(--p6);

  /* The one accent, as ink and as the fill of the one button a reader is meant
     to press. Link ink is PrimaryHover on dark and PrimaryPress on light,
     because Primary itself measures 3.8:1 on Background as text; the button
     fill is Primary with white type (4.8:1) and PrimaryPress when pressed or
     hovered (7.9:1). */
  --acc:          light-dark(#0050a0, #0e86ff); /* PrimaryPress, PrimaryHover */
  --acc-solid:    #0070e0;                      /* Primary */
  --acc-solid-hi: #0050a0;                      /* PrimaryPress */
  --on-acc: #ffffff;

  /* Success from Style.h on dark; the light values and the dark error are the
     readable neighbours, because Error #ef3535 measures 4.0:1 on Background. */
  --ok:   light-dark(#15714a, #1fe44b);
  --bad:  light-dark(#c0392f, #f08a8a);
  --unk:      light-dark(#5b6068, #a2a6b2);
  --unk2:     light-dark(#454951, #c3c6cf);
  --unk-wash: light-dark(rgba(91, 96, 104, 0.08), rgba(162, 166, 178, 0.10));
  /* the dimmed ground under a slide's arrow: Input at 72 % */
  --scrim: rgba(15, 15, 15, 0.72);

  /* the type scale, and the whole of it */
  --t-body: 1rem;
  --t-xs:   0.75rem;   /* 12: labels, records */
  --t-sm:   0.875rem;  /* 14: captions, nav, small print */
  --t-md:   0.875rem;  /* 14: table text, the same rung as sm */
  --t-lg:   1rem;      /* 16: body, buttons */
  --t-xl:   1.125rem;  /* 18: lead paragraphs in a block */
  --t-2xl:  1.375rem;  /* 22: ledes */
  --t-3xl:  1.75rem;   /* 28: h3 in a display block */
  --t-h2:   clamp(1.75rem, 2.4vw, 2.25rem);
  --t-h1:   clamp(2rem, 3.2vw, 2.75rem);
  --t-fig:  clamp(2.75rem, 5vw, 4rem);
  --t-hero: clamp(2.75rem, 7vw, 4.75rem);
  /* code keeps a relative size on purpose: it appears inside table cells, list
     items and prose that are themselves at different rungs. */
  --t-code: 0.9em;

  --ls-label: 0.08em;
  --ls-tight: -0.02em;

  /* SVG user units, not page pixels */
  --c-xs: 11px;
  --c-sm: 12px;
  --c-md: 13px;
  --c-lg: 14px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* 1 px rules; the 3 px mark is Style.h Barred(), the bar a state sentence
     stands behind. */
  --bw: 1px; --bw-rule: 1px; --bw-mark: 3px;

  /* Not a rung of anything: the smallest square a finger can reliably hit.
     tools/gates/slop-lint.mjs measures every navigation and call to action
     target against it in a real browser. */
  --tap: 44px;

  /* the one corner radius: buttons, inputs, cards, badges, download blocks */
  --r: 6px;

  /* the grid: one container for every page */
  --wide: 80rem;
  --gutter: var(--s4);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* the footer sits at the bottom of a short page */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > main {
  flex: 1 0 auto;
  width: 100%;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

.mark {
  display: inline-block;
  image-rendering: pixelated;
  vertical-align: middle;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--s4);
  top: var(--s4);
  z-index: 10;
  background: var(--head);
  color: var(--paper);
  padding: var(--s2) var(--s4);
}

a {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--head);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* ---- the frame: one container; the header and footer rules run edge to
   edge while their contents keep to the container ---- */
main {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.bar,
.foot {
  padding-left: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter)));
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--s4);
  padding-top: var(--s2);
  padding-bottom: var(--s2);
  border-bottom: var(--bw-rule) solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  gap: var(--s2);
  color: var(--head);
  text-decoration: none;
  font-family: var(--ui);
  font-size: var(--t-xl);
  font-weight: 600;
}

.brand:hover {
  color: var(--head);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--ui);
  font-size: var(--t-sm);
}

nav li {
  margin: 0;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 var(--s3);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--head);
}

nav a[aria-current="page"] {
  border-bottom-color: var(--acc-solid);
  color: var(--head);
}

@media (max-width: 40rem) {
  /* the strip wraps under the mark: every item is on screen, none scrolls off */
  .bar > nav {
    width: 100%;
  }
  .bar > nav ul {
    margin: 0 calc(var(--s2) * -1);
  }
  .bar > nav a {
    padding: 0 var(--s2);
    white-space: nowrap;
  }
  /* the buying page is first (Early access until pricing moved to /pricing/ on 2026-10-31) */
  .bar > nav li:has(a[href="/pricing/"]) {
    order: -1;
  }
  .bar > nav a[href="/pricing/"] {
    color: var(--head);
    font-weight: 600;
  }
}

main {
  padding-top: var(--s6);
  padding-bottom: var(--s9);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
  padding-top: var(--s5);
  padding-bottom: var(--s7);
  border-top: var(--bw-rule) solid var(--line);
}

.foot nav ul {
  margin-left: calc(var(--s3) * -1);
}

.foot nav a {
  color: var(--mute);
  font-size: var(--t-xs);
}

.foot nav a:hover {
  color: var(--head);
}

/* ---- type ---- */
h1,
h2,
h3 {
  margin: 0 0 var(--s4);
  line-height: 1.15;
  font-family: var(--ui);
  font-weight: 600;
  color: var(--head);
}

h1 {
  font-size: var(--t-hero);
  letter-spacing: var(--ls-tight);
  line-height: 1.05;
}

h2 {
  font-size: var(--t-h2);
  letter-spacing: var(--ls-tight);
}

h3 {
  font-size: var(--t-xl);
}

p {
  margin: 0 0 var(--s4);
  max-width: 64ch;
}

ul,
ol {
  max-width: 64ch;
}

li {
  margin-bottom: var(--s2);
}

.lede {
  display: block;
  font-size: var(--t-2xl);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  max-width: 40ch;
  color: var(--ink);
}

h1 .lede {
  margin-top: var(--s4);
}

/* the small upper-case label: sans, one size, one tracking */
.eyebrow,
.label,
.block h2,
.ea-form-head {
  display: block;
  margin: 0 0 var(--s3);
  font-family: var(--ui);
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--mute);
}

/* a record and its date, under a figure: data, so mono */
.rec {
  display: block;
  margin-top: var(--s1);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0;
  text-transform: none;
  color: var(--mute);
}

.fig {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.hero {
  margin: 0 0 var(--s7);
}

/* ---- the grid: cells share their 1 px rules ---- */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 var(--s7);
  border-top: var(--bw) solid var(--line);
  border-left: var(--bw) solid var(--line);
}

.grid > * {
  min-width: 0;
  margin: 0;
  border-right: var(--bw) solid var(--line);
  border-bottom: var(--bw) solid var(--line);
}

figure {
  margin: 0;
}

figcaption {
  padding: var(--s3) var(--s4);
  font-family: var(--ui);
  font-size: var(--t-sm);
  line-height: 1.5;
  border-top: var(--bw) solid var(--line);
}

.film,
.shots img,
.gallery img {
  width: 100%;
  background: var(--well);
}

.shots img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.block {
  padding: var(--s5);
}

.block p {
  font-size: var(--t-lg);
}

.block > :last-child {
  margin-bottom: 0;
}

.block.signup-block {
  background: var(--panel);
}

.more,
.note {
  font-family: var(--ui);
  font-size: var(--t-sm);
}

/* a section's heading row: the heading on the left, its link on the right */
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
  margin-bottom: var(--s5);
}

.head-row h2 {
  margin: 0;
}

.head-row a {
  font-size: var(--t-sm);
}

/* ---- How it works: a numbered strip of window captures ---- */
.strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5);
  list-style: none;
  max-width: none;
  margin: 0;
  padding: 0;
}

.strip > li {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: var(--bw) solid var(--line);
  background: var(--panel);
}

.strip img {
  width: 100%;
  background: var(--well);
}

.step {
  padding: var(--s4) var(--s5) var(--s5);
  border-top: var(--bw) solid var(--line);
}

.step h3 {
  font-size: var(--t-xl);
  margin-bottom: var(--s1);
}

.step p {
  margin: 0;
  font-size: var(--t-sm);
}

@media (min-width: 40rem) {
  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- References: a card per project, its slides paged in place ----
   A scroll-snap row, one slide wide. Each slide links its neighbours and the
   numbered strip links every slide, so anchors and the keyboard page it with
   no script; the row itself takes focus and scrolls with the arrow keys. */
.project {
  display: flex;
  flex-direction: column;
  background: var(--panel);
}

.project > h2 {
  margin: 0;
  padding: var(--s5) var(--s5) 0;
  font-size: var(--t-2xl);
  letter-spacing: 0;
}

.project > p {
  margin: var(--s1) 0 0;
  padding: 0 var(--s5) var(--s4);
  font-size: var(--t-sm);
  color: var(--mute);
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-top: var(--bw) solid var(--line);
}

.slides::-webkit-scrollbar {
  display: none;
}

.slides:focus-visible {
  outline: var(--bw-mark) solid var(--acc);
  outline-offset: calc(var(--bw-mark) * -1);
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: var(--s9);
}

.slide figcaption {
  padding: var(--s3) var(--s5) var(--s4);
}

.frame {
  position: relative;
}

.slide img,
.slide .film {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--well);
}

.go {
  position: absolute;
  padding: 0;
  border: 0;
  cursor: pointer;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  margin-top: calc(var(--tap) / -2);
  background: var(--scrim);
  color: var(--head);
  font-size: var(--t-3xl);
  text-decoration: none;
  outline: var(--bw) solid var(--line);
}

.go.prev { left: var(--s2); }
.go.next { right: var(--s2); }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: none;
  margin: auto 0 0;
  padding: var(--s1) var(--s4);
  list-style: none;
  border-top: var(--bw) solid var(--line);
}

.pager li {
  margin: 0;
}

/* a dot: the button is a 1.5 rem hit area, the dot is drawn inside it */
.dot {
  position: relative;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin: -0.25rem 0 0 -0.25rem;
  background: var(--line2);
}

.dot:hover::before {
  background: var(--mute);
}

.dot[aria-current='true']::before,
.dot[aria-current='true']:hover::before {
  background: var(--acc-solid);
}

.dot:focus-visible {
  outline: var(--bw-mark) solid var(--acc);
}

/* the featured card is the whole width; the rest are cells in the grid */
.featured-card {
  margin: 0 0 var(--s5);
  border: var(--bw) solid var(--line);
}

.work .project > h2 {
  font-size: var(--t-xl);
  padding: var(--s4) var(--s4) 0;
}

.work .project > p {
  padding: 0 var(--s4) var(--s3);
}

.work .slide figcaption {
  padding: var(--s3) var(--s4);
}

.work .go {
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  font-size: var(--t-xl);
}

.go:hover,
.go:focus {
  background: var(--acc-solid);
  color: var(--on-acc);
  outline-color: var(--acc-solid);
}

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

/* ---- Home: the name beside the CNC render, then the window, then a run ---- */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: var(--s8);
  border: var(--bw) solid var(--line);
  background: var(--panel);
}

.home-text {
  padding: var(--s6) var(--s5);
}

.home-text h1 {
  margin: 0;
  font-size: var(--t-h1);
}

.home-text h1 .lede {
  margin-top: var(--s4);
  font-size: var(--t-2xl);
  letter-spacing: 0;
}

.hero-files {
  margin: 0;
  font-size: var(--t-xs);
  color: var(--mute);
}

.home-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--well);
  border-bottom: var(--bw) solid var(--line);
  order: -1;
  overflow: hidden;
}

.home-shot picture,
.home-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 64rem) {
  .home-hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: 34rem;
  }
  .home-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s7);
    border-right: var(--bw) solid var(--line);
  }
  .home-shot {
    order: 0;
    aspect-ratio: auto;
    border-bottom: 0;
  }
}

.home-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4) var(--s6);
  margin: 0;
  padding: var(--s5);
  border: var(--bw) solid var(--line);
  background: var(--panel);
}

.home-offer p {
  margin: 0;
  font-size: var(--t-xl);
  color: var(--head);
}

.home-refs .more {
  margin: 0;
}

/* the price under the hero buttons, and the Early Access line in the offer strip */
.hero-price {
  margin: var(--s4) 0 var(--s2);
  font-size: var(--t-sm);
  color: var(--ink);
}

.home-offer .offer-note {
  margin-top: var(--s2);
  font-size: var(--t-sm);
  color: var(--mute);
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin: 0;
}

@media (min-width: 64rem) {
  .home-flow .strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tile.shots img,
.shots .tile img {
  aspect-ratio: 4 / 3;
}

@media (min-width: 40rem) {
  .tiles.t3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* four one-line facts in a ruled row */
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--bw) solid var(--line);
}

.facts li {
  margin: 0;
  padding: var(--s3) 0 var(--s3) var(--s5);
  position: relative;
  border-bottom: var(--bw) solid var(--line);
}

.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(var(--s3) + 0.6em);
  width: 8px;
  height: 8px;
  background: var(--acc-solid);
}

@media (min-width: 40rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s5);
  }
}

@media (min-width: 64rem) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .facts li {
    font-size: var(--t-sm);
  }
}

/* ---- Pricing, Download, FAQ: text beside a picture ---- */
.stack > * + * {
  border-top: var(--bw) solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}

.split h1 {
  font-size: var(--t-h1);
}

.bleed {
  border: var(--bw) solid var(--line);
  background: var(--well);
}

.bleed img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* the Download page's window capture keeps its own shape */
.dl-shot img {
  aspect-ratio: auto;
}

.buy {
  margin-top: var(--s5);
}

.buy p {
  font-size: var(--t-sm);
}

.figs-table td {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 40rem) {
  .figs-table td:last-child {
    white-space: nowrap;
  }
}

.needs ul {
  margin: 0 0 var(--s2);
  padding-left: var(--s4);
}

.needs li {
  margin-bottom: var(--s1);
}

.needs figcaption {
  padding: 0;
  border: 0;
}

.faq dl,
dl.faq {
  margin: 0;
  max-width: 62rem;
}

.faq dt {
  font-family: var(--ui);
  font-weight: 600;
  font-size: var(--t-lg);
  color: var(--head);
  border-top: var(--bw) solid var(--line);
  padding-top: var(--s4);
  margin-top: var(--s4);
}

.faq dd {
  margin: var(--s2) 0 0;
  max-width: 62ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s5);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  font-family: var(--ui);
  font-size: var(--t-lg);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  padding: var(--s2) var(--s5);
  border: var(--bw) solid var(--acc-solid);
  background: var(--acc-solid);
  color: var(--on-acc);
  cursor: pointer;
}

.cta:hover,
.cta:focus {
  background: var(--acc-solid-hi);
  border-color: var(--acc-solid-hi);
  color: var(--on-acc);
}

.cta.secondary {
  background: var(--p4);
  border: var(--bw) solid var(--line2);
  color: var(--ink);
}

.cta.secondary:hover,
.cta.secondary:focus {
  background: var(--p5);
  border-color: var(--line2);
  color: var(--ink);
}

/* ---- the legal pages: a readable column with ruled sections ---- */
section {
  margin: 0 0 var(--s7);
}

.grid > section {
  margin: 0;
}

main > section > h2 {
  padding-top: var(--s5);
  border-top: var(--bw-rule) solid var(--line);
}

@media (min-width: 40rem) {
  :root {
    --gutter: var(--s5);
  }
  .g2,
  .g3,
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery .full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  :root {
    --gutter: var(--s6);
  }
  .g3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .g4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  /* References: two cards a row, so each picture is half the page wide */
  .g3.work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s7);
    align-items: center;
  }
}

/* ---- the form, the answer pages, tables, the privacy page's diagram,
   disclosures and the limit box ---- */

.slab {
  border: var(--bw) solid var(--line);
  background: var(--panel);
  padding: var(--s5);
  margin: 0 0 var(--s7);
}

.slab > :last-child {
  margin-bottom: 0;
}

/* The one form on the site. No new colour, no new border weight, the one --r radius:
   the field and the button are drawn out of the same tokens as everything
   else, and the button reuses .cta rather than declaring its own look. */
.signup-form label {
  display: block;
  font-family: var(--ui);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--head);
  margin-bottom: var(--s2);
}

.signup-form input[type="email"],
.signup-form input[type="text"],
.signup-form select,
.signup-form textarea {
  display: block;
  width: 100%;
  max-width: 32rem;
  min-height: 48px;
  font-family: var(--ui);
  font-size: var(--t-lg);
  color: var(--head);
  background: var(--well);
  border: var(--bw) solid var(--line2);
  padding: var(--s2) var(--s3);
  margin-bottom: var(--s4);
}

.signup-form input[type="email"]:hover,
.signup-form input[type="text"]:hover,
.signup-form select:hover,
.signup-form textarea:hover {
  border-color: var(--mute);
}

.signup-form input[type="email"]:focus,
.signup-form input[type="text"]:focus,
.signup-form select:focus,
.signup-form textarea:focus,
.signup-form input[type="checkbox"]:focus {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* The honeypot: present for a bot that fills every field, off the page for a
   person, and out of the tab order. */
.signup-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-form textarea {
  min-height: 7rem;
  resize: vertical;
}

/* the beta questionnaire's five ranking rows */

.signup-form fieldset.rank {
  border: var(--bw) solid var(--line);
  padding: var(--s4);
  margin: 0 0 var(--s4);
}

.signup-form fieldset.rank legend {
  font-family: var(--ui);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--head);
  padding: 0 var(--s2);
}

.signup-form .rank-row {
  display: flex;
  gap: var(--s3);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s3);
}

.signup-form .rank-row label {
  margin: 0;
  font-weight: 400;
}

.signup-form .rank-row select {
  width: 8rem;
  min-height: 40px;
  margin: 0;
}

.signup-form .consent {
  display: flex;
  gap: var(--s3);
  align-items: center;
  margin-bottom: var(--s4);
}

.signup-form .consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--acc-solid);
}

.signup-form .consent label {
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}

/* Turnstile draws a 300 by 65 frame; the box keeps its place before it loads */
.signup-form .cf-turnstile {
  min-height: 65px;
  margin-bottom: var(--s4);
}

.signup-form .cta {
  width: 100%;
  max-width: 32rem;
}
.scroller {
  overflow-x: auto;
  min-width: 0;
  margin-bottom: var(--s6);
}

.block .scroller {
  margin-bottom: 0;
}

/* a text run that overshoots the viewBox must not widen the page: the chart
   clips to its own canvas and the scroller handles the rest */
.chart {
  overflow: hidden;
  max-width: none;
}

/* on a phone a 900 wide diagram cannot be read by scrolling it sideways either,
   so it scales down and the caption underneath carries the figures as real text */
@media (max-width: 45rem) {
  .chart {
    width: 100%;
    height: auto;
  }
}

table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--mono);
  font-size: var(--t-md);
}

caption {
  text-align: left;
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--mute);
  padding-bottom: var(--s2);
}

th,
td {
  border: var(--bw) solid var(--line);
  padding: var(--s2) var(--s3);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--p4);
  color: var(--head);
  font-weight: 400;
}

/* A row header is structure, not emphasis. Every table here names the cell that
   heads its row, so a screen reader can say which row a value belongs to, and
   none of them changes weight for it: the tables look exactly as they did. */
tbody th {
  font-weight: 400;
}

code,
pre,
kbd {
  font-family: var(--mono);
  font-size: var(--t-code);
}

code {
  overflow-wrap: anywhere;
}

pre {
  border: var(--bw) solid var(--line);
  background: var(--p0);
  padding: var(--s4);
  overflow-x: auto;
  margin: 0 0 var(--s5);
}

pre.transcript {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  hyphens: none;
}

figure pre.transcript {
  margin-bottom: 0;
}

blockquote {
  margin: 0 0 var(--s5);
  padding: var(--s1) 0 var(--s1) var(--s4);
  border-left: var(--bw-mark) solid var(--line2);
  font-size: var(--t-xl);
}

blockquote p:last-child {
  margin-bottom: 0;
}

dl {
  margin: 0 0 var(--s5);
}

dt {
  font-family: var(--ui);
  font-weight: 600;
  font-size: var(--t-lg);
  color: var(--head);
  border-top: var(--bw) solid var(--line);
  padding-top: var(--s2);
  margin-top: var(--s4);
}

dd {
  margin: var(--s2) 0 0;
  max-width: 68ch;
}



.chart {
  display: block;
}

.chart text {
  font-family: var(--mono);
  font-size: var(--c-sm);
  font-variant-numeric: tabular-nums;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--panel);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.chart .c-val {
  font-size: var(--c-md);
  font-weight: 700;
}

.chart .c-leg {
  font-size: var(--c-sm);
}

.chart .c-axis-title {
  font-size: var(--c-xs);
  letter-spacing: 0.06em;
  fill: var(--mute);
}

.chart .c-on {
  fill: var(--paper);
  stroke: none;
}

.chart .c-a {
  fill: var(--acc);
}

.chart .c-ink {
  fill: var(--ink);
}

.chart .c-zero {
  fill: var(--line);
}

.chart .c-b {
  fill: var(--panel);
  stroke: var(--line);
  stroke-width: 3;
}

.chart .c-axis {
  stroke: var(--line);
  stroke-width: 3;
}

.chart .c-grid {
  stroke: var(--line);
  stroke-width: 1;
  opacity: 0.28;
}

.chart .c-ref {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.chart .c-link {
  stroke: var(--ink);
  stroke-width: 4;
}

.chart .c-link-hi {
  stroke: var(--ink);
  stroke-width: 9;
}

/* an open box, so a boundary reads as a boundary rather than as a filled slab */
.chart .c-frame { fill: none; stroke: var(--line2); stroke-width: 1; }
.chart .c-frame-hi { fill: none; stroke: var(--acc); stroke-width: 1; }

@media print {
  .dia-narrow { display: none; }
  .dia-wide { display: block; }
  .chart.dia { width: 58%; min-width: 0; max-width: none; }
}


/* ---- the technical layer, one click under the plain sentence ----
   Plain <details>. No JavaScript, focusable from the keyboard, announced as a
   disclosure, and its content is in the HTML whether it is open or shut, so a
   crawler and a reader with scripting off both get all of it. */
.deep {
  border: var(--bw) solid var(--line);
  background: var(--panel);
  margin: var(--s5) 0 var(--s6);
}
.deep > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: var(--tap);
  padding: var(--s3) var(--s4);
  font-family: var(--ui);
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
}
.deep > summary::marker { color: var(--acc); }
.deep > summary:hover { color: var(--acc); }
.deep > summary:focus-visible { outline: var(--bw-mark) solid var(--acc); outline-offset: calc(var(--bw-mark) * -1); }
.deep[open] > summary { border-bottom: var(--bw) solid var(--line); }
.deep-body { padding: var(--s4) var(--s4) var(--s2); }
.deep-body > :last-child { margin-bottom: var(--s3); }
.deep-body h3 { margin: var(--s5) 0 var(--s3); }
.deep-body > h3:first-child { margin-top: 0; }
.deep-body ol,
.deep-body ul { padding-left: var(--s5); }
.deep-body li { margin-bottom: var(--s2); }
@media print {
  .deep { break-inside: avoid; border-width: var(--bw-rule); margin: var(--s3) 0; }
  .deep-body { padding: var(--s3); }
}

.limitbox {
  margin: var(--s4) 0;
  padding: var(--s3) var(--s4);
  max-width: 74ch;
  background: var(--unk-wash);
  border: var(--bw) solid var(--line2);
  border-left: var(--bw-mark) solid var(--unk);
}
.limitbox .limithead {
  font-family: var(--ui);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--unk2);
  margin-bottom: var(--s2);
}
.limitbox ul { list-style: none; margin: 0; padding: 0; }
.limitbox li {
  position: relative;
  margin-top: var(--s2);
  padding-left: var(--s3);
  font-size: var(--t-md);
  color: var(--p9);
}
.limitbox li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 5px; height: 1px; background: var(--unk);
}



/* ---- Early Access: the sign-up page ----
   The headline, one line and the form beside the V6 v2 cutaway; then the
   offer, what signing up sends, the planned list, three questions and the
   form again. */
.ea-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
}

.ea-intro h1 {
  font-size: var(--t-h1);
  margin-bottom: var(--s4);
}

.ea-intro .lede {
  font-size: var(--t-xl);
  line-height: 1.55;
  margin-bottom: var(--s5);
}

.ea-form {
  padding: var(--s5);
  border: var(--bw) solid var(--line);
  background: var(--panel);
}

.ea-shot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: var(--bw) solid var(--line);
  background: var(--well);
}

.ea-shot picture,
.ea-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the window film under the first screen: the whole width, ruled like a picture */
.ea-film {
  margin-top: var(--s7);
}

.film-frame {
  border: var(--bw) solid var(--line);
  background: var(--well);
}

.film-frame .film {
  display: block;
  height: auto;
  aspect-ratio: 16 / 9;
}

.how-film {
  margin-top: var(--s5);
}

/* one of the two films is shown: the playing one, or under reduced motion the
   one that waits for a press (site/media.mjs) */
.film-frame .film-still {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .film-frame .film-moving {
    display: none;
  }
  .film-frame .film-still {
    display: block;
  }
}

/* what signing up sends: four numbered messages in a ruled row */
.steps4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: var(--bw) solid var(--line);
}

.steps4 li {
  margin: 0;
  padding: var(--s4) var(--s5) var(--s4) 0;
  border-bottom: var(--bw) solid var(--line);
  counter-increment: step;
  color: var(--head);
}

.steps4 li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--acc);
}

@media (min-width: 40rem) {
  .steps4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s5);
  }
}

@media (min-width: 64rem) {
  .steps4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ea-get {
  margin-bottom: var(--s4);
  font-size: var(--t-lg);
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--head);
}

.ea-form .slab,
.ea-end .slab {
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 var(--s3);
}

.ea-small {
  font-size: var(--t-xs);
  color: var(--mute);
  margin-bottom: 0;
}

/* the references: four tiles of one shape, one figure each */
.tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s4);
}

.tile {
  display: block;
  color: var(--ink);
  text-decoration: none;
  border: var(--bw) solid var(--line);
  background: var(--panel);
}

.tile:hover {
  color: var(--ink);
  border-color: var(--line2);
}

.tile:hover .tile-name {
  color: var(--acc);
}

.tile img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--well);
}

.tile figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s1) var(--s4);
  align-items: baseline;
  padding: var(--s4) var(--s5);
}

.tile-name {
  font-weight: 600;
  font-size: var(--t-lg);
  color: var(--head);
}

.tile-fig {
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--head);
  text-align: right;
  white-space: nowrap;
}

.tile .rec {
  grid-column: 1 / -1;
  margin: 0;
}

/* the questions: heading on the left, answers in a ruled column */
.ea-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5);
}

.ea-faq dl {
  border-bottom: var(--bw) solid var(--line);
}

.ea-faq dt {
  margin: 0;
  padding: var(--s5) 0 0;
}

.ea-faq dd {
  margin: var(--s2) 0 0;
  padding-bottom: var(--s5);
}

.ea-faq .needs ul {
  margin: 0 0 var(--s2);
}

/* the form again, closing the page: one ruled panel, text and form side by side */
.ea-end {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5);
  margin-bottom: 0;
  padding: var(--s6) var(--s5);
  border: var(--bw) solid var(--line);
  background: var(--panel);
}

.ea-end h2 {
  font-size: var(--t-3xl);
  margin-bottom: var(--s3);
}

.ea-end-text p {
  margin: 0;
}

@media (min-width: 40rem) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s5);
  }
}

@media (min-width: 64rem) {
  .ea-top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s7);
  }
  .ea-shot {
    aspect-ratio: auto;
    min-height: 28rem;
  }
  .ea-faq {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s7);
  }
  .ea-faq dl {
    border-top: var(--bw) solid var(--line);
  }
  .ea-faq dt:first-child {
    border-top: 0;
  }
  .ea-end {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s7);
    align-items: start;
    padding: var(--s7);
  }
  .ea-end .signup-form {
    max-width: 32rem;
  }
}

/* how it works: one window capture with numbered pins, the key under it */
.callout-frame {
  position: relative;
  border: var(--bw) solid var(--line);
  background: var(--well);
}

.callout-frame img {
  width: 100%;
}

.pin {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  font-family: var(--ui);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1;
  background: var(--acc-solid);
  color: var(--on-acc);
  outline: 2px solid var(--paper);
}

/* each pin's place, in percent of the capture (1920 by 932): the workspace
   tabs, the ribbon's panels, the model tree, the part in the viewport */
.pin-1 { left: 33.5%; top: 6%; }
.pin-2 { left: 58.3%; top: 13.5%; }
.pin-3 { left: 14%; top: 40%; }
.pin-4 { left: 64%; top: 55%; }

.callouts figcaption {
  padding: 0;
  border: 0;
}

.callout-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s4) var(--s5);
  max-width: none;
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pin;
}

.callout-list li {
  position: relative;
  margin: 0;
  padding-left: 40px;
  font-size: var(--t-sm);
  line-height: 1.55;
  counter-increment: pin;
}

.callout-list li::before {
  content: counter(pin);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-weight: 600;
  background: var(--acc-solid);
  color: var(--on-acc);
}

.callout-list strong,
.engines strong {
  display: block;
  font-weight: 600;
  color: var(--head);
}

/* what is different: a ruled table, Whet's column marked by a rule and ink */
.compare {
  font-family: var(--ui);
  font-size: var(--t-sm);
  min-width: 40rem;
}

.compare th,
.compare td {
  padding: var(--s3) var(--s4);
  border-left: 0;
  border-right: 0;
  line-height: 1.5;
}

.compare thead th {
  background: none;
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--mute);
  border-top: 0;
}

.compare tbody th {
  font-weight: 600;
  color: var(--head);
  width: 9rem;
}

.compare .us {
  background: var(--panel);
  color: var(--head);
  border-left: var(--bw-mark) solid var(--acc-solid);
}

.compare thead .us {
  color: var(--head);
}

/* the Download page's trial against licence: the licence column stays narrow */
.trial-compare {
  min-width: 34rem;
}

@media (min-width: 40.0625rem) {
  .trial-compare td.us {
    width: 12rem;
  }
}

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

/* on a phone each row is a block: the row name, then each column under its label */
@media (max-width: 40rem) {
  .compare {
    min-width: 0;
  }
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: auto;
  }
  .compare tbody th {
    width: auto;
    padding-top: var(--s5);
    border: 0;
    border-top: var(--bw) solid var(--line);
  }
  .compare td {
    border: 0;
    padding-top: var(--s2);
    padding-bottom: var(--s2);
  }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    color: var(--mute);
  }
  .pin {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    font-size: var(--t-xs);
  }
  /* on a phone the capture keeps its left 73 % (the panels and the part) so
     the type is larger; the pins move with it */
  .callout-frame img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: 0 0;
  }
  .pin-1 { left: 46%; }
  .pin-2 { left: 80%; }
  .pin-3 { left: 19.2%; }
  .pin-4 { left: 87.9%; }
}

/* what is inside: one capture of Scan to CAD under the six engines */
.how-scan {
  margin-top: var(--s5);
  border: var(--bw) solid var(--line);
  background: var(--panel);
}

.how-scan img {
  width: 100%;
  background: var(--well);
}

/* what is inside: six engines, a name and a line each */
.engines {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--bw) solid var(--line);
  border-left: var(--bw) solid var(--line);
}

.engines li {
  margin: 0;
  padding: var(--s4) var(--s5);
  font-size: var(--t-sm);
  border-right: var(--bw) solid var(--line);
  border-bottom: var(--bw) solid var(--line);
}

.engines strong {
  font-size: var(--t-lg);
  margin-bottom: var(--s1);
}

@media (min-width: 40rem) {
  .callout-list,
  .engines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .callout-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .engines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* planned work: drawn apart from what ships, a dashed outline and muted ink,
   the items as tags rather than claims */
.planned {
  margin: 0;
  padding: var(--s5);
  border: var(--bw) dashed var(--line2);
}

.planned .label {
  margin-bottom: var(--s2);
}

.planned p {
  margin: 0 0 var(--s4);
  font-size: var(--t-sm);
  color: var(--mute);
}

.planned ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.planned li {
  margin: 0;
  padding: var(--s1) var(--s3);
  font-size: var(--t-sm);
  color: var(--ink);
  border: var(--bw) dashed var(--line2);
}

/* the note that the pictures are made, not generated */
.note-real {
  max-width: 72ch;
  margin: 0 0 var(--s5);
  padding-left: var(--s4);
  font-size: var(--t-sm);
  color: var(--ink);
  border-left: var(--bw-mark) solid var(--acc-solid);
}

/* the recorded run: the steps fill in beside the frame they belong to.
   Without the script every step shows with the last frame. */
.rrun {
  margin: 0;
}

.rrun .head-row {
  margin-bottom: var(--s2);
}

.rrun-note {
  margin: 0 0 var(--s5);
  font-size: var(--t-sm);
  color: var(--mute);
}

.rrun-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: var(--bw) solid var(--line);
  background: var(--panel);
}

.rrun-steps {
  max-width: none;
  margin: 0;
  padding: var(--s4) 0;
  list-style: none;
  order: 2;
}

.rrun-steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  margin: 0;
  padding: var(--s2) var(--s5) var(--s2) var(--s4);
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--head);
  border-left: var(--bw-mark) solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.rrun-n {
  font-family: var(--mono);
  font-size: var(--t-xs);
  line-height: 1.9;
  color: var(--mute);
}

.rrun.is-playing .rrun-steps li {
  color: var(--mute);
}

.rrun.is-playing .rrun-steps li.is-done {
  color: var(--ink);
}

.rrun.is-playing .rrun-steps li.is-on {
  color: var(--head);
  border-left-color: var(--acc-solid);
}

.rrun.is-playing .rrun-steps li.is-on .rrun-n {
  color: var(--acc);
}

.rrun-view {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--well);
  border-bottom: var(--bw) solid var(--line);
  overflow: hidden;
}

.rrun-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
}

.rrun-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rrun-frame:last-child,
.rrun.is-playing .rrun-frame.is-on {
  opacity: 1;
}

.rrun.is-playing .rrun-frame:last-child:not(.is-on) {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rrun-frame,
  .rrun-steps li {
    transition: none;
  }
}

@media (min-width: 64rem) {
  .rrun-body {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
  .rrun-steps {
    order: 0;
    align-self: center;
    padding: var(--s5) 0;
  }
  .rrun-view {
    border-bottom: 0;
    border-left: var(--bw) solid var(--line);
  }
}

/* system requirements: a two-column ruled table, the row name in sans */
.req-table {
  font-family: var(--ui);
  font-size: var(--t-sm);
}

.req-table th,
.req-table td {
  padding: var(--s2) var(--s3);
  border-left: 0;
  border-right: 0;
  line-height: 1.5;
}

.req-table tbody th {
  width: 14rem;
  font-weight: 600;
  color: var(--head);
}

.reqs figcaption {
  margin-top: var(--s2);
}

@media (max-width: 40rem) {
  .req-table th,
  .req-table td {
    display: block;
    width: auto;
    border: 0;
  }
  .req-table tbody th {
    width: auto;
    padding-bottom: 0;
    border-top: var(--bw) solid var(--line);
  }
}

/* ---- the answer pages after the form, and the two the function draws:
   one panel, one heading, one sentence, one button ---- */
.result {
  max-width: 40rem;
  margin: var(--s8) auto var(--s9);
  padding: var(--s7) var(--s6);
  border: var(--bw) solid var(--line);
  background: var(--panel);
}

.result h1 {
  font-size: var(--t-h1);
}

.result .lede {
  font-size: var(--t-xl);
  line-height: 1.55;
  margin-bottom: var(--s5);
}

.result .reasons {
  margin: 0 0 var(--s5);
  padding-left: var(--s5);
}

.reasons:has(li:target) li:not(:target) {
  display: none;
}

.reasons:has(li:target) {
  list-style: none;
  padding-left: 0;
  font-size: var(--t-xl);
  color: var(--head);
}

.result .actions,
.result .signup-form {
  margin-top: 0;
  margin-bottom: var(--s4);
}

.result .signup-form .cta {
  width: auto;
}

.result > :last-child {
  margin-bottom: 0;
}

.result .ea-small {
  max-width: none;
  padding-top: var(--s4);
  border-top: var(--bw) solid var(--line);
}

@media (max-width: 40rem) {
  .result {
    margin-top: var(--s5);
    padding: var(--s6) var(--s5);
  }
}

/* ---- the account page (drawn by site/deploy lib/portal.mjs): one card per
   licence with its facts as a two-column list, one button for the licence
   file, the installers as a table of buttons. Same tokens, same .cta. ---- */
.acct-head {
  margin-top: var(--s7);
}

.acct-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s5);
  margin-bottom: var(--s6);
}

.acct-who .lede {
  margin: 0;
}

.acct-notice {
  max-width: none;
  border: var(--bw) solid var(--line2);
  border-left: var(--bw-mark) solid var(--bad);
  background: var(--panel);
  color: var(--head);
  padding: var(--s3) var(--s4);
  margin: 0 0 var(--s5);
}

.acct-list {
  display: grid;
  gap: var(--s5);
}

.acct-licence {
  margin: 0;
}

.acct-licence h3 {
  margin: 0 0 var(--s3);
}

.acct-class {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--mute);
  border: var(--bw) solid var(--line2);
  padding: 0 var(--s2);
  margin-left: var(--s2);
  vertical-align: middle;
}

.acct-state {
  max-width: none;
  border-left: var(--bw-mark) solid var(--acc);
  padding-left: var(--s3);
  color: var(--head);
}

.acct-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--s2) var(--s5);
  margin: 0 0 var(--s4);
}

.acct-facts dt {
  border: 0;
  padding: 0;
  margin: 0;
  font-size: var(--t-sm);
  font-weight: 400;
  color: var(--mute);
}

.acct-facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-md);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.acct-form {
  margin: 0;
}

.acct-files {
  max-width: none;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s3);
}

.acct-files li {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin: 0;
  padding-top: var(--s3);
  border-top: var(--bw) solid var(--line);
  font-family: var(--mono);
  font-size: var(--t-md);
}

.acct-out {
  color: var(--mute);
}

.acct-how {
  font-size: var(--t-sm);
  color: var(--mute);
  margin: var(--s3) 0 0;
}

.acct-dl,
.acct-seats {
  margin-top: var(--s7);
}

.acct-table td,
.acct-table th {
  vertical-align: middle;
}

.acct-table .cta {
  font-size: var(--t-sm);
  padding: var(--s1) var(--s4);
}

/* On a phone the installers table has no room for a column per platform, so
   each version is one block: the version, its date, then a button per file. */
@media (max-width: 40rem) {
  .acct-table thead {
    display: none;
  }
  .acct-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s2) var(--s3);
    padding: var(--s3) 0;
    border-top: var(--bw) solid var(--line);
  }
  .acct-table th,
  .acct-table td {
    display: block;
    border: 0;
    padding: 0;
  }
  .acct-table tbody th {
    color: var(--head);
  }
  /* a version outside the window says so once, not once per platform */
  .acct-table td.acct-out ~ td.acct-out {
    display: none;
  }
}

/* A legal page's title is a sentence, not a word: it takes the smaller size. */
.page-privacy h1,
.page-terms h1,
.page-refunds h1,
.page-licences h1,
.page-legal h1,
.page-404 h1 {
  font-size: var(--t-h1);
  max-width: 24ch;
}

.page-privacy main,
.page-terms main,
.page-refunds main,
.page-licences main,
.page-legal main {
  max-width: 62rem;
}

/* The licences table: on a phone the columns share the width and a long
   source address breaks rather than pushing the page sideways. */
@media (max-width: 30rem) {
  table.suite {
    table-layout: fixed;
  }
  table.suite th,
  table.suite td,
  table.suite td *,
  table.suite caption {
    overflow-wrap: anywhere;
  }
}

/* ---- the layout system of the product pages (2026-10-07) ----
   One container (main, --wide), one gap between the sections of a page
   (--band), every section heading in the same place and size. The legal
   pages keep their own reading column above. */
:root {
  --band: var(--s8);
}

@media (min-width: 64rem) {
  :root {
    --band: var(--s9);
  }
}

:is(.page-home, .page-early-access, .page-how-it-works, .page-references, .page-download, .page-faq) main > * {
  margin-top: 0;
  margin-bottom: 0;
}

:is(.page-home, .page-early-access, .page-how-it-works, .page-references, .page-download, .page-faq) main > * + * {
  margin-top: var(--band);
}

:is(.page-home, .page-early-access, .page-how-it-works, .page-references, .page-download, .page-faq) main > section > h2 {
  margin-bottom: var(--s5);
  padding-top: 0;
  border-top: 0;
}

/* the head of an inner page: the title and one line */
.page-head h1 {
  font-size: var(--t-h1);
}

.page-head .lede {
  margin-bottom: 0;
}

.page-head .note-real {
  margin: var(--s5) 0 0;
}

/* the references grid sits under its featured card, not a band away */
.page-references main > .featured-card + .gallery {
  margin-top: var(--s5);
}

.req-short .rec {
  margin-top: var(--s2);
}

.req-short a {
  white-space: nowrap;
}

.how-local .note {
  margin: var(--s5) 0 0;
}

.dl-first p {
  max-width: 72ch;
}

/* ---- click to enlarge: site/assets/lightbox.js ---- */
a.zoom {
  display: block;
  cursor: zoom-in;
}

.tile img[data-full] {
  cursor: zoom-in;
}

.lb-open {
  overflow: hidden;
}

.lb[hidden] {
  display: none;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.985);
  overscroll-behavior: contain;
  touch-action: none;
  animation: lb-fade 0.15s ease-out;
}

.lb-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  max-width: 100%;
  margin: 0;
  padding: var(--s5) var(--s8);
}

.lb-stage {
  max-width: 100%;
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
}

.lb-zoomed .lb-stage {
  cursor: grab;
}

.lb-zoomed .lb-stage:active {
  cursor: grabbing;
}

.lb-tools {
  position: absolute;
  top: var(--s4);
  left: var(--s4);
  display: flex;
  gap: var(--s2);
}

.lb-tools .lb-btn {
  position: static;
  font-size: var(--t-xl);
}

.lb-tools .lb-fit {
  width: auto;
  padding: 0 var(--s4);
  font-size: var(--t-sm);
}

.lb-btn:disabled {
  opacity: 0.4;
  cursor: default;
  background: var(--scrim);
  color: #ffffff;
  outline-color: #4c4c4c;
}

.lb-img {
  display: block;
  -webkit-user-drag: none;
  transform-origin: 0 0;
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--well);
  border: var(--bw) solid var(--line);
  opacity: 0;
}

.lb-img.in {
  opacity: 1;
  transition: opacity 0.15s ease-out;
}

.lb-cap {
  max-width: 60rem;
  min-height: 3.5rem;
  color: #c8c8c8;
  font-size: var(--t-sm);
  line-height: 1.5;
  text-align: center;
}

.lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--scrim);
  color: #ffffff;
  font-size: var(--t-3xl);
  line-height: 1;
  outline: var(--bw) solid #4c4c4c;
}

.lb-btn[hidden] {
  display: none;
}

.lb-btn:hover {
  background: var(--acc-solid);
  color: var(--on-acc);
  outline-color: var(--acc-solid);
}

.lb-btn:focus-visible {
  outline: var(--bw-mark) solid var(--acc);
  outline-offset: 2px;
}

.lb-close { top: var(--s4); right: var(--s4); }
.lb-prev { top: 50%; left: var(--s4); margin-top: calc(var(--tap) / -2); }
.lb-next { top: 50%; right: var(--s4); margin-top: calc(var(--tap) / -2); }

@keyframes lb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 40rem) {
  .lb-fig { padding: var(--s8) var(--s2) var(--s5); }
  .lb-img { max-height: calc(100dvh - 12rem); }
  .lb-prev, .lb-next { top: auto; bottom: var(--s4); margin-top: 0; }
  .lb-prev { left: var(--s4); }
  .lb-next { right: var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  .lb { animation: none; }
  .lb-img.in { transition: none; }
}

/* ---- pricing, a section of Early Access since 2026-10-07 ----
   Four plan cards in one ruled grid, the founder price large and the price
   after the first 300 licences under it; a seat plan carries its worked
   totals, founder column marked as the comparison is. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

#pricing {
  width: fit-content;
  scroll-margin-top: var(--s5);
}

[tabindex="-1"]:focus {
  outline: none;
}

[tabindex="-1"]:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 4px;
}

.pricing-lede {
  max-width: 64ch;
  margin: 0 0 var(--s5);
  color: var(--ink);
}

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--bw) solid var(--line);
  border-left: var(--bw) solid var(--line);
}

.pc {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: var(--s5);
  background: var(--panel);
  border-right: var(--bw) solid var(--line);
  border-bottom: var(--bw) solid var(--line);
}

/* Each plan's buy control sits at the foot of its card, so the buttons of
   cards side by side line up whatever the card above them says. */
.pc-buy {
  margin-top: auto;
  padding-top: var(--s5);
}

.pc-buy .cta {
  width: 100%;
}

.pc-next {
  margin: var(--s3) 0 0;
  font-size: var(--t-sm);
  color: var(--ink);
}

.pc-buy > .pc-next:first-child {
  margin: 0 0 var(--s3);
}

/* The updates renewal: an add-on for owners, one ruled row under the plans. */
.pc-addon {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s4) var(--s6);
  align-items: center;
  margin-top: var(--s3);
  padding: var(--s5);
  border: var(--bw) solid var(--line);
  background: var(--panel);
}

.pc-addon h3 {
  margin: 0;
  font-size: var(--t-lg);
  color: var(--head);
}

.pc-addon .pc-who {
  margin: var(--s1) 0 0;
}

.pc-addon .pc-buy {
  margin: 0;
  padding: 0;
}

.pc-addon .pc-buy > .pc-next:first-child {
  margin: 0;
}

@media (min-width: 40rem) {
  .pc-addon {
    grid-template-columns: minmax(0, 2fr) auto minmax(0, 2fr);
  }
}

.pc h3 {
  margin: 0;
  font-size: var(--t-xl);
  color: var(--head);
}

.pc-who {
  margin: 0 0 var(--s4);
  font-size: var(--t-sm);
  color: var(--mute);
}

.pc-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 var(--s2);
  margin: 0;
  padding-left: var(--s3);
  border-left: var(--bw-mark) solid var(--acc-solid);
}

.pc-now {
  font-family: var(--ui);
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--ls-tight);
  color: var(--head);
}

.pc-unit {
  font-size: var(--t-sm);
  color: var(--ink);
}

.pc-after {
  margin: var(--s2) 0 0;
  padding-left: calc(var(--s3) + var(--bw-mark));
  font-size: var(--t-sm);
  color: var(--mute);
}

.pc-after .fig {
  color: var(--ink);
}

.pc-totals {
  margin-top: var(--s4);
  font-size: var(--t-xs);
}

.pc-totals th,
.pc-totals td {
  padding: var(--s1) var(--s2);
  border-left: 0;
  border-right: 0;
  white-space: nowrap;
}

.pc-totals thead th {
  background: none;
  font-family: var(--ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--mute);
  border-top: 0;
}

.pc-totals tbody th {
  font-weight: 400;
  color: var(--ink);
}

.pc-totals .us {
  color: var(--head);
  border-left: var(--bw-mark) solid var(--acc-solid);
}

.pricing-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5) var(--s7);
  margin-top: var(--s5);
}

.incl {
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--bw) solid var(--line);
}

.incl li {
  position: relative;
  margin: 0;
  padding: var(--s2) 0 var(--s2) var(--s5);
  border-bottom: var(--bw) solid var(--line);
}

.incl li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(var(--s2) + 0.6em);
  width: 8px;
  height: 8px;
  background: var(--acc-solid);
}

.pricing-notes p {
  margin: 0 0 var(--s2);
  font-size: var(--t-sm);
}

.pricing-notes .buy {
  margin-top: var(--s4);
}

/* running work elsewhere: a ruled 2 x 2 on How it works, one row on Early Access */
.else-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--bw) solid var(--line);
  border-left: var(--bw) solid var(--line);
}

.else-grid li {
  min-width: 0;
  margin: 0;
  padding: var(--s5);
  border-right: var(--bw) solid var(--line);
  border-bottom: var(--bw) solid var(--line);
}

.else-grid h3 {
  margin: 0 0 var(--s2);
  font-size: var(--t-lg);
  color: var(--head);
}

.else-grid p {
  margin: 0;
  font-size: var(--t-sm);
}

.ea-elsewhere .label {
  margin-bottom: var(--s3);
}

.ea-else-more {
  margin: var(--s3) 0 0;
  font-size: var(--t-sm);
}

@media (min-width: 40rem) {
  .plans,
  .else-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .pricing-foot {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.order-line {
  margin: var(--s4) 0 0;
  font-size: var(--t-sm);
  color: var(--ink);
}

.pc-tag {
  margin: 0 0 var(--s1);
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--acc);
}

/* ---- documentation: /docs/ and one page per manual chapter ---- */
.docs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
}

.docs-side {
  font-family: var(--ui);
  font-size: var(--t-sm);
}

.docs-nav > summary {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--s3);
  border: var(--bw) solid var(--line);
  background: var(--well);
  color: var(--head);
  font-weight: 600;
  cursor: pointer;
}

.docs-nav > summary:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.docs-nav > .docs-find {
  margin-top: var(--s4);
}

.docs-find label {
  display: block;
  margin: 0 0 var(--s2);
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--mute);
}

.docs-find input {
  width: 100%;
  min-height: var(--tap);
  padding: 0 var(--s3);
  border: var(--bw) solid var(--line);
  background: var(--well);
  color: var(--ink);
  font: inherit;
}

.docs-find input:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

#dl {
  margin: var(--s4) 0 0;
  padding: 0;
  max-width: none;
  list-style: none;
}

#dl > li {
  margin: 0;
}

#dl a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--s3);
  color: var(--ink);
  text-decoration: none;
  border-left: 2px solid transparent;
}

#dl a:hover {
  color: var(--head);
}

#dl a[aria-current="page"] {
  border-left-color: var(--acc-solid);
  color: var(--head);
}

#dl ul {
  display: none;
  margin: 0 0 var(--s2) var(--s4);
  padding: 0;
  list-style: none;
}

#dl.q ul {
  display: block;
}

#dl ul a {
  min-height: var(--tap);
  color: var(--mute);
  font-size: var(--t-xs);
}

#dl [hidden] {
  display: none;
}

.docs-main {
  min-width: 0;
}

.docs-main > h2 {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: var(--bw-rule) solid var(--line);
}

.docs-main > h2:first-of-type {
  margin-top: var(--s5);
}

.docs-main > h3 {
  margin-top: var(--s6);
}

.docs-main > h4 {
  margin: var(--s5) 0 var(--s3);
  font-size: var(--t-lg);
}

.docs-main h2[id],
.docs-main h3[id] {
  scroll-margin-top: var(--s5);
}

.docs-main p,
.docs-main ul,
.docs-main ol {
  max-width: 72ch;
}

.docs-main blockquote {
  max-width: 72ch;
  font-size: var(--t-lg);
}

.docs-table {
  margin: 0 0 var(--s5);
  overflow-x: auto;
}

.docs-table table {
  min-width: 36rem;
}

/* below the table's own width the table scrolls sideways; say so above it */
.docs-table::before {
  content: none;
}

@media (max-width: 47.99rem) {
  .docs-table::before {
    content: "This table scrolls horizontally.";
    display: block;
    margin-bottom: var(--s2);
    font-size: 0.875rem;
    color: var(--mute);
  }
}

.docs-main pre {
  max-width: 100%;
}

.docs-list {
  max-width: none;
  margin: var(--s6) 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--bw) solid var(--line);
}

.docs-list li {
  display: grid;
  gap: var(--s1);
  margin: 0;
  padding: var(--s4) 0;
  border-bottom: var(--bw) solid var(--line);
}

.docs-list a {
  font-family: var(--ui);
  font-size: var(--t-xl);
  font-weight: 600;
}

.docs-list span {
  max-width: 72ch;
  color: var(--mute);
}

.docs-pager {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: var(--bw-rule) solid var(--line);
}

.docs-pager a {
  display: block;
  min-height: var(--tap);
  padding: var(--s3) var(--s4);
  border: var(--bw) solid var(--line);
  color: var(--head);
  text-decoration: none;
  font-family: var(--ui);
}

.docs-pager a:hover {
  border-color: var(--acc);
}

.docs-pager .label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--mute);
}

@media (min-width: 64rem) {
  .docs-nav > summary {
    display: none;
  }
  .docs-nav > .docs-find {
    margin-top: 0;
  }
  .docs {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: var(--s8);
    align-items: start;
  }
  .docs-side {
    position: sticky;
    top: var(--s4);
    max-height: calc(100vh - var(--s6));
    overflow-y: auto;
  }
  .docs-pager {
    grid-template-columns: 1fr 1fr;
  }
  .docs-pager .docs-next {
    grid-column: 2;
    text-align: right;
  }
}

.docs-main h1 {
  font-size: var(--t-h1);
  margin-bottom: var(--s5);
}

/* ---- Notes: the optional news section (site/notes.mjs) ---- */
.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44rem;
}

.note-list li {
  padding: var(--s4) 0;
  border-top: var(--bw) solid var(--line);
}

.note-list time,
.note-date {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: var(--ls-label);
  color: var(--mute);
}

.note-list h2 {
  margin: var(--s1) 0;
  font-size: var(--t-xl);
  letter-spacing: 0;
}

.note-list p {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--mute);
}

.note-body {
  max-width: 44rem;
}

.note-body p {
  margin: 0 0 var(--s4);
}

.note-body h2 {
  margin: var(--s5) 0 var(--s3);
  font-size: var(--t-xl);
  letter-spacing: 0;
}

.note-figure {
  margin: var(--s5) 0;
}

.note-figure figcaption {
  margin-top: var(--s2);
  font-size: var(--t-sm);
  color: var(--mute);
}

.note-back {
  margin-top: var(--s5);
}

/* ---- the sign-in and its answer pages: one narrow centred card ---- */
.auth {
  max-width: 28rem;
  text-align: left;
}

.auth h1 {
  font-size: var(--t-h2, var(--t-h1));
}

.auth .lede {
  font-size: var(--t-lg);
}

.auth .signup-form input[type="email"],
.auth .signup-form .cta {
  max-width: none;
}

.auth .actions .cta {
  width: 100%;
  text-align: center;
}

.auth-notes {
  max-width: none;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s4);
  display: grid;
  gap: var(--s1);
  font-size: var(--t-sm);
  color: var(--mute);
}

.auth-notes li {
  margin: 0;
  max-width: none;
}

/* ---- the account hub: navigation, status badges, tables, blocks ---- */
.acct-nav {
  margin: 0 0 var(--s6);
  border-bottom: var(--bw) solid var(--line);
}

.acct-nav ul {
  max-width: none;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s2);
}

.acct-nav li {
  margin: 0;
  max-width: none;
}

.acct-nav a {
  display: block;
  padding: var(--s3) var(--s4);
  color: var(--ink);
  text-decoration: none;
  border-bottom: var(--bw-mark) solid transparent;
  margin-bottom: calc(-1 * var(--bw));
}

.acct-nav a:hover {
  color: var(--head);
}

.acct-nav a[aria-current="page"] {
  color: var(--head);
  font-weight: 600;
  border-bottom-color: var(--acc);
}

.acct-nav a:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: -2px;
}

.acct-badge {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--ink);
  border: var(--bw) solid var(--line2);
  padding: 0 var(--s2);
  vertical-align: middle;
}

.acct-badge.acct-on {
  color: var(--head);
  border-color: var(--acc);
}

.acct-badge.acct-off {
  color: var(--head);
  border-color: var(--bad);
}

.acct-actions,
.acct-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin: var(--s4) 0 0;
}

.acct-block {
  margin: 0 0 var(--s7);
}

.acct-notes {
  max-width: none;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s3);
  display: grid;
  gap: var(--s3);
}

.acct-notes li {
  max-width: none;
  margin: 0;
  padding-top: var(--s3);
  border-top: var(--bw) solid var(--line);
}

.acct-grid td,
.acct-grid th {
  vertical-align: middle;
}

.acct-grid .acct-form .cta {
  font-size: var(--t-sm);
  padding: var(--s1) var(--s4);
}

.acct-form .cta:focus-visible,
.acct-actions .cta:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* The account entry: one outlined item at the end of the bar. /account/ shows the
   hub when a session is live and the sign-in card when not, so the same link
   serves both. */
.nav-account a {
  border: var(--bw-rule) solid var(--line);
  padding-left: var(--s2);
  padding-right: var(--s2);
}

/* ---- account redo (2026-10-20): downloads as one block per platform, one
   button per build; figures tabular; controls square like the site's .cta. ---- */
.acct-facts dd,
.acct-grid td,
.acct-notes li,
.acct-build-sub {
  font-variant-numeric: tabular-nums;
}

.acct-sm {
  min-height: 0;
  font-size: var(--t-sm);
  padding: var(--s1) var(--s4);
}

.acct-platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}

@media (min-width: 40rem) {
  .acct-platforms {
    grid-template-columns: repeat(3, 1fr);
  }
}

.acct-plat {
  display: grid;
  align-content: start;
  gap: var(--s3);
  padding: var(--s4);
  border: var(--bw) solid var(--line2);
  background: var(--panel);
}

.acct-plat h3 {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--head);
}

.acct-ico svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.acct-ico svg path[d^="M3 5l8"] {
  fill: currentColor;
  stroke: none;
}

.acct-plat .acct-form {
  display: block;
}

.acct-build {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: var(--tap);
  padding: var(--s2) var(--s4);
  font-family: var(--ui);
  text-align: left;
  border: var(--bw) solid var(--acc-solid);
  background: var(--acc-solid);
  color: var(--on-acc);
  cursor: pointer;
}

.acct-build:hover,
.acct-build:focus-visible {
  background: var(--acc-solid-hi);
  border-color: var(--acc-solid-hi);
}

.acct-build:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.acct-build-main {
  font-size: var(--t-lg);
  font-weight: 600;
  line-height: 1.2;
}

.acct-build-sub {
  font-size: var(--t-sm);
  opacity: 0.85;
}

.acct-plat.acct-off {
  opacity: 0.55;
}

.acct-plat.acct-off .acct-build {
  background: transparent;
  border-color: var(--line2);
  color: var(--mute);
  cursor: default;
}

.acct-more {
  margin-top: var(--s4);
}

.acct-more summary {
  cursor: pointer;
  color: var(--ink);
}

.acct-older {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  padding: var(--s3) 0;
  border-top: var(--bw) solid var(--line);
}

.acct-older .cta {
  min-height: 0;
  font-size: var(--t-sm);
  padding: var(--s1) var(--s3);
}

/* ---- the one radius (--r, 6 px): buttons, inputs, cards, badges, download
   blocks. Layout, rules and tables stay square. ---- */
.cta,
.acct-build,
.acct-plat,
.acct-licence,
.acct-badge,
.acct-class,
.acct-notice,
.acct-nav a,
.nav-account a,
.slab,
.tile,
.featured-card,
.home-offer,
.limitbox,
.ea-form,
.callout-frame,
.docs-find input,
.signup-form input[type="email"],
.signup-form input[type="text"],
.signup-form select,
.signup-form textarea,
.signup-form fieldset.rank,
button {
  border-radius: var(--r);
}

.acct-nav a {
  border-radius: var(--r) var(--r) 0 0;
}

.acct-build {
  overflow: hidden;
}

.acct-order {
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--mute);
}

/* ---- the Download page: a card per platform, the two ways in, install notes ---- */
.dl-intro {
  max-width: 72ch;
}

.dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  margin-top: var(--s4);
}

@media (min-width: 60rem) {
  .dl-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dl-card {
  display: grid;
  align-content: start;
  gap: var(--s3);
  padding: var(--s5);
  border: var(--bw) solid var(--line2);
  background: var(--panel);
  border-radius: var(--r);
  min-width: 0;
}

.dl-card.me {
  border-color: var(--acc-solid);
  border-left: var(--bw-mark) solid var(--acc-solid);
}

.dl-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
}

.dl-card h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--head);
}

.dl-sub {
  font-size: var(--t-sm);
  font-weight: 400;
  color: var(--mute);
}

.dl-yours {
  flex: none;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--on-acc);
  background: var(--acc-solid);
  padding: var(--s1) var(--s2);
  border-radius: var(--r);
}

.dl-yours {
  display: none;
}

.me .dl-yours {
  display: block;
}

.dl-ver {
  margin: 0;
  color: var(--mute);
  font-size: var(--t-sm);
}

.dl-card .cta {
  justify-self: stretch;
}

.cta.is-off {
  background: var(--p4);
  border-color: var(--line2);
  color: var(--ink);
  cursor: default;
}

.dl-facts {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--s2) var(--s3);
  margin: var(--s2) 0 0;
  padding-top: var(--s3);
  border-top: var(--bw) solid var(--line);
  font-size: var(--t-sm);
  line-height: 1.5;
}

.dl-facts dt {
  color: var(--mute);
}

.dl-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.dl-sum {
  font-size: var(--t-xs);
}

.dl-note {
  margin-top: var(--s4);
  max-width: 72ch;
  color: var(--mute);
  font-size: var(--t-sm);
}

.dl-paths,
.dl-install {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}

@media (min-width: 48rem) {
  .dl-paths {
    grid-template-columns: repeat(2, 1fr);
  }
  .dl-install {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dl-path {
  padding: var(--s5);
  border: var(--bw) solid var(--line2);
  background: var(--panel);
  border-radius: var(--r);
}

.dl-path h3,
.dl-install h3 {
  margin: 0 0 var(--s2);
  border: 0;
  padding: 0;
  color: var(--head);
}

.dl-path p:last-child {
  margin-bottom: 0;
}

.dl-install > div {
  min-width: 0;
}

.dl-install pre {
  overflow-x: auto;
}

.dl-facts dt {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
  font-size: var(--t-sm);
  font-weight: 400;
  color: var(--mute);
}

.dl-facts dd {
  margin: 0;
  max-width: none;
}
.dl-fig { margin: 0; }

/* the purchase steps under the price cards */
.ea-gets {
  margin-top: var(--s6);
}

.ea-gets h3 {
  margin-bottom: var(--s3);
}

/* ---- 2026-10-31 launch pass: the pricing page, the hero note, the hash check ---- */
.hero-note {
  margin: var(--s2) 0 0;
  font-size: var(--t-sm);
  color: var(--mute);
}

.pc-keep {
  margin: var(--s3) 0 0;
  font-size: var(--t-sm);
  color: var(--ink);
}

.pricing-page h1 {
  margin-bottom: var(--s3);
}

.pricing-notes .label,
.pricing-incl .label {
  margin: 0 0 var(--s3);
}

.ea-moved {
  margin: var(--s5) 0;
  padding: var(--s3) var(--s4);
  border-left: var(--bw-mark) solid var(--acc-solid);
  background: var(--panel);
}

.dl-check {
  max-width: none;
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-sm);
}

.dl-check li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--s3);
  margin: 0 0 var(--s1);
  padding: 0;
}

.dl-check li::before {
  content: none;
}

.dl-check span {
  min-width: 5rem;
  color: var(--mute);
}

.dl-check code {
  overflow-wrap: anywhere;
}

.ea-gets .ea-small {
  max-width: 72ch;
  margin: var(--s3) 0 0;
  font-size: var(--t-sm);
  color: var(--ink);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s3) var(--s4);
  margin: var(--s5) 0 0;
}

.hero-dl {
  display: flex;
  flex-direction: column;
}
