/* Northshelf accessibility audits: site styles.
   Colour pairs are checked by site/test/contrast.js and every page by site/test/check.js (axe-core).
   Sizes are in rem so text scales with the browser's settings; breakpoints are in rem so zoom
   switches to the narrow layout instead of scrolling sideways. Fonts are served from this site
   (SIL Open Font License, see assets/fonts/). */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  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;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  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;
}

:root {
  --bg: #faf8f4;
  --bg-alt: #f3efe7;
  --surface: #ffffff;
  --ink: #15212b;
  --ink-muted: #475561;
  --line: #ddd6ca;
  --line-strong: #6f7883;
  --dot: #d8d0c2;
  --accent: #0b5e59;
  --accent-strong: #07413d;
  --accent-tint: #e2efec;
  --on-accent: #ffffff;
  --gold: #e9b949;
  --note: #fff5dc;
  --note-line: #e3c36f;
  --danger: #a61b1b;
  --danger-tint: #fdeceb;
  --success: #17633a;
  --success-tint: #e8f3ec;
  --success-line: #b9dcc6;
  --sev-high: #b42318;
  --sev-med: #c9820a;
  --sev-low: #8b97a1;
  --focus-ring: #15212b;
  --cta-bg: #0b5e59;
  --cta-ink: #ffffff;
  --cta-muted: #d7ece8;
  --cta-card: #0e6b65;
  --cta-line: #5f9d97;
  --footer-bg: #15212b;
  --footer-ink: #e8edf0;
  --footer-muted: #bcc6ce;
  --footer-focus: #ffd27a;
  --shadow: 0 1px 2px rgba(21, 33, 43, 0.06), 0 6px 20px rgba(21, 33, 43, 0.06);
  --shadow-lg: 0 2px 4px rgba(21, 33, 43, 0.05), 0 18px 48px -12px rgba(21, 33, 43, 0.22);
  --radius: 10px;
  --radius-lg: 18px;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Charter, "Sitka Text", Cambria, Georgia, serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1418;
    --bg-alt: #131b20;
    --surface: #182228;
    --ink: #e8edf0;
    --ink-muted: #b4c0c8;
    --line: #2c3a42;
    --line-strong: #85929b;
    --dot: #26333b;
    --accent: #72d4c9;
    --accent-strong: #a3e6de;
    --accent-tint: #15363a;
    --on-accent: #06201e;
    --note: #2a2414;
    --note-line: #7a6430;
    --danger: #ffa39b;
    --danger-tint: #3b1715;
    --success: #8edca8;
    --success-tint: #12301f;
    --success-line: #2e5a3f;
    --sev-high: #ff8f84;
    --sev-med: #f2b84b;
    --sev-low: #8d9aa4;
    --focus-ring: #ffd27a;
    --cta-bg: #0f3d3a;
    --cta-ink: #eef6f4;
    --cta-muted: #c3dfda;
    --cta-card: #134a46;
    --cta-line: #3f7a74;
    --footer-bg: #0a0f12;
    --footer-ink: #e8edf0;
    --footer-muted: #b4c0c8;
    --footer-focus: #ffd27a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 48px -12px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 650;
  letter-spacing: -0.018em;
}

h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 1.95rem; line-height: 1.15; }
h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.005em; }

@media (min-width: 48rem) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.35rem; }
}

@media (min-width: 64rem) {
  h1 { font-size: 3.7rem; }
}

p, ul, ol, dl, table, figure, blockquote, pre { margin: 0 0 1rem; }

ul, ol { padding-left: 1.4rem; }
li + li { margin-top: 0.35rem; }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }

strong { font-weight: 650; }

code, kbd, pre { font-family: var(--font-mono); font-size: 0.92em; }

img, svg { max-width: 100%; height: auto; }

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

main:focus { outline: none; }

[hidden] { display: none !important; }

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1.1rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 650;
}

.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 40rem) {
  .container { padding-inline: 1.5rem; }
}

