/*
 * AI Officer Institute — Unified Stylesheet
 * No images, no SVGs, no decorative pseudo-elements.
 */

/* ── TOKENS ── */
:root {
  --navy: #04102D;
  --white: #FFFFFF;
  --blue: #287BE8;
  --magenta: #D1458B;
  --mint: #6FF2C1;
  --mint-dark: #1a9e74;
  --text-primary: #1a1f36;
  --text-secondary: #4a5068;
  --text-muted: #6b7194;
  --border: #d8dce8;
  --surface: #f4f6fa;
  --card-bg: #ffffff;
  --sidebar-bg: #f8f9fc;
  --sidebar-active: #eef1f8;
  --sidebar-hover: #f0f2f9;
  --border-hover: #b0b6cc;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px;
  background: var(--navy);
  display: flex; align-items: center; gap: 32px;
  padding: 0 24px; z-index: 100;
}
.topbar-brand {
  font-weight: 700; font-size: 15px; color: var(--white);
  letter-spacing: -0.2px; text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.topbar-brand span { color: var(--blue); }
.topbar-divider {
  width: 1px; height: 24px; background: rgba(255,255,255,0.12);
  margin: 0 20px; flex-shrink: 0;
}
.topbar-course { display: none; }

.topbar-nav { display: flex; align-items: center; gap: 4px; }
.tnav-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.45);
  text-decoration: none; padding: 6px 14px; border-radius: 6px;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.tnav-link:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.07); }
.tnav-link.active { color: #fff; background: rgba(255,255,255,0.1); }
.tnav-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ── LAYOUT ── */
.layout { display: flex; margin-top: 56px; min-height: calc(100vh - 56px); }

/* ── SIDEBAR ── */
.sidebar {
  width: 272px; min-width: 272px; background: var(--sidebar-bg);
  border-right: 1px solid var(--border); padding: 24px 0;
  position: fixed; top: 56px; left: 0; bottom: 0;
  overflow-y: auto; scrollbar-width: thin;
}
.sidebar-section { padding: 0 20px; margin-bottom: 8px; }
.sidebar-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-muted); padding: 16px 0 8px;
}
.sidebar-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px;
  border-radius: 8px; cursor: pointer; transition: background 0.15s;
  text-decoration: none; color: var(--text-secondary); font-size: 14px;
  font-weight: 400; line-height: 1.4;
}
.sidebar-item:hover { background: var(--sidebar-hover); }
.sidebar-item.active { background: var(--sidebar-active); color: var(--blue); font-weight: 500; }
.sidebar-num {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-muted); min-width: 18px; padding-top: 2px;
}
.sidebar-item.active .sidebar-num { color: var(--blue); }

.sidebar-hub {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin: 0 20px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.sidebar-hub:hover { background: var(--sidebar-hover); color: var(--text-primary); }

.sidebar-mission-title { padding: 0 20px; margin-bottom: 16px; }
.sidebar-mission-title .smt-track {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.sidebar-mission-title .smt-dot { width: 6px; height: 6px; border-radius: 50%; }
.sidebar-mission-title .smt-name { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }

/* ── MAIN ── */
.main { margin-left: 272px; flex: 1; max-width: 800px; padding: 48px 56px 120px; }

/* ── TYPOGRAPHY ── */
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.lesson-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lesson-tag-num { font-size: 12px; font-weight: 600; color: var(--blue); letter-spacing: 0.5px; text-transform: uppercase; }
.lesson-tag-type { font-size: 11px; color: var(--text-muted); background: var(--surface); padding: 2px 10px; border-radius: 4px; font-weight: 500; }

h1 { font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--text-primary); margin-bottom: 24px; letter-spacing: -0.5px; }
h2 { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--text-primary); margin: 48px 0 16px; letter-spacing: -0.3px; }
h3 { font-size: 17px; font-weight: 600; color: var(--text-primary); margin: 32px 0 12px; }
p { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 16px; }
p strong { color: var(--text-primary); font-weight: 600; }

