/* Free-scan landing page.
   Shape rule: fields and buttons 12px, tiles and images 20px, nothing else rounded
   (dots and status labels are small enough that 12px makes them round).
   Graphite neutrals and one accent, a bottle green. The accent is kept for two things:
   the action and the numbers from the 50 scans.
   Few boxes: a frame only where something is an object (the form, a screenshot).
   Motion: first-screen entrance, button press, question disclosure, two lists appearing
   on scroll. All of it is off when the system asks for reduced motion. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Stand-ins while the heading font loads, widened to the same line length so the swap
   does not move the layout (measured against Bricolage 700 at heading sizes). */
@font-face {
  font-family: "Bricolage Fallback Segoe";
  src: local("Segoe UI Bold");
  font-weight: 200 800;
  size-adjust: 105.5%;
}
@font-face {
  font-family: "Bricolage Fallback Arial";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 200 800;
  size-adjust: 103.5%;
}

:root {
  color-scheme: light dark;
  --bg: #f3f4f1;
  --bg-raised: #fafaf8;
  --surface: #fdfdfc;
  --text: #1a1d1b;
  --text-soft: #555a56;
  --line: #d8dbd5;
  --accent: #1f5c46;
  --accent-hover: #17493a;
  --neutral-tint: #e8eae5;
  --on-accent: #fdfdfc;
  --error: #b02a20;
  --ok: #1f6b4f;
  --nav-glass: rgb(243 244 241 / 0.74);
  --shadow-lift: 0 2px 4px rgb(20 24 22 / 0.05), 0 28px 56px -28px rgb(20 24 22 / 0.34);

  /* States in the seven-areas list. Colour means "needs attention": red and ochre for
     problems, grey for "worth a look", almost nothing for fine. Green stays the page accent. */
  --st-critical: #b02a20;
  --st-warning: #b7791f;
  --st-check: #7d837e;
  --st-ok: #c2c7c0;

  --r-control: 12px;
  --r-tile: 20px;
  --nav-h: 64px;
  --gutter: clamp(20px, 5vw, 40px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Bricolage Grotesque", "Bricolage Fallback Segoe", "Bricolage Fallback Arial", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121413;
    --bg-raised: #181b19;
    --surface: #1f2321;
    --text: #ecefeb;
    --text-soft: #a8aea9;
    --line: #2f3431;
    --accent: #288260;
    --accent-hover: #236f52;
    --on-accent: #fdfdfc;
    --neutral-tint: #232725;
    --error: #ff9a90;
    --ok: #6fcf9f;
    --nav-glass: rgb(18 20 19 / 0.72);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.4), 0 28px 56px -28px rgb(0 0 0 / 0.85);
    --st-critical: #ff9a90;
    --st-warning: #e0b15e;
    --st-check: #8b918c;
    --st-ok: #414743;
  }
}

@media (prefers-contrast: more) {
  :root { --line: #7c827d; --nav-glass: var(--bg); }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  text-wrap: balance;
}
/* The first-screen heading follows the width of its column, so it always sets in two lines. */
h1 {
  font-size: clamp(1.75rem, 100cqi / 9.7, 3.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
}
h2 {
  font-size: clamp(1.75rem, 1.28rem + 1.9vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
}
h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
p { margin: 0; text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-color: currentColor; }
}

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

img { max-width: 100%; }

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

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 10px;
  z-index: 20;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--text);
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: currentColor;
}

/* ----- Buttons: one filled style for the action, one quiet style for everything else ----- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  background: var(--accent);
  color: var(--on-accent);
  font: 650 1.0625rem/1.15 var(--display);
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.16s ease-out, border-color 0.16s ease-out, transform 0.12s var(--ease-out);
}
.button:active { transform: scale(0.975); }
.button:disabled { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .button:hover:not(:disabled) { background: var(--accent-hover); }
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}
@media (pointer: coarse) {
  .button-small { min-height: 44px; }
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
  .button-quiet:hover:not(:disabled) {
    border-color: var(--text-soft);
    background: transparent;
  }
}

/* ----- Navigation ----- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: var(--nav-glass);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid var(--line);
}
/* The edge appears once content starts sliding under the bar. */
@supports (animation-timeline: scroll()) {
  .nav {
    animation: nav-edge linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 72px;
  }
  @keyframes nav-edge {
    from { border-bottom-color: transparent; }
  }
}
@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font: 700 1.125rem/1 var(--display);
  letter-spacing: -0.018em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}
