/* ============================================================
   Raintree Ads — Tracking Leak Finder page
   Builds on styles.css tokens (abyss palette, serif/mono, hairlines)
   ============================================================ */

:root {
  --warn: oklch(84% 0.13 85);
  --crit: oklch(74% 0.16 25);
  --ok:   oklch(80% 0.14 165);
}

.audit-page { min-height: 100vh; display: flex; flex-direction: column; }
.audit-main { flex: 1; }

/* ---------- hero / form ---------- */
.audit-hero {
  position: relative;
  padding-block: clamp(140px, 18vh, 200px) 60px;
  text-align: center;
}
.audit-hero .h-display { max-width: 820px; margin: 18px auto 0; }
.audit-hero .hero-sub { max-width: 620px; margin: 20px auto 0; }

.audit-proof {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  margin-top: 28px; color: var(--pearl-4);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.audit-proof span { display: inline-flex; align-items: center; gap: 8px; }
.audit-proof i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--bio); font-style: normal;
  box-shadow: 0 0 8px var(--bio);
}

.scan-card {
  max-width: 680px; margin: 44px auto 0; padding: 28px;
  background: linear-gradient(180deg, rgba(15, 34, 54, 0.55), rgba(6, 13, 24, 0.85));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  text-align: left;
}
.scan-row { display: flex; gap: 12px; }
.scan-input {
  flex: 1; min-width: 0;
  background: rgba(3, 8, 15, 0.7); border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--pearl); font: inherit; font-size: 16px; padding: 15px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.scan-input:focus { outline: none; border-color: var(--bio); box-shadow: 0 0 0 3px var(--bio-soft); }
.scan-input::placeholder { color: var(--pearl-4); }

.scan-selects { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.scan-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pearl-4); display: block; margin: 0 0 6px 2px; }
.scan-field { flex: 1; min-width: 180px; }

/* ---------- themed dropdown ---------- */
.rt-select { position: relative; width: 100%; }
.rt-select-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(3, 8, 15, 0.7); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--pearl-2); font: inherit; font-size: 13.5px; padding: 11px 14px;
  text-align: left; cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rt-select-btn:hover { border-color: var(--line-3); }
.rt-select-btn:focus-visible, .rt-select.open .rt-select-btn { outline: none; border-color: var(--bio); box-shadow: 0 0 0 3px var(--bio-soft); }
.rt-select-btn .rt-placeholder { color: var(--pearl-4); }
.rt-chevron { color: var(--pearl-3); flex-shrink: 0; transition: transform 0.2s ease; }
.rt-select.open .rt-chevron { transform: rotate(180deg); color: var(--bio); }

.rt-select-list {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none;
  background: linear-gradient(180deg, rgba(15, 34, 54, 0.97), rgba(6, 13, 24, 0.99));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(125, 230, 240, 0.04) inset;
  max-height: 280px; overflow-y: auto;
  animation: rt-list-in 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes rt-list-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

.rt-option {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--pearl-2); font-size: 13.5px; line-height: 1.4; cursor: pointer;
}
.rt-option.hi { background: var(--bio-soft); color: var(--pearl); }
.rt-option.selected { color: var(--bio); }
.rt-tick { width: 12px; flex-shrink: 0; display: inline-flex; color: var(--bio); }

.scan-submit { margin-top: 18px; width: 100%; justify-content: center; padding: 16px 24px; font-size: 15px; }
.scan-fineprint { margin: 14px 2px 0; font-size: 12px; color: var(--pearl-4); line-height: 1.5; }
.scan-error {
  margin-top: 14px; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid oklch(74% 0.16 25 / 0.4); background: oklch(74% 0.16 25 / 0.08);
  color: var(--pearl-2); font-size: 13.5px;
}