/* ── CONTENT COMPONENTS ── */
.video-card { background: var(--navy); border-radius: 12px; padding: 24px 28px; display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.video-play { width: 48px; height: 48px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.video-play svg { margin-left: 3px; }
.video-title { font-size: 16px; font-weight: 600; color: var(--white); }
.video-sub { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 4px; }

.goal-list { list-style: none; padding: 0; margin: 0 0 24px; }
.goal-list li { position: relative; padding: 8px 0 8px 28px; font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.goal-list li::before { content: ''; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); opacity: 0.7; }

.brief-cards { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.brief-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); transition: border-color 0.15s, box-shadow 0.15s; }
.brief-card:hover { border-color: var(--blue); box-shadow: 0 2px 12px rgba(40,123,232,0.08); }
.brief-num { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: var(--blue); background: rgba(40,123,232,0.08); width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brief-card-body h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.brief-card-body p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.5; }

.time-grid { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; font-size: 14px; padding: 16px 20px; background: var(--surface); border-radius: 8px; margin: 24px 0; }
.time-label { color: var(--text-secondary); }
.time-value { color: var(--text-primary); font-weight: 600; text-align: right; }

.fw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.fw-block { border: 1px solid var(--border); border-radius: 10px; padding: 24px; background: var(--card-bg); }
.fw-block.full { grid-column: 1 / -1; }
.fw-name { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: 0.5px; margin-bottom: 4px; }
.fw-subtitle { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; }
.fw-letters { display: flex; flex-direction: column; gap: 10px; }
.fw-letter { display: flex; align-items: flex-start; gap: 12px; }
.fw-letter-char { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; color: var(--white); background: var(--navy); width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fw-letter-text { font-size: 14px; color: var(--text-secondary); padding-top: 3px; line-height: 1.5; }
.fw-letter-text strong { color: var(--text-primary); }

.insight { border-left: 3px solid var(--blue); padding: 16px 20px; background: rgba(40,123,232,0.04); border-radius: 0 8px 8px 0; margin: 28px 0; }
.insight-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.insight p { font-size: 14.5px; color: var(--text-primary); margin: 0; line-height: 1.6; }

.compare-block { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-side { padding: 20px; border-radius: 10px; border: 1px solid var(--border); }
.compare-side.without { background: var(--surface); }
.compare-side.with { background: rgba(40,123,232,0.04); border-color: var(--blue); }
.compare-side h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.compare-side.without h4 { color: var(--text-muted); }
.compare-side.with h4 { color: var(--blue); }
.compare-side p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.compare-without { background: var(--surface); }
.compare-with { background: rgba(40,123,232,0.04); border: 1px solid var(--blue); }
.compare-header { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.compare-without .compare-header { color: var(--text-muted); }
.compare-with .compare-header { color: var(--blue); }

.pro-tip { background: var(--navy); border-radius: 10px; padding: 20px 24px; margin: 28px 0; }
.pro-tip-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--mint); margin-bottom: 6px; }
.pro-tip p { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0; line-height: 1.6; }

.rules-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.rules-table th { text-align: left; padding: 10px 16px; background: var(--surface); color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.rules-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; line-height: 1.5; }
.rules-table td:first-child { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.rules-table td code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; background: var(--surface); padding: 2px 8px; border-radius: 4px; color: var(--magenta); }

.checklist { list-style: none; padding: 0; margin: 16px 0; counter-reset: step; }
.checklist li { counter-increment: step; display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; font-size: 14.5px; color: var(--text-secondary); line-height: 1.5; border-bottom: 1px solid rgba(0,0,0,0.04); }
.checklist li::before { content: counter(step); font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: var(--white); background: var(--navy); width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

.cta-block { border: 2px solid var(--blue); border-radius: 12px; padding: 32px; text-align: center; margin: 40px 0; background: rgba(40,123,232,0.02); }
.cta-block h3 { margin: 0 0 8px; font-size: 20px; }
.cta-block p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 20px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: var(--white); font-size: 15px; font-weight: 600; padding: 14px 32px; border-radius: 8px; text-decoration: none; transition: background 0.15s, transform 0.1s; }
.cta-btn:hover { background: #1d6ad4; transform: translateY(-1px); }
.cta-btn svg { flex-shrink: 0; }
.cta-btn-final { background: var(--navy); }
.cta-btn-final:hover { background: #0a1e4a; }

.challenge-cards { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.challenge-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); }
.challenge-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--blue); background: rgba(40,123,232,0.08); width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.challenge-body { flex: 1; }
.challenge-body h4 { font-size: 14.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.challenge-body p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.challenge-time { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); background: var(--surface); padding: 4px 10px; border-radius: 5px; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }

.final-project { margin-top: 48px; padding-top: 40px; border-top: 2px solid var(--navy); }
.final-project-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--white); background: var(--magenta); padding: 5px 14px; border-radius: 5px; margin-bottom: 16px; }
.final-project h2 { margin-top: 0; }
.final-cards { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.final-card { border: 2px solid var(--navy); border-radius: 12px; padding: 24px; background: var(--card-bg); }
.final-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.final-card-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--white); background: var(--navy); padding: 4px 12px; border-radius: 5px; }
.final-card h3 { margin: 0 0 8px; font-size: 18px; }
.final-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.final-cta { border-color: var(--navy); background: rgba(4,16,45,0.02); }