.brand-mark-bg { fill: var(--accent); }

/* Section links: plain text, shown where there is room for them. On a phone the page is
   one column and short enough to scroll, so the bar keeps only the name and the button. */
.nav-links { display: none; }
@media (min-width: 900px) {
  .nav-links {
    display: flex;
    gap: clamp(18px, 2.4vw, 32px);
    margin-left: auto;
    margin-right: clamp(4px, 1.4vw, 20px);
  }
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-soft);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.16s ease-out;
  }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--text); }
}

/* ----- First screen ----- */

.hero {
  padding-block: clamp(24px, 4.6vw, 68px) clamp(48px, 5vw, 72px);
  overflow-x: clip;
}
.hero-grid {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); }
}

.hero-copy { container-type: inline-size; }

.hero-lead {
  max-width: 31em;
  margin-top: clamp(14px, 1.6vw, 20px);
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.25rem);
  line-height: 1.5;
}

.order {
  max-width: 620px;
  margin-top: clamp(22px, 2.6vw, 34px);
  scroll-margin-top: clamp(96px, 34vh, 300px);
}

/* The form is one object: a tile with two wells and the action. 20px outside, 8px gap, 12px inside. */
.order-card {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--surface);
}
.order-fields {
  display: grid;
  gap: 4px 8px;
}
@media (min-width: 560px) {
  .order-fields { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.field label {
  padding: 8px 8px 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  line-height: 1.2;
  transition: border-color 0.16s ease-out;
}
.field input::placeholder {
  color: color-mix(in srgb, var(--text-soft) 88%, var(--bg));
  opacity: 1;
}
.field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input[aria-invalid="true"]:focus-visible { outline-color: var(--error); }
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 100px var(--bg) inset;
  caret-color: var(--text);
}
.field-error {
  padding: 6px 8px 2px;
  color: var(--error);
  font-size: 0.875rem;
  line-height: 1.4;
}
.field-error:empty { display: none; }

.order-card .button {
  width: 100%;
  margin-top: 8px;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-problem {
  margin-top: 12px;
  color: var(--error);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.order-legal {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.confirmation {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--surface);
}
.confirmation:focus { outline: none; }
.confirmation h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  letter-spacing: -0.018em;
}
.confirmation h2 .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ok);
}
.confirmation p {
  margin-top: 10px;
  color: var(--text-soft);
}
.confirmation-more {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.confirmation-more p { margin: 0; }

/* The report: real screenshots with a plain edge. Only the phone casts a shadow,
   because it is the one thing that lies on top of something else. */
.hero-visual { margin: 0; }
.hero-stack { position: relative; }
.frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--surface);
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
}
.frame-main { margin-left: 11%; }
.frame-main img {
  aspect-ratio: 1520 / 1430;
  object-fit: cover;
  object-position: top;
}
.frame-phone {
  position: absolute;
  left: 0;
  bottom: -28px;
  width: 35%;
  max-width: 200px;
  box-shadow: var(--shadow-lift);
}
.frame-phone img {
  aspect-ratio: 760 / 1270;
  object-fit: cover;
  object-position: top;
}
.hero-visual figcaption {
  margin-top: 16px;
  padding-left: calc(35% + 18px);
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.5;
  text-wrap: pretty;
}
@media (min-width: 1000px) {
  .frame-main { margin-left: 56px; }
  .frame-phone { width: 34%; bottom: -36px; }
  .hero-visual figcaption { padding-left: 232px; }
}

/* ----- Sections -----
   Spacing follows the weight of the section, so it is not the same everywhere. */