/* ---------- scanning terminal ---------- */
.scan-terminal {
  max-width: 680px; margin: 44px auto 0; padding: 26px 28px;
  background: rgba(3, 8, 15, 0.85); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  font-family: 'JetBrains Mono', monospace; font-size: 13px; text-align: left;
  min-height: 280px;
}
.term-head { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; color: var(--pearl-4); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.term-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--bio); font-style: normal; animation: pulse-dot 1.2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: 0.3; } }
.term-line { color: var(--pearl-3); padding: 4px 0; opacity: 0; animation: term-in 0.3s ease forwards; display: flex; gap: 10px; }
.term-line .t-mark { color: var(--bio); flex-shrink: 0; }
.term-line.t-done .t-mark { color: var(--ok); }
@keyframes term-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.term-cursor { display: inline-block; width: 8px; height: 15px; background: var(--bio); animation: pulse-dot 0.8s step-end infinite; vertical-align: text-bottom; }

/* ---------- report ---------- */
.report { max-width: 900px; margin: 0 auto; padding-block: clamp(120px, 14vh, 160px) 40px; }
.report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.report-meta { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--pearl-4); letter-spacing: 0.06em; line-height: 2; }
.report-meta b { color: var(--pearl-2); font-weight: 500; }

.score-panel {
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
  margin-top: 28px; padding: 32px;
  background: linear-gradient(180deg, rgba(15, 34, 54, 0.5), rgba(6, 13, 24, 0.8));
  border: 1px solid var(--line-2); border-radius: var(--radius-xl);
}
@media (max-width: 640px) { .score-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.dial { position: relative; width: 170px; height: 170px; }
.dial svg { transform: rotate(-90deg); }
.dial-track { stroke: var(--line-2); }
.dial-arc { transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.dial-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dial-score { font-family: 'Instrument Serif', serif; font-size: 52px; line-height: 1; color: var(--pearl); }
.dial-grade { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; color: var(--pearl-4); margin-top: 6px; text-transform: uppercase; }

.score-verdict { font-family: 'Instrument Serif', serif; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; }
.score-verdict em { color: var(--bio); font-style: italic; }
.score-sub { color: var(--pearl-3); font-size: 14.5px; margin-top: 10px; max-width: 480px; }

.limited-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--warn); border: 1px solid oklch(84% 0.13 85 / 0.35); border-radius: 999px; padding: 6px 14px;
}

.cat-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 22px; }
.cat-bar { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(3, 8, 15, 0.4); }
.cat-bar h6 { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pearl-4); font-weight: 500; }
.cat-bar .cat-num { font-family: 'Instrument Serif', serif; font-size: 26px; color: var(--pearl); margin: 6px 0 8px; }
.cat-track { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.cat-fill { height: 100%; border-radius: 2px; background: var(--bio); transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1); }

.leak-banner {
  margin-top: 18px; padding: 22px 26px; border-radius: var(--radius-lg);
  border: 1px solid oklch(74% 0.16 25 / 0.35);
  background: linear-gradient(90deg, oklch(74% 0.16 25 / 0.1), transparent 70%);
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.leak-banner .leak-num { font-family: 'Instrument Serif', serif; font-size: clamp(26px, 3.6vw, 34px); color: var(--crit); }
.leak-banner p { margin: 4px 0 0; color: var(--pearl-3); font-size: 13.5px; max-width: 520px; }

.term-line.t-real { color: var(--pearl-2); }
.term-line.t-real .t-mark { color: var(--bio); }
.term-skip { margin-left: auto; color: var(--bio); font-size: 10.5px; letter-spacing: 0.1em; }
.term-skip:hover { text-decoration: underline; }
.dial-note { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: 0.12em; color: var(--pearl-5); margin-top: 4px; text-transform: uppercase; }
.dial-grade b { font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; }
.dial-center { padding: 0 26px; text-align: center; }

/* ---------- form extras (collapsed by default) ---------- */
.form-extras { margin-top: 14px; }
.form-extras summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pearl-3);
}
.form-extras summary::-webkit-details-marker { display: none; }
.form-extras summary::before { content: '+'; color: var(--bio); font-size: 14px; }
.form-extras[open] summary::before { content: '–'; }
.form-extras summary span { color: var(--pearl-4); text-transform: none; letter-spacing: 0.04em; }
.form-extras summary:hover { color: var(--pearl-2); }
.form-extras > .scan-selects { margin-top: 14px; }

