/* =====================================================
   QuoteChecker.ai  •  FINAL WORKING CANVAS + RADIAL MENU
   ===================================================== */

/* ---------- 0. Accessibility utilities --------------- */
/* Visually-hidden but screen-reader-available. Used for form <label>s on
   the audit / Pro / bug-report inputs whose visible description lives in a
   sibling <p> rather than a real <label> (QC-BUG-022..025). Mirrors the
   definition already present in about.css / guide.css / search.css; promoted
   to the global sheet so every page that loads /style.css can use it. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 0B. Brand typography (2.5.1) -------------- */
/* Self-hosted latin WOFF2 subsets (OFL-licensed; CSP default-src 'self'
   already permits same-origin fonts — no external font host, no CSP change).
   Three roles:
     --font          IBM Plex Mono   — console, HUD, status lines, data. The
                     terminal voice of the brand, now a real typeface instead
                     of the browser's default Courier.
     --font-display  Space Grotesk   — headings + hero display sizes
                     (variable, wght 300-700 in one file).
     --font-body     Inter           — long-form body copy (guides, legal,
                     FAQ answers) where monospace hurts readability
                     (variable, wght 100-900 in one file).
   font-display: swap keeps first paint on the system fallback. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
}

/* ---------- 1. Design Tokens ------------------------- */
:root {
  --bg: #111;
  --fg: #eee;
  --accent: #0ff;
  --accent-hover: #00e5cc;
  --font: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: 'Space Grotesk', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /*
    Contrast audit (2024-05) of the legacy about page palette highlighted
    two combinations that failed AAA requirements:
      • .testimonial-card blockquote::before — rgba(0, 255, 255, 0.4) on
        rgba(0, 20, 26, 0.92) yielded a 3.28:1 ratio (<4.5 for large type).
      • .testimonial-metric dt — rgba(224, 247, 255, 0.6) on the same surface
        produced 6.57:1 (<7.0 for body copy).
    The accessible tokens below replace those values so the about page can
    consume a guaranteed AAA palette without duplicating literal colors.
  */
  --surface-aaa: #05131a;
  --surface-aaa-rgb: 5 19 26;
  --surface-aaa-elevated: #07202a;
  --surface-aaa-elevated-rgb: 7 32 42;
  --surface-aaa-raised: #0c2f3d;
  --surface-aaa-raised-rgb: 12 47 61;
  --surface-aaa-soft: #0f3747;
  --surface-aaa-soft-rgb: 15 55 71;
  --accent-aaa: #2fe9ff;
  --accent-aaa-rgb: 47 233 255;
  --accent-aaa-strong: #12d2ff;
  --accent-aaa-glow-strong: rgba(47, 233, 255, 0.65);
  --accent-aaa-glow: rgba(47, 233, 255, 0.38);
  --accent-aaa-glow-soft: rgba(47, 233, 255, 0.18);
  --text-strong: #f1fbff;
  --text-strong-rgb: 241 251 255;
  --text-mid: #d4e9f4;
  --text-mid-rgb: 212 233 244;
  --text-muted: #adcdda;
  --text-muted-rgb: 173 205 218;
  --text-subtle: #9bc2ce;
  --text-subtle-rgb: 155 194 206;
  --text-inverse: #04131a;
  --focus-ring-aaa: #f6fcff;
  --shadow-aaa-strong: 0 1.75rem 3.5rem rgba(47, 233, 255, 0.18);
  --shadow-aaa: 0 1.5rem 3rem rgba(47, 233, 255, 0.14);

  /*
    Canonical semantic aliases (2026-07 sitewide refresh). Every page and the
    shared chrome (styles/chrome.css) consume THESE names; the raw values
    above are the palette they resolve to. Use:
      --qc-text-dim   instead of the legacy low-contrast #888 body text
      --qc-text-faint instead of the legacy #666 hint text
    Both resolve to AAA-audited values from the accessible token set.
  */
  --qc-bg: var(--bg);
  --qc-fg: var(--fg);
  --qc-accent: var(--accent-aaa);
  --qc-accent-strong: var(--accent-aaa-strong);
  --qc-accent-glow: var(--accent-aaa-glow);
  --qc-accent-glow-soft: var(--accent-aaa-glow-soft);
  --qc-surface: var(--surface-aaa);
  --qc-surface-elevated: var(--surface-aaa-elevated);
  --qc-surface-raised: var(--surface-aaa-raised);
  --qc-text-strong: var(--text-strong);
  --qc-text-mid: var(--text-mid);
  --qc-text-dim: var(--text-muted);
  --qc-text-faint: var(--text-subtle);
  --qc-text-inverse: var(--text-inverse);
  --qc-border: rgba(47, 233, 255, 0.18);
  --qc-focus: var(--focus-ring-aaa);

  /*
    Verdict/flag semantic tokens (2.5.1). One vocabulary for "how bad is this
    line" across the WHOLE product — the landing hero demo, the story flags,
    and the shared benchmark-row renderer previously each carried their own
    literals for the same meanings. Glow variants are the matching text-shadow
    colors at the intensity the hero demo established.
  */
  --qc-flag-bad: #ff8a8a;
  --qc-flag-bad-glow: rgba(255, 138, 138, 0.35);
  --qc-flag-warn: #ffd369;
  --qc-flag-warn-glow: rgba(255, 211, 105, 0.35);
  --qc-flag-good: #46d39a;
  --qc-flag-good-glow: rgba(70, 211, 154, 0.35);
  --qc-flag-info: #6ec1ff;
  --qc-flag-info-glow: rgba(110, 193, 255, 0.35);

  /*
    Motion tokens (2.5.1). Every new transition/animation consumes these so
    the site moves with ONE voice. qc-ease-spring is the hero demo's verdict
    stamp curve; qc-ease-out is for entrances/reveals.
  */
  --qc-dur-fast: 0.18s;
  --qc-dur-med: 0.32s;
  --qc-dur-slow: 0.6s;
  --qc-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --qc-ease-spring: cubic-bezier(0.2, 1.4, 0.4, 1);
}