.takeaway-list { list-style: none; padding: 0; margin: 20px 0; }
.takeaway-list li { padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.takeaway-list li:last-child { border-bottom: none; }
.takeaway-list li strong { display: block; font-size: 15px; color: var(--text-primary); margin-bottom: 4px; }
.takeaway-list li span { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.takeaway-title { font-size: 15px; font-weight: 600; color: var(--text-primary); display: block; margin-bottom: 4px; }
.takeaway-desc { font-size: 14px; color: var(--text-muted); }

.cert-card { background: var(--navy); border-radius: 14px; padding: 40px; text-align: center; margin: 48px 0 0; }
.cert-card h2 { color: var(--white); margin: 0 0 8px; font-size: 22px; }
.cert-card .subtitle, .cert-subtitle { color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 500; letter-spacing: 0.5px; margin-bottom: 20px; }
.cert-card p { color: rgba(255,255,255,0.7); font-size: 14.5px; line-height: 1.6; max-width: 520px; margin: 0 auto 28px; }
.cert-progress { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.cert-dot { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; }
.cert-dot.done { background: rgba(111,242,193,0.15); color: var(--mint); }
.cert-dot.current { background: var(--blue); color: var(--white); }
.cert-dot.upcoming { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.35); }
.cert-next { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-size: 14px; font-weight: 600; text-decoration: none; }
.cert-next:hover { opacity: 0.85; }

.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* ── AGENT TEAM GRID ── */
.agent-grid { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.agent-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); }
.agent-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.agent-icon.research { background: rgba(40,123,232,0.1); color: var(--blue); }
.agent-icon.copy { background: rgba(209,69,139,0.1); color: var(--magenta); }
.agent-icon.analytics { background: rgba(111,242,193,0.15); color: #0a8a5e; }
.agent-body h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.agent-body p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.agent-role-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; }
.agent-role-tag.research { background: rgba(40,123,232,0.1); color: var(--blue); }
.agent-role-tag.copy { background: rgba(209,69,139,0.1); color: var(--magenta); }
.agent-role-tag.analytics { background: rgba(111,242,193,0.2); color: #0a8a5e; }

/* ── EXERCISE BLOCK ── */
.exercise-block { background: linear-gradient(135deg, rgba(209,69,139,0.04), rgba(40,123,232,0.04)); border: 1px solid rgba(209,69,139,0.2); border-radius: 12px; padding: 28px 32px; margin: 32px 0; }
.exercise-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--magenta); margin-bottom: 12px; }
.exercise-block h3 { margin: 0 0 12px; }
.exercise-block p { font-size: 14.5px; margin-bottom: 8px; }
.exercise-block p:last-child { margin-bottom: 0; }

.ai-buddy-prompt { background: rgba(40,123,232,0.05); border: 1px solid rgba(40,123,232,0.2); border-radius: 8px; padding: 14px 18px; margin: 20px 0; font-size: 14px; color: var(--text-secondary); }
.ai-buddy-prompt strong { color: var(--blue); }

.prompt-block { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; margin: 24px 0; }
.prompt-block-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.prompt-block pre { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-secondary); white-space: pre-wrap; line-height: 1.6; margin: 0; }

.time-grid-row { display: contents; }
.time-grid-row:not(:last-child) .tg-label, .time-grid-row:not(:last-child) .tg-val { border-bottom: 1px solid var(--border); }
.tg-label { padding: 12px 20px; font-size: 14px; color: var(--text-secondary); }
.tg-val { padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--text-primary); text-align: right; }

/* ── PREV / NEXT ── */
.page-nav { display: flex; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); }
.page-nav-link { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; background: var(--card-bg); transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s; }
.page-nav-link:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(40,123,232,0.08); transform: translateY(-1px); }
.page-nav-link.next { text-align: right; align-items: flex-end; }
.page-nav-dir { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.page-nav-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.page-nav-track { font-size: 12px; color: var(--text-muted); }

/* ── TOPBAR RIGHT / STATS / AVATAR ── */
.topbar-right {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.topbar-stat {
  display: flex; align-items: center; gap: 5px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.07);
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}
.topbar-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
}

/* ── AI BUDDY LAUNCH BUTTON ── */
.buddy-launch-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(111,242,193,0.12); border: 1px solid rgba(111,242,193,0.25);
  color: #6FF2C1; font-size: 12px; font-weight: 700; letter-spacing: 0.2px;
  padding: 5px 12px; border-radius: 7px; text-decoration: none;
  transition: all 0.15s; white-space: nowrap;
}
.buddy-launch-btn:hover {
  background: rgba(111,242,193,0.2); border-color: rgba(111,242,193,0.45);
  color: #6FF2C1;
}