/* ---------- bottom line ("do these 3 things") ---------- */
.bottom-line {
  margin-top: 18px; padding: 24px 28px;
  border: 1px solid oklch(86% 0.16 196 / 0.35); border-left: 3px solid var(--bio); border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--bio-soft), rgba(6, 13, 24, 0.75) 60%);
}
.bl-list { margin: 14px 0 0; padding: 0 0 0 26px; display: flex; flex-direction: column; gap: 12px; }
.bl-list li { font-size: 16.5px; line-height: 1.5; }
.bl-list li::marker { color: var(--bio); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.bl-action { color: var(--pearl); font-weight: 600; border-bottom: 1px solid oklch(86% 0.16 196 / 0.35); padding-bottom: 1px; }
.bl-action:hover { color: var(--bio); border-color: var(--bio); }
.bl-tags { display: inline-flex; gap: 8px; margin-left: 12px; vertical-align: middle; flex-wrap: wrap; }
.bl-tags .impact-chip { margin-top: 0; }
.bl-sub { margin: 14px 0 0; color: var(--pearl-4); font-size: 12.5px; }

/* ---------- checks strip ---------- */
.checks-details {
  margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(6, 13, 24, 0.55); padding: 0;
}
.checks-details summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 20px; font-size: 14px; color: var(--pearl-2); flex-wrap: wrap;
}
.checks-details summary::-webkit-details-marker { display: none; }
.checks-headline b { color: var(--pearl); font-weight: 600; }
.checks-toggle { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bio); flex-shrink: 0; }
.checks-details[open] .checks-toggle { opacity: 0.5; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding: 6px 20px 20px; border-top: 1px solid var(--line); margin-top: 0; padding-top: 16px; }
.checks-col h6 { margin: 0 0 8px; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pearl-4); font-weight: 500; }
.check-row { display: flex; gap: 9px; align-items: baseline; padding: 4px 0; font-size: 13px; color: var(--pearl-3); }
.check-row a { color: inherit; border-bottom: 1px dotted var(--line-3); }
.check-row a:hover { color: var(--pearl); }
.check-ic { width: 14px; flex-shrink: 0; text-align: center; }
.check-row.st-clean .check-ic { color: var(--ok); }
.check-row.st-critical { color: var(--pearl-2); }
.check-row.st-critical .check-ic { color: var(--crit); }
.check-row.st-warning .check-ic { color: var(--warn); }
.check-row.st-verify .check-ic { color: var(--pearl-4); }

/* ---------- spend chips ---------- */
.spend-ask { margin-top: 12px; }
.spend-ask > span { font-size: 13px; color: var(--pearl-3); }
.spend-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.spend-chip {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid oklch(74% 0.16 25 / 0.4); background: transparent; color: var(--pearl-2);
  transition: all 0.15s ease;
}
.spend-chip:hover { border-color: var(--crit); background: oklch(74% 0.16 25 / 0.12); color: var(--pearl); }
.spend-change { color: var(--pearl-4); font-size: 12px; border-bottom: 1px dotted var(--line-3); margin-left: 6px; }
.spend-change:hover { color: var(--bio); }