/* ---------- 2. Global Reset -------------------------- */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  color: var(--fg);
  font-family: var(--font);
  overflow: hidden; /* prevent body scroll during prelaunch */
  position: relative;
  z-index: 0;
}

/* ---------- 2A. Accessible Navigation ---------------- */
.radial-nav {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1200;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.radial-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radial-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.radial-nav a:focus,
.radial-nav a:hover {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.radial-nav:focus-within {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
}

.radial-nav:focus-within a {
  display: block;
}

/* ---------- 2B. Breadcrumb trail ---------------------- */
.breadcrumb-trail {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin: 1.25rem 0 1.5rem;
  color: var(--accent);
  text-transform: none;
  text-align: left;
  width: 100%;
  max-width: 70rem;
}

.breadcrumb-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus {
  color: var(--accent-hover);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
  color: var(--fg);
  font-weight: 700;
}

/* ---------- 3. Canvas Background ---------------------- */
#cortex {
  position: fixed;
  inset: 0;
  /* 100% of the fixed positioning box — never 100vw/100vh, which include a
     classic (visible) scrollbar and force a permanent horizontal scrollbar
     on every page (QC visual audit, 2026-07). */
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}

/* (The former 100dvw/100dvh override is gone: dv* units also include a
   classic scrollbar, recreating the horizontal overflow the rule above
   removes. inset:0 + 100% already tracks dynamic viewport changes for a
   fixed element.) */

/* ---------- 4. Intro Prompt --------------------------- */
#intro-actions {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  text-align: center;
}

#intro-instruction {
  color: #ccc;
  font-size: 1rem;
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.6s ease;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

#intro-instruction.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ---------- 5. Main UI Content Shell ------------------ */
.page-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem 8rem;
  max-width: 100%;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-wrapper:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

/* ---------- 5A. Global Utility: Hidden -------------- */
.hidden {
  display: none !important;
}

.js-enabled .js-hide-copy {
  display: none !important;
}

noscript .noscript-message {
  margin: 2rem auto;
  padding: 1.25rem;
  max-width: 38rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

noscript .noscript-message a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- 6. Footer ------------------------------- */
/* Legacy one-line footer (index/start and any not-yet-migrated page).
   Scoped to .site-footer so it can't capture the injected shared chrome
   footer (<footer class="qc-chrome-footer">, styles/chrome.css). */
footer.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: #0a0a0a;
  color: #aaa;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid #222;
  z-index: 999 !important;
  pointer-events: none !important;
}
footer.site-footer a {
  pointer-events: auto;
  color: inherit;
  text-decoration: underline;
}

