@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400;500&family=Instrument+Sans:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg: #0a0b0e;
  --surface: #111318;
  --surface2: #181c24;
  --surface3: #1a1e2a;
  --border: #1e2330;
  --border-soft: rgba(30,35,48,0.6);
  --accent: #3b82f6;
  --accent2: #4af0b8;
  --accent3: #f04a6e;
  --accent4: #a855f7;
  --text: #e8eaf2;
  --muted: #6b7280;
  --muted2: #9ca3af;
  --warn: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3050; border-radius: 3px; }

/* ─── HEADER ─── */
.header {
  background: rgba(17,19,24,0.95);
  border-bottom: 1px solid var(--border);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo-block { display: flex; align-items: center; gap: 14px; min-width: 180px; }
.agency-dot {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.agency-dot svg { width: 20px; height: 20px; }
.agency-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.agency-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.header-center { flex: 1; display: flex; justify-content: center; }
.report-meta {
  text-align: right;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--muted);
  min-width: 180px;
}
.report-meta strong { color: var(--accent); font-size: 12px; }

.mobile-menu-btn {
  display: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.mobile-menu-btn:hover { background: #20263a; }

/* ─── TABS ─── */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  flex-wrap: nowrap;
}
.tab-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.tab-btn.active { background: var(--accent); color: white; font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ─── HERO ─── */
.hero {
  padding: 60px 48px 48px;
  background: linear-gradient(135deg, #0d1117 0%, #111827 60%, #0a0b0e 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(74,240,184,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.3);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  max-width: 600px;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--accent); }
.hero-desc {
  color: var(--muted);
  max-width: 540px;
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.health-score-badge {
  position: absolute;
  top: 48px; right: 48px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 32px;
}
.hs-score {
  font-family: 'Syne', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: #f04a6e;
  line-height: 1;
}
.hs-score span { font-size: 22px; color: var(--muted); }
.hs-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}
.hs-grade {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: #f04a6e;
  font-weight: 500;
  margin-top: 4px;
}

/* ─── PAGE ─── */
.page { padding: 40px 48px; max-width: 1500px; margin: 0 auto; }
.section { margin-bottom: 56px; }
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── KPI CARDS ─── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.kpi-grid-4 { grid-template-columns: repeat(4, 1fr); }
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.kpi-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-2px); }
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.kpi-card:hover::before { transform: scaleX(1); }
.kpi-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.kpi-delta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.kpi-delta.up { color: var(--accent2); }
.kpi-delta.down { color: var(--accent3); }
.kpi-delta.warn { color: var(--warn); }
.kpi-sub { color: var(--muted); font-size: 11px; margin-top: 4px; }

/* ─── CHARTS ─── */
.chart-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split-grid-uneven { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}
.card-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.chart-tall { position: relative; height: 420px; margin-top: 8px; }
.chart-mid { position: relative; height: 340px; margin-top: 8px; }
.chart-short { position: relative; height: 300px; margin-top: 8px; }

/* ─── ALERTS ─── */
.alerts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.alert-item:hover { border-color: #2a3050; }
.alert-item.crit { border-left: 3px solid var(--accent3); }
.alert-item.warn { border-left: 3px solid var(--warn); }
.alert-item.good { border-left: 3px solid var(--accent2); }
.alert-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.alert-icon.crit { background: rgba(240,74,110,0.12); }
.alert-icon.warn { background: rgba(245,158,11,0.12); }
.alert-icon.good { background: rgba(74,240,184,0.12); }
.alert-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.alert-body { font-size: 12px; color: var(--muted); line-height: 1.65; }

/* ─── TABLE ─── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.perf-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.perf-table thead th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  background: var(--surface);
}
.perf-table thead th:hover { color: var(--text); }
.sort-icon { opacity: 0.4; font-size: 10px; margin-left: 3px; }
.perf-table thead th.sorted .sort-icon { opacity: 1; color: var(--accent); }
.perf-table tbody tr { border-bottom: 1px solid var(--border-soft); transition: background 0.15s; }
.perf-table tbody tr:hover { background: var(--surface2); }
.perf-table td { padding: 13px 14px; font-size: 13px; vertical-align: middle; }
.perf-name { font-weight: 500; color: var(--text); white-space: nowrap; }
.perf-name small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.mono { font-family: 'Space Grotesk', sans-serif; font-size: 12px; }

.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.legend-row {
  display: flex; gap: 14px;
  font-size: 11px;
  font-family: 'Space Grotesk', sans-serif;
  flex-wrap: wrap;
}

.freq-bar-wrap { display: flex; align-items: center; gap: 8px; }
.freq-bar { width: 60px; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.freq-bar-fill { height: 100%; border-radius: 3px; }

.status-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-block;
}
.s-live { background: rgba(74,240,184,0.1); color: var(--accent2); border: 1px solid rgba(74,240,184,0.25); }
.s-fatigue { background: rgba(245,158,11,0.1); color: var(--warn); border: 1px solid rgba(245,158,11,0.25); }
.s-kill { background: rgba(240,74,110,0.1); color: var(--accent3); border: 1px solid rgba(240,74,110,0.25); }

/* ─── ACTION PLAN ─── */
.impact-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 48px;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(74,240,184,0.05));
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 14px;
  padding: 22px;
}
.impact-stat { text-align: center; padding: 8px; }
.impact-num {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent2);
  line-height: 1;
  margin-bottom: 6px;
}
.impact-lbl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.timeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tl-row {
  display: grid;
  grid-template-columns: 180px 200px 1fr;
  align-items: center;
  gap: 18px;
}
.tl-label .tl-week {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
}
.tl-label .tl-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  margin-top: 4px;
}
.tl-label.crit .tl-tag { color: var(--accent3); }
.tl-label.warn .tl-tag { color: var(--warn); }
.tl-label.up .tl-tag { color: var(--accent); }
.tl-label.good .tl-tag { color: var(--accent2); }
.tl-bar { height: 10px; background: var(--surface2); border-radius: 5px; overflow: hidden; position: relative; }
.tl-bar span { display: block; height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.tl-bar.crit span { background: linear-gradient(90deg, #f04a6e, #ff7a8e); }
.tl-bar.warn span { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.tl-bar.up span { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.tl-bar.good span { background: linear-gradient(90deg, #4af0b8, #6ee7b7); }
.tl-text { font-size: 13px; color: var(--muted2); line-height: 1.5; }

/* ─── REC CARDS ─── */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.rec-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-3px); }
.rec-card.priority-crit { border-top: 3px solid var(--accent3); }
.rec-card.priority-warn { border-top: 3px solid var(--warn); }
.rec-card.priority-up { border-top: 3px solid var(--accent); }
.rec-card.priority-good { border-top: 3px solid var(--accent2); }
.rec-num {
  font-family: 'Syne', sans-serif;
  font-size: 56px;
  font-weight: 800;
  color: rgba(59,130,246,0.06);
  position: absolute;
  top: 6px; right: 14px;
  line-height: 1;
  pointer-events: none;
}
.rec-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.prio-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.prio-badge.crit { background: rgba(240,74,110,0.12); color: var(--accent3); }
.prio-badge.warn { background: rgba(245,158,11,0.12); color: var(--warn); }
.prio-badge.up { background: rgba(59,130,246,0.12); color: var(--accent); }
.prio-badge.good { background: rgba(74,240,184,0.12); color: var(--accent2); }
.effort-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--surface2);
  color: var(--muted2);
  border: 1px solid var(--border);
}
.rec-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.rec-body { font-size: 12px; color: var(--muted2); line-height: 1.65; flex: 1; }
.rec-impact-wrap { margin-top: 16px; }
.rec-impact-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.rec-impact-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
}
.rec-impact {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent2);
}

/* ─── ACTION GRID ─── */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  border-left: 3px solid var(--border);
  transition: border-color 0.2s;
}
.action-card:hover { border-color: rgba(59,130,246,0.3); }
.action-card.kill { border-left-color: var(--accent3); }
.action-card.warn { border-left-color: var(--warn); }
.action-card.good { border-left-color: var(--accent2); }
.action-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}
.action-head strong { font-family: 'Syne', sans-serif; font-size: 13px; }
.action-meta { font-family: 'Space Grotesk', sans-serif; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.action-body { font-size: 12px; color: var(--muted2); line-height: 1.5; }

/* ─── EXEC BANNER ─── */
.exec-banner {
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(168,85,247,0.05) 100%);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 16px;
  padding: 38px 42px;
  position: relative;
  overflow: hidden;
}
.exec-banner.alt {
  background: linear-gradient(135deg, rgba(74,240,184,0.06) 0%, rgba(59,130,246,0.04) 100%);
  border-color: rgba(74,240,184,0.18);
}
.exec-banner.meta {
  background: linear-gradient(135deg, rgba(240,74,110,0.06) 0%, rgba(245,158,11,0.05) 100%);
  border-color: rgba(245,158,11,0.18);
}
.exec-banner::before {
  content: '"';
  position: absolute;
  top: -40px; right: 30px;
  font-family: 'Syne', sans-serif;
  font-size: 200px;
  color: rgba(59,130,246,0.06);
  pointer-events: none;
}
.exec-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.exec-banner.alt .exec-tag { color: var(--accent2); }
.exec-banner.meta .exec-tag { color: var(--warn); }
.exec-quote {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 18px;
  max-width: 900px;
}
.exec-quote em { color: var(--accent); font-style: italic; }
.exec-banner.alt .exec-quote em { color: var(--accent2); }
.exec-quote .hl-num { color: var(--accent2); }
.exec-sub { color: var(--muted2); max-width: 800px; font-size: 14px; line-height: 1.7; }
.exec-positioning {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(0,0,0,0.25);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  max-width: 800px;
}
.exec-pos-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.exec-pos-text { font-size: 14px; color: var(--text); line-height: 1.6; }