/* ---------- evidence accordion + misc ---------- */
.evi-details { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(6, 13, 24, 0.45); padding: 0 22px 0; }
.evi-details summary {
  cursor: pointer; list-style: none; padding: 17px 0;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pearl-3);
}
.evi-details summary::-webkit-details-marker { display: none; }
.evi-details summary::before { content: '▸ '; color: var(--bio); }
.evi-details[open] summary::before { content: '▾ '; }
.evi-details summary:hover { color: var(--pearl-2); }
.evi-details > .matrix-wrap { margin-top: 4px; }
.evi-details > .stack-panel { margin-top: 22px; padding-bottom: 24px; }
.th-plain { display: block; font-size: 8.5px; letter-spacing: 0.02em; text-transform: none; color: var(--pearl-5); font-weight: 400; margin-top: 2px; }
.cfg-note { margin: 10px 0 0; font-size: 12.5px; color: var(--pearl-3); }
.stack-chip.custom { color: var(--warn); border-color: oklch(84% 0.13 85 / 0.4); }
.stack-chip.verified { color: var(--ok); border-color: oklch(80% 0.14 165 / 0.4); }
.mini-copy {
  float: right; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; color: var(--bio);
}
.mini-copy:hover { border-color: var(--bio); }
.brief-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.brief-actions .btn { justify-content: center; text-align: center; }
.share-note { font-size: 12px !important; color: var(--pearl-4) !important; margin-top: 14px !important; }

/* ---------- coverage matrix ---------- */
.matrix-wrap { margin-top: 26px; }
.matrix-scroll { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(3, 8, 15, 0.5); }
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.matrix th { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pearl-4); font-weight: 500; padding: 12px 10px; border-bottom: 1px solid var(--line-2); text-align: center; white-space: nowrap; }
.matrix th:first-child { text-align: left; padding-left: 16px; }
.matrix th.custom { color: var(--warn); text-transform: none; letter-spacing: 0.04em; }
.matrix td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.matrix tr:last-child td { border-bottom: none; }
.matrix td:first-child { padding-left: 16px; }
.matrix td a { color: var(--pearl-2); }
.matrix td a:hover { color: var(--bio); }
.matrix-path { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--pearl-4); margin-top: 2px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matrix .cell { text-align: center; font-size: 14px; }
.matrix .cell.ok, .matrix-legend .ok { color: var(--ok); }
.matrix .cell.miss, .matrix-legend .miss { color: var(--crit); }
.matrix .cell.gtm, .matrix-legend .gtm { color: var(--bio); }
.matrix .cell.na, .matrix-legend .na { color: var(--pearl-4); }
.matrix-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--pearl-4); }
.matrix-legend b { font-weight: 400; margin-right: 4px; }

/* ---------- pixel config + stack ---------- */
.stack-panel { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.pixcfg-chips, .stack-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cfg-chip, .stack-chip {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--pearl-3);
}
.cfg-chip.on { color: var(--ok); border-color: oklch(80% 0.14 165 / 0.35); }
.cfg-chip.off { color: var(--warn); border-color: oklch(84% 0.13 85 / 0.4); }
.cfg-chip.bad { color: var(--crit); border-color: oklch(74% 0.16 25 / 0.5); background: oklch(74% 0.16 25 / 0.08); }
.stack-chip.dead { color: var(--crit); border-color: oklch(74% 0.16 25 / 0.4); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- evidence receipts ---------- */
.evi { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(3, 8, 15, 0.75); border: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 12px; overflow-x: auto; }
.evi-label { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bio); margin-bottom: 7px; }
.evi-line { color: var(--pearl-2); white-space: pre; line-height: 1.7; }
.evi-src { color: var(--pearl-4); margin-top: 6px; font-size: 11px; }

/* ---------- fix roadmap chrome ---------- */
.fix-n { color: var(--bio); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; margin-right: 10px; text-transform: uppercase; }
.finding-tags { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.effort-tag { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.08em; color: var(--pearl-3); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.impact-chip { display: inline-block; margin-top: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--crit); border: 1px solid oklch(74% 0.16 25 / 0.35); background: oklch(74% 0.16 25 / 0.07); padding: 5px 12px; border-radius: 999px; }
.em-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 13px; color: var(--bio); border-bottom: 1px solid oklch(86% 0.16 196 / 0.3); padding-bottom: 2px; }
.em-link:hover { border-color: var(--bio); }

