/*
 * The SEO Pro: site stylesheet.
 * Tokens first. Source of truth: ../02-brand/brand-guide.txt.
 * No gradients, no shadows: signs are flat.
 */

/* ---------- Fonts: Overpass, self-hosted (SIL OFL 1.1, see fonts/OFL.txt) ---------- */

@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/overpass-400.woff2") format("woff2");
}

@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/overpass-600.woff2") format("woff2");
}

@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/overpass-800.woff2") format("woff2");
}

/*
 * Stand-ins shown for the moment before Overpass arrives. Each is Arial scaled
 * to take the same room as the Overpass weight it stands in for, so the text
 * does not jump when the real font swaps in. The figures were measured on the
 * site's own words (bin/font-fallback.py prints them again).
 */
@font-face {
  font-family: "Overpass Fallback";
  font-weight: 400;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 99.7%;
  ascent-override: 88.57%;
  descent-override: 38.42%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Overpass Fallback";
  font-weight: 600;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold");
  size-adjust: 95.91%;
  ascent-override: 92.06%;
  descent-override: 39.93%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Overpass Fallback";
  font-weight: 800;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold");
  size-adjust: 98.93%;
  ascent-override: 89.25%;
  descent-override: 38.71%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  /* Color (brand guide section 2) */
  --yellow: #ffd23f; /* ground for the hero and the closing band. Never text. */
  --green: #0b5d4b; /* buttons, links, filled tally cells, one band */
  --ink: #0f2a22; /* all body text and headlines */
  --ink-soft: #44574f; /* secondary text, helper text */
  --paper: #ffffff; /* page background */
  --mist: #eef3f0; /* quiet panels, form field fill */
  --line: #b9c7c1; /* hairlines */
  --field-border: #6b7f77; /* form field borders, empty tally cells (4.26:1 on white) */

  /* Type (brand guide section 3). Scale in px: 16, 18, 21, 24, 36, 48, 60, 72 */
  --font: "Overpass", "Overpass Fallback", Arial, sans-serif;
  --text-16: 1rem;
  --text-18: 1.125rem;
  --text-21: 1.3125rem;
  --text-24: 1.5rem;
  --text-36: 2.25rem;
  --text-48: 3rem;
  --text-60: 3.75rem;
  --text-72: 4.5rem;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5.5rem;

  /* Layout */
  --content: 70rem; /* 1120px */
  --measure: 62ch;
  --gutter: 2rem;
  --radius: 6px;
  --radius-panel: 8px;
  --radius-cell: 4px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-18);
  font-weight: 400;
  line-height: 1.55;
}

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

a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

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

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Button (brand guide section 6) ---------- */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--paper);
  font-size: var(--text-18);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.button--small {
  white-space: nowrap;
}

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

.button--small {
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  font-size: var(--text-16);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
}

.site-header--yellow {
  background: var(--yellow);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-5) var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  color: var(--ink);
  font-size: var(--text-24);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  color: var(--ink);
  font-weight: 600;
}

.site-nav__link[aria-current="page"] {
  text-decoration-thickness: 0.18em;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--yellow);
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3.5rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter) var(--space-8);
}

