/* Site Punchlist — one stylesheet, no build step.
   Every colour pair here was checked against the same 4.5:1 threshold the
   scanner applies to other people's sites. */

:root {
  color-scheme: light dark;

  --ink: #14161a;
  --ink-soft: #444b56;
  --muted: #5b6472;
  --line: #e2e5ea;
  --line-strong: #c9cfd8;
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef0f4;

  --brand: #0b4fd0;
  --brand-ink: #093ea6;
  --brand-wash: #eef3fe;
  --on-brand: #ffffff;

  --critical: #a4171d;
  --serious: #97460a;
  --moderate: #6b4b16;
  --minor: #4d5563;
  --critical-wash: #fdf0ef;
  --serious-wash: #fdf4ec;
  --moderate-wash: #fbf6ea;
  --minor-wash: #f2f4f7;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(20 22 26 / 6%), 0 8px 24px -12px rgb(20 22 26 / 18%);

  --measure: 68ch;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f5;
    --ink-soft: #c3cad4;
    --muted: #9aa4b2;
    --line: #2a2f38;
    --line-strong: #3a414c;
    --bg: #0f1115;
    --surface: #161a20;
    --surface-2: #1d222a;

    --brand: #7aa5ff;
    --brand-ink: #a8c4ff;
    --brand-wash: #16213a;
    --on-brand: #0a1226;

    --critical: #ff9d97;
    --serious: #f3b271;
    --moderate: #ddc07a;
    --minor: #a8b0bd;
    --critical-wash: #2a1618;
    --serious-wash: #2a1f14;
    --moderate-wash: #262115;
    --minor-wash: #1c2027;

    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px -12px rgb(0 0 0 / 60%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* The masthead is sticky, so anything scrolled to — including a control
     receiving keyboard focus — would land underneath it. WCAG 2.2 added 2.4.11
     Focus Not Obscured for exactly this, and no automated rule catches it. */
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
p { max-width: var(--measure); }

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }

/* Focus must be obvious. This is the first thing a sceptical visitor tests. */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

code, pre, kbd { font-family: var(--mono); font-size: .875em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ------------------------------------------------------------- layout */

.wrap { width: min(100% - 2.5rem, 1080px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 760px); }

.section { padding-block: clamp(2.75rem, 1.5rem + 5vw, 5rem); }
.section + .section { padding-top: 0; }
.section--surface { background: var(--surface); }

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--on-brand);
  padding: .7rem 1.1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--on-brand); }

/* ------------------------------------------------------------- header */

.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 62px;
  flex-wrap: wrap;
}
.wordmark {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.08rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.wordmark:hover { color: var(--ink); }
.wordmark__mark {
  width: 22px; height: 22px;
  flex: none;
  display: block;
}
.masthead nav { margin-left: auto; }
.masthead nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
}
.masthead nav a:hover { color: var(--ink); text-decoration: underline; }
.masthead nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }

/* -------------------------------------------------------------- forms */

.field { display: block; margin-bottom: .85rem; }
.field > .label {
  display: block;
  font-weight: 600;
  font-size: .93rem;
  margin-bottom: .35rem;
}
.hint { color: var(--muted); font-size: .88rem; margin: .35rem 0 0; }

input[type="url"], input[type="email"], input[type="text"], select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .68rem .8rem;
}
input:focus-visible, select:focus-visible { border-color: var(--brand); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 620;
  padding: .72rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  cursor: pointer;
  min-height: 44px; /* comfortably past the 24px target-size minimum */
}
.btn:hover { background: var(--brand-ink); color: var(--on-brand); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--lg { padding: .85rem 1.6rem; font-size: 1.03rem; }

.scanbar { display: flex; gap: .6rem; flex-wrap: wrap; }
.scanbar input { flex: 1 1 18rem; }

/* -------------------------------------------------------------- cards */

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.card--pad { padding: 1.75rem; }

.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }

.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--bg); }
.stat__n { font-size: 1.9rem; font-weight: 680; letter-spacing: -0.03em; line-height: 1.1; display: block; }
.stat__l { color: var(--muted); font-size: .87rem; }

/* --------------------------------------------------------- eyebrow/tag */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 .6rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .76rem;
  font-weight: 650;
  padding: .18rem .5rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.tag--critical { color: var(--critical); background: var(--critical-wash); }
.tag--serious  { color: var(--serious);  background: var(--serious-wash); }
.tag--moderate { color: var(--moderate); background: var(--moderate-wash); }
.tag--minor    { color: var(--minor);    background: var(--minor-wash); }
.tag--plain    { color: var(--muted);    background: var(--surface); }

