/* Bug Theory. One stylesheet for every page.

   The idea: a white page, ink, one flat yellow. Sans throughout. Content is
   grouped with rules, space and type size. There is no grey surface
   anywhere: a block that has to stand apart is white inside an ink rule,
   or sits on the yellow, or on its pale tint for a note. Nothing moves on
   load.

   Contents
     1. Fonts            5. Home: hero and the example report
     2. Tokens           6. Home: sections
     3. Base             7. Legal documents
     4. Shared parts     8. Thank-you and not-found pages

   Three rules hold the sheet together.

   Yellow is a ground, never a text colour. Ink sits on it; it is never set
   on white as type. Red is used for one word, "Critical".

   Anything invented sits in a frame. The example report in the hero and the
   example finding further down share one treatment (.specimen): an ink
   border, an ink title strip, a white surface. Nothing else on the site
   uses it, so a reader can tell an exhibit from the offer at a glance.

   One object has depth. The example report in the hero is the only thing
   on the site with a shadow and rounded corners, because it is the only
   thing that is a picture of a product screen. Do not give either to
   anything else.

   No inline styles. The content security policy forbids them, so every
   visual decision lives in this file.

   Provenance of the fonts: docs/vendor-fonts.md. */

/* ------------------------------------------------------------ 1. Fonts */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-wght.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/HankenGrotesk-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/fonts/DMMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallbacks, so the swap to the real fonts moves little.
   The numbers come from the fonts' own tables against Arial; the method is
   in docs/vendor-fonts.md. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 102.5%;
  ascent-override: 85.7%;
  descent-override: 20.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Hanken Grotesk Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 101.7%;
  ascent-override: 98.3%;
  descent-override: 29.8%;
  line-gap-override: 0%;
}

/* ----------------------------------------------------------- 2. Tokens */

:root {
  --bg: #ffffff;
  --ink: #0e1116;
  --ink-2: #3d434e;          /* secondary text: 10:1 on white, 9:1 on the soft yellow, 7.7:1 on the yellow */
  --rule: #d9dce0;           /* hairlines between rows */
  --hl: #f3e53e;             /* the one yellow; also in favicon.svg and docs/og-source.html */
  --hl-band: #f7ed7c;        /* a mellower yellow, only for the band behind the example report */
  --hl-soft: #fbf6b8;        /* the pale tint of the yellow: the ground of a note */
  --crit: #a1271c;           /* the word "Critical": 7.4:1 on white, 6.7:1 on the soft yellow, 5.7:1 on the yellow */
  --stage: #171a20;          /* the video frame inside the example */
  --on-ink-2: #b4bac4;       /* secondary text on ink: 9.7:1 */

  --display: "Archivo", "Archivo Fallback", Arial, Helvetica, sans-serif;
  --text: "Hanken Grotesk", "Hanken Grotesk Fallback", Arial, Helvetica, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: 1rem;
  --sp-sec: 3.5rem;          /* space under a section */
  --sp-block: 1.75rem;       /* space between the blocks of a section */
  --measure: 38rem;

  /* The room a line of the headline has, and the headline's size. See h1 in 3. */
  --room: calc(100vw - 2 * var(--gutter));
  --h1: min(4.5rem, calc(var(--room) / 6.3));

  color-scheme: light;
}
@media (min-width: 480px) {
  :root { --gutter: 1.5rem; }
}
@media (min-width: 768px) {
  :root { --gutter: 2rem; --sp-sec: 4.5rem; --sp-block: 2.25rem; }
}
@media (min-width: 1000px) {
  :root { --gutter: 2.5rem; --h1: min(6rem, calc(min(var(--room), 76rem) / 11.4)); }
}
@media (min-width: 1200px) {
  :root { --gutter: 3rem; --sp-sec: 6rem; --sp-block: 2.5rem; }
}

/* ------------------------------------------------------------- 3. Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
  scroll-padding-bottom: 5rem;   /* keeps a focused link clear of the buy bar */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) {
  /* Below this width the columns are too narrow for it: it trades a short
     last line for a ragged one higher up. */
  p, li, dd, figcaption { text-wrap: pretty; }
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-size: var(--h1);
  letter-spacing: -0.04em;
  word-spacing: 0.06em;
  line-height: 0.98;
}
h2 {
  font-size: 1.875rem;
  letter-spacing: -0.03em;
  word-spacing: 0.04em;
  line-height: 1.08;
}
h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
@media (min-width: 768px) {
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.375rem; }
}
@media (min-width: 1200px) {
  h2 { font-size: 2.5rem; }
}

/* A headline is set as whole lines. On a wide page each .line is one line
   of type, and --h1 is sized from the page width so the longer one fits.
   Below 1000px a line is capped at 8em, which is narrower than either
   line and wider than either half, so each breaks once, in the middle, and
   --h1 is sized so the longest half fits a phone. The highlighted phrase
   is held together on a wide page only: on a narrow one it must be free to
   break when a reader widens the letter spacing. If a headline is reworded, re-measure: see the README. */
h1 .line { display: block; max-width: 8em; }
@media (min-width: 1000px) {
  h1 .line { max-width: none; }
  h1 .hl { white-space: nowrap; }
}
/* The other pages' headlines are ordinary type: they wrap where they wrap. */
.page h1 { font-size: clamp(2.25rem, 6.4vw, 3.75rem); max-width: 18em; }
.page h1 .line { max-width: none; }