.page-narrow { max-width: 44rem; }

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 42rem;
}

.small { font-size: 0.95rem; }
.muted { color: var(--ink-muted); }
.nowrap { white-space: nowrap; }

.placeholder {
  background: var(--note);
  border: 1px dashed var(--note-line);
  border-radius: 4px;
  padding: 0 0.3em;
  color: var(--ink);
  font-style: normal;
}

.preview-bar {
  background: var(--note);
  border-bottom: 1px solid var(--note-line);
  font-size: 0.95rem;
  text-align: center;
  padding: 0.45rem 1rem;
}

.preview-bar p { margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(7, 65, 61, 0.25), 0 6px 16px -6px rgba(7, 65, 61, 0.45);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--ink);
}

.btn-light {
  background: #ffffff;
  color: #07413d;
}

.btn-light:hover { background: #e9f4f2; color: #07413d; }

.btn-small {
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  font-size: 1rem;
}

.btn-block { width: 100%; }

.btn-arrow { width: 1.15em; height: 1.15em; flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .btn-arrow { transition: transform 0.15s ease; }
  .btn:hover .btn-arrow { transform: translateX(3px); }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}

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

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}

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

.brand-mark { flex: none; width: 2.2rem; height: 2.2rem; }

.brand-text { display: flex; flex-direction: column; line-height: 1.12; }

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li + li { margin-top: 0; }

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration-color: transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

.site-nav .nav-signin {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.header-call svg { width: 1.1rem; height: 1.1rem; flex: none; }

.header-call:hover { background: var(--accent); color: var(--on-accent); }

/* On a phone the header stays short: the number is in the hero, the contact band and the footer. */
@media (max-width: 40rem) {
  .header-call { display: none; }
  .site-nav ul { gap: 0.1rem 1rem; }
  .site-nav a { font-size: 0.97rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: 3.5rem; }

@media (min-width: 48rem) {
  .section { padding-block: 5.25rem; }
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 48rem; margin-bottom: 2.25rem; }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.8rem 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
}

.eyebrow-mark {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 2.75rem 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 72% 32%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 72% 32%, #000 25%, transparent 78%);
}

@media (min-width: 48rem) {
  .hero { padding-block: 4.5rem 4.5rem; }
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 3.5rem; }
}

.hero h1 { max-width: 14.5em; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 1rem;
  color: var(--ink-muted);
}

.hero-points li { margin: 0; position: relative; padding-left: 1.75rem; }

.hero-points li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%230b5e59' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}

@media (prefers-color-scheme: dark) {
  .hero-points li::before,
  .check-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%2372d4c9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* The example page with its before/after switch */

.demo {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 1rem 1rem 1.1rem;
}

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin: 0 0.15rem 0.85rem;
}

.demo-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.demo-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
}

.demo-btn {
  min-height: 2.4rem;
  padding: 0.35rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
}

.demo-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.demo-btn:focus-visible { outline-offset: 2px; }