/* ---------- 7. Typography ---------------------------- */
h1 {
  color: var(--accent);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px #0ff3;
}
.hero-copy {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 1rem;
  backdrop-filter: blur(6px);
}
.subhead {
  color: var(--text-muted, #adcdda);
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}
.hero-body {
  color: var(--text-mid);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.primary-cta {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: linear-gradient(120deg, var(--accent), var(--accent-hover));
  color: #04131a;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 0.7rem 2rem rgba(0, 255, 255, 0.25);
}
.primary-cta:hover,
.primary-cta:focus-visible {
  background: linear-gradient(120deg, var(--accent-hover), var(--accent));
  color: #020b0f;
}
.microcopy {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.015em;
}
p {
  max-width: 40rem;
  margin: 1rem auto;
  line-height: 1.6;
  text-align: center;
}
.status {
  color: var(--text-subtle, #9bc2ce);
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* ---------- 8. Email Capture -------------------------- */
form {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
input[type="email"] {
  flex: 1 1 250px;
  min-width: 200px;
  padding: 0.7rem 1rem;
  background: #000;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
}
button {
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-family: var(--font);
}
button:hover {
  background: var(--accent-hover);
}

/* ---------- 9. Responsive Upload Window ---------------- */
.has-quote-upload .upload-window {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--accent);
  padding: 2rem;
  border: 1px solid #0ff3;
  border-radius: 10px;
  width: 90%;
  max-width: 22rem;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
  z-index: 10;
}
.has-quote-upload .upload-window input,
.has-quote-upload .upload-window select {
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem;
  background: #000;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
}

/* ---------- 10. Layout Shell -------------------------- */
.site-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  position: relative;
  z-index: 0;
}

/* ---------- 11. Scrollable State ---------------------- */
body.prelaunch {
  overflow: hidden;
}
body.scrollable {
  overflow: auto;
}
body.prelaunch .site-shell {
  pointer-events: none;
}
body.scrollable .site-shell {
  pointer-events: auto;
}

/* ---------- 12. Audit Output -------------------------- */
.output-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.audit-card {
  background: #222;
  border-left: 4px solid var(--accent);
  padding: 1rem;
  border-radius: 4px;
}
.audit-card .category {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.audit-card .item,
.audit-card .price,
.audit-card .flagged {
  margin: 0.25rem 0;
}
.audit-card .flagged {
  color: var(--qc-flag-bad, #ff8a8a);
}
.audit-card .flagged.good {
  color: var(--qc-flag-good, #46d39a);
}

/* ---------- 12a. Per-line benchmark row (shared renderer) --------
 * Rendered by public/lib/render-benchmark-row.js. Each row carries
 * `data-status` plus one of the four .benchmark-dot-* classes so the
 * indicator color can match the semantic status without per-page
 * style duplication. Below-market gets a cool blue (reads "under
 * market" without implying warning); within is green; above is amber;
 * significantly-above is red. Per-unit rate references use a neutral
 * grey so they read as informational rather than comparative.
 */
.benchmark-row {
  margin-top: 0.4rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(0, 18, 24, 0.5);
  font-size: 0.85rem;
  color: #cde;
  line-height: 1.4;
}
.benchmark-row .benchmark-head { color: inherit; }
.benchmark-badge {
  margin-top: 0.25rem;
  font-weight: 600;
}
/* Consume the sitewide verdict tokens so the audit output and the landing
   hero demo speak one color language (2.5.1 unification — these were four
   near-miss literals of the same semantic palette). */
.benchmark-dot-within { color: var(--qc-flag-good, #46d39a); }
.benchmark-dot-above { color: var(--qc-flag-warn, #ffd369); }
.benchmark-dot-significantly-above { color: var(--qc-flag-bad, #ff8a8a); }
.benchmark-dot-below { color: var(--qc-flag-info, #6ec1ff); }
.benchmark-dot-reference { color: #9aa4af; font-weight: 500; }
/* A line the matcher refused to price against this vehicle — an ICE-only
   service on an electric car. Marked amber and set apart from the priced rows,
   because "we did not compare this" and "this may not belong on your estimate"
   are one sentence here, not a missing number. The ⚠ is in the badge text, so
   the warning survives a monochrome rendering (§21.4). */
.benchmark-row.benchmark-not-applicable {
  border-color: rgba(255, 211, 105, 0.35);
  background: rgba(40, 30, 0, 0.32);
}
.benchmark-row.benchmark-not-applicable .benchmark-badge-review {
  color: var(--qc-flag-warn, #ffd369);
}
.benchmark-row.benchmark-not-applicable .benchmark-badge-review::before { content: '⚠ '; }

/* ---------- 12b. Trade-aware rule findings (shared renderer) -------
 * Rendered by public/lib/rule-findings.js from the `ruleFindings` every free
 * parser already returns. Set apart from the per-line flags above because they
 * are about the KIND OF WORK rather than about one line: the roofing pack's
 * decking question applies to the job, not to a row in the table.
 * Severity is carried in the item's text (marker + word), so the styling here
 * only reinforces it — a monochrome rendering loses nothing (§21.4).
 */
.qc-rule-findings { margin-top: 1.2rem; }
.qc-rule-findings-heading {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.qc-rule-findings-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.qc-rule-finding {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  border-left: 3px solid rgba(0, 255, 255, 0.25);
  background: rgba(0, 18, 24, 0.5);
  font-size: 0.9rem;
  line-height: 1.45;
}
.qc-rule-finding--critical { border-left-color: var(--qc-flag-bad, #ff8a8a); }
.qc-rule-finding--warning { border-left-color: var(--qc-flag-warn, #ffd369); }
.qc-rule-finding--info { border-left-color: var(--qc-flag-info, #6ec1ff); }
.qc-rule-finding-title { display: block; }
.qc-rule-finding-body { margin: 0.3rem 0 0; color: #cde; }
.loading,
#qc-loader,
.qc-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  max-width: min(100%, 20rem);
}

.loading {
  animation: pulse 1s infinite;
  margin-bottom: 1.5rem;
}

.loading .spinner,
#qc-loader .spinner,
.qc-loader .spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(0, 255, 255, 0.25);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.analyzing-text {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.1rem);
  letter-spacing: 0.01em;
}

.qc-muted {
  color: rgba(224, 255, 255, 0.72);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin: 0;
}

.qc-micro {
  color: rgba(200, 240, 255, 0.68);
  font-size: clamp(0.8rem, 2.4vw, 0.9rem);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin: 0;
  max-width: 24rem;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  .loading,
  #qc-loader,
  .qc-loader {
    padding: 1rem;
    gap: 0.7rem;
  }

  .qc-micro {
    font-size: 0.82rem;
  }
}
body.tool-page {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  overflow: auto;
  height: auto;
  padding: 2rem;
}
/* --- Universal box-sizing reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ---------- 13. SVG-Based Radial Tool Selector (+ Ultra-Cinematic Animations) ---------- */

/* 13.0A: Pop the entire menu in from smaller + transparent */
@keyframes menuPop {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* 13.0B: Fade each wedge in */
@keyframes wedgeFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 13.0C: Slide-and-fade each label upward */
@keyframes labelFade {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 13.1: Root SVG container (always transparent) */
#radial-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(118vmin, 94vw);
  height: min(118vmin, 94vh);
  transform: translate(-50%, -50%);
  opacity: 0;               /* hidden until activated */
  pointer-events: none;     /* no interaction until visible */
  background: transparent;
  z-index: 999;
  filter:
    drop-shadow(0 25px 55px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 28px rgba(0, 255, 230, 0.08));
  isolation: isolate;
}

.radial-overlay {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  width: 200vmax;
  height: 200vmax;
  background:
    radial-gradient(
      200% 200% at 50% 50%,
      rgba(6, 14, 24, 0.52) 0%,
      rgba(2, 8, 16, 0.32) 42%,
      rgba(2, 8, 16, 0.2) 70%,
      rgba(2, 8, 16, 0.14) 96%,
      rgba(2, 8, 16, 0.1) 118%,
      rgba(2, 8, 16, 0.08) 160%,
      rgba(2, 8, 16, 0.06) 200%
    ),
    linear-gradient(180deg, rgba(3, 10, 16, 0.48), rgba(4, 12, 20, 0.34));
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.015);
  transition: opacity 0.42s ease, transform 0.42s ease;
  pointer-events: none;
  z-index: 998;
}

.radial-overlay.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#radial-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backdrop-filter: blur(8px) saturate(1.02);
  -webkit-backdrop-filter: blur(8px) saturate(1.02);
  mask-image:
    radial-gradient(circle at 50% 50%, transparent 42%, #000 54%, #000 70%, transparent 74%),
    conic-gradient(
      from -90deg at 50% 50%,
      transparent 0deg,
      #000 4deg,
      #000 8deg,
      transparent 12deg,
      transparent 60deg,
      #000 64deg,
      #000 68deg,
      transparent 72deg,
      transparent 120deg,
      #000 124deg,
      #000 128deg,
      transparent 132deg,
      transparent 180deg,
      #000 184deg,
      #000 188deg,
      transparent 192deg,
      transparent 240deg,
      #000 244deg,
      #000 248deg,
      transparent 252deg,
      transparent 300deg,
      #000 304deg,
      #000 308deg,
      transparent 312deg,
      transparent 360deg
    );
  mask-composite: intersect;
  -webkit-mask-image:
    radial-gradient(circle at 50% 50%, transparent 42%, #000 54%, #000 70%, transparent 74%),
    conic-gradient(
      from -90deg at 50% 50%,
      transparent 0deg,
      #000 4deg,
      #000 8deg,
      transparent 12deg,
      transparent 60deg,
      #000 64deg,
      #000 68deg,
      transparent 72deg,
      transparent 120deg,
      #000 124deg,
      #000 128deg,
      transparent 132deg,
      transparent 180deg,
      #000 184deg,
      #000 188deg,
      transparent 192deg,
      transparent 240deg,
      #000 244deg,
      #000 248deg,
      transparent 252deg,
      transparent 300deg,
      #000 304deg,
      #000 308deg,
      transparent 312deg,
      transparent 360deg
    );
  -webkit-mask-composite: source-in;
  pointer-events: none;
  z-index: 0;
}

#radial-menu > * {
  position: relative;
  z-index: 1;
}

#radial-menu:focus {
  outline: none;
}

#radial-menu:focus-visible {
  outline: 3px solid var(--focus-ring-aaa);
  outline-offset: 12px;
}

/* 13.2: Activate menu pop + allow clicks */
#radial-menu.visible {
  animation: menuPop 0.24s cubic-bezier(0.16, 1.1, 0.3, 1) both;
  pointer-events: auto;
}

/* 13.3: Wedge segments base state (stay hidden) */
.radial-wedge {
  cursor: pointer;
  pointer-events: auto;
  mix-blend-mode: screen;
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 1.16, 0.32, 1),
    filter 0.35s cubic-bezier(0.22, 1.16, 0.32, 1),
    stroke 0.28s ease,
    fill 0.28s ease;
  stroke-width: 1.2;
  transform-origin: center;
  transform: translateZ(0) scale(0.995);
  filter:
    url(#glass-noise)
    drop-shadow(0 18px 38px rgba(0, 0, 0, 0.3))
    drop-shadow(0 0 16px rgba(0, 255, 230, 0.15));
  paint-order: stroke fill;
  fill-opacity: 0.96;
  stroke-opacity: 0.9;
}

.radial-wedge:hover {
  filter:
    url(#glass-noise)
    drop-shadow(0 16px 40px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 22px rgba(0, 255, 230, 0.28));
  transform: translateZ(0) scale(1.02) rotate(0.2deg);
}

.radial-wedge:active {
  filter:
    url(#glass-noise)
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 18px rgba(0, 255, 230, 0.25));
  transform: translateZ(0) scale(0.985);
  transition-duration: 0.16s;
}

.radial-wedge:focus {
  outline: none;
}

.radial-wedge:focus-visible {
  outline: none;
  stroke: var(--focus-ring-aaa);
  stroke-width: 2;
  filter:
    url(#glass-noise)
    drop-shadow(0 20px 48px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 26px var(--accent-aaa-glow-strong));
  transform: translateZ(0) scale(1.025) rotate(-0.15deg);
}

/* 13.4: Ultra-cinematic wedge fade (tightened timing) */
#radial-menu.visible .radial-wedge {
  animation: wedgeFade 0.36s cubic-bezier(0.22, 1.16, 0.32, 1) both;
}

/* 13.4A: Tight, smooth stagger for faster reveal */
#radial-menu.visible .radial-wedge:nth-child(1) { animation-delay: 0s;    }
#radial-menu.visible .radial-wedge:nth-child(2) { animation-delay: 0.12s; }
#radial-menu.visible .radial-wedge:nth-child(3) { animation-delay: 0.24s; }
#radial-menu.visible .radial-wedge:nth-child(4) { animation-delay: 0.36s; }
#radial-menu.visible .radial-wedge:nth-child(5) { animation-delay: 0.48s; }
#radial-menu.visible .radial-wedge:nth-child(6) { animation-delay: 0.6s;  }

/* 13.5: Labels base state (no change) */
#radial-menu text {
  pointer-events: none;
  font-family: var(--font-display, 'Space Grotesk', 'Segoe UI', system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: 0.022em;
  font-size: 21px;
  line-height: 1.25;
  text-anchor: middle;
  paint-order: stroke fill;
  stroke: rgba(8, 16, 26, 0.75);
  stroke-width: 1px;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(var(--surface-aaa-rgb), 0.95),
    0 0 16px var(--accent-aaa-glow-soft);
  filter:
    drop-shadow(0 0 4px rgba(var(--surface-aaa-rgb), 0.65))
    drop-shadow(0 0 10px rgba(var(--accent-aaa-rgb), 0.22));
  opacity: 0;
}

#radial-menu .wedge-icon {
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  transform-box: fill-box;
  filter:
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 14px rgba(var(--accent-aaa-rgb), 0.22));
  fill: var(--text-strong);
  stroke: rgba(var(--surface-aaa-rgb), 0.4);
  stroke-width: 0.95;
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1.16, 0.32, 1),
    filter 0.35s ease;
}

#radial-menu .wedge-label {
  fill: #f8fbff;
  font-weight: 760;
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

#radial-menu .wedge-subtext {
  fill: rgba(229, 244, 255, 0.9);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: 0.02em;
  stroke-width: 0.9px;
  line-height: 1.32;
  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(var(--surface-aaa-rgb), 0.95),
    0 0 18px var(--accent-aaa-glow);
}

#radial-menu .wedge-label tspan,
#radial-menu .wedge-subtext tspan {
  text-anchor: middle;
}

/* 13.6: Label + icon fade speed (fast glass reveal) */
#radial-menu.visible text,
#radial-menu.visible .wedge-icon {
  animation: labelFade 0.28s ease-out both;
}

/* 13.6A: Label delays track wedge timing with minimal offset */
#radial-menu.visible text:nth-of-type(1),
#radial-menu.visible text:nth-of-type(2),
#radial-menu.visible .wedge-icon:nth-of-type(1)  { animation-delay: 0.18s; }
#radial-menu.visible text:nth-of-type(3),
#radial-menu.visible text:nth-of-type(4),
#radial-menu.visible .wedge-icon:nth-of-type(2)  { animation-delay: 0.3s; }
#radial-menu.visible text:nth-of-type(5),
#radial-menu.visible text:nth-of-type(6),
#radial-menu.visible .wedge-icon:nth-of-type(3)  { animation-delay: 0.42s; }
#radial-menu.visible text:nth-of-type(7),
#radial-menu.visible text:nth-of-type(8),
#radial-menu.visible .wedge-icon:nth-of-type(4)  { animation-delay: 0.54s; }
#radial-menu.visible text:nth-of-type(9),
#radial-menu.visible text:nth-of-type(10),
#radial-menu.visible .wedge-icon:nth-of-type(5) { animation-delay: 0.66s; }
#radial-menu.visible text:nth-of-type(11),
#radial-menu.visible text:nth-of-type(12),
#radial-menu.visible .wedge-icon:nth-of-type(6) { animation-delay: 0.78s; }

@media (max-width: 540px) {
  #radial-menu text {
    font-size: 23px;
    line-height: 1.26;
    letter-spacing: 0.02em;
  }

  #radial-menu .wedge-subtext {
    font-size: 19px;
    line-height: 1.28;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 480px) {
  #radial-menu {
    width: 120vmin;
    height: 120vmin;
  }

  #radial-menu .wedge-label {
    font-size: 23px;
    letter-spacing: 0.02em;
    line-height: 1.2;
  }

  #radial-menu .wedge-subtext {
    font-size: 19px;
    letter-spacing: 0.02em;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  #intro-instruction,
  .page-wrapper,
  .radial-wedge,
  .radial-wedge:focus-visible,
  .radial-wedge:hover,
  .radial-wedge:active,
  #radial-menu .wedge-icon,
  #radial-menu text {
    transition: none !important;
  }

  #radial-menu.visible {
    animation: none !important;
    opacity: 1;
  }

  .radial-wedge {
    transform: none !important;
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.15));
  }

  #radial-menu.visible .radial-wedge {
    animation: none !important;
    opacity: 1;
  }

  .radial-wedge:hover,
  .radial-wedge:focus-visible,
  .radial-wedge:active {
    transform: none !important;
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.25));
  }

  #radial-menu.visible text,
  #radial-menu.visible .wedge-icon {
    animation: none !important;
    opacity: 1;
    transform: none !important;
  }

  /* Free-tool loader: no spinner rotation, no pulsing, no held-ellipsis
     shimmer. events.js also skips the step rotation under this query, so
     the loader is a single static line. */
  .loading,
  .loading .spinner,
  #qc-loader .spinner,
  .qc-loader .spinner,
  #qc-step.qc-step-hold::after {
    animation: none !important;
  }
}

/* The step narrative's terminal state: rotation stops on the last step
   (never wraps back to step 1 — that read as the pipeline restarting) and
   a pulsing ellipsis carries the "still working" signal instead. */
#qc-step.qc-step-hold::after {
  content: '…';
  display: inline-block;
  animation: qc-hold-ellipsis 1.4s ease-in-out infinite;
}

@keyframes qc-hold-ellipsis {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* === 14. Mobile + Desktop Radial Menu Centering === */
#radial-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(118vmin, 94vw);
  height: min(118vmin, 94vh);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999;
}

/* --- 15. Keep global styles off Clerk’s auth widget -------------------- */
[data-clerk-form],
[data-clerk-form] * {
  all: revert !important;     /* wipe inherited styles */
}

/* =====================================================
   MOBILE OVERRIDES (≤600px)
   Improves visibility + interaction for small screens
   ===================================================== */
@media (max-width: 600px) {
  #radial-menu {
    width: 130vmin;
    height: 130vmin;
  }

  #radial-menu text {
    font-size: 20px;
    stroke-width: 1px;
    text-shadow:
      0 0 10px rgba(var(--surface-aaa-rgb), 0.92),
      0 0 20px var(--accent-aaa-glow);
  }

  .radial-wedge {
    stroke-width: 1.65;
  }

  #intro-actions {
    bottom: 80px;
    gap: 0.5rem;
  }

  #intro-instruction {
    font-size: 0.9rem;
  }

  footer.site-footer {
    font-size: 0.75rem;
    padding: 0.75rem;
  }