/* ── MISSION PREV/NEXT NAV ── */
.mission-nav-strip {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--border); padding-top: 32px; margin-top: 48px;
}
.mission-nav-btn {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 18px; border-radius: 10px;
  border: 1px solid var(--border); text-decoration: none;
  background: white; transition: all 0.15s; flex: 1;
}
.mission-nav-btn:hover { border-color: var(--border-hover); box-shadow: 0 3px 12px rgba(4,16,45,0.08); transform: translateY(-1px); }
.mission-nav-btn.next { text-align: right; align-items: flex-end; }
.mission-nav-btn.prev { align-items: flex-start; }
.mission-nav-btn.disabled { opacity: 0.35; pointer-events: none; background: var(--surface); }
.mnav-dir { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.mnav-title { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.mnav-track { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ── FILTER TABS ── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1px;
  border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text-muted);
  cursor: pointer; transition: all 0.15s; font-family: 'DM Sans', sans-serif;
}
.filter-tab .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.filter-tab:hover { border-color: #b0b6cc; color: var(--text-primary); }
.filter-tab.active { color: white; border-color: transparent; }
.filter-tab.all.active  { background: var(--navy); }
.filter-tab.gen.active  { background: #D1458B; }
.filter-tab.age.active  { background: #287BE8; }
.filter-tab.lead.active { background: #1a9e74; }

/* ── SITE CONTAINER — single source of truth for all horizontal alignment ── */
.site-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
}
/* page-main: vertical padding only — site-wrap class handles centering */
.page-main { padding: 80px 0 100px; }

/* ── PAGE HERO ── */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 56px 0 64px;
  margin-top: 56px; /* clear fixed topbar */
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 90% at 90% 40%, rgba(40,123,232,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 45% 70% at 5% 85%, rgba(209,69,139,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 30% 50% at 50% 0%, rgba(111,242,193,0.06) 0%, transparent 50%);
}
/* hero-content inherits alignment from site-wrap — only adds position:relative */
.hero-content { position: relative; }
.hero-eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.85);
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--mint);
  border-radius: 2px; flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 50px); font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 18px;
}
.hero h1 .accent {
  color: var(--white);
}
.hero h1 .accent-blue {
  color: var(--blue);
}
.hero-subtitle {
  font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.60);
  max-width: 500px; line-height: 1.75; margin-bottom: 32px;
}
.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center;
  padding: 5px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
}
.pill-blue  { background: rgba(40,123,232,0.20);  color: #7BB8FF;        border: 1px solid rgba(40,123,232,0.30); }
.pill-mag   { background: rgba(209,69,139,0.18);  color: #F09AC5;        border: 1px solid rgba(209,69,139,0.30); }
.pill-mint  { background: rgba(111,242,193,0.15); color: var(--mint);    border: 1px solid rgba(111,242,193,0.25); }
.pill-navy  { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.12); }

/* ── HERO STATS (used in hero section) ── */
.hero-stats {
  display: flex; align-items: center; gap: 0;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
}
.hero-stat { padding: 0 28px 0 0; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; font-weight: 700; color: var(--white);
  letter-spacing: -0.5px; line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-num.mint { color: var(--mint); }
.hero-stat-label { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.12); flex-shrink: 0; margin-right: 28px; }
.hero-stat-bar { height: 4px; background: rgba(255,255,255,0.12); border-radius: 2px; margin-top: 8px; min-width: 120px; }
.hero-stat-bar-fill { height: 100%; border-radius: 2px; background: var(--blue); }

/* When .layout follows .hero, remove its top offset (hero already clears topbar) */
.hero + .layout { margin-top: 0; }

/* ── NAV TOGGLE (hamburger) ── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.85); font-size: 22px; line-height: 1;
  padding: 6px 8px; margin-left: auto; flex-shrink: 0;
}
.nav-toggle:focus-visible { outline: 2px solid var(--mint); border-radius: 4px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 32px 24px 80px; }
  .fw-grid, .compare-block { grid-template-columns: 1fr; }
  .topbar-nav { display: none; }
  .topbar-right { display: none; }
  .nav-toggle { display: block; }

  /* Mobile nav drawer — activated when .topbar-nav gets .open class */
  .topbar-nav.open {
    display: flex !important; flex-direction: column; align-items: stretch;
    position: fixed; top: 56px; left: 0; right: 0;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0 16px; z-index: 99;
    box-shadow: 0 8px 32px rgba(4,16,45,0.4);
  }
  .topbar-nav.open .tnav-link {
    padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
  }
  .topbar-nav.open .tnav-link:last-child { border-bottom: none; }
}
