/* ═══════════════════════════════════════════════════════════════════════════
   AUDIT PAGE — extends ../style.css
   Stripped nav, single-CTA flow, terminal-style loader, score reveal.
   ═══════════════════════════════════════════════════════════════════════════ */

.audit-body {
  background: var(--ink);
  position: relative;
}

/* ── ANIMATED BACKGROUND — "X-Ray Inspection" v4 ───────────────────────── */
/* Layer order (bottom → top):
     0. body background (--ink)
     1. #auditAurora WebGL      — reactbits Aurora curtain (amber)
     2. #auditSoftAurora WebGL  — reactbits SoftAurora flow (cream + amber)
     3. .audit-bg-vignette      — corner depth + global darken
     4. #auditBg canvas         — invisible radar mechanic + skeleton + annotations
     5. content sections        — semi-transparent dark / opaque cream
*/
.audit-bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  opacity: 0.55;
}

.audit-bg-soft-aurora {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  opacity: 0.85;
  mix-blend-mode: screen;
}

.audit-bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(140% 90% at 50% 50%, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.42) 75%, rgba(0, 0, 0, 0.62) 100%);
}

.audit-bg {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: block;
}

/* Sections sit above the background stack. Dark sections are semi-transparent
   so the X-ray reads through; cream sections stay opaque editorial spreads. */
.audit-body .section--ink {
  background: rgba(15, 13, 11, 0.72);
  position: relative;
  z-index: 3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.audit-body .section--cream {
  background: var(--cream);
  position: relative;
  z-index: 3;
}
.audit-body .audit-nav {
  background: rgba(15, 13, 11, 0.78);
  z-index: 50;
}
.audit-body .audit-footer {
  background: rgba(15, 13, 11, 0.82);
  z-index: 3;
}

/* ── CENTERED LAYOUT ────────────────────────────────────────────────────── */
/* All audit sections center their content. Cards/list items keep their own
   internal alignment. */
.audit-state .container,
.audit-score .container,
.audit-findings .container,
.audit-gate .container,
.audit-full .container,
.audit-cta .container {
  text-align: center;
}
.audit-lede {
  margin-left: auto;
  margin-right: auto;
}

/* ── CENTERED LAYOUT ────────────────────────────────────────────────────── */
/* All audit sections center their content. Cards/list items keep their own
   internal alignment. */
.audit-state .container,
.audit-score .container,
.audit-findings .container,
.audit-gate .container,
.audit-full .container,
.audit-cta .container {
  text-align: center;
}
.audit-lede {
  margin-left: auto;
  margin-right: auto;
}

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

/* ── STRIPPED NAV ───────────────────────────────────────────────────────── */
.audit-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 13, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.audit-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-4);
  padding-bottom: var(--s-4);
}
.audit-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-width: 0;
}
.audit-nav__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-dark);
}
.audit-nav__cta {
  flex-shrink: 0;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-full);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.audit-nav__cta:hover {
  box-shadow: 0 6px 22px rgba(217, 119, 6, 0.32);
  transform: translateY(-1px);
}
.audit-nav__cta:active {
  transform: translateY(0);
}
.audit-nav__cta:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

/* ── STATES ─────────────────────────────────────────────────────────────── */
.audit-state {
  padding: clamp(var(--s-16), 10vw, var(--s-32)) 0;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}
.audit-state[hidden] { display: none !important; }

/* Results state keeps its row layout (sections side-by-side). The dark
   overlay + blur lives on this container so it spans the entire results
   region uniformly — gaps between/around sections still read as dark. */
/* Results state uses grid for predictable layout: full-width banners span
   all columns, the score/findings/gate row shares 3 columns equally. */
.audit-state--results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  padding: 0;
  min-height: 0;
  background: rgba(15, 13, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 3;
}
/* Banners span the full row */
.audit-state--results > .audit-direct,
.audit-state--results > .audit-full,
.audit-state--results > .audit-cta {
  grid-column: 1 / -1;
}
/* Score / Findings / Gate naturally take one column each */
.audit-state--results > .audit-score,
.audit-state--results > .audit-findings,
.audit-state--results > .audit-gate {
  min-width: 0;
}
/* Inner sections become transparent panels; container handles the dark.
   Higher specificity beats `.audit-body .section--ink` baseline. */
.audit-body .audit-state--results .section--ink {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: auto;
}

/* Capture state has just one section over the aurora — keep its overlay
   light so the background can breathe. Heavier blur is reserved for the
   results state where there's a lot of content to keep legible. */