strong, b { font-weight: 650; }
.vh {                        /* read aloud, not shown */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nb { white-space: nowrap; }  /* a hyphenated word that must not break at its hyphen */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 0.14em; }

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  letter-spacing: -0.03em;
}
sup {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 0;
  vertical-align: super;
  margin-left: 0.15em;
}
sup a { position: relative; text-decoration: none; padding: 0.3em 0.15em; outline-offset: 1px; }
sup a::after {               /* a larger target than the digit, without moving the focus ring */
  content: "";
  position: absolute;
  inset: -0.7em -0.8em;
}
sup a:hover { text-decoration: underline; }

::selection { background: var(--hl); color: var(--ink); }

/* ----------------------------------------------------- 4. Shared parts */

.wrap {
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.5rem;
  z-index: 10;
  padding: 0.625rem 0.875rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* The highlighter: a flat block of the yellow behind the words it marks,
   a little shorter than the line so that two marked lines never touch. It
   does not animate. */
.hl {
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 62% / 100% 82%;
  padding: 0 0.1em;
  margin: 0 -0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (forced-colors: active) {
  .hl { background: none; }
}

/* Labels: small capitals for column heads and field names. */
.cover thead th, .doc th, .doc dl.meta dt, .sheet-h, .tier .label, .price small, .custom .label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Squares. The severity meter and the coverage marks are the same square:
   an outline when empty, solid when filled. The fill is a full-width
   border, so it survives forced colours. */
.meter { display: flex; gap: 0.125rem; }
.meter i, .mark i {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid;
}
.meter-4 i,
.meter-3 i:nth-child(-n+3),
.meter-2 i:nth-child(-n+2),
.meter-1 i:nth-child(1) { border-width: 0.25rem; }

.crit { color: var(--crit); }

/* Masthead */
.masthead-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .hl {
  background: var(--hl);
  padding: 0.04em 0.16em;
  margin: 0 0.06em 0 0;
}
@media (forced-colors: active) {
  .wordmark .hl { background: none; padding: 0; }
}
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
}
.masthead nav a {
  text-decoration: none;
  padding-block: 0.625rem;
}
.masthead nav a:hover, .masthead nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}
.page .masthead-in, .legal .masthead-in { border-bottom: 1px solid var(--rule); }