/* ---------- dev brief ---------- */
.brief-card {
  margin-top: 26px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid oklch(86% 0.16 196 / 0.3); border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--bio-soft), rgba(6, 13, 24, 0.7));
}
.brief-card h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 22px; margin: 0; }
.brief-card p { color: var(--pearl-3); font-size: 13.5px; margin: 8px 0 0; max-width: 480px; }
.brief-card .btn.copied { background: var(--ok); }

/* ---------- re-scan delta ---------- */
.delta-strip { margin-top: 22px; padding: 16px 20px; border: 1px solid var(--line-2); border-left: 3px solid var(--bio); border-radius: var(--radius); background: rgba(6, 13, 24, 0.6); }
.delta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 13.5px; align-items: baseline; }
.delta-score { font-family: 'Instrument Serif', serif; font-size: 22px; color: var(--pearl); }
.delta-score.up { color: var(--ok); }
.delta-score.down { color: var(--crit); }
.delta-fixed { color: var(--ok); }
.delta-new { color: var(--warn); }
.rescan-note { display: block; margin-top: 8px; font-size: 12px; color: var(--pearl-4); }

/* findings */
.findings { margin-top: 44px; }
.findings-group { margin-top: 30px; }
.findings-group > .eyebrow { margin-bottom: 4px; }
.finding {
  margin-top: 14px; padding: 22px 24px;
  border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius);
  background: rgba(6, 13, 24, 0.6);
}
.finding.sev-critical { border-left-color: var(--crit); }
.finding.sev-warning  { border-left-color: var(--warn); }
.finding.sev-verify   { border-left-color: var(--pearl-4); }
.finding.sev-pass     { border-left-color: var(--ok); }
.finding-top { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.finding h4 { margin: 0; font-size: 16px; font-weight: 600; color: var(--pearl); line-height: 1.4; flex: 1; min-width: 240px; }
.sev-tag { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid; flex-shrink: 0; }
.sev-tag.critical { color: var(--crit); border-color: oklch(74% 0.16 25 / 0.4); }
.sev-tag.warning  { color: var(--warn); border-color: oklch(84% 0.13 85 / 0.4); }
.sev-tag.verify   { color: var(--pearl-3); border-color: var(--line-3); }
.sev-tag.pass     { color: var(--ok); border-color: oklch(80% 0.14 165 / 0.4); }
.finding p { margin: 10px 0 0; color: var(--pearl-3); font-size: 14px; line-height: 1.65; }
.finding .fix { margin-top: 14px; padding: 13px 16px; border-radius: var(--radius-sm); background: var(--bio-soft); border: 1px solid oklch(86% 0.16 196 / 0.25); color: var(--pearl-2); font-size: 13.5px; line-height: 1.6; }
.finding .fix b { color: var(--bio); font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 5px; }

/* CTA */
.report-cta {
  margin-top: 44px; padding: 40px; text-align: center;
  border: 1px solid var(--line-2); border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 34, 54, 0.5), rgba(6, 13, 24, 0.85));
}
.report-cta h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(24px, 3.4vw, 32px); margin: 0; }
.report-cta h3 em { color: var(--bio); }
.report-cta p { color: var(--pearl-3); max-width: 520px; margin: 12px auto 0; font-size: 14.5px; line-height: 1.65; }
.report-cta .btn { margin-top: 22px; }
.report-actions { display: flex; gap: 14px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

.rescan-link { margin-top: 26px; text-align: center; }
.rescan-link a { color: var(--pearl-4); font-size: 13px; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.rescan-link a:hover { color: var(--bio); border-color: var(--bio); }

/* blocked-site state */
.blocked-card { max-width: 620px; margin: 44px auto 0; padding: 36px; text-align: center; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: rgba(6, 13, 24, 0.7); }
.blocked-card h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 26px; margin: 0; }
.blocked-card p { color: var(--pearl-3); font-size: 14.5px; }

/* mini footer */
.audit-footer { border-top: 1px solid var(--line); margin-top: 90px; padding: 28px 0; }
.audit-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--pearl-4); font-size: 12.5px; }
.audit-footer a { color: var(--pearl-3); }
.audit-footer a:hover { color: var(--bio); }

