/* Styles for the accessibility scanner's page and report: the hero scan box,
 * the report renderer's output (/assets/a11y-scan.js), the sample report, and
 * the ?pdf=1 print template the a11y-scan Worker prints the emailed PDF from.
 *
 * Loaded by /accessibility-scan/ and /ada-website-compliance/, which used to
 * carry two inline copies of this; the landing page's copy had already missed
 * the .vio-where rules the redacted public report needs. Page-only styles stay
 * in each page's own <style> block, after this file. */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- Hero / scan form ---------- */
.hero.scan-hero { padding-bottom: 100px; }
/* Accordion shell: once a report is on screen the scan box collapses out
   of the hero; "+ Add another page" in the pages strip reopens it. The
   0fr/1fr grid trick animates to the panel's natural height, and the glow
   lives on the clip so overflow:hidden can't cut it off. */
.scan-accordion {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s ease, opacity 0.35s ease;
}
.scan-accordion-clip {
  overflow: hidden;
  min-height: 0;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.12);
}
/* visibility only transitions on close (delayed past the height anim), so
   reopening makes the input focusable immediately */
.scan-accordion.collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.45s ease, opacity 0.35s ease, visibility 0s 0.45s;
}
.scan-accordion.no-anim { transition: none; }
.scan-panel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 30px 24px;
  background: rgba(20, 22, 40, 0.6);
  border-radius: 20px;
}
.scan-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(180deg, rgba(168, 110, 255, 0.7), rgba(255, 122, 223, 0.3), rgba(6, 147, 227, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.scan-input-row { display: flex; gap: 14px; }
.scan-input-row input {
  flex: 1;
  min-width: 0;
  padding: 16px 26px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #ffffff;
  background: rgba(4, 5, 18, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 50px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.scan-input-row input::placeholder { color: #8b8fa3; }
.scan-input-row input:focus {
  border-color: rgba(0, 212, 255, 0.8);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.25);
}
.scan-input-row .btn-cta { white-space: nowrap; }
.scan-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #8b8fa3;
  text-align: center;
}
.scan-note a { color: #00d4ff; text-decoration: underline; text-underline-offset: 3px; }
.scan-note a:hover { text-shadow: 0 0 12px rgba(0, 212, 255, 0.6); }

/* ---------- Scanning status ---------- */
.scan-status { margin-top: 24px; }
.scan-status-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.scan-status-bar span {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 4px;
  background: linear-gradient(90deg, #00d4ff, #a86eff, #ec4899);
  animation: scanSweep 1.6s ease-in-out infinite;
}
@keyframes scanSweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(380%); }
}
.scan-status p {
  margin: 14px 0 0;
  font-size: 15px;
  color: #c6c9d8;
  text-align: center;
}

/* ---------- Hero error ---------- */
.scan-error {
  margin: 24px auto 0;
  padding: 14px 22px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.6;
  color: #ffd2dc;
  background: rgba(255, 84, 112, 0.08);
  border: 1px solid rgba(255, 84, 112, 0.45);
  border-radius: 14px;
  text-align: center;
}
/* The managed Turnstile widget stays hidden (interaction-only) until
   Cloudflare demands a checkbox; this centers the box when it appears. */
#tsWidget iframe { display: block; margin: 14px auto 0; }

/* ---------- Results ---------- */
.scan-results { padding-top: 80px; }
.demo-chip {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #0b0c1a;
  background: linear-gradient(90deg, #ffd87a, #ff9e64);
  border-radius: 999px;
}
.scan-summary { text-align: center; max-width: 860px; margin: 0 auto 44px; }
.risk-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 26px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-radius: 999px;
  color: #0b0c1a;
}
.risk-badge.rb-high { background: linear-gradient(90deg, #ff5470, #ec4899); box-shadow: 0 0 26px rgba(255, 84, 112, 0.55); }
.risk-badge.rb-medium { background: linear-gradient(90deg, #ffd87a, #ff9e64); box-shadow: 0 0 26px rgba(255, 158, 100, 0.45); }
.risk-badge.rb-low { background: linear-gradient(90deg, #00d4ff, #6fe3ff); box-shadow: 0 0 26px rgba(0, 212, 255, 0.45); }
.risk-badge.rb-clean { background: linear-gradient(90deg, #34f5c5, #00d4ff); box-shadow: 0 0 26px rgba(52, 245, 197, 0.45); }
.scan-summary h2 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 14px;
}
.scan-summary h2 .sum-host { display: block; color: #00d4ff; overflow-wrap: anywhere; }
.scan-meta {
  font-size: 13.5px;
  color: #8b8fa3;
  margin: 0;
  word-break: break-word;
}
.scan-meta a { color: #8b8fa3; text-decoration: underline; }
.scan-partial-note {
  margin: 14px auto 0;
  max-width: 640px;
  font-size: 13.5px;
  color: #ffd87a;
}
.cache-note {
  margin: 18px auto 0;
  max-width: 680px;
  padding: 12px 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #ffd87a;
  background: rgba(255, 216, 122, 0.07);
  border: 1px solid rgba(255, 216, 122, 0.35);
  border-radius: 12px;
}
.cache-note .cache-exact { color: #8b8fa3; }
.btn-rescan {
  display: inline-block;
  margin-left: 10px;
  padding: 6px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #00d4ff;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.55);
  border-radius: 999px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.btn-rescan:hover {
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.35);
}

.sev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto 50px;
}
.sev-tile {
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-top: 3px solid var(--sev);
  border-radius: 12px;
  padding: 18px 20px 16px;
  text-align: center;
}
.sev-tile .sev-num {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--sev);
}
.sev-tile .sev-label {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.sev-tile .sev-desc {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #8b8fa3;
}

/* ---- "beyond the page source": the dynamic passes ---- */
.probe-strip {
  max-width: 980px;
  margin: -22px auto 44px;
  padding: 22px 24px 20px;
  background: rgba(30, 30, 40, 0.55);
  border: 1px solid rgba(255, 216, 122, 0.18);
  border-radius: 14px;
}
.probe-strip .pr-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.probe-strip .pr-sub {
  margin: 4px 0 14px;
  font-size: 13px;
  color: #8b8fa3;
}
.probe-strip .pr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pr-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #c9cdde;
  background: rgba(20, 20, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pr-chip b { font-size: 13px; }
.pr-chip .pr-name { white-space: nowrap; } /* the pass name never breaks mid-phrase */
.pr-chip i {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: #8b8fa3;
}
.pr-chip.pr-ok b { color: #34f5c5; }
.pr-chip.pr-skip { opacity: 0.62; }
.pr-chip.pr-skip b { color: #8b8fa3; }
.pr-chip.pr-fail b { color: #ff9e64; }
.probe-strip .pr-note {
  margin: 13px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #c6c9d8;
}
.probe-strip .pr-note strong { color: #ffd87a; }

/* ---- accessibility overlay callout ----
   Amber rather than red: the overlay is a fact about the page and a thing
   worth knowing, not a failure in its own right. The failures are counted
   below on their own merits. */
.overlay-box {
  max-width: 980px;
  margin: 0 auto 22px;
  padding: 20px 22px 18px;
  background: rgba(255, 158, 100, 0.07);
  border: 1px solid rgba(255, 158, 100, 0.30);
  border-radius: 14px;
}
.overlay-box h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}
.overlay-box p { margin: 0 0 10px; color: #c6c9d8; font-size: 15px; line-height: 1.6; }
.overlay-box p:last-child { margin-bottom: 0; }
.overlay-box .ov-vendor { color: #ff9e64; font-weight: 700; }
.overlay-box .ov-note { font-size: 14px; color: #a6aabb; }
/* Body-copy links need more than colour — 1.07:1 against this text is an
   axe link-in-text-block failure, and this page is scanned by its own tool. */
.overlay-box a { color: #ff9e64; text-decoration: underline; }

/* ---- compliance framing ---- */
.compliance-box {
  max-width: 980px;
  margin: 0 auto 46px;
  padding: 26px 24px 22px;
  background: rgba(30, 30, 40, 0.55);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 14px;
}
.compliance-box .cmp-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px;
}
.cmp-band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--x);
  background: color-mix(in srgb, var(--x) 12%, transparent);
  margin-bottom: 20px;
}
.cmp-band-label { font-weight: 700; color: var(--x); font-size: 15px; }
.cmp-band-text { font-size: 13.5px; color: #c6c9d8; }
.cmp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cmp-card {
  background: rgba(20, 20, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 18px 18px 16px;
}
.cmp-card h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}
.cmp-card p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: #c6c9d8; }
.cmp-card p a { color: #00d4ff; text-decoration: underline; word-break: break-all; }
.cmp-num {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: #ff9e64;
  margin: 0;
}
.cmp-num-clean { color: #34f5c5; }
.cmp-num-bad { color: #ff5470; }
.cmp-num-unknown { color: #8b8fa3; }
.cmp-num-label {
  margin: 5px 0 12px !important;
  font-size: 12.5px;
  color: #8b8fa3 !important;
}
.cmp-scs { display: flex; flex-wrap: wrap; gap: 5px; }
.cmp-scs code {
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.16);
  color: #c9a5f7;
}
.cmp-foot { font-size: 12.5px !important; color: #8b8fa3 !important; }
.cmp-list { list-style: none; margin: 0; padding: 0; }
.cmp-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #c6c9d8;
}
.cmp-list li:last-child { border-bottom: 0; }
.cmp-list li em { font-style: normal; color: #8b8fa3; white-space: nowrap; }
.cmp-disclaimer {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: #8b8fa3;
}

.scan-violations { max-width: 980px; margin: 0 auto; }
.vio-group-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 34px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vio-group-title::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sev);
  box-shadow: 0 0 12px var(--sev);
}
details.vio {
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
details.vio:hover, details.vio[open] { border-color: rgba(168, 110, 255, 0.45); }
details.vio summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}
details.vio summary::-webkit-details-marker { display: none; }
.vio-chip {
  flex: 0 0 auto;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 999px;
  color: #0b0c1a;
  background: var(--sev);
}
.vio-title { flex: 1; font-size: 15.5px; font-weight: 600; color: #ffffff; line-height: 1.4; }
.vio-count { flex: 0 0 auto; font-size: 13px; color: #8b8fa3; }
.vio-chev { flex: 0 0 auto; width: 18px; height: 18px; color: #8b8fa3; transition: transform 0.25s ease; }
details.vio[open] .vio-chev { transform: rotate(180deg); }
.vio-body { padding: 2px 20px 20px; border-top: 1px solid rgba(168, 85, 247, 0.12); }
.vio-body p { font-size: 14.5px; line-height: 1.65; color: #c6c9d8; margin: 14px 0 0; }
.vio-body p strong { color: #ffffff; }
.vio-nodes { margin-top: 14px; display: grid; gap: 10px; }
.vio-node {
  background: rgba(4, 5, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
}
.vio-node .vio-selector {
  display: block;
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: #00d4ff;
  word-break: break-all;
  margin-bottom: 6px;
}
.vio-node pre {
  margin: 0;
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #b6b9c5;
  white-space: pre-wrap;
  word-break: break-all;
}
.vio-more { font-size: 13px; color: #8b8fa3; margin-top: 10px; }
.vio-fix {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #00d4ff;
}
.vio-fix:hover { text-shadow: 0 0 12px rgba(0, 212, 255, 0.6); }

.scan-passes {
  max-width: 980px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 14.5px;
  color: #8b8fa3;
}
.scan-passes strong { color: #34f5c5; font-weight: 700; }

/* "What else we check": the other eight scans, under every report and in
   the emailed PDF. The words and the count live in OTHER_SCANS and
   OTHER_CHECKS_FLOOR in a11y-scan.js. */
.os-teaser {
  max-width: 980px;
  margin: 40px auto 0;
  padding: 26px 24px 22px;
  background: rgba(30, 30, 40, 0.55);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 14px;
}
.os-teaser .ost-title { font-size: 18px; font-weight: 700; color: #ffffff; margin: 0 0 6px; }
.os-teaser .ost-lead { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: #c6c9d8; }
.os-teaser .ost-lead strong { color: #34f5c5; font-weight: 700; }
.os-teaser ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}
.os-teaser li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.55; color: #a6aabb; }
.os-teaser li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4ff;
}
.os-teaser li strong { display: block; margin-bottom: 2px; color: #ffffff; font-size: 14px; font-weight: 600; }
.os-teaser .ost-try { margin: 18px 0 0; font-size: 13.5px; line-height: 1.6; color: #a6aabb; }
.os-teaser .ost-try a { color: #00d4ff; text-decoration: underline; }
@media (max-width: 768px) {
  .os-teaser ul { grid-template-columns: 1fr; }
}

/* Testimonials under the on-screen report, on pages that don't show them
   elsewhere (the scanner page). The cards are the founder block's. */
.report-quotes { max-width: 980px; margin: 40px auto 0; }
.report-quotes .rq-title { font-size: 18px; font-weight: 700; color: #ffffff; margin: 0 0 16px; }
.report-quotes .lp-quotes { max-width: none; }

/* ---------- founder, testimonials and client roster ----------
   Rendered by whoHtml() in a11y-scan.js: on the ADA landing page's
   #whoSection, and in the emailed PDF after the "nine scans" box. Moved here
   from the landing page's own <style> so the scanner page, which prints the
   PDF, has them too. */
/* Founder */
.lp-founder {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 56px;
}
.lp-founder-img { width: 100%; border-radius: 18px; border: 1px solid rgba(168, 85, 247, 0.3); }
.lp-founder-text h2 { font-size: 34px; line-height: 1.15; margin: 0 0 16px; }
.lp-founder-text p { font-size: 16px; line-height: 1.75; color: #d6d8e0; margin: 0 0 14px; }

/* Testimonials */
.lp-quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.lp-quote {
  padding: 28px 26px 22px;
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 14px;
}
.lp-quote blockquote { margin: 0 0 18px; font-size: 15.5px; line-height: 1.75; color: #d6d8e0; }
.lp-quote-meta { display: flex; align-items: center; gap: 14px; }
.lp-quote-meta img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 52px; }
.lp-quote-name { font-size: 15px; font-weight: 700; color: #ffffff; }
.lp-quote-job { font-size: 13px; color: #8b8fa3; line-height: 1.4; }

/* Client roster, the same list and look as /josh-marcy/'s .roster */
.lp-roster { max-width: 1060px; margin: 64px auto 0; text-align: center; }
.lp-roster h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.7;
  color: #c6c9d8;
  margin: 0 0 18px;
}
.lp-roster p { font-size: 14px; color: #8b8fa3; max-width: 640px; margin: -6px auto 20px; }
.lp-roster ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.lp-roster li {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #a9adc2;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
@media (max-width: 1024px) {
  .lp-founder { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .lp-founder-img { max-width: 220px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .lp-quotes { grid-template-columns: 1fr; }
  .lp-founder-text h2 { font-size: 27px; }
}

/* ---------- engine badges, filter & review (multi-engine reports) ---------- */
.engine-line {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #8b8fa3;
}
.engine-line .eng-name { color: #c9cdde; font-weight: 600; }
.engine-line .eng-fail { color: #ff9e64; }
.vio-eng {
  display: inline-flex;
  gap: 4px;
  margin-left: 10px;
  flex: none;
}
.vio-eng span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--ec, #00d4ff);
  border: 1px solid currentColor;
  opacity: 0.85;
}
.engine-filter {
  max-width: 980px;
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.engine-filter button {
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  color: #c9cdde;
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  padding: 7px 16px;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.engine-filter button[aria-pressed="true"] {
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.7);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
}
.engine-filter button:hover { border-color: rgba(0, 212, 255, 0.5); }
.vio-cross {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 2px solid rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.06);
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
}
.vio-cross p { margin: 0 0 6px; }
.vio-cross p:last-child { margin-bottom: 0; }
.vio-cross .vc-eng { font-weight: 700; color: #c9cdde; }
.vio-node-eng {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #a855f7;
}
/* State/width a finding was only reachable in — see nodeCard() */
.vio-node-ctx {
  display: inline-block;
  margin: 6px 10px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #ffd87a;
}
/* Where a finding lives is the part the free report withholds — see
   whereBlock(). Muted, not alarming: it's a boundary, not a defect. */
.vio-where {
  margin-top: 14px;
  background: rgba(4, 5, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #8b8fa3;
}
.vio-where .vw-states { display: block; margin-bottom: 6px; color: #ffd87a; font-size: 11px; font-weight: 600; }
.vio-where strong { color: #c6c9d8; font-weight: 600; }
.scan-review { max-width: 980px; margin: 26px auto 0; }
.scan-review > details {
  background: rgba(30, 30, 40, 0.55);
  border: 1px solid rgba(139, 143, 163, 0.25);
  border-radius: 14px;
  padding: 4px 18px;
}
.scan-review > details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-weight: 600;
  color: #c9cdde;
}
.scan-review > details > summary::-webkit-details-marker { display: none; }
.scan-review .rev-hint { font-weight: 400; font-size: 13px; color: #8b8fa3; }
.scan-review .vio { --sev: #8b8fa3; }

/* ---------- Pages strip (combined site report) ---------- */
.pages-strip {
  max-width: 980px;
  margin: 0 auto 40px;
  text-align: center;
}
.pages-strip .ps-label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8b8fa3;
}
.ps-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ps-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 13.5px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
a.ps-chip:hover {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.2);
}
.ps-grade {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: var(--g, #00d4ff);
}
.ps-path {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-issues { font-size: 12.5px; color: #8b8fa3; white-space: nowrap; }
button.ps-chip.ps-add {
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #00d4ff;
  background: transparent;
  border: 1px dashed rgba(0, 212, 255, 0.55);
}
button.ps-chip.ps-add:hover {
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
}
.ps-hint {
  margin: 14px auto 0;
  max-width: 640px;
  font-size: 13px;
  line-height: 1.6;
  color: #8b8fa3;
}

/* page subheading inside a combined violation */
.vio-body p.vio-page {
  margin: 18px 0 0;
  font-size: 13px;
  color: #8b8fa3;
}
.vio-page code {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  color: #00d4ff;
  word-break: break-all;
}
.vio-page + .vio-nodes { margin-top: 8px; }

/* ---------- Grade disc ---------- */
.grade-disc {
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(20, 22, 40, 0.7);
  border: 3px solid var(--g, #00d4ff);
}
.grade-disc .grade-letter {
  font-family: 'Poppins', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--g, #00d4ff);
}
.grade-disc .grade-label {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8b8fa3;
}

/* ---------- Email capture ---------- */
.email-capture {
  position: relative;
  max-width: 660px;
  margin: 50px auto 0;
  padding: 28px 28px 22px;
  background: rgba(20, 22, 40, 0.6);
  border-radius: 18px;
  text-align: center;
}
.email-capture::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1.5px;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.55), rgba(168, 110, 255, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.email-capture h3 { font-size: 22px; margin: 0 0 6px; }
.email-capture .ec-sub { font-size: 14.5px; color: #c6c9d8; margin: 0 0 18px; }
.ec-fix-cta { margin: 22px auto 0; text-align: center; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.email-msg { margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.email-msg.ok { color: #34f5c5; }
.email-msg.warn { color: #ffd87a; }
.email-msg.err { color: #ff8aa0; }
.email-privacy { margin: 12px 0 0; font-size: 12.5px; color: #8b8fa3; }

/* ---------- Guarantee ---------- */
.guarantee-box {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 46px 42px 40px;
  background: rgba(20, 22, 40, 0.6);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.12);
}
.guarantee-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.6), rgba(168, 110, 255, 0.45), rgba(236, 72, 153, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.g-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00d4ff, #b98aff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.guarantee-box h2 { font-size: 36px; line-height: 1.2; margin: 0 0 30px; }
.g-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  text-align: left;
}
.g-pillar {
  background: rgba(4, 5, 18, 0.55);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 14px;
  padding: 22px;
}
.g-pillar h3 { font-size: 17px; margin: 0 0 8px; color: #ffffff; }
.g-pillar p { font-size: 14px; line-height: 1.65; color: #c6c9d8; margin: 0; }
.g-offer {
  grid-column: 1 / -1;
  border-color: rgba(0, 212, 255, 0.35);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.08), rgba(168, 110, 255, 0.08));
}
.g-fineprint {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8b8fa3;
}
@media (max-width: 900px) {
  .g-pillars { grid-template-columns: 1fr; }
  .guarantee-box { padding: 32px 22px 28px; }
  .guarantee-box h2 { font-size: 28px; }
}
.scan-clean {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: #c6c9d8;
}

/* ---------- Disclaimer ---------- */
/* p.scan-disclaimer so it outranks .cta-banner p from app.css */
p.scan-disclaimer {
  max-width: 760px;
  margin: 26px auto 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78); /* ~7:1+ even on the lightest photo patches */
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sev-grid { grid-template-columns: repeat(2, 1fr); }
  .cmp-grid { grid-template-columns: 1fr 1fr; }
  .scan-summary h2 { font-size: 34px; }
}
@media (max-width: 768px) {
  .scan-hero h1 br { display: none; } /* let the headline wrap naturally on small screens */
  .hero.scan-hero h1 { font-size: 34px; }
  .g-kicker { font-size: 11px; letter-spacing: 1.8px; line-height: 1.6; }
  .scan-panel { padding: 22px 18px 18px; }
  .scan-input-row { flex-direction: column; }
  .scan-input-row .btn-cta { max-width: none; }
  .scan-summary h2 { font-size: 21px; }
  .scan-summary h2 br { display: none; } /* let the headline wrap naturally on small screens */
  .sev-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sev-tile .sev-num { font-size: 32px; }
  .cmp-grid { grid-template-columns: 1fr; }
  .probe-strip, .compliance-box { padding: 18px 16px 16px; }
  details.vio summary { flex-wrap: wrap; gap: 10px; }
  .vio-title { flex-basis: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-status-bar span { animation: none; width: 100%; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .scan-accordion, .scan-accordion.collapsed { transition: none; }
}

/* ---------- PDF print template (?pdf=1) ----------
   The report-email Worker renders this page headless, injects the scan
   JSON and prints it as the attachment. Same dark site styling — the
   Worker prints with backgrounds on — but every accordion is open and
   the interactive chrome is gone. */
html.pdf-mode, html.pdf-mode body { background: #040512; }
html.pdf-mode { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
html.pdf-mode .skip-link,
html.pdf-mode .site-header,
html.pdf-mode .hero.scan-hero,
html.pdf-mode #emailCapture,
html.pdf-mode .ec-fix-cta,
html.pdf-mode #engineFilter,
html.pdf-mode #risksSection,
html.pdf-mode #guaranteeSection,
html.pdf-mode #howSection,
html.pdf-mode .site-footer,
html.pdf-mode .ps-add,
html.pdf-mode .btn-rescan,
html.pdf-mode #tsWidget,
html.pdf-mode .vio-chev { display: none !important; }
/* No shadows in print: Quartz-based PDF viewers (macOS Preview) raster
   blurred glows as hard-edged squares — borders carry the look instead. */
html.pdf-mode * { animation: none !important; transition: none !important; box-shadow: none !important; }
html.pdf-mode .fade-up { opacity: 1 !important; transform: none !important; }
html.pdf-mode .scan-results { padding-top: 26px; }
/* breathing room when a severity group lands at the top of a page —
   padding survives page breaks, margins don't */
html.pdf-mode .vio-group-title { padding-top: 14px; }
/* keep tiles and cards whole across page breaks where they fit */
html.pdf-mode .lp-founder,
html.pdf-mode .lp-quote,
html.pdf-mode .lp-roster,
html.pdf-mode .scan-summary,
html.pdf-mode .sev-grid,
html.pdf-mode .os-teaser,
html.pdf-mode details.vio,
html.pdf-mode .vio-node,
html.pdf-mode .cta-banner-inner { break-inside: avoid; }
html.pdf-mode .vio-group-title,
html.pdf-mode details.vio summary { break-after: avoid; }
/* long selectors/snippets wrap instead of clipping at the page edge */
html.pdf-mode .vio-node pre,
html.pdf-mode code.vio-selector { white-space: pre-wrap; overflow-wrap: anywhere; }

.pdf-header {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto 10px;
  padding: 6px 4px 24px;
  border-bottom: 1px solid rgba(168, 110, 255, 0.28);
}
.pdf-logo { height: 42px; width: auto; }
.pdf-head-meta { display: flex; flex-direction: column; gap: 4px; }
.pdf-head-title {
  /* solid color on purpose: background-clip:text gradients leak unclipped
     gradient blocks in the print pipeline (Quartz paints the box tail
     and last glyph cell as a raw gradient bar) */
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #00d4ff;
}
.pdf-head-sub { font-size: 13px; line-height: 1.6; color: #c6c9d8; overflow-wrap: anywhere; }
.pdf-head-sub a { color: #00d4ff; text-decoration: none; }

/* The founder block in the PDF (816px wide, so the 1024px rule above would
   stack it): photo beside the bio, the way a printed page reads. */
html.pdf-mode .pdf-who { margin-top: 48px; }
html.pdf-mode .pdf-who .lp-founder { grid-template-columns: 170px 1fr; gap: 32px; text-align: left; margin-bottom: 36px; }
html.pdf-mode .pdf-who .lp-founder-img { max-width: none; margin: 0; }
html.pdf-mode .pdf-who .lp-founder-text h2 { font-size: 28px; }
html.pdf-mode .pdf-who .lp-roster { margin-top: 40px; }
/* Smaller chips in print, so the roster and both testimonials share one
   page rather than each block taking a page of its own. */
html.pdf-mode .pdf-who .lp-roster h3 { margin-bottom: 12px; }
html.pdf-mode .pdf-who .lp-roster p { margin-bottom: 14px; font-size: 13px; }
html.pdf-mode .pdf-who .lp-roster ul { gap: 7px 8px; }
html.pdf-mode .pdf-who .lp-roster li { font-size: 10.5px; letter-spacing: 1px; padding: 6px 10px; }