.audit-body .audit-state--capture.section--ink {
  background: rgba(15, 13, 11, 0.40);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.audit-lede {
  margin-top: var(--s-6);
  max-width: 60ch;
}
.section--ink .audit-lede { color: rgba(251, 246, 235, 0.78); }

/* ── CAPTURE STATE ──────────────────────────────────────────────────────── */
/* Drop the ::before horizontal-line accent on EVERY eyebrow — Will reads
   it as an em-dash and Quality Gate is zero-tolerance on those. */
.audit-body .eyebrow::before { display: none; }
.audit-body .eyebrow { gap: 0; }

.audit-state--capture .display {
  margin: var(--s-6) auto 0;
  max-width: 18ch;
}

.audit-form {
  margin: var(--s-10) auto 0;
  max-width: 720px;
  text-align: left;
}
.audit-form__row {
  display: flex;
  align-items: stretch;
  gap: var(--s-2);
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  padding: 6px;
  flex-wrap: wrap;
  transition: border-color var(--dur) var(--ease);
}
.audit-form__row:focus-within {
  border-color: var(--amber);
}

/* Wraps protocol prefix + input together so they read as a single field
   regardless of which way the row stacks (desktop horizontal vs mobile
   vertical above the button). */
.audit-form__field {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.section--cream .audit-form__row {
  background: var(--cream);
  border-color: var(--cream-line);
}
.audit-form__protocol {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--s-3) 0 var(--s-4);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--mute-dark);
  user-select: none;
}
.audit-form__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  padding: var(--s-3) var(--s-2);
  min-height: 48px;
}
.audit-form__input::placeholder { color: var(--mute-dark); }
.section--cream .audit-form__input { color: var(--ink); }
.section--cream .audit-form__input::placeholder { color: var(--mute-light); }

.audit-form__submit {
  flex-shrink: 0;
  border-radius: var(--r-md);
  padding: 12px 22px;
  min-height: 48px;
}
.audit-form__submit[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.audit-form__note {
  margin-top: var(--s-3);
  color: var(--mute-dark);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 12px;
}
.audit-form__error {
  margin-top: var(--s-3);
  font-family: var(--mono);
  font-size: 13px;
  color: #ef6b4a;
  letter-spacing: 0.02em;
}

/* Keyboard-only focus ring on form inputs (WCAG 2.4.7 Focus Visible).
   The earlier `outline: 0` rules strip the focus ring for all states; this
   adds it back specifically for keyboard navigation via :focus-visible so
   mouse-click focus stays clean while keyboard users can see where they are. */
.audit-form__input:focus-visible,
.audit-form--gate .audit-form__input:focus-visible {
  outline: 2px solid var(--amber-soft, #d97706);
  outline-offset: 2px;
  border-radius: 2px;
}
.audit-form__sms input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--amber-soft, #d97706);
  outline-offset: 2px;
}
.audit-form__submit:focus-visible {
  outline: 2px solid var(--cream, #fbf6eb);
  outline-offset: 3px;
}

/* Junk-folder hint, revealed after submit success.
   Amber alert-box treatment so it stands out from the gray fine-print notes. */
.audit-form__note--junk {
  margin-top: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-left: 3px solid var(--amber-soft);
  border-radius: 4px;
  color: var(--cream);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-transform: none;
  position: relative;
  padding-left: 44px;
  animation: junkHintReveal 320ms ease-out;
}
.audit-form__note--junk::before {
  content: "📬";
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  font-size: 18px;
  line-height: 1;
}
.audit-form__note--junk strong {
  color: var(--amber-soft);
  font-weight: 600;
}
@keyframes junkHintReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gate form always stacks vertically — its column is narrow (1/3 of the
   results grid on desktop) so name + email + button side-by-side never
   fits. Same stacked treatment as mobile, applied at every breakpoint. */
.audit-form--gate .audit-form__row {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
}
.audit-form--gate .audit-form__input {
  width: 100%;
  flex: 0 0 auto;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  min-height: 52px;
  font-size: 15px;
  color: var(--cream);
}
.audit-form--gate .audit-form__input::placeholder { color: var(--mute-dark); }
.audit-form--gate .audit-form__input:focus {
  border-color: var(--amber);
  outline: none;
}
.audit-form--gate .audit-form__submit {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  font-size: 14px;
  border-radius: var(--r-sm);
}

/* SMS opt-in checkbox row inside the gate form */
.audit-form__sms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 4px 4px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(251, 246, 235, 0.78);
}
.audit-form__sms input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  cursor: pointer;
}
.audit-form__sms span { flex: 1; }

