/* ==========================================================================
   AI Visibility Check (site-check.html) — page-local styles.
   Every selector is prefixed .sc- so nothing leaks into the shared system.
   Tokens come from styles.css :root. Status colours follow the design system:
   green = pass, orange = needs attention, #ef4444 = failure (the one raw red
   the site allows), blue = info, muted slate = not applicable.
   ========================================================================== */

.sc-page {
  --sc-pass: var(--accent-green);
  --sc-warn: var(--accent-orange);
  --sc-fail: #ef4444;
  --sc-info: var(--accent-blue);
  --sc-na: var(--text-muted);
  --sc-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-narrow { max-width: 860px; }
.sc-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.sc-page [hidden] { display: none !important; }

.sc-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.sc-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.sc-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 48px 0 6px;
}
.sc-section-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* Focus that works on every interactive thing this page adds. */
.sc-page main a:focus-visible,
.sc-page main button:focus-visible,
.sc-page main summary:focus-visible,
.sc-page main input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.sc-page main [tabindex="-1"]:focus { outline: none; }

/* ---------------------------------------------------------------- hero */

.sc-hero {
  padding: 140px 0 40px;
  position: relative;
  z-index: 10;
}
.sc-badge { margin: 0 auto 20px; }
.sc-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 760px;
  margin: 0 auto 18px;
}
.sc-lede {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
}

.sc-form-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 98, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 98, 255, 0.08), 0 0 0 1px rgba(0, 98, 255, 0.04);
}
.sc-form-card:hover { border-color: rgba(0, 98, 255, 0.22); }
.sc-url-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.sc-url-group { flex: 1 1 auto; min-width: 0; }
.sc-url-group input {
  height: 100%;
  min-height: 56px;
  font-size: 1.02rem;
  padding: 16px;
}
.sc-url-group label { top: 18px; left: 16px; font-size: 0.98rem; }
.sc-url-group input[aria-invalid="true"] {
  border-color: var(--sc-fail);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.sc-go { flex: 0 0 auto; white-space: nowrap; }
.sc-go[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.sc-form-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.sc-form-error,
.sc-gate-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
  font-size: 0.86rem;
  line-height: 1.5;
}

.sc-strip {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
}
.sc-strip-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.sc-strip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.sc-strip-list li {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.sc-sample-link {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
}
.sc-sample-link a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}
.sc-sample-link a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- running */

.sc-run {
  padding: 8px 0 40px;
  position: relative;
  z-index: 10;
}
.sc-run-card { padding: 26px 28px; }
.sc-run-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.sc-run-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}
.sc-timer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-variant-numeric: tabular-nums;
}
.sc-steps { list-style: none; display: grid; gap: 8px; }
.sc-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.015);
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: var(--transition-smooth);
}
.sc-step-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.sc-step-state {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.sc-step-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.12);
  display: grid;
  place-items: center;
}
.sc-step-dot svg { width: 14px; height: 14px; }
.sc-step.is-running { background: rgba(0, 98, 255, 0.035); border-color: rgba(0, 98, 255, 0.14); }
.sc-step.is-running .sc-step-name { color: var(--text-primary); }
.sc-step.is-running .sc-step-state { color: var(--accent-blue); }
.sc-step.is-running .sc-step-dot {
  border-color: rgba(0, 98, 255, 0.18);
  border-top-color: var(--accent-blue);
  animation: scSpin 0.9s linear infinite;
}
.sc-step.is-done .sc-step-name { color: var(--text-primary); }
.sc-step.is-done .sc-step-dot {
  border-color: transparent;
  background: rgba(16, 185, 129, 0.12);
  color: var(--sc-pass);
}
.sc-step.is-done .sc-step-state { color: var(--text-primary); font-weight: 600; }
.sc-step.is-done { animation: fadeUpIn 0.3s var(--sc-ease); }
@keyframes scSpin { to { transform: rotate(360deg); } }

.sc-run-note { margin-top: 16px; font-size: 0.82rem; color: var(--text-muted); }
.sc-run-actions { margin-top: 14px; }

/* ---------------------------------------------------------------- report */

.sc-report {
  padding: 8px 0 60px;
  position: relative;
  z-index: 10;
}
.sc-report.is-in { animation: fadeUpIn 0.5s var(--sc-ease); }

.sc-sample-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(-45deg, rgba(255, 107, 0, 0.06) 0 10px, rgba(255, 107, 0, 0.025) 10px 20px);
  border: 1px dashed rgba(255, 107, 0, 0.45);
  color: var(--text-primary);
  font-size: 0.9rem;
}
.sc-sample-banner svg { width: 20px; height: 20px; color: var(--accent-orange); flex: 0 0 auto; }

.sc-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
}

