/* 1dollar.website: the checkup lab sheet. */

@font-face {
  font-family: "Public Sans";
  src: url("/static/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/static/fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/static/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #dfe7ee;
  --ground-deep: #cdd9e3;
  --sheet: #ffffff;
  --ink: #14212b;
  --muted: #45525c;
  --rule: #c3cfd9;
  --rule-strong: #14365a;
  --head: #14365a;
  --head-hover: #0d2742;
  --flag-crit: #9b1c13;
  --flag-high: #b42318;
  --flag-med: #8a4b00;
  --flag-low: #45525c;
  --ok: #1d6b45;
  --mark: #fff1b8;
  --redact: #d7e0e8;
  --code-bg: #f2f5f8;
  --focus: #1f5fbf;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --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: 4.5rem;

  --sheet-shadow: 0 1px 2px rgba(20, 33, 43, 0.08), 0 14px 32px rgba(20, 33, 43, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--head);
  color: #fff;
}

a {
  color: var(--head);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--head-hover);
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--head);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(2.4rem, 5vw + 0.5rem, 4rem);
  font-weight: 650;
  font-optical-sizing: auto;
}
h2 {
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.25rem);
  font-weight: 600;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}
p {
  margin: 0;
  text-wrap: pretty;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--space-4);
  top: var(--space-4);
  background: var(--sheet);
  padding: var(--space-2) var(--space-3);
  z-index: 10;
}

/* ---------- Page frame ---------- */

.wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 4rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--head);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark:hover {
  text-decoration: none;
  color: var(--head-hover);
}
.masthead nav {
  margin-left: auto;
  display: flex;
  gap: var(--space-5);
  font-size: 0.95rem;
}
.masthead nav a {
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  padding-block: var(--space-2);
}
.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--head);
  text-decoration: underline;
}

main {
  display: block;
}

.footer {
  margin-top: var(--space-8);
  border-top: 1px solid var(--rule);
  padding-block: var(--space-6) var(--space-7);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
}
.footer p {
  max-width: 60ch;
}
.footer-links {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

/* ---------- Controls ---------- */

.field-row {
  display: flex;
  gap: 0;
  max-width: 34rem;
}
.field-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1.125rem;
  padding: 0.95rem 1rem;
  border: 2px solid var(--head);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: var(--sheet);
  color: var(--ink);
}
.field-row input::placeholder {
  color: #5c6a75;
}
.field-row input:focus-visible {
  outline-offset: -1px;
}
.field-row input[aria-invalid="true"] {
  border-color: var(--flag-high);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font: inherit;
  font-weight: 650;
  font-size: 1.05rem;
  padding: 0.95rem 1.4rem;
  border: 2px solid var(--head);
  border-radius: 4px;
  background: var(--head);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:hover {
  background: var(--head-hover);
  color: #fff;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}
.field-row .btn {
  border-radius: 0 4px 4px 0;
  white-space: nowrap;
}
.btn-quiet {
  background: transparent;
  color: var(--head);
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
}
.btn-quiet:hover {
  background: var(--sheet);
  color: var(--head-hover);
}

.form-note {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 0.95rem;
}
.form-error {
  margin-top: var(--space-3);
  color: var(--flag-high);
  font-weight: 600;
  max-width: 34rem;
}

/* ---------- Home ---------- */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--space-7);
  align-items: start;
  padding-block: var(--space-7) var(--space-8);
}
.intro .lede {
  margin-top: var(--space-5);
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34ch;
}
.intro form {
  margin-top: var(--space-6);
}
.price-line {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-1);
  font-size: 0.98rem;
}
.price-line strong {
  color: var(--ink);
}

.section {
  padding-block: var(--space-7);
  border-top: 1px solid var(--rule);
}
.section > .wrap > h2 + p {
  margin-top: var(--space-3);
  color: var(--muted);
  max-width: 60ch;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-7);
  align-items: start;
}
.split > div > p {
  margin-top: var(--space-3);
  color: var(--muted);
  max-width: 44ch;
}