.audit-form__note--sms {
  margin-top: var(--s-2);
  opacity: 0.7;
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: none;
}

/* ── TRUST STRIP ────────────────────────────────────────────────────────── */
.audit-trust {
  margin: var(--s-12) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-6);
  padding-top: var(--s-8);
  border-top: 1px solid var(--ink-line);
  max-width: 720px;
  text-align: center;
}
.audit-trust__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--amber);
  line-height: 1;
  white-space: nowrap;
}
.audit-trust__label {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute-dark);
}

/* ── RUNNING STATE: TERMINAL ────────────────────────────────────────────── */
.audit-terminal {
  margin: var(--s-10) auto 0;
  background: #0a0908;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  overflow: hidden;
  max-width: 880px;
  font-family: var(--mono);
  text-align: left;
}
.audit-terminal__head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: var(--ink-soft);
  border-bottom: 1px solid var(--ink-line);
}
.audit-terminal__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4a4640;
}
.audit-terminal__title {
  margin-left: var(--s-3);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mute-dark);
  text-transform: uppercase;
}
.audit-terminal__log {
  list-style: none;
  margin: 0;
  padding: var(--s-6) var(--s-6);
  min-height: 280px;
  max-height: 460px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.8;
  color: var(--cream);
}
.audit-terminal__log li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: var(--s-3);
  align-items: baseline;
  opacity: 0;
  transform: translateY(4px);
  animation: log-in 240ms var(--ease-out) forwards;
}
@keyframes log-in {
  to { opacity: 1; transform: translateY(0); }
}
.audit-terminal__log li .tag {
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.audit-terminal__log li .msg {
  color: rgba(251, 246, 235, 0.85);
}
.audit-terminal__log li.is-pending .msg::after {
  content: "...";
  color: var(--mute-dark);
}
.audit-terminal__log li.is-pass .status { color: #6bd394; }
.audit-terminal__log li.is-warn .status { color: var(--amber-soft); }
.audit-terminal__log li.is-fail .status { color: #ef6b4a; }
.audit-terminal__log li .status {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.audit-progress {
  height: 3px;
  background: var(--ink-line);
  position: relative;
}
.audit-progress__bar {
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--amber);
  transition: right 320ms var(--ease-out);
}

/* ── RESULTS: SCORE ─────────────────────────────────────────────────────── */
.audit-score { padding: clamp(var(--s-16), 10vw, var(--s-32)) 0; }
.audit-score__grid {
  margin: var(--s-10) auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--s-8), 5vw, var(--s-12));
  align-items: center;
  justify-items: center;
  max-width: 720px;
}
.audit-score__circle {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
}
.audit-score__circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.audit-score__track {
  fill: none;
  stroke: var(--ink-line);
  stroke-width: 8;
}
.audit-score__fill {
  fill: none;
  stroke: var(--amber);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1.2s var(--ease-out), stroke 320ms var(--ease);
}
.audit-score__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 88px);
  color: var(--cream);
  letter-spacing: -0.02em;
}
.audit-score__denom {
  font-size: 0.4em;
  color: var(--mute-dark);
  margin-left: 6px;
}
.audit-score__url {
  margin-top: var(--s-4);
  word-break: break-all;
}

/* Score color states applied via JS to .audit-score__circle */
.audit-score__circle.is-good .audit-score__fill { stroke: #6bd394; }
.audit-score__circle.is-mid  .audit-score__fill { stroke: var(--amber-soft); }
.audit-score__circle.is-poor .audit-score__fill { stroke: #ef6b4a; }

/* ── FINDINGS ───────────────────────────────────────────────────────────── */
/* Dark-on-ink card list, matching the rest of the results theme. */
.audit-findings { padding: clamp(var(--s-16), 10vw, var(--s-32)) 0; }
.audit-findings__list {
  margin: var(--s-10) auto 0;
  display: grid;
  gap: var(--s-4);
  max-width: 760px;
  text-align: left;
}
.audit-findings__list li {
  list-style: none;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--ink-line);
  background: var(--ink-soft);
  border-radius: var(--r-md);
}
.audit-findings__rank {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  color: var(--amber);
}
.audit-findings__body h4 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--cream);
}
.audit-findings__body p {
  color: rgba(251, 246, 235, 0.72);
  font-size: 15px;
}
.audit-findings__cost {
  display: inline-block;
  margin-top: var(--s-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid currentColor;
  padding: 4px 10px;
  border-radius: var(--r-sm);
}

/* ── EMAIL GATE ─────────────────────────────────────────────────────────── */
.audit-gate { padding: clamp(var(--s-16), 10vw, var(--s-32)) 0; }

/* ── DIRECT CONTACT CTA — full-width banner at top of results ──────────── */
.audit-direct {
  padding: clamp(var(--s-14), 7vw, var(--s-20)) 0;
  border-bottom: 1px solid var(--ink-line);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.06) 0%, transparent 100%);
}
.audit-direct__btn {
  margin-top: var(--s-8);
  font-size: 16px;
  padding: 18px 32px;
}

