:root {
  --bg: #071711;
  --bg-soft: #10271d;
  --card: #143a2b;
  --card-2: #102f23;
  --line: #31745a;
  --line-soft: rgba(90, 171, 124, 0.22);
  --text: #f5fbf7;
  --muted: #b9d7c5;
  --primary: #4fd38c;
  --primary-2: #1f9d68;
  --accent: #d79946;
  --accent-2: #b6752e;
  --shadow: 0 18px 44px rgba(3, 10, 15, 0.34);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Manrope, "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1180px 600px at 14% -10%, rgba(36, 111, 72, 0.42) 0%, transparent 65%),
    radial-gradient(920px 560px at 100% 10%, rgba(79, 211, 140, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #05100b 100%);
  line-height: 1.55;
}

a {
  color: var(--text);
  opacity: 0.92;
  text-decoration: none;
}

a:hover { opacity: 1; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 23, 17, 0.84);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.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(--text);
  font-weight: 800;
}

.shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 22px 36px;
}

.hero {
  display: block;
  padding-top: 20px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 24px;
  align-items: start;
}

.eyebrow,
.guide-kicker {
  margin-bottom: 12px;
  color: #9de6be;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.3rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2,
.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.lede,
.article-shell p.lede {
  max-width: 46rem;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.55;
}

.muted,
.mini-note,
.article-shell p,
.bullet-list,
.checklist {
  color: var(--muted);
}

.panel,
.stat,
.card-link {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%),
    linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px;
  margin-bottom: 18px;
}

.card-link {
  display: block;
  padding: 18px;
  color: inherit;
}

.card-link:hover {
  text-decoration: none;
  border-color: #55b97f;
}

.card-link h3 {
  color: var(--text);
}

.value-card {
  padding: 18px;
  border-top: 2px solid var(--primary);
  border-radius: 0 0 12px 12px;
  background: rgba(7, 26, 18, 0.5);
}

.value-card > span,
.report-tag {
  color: #8fdbc9;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.value-card h3 {
  margin-top: 9px;
}

.report-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.report-compare article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 211, 140, 0.12), rgba(255, 255, 255, 0.02));
}

.report-compare article:last-child {
  background: linear-gradient(135deg, rgba(215, 153, 70, 0.13), rgba(255, 255, 255, 0.02));
}

.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(143, 219, 201, 0.18);
  box-shadow: 0 16px 34px rgba(2, 10, 14, 0.34);
}

.report-tag.full { 
  color: #f0b866; 
  font-size: 1.25rem;
}

.report-tag {
  font-size: 1.25rem;
}

.report-compare h3 { margin-top: 8px; }
.report-compare p { margin-bottom: 0; }

.method-checks {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 24, 30, 0.42);
}

.scan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 18px;
}

.btn-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #062127;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}

.btn-link.secondary,
button.secondary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fffaf4;
  border-color: rgba(215, 153, 70, 0.38);
}

.btn-link:hover,
button:hover {
  text-decoration: none;
  filter: brightness(1.03);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  min-height: 56px;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #081a21;
  color: var(--text);
  outline: none;
  font-size: 1.02rem;
}

input::placeholder {
  color: rgba(183, 209, 214, 0.64);
}

input:focus {
  border-color: rgba(62, 199, 176, 0.78);
  box-shadow: 0 0 0 3px rgba(62, 199, 176, 0.14);
}

pre {
  margin: 0;
  padding: 14px 16px;
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.55;
  color: #d8eef1;
  background: rgba(7, 24, 30, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.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: #081a21;
  color: #d8eef1;
  font: 0.92rem/1.6 "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-hero,
.result-card-head,
.result-metric > div,
.probe-grid > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-hero {
  margin: -4px -4px 18px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(62, 199, 176, 0.13), rgba(215, 153, 70, 0.09));
}

.result-hero h3 {
  margin-top: 4px;
  font-size: 1.35rem;
}

.result-score {
  color: #96e3d4;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.result-score small {
  color: var(--muted);
  font-size: 0.9rem;
}

.result-score b {
  display: inline-block;
  margin-left: 10px;
  padding: 7px 10px;
  border-radius: 99px;
  background: var(--text);
  color: var(--bg);
  font-size: 1rem;
  vertical-align: middle;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.result-breakdown {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-metric,
.result-card,
.result-block {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(7, 24, 30, 0.54);
}

.result-metric i {
  display: block;
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(183, 209, 214, 0.14);
}

.result-metric i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
}

.result-card p,
.result-block p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-pill {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-pass,
.result-reachable,
.result-allowed { color: #79dfc8; }
.result-warn,
.result-unknown,
.result-error { color: #f0b866; }
.result-fail,
.result-blocked { color: #ff8f99; }

.probe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.probe-grid > div {
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.probe-grid small,
.result-action small {
  width: 100%;
  color: var(--muted);
}

.result-block ol {
  margin-bottom: 0;
  padding-left: 20px;
  color: var(--muted);
}

.result-action {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}

.result-action:last-child { border-bottom: 0; }
.result-action > span { color: var(--accent); font-size: 0.72rem; text-transform: uppercase; }

.result-disclaimer {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.scan-loading {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
}

.scan-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: scan-spin 0.8s linear infinite;
}

@keyframes scan-spin { to { transform: rotate(360deg); } }

.error {
  color: #ff9aa7;
}

.hidden {
  display: none;
}

.grid2,
.grid3,
.stat-grid {
  display: grid;
  gap: 16px;
}

.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid3,
.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  padding: 16px;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  color: #96e3d4;
  font-size: 2rem;
  line-height: 1;
}

.bullet-list,
.checklist {
  margin: 0;
  padding-left: 22px;
  line-height: 1.7;
}

.bullet-list li + li,
.checklist li + li {
  margin-top: 8px;
}

.mini-note {
  margin-top: 12px;
  font-size: 0.95rem;
}

.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(62, 199, 176, 0.08);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.article-shell h1 {
  max-width: 16ch;
  font-size: clamp(2.05rem, 3vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.article-shell h2 {
  font-size: 1.45rem;
}

.callout {
  border-left: 3px solid var(--accent);
}

.faq-item + .faq-item {
  margin-top: 14px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  font-size: 0.95rem;
}

.site-foot {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-foot a {
  color: #96e3d4;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .scan-layout,
  .grid2,
  .grid3,
  .stat-grid,
  .result-breakdown,
  .probe-grid,
  .report-compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  h1,
  .article-shell h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .actions,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn-link,
  button {
    width: 100%;
  }

  .result-grid,
  .result-checks {
    grid-template-columns: 1fr;
  }

  .report-preview-image {
    display: none;
  }

  .result-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}


.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;
}