/* ---------- your-sites dashboard ---------- */
.site-dash {
  max-width: 680px; margin: 26px auto 0; padding: 22px 24px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(6, 13, 24, 0.55);
}
.dash-row { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dash-row:last-child { border-bottom: none; padding-bottom: 2px; }
.site-dash > .eyebrow { margin-bottom: 4px; }
.dash-site { flex: 1; min-width: 0; }
.dash-site b { display: block; font-weight: 600; font-size: 14.5px; color: var(--pearl); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-date { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--pearl-4); }
.spark { flex-shrink: 0; opacity: 0.9; }
.dash-score { font-family: 'Instrument Serif', serif; font-size: 26px; min-width: 58px; text-align: right; }
.dash-delta { font-family: 'JetBrains Mono', monospace; font-size: 10px; margin-left: 5px; vertical-align: 3px; }
.dash-delta.up { color: var(--ok); }
.dash-delta.down { color: var(--crit); }
.dash-actions { display: flex; align-items: center; gap: 8px; }
.dash-btn { padding: 8px 16px; font-size: 12.5px; }
.dash-x { background: none; border: none; color: var(--pearl-5); font-size: 16px; padding: 4px 6px; line-height: 1; }
.dash-x:hover { color: var(--crit); }
@media (max-width: 560px) { .dash-row .spark { display: none; } }

/* ---------- competitor compare ---------- */
.compare-card {
  margin-top: 30px; padding: 26px 28px;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: rgba(6, 13, 24, 0.6);
}
.compare-sub { color: var(--pearl-3); font-size: 13.5px; margin: 10px 0 0; max-width: 560px; }
.compare-form { display: flex; gap: 10px; margin-top: 16px; max-width: 520px; }
.compare-form .scan-input { padding: 12px 16px; font-size: 14.5px; }
@media (max-width: 520px) { .compare-form { flex-direction: column; } }
.compare-scroll { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(3, 8, 15, 0.5); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 420px; }
.compare-table th { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pearl-2); padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: center; }
.compare-table th:first-child { text-align: left; }
.compare-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--pearl-3); text-align: center; }
.compare-table td:first-child { text-align: left; color: var(--pearl-2); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.win { color: var(--ok); font-weight: 600; }
.you-tag { font-size: 8.5px; color: var(--bio); border: 1px solid oklch(86% 0.16 196 / 0.35); border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: 1px; }
.compare-note { font-size: 12px; color: var(--pearl-4); margin: 12px 0 0; }
.compare-verdict { margin: 14px 0 10px; font-size: 14.5px; color: var(--pearl-2); }

/* misc links */
.method-link { color: var(--bio); border-bottom: 1px dotted oklch(86% 0.16 196 / 0.4); }
.method-link:hover { border-bottom-style: solid; }
.rescan-link { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; align-items: baseline; }
.rescan-link .rescan-note { width: 100%; text-align: center; }

/* ---------- print ---------- */
@media print {
  body { background: #fff !important; color: #111 !important; }
  .nav, .audit-footer, .report-cta, .brief-card, .rescan-link, .calendly-badge-widget, .caustic-bg { display: none !important; }
  .report { padding-top: 20px; }
  .score-panel, .finding, .cat-bar, .leak-banner { background: #fff !important; border-color: #ddd !important; }
  .finding h4, .dial-score, .score-verdict, .cat-bar .cat-num { color: #111 !important; }
  .finding p, .score-sub, .report-meta, .finding .fix { color: #333 !important; }
  .finding .fix { background: #f4f7f9 !important; border-color: #cfe3ea !important; }
}