/* ── FULL RESULTS ───────────────────────────────────────────────────────── */
/* Tight top padding so the breakdown sits visually close to the email gate.
   When users submit the form they need to clearly perceive that new content
   has appeared; large deadspace makes the reveal feel disconnected. Bottom
   padding stays generous so the CTA section below has breathing room. */
.audit-full {
  padding: var(--s-3) 0 clamp(var(--s-12), 8vw, var(--s-20));
  scroll-margin-top: var(--s-4); /* offset for smooth-scroll target */
}
.audit-full .eyebrow {
  margin-top: 0;
  margin-bottom: 0;
}
.audit-full .heading-lg {
  margin-top: var(--s-1);
  margin-bottom: 0;
}
.audit-full .audit-checks-summary {
  margin-top: var(--s-5);
}

/* One-time pulse highlight when results unlock — visual cue that new
   content has appeared. Triggered by .is-revealing class added by JS. */
.audit-full.is-revealing {
  animation: auditFullReveal 1200ms ease-out;
}
@keyframes auditFullReveal {
  0%   { box-shadow: inset 0 0 0 0 rgba(217, 119, 6, 0); }
  20%  { box-shadow: inset 0 4px 0 0 rgba(217, 119, 6, 0.55); }
  100% { box-shadow: inset 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* Summary pills strip (pass/warn/fail counters) */
.audit-checks-summary {
  margin: var(--s-8) auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  max-width: 720px;
}
.audit-checks-summary__pill {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  background: rgba(251, 246, 235, 0.03);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 246, 235, 0.7);
}
.audit-checks-summary__count {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.01em;
  font-weight: 400;
  line-height: 1;
}
.audit-checks-summary__label {
  font-weight: 500;
}
.audit-checks-summary__pill--pass {
  border-color: rgba(107, 211, 148, 0.4);
  background: rgba(107, 211, 148, 0.06);
}
.audit-checks-summary__pill--pass .audit-checks-summary__count { color: #6bd394; }
.audit-checks-summary__pill--warn {
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(217, 119, 6, 0.06);
}
.audit-checks-summary__pill--warn .audit-checks-summary__count { color: var(--amber-soft); }
.audit-checks-summary__pill--fail {
  border-color: rgba(239, 107, 74, 0.4);
  background: rgba(239, 107, 74, 0.06);
}
.audit-checks-summary__pill--fail .audit-checks-summary__count { color: #ef6b4a; }

/* Category grid: 4 columns side-by-side on desktop */
.audit-checks {
  margin: var(--s-6) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(var(--s-3), 1.5vw, var(--s-5));
  max-width: 1280px;
  text-align: left;
}
/* Tablet: 2 columns when 4 gets cramped (≤ 900px viewport) */
@media (max-width: 900px) and (min-width: 601px) {
  .audit-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.audit-checks__group {
  background: rgba(251, 246, 235, 0.02);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  padding: var(--s-4);
  min-width: 0; /* allow grid cells to shrink so 4 cols fit */
}
.audit-checks__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--ink-line);
}
.audit-checks__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-soft);
  background: rgba(217, 119, 6, 0.1);
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 600;
}
.audit-checks__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0;
}

