/* AccessClerk
   Modern civic: confident navy, a clear working blue, and a manila-gold thread
   that ties back to the paperwork clerks live in. Bricolage Grotesque for
   headings, Public Sans (the US government's typeface) for reading. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --navy: #13224a;
  --navy-2: #1d3166;
  --text: #1a2340;
  --muted: #4a5573;
  --blue: #2f55d4;
  --blue-hover: #2546b4;
  --blue-soft: #e8eefc;
  --sky: #f4f7fd;
  --line: #dce3f0;
  --white: #ffffff;
  --gold: #f3c84b;
  --gold-soft: #fdf3d3;
  --gold-ink: #5c4500;
  --green: #12704f;
  --green-soft: #e3f4ec;
  --red: #b42a20;
  --red-soft: #fbe9e7;
  --amber: #8a4b00;
  --amber-soft: #fdf0de;
  --focus: #2f55d4;

  --display: 'Bricolage Grotesque', 'Public Sans', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --measure: 66ch;
  --radius-lg: 20px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgb(19 34 74 / 6%), 0 2px 6px rgb(19 34 74 / 5%);
  --shadow: 0 2px 4px rgb(19 34 74 / 5%), 0 12px 32px -8px rgb(19 34 74 / 16%);
  --shadow-lg: 0 4px 8px rgb(19 34 74 / 6%), 0 32px 64px -16px rgb(19 34 74 / 28%);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 3.2vw, 2.5rem);
  --step-4: clamp(2.6rem, 5.6vw, 4.25rem);
}

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

html {
  font-family: var(--body);
  color: var(--text);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--navy);
  text-wrap: balance;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

img,
svg {
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms, box-shadow 150ms, transform 150ms;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 0 rgb(255 255 255 / 20%) inset, 0 6px 16px -6px rgb(47 85 212 / 60%);
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
}
.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 86%);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgb(220 227 240 / 70%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}
.brand:hover {
  color: var(--navy);
}
.brand svg {
  width: 30px;
  height: 30px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.site-nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.site-nav ul a:hover {
  color: var(--navy);
}
@media (max-width: 52rem) {
  .site-nav ul {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(47 85 212 / 14%), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgb(243 200 75 / 18%), transparent 60%),
    var(--sky);
}
.hero::before {
  /* faint ledger grid */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(19 34 74 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(19 34 74 / 5%) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 60rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem 0.3rem 0.4rem;
  box-shadow: var(--shadow-sm);
  margin: 0 0 1.5rem;
  text-decoration: none;
}
.pill:hover {
  color: var(--navy);
  border-color: var(--navy);
}
.pill .dot {
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  font-weight: 800;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
}
.hero .lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  max-width: 40ch;
  margin: 0 0 2rem;
}

/* Scan form: one elevated bar */
.scan-form {
  max-width: 38rem;
}
.scan-form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.scan-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: border-color 150ms, box-shadow 150ms;
}
.scan-bar:focus-within {
  border-color: var(--blue);
  box-shadow: var(--shadow), 0 0 0 4px rgb(47 85 212 / 18%);
}
.scan-bar .prefix {
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  color: var(--muted);
}
.scan-bar .prefix svg {
  width: 20px;
  height: 20px;
}
.scan-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1.125rem;
  color: var(--text);
  border: 0;
  background: transparent;
  padding: 0.5rem 0.25rem;
  min-height: 48px;
}
.scan-form input:focus-visible {
  outline: none;
}
.scan-form input::placeholder {
  color: #6b7591;
}
.scan-form input[aria-invalid='true'] {
  color: var(--red);
}
.scan-form button {
  font: inherit;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 11px;
  padding: 0 1.4rem;
  min-height: 48px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms;
}
.scan-form button:hover {
  background: var(--blue-hover);
}
.scan-form button[aria-disabled='true'] {
  cursor: progress;
  background: var(--navy-2);
}
.form-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: var(--step--1);
  color: var(--muted);
}
.form-note li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.form-note svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}
@media (max-width: 30rem) {
  .scan-bar {
    flex-wrap: wrap;
  }
  .scan-bar .prefix {
    display: none;
  }
  .scan-form input {
    flex-basis: 100%;
    padding-left: 0.5rem;
  }
  .scan-form button {
    flex: 1;
  }
}