canvas#cortex {
  transform: scale(1.05);
  transform-origin: center center;
}
}

/* Clerk fallback error style */
.clerk-error {
  color: red;
  text-align: center;
}

/* ---------- Global Scrollbar Styling (from Pro mode) --------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--qc-accent, #2fe9ff); /* was off-palette limegreen */
}

/* Firefox support */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(0, 255, 255, 0.05);
}

/* ---------- Help Overlay (homepage) --------- */
.help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.help-overlay:not([aria-hidden="true"]) {
  opacity: 1;
  pointer-events: auto;
}

.help-card {
  position: relative;
  background: linear-gradient(135deg, rgba(12, 28, 45, 0.9), rgba(9, 45, 66, 0.94));
  border: 1px solid rgba(140, 255, 240, 0.35);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(0, 255, 204, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1.75rem;
  width: min(480px, 100%);
  color: var(--text-strong);
}

.help-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.help-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  line-height: 1.2;
}

.help-copy {
  margin: 0 0 1.25rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.help-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.help-primary,
.help-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 12px;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.help-primary {
  background: linear-gradient(120deg, rgba(0, 255, 204, 0.22), rgba(0, 205, 255, 0.22));
  border-color: rgba(0, 255, 204, 0.5);
  color: var(--text-strong);
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.18);
}