.hero__text {
  display: flex;
  flex: 7 1 30rem;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

.hero__headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero__subhead {
  max-width: 31em;
  font-size: var(--text-21);
  line-height: 1.5;
}

.hero__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.hero__microcopy {
  font-size: var(--text-16);
  line-height: 1.4;
}

/* ---------- The tally sheet (brand guide section 4) ---------- */

.sheet-figure {
  display: flex;
  flex: 5 1 21rem;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.sheet {
  padding: var(--space-5) 1.25rem;
  border-radius: var(--radius-panel);
  background: var(--paper);
}

.sheet__title {
  font-size: var(--text-24);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.sheet__business {
  margin-top: var(--space-1);
  color: var(--ink-soft);
  font-size: var(--text-16);
  line-height: 1.4;
}

.sheet__total {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 2px solid var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

.sheet-figure__caption {
  font-size: var(--text-16);
  line-height: 1.4;
}

/*
 * The table is laid out as a grid: nine cells in three groups of three, one
 * group per tool, with each question sitting above its own row of cells.
 */
.tally {
  display: block;
  width: 100%;
  max-width: 21rem;
  margin-top: 1.125rem;
  border-collapse: collapse;
}

.tally thead,
.tally tbody {
  display: block;
}

.tally tr {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr)) 0.375rem
    repeat(3, minmax(0, 1fr)) 0.375rem
    repeat(3, minmax(0, 1fr));
  column-gap: 0.375rem;
}

.tally th,
.tally td {
  padding: 0;
  font-weight: 400;
  text-align: left;
}

/* Tool names, one above each group of three. */
.tally__tools th {
  align-self: end;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
}

.tally__tools th:nth-child(2) {
  grid-column: 1 / span 3;
}

.tally__tools th:nth-child(3) {
  grid-column: 5 / span 3;
}

.tally__tools th:nth-child(4) {
  grid-column: 9 / span 3;
}

/* Run numbers: for screen readers only, so the row takes no height. */
.tally__runs th {
  height: 0;
}

.tally tbody tr {
  margin-top: var(--space-4);
}

.tally tbody th {
  grid-column: 1 / -1;
  margin-bottom: var(--space-2);
  font-size: var(--text-16);
  line-height: 1.35;
}

.tally__runs th:nth-child(2),
.tally tbody td:nth-child(2) {
  grid-column: 1;
}

.tally__runs th:nth-child(3),
.tally tbody td:nth-child(3) {
  grid-column: 2;
}

.tally__runs th:nth-child(4),
.tally tbody td:nth-child(4) {
  grid-column: 3;
}

.tally__runs th:nth-child(5),
.tally tbody td:nth-child(5) {
  grid-column: 5;
}

.tally__runs th:nth-child(6),
.tally tbody td:nth-child(6) {
  grid-column: 6;
}

.tally__runs th:nth-child(7),
.tally tbody td:nth-child(7) {
  grid-column: 7;
}

.tally__runs th:nth-child(8),
.tally tbody td:nth-child(8) {
  grid-column: 9;
}

.tally__runs th:nth-child(9),
.tally tbody td:nth-child(9) {
  grid-column: 10;
}

.tally__runs th:nth-child(10),
.tally tbody td:nth-child(10) {
  grid-column: 11;
}

.tally__cell {
  display: block;
  aspect-ratio: 1 / 1;
  /* Darker than a hairline so an empty cell reads at 3:1 or better (Thaer, 2026-11-22). */
  border: 2px solid var(--field-border);
  border-radius: var(--radius-cell);
}

/*
 * The one moment of motion on the site: on first load the 45 cells draw in
 * row by row, then rest empty. CSS only, so it works with scripts off.
 */
@keyframes cell-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.tally__cell {
  animation: cell-in 320ms ease-out both;
}

.tally tbody tr:nth-child(1) .tally__cell {
  animation-delay: 200ms;
}

.tally tbody tr:nth-child(2) .tally__cell {
  animation-delay: 320ms;
}

.tally tbody tr:nth-child(3) .tally__cell {
  animation-delay: 440ms;
}

.tally tbody tr:nth-child(4) .tally__cell {
  animation-delay: 560ms;
}

.tally tbody tr:nth-child(5) .tally__cell {
  animation-delay: 680ms;
}

/* Only the home page moves. Anywhere else the cells are simply there. */
.tally--still .tally__cell {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .tally__cell {
    animation: none;
  }
}

/* ---------- Sections (brand guide section 5) ----------
 * After the hero, sections alternate Paper and Mist. One band is Sign green
 * (What I won't do) and the closing call to action is the second yellow band.
 */

.section {
  background: var(--paper);
}

.section--mist {
  background: var(--mist);
}

.section--green {
  background: var(--green);
  color: var(--paper);
}

.section--yellow {
  background: var(--yellow);
}

.section__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-8) var(--gutter);
}

.section__heading {
  max-width: 20em;
  font-size: clamp(2rem, 3.75vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.section__intro {
  max-width: 34em;
  font-size: var(--text-21);
  line-height: 1.5;
}

.section__closing {
  max-width: 30em;
  font-size: var(--text-24);
  font-weight: 600;
  line-height: 1.35;
}

.lead {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 30em;
  font-size: var(--text-24);
  line-height: 1.45;
}

.sources {
  color: var(--ink-soft);
  font-size: var(--text-16);
  line-height: 1.4;
}

.sources a {
  color: inherit;
}

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

/* Three plain points side by side, each under a rule. Not cards. */
.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  width: 100%;
  margin: var(--space-3) 0;
  padding: 0;
  list-style: none;
}

.points__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 2px solid var(--ink);
}

.points__title {
  font-size: var(--text-24);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* The three steps are a real sequence, so they are a numbered list with large numerals. */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  max-width: 46rem;
  margin: var(--space-3) 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  column-gap: var(--space-4);
  row-gap: var(--space-3);
  counter-increment: step;
}

