:root {
  --bg-dark: #070a14;
  --bg-card: #0f1526;
  --bg-surface: #151b2b;
  --brand-primary: #3b82f6;
  --brand-accent: #00f0ff;
  --brand-blue: #60a5fa;
  --brand-danger: #ef4444;
  --brand-warn: #f59e0b;
  --brand-success: #10b981;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-grid-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(0, 240, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 15%, rgba(59, 130, 246, 0.08), transparent 40%),
    linear-gradient(to right, rgba(30, 41, 59, 0.32) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.32) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.mono {
  font-family: var(--font-mono);
}

/* Navbar */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 10, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e293b;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  color: #030712;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.78rem;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-accent);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brand-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.btn:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-accent), #38bdf8);
  color: #04101f;
  padding: 12px 20px;
  font-size: 0.94rem;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.24);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-ghost {
  background: rgba(21, 27, 43, 0.85);
  color: #e2e8f0;
  border-color: #334155;
  padding: 9px 14px;
  font-size: 0.82rem;
}

.btn-ghost:hover {
  border-color: var(--brand-accent);
  color: #ffffff;
}

/* Main Views */
main {
  flex: 1;
}

.hero-wrap {
  padding: 54px 0 42px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-accent);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  max-width: 820px;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 1.04rem;
  color: #cbd5e1;
  max-width: 720px;
  margin-bottom: 26px;
}

/* Search Card */
.audit-search-card {
  background: rgba(15, 21, 38, 0.94);
  border: 1px solid #293548;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.audit-form-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.audit-input {
  flex: 1;
  min-width: 0;
  background: #070b16;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 10px;
  padding: 13px 15px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.audit-input::placeholder {
  color: #64748b;
}

.audit-input.invalid {
  border-color: var(--brand-danger);
}

.sample-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.sample-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.sample-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
  background: #151b2b;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
}

.sample-chip:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.trust-micro-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.trust-micro-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.audit-error {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
  font-size: 0.86rem;
}

.audit-error.visible {
  display: block;
}

/* Value Cards & FAQ on Search Page */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.cap-card {
  background: rgba(15, 21, 38, 0.85);
  border: 1px solid #243045;
  border-radius: var(--radius-md);
  padding: 20px;
}

.cap-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.cap-card h2 {
  font-size: 1.04rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.cap-card p {
  font-size: 0.87rem;
  color: #94a3b8;
}

.faq-section {
  margin-top: 38px;
}

.section-heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-card {
  background: rgba(15, 21, 38, 0.72);
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.faq-card h3 {
  font-size: 0.94rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.faq-card p {
  font-size: 0.84rem;
  color: #94a3b8;
}

/* Loading View */
.loading-view {
  display: none;
  padding: 60px 0;
}

.loading-view.active {
  display: block;
}

.loading-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid #293548;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.spinner-ring {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--brand-accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.loading-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 22px;
}

.loading-steps {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loading-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #64748b;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(7, 10, 20, 0.7);
  border: 1px solid #1e293b;
}

.loading-steps li.active {
  color: #ffffff;
  border-color: var(--brand-accent);
}

.loading-steps li.done {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

/* Report Section */
.report-section {
  display: none;
  padding: 32px 0 60px;
}

.report-section.visible {
  display: block;
}

.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid #293548;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 18px;
}

.report-target h2 {
  font-size: 1.3rem;
  color: #ffffff;
  font-family: var(--font-mono);
  word-break: break-all;
}

.report-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 3px;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.score-card,
.compliance-card {
  background: var(--bg-card);
  border: 1px solid #293548;
  border-radius: var(--radius-md);
  padding: 20px;
}

.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.score-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-num {
  font-size: 2.7rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  margin: 6px 0;
}

.grade-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.grade-A { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.grade-B { background: rgba(59, 130, 246, 0.16); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.grade-C { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.grade-D, .grade-F { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.45); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.pillar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #090e1b;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.pillar-item span:first-child {
  color: #e2e8f0;
  font-weight: 600;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.sev-critical { background: rgba(239, 68, 68, 0.18); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.45); }
.sev-high { background: rgba(249, 115, 22, 0.18); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.45); }
.sev-medium { background: rgba(245, 158, 11, 0.18); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.45); }
.sev-low { background: rgba(59, 130, 246, 0.16); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.sev-pass { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }

/* Plain-English Verdict Banner */
.plain-verdict-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 21, 38, 0.96));
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.plain-verdict-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.plain-verdict-q {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.plain-verdict-a {
  font-size: 0.9rem;
  color: #e2e8f0;
}

/* Stat Strip */
.stats-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-tile {
  background: var(--bg-card);
  border: 1px solid #293548;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.stat-tile span {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.stat-tile strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: #ffffff;
  word-break: break-word;
}

/* Report Tabs */
.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(21, 27, 43, 0.85);
  border: 1px solid #334155;
  color: #94a3b8;
  cursor: pointer;
}

.tab-btn.active {
  background: rgba(0, 240, 255, 0.14);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Filter Row & Finding Cards */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: #151b2b;
  border: 1px solid #334155;
  color: #94a3b8;
  cursor: pointer;
}

.filter-btn.active {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background: rgba(0, 240, 255, 0.1);
}

.findings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finding-card {
  background: var(--bg-card);
  border: 1px solid #293548;
  border-left: 4px solid #334155;
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.finding-card[data-sev="critical"] { border-left-color: var(--brand-danger); }
.finding-card[data-sev="high"] { border-left-color: #f97316; }
.finding-card[data-sev="medium"] { border-left-color: var(--brand-warn); }
.finding-card[data-sev="low"] { border-left-color: var(--brand-blue); }
.finding-card[data-sev="pass"] { border-left-color: var(--brand-success); }

.finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.finding-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.finding-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.compliance-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #334155;
  padding: 2px 8px;
  border-radius: 6px;
}

.finding-desc {
  font-size: 0.89rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.finding-impact {
  font-size: 0.84rem;
  color: #e2e8f0;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 10px;
}

.finding-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.finding-expected {
  background: rgba(10, 16, 30, 0.92);
  border: 1px solid #293548;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.finding-box-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 5px;
}

.finding-expected-code {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  line-height: 1.5;
  color: #cbd5e1;
  word-break: break-word;
}

.finding-actual {
  background: rgba(6, 10, 20, 0.94);
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.finding-actual.is-issue {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(30, 18, 10, 0.45);
}

.finding-actual.is-pass {
  border-color: rgba(16, 185, 129, 0.4);
}

.cookie-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.cookie-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #334155;
}

.cookie-pill.ok {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.cookie-pill.warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.cookie-pill.bad {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
}

.finding-actual-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 5px;
}

.finding-actual-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  line-height: 1.5;
  color: #f8fafc;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.finding-evidence {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-dark);
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #cbd5e1;
  margin-bottom: 8px;
  word-break: break-word;
}

.finding-fix {
  font-size: 0.83rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--brand-blue);
  padding: 8px 12px;
  border-radius: 4px;
}

.finding-fix code {
  font-family: var(--font-mono);
  color: #ffffff;
  word-break: break-all;
}

.finding-fix-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.copy-fix-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #bfdbfe;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-fix-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
}