.illus {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.demo[data-state="after"] .state-before { display: none; }
.demo:not([data-state="after"]) .state-after { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .demo[data-state="after"] .state-after { animation: fade-in 0.3s ease; }
  .demo[data-state="before"] .state-before { animation: fade-in 0.3s ease; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.illus-legend {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.98rem;
}

.illus-legend li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.6rem;
  align-items: start;
}

.illus-legend li + li { margin-top: 0.55rem; }

.issue-badge,
.fix-badge {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.issue-badge { background: #b42318; }
.fix-badge { background: #17633a; }
.fix-badge svg { width: 0.95rem; height: 0.95rem; }

.crit {
  white-space: nowrap;
  color: var(--ink-muted);
  font-size: 0.92em;
}

.demo figcaption {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Key dates and the site's own test result */

.facts {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 3.25rem 0 0.85rem;
}

@media (min-width: 48rem) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}

.facts li {
  margin: 0;
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.fact-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.fact-big {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.fact-text { display: block; color: var(--ink-muted); font-size: 0.98rem; margin-top: 0.2rem; }

.source-line {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0;
}

.proof {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--success-tint);
  border: 1px solid var(--success-line);
  border-radius: 14px;
}

.proof p { margin: 0; font-size: 1rem; }

.proof-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--success);
}

.proof-icon svg { width: 1.45rem; height: 1.45rem; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-grid > li { margin: 0; }

.card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.45rem 1.25rem;
}

.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.95rem;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
}

.card-icon svg { width: 1.5rem; height: 1.5rem; }

/* On a phone the icon sits beside the heading, so six cards take less scrolling. */
@media (max-width: 40rem) {
  .card { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 0.85rem; align-items: center; padding: 1.15rem; }
  .card-icon { width: 2.6rem; height: 2.6rem; margin: 0; }
  .card h3 { margin: 0; }
  .card p { grid-column: 1 / -1; margin-top: 0.6rem; }
}

/* Report preview */

.report-preview { margin: 3.5rem 0 0; }

.report-caption {
  max-width: 48rem;
  margin-bottom: 1.25rem;
  color: var(--ink-muted);
}

.report-caption strong { color: var(--ink); }

.report-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 62rem) {
  .report-grid { grid-template-columns: 0.82fr 1.18fr; align-items: start; }
}

.report-sheet {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 1.7rem 1.5rem 1.5rem;
  overflow: hidden;
}

.report-sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--accent);
}

.report-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.report-site {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 650;
  line-height: 1.2;
}

.report-meta { margin: 0.25rem 0 1.3rem; font-size: 0.95rem; color: var(--ink-muted); }

.report-total { display: flex; align-items: baseline; gap: 0.5rem; margin: 0 0 0.65rem; font-weight: 650; }

.report-number {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 650;
  line-height: 1;
}

.sev-bar {
  display: flex;
  gap: 3px;
  height: 0.8rem;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.sev-bar .sev-high { flex: 6; }
.sev-bar .sev-med { flex: 11; }
.sev-bar .sev-low { flex: 6; }

.sev-high { background: var(--sev-high); }
.sev-med { background: var(--sev-med); }
.sev-low { background: var(--sev-low); }

.sev-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
}

.sev-legend li { margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; }

.sev-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; }

.report-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.report-split div { margin: 0; display: flex; flex-direction: column; justify-content: space-between; }
.report-split dt { font-size: 0.88rem; color: var(--ink-muted); font-weight: 600; line-height: 1.35; }
.report-split dd { margin: 0.2rem 0 0; font-family: var(--font-serif); font-size: 1.7rem; font-weight: 650; line-height: 1.1; }

.finding-label {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.finding-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
}

.finding-tags li { margin: 0; }

.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  background: var(--bg);
}

.tag-high { border-color: var(--danger); color: var(--danger); background: var(--danger-tint); }

.finding h3 { font-size: 1.3rem; }

.finding dl { display: grid; gap: 0.15rem 1.25rem; margin: 0 0 1rem; }

@media (min-width: 48rem) {
  .finding dl { grid-template-columns: 9.5rem 1fr; }
}

.finding dt { font-weight: 700; }
.finding dd { margin: 0 0 0.6rem; }

.code-block {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #15212b;
  color: #e8edf0;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (prefers-color-scheme: dark) {
  .code-block { background: #0a0f12; border: 1px solid var(--line); }
}

/* ---------- Price ---------- */

.price-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  align-items: start;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.price-card-main {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

.price-card h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }

.price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 3.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-unit { color: var(--ink-muted); font-weight: 600; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
}

.price-note { font-size: 0.95rem; color: var(--ink-muted); margin: 0.9rem 0 0; }

.price-footnote { margin-top: 1.5rem; font-size: 0.98rem; color: var(--ink-muted); max-width: 46rem; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 72rem) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.steps > li {
  counter-increment: step;
  margin: 0;
  position: relative;
  padding: 1.4rem 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.steps > li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
}

.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; }