/* Check rows */
.audit-checks__list {
  display: grid;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.audit-checks__row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: rgba(251, 246, 235, 0.85);
  border-left: 2px solid transparent;
  transition: background 120ms ease;
}
.audit-checks__row:hover { background: rgba(251, 246, 235, 0.04); }
.audit-checks__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #0f0d0b;
  flex-shrink: 0;
}
.audit-checks__label {
  font-weight: 500;
  line-height: 1.35;
}
.audit-checks__value {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(251, 246, 235, 0.55);
  white-space: nowrap;
  margin-left: var(--s-2);
}
.audit-checks__row.is-pass {
  border-left-color: rgba(107, 211, 148, 0.5);
}
.audit-checks__row.is-pass .audit-checks__badge {
  background: #6bd394;
}
.audit-checks__row.is-warn {
  border-left-color: rgba(217, 119, 6, 0.5);
}
.audit-checks__row.is-warn .audit-checks__badge {
  background: var(--amber-soft);
}
.audit-checks__row.is-fail {
  border-left-color: rgba(239, 107, 74, 0.5);
  background: rgba(239, 107, 74, 0.04);
}
.audit-checks__row.is-fail .audit-checks__badge {
  background: #ef6b4a;
}
.audit-checks__empty {
  list-style: none;
  padding: 12px;
  font-size: 13px;
  color: var(--mute-dark);
  font-style: italic;
}

/* ── CTA + BONUS STACK ──────────────────────────────────────────────────── */
.audit-cta { padding: clamp(var(--s-16), 10vw, var(--s-32)) 0; }

/* CTA-on-top variant: the booking button + guarantee line move ABOVE the
   bonus cards (decision lever first, value justification underneath). */