.steps__item::before {
  content: counter(step);
  grid-row: 1 / span 3;
  font-size: var(--text-60);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.steps__item > * {
  grid-column: 2;
}

.steps__title {
  font-size: var(--text-24);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.wont {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 30em;
  padding: 0;
  font-size: var(--text-24);
  line-height: 1.35;
  list-style: none;
}

@media (max-width: 56rem) {
  .points {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }
}

@media (max-width: 40rem) {
  .section__inner {
    gap: 1.25rem;
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .lead,
  .wont,
  .section__closing {
    font-size: var(--text-21);
  }

  .section__intro {
    font-size: var(--text-18);
  }

  .points__title,
  .steps__title {
    font-size: var(--text-21);
  }

  .steps {
    gap: var(--space-6);
  }

  .steps__item {
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: var(--space-3);
  }

  .steps__item::before {
    font-size: var(--text-48);
  }
}

/* ---------- Inner page head ---------- */

.page-head__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter) var(--space-8);
}

.page-head__headline {
  max-width: 14em;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.page-head__text {
  max-width: 34em;
  font-size: var(--text-21);
  line-height: 1.5;
}

/* ---------- Services: the three steps ----------
 * One numbered list. Each step is a full-width band, Mist then Paper then
 * Mist, with the same large numeral the home page uses. No cards.
 */

.offer {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: offer;
}

.offer__step {
  background: var(--paper);
  counter-increment: offer;
}

.offer__step:nth-child(odd) {
  background: var(--mist);
}

.offer__inner {
  display: grid;
  grid-template-columns: 5rem minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "num head head"
    "num what get"
    "num more get";
  column-gap: var(--space-6);
  row-gap: var(--space-6);
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-8) var(--gutter);
}

.offer__inner::before {
  content: counter(offer);
  grid-area: num;
  font-size: var(--text-72);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.85;
}

.offer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  grid-area: head;
  column-gap: var(--space-5);
  row-gap: var(--space-2);
}

.offer__name {
  font-size: clamp(2rem, 3.75vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.offer__price {
  font-size: var(--text-24);
  font-weight: 600;
  line-height: 1.3;
}

.offer__terms {
  flex-basis: 100%;
  max-width: 34em;
}

.offer__what {
  grid-area: what;
}

.offer__get {
  grid-area: get;
}

.offer__more {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-area: more;
  gap: var(--space-5);
}

.offer__what,
.offer__get,
.offer__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.offer__label {
  font-size: var(--text-18);
  font-weight: 800;
  line-height: 1.3;
}

.offer__what p {
  font-size: var(--text-21);
  line-height: 1.45;
}

.offer__after {
  font-weight: 600;
}

/* What you get reads as line items: one promise per ruled row. */
.offer__list {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.offer__list li {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

/* ---------- Questions: plain headings and paragraphs ---------- */

.questions {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: var(--measure);
  margin-top: var(--space-3);
}

.questions__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.questions__question {
  font-size: var(--text-24);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

@media (max-width: 56rem) {
  .offer__inner {
    grid-template-columns: 4rem minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "num head"
      "what what"
      "get get"
      "more more";
    column-gap: var(--space-4);
    row-gap: var(--space-5);
  }

  .offer__inner::before {
    font-size: var(--text-60);
    line-height: 0.9;
  }
}

@media (max-width: 40rem) {
  .page-head__inner {
    padding-top: var(--space-6);
    padding-bottom: var(--space-7);
  }

  .page-head__text {
    font-size: var(--text-18);
  }

  .offer__inner {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    column-gap: var(--space-3);
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .offer__inner::before {
    font-size: var(--text-48);
  }

  .offer__price,
  .questions__question {
    font-size: var(--text-21);
  }

  .offer__what p {
    font-size: var(--text-18);
  }
}

/* ---------- About ---------- */

.page-head__lead {
  font-size: var(--text-24);
  font-weight: 600;
  line-height: 1.3;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--measure);
}

/* The photo sits beside the text when there is one. The page is whole without it. */
.page-head__inner--portrait {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-7);
}

.page-head__inner--portrait .page-head__copy {
  flex: 1 1 28rem;
}

.portrait {
  display: block;
  flex: 0 0 auto;
  width: 20rem;
  max-width: 100%;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-panel);
  object-fit: cover;
}

/* A closing line of small print: less room above and below than a full section. */
.section--note .section__inner {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

/* ---------- Check page: head with the form beside it ---------- */

.page-head__inner--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-7);
}

.page-head__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.page-head__inner--split .page-head__copy {
  flex: 5 1 22rem;
}

.page-head__headline--long {
  font-size: clamp(2.125rem, 3.6vw, 3rem);
  line-height: 1.1;
}

/* The request form sits on its own sheet, like the tally sheet it leads to. */
.request {
  flex: 6 1 26rem;
  min-width: 0;
  padding: var(--space-6);
  border: 2px solid var(--ink);
  border-radius: var(--radius-panel);
  scroll-margin-top: var(--space-4);
}

.request__done {
  max-width: 24em;
  font-size: var(--text-24);
  font-weight: 600;
  line-height: 1.35;
}

/* ---------- Forms (brand guide section 6) ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form__heading {
  font-size: var(--text-24);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.form__alert {
  padding: var(--space-3) var(--space-4);
  border-left: 6px solid var(--ink);
  background: var(--mist);
  font-weight: 600;
  line-height: 1.4;
}

/* The trap field: off the page for people, there for programs. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem var(--space-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field__label {
  font-weight: 600;
  line-height: 1.3;
}

.field__optional {
  color: var(--ink-soft);
  font-weight: 400;
}

.field__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.75rem;
  border: 2px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--ink);
  font: inherit;
  line-height: 1.3;
}

.field__input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.field__input:focus {
  border-color: var(--green);
}

.field__input--area {
  min-height: 9rem;
  resize: vertical;
}

.field--error .field__input {
  border-color: var(--ink);
  border-width: 3px;
}

.field__error {
  font-size: var(--text-16);
  font-weight: 600;
  line-height: 1.35;
}

.field__help {
  color: var(--ink-soft);
  font-size: var(--text-16);
  line-height: 1.35;
}

.form__send {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.form__note {
  font-size: var(--text-16);
  line-height: 1.4;
}

button.button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Check page sections ---------- */

/* Steps that are one sentence each: no title, a slightly larger line. */
.steps--plain {
  gap: var(--space-6);
}

.steps--plain .steps__item {
  align-items: center;
  min-height: 3.5rem;
}

.steps--plain p {
  font-size: var(--text-21);
  line-height: 1.45;
}

.why {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-6) var(--space-8);
  width: 100%;
}

.why__text {
  flex: 1 1 24rem;
  max-width: 30em;
  font-size: var(--text-21);
  line-height: 1.5;
}

.why__row {
  flex: 0 1 21rem;
  min-width: 15rem;
}

.why__row .tally {
  margin-top: 0;
}

.why__row .tally tbody tr {
  margin-top: var(--space-3);
}

.points--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: var(--space-7);
  max-width: 56rem;
}

