/* ============================================================
   vibeship.eu — /audit page
   ============================================================ */

.audit {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.audit-hero {
  text-align: center;
  margin-bottom: 56px;
}

.audit-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.05;
}

.audit-sub {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto;
}

.audit-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 0 0 1px var(--accent-glow);
}

.audit-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audit-input-row {
  display: flex;
  gap: 8px;
}

#url {
  flex: 1;
  font-family: var(--mono);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--code-bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

#url:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#url:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}

.audit-hint {
  font-size: 13px;
  color: var(--text-mute);
  margin: 12px 0 0;
}

.audit-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
}

/* ---------- tier panel (above the form) ---------- */

.audit-tiers {
  margin-bottom: 48px;
}

.audit-tiers-h {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.audit-tiers-sub {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 24px;
  max-width: 60ch;
}

.tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}

/* The "runs now" tier gets a soft accent border to draw the eye. The
   others get a flat border so the visual hierarchy reads top-down. */
.tier-1 { border-color: rgba(124, 92, 255, 0.45); }

.tier-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tier-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.tier-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.tier-tag-on    { color: var(--green); border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.08); }
.tier-tag-paid  { color: var(--amber); border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.08); }
.tier-tag-you   { color: var(--text-dim); }
.tier-tag-future { color: var(--text-mute); }

.tier p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.tier-checks {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--text-dim);
}

.tier-checks li {
  padding-left: 14px;
  position: relative;
}

.tier-checks li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--text-mute);
}

.tier-checks li strong {
  color: var(--text);
  font-weight: 600;
}

.tier-checks code {
  font-size: 11.5px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
}

.audit-tiers-foot {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--text-mute);
}

.audit-tiers-foot a {
  color: var(--accent);
  text-decoration: none;
}

.audit-tiers-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .tier-head h3 { font-size: 14px; }
  .tier p, .tier-checks { font-size: 12.5px; }
}

/* ---------- results ---------- */

.audit-results {
  animation: fadeIn 220ms ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.audit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}

#audit-url {
  font-family: var(--mono);
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.status-pending { background: var(--bg-card); color: var(--text-mute); border: 1px solid var(--border); }
.status-running { background: rgba(124, 92, 255, 0.12); color: var(--accent); border: 1px solid rgba(124, 92, 255, 0.4); }
.status-completed { background: rgba(74, 222, 128, 0.12); color: var(--green); border: 1px solid rgba(74, 222, 128, 0.4); }
.status-failed { background: rgba(239, 68, 68, 0.12); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.4); }

.audit-checks {
  display: grid;
  gap: 20px;
}

.audit-section {
  display: grid;
  gap: 10px;
}