/* ---------- The rule ---------- */

.rule-grid {
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 62rem) {
  .rule-grid { grid-template-columns: 1.55fr 1fr; align-items: start; }
}

.rule-main > h3 { margin-top: 2rem; }

.plain-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  counter-reset: req;
}

.plain-list li {
  counter-increment: req;
  position: relative;
  margin: 0;
  padding: 0.7rem 0.9rem 0.7rem 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plain-list li::before {
  content: counter(req);
  position: absolute;
  left: 0.8rem;
  top: 0.75rem;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.sources {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  box-shadow: var(--shadow);
}

@media (min-width: 62rem) {
  .sources { position: sticky; top: 1.5rem; }
}

.sources h3 { margin-bottom: 0.75rem; }

.sources ul { list-style: none; padding: 0; }

.sources li { padding-bottom: 0.65rem; border-bottom: 1px solid var(--line); }
.sources li:last-child { border-bottom: 0; padding-bottom: 0; }

.sources .src-meta { display: block; font-size: 0.92rem; color: var(--ink-muted); }

.callout {
  background: var(--note);
  border: 1px solid var(--note-line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.callout p:last-child { margin-bottom: 0; }

/* ---------- Tools and limits ---------- */

.limits-grid {
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 56rem) {
  .limits-grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
}

.meter-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.meter-figure p { margin-bottom: 0.7rem; font-weight: 650; }

.meter-headline { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }

.meter-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 650;
  line-height: 1;
  color: var(--accent);
}

.meter {
  position: relative;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 57%;
  background: var(--accent);
}

.meter-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}

.meter-figure figcaption { font-size: 0.95rem; color: var(--ink-muted); margin-top: 0.9rem; }

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0 3rem;
}

@media (min-width: 62rem) {
  .faq { grid-template-columns: 1fr 1fr; }
}

.faq-item {
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}

.faq-item h3 { margin-bottom: 0.45rem; }
.faq-item p:last-child { margin-bottom: 0; }

/* ---------- Closing call to action ---------- */

.cta-band {
  --focus-ring: #ffd27a;
  background: var(--cta-bg);
  color: var(--cta-ink);
  padding-block: 3.75rem;
}

@media (min-width: 48rem) {
  .cta-band { padding-block: 5rem; }
}

.cta-grid {
  display: grid;
  gap: 2rem 3.5rem;
}

@media (min-width: 56rem) {
  .cta-grid { grid-template-columns: 1.25fr 1fr; align-items: center; }
}

.cta-band h2 { color: inherit; }
.cta-band .lead { color: var(--cta-muted); }
.cta-band p { color: var(--cta-ink); }
.cta-band .muted, .cta-band .small { color: var(--cta-muted); }
.cta-band a { color: var(--cta-ink); }
.cta-band a:hover { color: var(--cta-ink); }
.cta-band .placeholder { color: var(--ink); }

.cta-card {
  background: var(--cta-card);
  border: 1px solid var(--cta-line);
  border-radius: 20px;
  padding: 1.6rem 1.6rem 1.4rem;
}

.cta-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cta-band .cta-label { color: var(--cta-muted); }

.cta-phone {
  margin: 0.1rem 0 1rem;
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 650;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.cta-phone a { text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

.cta-email { margin: 0.1rem 0 0.9rem; font-size: 1.2rem; font-weight: 600; }

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

.site-footer {
  --focus-ring: var(--footer-focus);
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-block: 3rem 1.5rem;
}

.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #ffffff; }

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.footer-about p:last-child { color: var(--footer-muted); }

.footer-heading {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.footer-list { list-style: none; padding: 0; margin: 0; }

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #3a4852;
  font-size: 0.95rem;
  color: var(--footer-muted);
}

.footer-legal p { margin: 0; }

.site-footer .placeholder { color: var(--ink); }

/* ---------- Plain pages (privacy, terms, statement) ---------- */

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.65rem; margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }

.page-head { padding-block: 2.75rem 0.5rem; }

@media (min-width: 48rem) {
  .page-head { padding-block: 3.75rem 0.5rem; }
}

.updated { color: var(--ink-muted); font-size: 0.98rem; }

.section-tight { padding-bottom: 3.5rem; }

.outbox { list-style: none; padding: 0; }
.outbox li { border-top: 1px solid var(--line); padding-block: 1rem; }
.outbox h2 { font-family: var(--font-sans); font-size: 1.15rem; }
.outbox pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem; }

/* ---------- Forms ---------- */

.form { margin: 1.5rem 0 2rem; }

.field { margin-bottom: 1.4rem; }

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.optional { font-weight: 400; color: var(--ink-muted); }

.hint {
  margin: 0 0 0.45rem;
  color: var(--ink-muted);
  font-size: 1rem;
}

.input {
  display: block;
  width: 100%;
  max-width: 30rem;
  min-height: 3rem;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.input:focus-visible { outline-offset: 2px; border-color: var(--ink); }

.input-code {
  max-width: 12rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.25em;
}

.field-error .input { border-color: var(--danger); }

.field-error {
  border-left: 4px solid var(--danger);
  padding-left: 0.9rem;
}

.error-message {
  color: var(--danger);
  font-weight: 700;
  margin: 0 0 0.45rem;
}

.error-summary {
  border: 3px solid var(--danger);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0 1.5rem;
  background: var(--surface);
}

.error-summary h2 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--danger); font-weight: 700; }