/* Buttons. Square, flat, no shadow. */
.btn {
  display: inline-block;
  min-width: 11rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  transition: background-color 0.16s, color 0.16s;
}
.btn:hover { background: var(--hl); color: var(--ink); }
.btn-hl { background: var(--hl); color: var(--ink); }
.btn-hl:hover { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.45;
}
@media (min-width: 768px) {
  .lede { font-size: 1.3125rem; line-height: 1.42; }
}
.small, .note {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.small a, .note a { color: var(--ink); }
.measure { max-width: var(--measure); }

/* An exhibit. Everything invented on the site sits in one of these: an ink
   frame, an ink title strip, a white surface, and a foot that says it is
   invented. The parts inside are separated by rules, never by a second
   frame, so the whole reads as one object. */
.specimen {
  border: 1px solid var(--ink);
  background: var(--bg);
}
.spec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.125rem 1.5rem;
  padding: 0.625rem 1rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.spec-head > :last-child { color: var(--on-ink-2); }
/* On a phone the strip has room for the title only. The second label would
   wrap under it and read as a subtitle; the foot of the frame says the same
   thing in a full sentence. */
@media (max-width: 599px) {
  .spec-head > p + p { display: none; }
}
.spec-foot {
  padding: 0.75rem 1rem 0.8125rem;
  border-top: 1px solid var(--ink);
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.spec-foot b { color: var(--ink); margin-right: 0.375em; }
@media (min-width: 768px) {
  .spec-head { padding-inline: 1.5rem; }
  .spec-foot { padding-inline: 1.5rem; }
}
@media (forced-colors: active) {
  .spec-head { border-bottom: 1px solid; }
}

/* Colophon */
.colophon { margin-top: var(--sp-sec); }
.colophon .wrap {
  border-top: 1px solid var(--ink);
  padding-block: 1.5rem 3rem;
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.colophon p + p { margin-top: 0.75rem; max-width: 46rem; }
.colophon a { color: var(--ink); white-space: nowrap; }
.home .colophon { margin-top: 0; }
.home .colophon .wrap { border-top: 0; padding-top: 2rem; padding-bottom: 6.5rem; }

/* --------------------------------- 5. Home: hero and the example report */

.hero { padding-top: 2rem; }
.hero-row {
  display: grid;
  gap: 1.75rem 3rem;
  margin-top: 1.75rem;
}
.hero-copy .lede { max-width: 36rem; }
.who {
  margin-top: 1rem;
  max-width: 30rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.hero-cta .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.5rem;
}
.talk { font-size: 0.9375rem; line-height: 1.4; }
.deal {
  margin-top: 1.25rem;
  max-width: 27rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .hero { padding-top: 3.5rem; }
  .hero-row { margin-top: 2.5rem; }
}
@media (min-width: 1000px) {
  .hero-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: end;
  }
}
@media (min-width: 1200px) {
  .hero { padding-top: 4.5rem; }
  .hero-row { margin-top: 3rem; column-gap: 5rem; }
}

/* The example report. It is the one thing on the page that is a picture of
   a product, so it is the one thing with depth: a white screen with small
   round corners and a short, crisp shadow, standing half on the white page
   and half on a band of the yellow. The band is a flat colour that starts
   part of the way down; the gradient has a hard stop and no blend. */
.exhibit {
  margin-top: 3rem;
  padding-bottom: 2.5rem;
  background: linear-gradient(var(--bg) 0 7rem, var(--hl-band) 7rem 100%);
}
.hero + .sec { border-top: 0; }
.hero .specimen {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(14, 17, 22, 0.25), 0 0.75rem 1.5rem -0.75rem rgba(14, 17, 22, 0.45);
}
.spec-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.spec-list { padding: 1.125rem 1rem 0; }
.spec-frames { padding: 1.5rem 1rem 0; }
.spec-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .exhibit { margin-top: 4rem; padding-bottom: 3.5rem; background: linear-gradient(var(--bg) 0 9rem, var(--hl-band) 9rem 100%); }
  .spec-list { padding: 1.375rem 1.5rem 0; }
  .spec-frames { padding: 1.75rem 1.5rem 0; }
}
@media (min-width: 1000px) {
  .spec-body {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .spec-list { grid-area: 1 / 1; }
  .spec-more { grid-area: 2 / 1; }
  .spec-frames {
    grid-area: 1 / 2 / 3 / 3;
    padding: 1.375rem 1.5rem 1.5rem;
    border-left: 1px solid var(--rule);
  }
}
@media (min-width: 1200px) {
  .exhibit { padding-bottom: 4.5rem; }
}
@media (forced-colors: active) {
  .exhibit { background: none; }
}

/* The ranked list. Without the script it is a picture of a list: no hover
   state, no pointer. js/main.js turns the first three rows into tabs and
   marks the frame (.is-live); only then do they look and act like
   controls. The row chosen in the markup is the one shown without the
   script. The chosen row is told apart by more than its colour: it says
   "Shown in the video frame" and carries an ink bar on its left edge. */
.rank {
  counter-reset: rank;
  margin-top: 0.75rem;
  border-top: 1px solid var(--ink);
}
.rank li {
  counter-increment: rank;
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  column-gap: 0.5rem;
  align-content: start;
  padding: 0.75rem 0.625rem 0.8125rem;
  border-bottom: 1px solid var(--rule);
}
.rank li::before {
  content: counter(rank);
  font-family: var(--display);
  font-weight: 600;
}
.rank .t { font-weight: 600; line-height: 1.35; }
.rank .m, .rank .now { grid-column: 2; }
.rank .m {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.875rem;
  margin-top: 0.1875rem;
  font-size: 1rem;
  color: var(--ink-2);
}
.rank .m b { font-weight: 600; color: var(--ink); }
.rank .m b.crit { color: var(--crit); }
.rank .tc { margin-left: auto; }
.rank .now {
  display: none;
  margin-top: 0.3125rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.rank li.on { background: var(--hl); box-shadow: inset 0.25rem 0 0 var(--ink); }
.rank li.on .now { display: block; }
.rank li.on .m { color: var(--ink); }
.is-live .rank [role="tab"] { cursor: pointer; }
.is-live .rank [role="tab"]:hover:not(.on) { background: var(--hl-soft); }
.is-live .rank [role="tab"]:hover:not(.on) .t { text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; }
.rank [role="tab"]:focus-visible, .spec-frames [role="tabpanel"]:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.rank li.on:focus-visible { outline-offset: -5px; }
@media (min-width: 768px) {
  .rank li { grid-template-columns: 2rem minmax(0, 1fr); padding: 0.875rem 0.875rem 0.9375rem; }
  .rank .t { font-size: 1.125rem; }
}
@media (forced-colors: active) {
  .rank li.on { box-shadow: none; border-left: 0.25rem solid; }
}

/* The report goes on. Two more rows run under the three that can be opened.
   The fourth is set in full; the fifth is cut short and fades out at the
   foot of the panel, so it is plain that a real report is longer than
   this. The fade is a mask on the row itself, so it needs no colour of its
   own and still works in forced colours; a thin strip of blur sits over
   its end. These rows are decoration: the list is aria-hidden and a
   visually hidden sentence before it says the report continues. */
.spec-more { padding: 1rem 1rem 0; }
.spec-more .rank { margin: 0; border-top: 1px solid var(--rule); }
.spec-more .rank { counter-reset: rank 3; }
.spec-more li:last-child {
  height: 3rem;
  overflow: hidden;
  border-bottom: 0;
  -webkit-mask-image: linear-gradient(#000 10%, transparent 92%);
  mask-image: linear-gradient(#000 10%, transparent 92%);
}
.spec-more li:last-child::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}
@media (min-width: 768px) {
  .spec-more { padding-inline: 1.5rem; }
}
@media (min-width: 1000px) {
  .spec-more { display: flex; padding-top: 0; }
  .spec-more .rank { flex: 1; display: flex; flex-direction: column; border-top: 0; }
  .spec-more li:last-child { flex: 1 0 3rem; height: auto; }
  /* The video frame takes the height of the list beside it. */
  .spec-frames { display: flex; flex-direction: column; }
  .spec-frames .frame:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
  .spec-frames .clip { flex: 1; display: flex; flex-direction: column; }
  .spec-frames .stage { flex: 1; }
}

/* The video frame: a dark stage holding a screen of the invented app and
   what the tester saw, over a strip of timeline with the findings marked
   on it. Nothing here plays. The screens are drawings of an invented app,
   so they have their own colour and their own typeface, neither of them
   ours. Every stage is the same height, so choosing another finding moves
   nothing else on the page. */
.frame[hidden] { display: none; }
.clip {
  margin-top: 0.75rem;
  background: var(--stage);
  color: #fff;
  forced-color-adjust: none;
}
.stage {
  display: grid;
  gap: 1.125rem;
  justify-items: start;
  align-content: center;
  min-height: 25.5rem;
  padding: 1.25rem 1.125rem;
}
.phone, .browser {
  background: #fff;
  color: #17332c;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}
.phone {
  width: 10rem;
  padding: 0.625rem 0.6875rem 1rem;
  border: 0.3125rem solid #000;
  border-radius: 1.5rem;
}
.phone div { margin-top: 0.4375rem; }
.phone .ph-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  font-family: var(--mono);
  font-size: 0.5625rem;
  color: #42524d;
}
.ph-name { font-size: 1rem; font-weight: 700; color: #0f6b56; }
.phone .ph-name { margin-top: 0.875rem; }
.phone .ph-h { font-size: 0.75rem; }
.phone .ph-l { margin-top: 0.5rem; font-family: Arial, Helvetica, sans-serif; font-size: 0.5625rem; color: #42524d; }
.phone .ph-l + .ph-f { margin-top: 0.1875rem; }
.phone .ph-f {
  padding: 0.3125rem 0.4375rem;
  border: 1px solid #c5d3ce;
  border-radius: 0.25rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.625rem;
  color: #42524d;
}
.phone .ph-go {
  position: relative;
  margin-top: 0.625rem;
  padding: 0.4375rem;
  border-radius: 0.25rem;
  background: #0f6b56;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
}
/* The tap: the mark a screen recording leaves under a finger. */
.phone .ph-tap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(14, 17, 22, 0.2);
  outline: 1px solid rgba(14, 17, 22, 0.5);
}
/* A desktop browser window, for the finding that happens in the address bar. */
.browser {
  width: 100%;
  max-width: 23rem;
  border: 0.1875rem solid #000;
  border-radius: 0.5rem;
  overflow: hidden;
}
.br-bar { padding: 0.375rem 0.5rem; background: #dfeae6; }
.br-url {
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #fff;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: #42524d;
  overflow-wrap: anywhere;
}
.br-url b { white-space: nowrap; }
.br-url b, .br-top b, .br-to b { font-weight: 700; color: #0e1116; background: var(--hl); padding: 0 0.2em; }
.br-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.125rem 1rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #c5d3ce;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.6875rem;
}
.br-top .ph-name { font-family: Georgia, "Times New Roman", serif; }
.br-doc { padding: 0.75rem 0.75rem 1rem; }
.br-h { font-size: 1.0625rem; font-weight: 700; }
.br-to { margin-top: 0.375rem; font-family: Arial, Helvetica, sans-serif; font-size: 0.75rem; }
.br-lines { display: grid; gap: 0.375rem; margin-top: 0.625rem; }
.br-lines i { height: 0.5rem; background: #c5d3ce; }
.br-lines i:nth-child(1) { width: 46%; }
.br-lines i:nth-child(2) { width: 68%; }
.br-lines i:nth-child(3) { width: 38%; }
.stage-note b {
  display: block;
  max-width: 15rem;
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.22;
  text-wrap: balance;
}
.stage-wide .stage-note b { max-width: 22rem; }
.stage-note span {
  display: block;
  margin-top: 0.625rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--on-ink-2);
}
.timeline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.125rem 0.6875rem;
  border-top: 1px solid #343a45;
  color: var(--on-ink-2);
  font-size: 0.875rem;
  line-height: 1.2;
}
.timeline code { font-size: 0.875rem; }
.timeline .still { margin-right: 0.25rem; font-weight: 600; color: #fff; }
@media (max-width: 419px) {
  /* Too narrow for the label and the timeline on one line. */
  .timeline { flex-wrap: wrap; row-gap: 0.375rem; }
  .timeline .still { flex-basis: 100%; }
}
.track {
  position: relative;
  flex: 1;
  min-width: 1.5rem;
  height: 2px;
  background: #4a5260;
}
.track i {
  position: absolute;
  top: -0.25rem;
  width: 2px;
  height: 0.625rem;
  background: var(--on-ink-2);
}
.track i:nth-child(1) { left: 15.7%; }   /* 02:15 of 14:20 */
.track i:nth-child(2) { left: 47.4%; }   /* 06:48 */
.track i:nth-child(3) { left: 66.4%; }   /* 09:31 */
.track i:nth-child(4) { left: 77%; }     /* 11:02 */
.track i:nth-child(5) { left: 88.4%; }   /* 12:40 */
.track i.at { top: -0.4375rem; width: 0.25rem; height: 1rem; background: var(--hl); }
@media (min-width: 420px) {
  .stage {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    min-height: 21rem;
    padding: 1.5rem;
  }
  .stage-wide { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .timeline { padding-inline: 1.5rem; }
}
@media (min-width: 1200px) {
  .stage { gap: 2rem; min-height: 21.5rem; padding: 1.75rem 2rem; }
  .stage-wide { gap: 1.125rem; }
  .phone { width: 11rem; }
  .stage-note b { font-size: 1.375rem; }
  .stage-wide .stage-note b { font-size: 1.1875rem; }
  .timeline { padding-inline: 2rem; }
}

/* ------------------------------------------------- 6. Home: sections */

/* A section opens with an ink rule. From 1100px it is two columns: the
   heading and its introduction on the left, the content on the right. Its
   direct children are placed by class: .sec-head and .side on the left,
   .sec-body and .sec-note on the right. */
.sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--sp-block);
  border-top: 1px solid var(--ink);
  padding-block: 1.5rem var(--sp-sec);
}
.sec > * { min-width: 0; }
/* A banded section: the pale tint runs the full width of the window behind
   it, so the white boxes inside (the price cards, the written finding) stand
   out from their ground. The band is painted by a spread shadow clipped to
   the section's own height. */
.sec-band {
  border-top-color: transparent;
  background: var(--hl-soft);
  box-shadow: 0 0 0 100vmax var(--hl-soft);
  clip-path: inset(0 -100vmax);
}
.sec-band + .sec { border-top-color: transparent; }
@media (forced-colors: active) {
  .sec-band, .sec-band + .sec { border-top-color: CanvasText; }
}
.sec-head p {
  margin-top: 1rem;
  max-width: var(--measure);
}
.sec-body > * + * { margin-top: var(--sp-block); }
.side { margin-top: 1rem; }
.side + .sec-body { margin-top: calc(1rem - var(--sp-block)); }
.sec-note p + p { margin-top: 0.75rem; }
.sec-note p { max-width: 44rem; }
@media (min-width: 1100px) {
  .sec {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 4rem;
    padding-top: 2rem;
  }
  .sec-head { grid-column: 1; align-self: start; position: sticky; top: 2rem; }
  .sec-head h2 { max-width: 12em; }
  .sec-body, .sec-note { grid-column: 2; }
  .side { grid-column: 1; margin-top: 1.5rem; }
  .side + .sec-body { margin-top: 1.5rem; }
  /* A section with sub-heads in the left column keeps its heading still:
     a heading that stayed in view would slide over them. */
  .sec-rows .sec-head { position: static; }
}

/* 6.1 What a finding looks like: the written finding, in the exhibit frame.
   On the page it comes after "How it works". */
.sheet > p, .sheet > ol { max-width: 42rem; }
.sheet > .sheet-title { max-width: 24em; }
.sheet { padding: 1.25rem 1rem 1.5rem; font-size: 1rem; line-height: 1.5; }
.sheet-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
.sheet-meta {
  margin-top: 1.25rem;
  border-top: 1px solid var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}
.sheet-meta > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.sheet-meta dt { color: var(--ink-2); }
.sheet-meta dd { overflow-wrap: anywhere; }
.sheet-meta .sev { display: flex; align-items: center; column-gap: 0.5rem; font-weight: 600; }
.sheet-meta .sev .hl { background: none; padding: 0; margin: 0; color: var(--crit); }
.sheet-h { margin-top: 1.375rem; margin-bottom: 0.375rem; color: var(--ink-2); }
.sheet ol { counter-reset: n; }
.sheet ol li {
  counter-increment: n;
  position: relative;
  padding-left: 1.5rem;
}
.sheet ol li + li { margin-top: 0.3125rem; }
.sheet ol li::before {
  content: counter(n) ".";
  position: absolute;
  left: 0;
  font-weight: 600;
}
@media (min-width: 768px) {
  .sheet { padding: 1.75rem 1.5rem 2rem; }
  .sheet-title { font-size: 2rem; }
}

/* 6.2 Audits: two price cards sharing one frame and one rule between them.
   From 700px they share one set of rows, so each part of one sits level
   with the same part of the other whatever wraps. */
.tiers {
  display: grid;
  border: 1px solid var(--ink);
  background: var(--bg);
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}
.tier + .tier { border-top: 1px solid var(--ink); }
.tier .label {
  position: absolute;
  top: 1.5rem;
  right: 1.25rem;
  padding: 0.0625rem 0.375rem;
  background: var(--hl);
}
@media (forced-colors: active) {
  .tier .label { border: 1px solid; }
}
.custom .label { display: block; margin-bottom: 0.5rem; font-family: var(--text); }
.tier h3 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.15; }
.tier .tag {
  margin-top: 0.375rem;
  color: var(--ink-2);
  line-height: 1.4;
  max-width: 22rem;
}
.price {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: end;
  margin-top: 1.75rem;
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 0.9;
}
.price .cur {
  padding-top: 0.25rem;
  margin-right: 0.375rem;
  font-family: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
/* "Founding price" sits beside the figure, not under it, so the price row is
   the same height on both cards. */
.price .cur { align-self: start; }
.price small {
  margin: 0 0 0.4375rem 0.75rem;
  font-family: var(--text);
  letter-spacing: 0.06em;
}
.price-note {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 24rem;
}
.tier ul {
  flex: 1;
  margin-top: 1.5rem;
  border-top: 1px solid var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}
.tier li {
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--rule);
}
.tier li.excl {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.5;
  border-bottom: 0;
}
.tier .meta {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.guarantee-line {
  margin-top: 1rem;
  padding: 0.625rem 0.75rem;
  background: var(--hl-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}
@media (forced-colors: active) {
  .guarantee-line { border: 1px solid; }
}
.tier .btn { margin-top: 1.5rem; }

@media (min-width: 700px) {
  .tiers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tier { padding: 1.5rem; }
  .tier .label { top: 1.75rem; right: 1.5rem; }
  .tier + .tier { border-top: 0; border-left: 1px solid var(--ink); }
  .price { font-size: 4rem; }
  .price .cur { padding-top: 0.3125rem; }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 700px) {
    /* Eight rows, one for each thing a card can hold: name, tagline, price,
       price note, list, delivery line, guarantee line, button. The guarantee
       line is only there when its flag is on, and its row is then empty.
       A ninth child in a card needs a ninth row here and in the span. */
    .tiers { grid-template-rows: repeat(8, auto); }
    .tier {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 8;
      align-content: start;
    }
    .tier > * { min-width: 0; }
    .tier .btn { display: flex; align-items: center; justify-content: center; }
  }
}
@media (min-width: 1200px) {
  .tier { padding: 1.75rem; }
  .tier .label { top: 2rem; right: 1.75rem; }
  .tier h3 { font-size: 1.75rem; }
  .price { font-size: 4.5rem; }
}

/* The custom scope: a third cell of the same frame, across both cards. It
   has no price, so it is laid out as a statement and two actions, not as a
   card with a hole in it. */
.custom {
  display: grid;
  gap: 1.5rem 3rem;
  margin-top: 0;
  padding: 1.25rem;
  border: 1px solid var(--ink);
  border-top: 0;
  background: var(--bg);
}
.custom h3 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.15; }
.custom-what p { margin-top: 0.625rem; max-width: var(--measure); }
.custom .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.custom .btn { flex: 1 1 11rem; }
.custom .small { margin-top: 0.875rem; }
@media (min-width: 700px) {
  .custom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    padding: 1.5rem;
    column-gap: 3rem;
  }
}
@media (min-width: 1200px) {
  .custom { padding: 1.75rem; column-gap: 3.5rem; }
  .custom h3 { font-size: 1.75rem; }
}

/* 6.3 Rows. How it works and what is not included are the same thing: a
   ruled list where each row is a short name and what it means. The steps
   are numbered. */
.steps, .omit { border-top: 1px solid var(--ink); }
.steps { counter-reset: step; }
.steps li, .omit li {
  padding-block: 1rem 1.125rem;
  border-bottom: 1px solid var(--rule);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.9375rem;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}
.steps strong, .omit strong { display: block; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.steps li > span, .omit li > span { display: block; margin-top: 0.25rem; }
@media (min-width: 700px) {
  .steps li, .omit li {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
    column-gap: 2rem;
  }
  .steps li > span, .omit li > span { margin-top: 0; }
}

/* 6.4 Method. The coverage table: what is checked, and in which audit. It
   is a real table laid out as a grid; the roles in the markup keep it a
   table for assistive technology whatever its display value. Each mark has
   its meaning beside it as hidden text. */
.cover {
  display: block;
  width: 100%;
  border-top: 1px solid var(--ink);
}
.cover thead, .cover tbody, .cover th, .cover td { display: block; padding: 0; }
.cover tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.25rem 3.25rem;
  border-bottom: 1px solid var(--rule);
}
.cover thead tr { padding-block: 0.5rem; }
.cover thead td { grid-area: 1 / 1; }
.cover thead th { color: var(--ink-2); text-align: right; }
.cover tbody tr { padding-block: 1rem 1.125rem; }
.cover tbody th { grid-area: 1 / 1; text-align: left; font-weight: 600; line-height: 1.4; }
.cover .t { grid-area: 2 / 1 / 3 / -1; margin-top: 0.25rem; }
.cover .mark {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.4375rem;
}
.mark i { width: 0.625rem; height: 0.625rem; }
.mark i.on { border-width: 0.3125rem; }
@media (min-width: 700px) {
  .cover tr { grid-template-columns: minmax(0, 5fr) minmax(0, 9fr) 3.25rem 3.25rem; }
  .cover thead td { grid-area: auto; }
  .cover tbody th { grid-area: auto; padding-right: 2rem; }
  .cover .t { grid-area: auto; margin: 0; padding-right: 1.5rem; }
}

/* What you receive */
.receive { border-top: 1px solid var(--ink); }
.receive li {
  padding-block: 0.875rem 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.125rem;
  line-height: 1.45;
}

/* The severity ladder */
.ladder {
  margin-top: 1.25rem;
  border-top: 1px solid var(--ink);
}
.rung {
  padding-block: 0.875rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.rung dt {
  display: flex;
  align-items: center;
  column-gap: 0.75rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.rung .meter { color: var(--ink); }
.rung .meter i { width: 0.625rem; height: 0.625rem; }
.rung .meter-4 i,
.rung .meter-3 i:nth-child(-n+3),
.rung .meter-2 i:nth-child(-n+2),
.rung .meter-1 i:nth-child(1) { border-width: 0.3125rem; }
.rung dd { margin-top: 0.25rem; max-width: var(--measure); }
@media (min-width: 700px) {
  .rung {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
    column-gap: 2rem;
  }
  .rung dd { margin-top: 0.125rem; }
}

/* 6.5 Defects we have found. Real, so never in the exhibit frame: a ruled
   grid, one cell a defect, a short name over one plain sentence. No
   severity is shown. The section runs the full width at every size
   (.sec-wide), so five cells fit across on a wide screen. */
.found {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.found li {
  min-width: 0;
  padding: 1.125rem 1.25rem 1.375rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.found-name {
  display: block;
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.found-what {
  display: block;
  margin-top: 0.5rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.found-note {
  max-width: var(--measure);
  color: var(--ink-2);
}
@media (min-width: 640px) {
  .found { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .sec-wide .sec-head, .sec-wide .sec-body { grid-column: 1 / -1; }
  .sec-wide .sec-head { position: static; }
  .sec-wide .sec-head h2 { max-width: none; }
  .found { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .found-what { font-size: 1rem; }
}

/* 6.6 After the audit: what each service is, and what it costs */
.rates { border-top: 1px solid var(--ink); }
.rates li {
  padding-block: 1rem 1.125rem;
  border-bottom: 1px solid var(--rule);
}
.rates .d { display: block; max-width: var(--measure); }
.rates .d strong { font-weight: 650; }
.rates .p { display: block; margin-top: 0.5rem; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.rates .fig { font-weight: 650; color: var(--ink); white-space: nowrap; }
@media (min-width: 700px) {
  .rates li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14rem;
    column-gap: 2rem;
  }
  .rates .p { margin-top: 0; }
}

/* 6.7 Three numbers */
.facts { display: grid; row-gap: 1.5rem; }
.fact {
  border-top: 1px solid var(--ink);
  padding-top: 0.875rem;
}
.fact .big {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.fact p:not(.big) { margin-top: 0.5rem; max-width: 30rem; }
@media (min-width: 700px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }
  .fact .big { font-size: 4rem; }
  .fact p:not(.big) { font-size: 1rem; line-height: 1.5; }
}
.footnotes {
  margin-top: 2.25rem;
  max-width: 46rem;
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.5;
}
ol.sources { counter-reset: src; margin-top: 0.625rem; }
ol.sources li {
  counter-increment: src;
  position: relative;
  padding-left: 1.375rem;
  overflow-wrap: anywhere;
}
ol.sources li + li { margin-top: 0.375rem; }
ol.sources li::before {
  content: counter(src);
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--ink);
}
ol.sources a { color: var(--ink); }
ol.sources li:target { background: var(--hl); color: var(--ink); }

/* 6.8 Questions */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  display: block;
  padding: 1rem 2.75rem 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* The plus is two borders, so it is still there in forced colours. */
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  right: 0.25rem;
}
.faq summary::before {
  width: 0.9375rem;
  margin-top: 0.4375rem;
  border-top: 2px solid;
}
.faq summary::after {
  height: 0.9375rem;
  margin-right: 0.40625rem;
  border-left: 2px solid;
}
.faq details[open] summary::after { display: none; }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.faq details p {
  padding: 0 2.75rem 1.375rem 0;
  max-width: 42rem;
}

/* 6.9 Ready: the one inked band */
.ready {
  background: var(--ink);
  color: #fff;
  padding-block: var(--sp-sec);
}
.ready h2 { font-size: 2.5rem; letter-spacing: -0.04em; line-height: 1; }
.ready .section-intro p { margin-top: 1rem; color: var(--on-ink-2); }
.ready .actions {
  display: grid;
  gap: 1.75rem 2rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid #4a5260;
}
.ready .action { display: grid; row-gap: 0.75rem; align-content: start; }
.ready .tag { color: var(--on-ink-2); font-size: 1rem; line-height: 1.4; }
.ready .btn { max-width: 26rem; border-color: #fff; }
.ready .btn-line { color: #fff; }
.ready .btn-line:hover { background: #fff; color: var(--ink); }
.ready .btn-hl { border-color: var(--hl); }
.ready .btn-hl:hover { background: #fff; border-color: #fff; color: var(--ink); }
.ready .small { margin-top: 2.5rem; color: var(--on-ink-2); }
.ready .small a { color: #fff; }
.ready :focus-visible { outline-color: var(--hl); }
@media (min-width: 700px) {
  .ready h2 { font-size: 3.5rem; }
  .ready .actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 1200px) {
  .ready h2 { font-size: 4.5rem; }
}

/* The buy bar. Hidden in the markup; js/main.js shows it between the price
   cards and the closing band. It is a band across the foot of the window at
   every width, so it only ever covers the bottom strip that
   scroll-padding-bottom keeps clear, never a corner of the content. */
.bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 5;
  background: var(--ink);
  border-top: 1px solid #fff;
  padding-block: 0.625rem;
}
.bar[hidden] { display: none; }
.bar .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}
.bar .btn { min-width: 11rem; padding: 0.6875rem 0.75rem; font-size: 0.875rem; border-color: #fff; }
.bar .btn-line { color: #fff; }
.bar .btn-line:hover { background: #fff; color: var(--ink); }
.bar .btn-hl { border-color: var(--hl); }
.bar .btn-hl:hover { background: #fff; border-color: #fff; color: var(--ink); }
.bar :focus-visible { outline-color: var(--hl); }
@media (max-width: 479px) {
  .bar .btn { flex: 1 1 8rem; min-width: 0; padding: 0.8125rem 0.375rem; font-size: 0.8125rem; }
}

/* ---------------------------------------------------- 7. Legal documents

   The text comes from Markdown. build.py adds the structure Markdown cannot
   express (legal_semantics): the list of document details, the span around
   each clause number, the names and roles. Nothing here depends on a
   script. Set for long reading: one column of about seventy characters. */

.doc {
  padding-top: 2.5rem;
  line-height: 1.65;
  --hang: 0rem;
}
.doc > * { max-width: 40rem; margin-left: var(--hang); }
.doc > * + * { margin-top: 1rem; }
.doc h1 {
  max-width: none;
  margin-left: 0;
  font-size: clamp(2.5rem, 7vw, 4rem);
}

.doc .meta {
  max-width: none;
  margin-left: 0;
  margin-top: 2rem;
  padding-block: 0.875rem;
  border-block: 1px solid var(--ink);
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.doc dl.meta > div { padding-block: 0.125rem; }
.doc dl.meta dt { display: inline; margin-right: 0.375rem; color: var(--ink); white-space: nowrap; }
.doc dl.meta dd { display: inline; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .doc dl.meta > div {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    column-gap: 0.75rem;
    padding-block: 0.1875rem;
  }
  .doc dl.meta dt { display: block; margin: 0; padding-top: 0.1875rem; white-space: normal; }
  .doc dl.meta dd { display: block; }
}

/* Contents: a run of links on a phone, two columns on a tablet, a column
   that stays in view on the left of a wide page. */
.doc .index {
  max-width: none;
  margin-left: 0;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
}
.doc .index li { display: inline; }
.doc .index a {
  display: inline-block;
  margin-right: 0.875rem;
  padding-block: 0.25rem;
  text-decoration: none;
  color: var(--ink-2);
}
.doc .index a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
@media (min-width: 700px) {
  .doc { padding-top: 3.5rem; --hang: 3.5rem; }
  .doc .meta, .doc .index { margin-left: var(--hang); max-width: 40rem; }
  .doc .index { margin-top: 1.5rem; font-size: 0.9375rem; }
  .doc .index ol { columns: 2; column-gap: 2.5rem; }
  .doc .index li { display: block; break-inside: avoid; }
  .doc .index a { display: block; margin: 0; padding-block: 0.3125rem; }
}

.doc h2 {
  margin-top: 3.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.17;
  scroll-margin-top: 1rem;
}
.doc h3 { margin-top: 2rem; font-size: 1.1875rem; line-height: 1.25; }
@media (min-width: 700px) {
  .doc h2 { font-size: 1.75rem; }
  .doc th:first-child { width: 14rem; }
}

/* A clause number, hung in the space to the left of its clause. It stays in
   the line of text, so the space after it survives being copied or read
   aloud: the paragraph's first line is pulled left by the width of the
   number and its gap, and the number fills exactly that. */
.cn {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}
@media (min-width: 700px) {
  .cl { text-indent: -3.5rem; }
  .cn {
    display: inline-block;
    width: 2.625rem;
    margin-right: calc(0.875rem - 0.26em * 1.2143);  /* less the word space that follows the number, 0.26em of the text size */
    text-align: right;
    text-indent: 0;
    white-space: nowrap;
  }
}

/* The plain-language summaries are set apart as notes: an ink rule down
   the left. The one that opens the document sits on the pale tint. */
.doc blockquote {
  padding: 0.125rem 0 0.125rem 1rem;
  border-left: 2px solid var(--ink);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.doc > blockquote:first-of-type {
  margin-top: 2.5rem;
  padding: 1.125rem 1.25rem 1.25rem;
  border-left: 0;
  background: var(--hl-soft);
  font-size: 1.0625rem;
}
@media (forced-colors: active) {
  .doc > blockquote:first-of-type { border: 1px solid; }
}

.doc > ul { list-style: none; padding-left: 0; }
.doc > ul > li { position: relative; padding-left: 1.25rem; }
.doc > ul > li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.8125rem;
  width: 0.4375rem;
  border-top: 2px solid;
}
.doc > ul > li + li, .doc > ol > li + li { margin-top: 0.375rem; }
.doc > ol { list-style: decimal; padding-left: 1.375rem; }

.doc table {
  width: 100%;
  margin-top: 1.5rem;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border-top: 1px solid var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.doc th {
  text-align: left;
  vertical-align: bottom;
  padding: 0.625rem 0.875rem 0.625rem 0;
  border-bottom: 1px solid var(--ink);
}
.doc td {
  vertical-align: top;
  padding: 0.625rem 0.875rem 0.6875rem 0;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.doc th:first-child { width: 8.5rem; }
.doc th:last-child, .doc td:last-child { padding-right: 0; }

.doc .mandatory {
  margin-top: 1.5rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--ink);
}
.doc .mandatory p + p { margin-top: 0.875rem; }
.doc :target { scroll-margin-top: 1rem; }
.doc .doc-end { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); }

@media (min-width: 1100px) {
  .doc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 4rem;
    align-items: start;
    --hang: 0rem;
  }
  .doc > * { grid-column: 2; }
  .doc h1 { grid-column: 1 / -1; }
  .doc .meta { margin-top: 2.5rem; }
  /* The contents list stands on the left for the length of the document.
     It has to span every row after the title to stay in view; 400 is simply
     more rows than either document has blocks (the longer has about 130). */
  .doc .index {
    max-width: none;
    grid-column: 1;
    grid-row: 2 / span 400;
    position: sticky;
    top: 1.5rem;
    margin-top: 2.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
  .doc .index ol { columns: auto; border-top: 1px solid var(--ink); padding-top: 0.625rem; }
}

/* --------------------------------- 8. Thank-you and not-found pages */

.page-main { padding-top: 2.5rem; }
.page-head .lede { margin-top: 1.5rem; max-width: 36rem; }
.page-head .actions { margin-top: 2rem; }
.page-head .btn { min-width: 14rem; }
.errno {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--ink-2);
}
.page-body {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}
.page-body > * { max-width: 40rem; }
.page-body > * + * { margin-top: 1.5rem; }

.todo { counter-reset: step; border-top: 1px solid var(--ink); }
.todo li {
  counter-increment: step;
  position: relative;
  padding: 1rem 0 1.25rem 2.25rem;
  border-bottom: 1px solid var(--rule);
}
.todo li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.9375rem;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}
.todo strong { display: block; font-weight: 600; }
.todo li > span { display: block; margin-top: 0.25rem; color: var(--ink-2); }
.todo .btn { margin-top: 0.875rem; min-width: 14rem; }

.callout {
  padding: 1.25rem 1.375rem 1.375rem;
  background: var(--hl-soft);
}
.callout p + p { margin-top: 0.875rem; }
@media (forced-colors: active) {
  .callout { border: 1px solid; }
}

@media (min-width: 768px) {
  .page-main { padding-top: 3.5rem; }
  .page-body { margin-top: 3.5rem; }
}
@media (min-width: 1200px) {
  .page-main { padding-top: 4.5rem; }
}

@media print {
  .bar, .skip, .masthead nav { display: none; }
}