/* The score card is built to be screenshotted: big number, grade, domain. */
.sc-score-card {
  text-align: center;
  padding: 30px 28px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0, 98, 255, 0.07), transparent 60%),
    rgba(255, 255, 255, 0.9);
}
.sc-score-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 8px auto 10px;
}
.sc-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-ring circle { fill: none; stroke-width: 9; }
.sc-ring-track { stroke: rgba(15, 23, 42, 0.06); }
.sc-ring-bar {
  stroke: var(--sc-ring, var(--accent-blue));
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1.4s var(--sc-ease), stroke 0.4s ease;
  filter: drop-shadow(0 0 6px var(--sc-ring-glow, rgba(0, 98, 255, 0.25)));
}
.sc-score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 64px;
  gap: 2px;
}
.sc-score-value {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.sc-score-of {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-muted);
}
.sc-grade {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 5px 14px;
  border-radius: 100px;
  color: var(--sc-ring, var(--accent-blue));
  background: var(--sc-ring-soft, rgba(0, 98, 255, 0.08));
  margin-bottom: 10px;
}
.sc-host {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}
.sc-checked {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.sc-summary-text {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: left;
}

/* Who can see you */
.sc-engines-card { padding: 26px 28px; }
.sc-engines { list-style: none; display: grid; gap: 8px; }
.sc-engine {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.sc-engine-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.04);
}
.sc-engine-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.sc-engine-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 1px;
}
.sc-engine-status {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.sc-es-visible .sc-engine-status { color: #047857; background: rgba(16, 185, 129, 0.1); }
.sc-es-partial .sc-engine-status { color: #c2410c; background: rgba(255, 107, 0, 0.1); }
.sc-es-at-risk .sc-engine-status { color: #c2410c; background: rgba(255, 107, 0, 0.1); }
.sc-es-blocked .sc-engine-status { color: #b91c1c; background: rgba(239, 68, 68, 0.1); }
.sc-es-unknown .sc-engine-status { color: var(--text-secondary); background: rgba(15, 23, 42, 0.05); }
.sc-es-visible .sc-engine-mark { color: #047857; background: rgba(16, 185, 129, 0.1); }
.sc-es-blocked .sc-engine-mark { color: #b91c1c; background: rgba(239, 68, 68, 0.08); }
.sc-es-partial .sc-engine-mark,
.sc-es-at-risk .sc-engine-mark { color: #c2410c; background: rgba(255, 107, 0, 0.08); }
.sc-engines-key { margin-top: 12px; font-size: 0.75rem; color: var(--text-muted); }

/* Actions */
.sc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.sc-actions .btn svg { width: 15px; height: 15px; }
.sc-share-msg { font-size: 0.82rem; color: var(--sc-pass); font-weight: 500; }

/* Category scores */
.sc-cats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.sc-cat {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}
.sc-cat a { text-decoration: none; color: inherit; display: block; }
.sc-cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sc-cat-head svg { width: 16px; height: 16px; color: var(--accent-blue); flex: 0 0 auto; }
.sc-cat-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.sc-cat-score {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.sc-cat-score small { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; margin-left: 2px; }
.sc-bar {
  height: 6px;
  border-radius: 100px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-top: 8px;
}
.sc-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--sc-bar, var(--accent-blue));
  transition: width 1.1s var(--sc-ease);
}
.sc-cat-counts {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Fix these first + the fix-all tile */
.sc-top-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.sc-top { list-style: none; counter-reset: sctop; display: grid; gap: 12px; }
.sc-top li {
  counter-increment: sctop;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
}
.sc-top li::before {
  content: counter(sctop);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-blue);
  background: rgba(0, 98, 255, 0.08);
}
.sc-top-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.sc-top-fix { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; margin-top: 2px; }
.sc-top-pts {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 6px;
  white-space: nowrap;
}

.sc-fixall {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 28px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #ffffff;
  background: var(--grad-primary);
  box-shadow: 0 16px 40px rgba(0, 98, 255, 0.22);
  overflow: hidden;
  transition: var(--transition-smooth);
  min-height: 200px;
}
.sc-fixall::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.sc-fixall:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(0, 98, 255, 0.3); }
.sc-fixall-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.sc-fixall-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.sc-fixall-sub { font-size: 0.88rem; opacity: 0.9; line-height: 1.5; }

/* Every check, grouped */
.sc-groups { display: grid; gap: 12px; }
.sc-group {
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}
.sc-group > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
}
.sc-group > summary::-webkit-details-marker { display: none; }
.sc-group > summary > svg:first-child { width: 18px; height: 18px; color: var(--accent-blue); }
.sc-group-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}
.sc-group-tally {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sc-tally {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 100px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.sc-tally-pass { color: #047857; background: rgba(16, 185, 129, 0.1); }
.sc-tally-warn { color: #c2410c; background: rgba(255, 107, 0, 0.1); }
.sc-tally-fail { color: #b91c1c; background: rgba(239, 68, 68, 0.1); }
.sc-chev { width: 18px; height: 18px; color: var(--text-muted); transition: transform 0.3s var(--sc-ease); }
.sc-group[open] .sc-chev { transform: rotate(180deg); }

.sc-checklist { list-style: none; border-top: 1px solid rgba(15, 23, 42, 0.05); }
.sc-check {
  position: relative;
  padding: 16px 20px 16px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}
.sc-check:last-child { border-bottom: none; }
.sc-check::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sc-st, var(--sc-na));
}
.sc-st-pass { --sc-st: var(--sc-pass); }
.sc-st-warn { --sc-st: var(--sc-warn); }
.sc-st-fail { --sc-st: var(--sc-fail); }
.sc-st-info { --sc-st: var(--sc-info); }
.sc-st-na { --sc-st: var(--sc-na); }
.sc-check-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.sc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 100px;
}
.sc-st-pass .sc-pill { color: #047857; background: rgba(16, 185, 129, 0.1); }
.sc-st-warn .sc-pill { color: #c2410c; background: rgba(255, 107, 0, 0.1); }
.sc-st-fail .sc-pill { color: #b91c1c; background: rgba(239, 68, 68, 0.1); }
.sc-st-info .sc-pill { color: var(--accent-blue); background: rgba(0, 98, 255, 0.08); }
.sc-st-na .sc-pill { color: var(--text-secondary); background: rgba(15, 23, 42, 0.05); }
.sc-check-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1 1 240px;
}
.sc-pts {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.sc-why { margin-top: 6px; font-size: 0.86rem; line-height: 1.55; color: var(--text-secondary); }
.sc-found,
.sc-fix {
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-primary);
}
.sc-found strong,
.sc-fix strong {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 6px;
}
.sc-fix {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 98, 255, 0.035);
  border: 1px solid rgba(0, 98, 255, 0.08);
}
.sc-st-pass .sc-fix { display: none; }
.sc-source {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--accent-blue);
  text-decoration: none;
}
.sc-source:hover { text-decoration: underline; }

/* Myths spotted on this site */
.sc-mythlist { list-style: none; display: grid; gap: 10px; }
.sc-mythlist li {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.035);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.sc-mythlist strong { color: var(--text-primary); font-weight: 600; }

/* Email gate + autopilot */
.sc-close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.sc-gate { padding: 28px; background: rgba(255, 255, 255, 0.92); }
.sc-gate-sub { font-size: 0.9rem; color: var(--text-secondary); margin: -6px 0 12px; }
.sc-gate-list { list-style: none; display: grid; gap: 6px; margin-bottom: 20px; }
.sc-gate-list li {
  display: flex;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-primary);
  line-height: 1.45;
}
.sc-gate-list svg { width: 16px; height: 16px; color: var(--sc-pass); flex: 0 0 auto; margin-top: 2px; }
.sc-gate-form { gap: 16px; }
.sc-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.sc-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.sc-consent input {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}
.sc-consent label {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}
.sc-consent a { color: var(--accent-blue); }
.sc-gate-form .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.sc-gate-done { text-align: center; padding: 10px 0; }
.sc-gate-done h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 10px 0 6px;
  color: var(--text-primary);
}
.sc-gate-done p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }

/* The dark inversion: "the system" reads as a console in a bright page. */
.sc-autopilot {
  position: relative;
  padding: 30px 28px;
  border-radius: 16px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(0, 98, 255, 0.22), transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(255, 107, 0, 0.12), transparent 60%),
    #070a13;
  border: 1px solid rgba(0, 98, 255, 0.18);
  box-shadow: 0 32px 80px rgba(7, 10, 19, 0.35);
  color: #e6edf3;
  overflow: hidden;
}
.sc-autopilot-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7fb0ff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-autopilot-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 8px var(--accent-orange);
  animation: pulseOrange 2s infinite;
}
.sc-autopilot-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 10px;
}
.sc-autopilot-lede { font-size: 0.9rem; line-height: 1.6; color: #8b949e; margin-bottom: 18px; }
.sc-autopilot-list { list-style: none; display: grid; gap: 12px; margin-bottom: 22px; }
.sc-autopilot-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #c9d1d9;
}
.sc-autopilot-list strong { color: #ffffff; font-weight: 600; }
.sc-autopilot-list svg {
  width: 30px; height: 30px;
  padding: 7px;
  border-radius: 8px;
  color: #7fb0ff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sc-autopilot-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.sc-autopilot-mail { font-size: 0.82rem; color: #8b949e; }
.sc-autopilot-mail:hover { color: #e6edf3; }
.sc-autopilot a:focus-visible { outline-color: #7fb0ff; }

/* ---------------------------------------------------------------- explainers */

.sc-explain,
.sc-myths,
.sc-faq {
  padding: 72px 0;
  position: relative;
  z-index: 10;
}
.sc-explain { padding-top: 40px; }
.sc-myths {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(15, 23, 42, 0.03);
  border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}
.sc-faq { padding-bottom: 140px; } /* clears the fixed footer bar */

.sc-areas {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.sc-area { padding: 22px 20px; }
.sc-area-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent-blue);
  background: rgba(0, 98, 255, 0.08);
  margin-bottom: 14px;
}
.sc-area-icon svg { width: 20px; height: 20px; }
.sc-area h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.sc-area p { font-size: 0.84rem; line-height: 1.55; color: var(--text-secondary); }

.sc-myth-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.sc-myth {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-myth h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.55);
  text-decoration-thickness: 2px;
}
.sc-myth p { font-size: 0.84rem; line-height: 1.55; color: var(--text-secondary); flex: 1; }
.sc-myth a { font-size: 0.75rem; color: var(--accent-blue); text-decoration: none; }
.sc-myth a:hover { text-decoration: underline; }

.sc-faq-list { display: grid; gap: 14px; }
.sc-qa {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.sc-qa h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.sc-qa p { font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary); }
.sc-qa a { color: var(--accent-blue); }

/* ---------------------------------------------------------------- scribbles
   The page's theme: the hand-drawn stroke from Who we are and Voice Agents
   (3px, round caps, drawn on left to right). Every path carries pathLength="1",
   so one dash of 1 covers any shape. Without JS, or with reduced motion, every
   scribble simply shows fully drawn.
   - Hero words draw on load (CSS only, so nothing flashes before the script).
   - .sc-scroll scribbles are armed by site-check.js and draw as they scroll in.
   - The score loop draws once the ring has filled. */

.sc-scr {
  --scr: var(--accent-blue);
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.sc-scr--orange { --scr: var(--accent-orange); }
.sc-nowrap { white-space: nowrap; }
.sc-scribe { position: absolute; overflow: visible; pointer-events: none; }
.sc-scribe path,
.sc-score-scribe path,
.sc-mark path {
  fill: none;
  stroke: var(--scr, var(--accent-blue));
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}
.sc-scribe--under { left: -3%; bottom: -0.26em; width: 106%; height: 0.42em; }
.sc-scribe--double { bottom: -0.36em; height: 0.5em; }
.sc-scribe--double path { stroke-width: 2.6; }
.sc-scribe--circle { left: -0.2em; top: -0.02em; width: calc(100% + 0.48em); height: calc(100% + 0.06em); }
.sc-scribe--circle path { stroke-width: 2.6; }

@keyframes scDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Hero: find, read, then cite, one after another, once. */
.sc-title { line-height: 1.16; }
.sc-title .sc-scribe path { stroke-width: 3.6; animation: scDraw 0.75s cubic-bezier(0.65, 0, 0.35, 1) var(--sd, 0s) both; }

/* Scroll-drawn: armed by the script, drawn when seen. */
.sc-scribe.is-armed path { stroke-dashoffset: 1; transition: stroke-dashoffset 0.85s cubic-bezier(0.65, 0, 0.35, 1) var(--sd, 0.15s); }
.sc-scribe.is-armed.is-drawn path { stroke-dashoffset: 0; }

/* The autopilot console sits on near-black, so its stroke glows a touch. */
.sc-autopilot .sc-scribe path { filter: drop-shadow(0 0 4px rgba(255, 107, 0, 0.45)); }

/* Myths: each card gets a hand-drawn red cross, drawn in reading order. */
.sc-myth h3 { padding-right: 26px; }
.sc-myth-x { --scr: var(--sc-fail); top: 18px; right: 16px; width: 18px; height: 18px; opacity: 0.8; }
.sc-myth-x path { stroke-width: 2.6; }
.sc-myth:nth-child(4n+2) .sc-myth-x { --sd: 0.3s; }
.sc-myth:nth-child(4n+3) .sc-myth-x { --sd: 0.45s; }
.sc-myth:nth-child(4n+4) .sc-myth-x { --sd: 0.6s; }
.sc-myth { transition: transform 0.4s var(--sc-ease), box-shadow 0.4s var(--sc-ease), border-color 0.4s ease; }
.sc-myth:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06); border-color: rgba(239, 68, 68, 0.16); }

/* Score: a loose marker loop around the ring, like a marked test paper,
   in the grade's own colour. Drawn after the ring fills. */
.sc-score-scribe {
  --scr: var(--sc-ring, var(--accent-blue));
  position: absolute;
  inset: -13px;
  width: calc(100% + 26px);
  height: calc(100% + 26px);
  overflow: visible;
  pointer-events: none;
  opacity: 0.65;
}
.sc-score-scribe path { stroke-width: 2.4; }
.sc-score-card .sc-score-wrap { margin: 16px auto 18px; }
.sc-report.is-in .sc-score-scribe path { animation: scDraw 0.9s cubic-bezier(0.65, 0, 0.35, 1) 1.15s both; }

/* Fix these first: each number gets a hand-drawn circle instead of a filled one. */
.sc-top li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M23 5 C 17 1.5, 7 3, 4 11 C 1.5 18, 5 27, 14 28.5 C 23 30, 29.5 23, 28.5 15 C 27.5 8, 21 3.5, 13 5' fill='none' stroke='%230062ff' stroke-width='1.8' stroke-linecap='round' stroke-opacity='0.55'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  width: 30px; height: 30px;
}