/* TLS Chain & Raw Headers Panel */
.inspect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.inspect-card {
  background: var(--bg-card);
  border: 1px solid #293548;
  border-radius: var(--radius-md);
  padding: 18px;
}

.inspect-card.full-span {
  grid-column: 1 / -1;
}

.inspect-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--brand-accent);
  margin-bottom: 4px;
}

.inspect-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.cert-chain-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-node {
  background: #080c18;
  border: 1px solid #243045;
  border-left: 3px solid var(--brand-accent);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
}

.cert-node-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.cert-node-title {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #ffffff;
}

.cert-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #cbd5e1;
}

.headers-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.headers-list li {
  background: #080c18;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  word-break: break-word;
}

.hdr-name {
  color: var(--brand-accent);
  font-weight: 700;
}

.hdr-val {
  color: #e2e8f0;
}

.hop-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #080c18;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.hop-status {
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

/* Ready-to-Paste Server Configs Panel */
.configs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.config-card {
  background: var(--bg-card);
  border: 1px solid #293548;
  border-radius: var(--radius-md);
  padding: 18px;
}

.config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.config-head h3 {
  font-size: 0.96rem;
  color: #ffffff;
}

.config-code {
  background: #060a14;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Guide Grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid #293548;
  border-radius: var(--radius-md);
  padding: 18px;
}

.guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.guide-head h3 {
  color: #ffffff;
  font-size: 0.96rem;
}

.guide-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-accent);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

.guide-card p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.guide-example {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: #070b16;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 8px 10px;
  color: #93c5fd;
  word-break: break-word;
}

/* Raw JSON Box */
.json-box {
  background: #060a14;
  border: 1px solid #293548;
  border-radius: var(--radius-md);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #cbd5e1;
  overflow-x: auto;
  max-height: 560px;
  overflow-y: auto;
}

/* CTA Banner */
.cta-banner {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-banner h3 {
  color: #ffffff;
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.cta-banner p {
  font-size: 0.88rem;
  color: #cbd5e1;
}

/* Footer */
.site-footer {
  border-top: 1px solid #1e293b;
  background: #04060c;
  padding: 24px 0;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-row a {
  color: var(--brand-accent);
  text-decoration: none;
}

@media (max-width: 900px) {
  .summary-grid,
  .inspect-grid,
  .configs-grid,
  .capabilities-grid,
  .plain-verdict-row,
  .finding-compare,
  .faq-grid,
  .guide-grid,
  .pillar-grid,
  .cert-meta-grid {
    grid-template-columns: 1fr;
  }
  .stats-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .audit-form-row {
    flex-direction: column;
  }
  .nav-links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .spinner-ring {
    animation: none;
  }
}

/* Print / Save PDF Styling */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }
  .bg-grid-fixed,
  .site-nav,
  #search-view,
  #loading-view,
  .export-actions,
  .report-tabs,
  .filter-row,
  .copy-fix-btn,
  [data-report-panel="json"],
  [data-report-panel="guide"],
  .cta-banner,
  .site-footer {
    display: none !important;
  }
  .report-section {
    display: block !important;
  }
  .tab-panel {
    display: block !important;
    margin-bottom: 24px;
  }
  .score-card,
  .compliance-card,
  .plain-verdict-card,
  .finding-card,
  .inspect-card,
  .config-card,
  .report-toolbar,
  .stat-tile {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
  }
  .finding-title,
  .stat-tile strong,
  .score-num,
  .plain-verdict-a,
  .cert-node-title,
  .config-head h3,
  h1, h2, h3 {
    color: #111827 !important;
  }
  .finding-card,
  .cert-node,
  .config-card {
    break-inside: avoid;
  }
  .finding-impact,
  .finding-expected,
  .finding-actual,
  .finding-actual.is-issue,
  .finding-actual.is-pass,
  .finding-evidence,
  .cert-node,
  .headers-list li,
  .hop-item,
  .config-code,
  .pillar-item {
    background: #f3f4f6 !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
  }
  .finding-actual-label,
  .finding-box-label,
  .hdr-name,
  .plain-verdict-q {
    color: #0369a1 !important;
  }
  .finding-actual-code,
  .finding-expected-code,
  .hdr-val,
  .cert-meta-grid {
    color: #111827 !important;
  }
}
