/* ============================================================
   CyberAEO Rating - Stylesheet
   Theme: CyberChaperone dark tech
   ============================================================ */

:root {
  --bg-900:    #080c14;
  --bg-800:    #0d1424;
  --bg-700:    #111d35;
  --bg-glass:  rgba(13, 20, 36, 0.7);
  --border:    rgba(99, 179, 237, 0.12);
  --border-bright: rgba(99, 179, 237, 0.3);
  --blue:      #3b82f6;
  --blue-light:#60a5fa;
  --cyan:      #06b6d4;
  --green:     #00ff88;
  --yellow:    #f59e0b;
  --red:       #ef4444;
  --purple:    #8b5cf6;
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --text-dim:  #64748b;
  --gold:      #f59e0b;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
  --glow-blue: 0 0 20px rgba(59,130,246,0.25);
  --glow-green:0 0 20px rgba(0,255,136,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-900);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-800); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── Animated background grid ──────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 20s linear infinite;
}
@keyframes grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.bg-orb {
  position: fixed; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0;
}
.bg-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.08), transparent 70%);
  top: -200px; right: -100px;
  animation: orb-float 18s ease-in-out infinite;
}
.bg-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.06), transparent 70%);
  bottom: -150px; left: -100px;
  animation: orb-float 22s ease-in-out infinite reverse;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(30px, -40px); }
  66%       { transform: translate(-20px, 20px); }
}

