:root {
  --bg: #0d1126;
  --bg-soft: #171d3b;
  --panel: #242b57;
  --panel-2: #1b2247;
  --ink: #f6f7ff;
  --muted: #c1c8ea;
  --line: #5969b1;
  --line-soft: rgba(137, 150, 229, 0.24);
  --brand: #9a8cff;
  --brand-dark: #7364e6;
  --brand-soft: #cbc3ff;
  --accent: #d0a24e;
  --accent-dark: #b57a33;
  --tertiary: #8e9ad8;
  --tertiary-dark: #6773b5;
  --tertiary-soft: #c5cdf1;
  --good: #79dfc8;
  --good-bg: rgba(121, 223, 200, 0.14);
  --warn: #f0b866;
  --warn-bg: rgba(240, 184, 102, 0.14);
  --bad: #ff9aa7;
  --bad-bg: rgba(255, 154, 167, 0.14);
  --shadow: 0 18px 44px rgba(3, 10, 15, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1180px 600px at 14% -10%, rgba(115, 100, 230, 0.42) 0%, transparent 65%),
    radial-gradient(900px 540px at 100% 10%, rgba(154, 140, 255, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #090d1d 100%);
  line-height: 1.55;
}
a {
  color: var(--ink);
  opacity: 0.92;
  text-decoration: none;
}

a:hover { opacity: 1; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(13, 17, 38, 0.86);
  border-bottom: 1px solid var(--line);
}

.topbar, .shell { max-width: 1160px; margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}

.brand { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.01em; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.nav a {
  color: var(--muted);
  font-size: 1rem;
}

.nav a.section-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a.audit-link {
  padding-bottom: 2px;
}

.nav a.active {
  color: var(--ink);
  font-weight: 800;
}

.shell { padding: 30px 22px 36px; }

.hero {
  display: block;
  padding-top: 20px;
}

.panel, .result-card, .result-block, .metric {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%),
    linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.panel { padding: 20px; margin-bottom: 18px; }

.section-title {
  margin-top: 0;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--brand-soft);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1, h2, h3 { margin: 0 0 10px; line-height: 1.08; }
h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.3rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.7rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
h3 { font-size: 1.08rem; }
.lede, .muted, p, li, small, label { font-family: "Segoe UI", sans-serif; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 46rem; line-height: 1.55; }
.mini-note, .muted { color: var(--muted); }
.scan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.scan-badges span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(114, 174, 230, 0.1);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.bullet-list { margin: 0; padding-left: 18px; color: var(--muted); }
.bullet-list li { margin-bottom: 10px; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--muted); font-size: 0.95rem; }
input {
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0a1c2e;
  color: var(--ink);
  font: inherit;
  margin-bottom: 14px;
}

input::placeholder { color: rgba(183, 209, 214, 0.64); }

input:focus {
  border-color: rgba(114, 174, 230, 0.82);
  box-shadow: 0 0 0 3px rgba(114, 174, 230, 0.16);
  outline: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
}
button, .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #062127;
  padding: 12px 18px;
  font: 700 1rem "Segoe UI", sans-serif;
  cursor: pointer;
  text-decoration: none;
}
button.secondary, .btn-link.secondary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fffaf4;
  border-color: rgba(208, 162, 78, 0.38);
}

button:hover, .btn-link:hover { filter: brightness(1.03); }

.error {
  color: var(--bad);
  font-family: "Segoe UI", sans-serif;
  margin-top: 10px;
}
.hidden { display: none; }
.scan-output {
  width: 100%;
  height: 310px;
  min-height: 310px;
  max-height: 310px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a1c2e;
  color: #dbeaf7;
  font: 0.92rem/1.6 "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.scan-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.method-checks {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(120, 150, 191, 0.42);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(120, 150, 191, 0.16), rgba(8, 22, 38, 0.48));
}
.report-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.report-preview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.report-preview-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 4px;
  border-radius: 12px;
  border: 1px solid rgba(120, 150, 191, 0.28);
  box-shadow: 0 16px 34px rgba(2, 10, 14, 0.34);
}
.report-tag {
  color: var(--brand-soft);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.report-tag.full {
  color: var(--accent);
}
.report-compare h3 { margin-top: 8px; }
.report-compare p { margin-bottom: 0; }
.scope-note {
  margin: 2px 2px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.9rem;
}
.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Segoe UI", sans-serif;
  color: var(--muted);
}
.loading span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 22px 0 0 rgba(114, 174, 230, 0.35), 44px 0 0 rgba(114, 174, 230, 0.18);
  animation: pulse 1.1s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(4px); opacity: 0.72; }
}
.result-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.score {
  text-align: right;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--brand);
  font-size: 46px;
}
.score small { font-size: 18px; }
.score b { display: block; font-size: 18px; color: var(--ink); }
.metric-grid, .card-grid, .two-col {
  display: grid;
  gap: 14px;
}
.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.grid3,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.grid3,
.stat-grid {
  margin-top: 18px;
}

.stat {
  padding: 18px;
}

.stat strong {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-soft);
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.guide-card {
  display: block;
  padding: 18px;
  border: 1px solid rgba(120, 150, 191, 0.4);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(120, 150, 191, 0.16), rgba(8, 22, 38, 0.58));
}
.guide-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.guide-card p { margin: 0; color: var(--muted); }
code {
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #0a1c2e;
  color: var(--brand-soft);
}
.metric, .result-card, .result-block { padding: 16px; }
.metric {
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(8, 22, 38, 0.58);
}
.result-block {
  border-color: rgba(120, 150, 191, 0.34);
  background: linear-gradient(180deg, rgba(120, 150, 191, 0.12), rgba(8, 22, 38, 0.58));
}

.faq-item + .faq-item {
  margin-top: 14px;
}
.metric div, .head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.metric i {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(183, 209, 214, 0.14);
  margin: 10px 0 6px;
}
.metric i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font: 700 11px "Segoe UI", sans-serif;
  text-transform: uppercase;
}
.pill.pass { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.fail { background: var(--bad-bg); color: var(--bad); }
.pill.unknown { background: rgba(183, 209, 214, 0.14); color: var(--muted); }
.action {
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.action:first-child { border-top: 0; padding-top: 0; }
.action span {
  font: 700 11px "Segoe UI", sans-serif;
  text-transform: uppercase;
  color: var(--accent);
}
.site-foot {
  padding: 10px 4px 0;
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
}
@media (max-width: 860px) {
  .scan-layout, .metric-grid, .card-grid, .two-col, .guide-grid, .report-compare, .grid3, .stat-grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; gap: 12px; align-items: flex-start; }
  .nav { flex-wrap: wrap; }
  .score { font-size: 38px; }
  button, .btn-link { width: 100%; }
}


.report-preview-image {
  cursor: zoom-in;
}

.report-preview-image:focus-visible {
  outline: 3px solid var(--accent, #d65f32);
  outline-offset: 4px;
}

.report-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(20, 15, 17, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.report-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.report-lightbox img {
  display: block;
  max-width: min(94vw, 1500px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  cursor: zoom-out;
}

.report-lightbox-open {
  overflow: hidden;
}