.alert {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.25rem 0 1.5rem;
  border: 2px solid var(--success);
  background: var(--success-tint);
}

.alert p:last-child { margin-bottom: 0; }

.alert-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

/* ---------- Account ---------- */

.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-head p { margin: 0; }
.account-head form { margin: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}

.panel h2 { font-size: 1.5rem; }
.panel > :last-child { margin-bottom: 0; }

.tracker {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 40rem) {
  .tracker { grid-template-columns: repeat(4, 1fr); }
}

.tracker li {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-muted);
}

.tracker .is-done { border-color: var(--success); color: var(--ink); }
.tracker .is-done::before { content: "\2713\00a0"; color: var(--success); }
.tracker .is-current { border-color: var(--accent); background: var(--accent-tint); color: var(--ink); }

.table-wrap { margin-bottom: 1rem; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 0;
}

.data-table caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.5rem;
}

.data-table th, .data-table td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th { border-bottom: 2px solid var(--line-strong); }

/* Long web addresses break inside their cell instead of pushing the table past a narrow screen. */
.data-table th, .data-table td { overflow-wrap: anywhere; }

@media (max-width: 30rem) {
  .data-table { font-size: 0.95rem; }
  .data-table th, .data-table td { padding: 0.5rem 0.35rem; }
}

.num { text-align: right !important; font-variant-numeric: tabular-nums; }

.file-link { font-weight: 650; }

/* ---------- Contrast themes, print ---------- */

@media (forced-colors: active) {
  .btn, .demo-btn, .header-call { border: 2px solid ButtonText; }
  .demo-btn[aria-pressed="true"] { border-width: 3px; text-decoration: underline; }
  .card-icon, .issue-badge, .fix-badge, .steps > li::before, .plain-list li::before, .eyebrow-mark, .proof-icon, .sev, .sev-dot { forced-color-adjust: none; }
  .demo .illus { forced-color-adjust: none; }
  .meter-fill { background: Highlight; forced-color-adjust: none; }
  .tracker .is-current { border-width: 3px; }
  .report-sheet::before { background: CanvasText; }
}

@media print {
  .site-header nav, .header-call, .skip-link, .btn-row, .preview-bar, .demo-toggle { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .hero { padding-block: 1rem; }
  .hero::before { display: none; }
  a { color: #000; }
  .cta-band, .site-footer { background: #fff; color: #000; }
  .cta-band a, .site-footer a { color: #000; }
}