/* ── Layout ────────────────────────────────────────────────── */
.site-wrapper { position: relative; z-index: 1; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Nav ──────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky; top: 0; z-index: 100;
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 12px 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.logo-wrap { display: flex; align-items: center; text-decoration: none; }
.logo-image { height: 50px; width: auto; display: block; }

.nav-menu {
  display: flex; list-style: none; align-items: center;
  gap: 1.5rem; flex-wrap: nowrap; margin: 0; padding: 0;
}
.nav-link {
  font-size: 16px; font-weight: 500; color: #0A0E27;
  text-decoration: none; white-space: nowrap;
  transition: color 0.15s;
}
.nav-link:hover { color: #0066ff; }
.nav-phone {
  font-size: 16px; font-weight: 600; color: #0066ff;
  white-space: nowrap; text-decoration: none; transition: color 0.15s;
}
.nav-phone:hover { color: #0052cc; }
.cta-button {
  display: inline-block; padding: 8px 16px;
  font-size: 16px; font-weight: 600;
  background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
  color: #fff; border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,102,255,0.3);
  transition: all 0.3s; white-space: nowrap; text-decoration: none;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,102,255,0.4); color: #fff; }

.mobile-menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.mobile-menu-toggle span {
  display: block; width: 28px; height: 3px;
  background: #0A0E27; border-radius: 2px; transition: 0.3s;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 20px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--blue-light); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--blue-light) 70%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 em { font-style: normal; color: var(--gold); -webkit-text-fill-color: var(--gold); }

.hero-sub {
  font-size: 1.1rem; color: var(--text-muted); max-width: 580px;
  margin: 0 auto 48px;
}

/* ── Scan form ─────────────────────────────────────────────── */
.scan-form-wrap {
  max-width: 680px; margin: 0 auto;
}

.scan-form {
  display: flex; gap: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 6px 6px 6px 20px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow), var(--glow-blue);
  transition: box-shadow 0.3s;
}
.scan-form:focus-within {
  box-shadow: var(--shadow), 0 0 0 2px rgba(59,130,246,0.4), var(--glow-blue);
}
.scan-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 1rem; font-family: 'Inter', sans-serif;
}
.scan-input::placeholder { color: var(--text-dim); }
.scan-btn {
  background: linear-gradient(135deg, var(--blue), #6366f1);
  border: none; border-radius: 10px; color: #fff;
  padding: 14px 28px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  letter-spacing: 0.03em;
}
.scan-btn:hover  { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(59,130,246,0.4); }
.scan-btn:active { transform: translateY(0); }
.scan-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-note {
  margin-top: 14px; color: var(--text-dim); font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.form-note svg { opacity: 0.5; }

/* ── Trust bar ─────────────────────────────────────────────── */
.trust-bar {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 32px; margin-top: 60px; padding-top: 40px;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.875rem;
}
.trust-item .icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(59,130,246,0.1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* ── Scanning state ─────────────────────────────────────────── */
#scan-panel { display: none; }
#scan-panel.active { display: block; }

.scan-progress-wrap {
  max-width: 700px; margin: 60px auto;
  background: var(--bg-glass); border: 1px solid var(--border-bright);
  border-radius: var(--radius); padding: 40px 40px 32px;
  backdrop-filter: blur(16px); box-shadow: var(--shadow);
}

.scan-header { text-align: center; margin-bottom: 36px; }
.scan-domain-tag {
  display: inline-block;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.3);
  color: var(--cyan); padding: 4px 14px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600; font-family: monospace;
  margin-bottom: 12px;
}
.scan-header h2 {
  font-size: 1.5rem; margin-bottom: 6px;
}
.scan-header p { color: var(--text-muted); font-size: 0.9rem; }

.scan-checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.scan-check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02); border: 1px solid transparent;
  font-size: 0.9rem; color: var(--text-muted);
  transition: all 0.3s;
}
.scan-check-item.checking {
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.05);
  color: var(--text);
}
.scan-check-item.done {
  border-color: rgba(0,255,136,0.2);
  background: rgba(0,255,136,0.04);
  color: var(--text);
}
.scan-check-item.fail {
  border-color: rgba(239,68,68,0.2);
  background: rgba(239,68,68,0.04);
  color: var(--text-muted);
}
.check-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.check-icon.pending  { background: rgba(100,116,139,0.2); color: var(--text-dim); }
.check-icon.spin     { background: rgba(59,130,246,0.2); color: var(--blue-light); animation: spin 1s linear infinite; }
.check-icon.ok       { background: rgba(0,255,136,0.15); color: var(--green); }
.check-icon.no       { background: rgba(239,68,68,0.15); color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

.progress-bar-wrap {
  height: 4px; background: rgba(255,255,255,0.06);
  border-radius: 2px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.progress-label {
  text-align: center; margin-top: 10px;
  font-size: 0.8rem; color: var(--text-dim);
}

/* ── Report panel ──────────────────────────────────────────── */
#report-panel { display: none; }
#report-panel.active { display: block; animation: fade-up 0.5s ease; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.report-top {
  background: linear-gradient(135deg, var(--bg-800), var(--bg-700));
  border: 1px solid var(--border-bright);
  border-radius: var(--radius); padding: 40px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 40px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.score-circle-wrap { flex-shrink: 0; }
.score-circle {
  width: 140px; height: 140px; position: relative;
}
.score-circle svg { transform: rotate(-90deg); }
.score-circle .track { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 10; }
.score-circle .fill  {
  fill: none; stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 380; stroke-dashoffset: 380;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1);
}
.score-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-number { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.score-pct    { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.report-summary { flex: 1; min-width: 240px; }
.report-domain {
  font-family: monospace; font-size: 0.85rem;
  color: var(--cyan); background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  display: inline-block; padding: 3px 12px; border-radius: 20px; margin-bottom: 12px;
}
.report-grade {
  font-size: 3.5rem; font-weight: 900; line-height: 1;
  margin-bottom: 6px;
}
.report-label {
  font-size: 1.1rem; font-weight: 600; margin-bottom: 10px;
}
.report-tagline { color: var(--text-muted); font-size: 0.9rem; }
.report-scanned { color: var(--text-dim); font-size: 0.78rem; margin-top: 8px; }

.report-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; transition: all 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #6366f1);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.35); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-bright);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }
.btn-gold {
  background: linear-gradient(135deg, #d97706, var(--gold));
  color: #000; font-weight: 700;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,0.4); }

/* ── Radar chart ─────────────────────────────────────────────── */
.categories-grid { margin-bottom: 24px; }

.radar-wrap {
  display: flex; justify-content: center; align-items: center;
  padding: 16px 0 40px;
}
.radar-svg {
  filter: drop-shadow(0 0 40px rgba(0,255,136,0.22)) drop-shadow(0 0 80px rgba(59,130,246,0.12));
  overflow: visible;
  width: 100%; height: auto;
  max-width: 440px;
}

.cat-checks { display: flex; flex-direction: column; gap: 8px; }
.cat-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.83rem;
}
.cat-check-dot {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  margin-top: 2px; display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
}
.cat-check-dot.pass     { background: rgba(0,255,136,0.15); color: var(--green); }
.cat-check-dot.fail     { background: rgba(239,68,68,0.12); color: var(--red); }
.cat-check-dot.override { background: rgba(99,179,237,0.15); color: #60a5fa; font-size: 0.65rem; }
.cat-check-label { font-weight: 600; color: var(--text); }
.cat-check-detail { color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; }
.override-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 600;
  background: rgba(99,179,237,0.12); color: #60a5fa;
  border: 1px solid rgba(99,179,237,0.25); border-radius: 4px;
  padding: 1px 5px; margin-left: 6px; vertical-align: middle;
  letter-spacing: 0.03em; text-transform: uppercase;
}

/* ── Findings / missed items ────────────────────────────────── */
.findings-section {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  backdrop-filter: blur(12px); margin-bottom: 24px;
}
.findings-section h3 {
  font-size: 1rem; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.findings-section h3 .badge {
  background: rgba(239,68,68,0.15); color: var(--red);
  padding: 2px 10px; border-radius: 20px; font-size: 0.75rem;
}

.finding-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.finding-item:last-child { border-bottom: none; padding-bottom: 0; }
.finding-icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.finding-text .finding-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 3px; }
.finding-text .finding-desc  { color: var(--text-muted); font-size: 0.82rem; }
.finding-impact {
  margin-left: auto; flex-shrink: 0;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.impact-high   { background: rgba(239,68,68,0.15);  color: var(--red); }
.impact-medium { background: rgba(245,158,11,0.15); color: var(--yellow); }

/* ── CTA section ────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,179,237,0.2);
  border-radius: var(--radius); padding: 48px 40px;
  text-align: center; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.04), transparent 60%);
  animation: cta-glow 6s ease-in-out infinite;
}
@keyframes cta-glow {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}
.cta-section > * { position: relative; z-index: 1; }

.cta-logo {
  height: 48px; margin-bottom: 20px;
  background: rgba(255,255,255,0.92);
  padding: 8px 16px;
  border-radius: 10px;
  display: inline-block;
}
.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 40%, var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cta-section p { color: var(--text-muted); max-width: 540px; margin: 0 auto 32px; font-size: 0.95rem; }
.cta-platform-line {
  font-size: 0.95rem; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 28px;
  line-height: 1.65;
}
.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.cta-features {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 24px;
  margin-top: 32px;
}
.cta-feat {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.85rem;
}
.cta-feat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ── Competitor comparison teaser ───────────────────────────── */
.compare-strip {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 32px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 24px; backdrop-filter: blur(12px);
}
.compare-strip-text { flex: 1; }
.compare-strip-text h4 { font-size: 0.95rem; margin-bottom: 4px; }
.compare-strip-text p { color: var(--text-muted); font-size: 0.83rem; }
.compare-mini-scores {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.mini-score {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px; text-align: center;
}
.mini-score-num { font-size: 1.1rem; font-weight: 800; }
.mini-score-lbl { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; }

/* ── Symptom list ───────────────────────────────────────────── */
.symptom-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.symptom-item:last-child { border-bottom: none; }
.symptom-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.symptom-dot.impact-high   { background: var(--red);    box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.symptom-dot.impact-medium { background: var(--yellow);  box-shadow: 0 0 8px rgba(245,158,11,0.4); }
.symptom-dot.impact-low    { background: var(--text-dim); }
.symptom-text { flex: 1; font-size: 0.9rem; color: var(--text); line-height: 1.5; }
.symptom-impact {
  flex-shrink: 0; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 4px;
}

/* ── Symptom cards grid ─────────────────────────────────────── */
.symptom-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.symptom-card {
  background: rgba(8, 14, 28, 0.9);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.symptom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.impact-border-high   { border-left-color: var(--red); }
.impact-border-medium { border-left-color: var(--yellow); }
.impact-border-low    { border-left-color: var(--text-dim); }

.symptom-card-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.symptom-card-icon { font-size: 0.9rem; }
.symptom-impact-tag {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 4px;
  margin-left: auto;
}
.symptom-card-text {
  font-size: 0.92rem; color: var(--text);
  line-height: 1.58; font-weight: 500;
}

/* ── Radar tooltip ──────────────────────────────────────────── */
.radar-tooltip {
  position: fixed;
  background: rgba(8, 12, 20, 0.97);
  border: 1px solid rgba(99,179,237,0.3);
  border-radius: 10px;
  padding: 14px 18px;
  pointer-events: none;
  z-index: 9999;
  min-width: 195px;
  max-width: 255px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(99,179,237,0.06);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.radar-tooltip.active { opacity: 1; transform: translateY(0); }
.rtt-name {
  font-size: 0.88rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.rtt-score {
  font-size: 1.6rem; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2; margin-bottom: 8px;
}
.rtt-desc {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.5;
}

/* ── Findings CTA block ─────────────────────────────────────── */
.findings-cta-wrap {
  margin-top: 28px; padding: 28px 24px;
  background: rgba(59,130,246,0.05);
  border: 1px solid rgba(99,179,237,0.15);
  border-radius: 12px; text-align: center;
}
.findings-lock-icon { font-size: 1.6rem; margin-bottom: 12px; }
.findings-cta-wrap h4 {
  font-size: 1rem; font-weight: 700; margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 40%, var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.findings-cta-wrap p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; }
.findings-cta-note { margin-top: 12px; font-size: 0.76rem; color: var(--text-dim); }

/* ── (legacy) Findings blur / lock overlay ──────────────────── */
.findings-blur-wrap { position: relative; }
.findings-blur-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(8,12,20,0) 0%,
    rgba(8,12,20,0.6) 30%,
    rgba(8,12,20,0.92) 100%
  );
  border-radius: var(--radius-sm);
  z-index: 10;
}

.findings-blur-inner {
  text-align: center;
  padding: 28px 24px;
  max-width: 420px;
}

.findings-lock-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(245,158,11,0.5));
  animation: lock-pulse 3s ease-in-out infinite;
}
@keyframes lock-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(245,158,11,0.4)); }
  50%       { filter: drop-shadow(0 0 20px rgba(245,158,11,0.8)); }
}

.findings-blur-inner h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text);
}

.findings-blur-inner p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.findings-blur-note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Print / export styles ──────────────────────────────────── */
.print-header { display: none; }

@media print {
  @page { margin: 14mm 12mm; size: letter portrait; }

  /* Hide everything except the report */
  .bg-grid, .bg-orb-1, .bg-orb-2, canvas,
  .site-header, .hero, .scan-form-wrap, #about-aeo,
  .trust-bar, #scan-panel, .report-actions, .cta-section,
  .findings-cta-wrap, .compare-strip,
  footer { display: none !important; }

  html, body { background: #fff !important; color: #1a1a1a !important; font-size: 11pt; }

  /* Show the branded print header on page 1 */
  .print-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 2px solid #0066ff;
    page-break-after: avoid;
  }
  .print-header img { height: 32px; }
  .print-title { font-size: 9pt; color: #64748b; text-align: right; }

  /* Score top section — keep together, no orphan */
  .report-top {
    background: #f8fafc !important; border: 1px solid #e2e8f0 !important;
    box-shadow: none !important; break-inside: avoid; margin-bottom: 12px;
  }

  /* Category cards — compact, avoid breaking mid-card */
  .categories-grid { margin-bottom: 12px; }
  .cat-card {
    background: #f8fafc !important; border: 1px solid #e2e8f0 !important;
    box-shadow: none !important; break-inside: avoid;
  }

  /* Findings — start on new page if needed, never break mid-card */
  .findings-section {
    background: #f8fafc !important; border: 1px solid #e2e8f0 !important;
    break-before: auto;
  }
  .symptom-card, .symptom-item { break-inside: avoid; }

  /* Text colors */
  h2, h3, h4 { color: #1a1a1a !important; -webkit-text-fill-color: #1a1a1a !important; }
  .report-grade { -webkit-text-fill-color: unset !important; }
  .report-tagline, .report-scanned { color: #64748b !important; }
  .score-circle .fill { stroke: #0066ff !important; }
  .score-number { color: #0066ff !important; -webkit-text-fill-color: #0066ff !important; }

  #report-panel { display: block !important; }

  /* Copyright line at the very bottom of the last page */
  .print-footer {
    display: block !important;
    position: fixed; bottom: 8mm; left: 0; right: 0;
    text-align: center; font-size: 8pt; color: #94a3b8;
    border-top: 1px solid #e2e8f0; padding-top: 6px;
  }
}

/* ── Error state ────────────────────────────────────────────── */
.error-box {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius); padding: 24px 28px;
  color: var(--text); display: none; margin-top: 16px;
  animation: fade-up 0.3s ease;
}
.error-box.active { display: flex; align-items: center; gap: 14px; }
.error-box-icon { font-size: 1.4rem; }
.error-box-msg  { font-size: 0.9rem; }
.error-box-msg strong { display: block; margin-bottom: 4px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .mobile-menu-toggle { display: flex; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-menu.active { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-link, .nav-phone { padding: 10px 24px; display: block; font-size: 0.95rem; }
  .cta-button { margin: 10px 24px; display: inline-block; }
  .site-header { position: relative; }
}

@media (max-width: 700px) {
  .scan-form { flex-direction: column; padding: 16px; gap: 10px; }
  .scan-btn  { width: 100%; justify-content: center; }
  .report-top { flex-direction: column; gap: 24px; }
  .score-circle-wrap { margin: 0 auto; }
  .report-actions { flex-direction: column; align-items: stretch; }
  .report-actions .btn { text-align: center; justify-content: center; }
  .cta-section { padding: 32px 20px; }
  .scan-progress-wrap { padding: 28px 20px; }
  .findings-section { padding: 24px 18px; }
  .findings-cta-wrap { padding: 22px 16px; }
  .symptom-item { gap: 10px; }
  .symptom-impact { display: none; }
  .radar-svg { max-width: 340px; }
  h1 { font-size: clamp(1.6rem, 6vw, 2.8rem); }
}

/* ── Admin technical report modal ───────────────────────────── */
.ar-section {
  margin-bottom: 28px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(99,179,237,0.09);
}
.ar-section:last-child { border-bottom: none; margin-bottom: 0; }
.ar-section-title {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: #60a5fa;
  font-weight: 700; margin-bottom: 14px;
}
.ar-cat-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 14px;
}
.ar-cat-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem; font-weight: 700;
}
.ar-signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.ar-signal {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 8px; border: 1px solid;
}
.ar-signal.pass    { background: rgba(0,255,136,0.04); border-color: rgba(0,255,136,0.15); }
.ar-signal.fail    { background: rgba(239,68,68,0.04); border-color: rgba(239,68,68,0.12); }
.ar-signal.neutral { background: rgba(99,179,237,0.04); border-color: rgba(99,179,237,0.15); }
.ar-signal-wide { grid-column: span 2; }
.ar-signal-icon { font-size: 0.85rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.ar-signal.pass .ar-signal-icon { color: #00ff88; }
.ar-signal.fail .ar-signal-icon { color: #ef5350; }
.ar-signal-label { font-size: 0.82rem; font-weight: 600; color: #e2e8f0; }
.ar-signal-sub   { font-size: 0.74rem; color: #64748b; margin-top: 2px; }
.ar-checks-table { display: flex; flex-direction: column; gap: 8px; }
.ar-check-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: 8px; border: 1px solid;
}
.ar-check-row.pass { background: rgba(0,255,136,0.03);  border-color: rgba(0,255,136,0.1); }
.ar-check-row.fail { background: rgba(239,68,68,0.04); border-color: rgba(239,68,68,0.12); }
.ar-check-status {
  font-size: 0.95rem; font-weight: 700; flex-shrink: 0;
  width: 20px; text-align: center; margin-top: 1px;
}
.ar-check-body { flex: 1; min-width: 0; }
.ar-check-top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px; flex-wrap: wrap;
}
.ar-check-key {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: #94a3b8; background: rgba(255,255,255,0.05);
  padding: 1px 6px; border-radius: 4px;
}
.ar-check-weight {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 700; margin-left: auto;
}
.ar-check-label  { font-size: 0.86rem; font-weight: 600; color: #e2e8f0; margin-bottom: 3px; }
.ar-check-detail { font-size: 0.78rem; color: #64748b; line-height: 1.5; }
.ar-override-tag {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  background: rgba(99,179,237,0.12); color: #60a5fa;
  border: 1px solid rgba(99,179,237,0.25); border-radius: 4px;
  padding: 1px 6px; letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .ar-signal-wide { grid-column: span 1; }
}

/* ── Facebook Messenger / in-app browsers ───────────────────── */
/* Force safe rendering - in-app browsers strip some CSS */
@media (max-width: 480px) {
  body { -webkit-text-size-adjust: 100%; }
  .scan-input { font-size: 16px; } /* prevents iOS auto-zoom on focus */
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 32px; }
  .report-summary { min-width: 0; }
  .report-domain { font-size: 1rem; word-break: break-all; }
}
