/* Alvric: supplier invoice audits */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/InterVariable-latin.woff2") format("woff2");
}

/* Metric-matched fallback so the swap to Inter barely moves the layout. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

:root {
  --ink: #14202B;
  --ink-soft: #24333F;
  --paper: #F6F4EF;
  --surface: #FFFFFF;
  --rule: #D9D4C7;
  --rule-strong: #BDB6A6;
  --muted: #56616B;
  --flag: #B4361C;
  --flag-tint: #FBEAE4;
  --verified: #3E6B4F;
  --verified-tint: #E6EFE8;
  --placeholder-bg: #FFF2A8;

  --font: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --step-3: clamp(2.125rem, 1.5rem + 3vw, 3.625rem);

  --gutter: 16px;
  --radius: 6px;
  --section-space: clamp(64px, 9vw, 120px);
  --header-h: 64px;
  --shadow-sheet: 0 1px 2px rgba(20, 32, 43, 0.06), 0 18px 40px -18px rgba(20, 32, 43, 0.28);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); line-height: 1.06; letter-spacing: -0.028em; }
h2 { font-size: var(--step-2); letter-spacing: -0.022em; }
h3 { font-size: var(--step-1); }

p { text-wrap: pretty; }

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

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

.num, .marked, .finding-amount, .report-summary dd, .counter {
  font-variant-numeric: tabular-nums;
}

.nowrap { white-space: nowrap; }

.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: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.placeholder {
  background: var(--placeholder-bg);
  color: var(--ink);
  outline: 1px dashed #8A7400;
  outline-offset: 1px;
  padding: 0 0.2em;
  border-radius: 2px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--surface); }
.button[disabled],
.button[aria-disabled="true"] { opacity: 0.65; cursor: progress; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { flex: none; width: 32px; height: 32px; }
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.2;
}
.brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-descriptor {
  font-size: var(--step--1);
  color: var(--muted);
}
.site-header .brand-descriptor {
  padding-left: 10px;
  border-left: 1px solid var(--rule-strong);
}
@media (max-width: 359px) {
  .site-header .brand-descriptor { display: none; }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  transform-origin: 12px 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-top { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-mid { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bot { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-list {
  display: flex;
  gap: 24px;
}
.nav-list a {
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
}
.nav-list a:hover { text-decoration: underline; }
.nav-cta { min-height: 42px; padding: 9px 16px; font-size: 0.9375rem; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 24px -20px rgba(20, 32, 43, 0.35);
  }
  .site-header.nav-open { border-bottom-color: var(--rule); }
  .site-header.nav-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.0625rem;
  }
  .nav-cta { min-height: 48px; font-size: 1rem; }
}

/* Hero */
.hero {
  padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px);
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
  }
}
.hero-copy h1 { max-width: 14ch; }
.lede {
  margin-top: 24px;
  max-width: 34em;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink);
}
.hero-copy .button-row { margin-top: 32px; }
.hero-note {
  margin-top: 16px;
  font-size: var(--step--1);
  color: var(--muted);
}

/* Hero invoice */
.invoice { max-width: 480px; width: 100%; }
@media (min-width: 960px) { .invoice { justify-self: end; } }