@media (max-width: 56rem) {
  .points--two {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-5);
  }
}

@media (max-width: 40rem) {
  .page-head__inner--split {
    gap: var(--space-6);
  }

  .request {
    padding: 1.25rem var(--space-4);
  }

  .form__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .form__heading,
  .request__done {
    font-size: var(--text-21);
  }

  .steps--plain p,
  .why__text {
    font-size: var(--text-18);
  }
}

/*
 * Links that stand on their own line are given the full height of the line,
 * so each is at least 24 pixels tall to tap (WCAG 2.2, target size).
 */
.standalone-link,
.link-list a,
.site-footer a,
.sources a {
  display: inline-block;
}

.sources {
  line-height: 1.5;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--mist);
  font-size: var(--text-16);
  line-height: 1.5;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding: 0;
  list-style: none;
}

.site-footer__legal {
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Error pages ---------- */

.link-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.debug-detail {
  max-width: var(--measure);
  padding: var(--space-3) var(--space-4);
  background: var(--mist);
  font-size: var(--text-16);
  overflow-wrap: anywhere;
}

/* ---------- Legal pages: plain, same type and measure as the rest ---------- */

.legal__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter) var(--space-8);
}

.legal__inner > p {
  max-width: var(--measure);
}

.legal__heading {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.legal__updated {
  color: var(--ink-soft);
  font-size: var(--text-16);
}

.legal__section {
  margin-top: var(--space-5);
  font-size: var(--text-24);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.legal__draft {
  padding: var(--space-3) var(--space-4);
  border-left: 6px solid var(--ink);
  background: var(--yellow);
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Phone ---------- */

@media (max-width: 40rem) {
  :root {
    --gutter: 1.25rem;
  }

  .site-header__inner {
    column-gap: var(--space-2);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .wordmark {
    font-size: 1.125rem;
  }

  .site-nav__list {
    gap: 0.5rem;
  }

  .site-nav__link {
    font-size: 0.9375rem;
  }

  .button--small {
    padding: 0.5rem 0.625rem;
    font-size: 0.9375rem;
  }

  .hero__inner {
    gap: var(--space-6);
    padding-top: var(--space-5);
    padding-bottom: 2.5rem;
  }

  .hero__text {
    gap: 1.25rem;
  }

  .hero__subhead {
    font-size: var(--text-18);
  }

  .button {
    min-height: 3.25rem;
  }

  .button--small {
    min-height: 2.75rem;
  }

  .sheet {
    padding: 1.25rem var(--space-4);
  }

  .site-footer__legal {
    text-align: left;
  }
}

/* The narrowest phones: a little less margin, so the header stays on one row at 360 pixels. */
@media (max-width: 23rem) {
  :root {
    --gutter: 1rem;
  }
}