.section-h {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  font-weight: 600;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.audit-section-list {
  display: grid;
  gap: 10px;
}

.check {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.check-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.check-detail {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

.check-detail .k { color: var(--text-mute); }
.check-detail .v { color: var(--text); }

/* ok / warn / miss inline badges */
.check-detail .ok   { color: var(--green); font-weight: 600; }
.check-detail .warn { color: var(--amber); font-weight: 600; }
.check-detail .miss { color: var(--red);   font-weight: 600; }
.check-detail .muted { color: var(--text-mute); }

/* generic bullet lists inside check-detail */
.check-detail ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 4px;
}
.check-detail ul li {
  font-size: 12px;
  padding: 3px 0;
}
.check-detail ul li code {
  color: var(--text);
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11.5px;
}
.check-detail .hdr-ok code { border-left: 2px solid var(--green); }
.check-detail .hdr-miss code { border-left: 2px solid var(--red); }
.check-detail .hdr-miss { opacity: 0.85; }
.check-detail .hdr-miss-tag {
  font-size: 10.5px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 6px;
}
.check-detail .hdr-val { color: var(--text-dim); font-size: 11.5px; }

/* issues panel for seo-meta */
.check-detail .issues {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}
.check-detail .issue {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
}
.check-detail .issues.ok .issue,
.check-detail .issues.ok {
  color: var(--green);
}

/* dns-basics: compact pass/fail rows for MX/SPF/DKIM/DMARC */
.check-detail .dns-list {
  margin-top: 6px;
}
.check-detail .dns-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.check-detail .dns-row strong {
  width: 90px;
  font-size: 12px;
}

.check-error {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  margin-top: 6px;
}

.check-running {
  color: var(--text-mute);
  font-style: italic;
}

/* ---------- lighthouse details ---------- */

.lh-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

.lh-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}

.lh-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.metric-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.metric {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-k {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

.metric-v {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.metric-u {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-mute);
  margin-left: 2px;
}

.metric-band {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.metric-blurb {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-dim);
}

.metric-band-good { border-left-color: var(--green); }
.metric-band-good .metric-band { color: var(--green); }

.metric-band-warn { border-left-color: var(--amber); }
.metric-band-warn .metric-band { color: var(--amber); }

.metric-band-poor { border-left-color: var(--red); }
.metric-band-poor .metric-band { color: var(--red); }

.metric-band-unknown { border-left-color: var(--border-2); }

/* ---------- owasp-passive renderer ---------- */

.owasp-passive {
  display: grid;
  gap: 6px;
}

.owasp-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.owasp-row .k {
  min-width: 64px;
  display: inline-block;
}

.owasp-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 70px;
  display: grid;
  gap: 2px;
  font-size: 12px;
}

.owasp-list li code {
  font-size: 11.5px;
}

.owasp-findings {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 70px;
  display: grid;
  gap: 2px;
  font-size: 12px;
}

.owasp-findings li code {
  font-size: 11.5px;
}

/* ---------- active-scan trigger + results (T2, opt-in) ---------- */

.active-scan-card {
  background: var(--bg-card);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 16px;
}

.active-scan-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.active-scan-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.active-scan-head .tier-tag-on {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.active-scan-body {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
}

.active-scan-body ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 4px;
}

.active-scan-body ul li {
  display: grid;
  grid-template-columns: 80px 80px 1fr;
  gap: 8px;
  font-size: 11.5px;
  padding: 4px 0;
  border-top: 1px solid var(--border);
}

.active-scan-body ul li:first-child {
  border-top: 0;
}

/* Findings list inside the owasp-active CheckResult card. Distinct
   from .active-scan-body ul which is the trigger card layout. */
.owasp-active-findings {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.owasp-active-findings li {
  display: grid;
  grid-template-columns: 70px 100px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  align-items: baseline;
}

.owasp-active-findings li:first-child {
  border-top: 0;
}

.owasp-active-findings li code {
  font-size: 11.5px;
}

.owasp-active-findings .sev-critical,
.owasp-active-findings .sev-high {
  color: var(--red);
}

.owasp-active-findings .sev-medium {
  color: var(--amber);
}

.owasp-active-findings .sev-low {
  color: var(--text-mute);
}

.owasp-active-findings .cat {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  font-weight: 600;
}

.active-scan-body .sev-critical { color: var(--red); font-weight: 600; }
.active-scan-body .sev-high     { color: var(--red); }
.active-scan-body .sev-medium   { color: var(--amber); }
.active-scan-body .sev-low      { color: var(--text-mute); }
.active-scan-body .cat {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

.active-scan-btn {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: background 120ms ease;
}

.active-scan-btn:hover {
  background: var(--accent-glow);
}

.active-scan-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.metric-band-unknown .metric-band { color: var(--text-mute); }

.lh-raw {
  margin-top: 10px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  max-height: 240px;
  overflow: auto;
  white-space: pre;
}

@media (max-width: 600px) {
  .lh-toggle { margin-left: 0; }
}

.audit-summary {
  margin-top: 24px;
  padding: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-dim);
}

.audit-summary strong {
  color: var(--text);
}

/* ---------- mobile ---------- */
@media (max-width: 600px) {
  .audit-input-row {
    flex-direction: column;
  }
  #submit { width: 100%; }
}

/* ============================================================
   Friendly report — single-column, centered, lab-report feel
   ============================================================ */

.report-body {
  /* The .audit container is already 760px max-width and centered. */
}

/* ---- hero (grade + verdict) ---- */

.report-hero {
  text-align: center;
  padding: 40px 0 56px;
}

.report-hero .lead {
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 28px;
  font-weight: 600;
}

.grade-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 32px;
  background: radial-gradient(circle at 30% 30%, rgba(74, 222, 128, 0.20), rgba(74, 222, 128, 0.05));
  color: var(--green);
  border: 3px solid var(--green);
  box-shadow: 0 0 80px rgba(74, 222, 128, 0.15);
}

/* The grade circle used to also show a "0–100" number below the
   letter. That triple-element layout (letter + score + "/100") inside
   a 168px circle was cramped and hard to read. Now the circle shows
   the letter only — the numeric score is still in Mongo and in the
   grade object, but the page surfaces it as part of the verdict
   sentence and the per-finding cards rather than competing with the
   letter for space inside the ring. */
.grade-circle .grade-letter {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.grade-circle.warn {
  background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.20), rgba(245, 158, 11, 0.05));
  color: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 80px rgba(245, 158, 11, 0.15);
}

.grade-circle.bad {
  background: radial-gradient(circle at 30% 30%, rgba(239, 68, 68, 0.20), rgba(239, 68, 68, 0.05));
  color: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 80px rgba(239, 68, 68, 0.15);
}

.report-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
  color: var(--text);
}

.report-hero .verdict {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.counts {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-mute);
}

.counts > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.counts .n {
  font-weight: 700;
  font-size: 22px;
  font-family: var(--mono);
  color: var(--text-dim);
}

.counts .n.ok   { color: var(--green); }
.counts .n.warn { color: var(--amber); }
.counts .n.bad  { color: var(--red); }

/* ---- running hero (shown while audit is in progress) ---- */

.report-running { padding: 40px 0 32px; }

.running-meter {
  width: 240px;
  height: 6px;
  background: var(--bg-elev);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 16px;
}

.running-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.running-count {
  font-size: 13px;
  color: var(--text-mute);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.report-running h1 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--text);
}

.progress-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prog-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  transition: background 0.2s ease;
}