.invoice-sheet {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow-sheet);
  padding: 20px 18px 16px;
  font-size: 0.875rem;
  line-height: 1.4;
}
@media (min-width: 420px) { .invoice-sheet { padding: 24px 24px 20px; } }
@media (max-width: 399px) {
  .invoice-sheet { padding: 16px 14px 14px; font-size: 0.8125rem; }
  .invoice-head { flex-direction: column; gap: 6px; }
  .invoice-billto { text-align: left; }
  .invoice-billto br { display: none; }
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.invoice-supplier { font-weight: 600; font-size: 0.9375rem; }
.invoice-meta { color: var(--muted); font-size: 0.8125rem; }
.invoice-billto { text-align: right; }

.invoice-table {
  width: 100%;
  border-collapse: collapse;
}
.invoice-table th,
.invoice-table td {
  padding: 0;
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}
.invoice-table thead th {
  padding: 10px 0 8px;
  font-size: 0.75rem;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.invoice-table .num { text-align: right; white-space: nowrap; }
.invoice-table thead th.num,
.invoice-table .line td.num:first-of-type { padding-left: 12px; }

.line th,
.line td {
  padding-block: 10px;
  border-bottom: 1px solid var(--rule);
}
.line th { position: relative; padding-left: 10px; }
.line td.num:last-child { padding-left: 12px; }
.line-sub {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}
.line.is-flagged th,
.line.is-flagged td { border-bottom: 0; }

.line.is-flagged th::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: -4px;
  width: 3px;
  background: var(--flag);
  border-radius: 2px;
}
.marked {
  display: inline-block;
  padding: 0 4px;
  margin-right: -4px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px var(--flag);
}

.flag-note td {
  padding: 2px 0 10px 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--flag);
  font-size: 0.8125rem;
  font-weight: 600;
}
.flag-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.flag-text { flex: 1; padding-top: 1px; }
.flag-badge {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--flag);
  color: var(--surface);
  font-size: 0.6875rem;
  line-height: 18px;
  text-align: center;
}
.flag-amount {
  flex: none;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--flag-tint);
  font-variant-numeric: tabular-nums;
}

.invoice-table tfoot th,
.invoice-table tfoot td {
  padding-top: 12px;
  font-weight: 600;
}
.invoice-table tfoot td { padding-left: 12px; }
.invoice-flag-total th,
.invoice-flag-total td {
  padding-top: 6px !important;
  color: var(--flag);
}

.figure-note {
  margin-top: 12px;
  font-size: var(--step--1);
  color: var(--muted);
}

/* Hero load animation: flags appear one by one */
@keyframes flag-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@keyframes mark-in {
  from { box-shadow: inset 0 0 0 1.5px transparent; }
  to { box-shadow: inset 0 0 0 1.5px var(--flag); }
}
.flag-line,
.line.is-flagged th::before,
.invoice-flag-total th,
.invoice-flag-total td {
  animation: flag-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.line.is-flagged .marked { animation: mark-in 0.45s ease both; }
.flag-1 .marked, .flag-1 th::before, .flag-1 .flag-line { animation-delay: 0.5s; }
.flag-2 .marked, .flag-2 th::before, .flag-2 .flag-line { animation-delay: 0.85s; }
.flag-3 .marked, .flag-3 th::before, .flag-3 .flag-line { animation-delay: 1.2s; }
.invoice-flag-total th,
.invoice-flag-total td { animation-delay: 1.55s; }

/* Sections */
.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--rule);
}

.section-head { max-width: 46rem; }
.section-intro {
  margin-top: 16px;
  max-width: 38em;
  color: var(--muted);
}
.section-head + * { margin-top: 48px; }

.split {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }
  .split-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .split-wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

/* Ledger-style list */
.ledger-list { border-top: 1px solid var(--ink); }
.ledger-list > li {
  display: grid;
  gap: 6px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}
.ledger-list p { color: var(--muted); max-width: 40em; }

.ledger-list-verified > li {
  position: relative;
  padding-left: 36px;
}
.ledger-list-verified > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--verified-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%233E6B4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
}

/* Steps */
.steps {
  display: grid;
  gap: 0;
  counter-reset: none;
  border-top: 1px solid var(--ink);
}
.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 6px;
  padding-block: 24px;
  border-bottom: 1px solid var(--rule);
}
.step h3, .step p { grid-column: 2; }
.step p { color: var(--muted); max-width: 34em; }
.step-number {
  grid-row: 1 / span 2;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.step-planned .step-number { color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
  .step {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 24px 8px 0;
    border-bottom: 0;
  }
  .step + .step { padding-left: 24px; border-left: 1px solid var(--rule); }
  .step h3, .step p { grid-column: 1; }
  .step-number { grid-row: auto; margin-bottom: 18px; font-size: 2.25rem; }
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: 0.15em;
  white-space: nowrap;
}
.badge-planned {
  background: var(--verified-tint);
  color: var(--verified);
}

/* What we check */
.check-list {
  display: grid;
  border-top: 1px solid var(--ink);
}
.check-list > li {
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}
.check-list > li > p { margin-top: 6px; color: var(--muted); }
@media (min-width: 720px) {
  .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .check-feature { grid-column: 1 / -1; }
}
.check-feature .tick-list { margin-top: 12px; }
@media (min-width: 720px) {
  .check-feature .tick-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}

.tick-list > li {
  position: relative;
  padding: 6px 0 6px 26px;
  color: var(--ink);
}
.tick-list > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.85em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--verified);
  border-bottom: 2px solid var(--verified);
  transform: rotate(-45deg);
}