/* Hand-drawn marks: a tick, a cross, a nudge. Used in the check pills and
   the running steps. Drawn by site-check.js as inline SVG. */
.sc-mark { width: 12px; height: 12px; flex: 0 0 auto; overflow: visible; }
.sc-mark path { stroke: currentColor; stroke-width: 2.2; }
.sc-step-dot .sc-mark { width: 14px; height: 14px; }
.sc-gate-list .sc-mark { width: 15px; height: 15px; margin-top: 2px; }
.sc-step.is-done .sc-mark path { animation: scDraw 0.45s cubic-bezier(0.65, 0, 0.35, 1) 0.05s both; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .sc-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-myth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sc-summary,
  .sc-top-wrap,
  .sc-close-grid { grid-template-columns: 1fr; }
  .sc-fixall { min-height: 0; }
}
@media (max-width: 640px) {
  .sc-hero { padding: 116px 0 28px; }
  .sc-url-row { flex-direction: column; }
  .sc-go { width: 100%; }
  .sc-form-card { padding: 16px; }
  .sc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-areas,
  .sc-myth-grid { grid-template-columns: 1fr; }
  .sc-score-wrap { width: 168px; height: 168px; }
  .sc-score-num { padding-top: 52px; }
  .sc-score-value { font-size: 3.5rem; }
  .sc-run-card,
  .sc-engines-card,
  .sc-score-card,
  .sc-gate,
  .sc-autopilot { padding: 22px 18px; }
  .sc-engine { grid-template-columns: 30px minmax(0, 1fr); }
  .sc-engine-mark { width: 30px; height: 30px; }
  .sc-engine-status { grid-column: 2; justify-self: start; }
  .sc-group > summary { grid-template-columns: 18px minmax(0, 1fr) 18px; padding: 14px 16px; }
  .sc-group-tally { grid-column: 2; grid-row: 2; justify-content: flex-start; }
  .sc-chev { grid-column: 3; grid-row: 1; }
  .sc-check { padding: 14px 16px 14px 18px; }
  .sc-actions .btn { flex: 1 1 auto; }
  .sc-explain, .sc-myths, .sc-faq { padding: 52px 0; }
  .sc-faq { padding-bottom: 130px; }
}