.help-primary:hover,
.help-primary:focus-visible {
  border-color: rgba(0, 255, 204, 0.8);
  transform: translateY(-1px);
}

.help-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-strong);
}

.help-secondary:hover,
.help-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.help-accordion {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.85rem;
}

.help-accordion[hidden] {
  display: none;
}

.help-accordion-intro {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.45;
}

.help-accordion-links {
  display: grid;
  gap: 0.65rem;
}

.help-accordion-link {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-strong);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.help-accordion-link:hover,
.help-accordion-link:focus-visible {
  border-color: rgba(0, 255, 204, 0.4);
  background: rgba(0, 255, 204, 0.06);
  transform: translateY(-1px);
}

.help-accordion-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.help-accordion-copy {
  color: var(--text-mid);
  line-height: 1.45;
}

.help-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--text-strong);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.help-close:hover,
.help-close:focus-visible {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 540px) {
  .help-card {
    padding: 1.5rem 1.25rem;
  }

  .help-actions {
    flex-direction: column;
  }

  .help-primary,
  .help-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Help Overlay Modal ------------------------- */
.qc-help-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1500;
}

.qc-help-modal {
  position: relative;
  width: min(640px, 100%);
  background: linear-gradient(135deg, rgba(var(--surface-aaa-rgb), 0.98), rgba(var(--surface-aaa-elevated-rgb), 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-aaa);
  padding: 2rem;
  color: var(--text-strong);
}

.qc-help-modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.qc-help-modal p {
  margin: 0 0 1.25rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.qc-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.qc-help-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  color: var(--text-strong);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.qc-help-action.primary {
  background: linear-gradient(120deg, rgba(var(--accent-aaa-rgb), 0.22), rgba(var(--accent-aaa-rgb), 0.32));
  border-color: rgba(var(--accent-aaa-rgb), 0.55);
  box-shadow: 0 10px 28px rgba(var(--accent-aaa-rgb), 0.16);
}

.qc-help-action.primary:hover,
.qc-help-action.primary:focus-visible {
  border-color: rgba(var(--accent-aaa-rgb), 0.75);
  transform: translateY(-1px);
}

.qc-help-action.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-mid);
}