/* Sample report */
.report {
  margin-inline: calc(var(--gutter) * -1);
  background: var(--surface);
  border-block: 1px solid var(--rule);
}
@media (min-width: 640px) {
  .report {
    margin-inline: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(20, 32, 43, 0.05);
  }
}
.report-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px var(--gutter);
  border-bottom: 2px solid var(--ink);
}
@media (min-width: 640px) { .report-top { padding: 24px 28px; } }
.report-company { font-weight: 600; font-size: var(--step-1); line-height: 1.35; }
.report-fictional { font-weight: 400; color: var(--muted); }
.report-period { font-size: var(--step--1); color: var(--muted); }
.demo-label {
  padding: 4px 10px;
  border: 1px dashed var(--rule-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}
.summary-item {
  padding: 18px var(--gutter);
}
@media (min-width: 640px) { .summary-item { padding: 20px 28px; } }
.summary-total {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--rule);
}
.summary-item + .summary-item:not(.summary-total) { border-left: 1px solid var(--rule); }
@media (min-width: 720px) {
  .report-summary { grid-template-columns: 2fr 1fr 1fr; }
  .summary-total { grid-column: auto; border-bottom: 0; }
  .summary-item + .summary-item { border-left: 1px solid var(--rule); }
}
.report-summary dt { font-size: var(--step--1); color: var(--muted); }
.report-summary dd {
  margin-top: 2px;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.summary-total dd { color: var(--flag); }

.finding { border-bottom: 1px solid var(--rule); }
.finding-heading { font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.finding-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  grid-template-areas:
    "title title chevron"
    "supplier amount chevron";
  align-items: center;
  column-gap: 14px;
  row-gap: 4px;
  width: 100%;
  min-height: 64px;
  padding: 14px var(--gutter);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
@media (min-width: 640px) { .finding-toggle { padding-inline: 28px; } }
@media (min-width: 720px) {
  .finding-toggle {
    grid-template-columns: minmax(0, 1fr) minmax(0, 14rem) 7rem 16px;
    grid-template-areas: "title supplier amount chevron";
    column-gap: 20px;
  }
}
.finding-toggle:hover { background: #FBFAF7; }
.finding-toggle:focus-visible { outline-offset: -3px; }
.finding-toggle[aria-expanded="true"] { background: #FBFAF7; }
.finding-title { grid-area: title; font-weight: 600; line-height: 1.35; }
.finding-supplier { grid-area: supplier; color: var(--muted); font-size: 0.9375rem; }
.finding-amount {
  grid-area: amount;
  justify-self: end;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--flag-tint);
  color: var(--flag);
  font-weight: 600;
  white-space: nowrap;
}
.chevron {
  grid-area: chevron;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
[aria-expanded="true"] > .chevron { transform: rotate(180deg); }

.finding-body {
  padding: 4px var(--gutter) 24px;
  background: #FBFAF7;
}
@media (min-width: 640px) { .finding-body { padding-inline: 28px; } }
.finding-details {
  display: grid;
  gap: 14px 32px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
}
@media (min-width: 640px) {
  .finding-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-wide { grid-column: 1 / -1; }
}
.finding-details dt { font-size: 0.8125rem; color: var(--muted); }
.finding-details dd { margin-top: 2px; max-width: 60ch; }
.detail-variance dd { color: var(--flag); font-weight: 600; }

.report-footnote {
  padding: 16px var(--gutter) 20px;
  font-size: var(--step--1);
  color: var(--muted);
}
@media (min-width: 640px) { .report-footnote { padding-inline: 28px; } }

/* Disclosure reveal */
@keyframes reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.js [data-panel]:not([hidden]) { animation: reveal 0.18s ease both; }
.no-js [data-panel][hidden] { display: block !important; }

/* Who it's for */
.prose { max-width: 40rem; }
.prose-lead {
  font-size: var(--step-1);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prose p + p,
.prose p + ul { margin-top: 16px; }
.prose > p:not(.prose-lead) { color: var(--muted); }

/* Founder */
.founder { max-width: 52rem; }
@media (min-width: 960px) { .founder { padding-left: calc(var(--gutter) + 8%); } }
.founder-note {
  margin-top: 24px;
  padding-left: 20px;
  border-left: 3px solid var(--ink);
  font-size: var(--step-1);
  line-height: 1.55;
}
.founder-name {
  margin-top: 16px;
  padding-left: 23px;
  color: var(--muted);
}

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq-q { font-size: var(--step-0); letter-spacing: 0; }
.faq-q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-q button:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
.faq-q button[aria-expanded="true"] { border-bottom-color: transparent; }
.faq-q .chevron { flex: none; }
.faq-a {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--rule);
}
.faq-a p { max-width: 40em; color: var(--muted); }

/* Final CTA and form */
.cta { background: var(--surface); }
.cta-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .cta-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}
.cta-detail { margin-top: 16px; max-width: 30em; }

.form-card {
  padding: 24px var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  background: var(--paper);
  border-block: 1px solid var(--rule);
}
@media (min-width: 640px) {
  .form-card {
    margin-inline: 0;
    padding: 32px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
  }
}

.audit-form {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .audit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .field-wide { grid-column: 1 / -1; }
}

.field { display: grid; gap: 6px; align-content: start; }
.field label {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.optional { font-weight: 400; color: var(--muted); }
.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.counter { flex: none; font-size: 0.8125rem; color: var(--muted); }
.counter.is-near { color: var(--flag); font-weight: 600; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 116px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2314202B' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field [aria-invalid="true"] {
  border-color: var(--flag);
  box-shadow: inset 3px 0 0 var(--flag);
}
.field-error {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--flag);
}
.field-error:empty { display: none; }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions { display: grid; gap: 12px; justify-items: start; }
.button-submit { min-width: 200px; }
@media (max-width: 479px) { .button-submit { width: 100%; } }
.form-note { font-size: var(--step--1); color: var(--muted); max-width: 40em; }

.form-status:empty { display: none; }
.form-status {
  padding: 16px;
  border: 1px solid var(--flag);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--surface);
}
.form-status p + p { margin-top: 8px; }
.form-status .status-title { font-weight: 600; color: var(--flag); }

.form-success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--verified);
  border-left-width: 4px;
  border-radius: var(--radius);
  font-size: var(--step-1);
  line-height: 1.5;
}
.form-success svg { flex: none; margin-top: 2px; }
.form-success:focus { outline: none; }
.form-success:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Footer */
.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--ink);
  font-size: var(--step--1);
}
.footer-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 64px;
  }
  .disclaimer { grid-column: 2; }
  .copyright { grid-column: 1; grid-row: 2; align-self: end; }
}
.footer-brand .brand-name { font-size: 1.125rem; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-nav a {
  display: inline-block;
  padding-block: 4px;
  color: var(--ink);
}
.disclaimer {
  max-width: 62em;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.copyright { color: var(--muted); }

/* Simple pages (privacy, 404) */
.page {
  padding-block: clamp(40px, 7vw, 88px) var(--section-space);
}
.page-body { max-width: 42rem; }
.page-body h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); }
.page-body .updated { margin-top: 12px; color: var(--muted); font-size: var(--step--1); }
.page-body h2 {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: var(--step-1);
}
.page-body p,
.page-body ul { margin-top: 12px; }
.page-body ul { padding-left: 1.25em; list-style: disc; }
.page-body li + li { margin-top: 6px; }
.page-body .note {
  margin-top: 48px;
  padding: 16px 18px;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: var(--step--1);
}
.not-found .lede { color: var(--muted); }
.not-found .button-row { margin-top: 32px; }
.not-found-code {
  margin-bottom: 20px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--flag);
  font-variant-numeric: tabular-nums;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