.prog-row:last-child { border-bottom: none; }

.prog-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  background: var(--bg-elev);
  color: var(--text-mute);
}

.prog-running .prog-icon {
  background: rgba(124, 92, 255, 0.15);
  color: var(--accent);
  /* Subtle pulse to indicate "in flight" */
  animation: prog-pulse 1.4s ease-in-out infinite;
}

@keyframes prog-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.prog-done .prog-icon   { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.prog-failed .prog-icon { background: rgba(239, 68, 68, 0.15);  color: var(--red); }

.prog-name { color: var(--text); }
.prog-status {
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--mono);
}

.prog-running .prog-status { color: var(--accent); }
.prog-done .prog-status   { color: var(--green); }
.prog-failed .prog-status { color: var(--red); }

/* ---- section headers ---- */

.report-section-h {
  font-size: 24px;
  font-weight: 700;
  margin: 64px 0 24px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.report-section-h.muted-section {
  color: var(--text-dim);
  font-size: 18px;
  margin-top: 48px;
  font-weight: 600;
}

/* ---- finding cards ---- */

.finding {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
}

.finding .ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--mono);
}

.finding .ico { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.finding-bad  .ico { background: rgba(239, 68, 68, 0.12);  color: var(--red); }
.finding-warn .ico { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.finding-ok   .ico { background: rgba(74, 222, 128, 0.12); color: var(--green); }

.finding h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.finding p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

.finding p.why {
  color: var(--text-mute);
  font-size: 13px;
  margin-top: 10px;
  font-style: italic;
}

/* Source tag on a finding — distinguishes findings produced by the
   automated site audit ("audit") from those injected by the combined
   /report.html flow from the user's POC-readiness quiz answers
   ("quiz"). Kept small and subtle so it doesn't compete with the
   card's headline or severity icon. */
.finding .finding-source {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.finding .finding-source.source-quiz {
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent, #7c5cff);
  border: 1px solid rgba(124, 92, 255, 0.30);
}
.finding .finding-source.source-audit {
  background: rgba(154, 160, 170, 0.08);
  color: var(--text-mute, #9aa0aa);
  border: 1px solid rgba(154, 160, 170, 0.20);
}

/* ---- CTA block ---- */

.cta-block {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.10), rgba(91, 141, 239, 0.10));
  border: 1px solid rgba(124, 92, 255, 0.30);
  border-radius: var(--radius);
  padding: 32px;
  margin: 56px 0 0;
  text-align: center;
}

.cta-block-positive {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(91, 141, 239, 0.08));
  border-color: rgba(74, 222, 128, 0.25);
}

.cta-block h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.cta-block p {
  color: var(--text-dim);
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.55;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: filter 0.15s ease;
}

.cta-btn:hover { filter: brightness(1.1); }

/* ---- full check (expandable scans) ---- */

.report-scans {
  margin-top: 56px;
}

.scans-hint {
  color: var(--text-mute);
  font-size: 14px;
  margin-bottom: 18px;
}

.scans-list {
  /* The accordion list. Each .scan is a <details>. */
}

.scan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  overflow: hidden;
}

.scan[open] {
  background: var(--bg-elev);
  border-color: var(--border-2);
}

.scan > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.scan > summary::-webkit-details-marker { display: none; }
.scan > summary::marker { display: none; }

.scan-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
}

.scan-status.status-bad {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.scan-status.status-warn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

.scan-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.scan .chev {
  color: var(--text-mute);
  font-size: 16px;
  transition: transform 0.15s ease;
}

.scan[open] .chev {
  transform: rotate(90deg);
}

.scan-detail {
  padding: 0 18px 16px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-family: var(--mono);
  white-space: pre-wrap;
  line-height: 1.65;
  max-height: 320px;
  overflow: auto;
}

/* ---- mobile: tighten everything for narrow screens ---- */
@media (max-width: 600px) {
  .grade-circle {
    width: 132px;
    height: 132px;
    font-size: 68px;
  }
  .counts { gap: 18px; font-size: 12px; }
  .counts .n { font-size: 18px; }
  .finding { padding: 18px 18px; grid-template-columns: 36px 1fr; gap: 12px; }
  .finding .ico { width: 36px; height: 36px; font-size: 18px; }
  .finding h3 { font-size: 16px; }
  .finding p { font-size: 14px; }
  .report-section-h { font-size: 20px; margin: 48px 0 20px; }
  .cta-block { padding: 24px 18px; }
}

/* ---- active-scan trigger (T2 opt-in) — sits between CTA and scans ---- */

.active-scan-card {
  margin: 28px 0 0;
  padding: 24px 26px;
  background: var(--bg-elev);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
}

.active-scan-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.active-scan-head h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.tier-tag-on {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.15);
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.active-scan-body {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

.active-scan-body strong {
  color: var(--text);
}

.active-scan-btn {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.active-scan-btn:hover:not(:disabled) { filter: brightness(1.1); }
.active-scan-btn:disabled { opacity: 0.6; cursor: wait; }

.check-error {
  margin-top: 10px;
  color: var(--red);
  font-size: 13px;
}