/* ------------------------------------------------------------ findings */

.finding {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  background: var(--bg);
}
.finding + .finding { margin-top: .9rem; }
.finding__head { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
.finding__title { font-size: 1.1rem; margin: 0; flex: 1 1 20rem; }
.finding__meta {
  display: flex;
  gap: .4rem .9rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .87rem;
  margin: .5rem 0 0;
}
.finding__body { margin-top: .9rem; }
.finding__body p { margin-bottom: .7rem; }

.codepair { display: grid; gap: .6rem; margin: .8rem 0 0; }
@media (min-width: 46rem) { .codepair { grid-template-columns: 1fr 1fr; } }
.codeblock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.codeblock__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .4rem .7rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-2);
}
.codeblock pre {
  margin: 0;
  padding: .7rem;
  overflow-x: auto;
  font-size: .8rem;
  line-height: 1.5;
}
.codeblock--bad .codeblock__label { color: var(--critical); }
.codeblock--good .codeblock__label { color: var(--brand); }

details.evidence { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .7rem; }
details.evidence summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .92rem;
  padding: .25rem 0;
  min-height: 24px;
}
details.evidence[open] summary { margin-bottom: .6rem; }

/* --------------------------------------------------------------- table */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; background: var(--surface); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- notice */

.notice {
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--brand);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}
.notice > :last-child { margin-bottom: 0; }
.notice__title { font-weight: 680; margin: 0 0 .35rem; }
.notice--warn { border-left-color: var(--serious); }

/* --------------------------------------------------------------- lists */

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: .2rem; top: .62em;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--brand);
}

/* ------------------------------------------------------------- pricing */

.price { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price__unit { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan { display: flex; flex-direction: column; }
.plan__features { flex: 1; }
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow); }

/* -------------------------------------------------------------- footer */

.sitefoot {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding-block: 2.5rem 3rem;
  color: var(--muted);
  font-size: .9rem;
  background: var(--surface);
}
.sitefoot a { color: var(--ink-soft); }
.sitefoot h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .6rem; }
.sitefoot ul { list-style: none; padding: 0; margin: 0; }
.sitefoot li { margin-bottom: .35rem; }

/* -------------------------------------------------------------- utils */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.muted { color: var(--muted); }
.small { font-size: .89rem; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); color: var(--ink-soft); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }

.spinner {
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .masthead, .sitefoot, .no-print { display: none !important; }
  body { font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }

  /* A scrolling container cannot be broken across printed pages: Chromium
     clips it at the first page boundary instead. On screen these hold wide
     tables and long code lines; in print they silently truncated most of a
     report, which is the one place it matters most. */
  .table-scroll,
  .codeblock,
  .codeblock pre,
  .finding__body,
  details.evidence { overflow: visible !important; }

  /* Long selectors and markup have to wrap rather than run off the sheet. */
  pre, code { white-space: pre-wrap !important; word-break: break-word; }

  /* A sticky header repeats itself oddly once a table spans pages. */
  th { position: static !important; }

  /* Keep a finding together when it fits, but never at the cost of dropping
     one that does not. */
  .finding { break-inside: auto; border-color: #999; }
  .finding__head, .codepair { break-inside: avoid; }
  table { break-inside: auto; }
  tr { break-inside: avoid; }
  thead { display: table-header-group; }
}

/* --------------------------------------------------------------- hero */

.hero { display: grid; gap: clamp(2rem, 1rem + 3vw, 3rem); align-items: start; }
@media (min-width: 64rem) {
  /* The headline needs the wider column; the excerpt reads fine when narrow. */
  .hero { grid-template-columns: 1.2fr 0.8fr; }
}

/* A miniature of a real finding, so the first screen shows the product
   rather than describing it. Values come from the published sample report. */
.preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 650;
  color: var(--muted);
}
.preview__body { padding: 1.05rem 1.1rem 1.2rem; }
.preview__body h3 { font-size: 1.02rem; margin: 0 0 .3rem; }
.preview__meta {
  display: flex; flex-wrap: wrap; gap: .35rem .7rem;
  font-size: .82rem; color: var(--muted); margin: 0 0 .8rem;
}
.preview__reach {
  border-left: 3px solid var(--brand);
  background: var(--brand-wash);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .6rem .8rem;
  font-size: .86rem;
  margin: .8rem 0 0;
}
.preview__reach code { font-size: .78rem; }
.preview pre { margin: 0; padding: .6rem .7rem; overflow-x: auto; font-size: .76rem; line-height: 1.5; }