.hero-strat {
  margin-top: 24px;
  display: inline-block;
  padding: 14px 18px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 10px;
}
.hero-strat-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warn);
  margin-bottom: 4px;
}
.hero-strat-text { font-size: 13px; color: var(--text); }

/* ─── COMPETITOR CARDS ─── */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.comp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.comp-card:hover { transform: translateY(-3px); border-color: rgba(59,130,246,0.3); }
.comp-card.threat-high { border-top: 3px solid var(--accent3); }
.comp-card.threat-med { border-top: 3px solid var(--warn); }
.comp-card.threat-low { border-top: 3px solid var(--accent2); }
.comp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.comp-logo {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(59,130,246,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.comp-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; }
.comp-link { color: var(--muted); font-size: 11px; text-decoration: none; font-family: 'Space Grotesk', sans-serif; }
.comp-link:hover { color: var(--accent); }
.threat-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  margin-left: auto;
}
.threat-badge.high { background: rgba(240,74,110,0.12); color: var(--accent3); }
.threat-badge.med { background: rgba(245,158,11,0.12); color: var(--warn); }
.threat-badge.low { background: rgba(74,240,184,0.12); color: var(--accent2); }

.comp-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
}
.comp-body { font-size: 12px; color: var(--muted2); line-height: 1.6; margin-bottom: 14px; flex: 1; }
.comp-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 6px 0;
  border-top: 1px solid var(--border-soft);
  font-family: 'Space Grotesk', sans-serif;
}
.comp-row span { color: var(--muted); }
.comp-row strong { color: var(--text); font-weight: 600; }
.comp-opp {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(74,240,184,0.05);
  border-left: 2px solid var(--accent2);
  border-radius: 4px;
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.5;
}
.opp-tag { color: var(--accent2); font-weight: 600; font-family: 'Space Grotesk', sans-serif; font-size: 11px; }