.audit-cta__action--top {
  margin-top: var(--s-6);
  margin-bottom: var(--s-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.audit-cta__action--top + .audit-bonus {
  margin-top: var(--s-8);
}

.audit-bonus {
  margin: var(--s-10) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-4);
  max-width: 1000px;
  text-align: left;
}
.audit-bonus__item {
  list-style: none;
  padding: var(--s-6);
  border: 1px solid var(--ink-line);
  background: var(--ink-soft);
  border-radius: var(--r-md);
}
.audit-bonus__title {
  margin-top: var(--s-3);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  color: var(--cream);
}
.audit-bonus__desc {
  margin-top: var(--s-2);
  color: rgba(251, 246, 235, 0.7);
  font-size: 14px;
}

.audit-cta__action {
  margin: var(--s-12) auto 0;
  display: grid;
  gap: var(--s-3);
  justify-items: center;
  max-width: 720px;
}
.audit-cta__btn { font-size: 16px; padding: 18px 28px; }
.audit-cta__guarantee {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
  max-width: 56ch;
  color: var(--mute-dark);
  text-align: center;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.audit-footer { padding: var(--s-8) 0; border-top: 1px solid var(--ink-line); }
.audit-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.audit-footer a { color: inherit; text-decoration: underline; text-decoration-color: var(--mute-dark); }
.audit-footer a:hover { color: var(--amber); text-decoration-color: var(--amber); }

/* ── REDUCED MOTION ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .audit-terminal__log li { animation-duration: 1ms; }
  .audit-score__fill { transition-duration: 1ms; }
}

/* ── MOBILE HERO INPUT + TRUST STRIP ───────────────────────────────────── */
/* Stack URL field above the submit button. Both touch-friendly heights.
   Input font-size 16px prevents iOS zoom on focus. Trust strip keeps the
   first two items side-by-side; third spans the row + centers under them. */
@media (max-width: 600px) {
  /* Drop the 100vh min-height so the section sizes to its content + a
     reasonable padding rather than leaving dead air at the bottom. */
  .audit-state--capture {
    min-height: 0;
    padding-top: var(--s-12);
    padding-bottom: var(--s-10);
  }
  .audit-form { margin-top: var(--s-8); }
  .audit-trust {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5) var(--s-4);
    margin-top: var(--s-10);
    padding-top: var(--s-6);
  }
  .audit-trust__item:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 50%;
    margin-top: var(--s-8);
  }

  /* ── Results state: stack sections vertically on mobile, tight spacing ─ */
  .audit-state--results {
    grid-template-columns: 1fr;       /* one column = stacked */
    min-height: 0;
  }
  /* Mobile order = DOM order: direct → score → findings → gate → full → cta */
  .audit-score, .audit-findings, .audit-gate, .audit-direct, .audit-full, .audit-cta {
    width: 100%;
    padding-top: var(--s-8);          /* tightened from s-10, breathes a touch more than s-7 */
    padding-bottom: var(--s-8);
  }
  /* Trim inner content top margins so headings sit closer to eyebrows */
  .audit-score__grid     { margin-top: var(--s-6); }
  .audit-findings__list  { margin-top: var(--s-6); }
  .audit-direct__btn     { margin-top: var(--s-5); width: 100%; justify-content: center; }
  .audit-form--gate      { margin-top: var(--s-6); }   /* tiny bit more breathing room above gate form */
  .audit-bonus           { margin-top: var(--s-6); }
  .audit-cta__action     { margin-top: var(--s-6); }
  .audit-checks          { margin-top: var(--s-6); }
  .audit-lede            { margin-top: var(--s-3); }

  /* Hairline divider between every results section on mobile so the stacked
     panels read as distinct cards instead of one continuous flow. */
  .audit-state--results > * {
    border-bottom: 1px solid var(--ink-line);
  }
  .audit-state--results > .audit-cta {
    border-bottom: none;
  }
  .audit-nav__cta {
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
  }
  .audit-nav__meta { display: none; }
  /* No bottom padding on the last visible section before footer */
  .audit-state--results > :last-child:not([hidden]) {
    padding-bottom: var(--s-4);
  }

  /* Score: circle on top, label below, both centered */
  .audit-score__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--s-6);
  }
  .audit-score__circle { max-width: 180px; }
  .audit-score__num    { font-size: clamp(48px, 14vw, 72px); }
  .audit-score__url    { word-break: break-word; }

  /* Findings cards: tighter rank gutter, smaller padding */
  .audit-findings__list { padding: 0 var(--s-2); }
  .audit-findings__list li {
    grid-template-columns: 36px 1fr;
    padding: var(--s-4);
    gap: var(--s-3);
  }
  .audit-findings__rank { font-size: 28px; }
  .audit-findings__body h4 { font-size: 16px; }
  .audit-findings__body p  { font-size: 14px; }

  /* Email gate form: name + email inputs become full-width stacked fields
     with their own border + dark inner background (the hero protocol-field
     wrapper doesn't apply here because gate inputs are bare). */
  .audit-form--gate .audit-form__row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }
  .audit-form--gate .audit-form__input {
    width: 100%;
    flex: 0 0 auto;
    background: var(--ink);
    border: 1px solid var(--ink-line);
    border-radius: var(--r-sm);
    padding: var(--s-3) var(--s-4);
    min-height: 56px;
    font-size: 16px;
  }
  .audit-form--gate .audit-form__input:focus {
    border-color: var(--amber);
    outline: none;
  }
  .audit-form--gate .audit-form__submit {
    width: 100%;
    min-height: 56px;
    justify-content: center;
    font-size: 15px;
    padding: 16px 22px;
    border-radius: var(--r-sm);
  }
  .audit-form--gate .audit-form__note {
    text-align: center;
    margin-top: var(--s-4);
  }

  /* Full results check grid: stack columns */
  .audit-checks {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .audit-checks__group { padding: var(--s-4); }
  .audit-checks-summary {
    gap: var(--s-2);
    margin-top: var(--s-6);
  }
  .audit-checks-summary__pill { padding: 8px 14px; }
  .audit-checks-summary__count { font-size: 24px; }
  .audit-checks__row {
    grid-template-columns: 22px 1fr;
    padding: 10px;
  }
  .audit-checks__value {
    grid-column: 2;
    margin-left: 0;
    margin-top: 4px;
  }

  /* Bonus stack + CTA */
  .audit-bonus { grid-template-columns: 1fr; }
  .audit-cta__action { width: 100%; }
  .audit-cta__btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .audit-cta__guarantee {
    text-align: center;
    max-width: none;
  }
  .audit-form__row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    border-radius: var(--r-md);
  }
  .audit-form__field {
    width: 100%;
    background: var(--ink);
    border: 1px solid var(--ink-line);
    border-radius: var(--r-sm);
    padding: 0 0 0 var(--s-3);
    min-height: 56px;
  }
  .audit-form__row:focus-within .audit-form__field {
    border-color: var(--amber);
  }
  .audit-form__protocol {
    padding: 0 var(--s-2) 0 0;
    font-size: 13px;
  }
  .audit-form__input {
    flex: 1 1 auto;
    min-height: 56px;
    font-size: 16px;
    padding: var(--s-3) var(--s-3) var(--s-3) 0;
  }
  .audit-form__submit {
    width: 100%;
    min-height: 56px;
    justify-content: center;
    font-size: 15px;
    padding: 16px 22px;
    border-radius: var(--r-sm);
  }
  .audit-form__note {
    text-align: center;
    margin-top: var(--s-4);
  }
}