/* The requisition: what we test, as a printed order form. */
.requisition {
  columns: 2 18rem;
  column-gap: var(--space-6);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}
.requisition li {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}
.requisition .tick {
  width: 1rem;
  height: 1rem;
  margin-top: 0.3rem;
  border: 1.5px solid var(--head);
  border-radius: 2px;
  position: relative;
}
.requisition .tick::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 5px;
  height: 10px;
  border: solid var(--head);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.requisition b {
  display: block;
  font-weight: 650;
}
.requisition span {
  color: var(--muted);
  font-size: 0.95rem;
}

.never {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.never li::before {
  content: "No ";
  font-weight: 700;
  color: var(--head);
}

.closing {
  padding-block: var(--space-7);
  border-top: 1px solid var(--rule);
}
.closing h2 {
  max-width: 20ch;
}
.closing form {
  margin-top: var(--space-5);
}

/* ---------- The results sheet ---------- */

.sheet {
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  border-top: 4px solid var(--head);
  padding: var(--space-5) var(--space-6) var(--space-6);
}
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--rule-strong);
}
.sheet-head .title {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.25rem;
  color: var(--head);
}
.sheet-head .stamp {
  font-size: 0.85rem;
  color: var(--muted);
}
.sheet-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-5);
  margin: var(--space-4) 0 var(--space-5);
  font-size: 0.95rem;
}
.sheet-meta div {
  display: flex;
  gap: var(--space-2);
  min-width: 0;
}
.sheet-meta dt {
  color: var(--muted);
}
.sheet-meta dd {
  margin: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.results th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: var(--space-2) var(--space-2) var(--space-2) 0;
  border-bottom: 1px solid var(--rule);
}
.results td {
  padding: 0.8rem var(--space-2) 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.results tr:last-child td {
  border-bottom: 0;
}
.results .col-flag {
  width: 7.5rem;
  text-align: right;
  padding-right: 0;
}
.results td.col-flag {
  white-space: nowrap;
}

.flag {
  font-weight: 750;
  letter-spacing: 0.01em;
}
.flag-critical {
  color: var(--flag-crit);
}
.flag-high {
  color: var(--flag-high);
}
.flag-medium {
  color: var(--flag-med);
}
.flag-low {
  color: var(--flag-low);
  font-weight: 650;
}
.flag-normal {
  color: var(--ok);
  font-weight: 600;
}
.flag-info {
  color: var(--muted);
  font-weight: 600;
}
.flag-critical::before {
  content: "\2191\2191\00a0";
}
.flag-high::before,
.flag-medium::before {
  content: "\2191\00a0";
}

.results .col-result {
  white-space: nowrap;
  color: var(--muted);
}
.results tr.out .col-result {
  color: var(--ink);
  font-weight: 650;
}
.result-inline {
  display: none;
}
.redacted {
  display: inline-block;
  height: 0.8rem;
  width: 10ch;
  max-width: 100%;
  border-radius: 2px;
  background: var(--redact);
  vertical-align: middle;
}
.redacted.w1 { width: 12ch; }
.redacted.w2 { width: 14ch; }
.redacted.w3 { width: 16ch; }
.redacted.w4 { width: 11ch; }
.redacted.w5 { width: 18ch; }

.sheet-foot {
  margin-top: var(--space-4);
  font-size: 0.88rem;
  color: var(--muted);
}

/* Counts, as one ruled line of the sheet. */
.tally {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: 0 0 var(--space-5);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tally div {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.tally dt {
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.tally dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 650;
  line-height: 1;
  color: var(--ink);
}
.tally .zero dd {
  color: #6b7782;
}

/* ---------- Scan page ---------- */

.scan-page {
  padding-block: var(--space-7) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  gap: var(--space-6);
  align-items: start;
}
.scan-page.single {
  grid-template-columns: minmax(0, 48rem);
  justify-content: center;
}
.scan-page h1 {
  font-size: clamp(2rem, 3vw + 0.8rem, 3rem);
}
.scan-page .lede {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 52ch;
}
.scan-page .sheet {
  margin-top: var(--space-5);
}

.unlock {
  position: sticky;
  top: var(--space-5);
  background: var(--sheet);
  border: 2px solid var(--head);
  padding: var(--space-5);
}
.unlock h2 {
  font-size: 1.5rem;
}
.unlock p {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 0.98rem;
}
.unlock ul {
  margin: var(--space-4) 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: var(--space-1);
  font-size: 0.98rem;
}
.unlock form {
  margin-top: var(--space-5);
}
.unlock .btn {
  width: 100%;
}
.unlock .fine {
  margin-top: var(--space-3);
  font-size: 0.85rem;
}
.testmode {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--code-bg);
  font-size: 0.85rem;
  color: var(--ink);
}

/* Tests developing row by row while the scan runs. */
.running td.col-flag {
  color: var(--muted);
  font-weight: 500;
}
.running tr {
  animation: develop 1.6s var(--ease-out) both;
}
.running tr:nth-child(2) { animation-delay: 0.15s; }
.running tr:nth-child(3) { animation-delay: 0.3s; }
.running tr:nth-child(4) { animation-delay: 0.45s; }
.running tr:nth-child(5) { animation-delay: 0.6s; }
.running tr:nth-child(6) { animation-delay: 0.75s; }
.running tr:nth-child(7) { animation-delay: 0.9s; }
.running tr.done td.col-flag {
  color: var(--ink);
  font-weight: 650;
  animation: resolve 600ms var(--ease-out) both;
}
@keyframes resolve {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pending-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--head);
  margin-right: var(--space-2);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes develop {
  from {
    opacity: 0.35;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.notice {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.notice.bad {
  border-color: var(--flag-high);
}
.notice h2 {
  font-size: 1.3rem;
}
.notice p {
  margin-top: var(--space-2);
  color: var(--muted);
}
.notice form {
  margin-top: var(--space-4);
}

/* ---------- Report (the forwardable document) ---------- */

.report {
  padding-top: var(--space-7);
}
.report-doc {
  max-width: 50rem;
  margin-inline: auto;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  justify-content: flex-end;
}
.report-actions .print-hint {
  flex-basis: 100%;
  margin: 0;
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
}
.report-summary {
  margin: var(--space-5) 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 60ch;
}
.results a {
  color: var(--ink);
  text-decoration-color: var(--rule);
}
.results a:hover {
  text-decoration-color: var(--head);
}

.note {
  margin-top: var(--space-7);
  scroll-margin-top: var(--space-5);
}
.sheet .note:first-of-type {
  margin-top: var(--space-7);
}
.note-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--rule-strong);
}
.note-head .flag {
  white-space: nowrap;
}
.note h2 {
  font-size: 1.5rem;
}
.note .why {
  margin-top: var(--space-4);
  max-width: 65ch;
}
.note .evidence {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.note .evidence-label {
  color: var(--ink);
  font-weight: 650;
}
.note .fix-label {
  margin: var(--space-5) 0 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.note ol {
  margin: var(--space-2) 0 0;
  padding-left: 1.4rem;
  display: grid;
  gap: var(--space-2);
  max-width: 65ch;
}
.note ol code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  overflow-wrap: anywhere;
}

.paste {
  margin-top: var(--space-4);
  border: 1px solid var(--rule);
  background: var(--code-bg);
}
.paste-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3);
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}
.paste pre {
  margin: 0;
  padding: var(--space-4);
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
  /* The one line to paste, highlighted like a marker swipe. */
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat;
  background-size: 0 100%;
  transition: background-size 500ms var(--ease-out);
}
.paste.copied pre {
  background-size: 100% 100%;
}

.others {
  margin-top: var(--space-7);
}
.others .results td:first-child {
  width: 60%;
}
.signoff {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-5);
  margin: var(--space-7) 0 0;
  padding-top: var(--space-4);
  border-top: 2px solid var(--rule-strong);
  font-size: 0.92rem;
}
.signoff div {
  display: flex;
  gap: var(--space-2);
}
.signoff dt {
  color: var(--muted);
}
.signoff dd {
  margin: 0;
  font-weight: 600;
}
.print-only {
  display: none;
}
.limits {
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 0.95rem;
}
.limits p + p {
  margin-top: var(--space-2);
}
.next {
  margin-top: var(--space-7);
  padding: var(--space-5);
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.next p {
  margin-top: var(--space-2);
  color: var(--muted);
}
.next a {
  font-weight: 650;
}
/* "Keep a copy": the two download formats side by side, ruled like sheet rows. */
.keep-copy {
  margin-top: var(--space-5);
}
.keep-copy .formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin: var(--space-4) 0 0;
}
.keep-copy .formats div {
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
}
.keep-copy dt {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.1rem;
  color: var(--head);
}
.keep-copy dd {
  margin: 0;
}
.keep-copy dd p {
  margin: var(--space-2) 0 var(--space-3);
  font-size: 0.95rem;
}
.keep-copy a.btn {
  font-weight: 600;
}
@media (max-width: 600px) {
  .keep-copy .formats {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Reading pages ---------- */

.reading {
  padding-top: var(--space-7);
  max-width: 44rem;
}
.reading h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.25rem);
}
.reading h2 {
  margin-top: var(--space-7);
  font-size: 1.6rem;
}
.reading p,
.reading ul {
  margin-top: var(--space-3);
  max-width: 65ch;
}
.reading ul {
  padding-left: 1.2rem;
  display: grid;
  gap: var(--space-2);
}
.reading .lede {
  margin-top: var(--space-4);
  font-size: 1.2rem;
  color: var(--muted);
}
.reading .updated {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Fix guides: reading pages with the report's fix steps and paste blocks. */
.crumbs {
  font-size: 0.9rem;
}
.crumbs a {
  color: var(--muted);
}
.guide .crumbs + h1 {
  margin-top: var(--space-3);
}
.guide code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.guide pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}
.guide-check {
  margin-top: var(--space-6);
}
.guide-check h2 {
  margin-top: 0;
  font-size: 1.3rem;
}
.guide-check form {
  margin-top: var(--space-4);
}
.guide .fix-label {
  margin: var(--space-5) 0 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.guide-steps {
  margin: var(--space-2) 0 0;
  padding-left: 1.4rem;
  display: grid;
  gap: var(--space-2);
  max-width: 65ch;
}
.guide-fixes {
  margin-top: var(--space-2);
  border-top: 1px solid var(--rule);
}
.guide-fix {
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: var(--space-5);
}
.guide-fix summary {
  padding: var(--space-3) 0;
  color: var(--head);
  font-weight: 600;
  cursor: pointer;
}
.guide-fix summary:hover {
  color: var(--head-hover);
}
.guide-fix[open] {
  padding-bottom: var(--space-4);
}
.guide-index {
  margin-top: var(--space-6);
}
.guide-index caption {
  text-align: left;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  padding-bottom: var(--space-3);
}
.guide-index td:first-child {
  width: 50%;
  font-weight: 600;
}
.guide-index td:last-child {
  color: var(--muted);
}
.guide-link {
  margin-top: var(--space-4);
  font-size: 0.95rem;
  color: var(--muted);
}
.guide-link a {
  font-weight: 650;
}

/* Free generators: a requisition form, then the result in the guide's fix style. */
.tool-line {
  margin-top: var(--space-2);
  font-size: 0.95rem;
}
.tool-line a {
  font-weight: 650;
}
.tool-form {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--sheet);
  border: 1px solid var(--rule);
  display: grid;
  gap: var(--space-5);
  justify-items: start;
}
.tool-field {
  display: grid;
  gap: var(--space-2);
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.tool-field > label,
.tool-field legend,
.tool-sub {
  font-weight: 650;
  color: var(--ink);
}
.tool-field legend {
  padding: 0;
  margin-bottom: var(--space-2);
}
.tool-sub {
  margin-top: var(--space-3);
}
.tool-field select,
.tool-field input[type="text"],
.tool-field textarea {
  font: inherit;
  width: 100%;
  max-width: 28rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--head);
  border-radius: 4px;
  background: var(--sheet);
  color: var(--ink);
}
.tool-field textarea {
  max-width: none;
  font-family: var(--mono);
  font-size: 0.9rem;
  resize: vertical;
}
.tool-check {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.tool-check input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--head);
  transform: translateY(0.15rem);
}
.tool-hint {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}
.tool-result {
  margin-top: var(--space-6);
  scroll-margin-top: var(--space-5);
}
.tool-result h2 {
  margin-top: 0;
}
.tool-records {
  margin-top: var(--space-4);
}
.tool-records td {
  white-space: nowrap;
}
.tool-records td:last-child {
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Upgrade tiers, as an order form. */
.tiers {
  margin-top: var(--space-6);
  border-top: 2px solid var(--rule-strong);
}
.tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--rule);
}
.tier h2,
.tier h3 {
  margin: 0;
  font-size: 1.35rem;
}
.tier ul {
  grid-column: 1 / -1;
  columns: 2 16rem;
  column-gap: var(--space-6);
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.tier li {
  break-inside: avoid;
  margin-bottom: var(--space-1);
}
.tier li::marker {
  color: var(--head);
}
.tier .status a {
  font-weight: 600;
}

/* Code review sample: results are phrases, so they wrap. */
.review .results .col-result {
  white-space: normal;
  width: 36%;
}
.tier .price {
  font-weight: 700;
  color: var(--head);
  white-space: nowrap;
}
.tier p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}
.tier .status {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--muted);
}
.waitlist {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--sheet);
  border: 1px solid var(--rule);
}
/* The one form here that asks for money: navy border, like the unlock slip. */
.waitlist.pay {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
  border: 2px solid var(--head);
}
.waitlist h3 {
  margin: 0;
  font-size: 1.2rem;
}
a.btn {
  text-decoration: none;
}
.monitor-actions {
  margin-top: var(--space-5);
}