/* ─── GAP MAP ─── */
.gap-map { display: flex; flex-direction: column; gap: 10px; }
.gap-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
}
.gap-label { color: var(--text); font-weight: 500; }
.gap-bar { height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.gap-bar span { display: block; height: 100%; border-radius: 4px; }
.gap-bar.saturated span { background: linear-gradient(90deg, var(--accent3), #ff7a8e); }
.gap-bar.half span { background: linear-gradient(90deg, var(--warn), #fbbf24); }
.gap-bar.open span { background: linear-gradient(90deg, var(--accent2), #6ee7b7); }
.gap-status { color: var(--muted); font-size: 11px; text-align: right; }
.gap-status.open-lbl { color: var(--accent2); font-weight: 600; }

/* ─── PHASE GRID ─── */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.phase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.phase-card.phase-1 { border-left: 4px solid var(--accent3); }
.phase-card.phase-2 { border-left: 4px solid var(--warn); }
.phase-card.phase-3 { border-left: 4px solid var(--accent2); }
.phase-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.phase-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 56px; line-height: 1; color: var(--text); }
.phase-card.phase-1 .phase-num { color: var(--accent3); }
.phase-card.phase-2 .phase-num { color: var(--warn); }
.phase-card.phase-3 .phase-num { color: var(--accent2); }
.phase-lbl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.phase-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--text);
}
.phase-list { list-style: none; padding: 0; }
.phase-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.5;
}
.phase-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.phase-card.phase-1 .phase-list li::before { color: var(--accent3); }
.phase-card.phase-2 .phase-list li::before { color: var(--warn); }
.phase-card.phase-3 .phase-list li::before { color: var(--accent2); }

/* ─── COMPETITIVE GAPS ─── */
.gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.gap-card:hover { transform: translateY(-3px); border-color: rgba(74,240,184,0.3); }
.gap-card .gap-num {
  font-family: 'Syne', sans-serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.gap-card .gap-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: var(--text);
}
.gap-card .gap-body { font-size: 13px; color: var(--muted2); line-height: 1.65; margin-bottom: 14px; }
.gap-asset {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--muted2);
  padding: 10px 12px;
  background: rgba(74,240,184,0.05);
  border-left: 2px solid var(--accent2);
  border-radius: 4px;
  line-height: 1.5;
}
.gap-asset strong { color: var(--accent2); font-weight: 600; }
.gap-asset em { color: var(--text); }

/* ─── PLATFORM GRID ─── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: transform 0.2s;
}
.platform-card:hover { transform: translateY(-2px); }
.platform-card.google { border-top: 3px solid #4285f4; }
.platform-card.meta { border-top: 3px solid #1877f2; }
.platform-card.linkedin { border-top: 3px solid #0a66c2; }
.platform-card.tiktok { border-top: 3px solid #ee1d52; }
.platform-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.platform-icon { font-size: 22px; }
.platform-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  flex: 1;
}
.platform-rank {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.platform-rank.gold { background: rgba(245,158,11,0.15); color: var(--warn); }
.platform-rank.silver { background: rgba(59,130,246,0.15); color: var(--accent); }
.platform-rank.bronze { background: rgba(168,85,247,0.15); color: var(--accent4); }
.platform-rank.optional { background: var(--surface2); color: var(--muted); }
.platform-why {
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--surface2);
  border-radius: 6px;
  line-height: 1.5;
}
.platform-section {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  margin-top: 14px;
}
.platform-list { list-style: none; padding: 0; }
.platform-list li {
  font-size: 12px;
  color: var(--muted2);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.4;
}
.platform-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 700;
}
.platform-list.bad li::before { content: '✕'; color: var(--accent3); }
.platform-list.mono li {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
}
.platform-list.mono li::before { display: none; }

/* ─── COPY GRID ─── */
.copy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.copy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.copy-card:hover { transform: translateY(-3px); border-color: rgba(168,85,247,0.3); }
.copy-letter {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 38px;
  color: var(--accent4);
  background: rgba(168,85,247,0.1);
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.copy-angle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.copy-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.copy-body { font-size: 12px; color: var(--muted2); line-height: 1.6; margin-bottom: 14px; }
.copy-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--accent4);
  padding: 8px 12px;
  background: rgba(168,85,247,0.08);
  border-radius: 6px;
  display: inline-block;
}

/* ─── PRIORITY LIST ─── */
.priority-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prio-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.prio-item:hover { border-color: rgba(59,130,246,0.3); transform: translateX(3px); }
.prio-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  text-align: center;
}
.prio-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}
.prio-body { font-size: 13px; color: var(--muted2); line-height: 1.6; }
.prio-body code {
  font-family: 'DM Mono', monospace;
  background: var(--surface2);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
}