/* ---------- The report sits inside a dashed frame (Mars, 22 Nov) ----------
   A cut-out look round the whole report once it's open, in the page's blue. */
.sc-report > .container {
  border: 2px dashed rgba(0, 98, 255, 0.35);
  border-radius: 24px;
  padding: 32px 32px 36px;
  background: rgba(255, 255, 255, 0.45);
}
@media (max-width: 768px) {
  .sc-report > .container { border-radius: 18px; padding: 18px 14px 22px; margin: 0 12px; width: auto; }
}
@media print { .sc-report > .container { border: 0; padding: 0; background: none; } }

/* ---------- "Check my site" stands out (Mars, 22 Nov) ----------
   A slow blue-to-orange ring round the card, a bigger field with a globe, a stronger button
   that pulses until the visitor starts typing, and a hand-drawn "Start here" arrow (desktop). */
@property --sc-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.sc-form-wrap { position: relative; margin-top: 30px; }
.sc-form-wrap .sc-form-card,
.sc-form-wrap .sc-form-card:hover {
  margin-top: 0; padding: 26px;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--sc-ang), #0062ff, #5b9bff 30%, #ff6b00 55%, #ffb27a 70%, #0062ff) border-box;
  box-shadow: 0 26px 64px rgba(0, 98, 255, 0.16), 0 6px 18px rgba(15, 23, 42, 0.06);
  animation: scRing 7s linear infinite;
}
@keyframes scRing { to { --sc-ang: 360deg; } }
.sc-form-wrap .sc-url-group { position: relative; }
.sc-form-wrap .sc-url-group input { min-height: 66px; font-size: 1.1rem; padding-left: 52px; }
.sc-form-wrap .sc-url-group label { left: 52px; top: 22px; font-size: 1.02rem; }
.sc-url-ico {
  position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%);
  color: var(--accent-blue); opacity: 0.75; pointer-events: none; z-index: 1;
}
.sc-form-wrap .sc-go {
  position: relative; min-height: 66px; padding: 0 30px; font-size: 1.08rem;
  box-shadow: 0 12px 28px rgba(0, 98, 255, 0.34);
}
.sc-form-wrap .sc-go::after {
  content: ""; position: absolute; inset: -5px; border-radius: inherit; pointer-events: none;
  border: 2px solid rgba(0, 98, 255, 0.5); animation: scGoPulse 2.4s ease-out 2.2s infinite; opacity: 0;
}
.sc-form-card:focus-within .sc-go::after,
.sc-go[disabled]::after { animation: none; opacity: 0; }
@keyframes scGoPulse {
  0% { transform: scale(0.97); opacity: 0.9; }
  70% { transform: scale(1.07, 1.14); opacity: 0; }
  100% { opacity: 0; }
}
.sc-start {
  position: absolute; right: calc(100% + 6px); top: -34px; width: 150px; display: none;
  color: var(--accent-orange); text-align: left;
}
.sc-start span {
  display: block; margin: 0 0 2px 4px; transform: rotate(-4deg);
  font-family: var(--font-mono, monospace); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0; animation: scFadeIn 0.4s ease 2s forwards;
}
.sc-start svg { width: 150px; height: 90px; overflow: visible; }
.sc-start path {
  fill: none; stroke: var(--accent-orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: scDraw 0.8s cubic-bezier(0.65, 0, 0.35, 1) 2.2s forwards;
}
.sc-start path + path { animation-delay: 2.95s; animation-duration: 0.3s; }
@keyframes scFadeIn { to { opacity: 1; } }
@media (min-width: 1180px) { .sc-start { display: block; } }
@media (max-width: 768px) {
  .sc-form-wrap .sc-form-card { padding: 16px; }
  .sc-form-wrap .sc-url-group input { min-height: 58px; }
  .sc-form-wrap .sc-url-group label { top: 18px; }
  .sc-form-wrap .sc-go { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-form-wrap .sc-form-card, .sc-form-wrap .sc-go::after { animation: none; }
  .sc-start span { animation: none; opacity: 1; }
  .sc-start path { animation: none; stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-step.is-running .sc-step-dot { animation: none; border-color: var(--accent-blue); }
  .sc-step.is-done,
  .sc-report.is-in { animation: none; }
  .sc-ring-bar,
  .sc-bar span,
  .sc-chev,
  .sc-fixall { transition: none; }
  .sc-fixall:hover { transform: none; }
  .sc-autopilot-label::before { animation: none; }
  .sc-scribe path,
  .sc-title .sc-scribe path,
  .sc-scribe.is-armed path,
  .sc-score-scribe path,
  .sc-report.is-in .sc-score-scribe path,
  .sc-step.is-done .sc-mark path { animation: none; transition: none; stroke-dashoffset: 0; }
  .sc-myth { transition: none; }
  .sc-myth:hover { transform: none; }
}

/* ---------------------------------------------------------------- print / save as PDF */

@media print {
  .sc-page header,
  .sc-page footer,
  .sc-page .footer-bottom-bar,
  .sc-page .gemini-chat-panel,
  .sc-page .tech-grid,
  .sc-page .glow-orb,
  .sc-hero,
  .sc-run,
  .sc-actions,
  .sc-close-grid,
  .sc-fixall,
  .sc-explain,
  .sc-myths,
  .sc-faq { display: none !important; }
  .sc-report { padding: 0; }
  .sc-page .glass-card,
  .sc-group,
  .sc-cat { box-shadow: none; backdrop-filter: none; background: #ffffff; border-color: #dbe1ea; }
  .sc-top-wrap { grid-template-columns: 1fr; }
  .sc-group { break-inside: avoid-page; }
  .sc-check { break-inside: avoid; }
  .sc-group:not([open]) > .sc-checklist { display: block; }
  .sc-st-pass .sc-fix { display: none; }
  .sc-ring-bar, .sc-bar span { transition: none; }
  .sc-scribe path,
  .sc-score-scribe path,
  .sc-mark path { animation: none !important; transition: none !important; stroke-dashoffset: 0 !important; }
}

/* ===== Dark mode (html[data-theme="dark"]) ===== */
@media screen {
:root[data-theme="dark"] body.sc-page{ --sc-pass:var(--green-text); --sc-warn:var(--orange-text); --sc-fail:var(--red-text); --sc-info:var(--blue-text); }
:root[data-theme="dark"] body.sc-page main :is(a,button,summary,input[type="checkbox"]):focus-visible{ outline-color:var(--dk-focus); }
/* ---- hero form: an s1 card with the slow blue-to-orange ring (kept), no glow ---- */
:root[data-theme="dark"] body.sc-page main .sc-form-wrap .sc-form-card,
:root[data-theme="dark"] body.sc-page main .sc-form-wrap .sc-form-card:hover{
  background:linear-gradient(var(--dk-s1),var(--dk-s1)) padding-box, conic-gradient(from var(--sc-ang), #81aaf7, #a2c6fe 30%, #f39d5e 55%, #f8c9a0 70%, #81aaf7) border-box;
  border-color:transparent; box-shadow:none;
}
:root[data-theme="dark"] body.sc-page main .sc-url-group input{ background:var(--dk-canvas); border-color:var(--dk-control); color:var(--text-primary); }
:root[data-theme="dark"] body.sc-page main .sc-url-group input:focus{ background:var(--dk-canvas); border-color:var(--blue-text); outline:2px solid var(--dk-focus); outline-offset:0; box-shadow:none; }
:root[data-theme="dark"] body.sc-page main .sc-url-group input[aria-invalid="true"]{ border-color:var(--red-text); box-shadow:none; }
:root[data-theme="dark"] body.sc-page main .sc-url-group label{ color:var(--text-muted); }
:root[data-theme="dark"] body.sc-page main .sc-url-group input:focus + label,
:root[data-theme="dark"] body.sc-page main .sc-url-group input:not(:placeholder-shown) + label{ color:var(--blue-text); background:var(--dk-s1); }
:root[data-theme="dark"] body.sc-page main .sc-url-ico{ color:var(--blue-text); }
:root[data-theme="dark"] body.sc-page main .sc-form-wrap .sc-go{ box-shadow:none; }
:root[data-theme="dark"] body.sc-page main .sc-form-wrap .sc-go::after{ border-color:rgba(129,170,247,.55); }
:root[data-theme="dark"] body.sc-page main .sc-start{ color:var(--orange-text); }
:root[data-theme="dark"] body.sc-page main .sc-start path{ stroke:var(--orange-text); }
:root[data-theme="dark"] body.sc-page main :is(.sc-form-error,.sc-gate-error){ background:rgba(234,136,133,.10); border-color:rgba(234,136,133,.45); color:var(--red-text); }
:root[data-theme="dark"] body.sc-page main .sc-strip-list li{ background:rgba(150,175,230,.06); border-color:var(--dk-line-2); color:var(--text-secondary); }   /* existing pills, restyled only */
:root[data-theme="dark"] body.sc-page main .sc-sample-link a{ color:var(--blue-text); }
/* ---- running ---- */
:root[data-theme="dark"] body.sc-page main .sc-timer{ border-color:var(--dk-line-3); }
:root[data-theme="dark"] body.sc-page main .sc-step{ background:rgba(150,175,230,.04); border-color:var(--dk-line-1); }
:root[data-theme="dark"] body.sc-page main .sc-step-dot{ border-color:var(--dk-line-3); }
:root[data-theme="dark"] body.sc-page main .sc-step.is-running{ background:rgba(129,170,247,.08); border-color:rgba(129,170,247,.35); }
:root[data-theme="dark"] body.sc-page main .sc-step.is-running .sc-step-state{ color:var(--blue-text); }
:root[data-theme="dark"] body.sc-page main .sc-step.is-running .sc-step-dot{ border-color:rgba(129,170,247,.25); border-top-color:var(--blue-text); }
:root[data-theme="dark"] body.sc-page main .sc-step.is-done .sc-step-dot{ background:rgba(107,207,157,.16); }
/* ---- report frame, banner ---- */
:root[data-theme="dark"] body.sc-page main .sc-report > .container{ background:rgba(150,175,230,.03); border-color:rgba(129,170,247,.38); }   /* the dashed frame stays; cards inside (s1) lift off it */
:root[data-theme="dark"] body.sc-page main .sc-sample-banner{ background:repeating-linear-gradient(-45deg,rgba(243,157,94,.07) 0 10px,rgba(243,157,94,.03) 10px 20px); border-color:rgba(243,157,94,.5); }
:root[data-theme="dark"] body.sc-page main .sc-sample-banner svg{ color:var(--orange-text); }
/* ---- score card: s1, a 2px inset bar in the grade colour on top, no glow ---- */
:root[data-theme="dark"] body.sc-page main .sc-score-card{ background:var(--dk-s1); box-shadow:inset 0 2px 0 var(--sc-ring,var(--blue-text)); }
:root[data-theme="dark"] body.sc-page main .sc-ring-track{ stroke:rgba(150,175,230,.16); }
:root[data-theme="dark"] body.sc-page main .sc-ring-bar{ filter:none; }
/* ---- engines: rows are plates one level up ---- */
:root[data-theme="dark"] body.sc-page main .sc-engine{ background:var(--dk-s2); border-color:var(--dk-line-2); }
:root[data-theme="dark"] body.sc-page main .sc-engine-mark{ background:rgba(150,175,230,.10); }
:root[data-theme="dark"] body.sc-page main :is(.sc-es-visible .sc-engine-status,.sc-es-visible .sc-engine-mark){ color:var(--green-text); background:rgba(107,207,157,.14); }
:root[data-theme="dark"] body.sc-page main :is(.sc-es-partial,.sc-es-at-risk) :is(.sc-engine-status,.sc-engine-mark){ color:var(--orange-text); background:rgba(243,157,94,.14); }
:root[data-theme="dark"] body.sc-page main :is(.sc-es-blocked .sc-engine-status,.sc-es-blocked .sc-engine-mark){ color:var(--red-text); background:rgba(234,136,133,.14); }
:root[data-theme="dark"] body.sc-page main .sc-es-unknown .sc-engine-status{ color:var(--text-secondary); background:rgba(150,175,230,.10); }
/* ---- category cards and groups ---- */
:root[data-theme="dark"] body.sc-page main :is(.sc-cat,.sc-group){ background:var(--glass-bg); border-color:var(--glass-border); box-shadow:inset 0 1px 0 var(--dk-light-top); }
:root[data-theme="dark"] body.sc-page main :is(.sc-cat-head svg,.sc-group > summary > svg:first-child){ color:var(--blue-text); }
:root[data-theme="dark"] body.sc-page main .sc-bar{ background:rgba(150,175,230,.14); }
/* ---- fix these first: the hand-drawn circle number, the blue card ---- */
:root[data-theme="dark"] body.sc-page main .sc-top li::before{ color:var(--blue-text); background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M23 5 C 17 1.5, 7 3, 4 11 C 1.5 18, 5 27, 14 28.5 C 23 30, 29.5 23, 28.5 15 C 27.5 8, 21 3.5, 13 5' fill='none' stroke='%2381aaf7' stroke-width='1.8' stroke-linecap='round' stroke-opacity='0.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat, rgba(129,170,247,.10); }
/* Fix-all card: the page's conversion card stays the strongest object. A deep tinted blue surface (same blue as the chat user bubble, #183d86), a gently dimmed radial highlight like light mode, a light 1px ring (lighter than the surface), no shadow elevation, no neon. The arrow is a light disc. */
:root[data-theme="dark"] body.sc-page main .sc-fixall{
  background:linear-gradient(160deg,#1e4a98 0%,#183d86 55%,#142f68 100%);
  color:#eef3fe;
  box-shadow:inset 0 0 0 1px rgba(160,190,255,.30), inset 0 1px 0 rgba(255,255,255,.16);
}
:root[data-theme="dark"] body.sc-page main .sc-fixall:hover{
  filter:brightness(1.08);
  box-shadow:inset 0 0 0 1px rgba(180,205,255,.42), inset 0 1px 0 rgba(255,255,255,.20);   /* the translateY(-4px) lift from the base rule stays */
}
:root[data-theme="dark"] body.sc-page main .sc-fixall::after{ background:radial-gradient(circle, rgba(190,210,255,.14), transparent 70%); }   /* base size/position kept, dimmer than light's .22 */
:root[data-theme="dark"] body.sc-page main .sc-fixall-label{ color:#bcd0fa; opacity:1; }   /* 6.4:1 on #183d86; --blue-text would only reach 4.3:1 */
:root[data-theme="dark"] body.sc-page main .sc-fixall-title{ color:#ffffff; }
:root[data-theme="dark"] body.sc-page main .sc-fixall-sub{ color:#d6e1fa; opacity:1; }   /* ~9:1 */
:root[data-theme="dark"] body.sc-page main .sc-fixall-sub > span[aria-hidden="true"]{
  display:inline-block; width:28px; height:28px; line-height:28px; margin-left:8px; vertical-align:middle;
  border-radius:50%; text-align:center; background:#e8eefc; color:#183d86;
  transition:background-color .2s ease;
}
:root[data-theme="dark"] body.sc-page main .sc-fixall:hover .sc-fixall-sub > span[aria-hidden="true"]{ background:#ffffff; }
/* hero badge: the lucide svg inherits currentColor, so the container sets the tint */
:root[data-theme="dark"] body.sc-page .hero-badge{ color:var(--blue-text); }
/* ---- tallies, pills, rows ---- */
:root[data-theme="dark"] body.sc-page main :is(.sc-tally-pass,.sc-st-pass .sc-pill){ color:var(--green-text); background:rgba(107,207,157,.14); }
:root[data-theme="dark"] body.sc-page main :is(.sc-tally-warn,.sc-st-warn .sc-pill){ color:var(--orange-text); background:rgba(243,157,94,.14); }
:root[data-theme="dark"] body.sc-page main :is(.sc-tally-fail,.sc-st-fail .sc-pill){ color:var(--red-text); background:rgba(234,136,133,.14); }
:root[data-theme="dark"] body.sc-page main .sc-st-info .sc-pill{ color:var(--blue-text); background:rgba(129,170,247,.14); }
:root[data-theme="dark"] body.sc-page main .sc-st-na .sc-pill{ color:var(--text-secondary); background:rgba(150,175,230,.10); }
:root[data-theme="dark"] body.sc-page main .sc-checklist{ border-top-color:var(--dk-line-1); }
:root[data-theme="dark"] body.sc-page main .sc-check{ border-bottom-color:var(--dk-line-1); }
:root[data-theme="dark"] body.sc-page main .sc-fix{ background:rgba(129,170,247,.08); border-color:rgba(129,170,247,.25); }
:root[data-theme="dark"] body.sc-page main .sc-source{ color:var(--blue-text); }
:root[data-theme="dark"] body.sc-page main .sc-mythlist li{ background:rgba(107,207,157,.06); border-color:rgba(107,207,157,.40); }
/* ---- email gate ---- */
:root[data-theme="dark"] body.sc-page main .sc-gate{ background:var(--dk-s1); }
:root[data-theme="dark"] body.sc-page main .sc-gate-list svg{ color:var(--green-text); }
:root[data-theme="dark"] body.sc-page main .sc-consent a{ color:var(--blue-text); }
:root[data-theme="dark"] body.sc-page main .sc-consent input{ accent-color:var(--btn-blue); }
/* ---- autopilot: the always-dark console is a STAGE (lit object, tokens, no near-black) ---- */
:root[data-theme="dark"] body.sc-page main .sc-autopilot{ background-color:var(--stage-bot); background-image:linear-gradient(180deg,var(--stage-top),var(--stage-bot)); border-color:var(--stage-edge); box-shadow:inset 0 1px 0 var(--stage-edge-hi); color:var(--text-primary); }
:root[data-theme="dark"] body.sc-page main .sc-autopilot-label{ color:var(--blue-text); }
:root[data-theme="dark"] body.sc-page main .sc-autopilot-label::before{ background:var(--orange-text); box-shadow:0 0 0 2px rgba(243,157,94,.40); }   /* pulseOrange scale/opacity animation stays */
:root[data-theme="dark"] body.sc-page main .sc-autopilot-title{ color:var(--text-primary); }
:root[data-theme="dark"] body.sc-page main :is(.sc-autopilot-lede,.sc-autopilot-mail,.sc-autopilot-list li){ color:var(--text-secondary); }
:root[data-theme="dark"] body.sc-page main .sc-autopilot-mail:hover{ color:var(--text-primary); }
:root[data-theme="dark"] body.sc-page main .sc-autopilot-list strong{ color:var(--text-primary); }
:root[data-theme="dark"] body.sc-page main .sc-autopilot-list svg{ color:var(--blue-text); background:var(--stage-plate); border-color:var(--dk-edge); }
:root[data-theme="dark"] body.sc-page main .sc-autopilot .sc-scribe path{ filter:none; }
/* ---- explainer sections ---- */
:root[data-theme="dark"] body.sc-page main .sc-myths{ background:var(--band-alt); border-top-color:var(--dk-line-1); border-bottom-color:var(--dk-line-1); }
:root[data-theme="dark"] body.sc-page main .sc-area-icon{ color:var(--blue-text); background:rgba(129,170,247,.12); }
:root[data-theme="dark"] body.sc-page main .sc-myth{ background:var(--surface-solid); border-color:var(--glass-border); }
:root[data-theme="dark"] body.sc-page main .sc-myth:hover{ box-shadow:none; border-color:rgba(234,136,133,.40); }
:root[data-theme="dark"] body.sc-page main .sc-myth h3{ text-decoration-color:rgba(234,136,133,.6); }
:root[data-theme="dark"] body.sc-page main :is(.sc-myth a,.sc-qa a){ color:var(--blue-text); }
:root[data-theme="dark"] body.sc-page main .sc-qa{ background:var(--glass-bg); }
/* ---- hand-drawn scribbles: tints ---- */
:root[data-theme="dark"] body.sc-page .sc-scr{ --scr:var(--blue-text); }
:root[data-theme="dark"] body.sc-page .sc-scr--orange{ --scr:var(--orange-text); }
:root[data-theme="dark"] body.sc-page .sc-score-scribe{ --scr:var(--sc-ring,var(--blue-text)); }
}  /* end @media screen */

/* PRINT: never print the dark theme. Restore the light tokens for the page so "Print or save as PDF" stays readable. */
@media print{
  :root[data-theme="dark"] body.sc-page{
    background:#ffffff !important; color:#0f172a;
    --text-primary:#0f172a; --text-secondary:#475569; --text-muted:#94a3b8;
    --surface-solid:#ffffff; --surface-raised:#ffffff; --surface-glass:#ffffff; --surface-glass-strong:#ffffff; --surface-sunken:#f8fafc;
    --hairline:rgba(15,23,42,.06); --hairline-strong:rgba(15,23,42,.12); --tint-1:rgba(15,23,42,.02); --tint-2:rgba(15,23,42,.05);
    --blue-text:#0062ff; --orange-text:#ff6b00; --green-text:#10b981; --red-text:#ef4444; --violet-text:#7c3aed;
    --glass-bg:#ffffff; --glass-border:rgba(15,23,42,.05);
  }
}