.band { padding-block: clamp(72px, 9.5vw, 136px); }
.band-light { padding-block: clamp(56px, 7vw, 100px); }
.band-raised {
  background: var(--bg-raised);
  border-block: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
}
.lead {
  max-width: 34em;
  margin-top: 14px;
  color: var(--text-soft);
}

/* One grid for the text sections: the heading in a narrow column, the content beside it. */
.split {
  display: grid;
  gap: clamp(20px, 4vw, 56px);
}
@media (min-width: 880px) {
  .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }
}

/* Results of the 50 scans */
.findings {
  display: grid;
  gap: clamp(44px, 6vw, 96px);
}
@media (min-width: 940px) {
  .findings {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}

.big-number {
  margin-bottom: clamp(14px, 2vw, 22px);
  color: var(--accent);
  font: 700 clamp(4.75rem, 2.7rem + 8.6vw, 8.75rem) / 0.86 var(--display);
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.big-number small {
  margin-left: 0.12em;
  color: var(--text-soft);
  font-size: 0.3em;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.waffle {
  display: grid;
  grid-template-columns: repeat(10, 24px);
  gap: 8px;
  margin-top: clamp(28px, 3.6vw, 44px);
}
@media (max-width: 380px) {
  .waffle { grid-template-columns: repeat(10, 20px); }
}
.dot {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--r-control);
  background: var(--neutral-tint);
  box-shadow: inset 0 0 0 1px var(--line);
}
.dot-issue {
  background: var(--accent);
  box-shadow: none;
}
.dot-down {
  background: var(--text);
  box-shadow: none;
}
.legend {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend .dot {
  width: 12px;
  flex: none;
}

.tally {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.tally li {
  position: relative;
  display: grid;
  grid-template-columns: clamp(52px, 6.4vw, 78px) minmax(0, 1fr);
  gap: 0 clamp(8px, 1.6vw, 20px);
  align-items: center;
  padding-block: clamp(15px, 1.9vw, 22px);
  border-bottom: 1px solid var(--line);
}
/* The divider doubles as the bar: its blue part is the share of the 50 sites. */
.tally li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: calc(var(--n) * 2%);
  height: 3px;
  background: var(--accent);
}
.tally li[data-n="11"] { --n: 11; }
.tally li[data-n="9"] { --n: 9; }
.tally li[data-n="7"] { --n: 7; }
.tally li[data-n="6"] { --n: 6; }
.tally li[data-n="3"] { --n: 3; }
.tally-n {
  font: 700 clamp(2rem, 1.5rem + 1.9vw, 2.875rem) / 1 var(--display);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.tally-what { line-height: 1.4; }

/* Three steps: an ordinary numbered list, set in the heading face. */
.steps {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
  margin: 0;
  padding: 0 0 0 1.6em;
}
.steps li { padding-left: 0.5em; }
.steps li::marker {
  font: 700 1.1875rem/1.25 var(--display);
  font-variant-numeric: tabular-nums;
}
.steps p {
  max-width: 34em;
  margin-top: 4px;
  color: var(--text-soft);
}
@media (min-width: 880px) {
  .steps { padding-top: 6px; }
}

/* Seven areas: what is checked, next to what the example report says about it.
   Built as part of the page, so it reads at any size and follows the colour scheme. */
.areas-head, .area {
  display: grid;
  gap: 4px clamp(20px, 3.4vw, 48px);
}
.areas-head {
  display: none;
  padding-bottom: 12px;
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.4;
}
.areas {
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}
.area {
  padding-block: clamp(18px, 2.2vw, 24px);
  border-top: 1px solid var(--line);
}
.area:last-child { border-bottom: 1px solid var(--line); }
.area-what { max-width: 34em; }
/* The state is a short coloured rule beside the words, the same 3px as the bars in the
   scan results. The words carry the meaning, the colour only backs them up. */
.area-label {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.area-sample {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding-left: 14px;
  border-left: 3px solid var(--st, var(--line));
  color: var(--text-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.area-sample strong {
  color: var(--text);
  font-weight: 600;
}
.status-critical { --st: var(--st-critical); }
.status-warning { --st: var(--st-warning); }
.status-check { --st: var(--st-check); }
.status-ok { --st: var(--st-ok); }
@media (max-width: 899px) {
  /* On a narrow screen the first row says where the words come from;
     the rows after it show them without repeating the explanation. */
  .area:not(:first-child) .area-label {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }
}
@media (min-width: 900px) {
  .areas-head, .area { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); }
  .areas-head {
    display: grid;
    margin-top: clamp(28px, 4vw, 48px);
  }
  .areas-head + .areas { margin-top: 0; }
  .area { align-items: start; }
  .area-sample { margin-top: 4px; }
  /* The column heading says it once for the whole list; screen readers still get it per row. */
  .area-label {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }
}

/* What we do not do: four sentences, nothing around them. */
.nots {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.0625rem, 1rem + 0.32vw, 1.1875rem);
  line-height: 1.45;
}
.nots li { max-width: 34em; }
@media (min-width: 880px) {
  .nots { padding-top: 6px; }
}

/* Questions */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  font: 650 1.125rem/1.35 var(--display);
  letter-spacing: -0.012em;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1em;
  background: var(--text-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.faq details[open] > summary::before { rotate: 90deg; }
.faq details p {
  max-width: 62ch;
  padding: 0 0 22px calc(1.25rem + 14px);
  color: var(--text-soft);
}
.faq details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.faq details:not([open])::details-content { block-size: 0; }

/* Closing: the sentence and the action, on the page itself. */
.closing { padding-top: 0; }
.closing-row {
  display: grid;
  gap: 28px;
  justify-items: start;
  align-items: end;
  padding-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.closing-row h2 {
  max-width: 12em;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.026em;
}
@media (min-width: 860px) {
  .closing-row { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Footer */
footer {
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.9375rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* ----- Plain pages: thanks, error, privacy ----- */

.page { padding-block: clamp(36px, 7vw, 96px) clamp(72px, 9.5vw, 136px); }
.page h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }

.notice { max-width: 640px; }
.notice .icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 14px;
  color: var(--ok);
}
.notice p {
  margin-top: 14px;
  color: var(--text-soft);
}

.prose { max-width: 68ch; }
.prose > p:first-of-type {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.25rem);
  line-height: 1.5;
}
.prose h2 {
  margin-top: 2.1em;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}
.prose h2 + p, .prose h2 + ul { margin-top: 0.6em; }
.prose p + p, .prose ul + p { margin-top: 0.8em; }
.prose ul {
  margin: 0;
  padding-left: 1.2em;
}
.prose li + li { margin-top: 0.35em; }
mark.todo {
  padding: 0.05em 0.35em;
  background: var(--neutral-tint);
  color: var(--text);
}

/* ----- Motion ----- */

.faq summary::before { transition: rotate 0.22s var(--ease-out); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* One entrance for the first screen. The heading stays put so it is readable at once. */
  .enter { animation: enter 0.7s var(--ease-out) both; }
  .enter-2 { animation-delay: 80ms; }
  .enter-3 { animation-delay: 170ms; }
  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
  }

  .faq details::details-content {
    transition: block-size 0.3s var(--ease-out), content-visibility 0.3s allow-discrete;
  }

  /* Two lists (the scan results and the seven areas) come in once, when they are scrolled to.
     The script arms only what is still below the screen, so without it everything is visible. */
  .reveal-armed {
    opacity: 0;
    transform: translateY(14px);
  }
  .reveal-armed.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 50ms);
  }
}

@media print {
  .reveal-armed {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button, .field input, .faq summary::before, .nav-links a { transition: none; }
  .button:active { transform: none; }
  .nav { animation: none; }
}

/* ----- Forced colours (Windows contrast themes) ----- */

@media (forced-colors: active) {
  .dot { border: 1px solid CanvasText; }
  .dot-issue { background: Highlight; }
  .dot-down { background: CanvasText; }
  .tally li::after { background: Highlight; }
  .faq summary::before { background: CanvasText; }
}