/* ─── RISKS ─── */
.risks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.risk-item {
  background: rgba(245,158,11,0.04);
  border: 1px solid rgba(245,158,11,0.18);
  border-left: 3px solid var(--warn);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.55;
}
.risk-icon { font-size: 14px; flex-shrink: 0; }
.risk-item strong { color: var(--text); }

/* ─── STRATEGIC CLOSE ─── */
.strategic-close {
  background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(74,240,184,0.06) 100%);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 16px;
  padding: 38px 42px;
  text-align: center;
}
.strategic-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.strategic-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.25;
}
.strategic-sub { color: var(--muted2); margin-bottom: 28px; font-size: 14px; }
.strategic-funnel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.funnel-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.funnel-step span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
}
.funnel-arrow { color: var(--muted); font-size: 18px; }

/* ─── META ADS ─── */
.perf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.perf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  border-top: 3px solid var(--accent);
  transition: transform 0.2s, border-color 0.2s;
}
.perf-card:hover { transform: translateY(-2px); border-top-color: var(--accent2); }
.perf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  font-family: 'Space Grotesk', sans-serif;
}
.perf-status { color: var(--accent2); font-weight: 600; }
.perf-date { color: var(--muted); }
.perf-id {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}
.perf-niche {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--warn);
  margin-bottom: 10px;
}
.perf-hook {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}
.perf-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: 'Space Grotesk', sans-serif;
  padding: 6px 0;
  border-top: 1px solid var(--border-soft);
}
.perf-meta-row span { color: var(--muted); }
.perf-meta-row strong { color: var(--text); font-weight: 600; }