/* Code review intake: file and URL fields in the payment slip. */
.code-intake .field-label {
  display: block;
  margin-top: var(--space-4);
  font-weight: 650;
}
.code-intake .file-input,
.code-intake .text-input {
  display: block;
  width: 100%;
  max-width: 34rem;
  margin-top: var(--space-2);
  font: inherit;
  padding: 0.75rem 0.9rem;
  background: var(--sheet);
  border: 2px solid var(--head);
  border-radius: 4px;
  color: var(--ink);
}
.code-intake .private-tip {
  margin-top: var(--space-2);
  color: var(--ink);
}
.code-intake .or {
  margin: var(--space-4) 0 0;
  font-family: var(--serif);
  font-weight: 650;
  color: var(--muted);
}
.code-intake .consent {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin: var(--space-5) 0 var(--space-4);
  font-weight: 600;
}
.code-intake .consent input {
  accent-color: var(--head);
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
}
.code-intake h2 {
  margin-top: var(--space-7);
}
.code-intake .waitlist h2 {
  margin-top: 0;
}
.checklist {
  margin: var(--space-3) 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.checklist li {
  margin-bottom: var(--space-2);
}
.checklist li::marker {
  color: var(--head);
}
.code-results .col-result {
  white-space: normal;
  width: 38%;
}
.code-results code,
.note .evidence code {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

/* Deep review live status: a step's short result, or "Waiting". */
.step-result {
  font-weight: 650;
  color: var(--ink);
}
.step-waiting {
  color: var(--muted);
}

/* The $9 offer inside the $1 unlock slip: a second, quieter choice under a hairline. */
.deep-offer {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}
.deep-offer h3 {
  margin: 0;
  font-size: 1.1rem;
}
.deep-offer p,
.unlock > div > p {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.95rem;
}
.deep-offer form,
.unlock > div > form {
  margin-top: var(--space-3);
}
.next form {
  margin-top: var(--space-3);
}

/* Quick answers: five plain questions ruled onto the report sheet. */
.answers {
  margin-top: var(--space-6);
}
.answers .results {
  margin-top: var(--space-3);
}
.answers .results td:first-child {
  width: 60%;
}
.answers-foot {
  margin-top: var(--space-2);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Paste this once: a note with one block per place the fixes go. */
.paste-once .paste + .fix-label {
  margin-top: var(--space-6);
}

/* Check your fixes: a flat follow-up slip under the sheet. */
.recheck {
  scroll-margin-top: var(--space-5);
}
.recheck .results {
  margin-top: var(--space-4);
}
.recheck .results td:first-child {
  width: 60%;
}
.next .fine {
  font-size: 0.85rem;
}
.next .recheck-error {
  color: var(--flag-high);
  font-weight: 600;
}
.recheck-new {
  margin-top: var(--space-6);
}
.recheck-new h3 {
  font-size: 1.15rem;
}
.added-fix summary {
  margin-top: var(--space-1);
  width: fit-content;
  color: var(--head);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.added-fix summary:hover {
  color: var(--head-hover);
}
.next .added-fix p,
.added-fix ol {
  max-width: 65ch;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
}
.added-fix ol {
  margin-top: var(--space-2);
  padding-left: 1.2rem;
}
.monitor-meta {
  margin-top: var(--space-5);
}
.monitor-sheet {
  margin-top: var(--space-5);
}
.waitlist .field-row {
  margin-top: var(--space-4);
}
.waitlist fieldset {
  border: 0;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}
.waitlist legend {
  font-weight: 650;
  margin-bottom: var(--space-2);
}
.waitlist label {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
}
.waitlist input[type="radio"] {
  accent-color: var(--head);
  width: 1.1rem;
  height: 1.1rem;
}
.success {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--sheet);
  border: 1px solid var(--ok);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .intro,
  .split,
  .scan-page {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
  .unlock {
    position: static;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }
  .masthead .wrap {
    gap: var(--space-3);
  }
  .masthead nav {
    gap: var(--space-3);
    font-size: 0.875rem;
  }
  .wordmark {
    font-size: 1.15rem;
  }
  .intro {
    padding-block: var(--space-6);
  }
  .field-row {
    flex-direction: column;
  }
  .field-row input {
    border-right: 2px solid var(--head);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
  }
  .field-row .btn {
    border-radius: 0 0 4px 4px;
  }
  .sheet {
    padding: var(--space-4);
    margin-inline: -0.25rem;
  }
  .sheet-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .results .col-flag {
    width: 5.5rem;
  }
  .results .col-result {
    display: none;
  }
  .result-inline {
    display: block;
    margin-top: var(--space-1);
    font-size: 0.9rem;
    color: var(--muted);
  }
  .results tr.out .result-inline {
    color: var(--ink);
    font-weight: 650;
  }
  .redacted {
    max-width: 70%;
  }
  .tally {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2) var(--space-4);
  }
  .signoff {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Phones: the test name and its flag carry the row; the area column goes. */
  .results .col-area {
    display: none;
  }
  .report-actions {
    justify-content: stretch;
  }
  .report-actions .btn {
    flex: 1 1 100%;
  }
  .report-actions .print-hint {
    text-align: center;
  }
  .tier {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Print: the report as a document ---------- */

@page {
  margin: 16mm 14mm 18mm;
  @bottom-left {
    content: "1dollar.website security report";
    font: 8pt "Public Sans", sans-serif;
    color: #45525c;
  }
  @bottom-right {
    content: "Page " counter(page) " of " counter(pages);
    font: 8pt "Public Sans", sans-serif;
    color: #45525c;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 10.5pt;
  }
  .masthead {
    background: #fff;
    border: 0;
  }
  .print-only {
    display: block;
  }
  .print-link {
    margin-top: var(--space-2);
    font-size: 9.5pt;
    color: var(--ink);
    overflow-wrap: anywhere;
  }
  .report {
    padding-top: 0;
  }
  .masthead nav,
  .footer,
  .report-actions,
  .paste-bar button,
  .guide-link,
  .next,
  .skip {
    display: none !important;
  }
  .sheet {
    box-shadow: none;
    border: 1px solid var(--rule);
  }
  .note {
    break-inside: avoid-page;
  }
  .paste pre {
    white-space: pre-wrap;
    background: none;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}