.status {
  max-width: 38rem;
  margin: 1rem 0 0;
  min-height: 1.6em;
  font-weight: 600;
  color: var(--navy);
}
.status.is-error {
  color: var(--red);
}
.status.is-busy::before {
  content: '';
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.5rem;
  vertical-align: -0.1em;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .status.is-busy::before {
    animation: spin 800ms linear infinite;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hero illustration: a stack of report pages */
.preview {
  position: relative;
  padding: 0.5rem 1.5rem 1.5rem 0;
}
@media (max-width: 60rem) {
  .preview {
    display: none;
  }
}
.preview .sheet {
  position: absolute;
  inset: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.preview .sheet.back {
  transform: rotate(5deg) translate(18px, 10px);
  background: var(--gold-soft);
  border-color: #efe0b0;
}
.preview .sheet.front {
  position: relative;
  inset: auto;
  transform: rotate(-1.5deg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.preview .sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}
.preview .sheet-head strong {
  font-family: var(--display);
  color: var(--navy);
  font-size: 1.15rem;
}
.preview .sheet-head span {
  font-size: var(--step--1);
  color: var(--muted);
}
.preview .row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  background: var(--sky);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
}
.preview .row .count {
  margin-left: auto;
  font-weight: 700;
  color: var(--muted);
  font-size: var(--step--1);
}
.preview .doc-row {
  background: var(--gold-soft);
}

/* ---------- Badges (severity) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}
.badge.critical,
.badge.serious {
  color: var(--red);
  background: var(--red-soft);
}
.badge.moderate {
  color: var(--amber);
  background: var(--amber-soft);
}
.badge.minor {
  color: var(--muted);
  background: var(--sky);
}
.badge.pass {
  color: var(--green);
  background: var(--green-soft);
}
.badge.doc {
  color: var(--gold-ink);
  background: var(--gold);
}
.badge.doc::before {
  display: none;
}

/* ---------- Results ---------- */
.results {
  background: var(--sky);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 4rem;
}
.results[hidden] {
  display: none;
}
.results h2 {
  font-size: var(--step-3);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.results h2:focus {
  outline: none;
}
.results h2:focus-visible {
  outline: 3px solid var(--focus);
}
.results .scanned {
  color: var(--muted);
  margin: 0 0 2rem;
  overflow-wrap: anywhere;
}

.tally {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}
.tally li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.tally strong {
  display: block;
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
}
.tally span {
  font-size: var(--step--1);
  color: var(--muted);
}

.issue-list {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.issue {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.issue h3 {
  font-size: var(--step-1);
  font-weight: 700;
  margin: 0.85rem 0 0.75rem;
  line-height: 1.3;
}
.issue p {
  margin: 0 0 0.75rem;
  max-width: var(--measure);
}
.issue .meta {
  font-size: var(--step--1);
  color: var(--muted);
}
details.examples {
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
details.examples summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--navy);
}
details.examples code {
  display: block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  background: var(--sky);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin-top: 0.6rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
}

.clean {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 0 0 3rem;
  box-shadow: var(--shadow-sm);
}
.clean p {
  margin: 0.85rem 0 0;
  max-width: var(--measure);
}

.docs {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 0 0 1.5rem;
  box-shadow: var(--shadow-sm);
}
.docs h3 {
  font-size: var(--step-2);
  margin: 0 0 0.5rem;
}
.docs > p {
  max-width: var(--measure);
  margin: 0 0 1rem;
  color: var(--muted);
}
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.doc-list li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.limitations {
  border-left: 4px solid var(--gold);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  max-width: 52rem;
}
.limitations h3 {
  margin: 0 0 0.5rem;
  font-size: var(--step-1);
}
.limitations ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}
.limitations li + li {
  margin-top: 0.5rem;
}
.limitations .meta {
  font-size: var(--step--1);
  color: var(--muted);
  margin: 1rem 0 0;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.section.alt {
  background: var(--sky);
}
.section-head {
  max-width: 44rem;
  margin: 0 0 3rem;
}
.section h2 {
  font-size: var(--step-3);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 1rem;
}
.steps h3 {
  font-size: var(--step-1);
  margin: 0 0 0.4rem;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

.coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.25rem;
}
.coverage > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.coverage h3 {
  font-size: var(--step-1);
  margin: 0 0 1rem;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.checklist svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
}
.checklist.yes svg {
  color: var(--green);
}
.checklist.no svg {
  color: var(--muted);
}
.coverage .footnote {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Deadlines */
.deadline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin: 0 0 1.5rem;
}
.deadline {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #d6def2;
  overflow: hidden;
}
.deadline.later {
  background: var(--white);
  color: var(--muted);
  border: 1px solid var(--line);
}
.deadline h3 {
  font-size: 1rem;
  font-family: var(--body);
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: inherit;
}
.deadline .date {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
}
.deadline.later .date {
  color: var(--navy);
}
.deadline .countdown {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: var(--step--1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: var(--white);
}
.deadline.later .countdown {
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.fine {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: var(--measure);
}

/* Plans */
.plans {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.plan.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow);
}
.plan h3 {
  font-size: var(--step-2);
  margin: 0.85rem 0 0.5rem;
}
.plan > p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.plan .checklist {
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}
.plan .checklist svg {
  color: var(--blue);
}
.plan .btn {
  margin-top: auto;
}

/* FAQ */
.faq {
  max-width: 50rem;
  display: grid;
  gap: 0.75rem;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.5rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.15rem;
  color: var(--navy);
  padding: 1.15rem 2rem 1.15rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: var(--measure);
}

/* CTA band */
.cta {
  background: var(--navy);
  color: #d6def2;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  align-items: center;
  background-image: radial-gradient(40rem 20rem at 100% 0%, rgb(47 85 212 / 45%), transparent 60%);
}
.cta h2 {
  color: var(--white);
  margin: 0 0 0.5rem;
}
.cta p {
  margin: 0;
  max-width: 44ch;
}
@media (max-width: 44rem) {
  .cta {
    grid-template-columns: 1fr;
  }
}

/* ---------- Prose pages ---------- */
.page-hero {
  background: var(--sky);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 2.5rem;
}
.page-hero h1 {
  font-size: var(--step-4);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}
.page-hero .updated {
  color: var(--muted);
  margin: 0;
}
.prose {
  padding: 3rem 0 5rem;
  max-width: var(--measure);
}
.prose h2 {
  font-size: var(--step-2);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.015em;
}
.prose li + li {
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9c4e0;
  padding: 3.5rem 0 3rem;
  font-size: 0.95rem;
  margin-top: 0;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem 4rem;
}
@media (max-width: 48rem) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}
.site-footer .brand,
.site-footer .brand:hover {
  color: var(--white);
  margin-bottom: 1rem;
}
.site-footer a {
  color: var(--white);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.site-footer p {
  margin: 0;
  max-width: var(--measure);
}

/* ---------- App pages (checkout, report) ---------- */
.page-intro {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 48ch;
  margin: 0.75rem 0 0;
}
.app {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
@media (max-width: 52rem) {
  .checkout {
    grid-template-columns: 1fr;
  }
}
.checkout-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.checkout-card h2,
.checkout-details h2 {
  font-size: var(--step-2);
  margin: 0 0 0.25rem;
}
.checkout-card .price {
  margin: 0 0 1.5rem;
  color: var(--muted);
}
.checkout-card .price strong {
  font-family: var(--display);
  font-size: 2.25rem;
  color: var(--navy);
  margin-right: 0.25rem;
}
.checkout-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.checkout-card input {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #9aa6c2;
  border-radius: var(--radius-sm);
  min-height: 48px;
}
.checkout-card input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--blue);
}
.checkout-card input[aria-invalid='true'] {
  border-color: var(--red);
}
.checkout-card .hint {
  font-size: var(--step--1);
  color: var(--muted);
  margin: 0.4rem 0 1.25rem;
}
.checkout-card .btn {
  width: 100%;
  border-radius: var(--radius-sm);
  min-height: 50px;
}
.checkout-card .fine,
.checkout-details .fine {
  font-size: var(--step--1);
  margin-top: 1rem;
}
.checkout-details {
  padding: 1rem 0.5rem;
}
.checkout-details .checklist {
  margin: 1rem 0 1.5rem;
}
.checkout-details .checklist svg {
  color: var(--blue);
}

/* Report */
.report-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.report-head h2 {
  font-size: var(--step-3);
  margin: 0;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.report-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.progress-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}
.progress-card h3 {
  margin: 0 0 0.75rem;
  font-size: var(--step-1);
}
.progress-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}
progress {
  width: 100%;
  height: 12px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--blue-soft);
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: var(--blue-soft);
  border-radius: 999px;
}
progress::-webkit-progress-value {
  background: var(--blue);
  border-radius: 999px;
}
progress::-moz-progress-bar {
  background: var(--blue);
  border-radius: 999px;
}
.report-section {
  margin: 3rem 0 0;
}
.report-section > h2 {
  font-size: var(--step-2);
  margin: 0 0 0.35rem;
}
.report-section > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: var(--measure);
}
.issue .pages-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  font-size: var(--step--1);
}
.issue .pages-list a {
  overflow-wrap: anywhere;
}
.source-tag {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.filters button {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.filters button[aria-pressed='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table caption {
  text-align: left;
  padding: 1rem 1.25rem 0;
  font-weight: 600;
  color: var(--navy);
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  font-size: var(--step--1);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table td a {
  overflow-wrap: anywhere;
}
.badge.bucket-fix-first {
  color: var(--red);
  background: var(--red-soft);
}
.badge.bucket-possible-archive {
  color: var(--gold-ink);
  background: var(--gold-soft);
}
.badge.bucket-needs-review {
  color: var(--muted);
  background: var(--sky);
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media print {
  .site-header,
  .site-footer,
  .report-actions,
  .filters,
  .skip-link {
    display: none !important;
  }
  .issue,
  .tally li {
    box-shadow: none;
    break-inside: avoid;
  }
}

.plan-price {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--navy);
  margin-right: 0.15rem;
}