.insight-card { padding: 22px; }
.insight-card.good { border-top: 3px solid var(--accent2); }
.insight-card.warn { border-top: 3px solid var(--warn); }
.insight-head {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--text);
}
.insight-list { list-style: none; padding: 0; }
.insight-list li {
  font-size: 13px;
  color: var(--muted2);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.55;
}
.insight-list li:last-child { border-bottom: none; }
.insight-list strong { color: var(--text); font-weight: 600; }
.insight-list code {
  font-family: 'DM Mono', monospace;
  background: var(--surface2);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* ─── SIGNAL GRID ─── */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.signal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}
.signal-card:hover { border-color: #2a3050; }
.signal-card.winner { border: 1px solid rgba(74,240,184,0.35); background: rgba(74,240,184,0.04); }
.signal-card.insight { border: 1px solid rgba(59,130,246,0.25); background: rgba(59,130,246,0.03); }
.signal-card.empty { opacity: 0.92; }
.signal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.signal-head strong { font-family: 'Syne', sans-serif; font-size: 13px; }
.sig-dot {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.sig-dot.active { background: rgba(74,240,184,0.15); color: var(--accent2); }
.sig-dot.none { background: var(--surface2); color: var(--muted); }
.sig-dot.noisy { background: rgba(245,158,11,0.12); color: var(--warn); }
.sig-dot.weak { background: rgba(245,158,11,0.08); color: var(--warn); }
.sig-dot.insight { background: rgba(59,130,246,0.12); color: var(--accent); }
.signal-body { font-size: 12px; color: var(--muted2); line-height: 1.5; }

/* ─── TEST GRID ─── */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.test-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s;
}
.test-card:hover { transform: translateY(-3px); border-color: rgba(168,85,247,0.3); }
.test-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: rgba(168,85,247,0.4);
  margin-bottom: 6px;
}
.test-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent4);
  margin-bottom: 12px;
  font-weight: 600;
}
.test-hook {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.35;
}
.test-angle, .test-why {
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.55;
  margin-bottom: 10px;
}
.test-angle strong, .test-why strong { color: var(--text); font-weight: 600; }
.test-angle em, .test-why em { color: var(--accent); font-style: italic; }