.qc-help-action.secondary:hover,
.qc-help-action.secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.qc-help-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.qc-help-close:hover,
.qc-help-close:focus-visible {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.32);
}

.qc-help-footnote {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.qc-help-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 640px) {
  .qc-help-modal {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .qc-help-actions {
    flex-direction: column;
  }

  .qc-help-action {
    width: 100%;
  }
}

/* ========== Trust Bar (homepage) ========== */
.trust-bar {
  position: relative;
  z-index: 2;
  margin: 1.5rem auto;
  max-width: 42rem;
  padding: 0.5rem 1rem;
}

.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.trust-bar__icon {
  color: var(--accent-aaa);
  font-size: 0.5rem;
}

/* ========== Signup Trust Line ========== */
.signup-trust-line {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin: 0 auto 1rem;
  padding: 0.6rem 1rem;
  max-width: 40rem;
}

/* ---------- Post-audit email capture ---------- */
.email-capture-card {
  max-width: 42rem;
  margin: 1.25rem auto 2rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  text-align: left;
  color: #ddd;
}
.email-capture-card h3 {
  margin: 0 0 0.5rem;
  color: var(--accent, #0ff);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.email-capture-card form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
}
.email-capture-card input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font: inherit;
}
.email-capture-card button[type="submit"] {
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent, #0ff);
  border-radius: 6px;
  background: transparent;
  color: var(--accent, #0ff);
  font: inherit;
  cursor: pointer;
}
.email-capture-card button[type="submit"]:hover,
.email-capture-card button[type="submit"]:focus-visible {
  background: rgba(0, 255, 255, 0.1);
}
.email-capture-card button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}
.email-capture-course {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #cfeef2;
  margin: 0.1rem 0 0.4rem;
}
.email-capture-course input {
  margin: 0;
}
.email-capture-trust {
  font-size: 0.78rem;
  color: var(--text-muted, #adcdda);
  margin: 0.25rem 0 0;
}
.email-capture-feedback {
  font-size: 0.85rem;
  color: #ff8f8f;
  margin: 0.25rem 0 0;
  min-height: 1em;
}
.email-capture-confirm {
  margin: 0;
  padding: 0.25rem 0;
  font-size: 0.95rem;
  color: var(--accent, #0ff);
}

/* ---------- Post-audit report sharing ---------- */
.report-share-card {
  max-width: 42rem;
  margin: 1.25rem auto 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  text-align: left;
  color: #ddd;
}
.report-share-card h3 {
  margin: 0 0 0.35rem;
  color: var(--accent, #0ff);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.report-share-trust {
  font-size: 0.85rem;
  color: #9ab;
  margin: 0 0 0.65rem;
}
.report-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.report-share-btn {
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.report-share-btn.primary {
  background: transparent;
  border-color: var(--accent, #0ff);
  color: var(--accent, #0ff);
}
.report-share-btn.primary:hover,
.report-share-btn.primary:focus-visible {
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-1px);
}
.report-share-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e6f7fa;
}
.report-share-btn.secondary:hover,
.report-share-btn.secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}
.report-share-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