/* ─── LANDING PAGE CARD ─── */
.lp-card { padding: 26px; }
.lp-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.lp-url {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: var(--accent2);
  background: var(--surface2);
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 18px;
}
.lp-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.25;
}
.lp-sub { font-size: 13px; color: var(--muted2); margin-bottom: 16px; }
.lp-cta-box {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: white;
  background: var(--accent);
  padding: 12px 18px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 22px;
}
.lp-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  margin-top: 14px;
}
.lp-list { list-style: none; padding: 0; }
.lp-list li {
  font-size: 13px;
  color: var(--muted2);
  padding: 6px 0 6px 18px;
  position: relative;
  line-height: 1.4;
}
.lp-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─── CHECKLIST CARD ─── */
.checklist-card { padding: 26px; border-top: 3px solid var(--accent2); }
.checklist-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 6px;
  font-weight: 600;
}
.checklist-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.checklist-ol {
  list-style: none;
  padding: 0;
  counter-reset: checkitem;
}
.checklist-ol li {
  counter-increment: checkitem;
  position: relative;
  padding: 10px 0 10px 36px;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.55;
  border-bottom: 1px solid var(--border-soft);
}
.checklist-ol li:last-child { border-bottom: none; }
.checklist-ol li::before {
  content: counter(checkitem);
  position: absolute;
  left: 0; top: 10px;
  width: 24px; height: 24px;
  background: rgba(74,240,184,0.12);
  color: var(--accent2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.checklist-ol li span { color: var(--text); font-weight: 600; }
.checklist-ol code {
  font-family: 'DM Mono', monospace;
  background: var(--surface2);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* ─── LIBRARY LINKS ─── */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lib-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  transition: all 0.2s;
}
.lib-link:hover { border-color: var(--accent); background: var(--surface2); transform: translateX(3px); }
.lib-arrow { color: var(--accent); font-size: 14px; }

/* ─── TOOLTIPS ─── */
.term-tip {
  position: relative;
  border-bottom: 1px dashed rgba(59,130,246,0.4);
  cursor: help;
  color: #60a5fa;
  font-weight: 500;
}
.term-tip .tip-popup {
  position: absolute;
  top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 280px;
  padding: 14px 16px;
  background: #1a1e2e;
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  pointer-events: none;
  font-style: normal;
}
.term-tip:hover .tip-popup, .term-tip:focus .tip-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.tip-popup strong { color: #60a5fa; display: block; margin-bottom: 5px; font-size: 13px; }

/* ─── FOOTER ─── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-left { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted); line-height: 1.8; }
.footer-right-wrap { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.footer-right { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted); text-align: right; line-height: 1.8; }
.confidential {
  background: rgba(240,74,110,0.08);
  border: 1px solid rgba(240,74,110,0.2);
  color: var(--accent3);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.1em;
}

/* ─── PRINT BUTTON ─── */
.print-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(59,130,246,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 90;
}
.print-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(59,130,246,0.4); }

.glossary-btn-fixed {
  position: fixed;
  bottom: 90px; right: 28px;
  background: #1e2540;
  border: 1px solid #2a3050;
  border-radius: 10px;
  padding: 10px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 90;
}
.glossary-btn-fixed:hover { color: var(--text); }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal h2 { font-family: 'Syne', sans-serif; }
.glossary-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.glossary-item:last-child { border-bottom: none; }
.glossary-item dt { font-weight: 600; color: #60a5fa; font-size: 14px; margin-bottom: 5px; font-family: 'Syne', sans-serif; }
.glossary-item dd { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rec-grid, .comp-grid, .gap-grid, .test-grid, .signal-grid, .action-grid, .link-grid { grid-template-columns: repeat(2, 1fr); }
  .copy-grid { grid-template-columns: repeat(2, 1fr); }
  .perf-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-banner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  .header { padding: 16px 24px; }
  .page { padding: 32px 24px; }
  .health-score-badge { position: static; margin-top: 32px; display: inline-block; }
  .hero { padding: 48px 24px 36px; }
  .phase-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 130px 140px 1fr; gap: 14px; }
}

@media (max-width: 900px) {
  .header {
    padding: 12px 18px;
    gap: 12px;
  }
  .logo-block { min-width: auto; flex: 1; }
  .agency-sub { display: none; }
  .report-meta { display: none; }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  .header-center {
    display: none;
    width: 100%;
    flex: 0 0 100%;
    order: 99;
    margin-top: 8px;
  }
  .header-center.open { display: block; }
  .tab-nav {
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    background: var(--surface2);
  }
  .tab-btn {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
  }
  .hero h1 { font-size: 32px; }
  .hero-desc { font-size: 14px; }

  .kpi-grid, .kpi-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .chart-row, .split-grid, .split-grid-uneven, .alerts-grid, .risks-grid { grid-template-columns: 1fr; }
  .rec-grid, .comp-grid, .gap-grid, .test-grid, .signal-grid, .action-grid, .copy-grid, .link-grid, .perf-grid {
    grid-template-columns: 1fr;
  }
  .impact-banner { grid-template-columns: repeat(2, 1fr); padding: 18px 14px; }

  .exec-banner { padding: 26px 22px; }
  .exec-quote { font-size: 22px; }
  .strategic-close { padding: 28px 22px; }
  .strategic-headline { font-size: 22px; }
  .strategic-funnel { flex-direction: column; }
  .funnel-arrow { transform: rotate(90deg); }

  .timeline { padding: 18px; }
  .tl-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
    background: var(--surface2);
    border-radius: 10px;
  }

  .gap-row { grid-template-columns: 110px 1fr; }
  .gap-row .gap-status { grid-column: 2; text-align: left; font-size: 10px; }

  .chart-tall { height: 480px; }
  .chart-mid { height: 320px; }
  .chart-short { height: 280px; }

  .table-header { padding: 16px 18px; }

  .footer { padding: 20px 24px; }
}

@media (max-width: 540px) {
  .header { padding: 12px 14px; }
  .agency-name { font-size: 13px; }
  .hero { padding: 36px 16px 28px; }
  .hero h1 { font-size: 26px; }
  .hero-desc { font-size: 13px; }
  .health-score-badge { padding: 18px 24px; }
  .hs-score { font-size: 42px; }
  .page { padding: 24px 14px; }
  .section { margin-bottom: 36px; }
  .card { padding: 18px; }
  .kpi-grid, .kpi-grid-4 { grid-template-columns: 1fr; }
  .impact-banner { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; padding: 18px 16px; }
  .footer-right { text-align: left; }
  .print-btn { padding: 10px 16px; font-size: 12px; right: 14px; bottom: 14px; }
  .glossary-btn-fixed { right: 14px; bottom: 70px; padding: 8px 14px; font-size: 11px; }
  .exec-quote { font-size: 19px; }
  .strategic-headline { font-size: 19px; }
  .perf-table th, .perf-table td { padding: 10px 12px; font-size: 12px; }
  .gap-card .gap-num { font-size: 48px; }
  .phase-num { font-size: 44px; }
  .copy-letter { width: 48px; height: 48px; font-size: 30px; }
  .lp-headline { font-size: 18px; }
  .modal { padding: 22px; max-height: 88vh; }
  .modal h2 { font-size: 18px; }
}

@media print {
  .print-btn, .glossary-btn-fixed, .mobile-menu-btn { display: none; }
  .header { position: static; }
  .tab-panel { display: block !important; page-break-before: always; }
  .tab-nav { display: none; }
}
