/* AJ Academy — Skill Gap Diagnostic theme (matches site design system) */
:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --dark: #1E3A8A;
  --dark-deep: #172554;
  --accent-purple: #7C3AED;
  --accent-amber: #FBBF24;
  --accent-green: #059669;
  --text: #1E293B;
  --text-secondary: #475569;
  --muted: #64748B;
  --bg-page: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(30, 58, 138, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 58, 138, 0.12);
  --radius: 16px;
  --radius-lg: 20px;
  --green: #059669;
  --red: #DC2626;
  --orange: #EA580C;
  --blue: #2563EB;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Top bar (matches main site navbar) ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark { display: none; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.12);
  color: #B45309;
  border-radius: 999px;
}

.progress-mini { display: flex; gap: 6px; }

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  transition: 0.25s;
}

.progress-dot.active,
.progress-dot.done {
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ── Pages ── */
.page {
  display: none;
  min-height: calc(100vh - 64px);
}

.page.active { display: block; }

.page:not(#pageHero) {
  background: var(--bg-subtle);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

/* ── Hero (dark section like Career Lab / landing) ── */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 20px;
  background: var(--dark);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}

.hero::before {
  width: 320px;
  height: 320px;
  top: 10%;
  right: 5%;
  background: var(--primary);
}

.hero::after {
  width: 280px;
  height: 280px;
  bottom: 5%;
  left: 8%;
  background: var(--accent-purple);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.12);
  color: #FDE68A;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 span {
  background: linear-gradient(135deg, #fff 0%, #93C5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 48px auto 0;
  max-width: 900px;
}

.stat {
  padding: 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
}

.stat strong {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-amber);
  display: block;
  line-height: 1.2;
}

.stat small {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.8125rem;
  margin-top: 4px;
  display: block;
}

/* ── Buttons ── */
.btn {
  border: 0;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.hero .btn-primary {
  background: var(--accent-amber);
  color: #071B4D;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.35);
}

.hero .btn-primary:hover {
  background: #FCD34D;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.page:not(#pageHero) .btn-ghost {
  color: var(--text-secondary);
  border-color: var(--border);
  background: var(--bg-card);
}

.page:not(#pageHero) .btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.disabled { opacity: 0.45; pointer-events: none; }

/* ── Section headers ── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title { max-width: 720px; }

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}

.section-title p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 12px;
  font-size: 1rem;
}

/* ── Cards & grids ── */
.grid { display: grid; gap: 16px; }
.role-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.spec-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.select-card {
  cursor: pointer;
  transition: 0.2s;
}

.select-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.select-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft), var(--shadow-lg);
}

.select-card.selected::after {
  content: '✓';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  border: 1px solid rgba(37, 99, 235, 0.15);
  margin-bottom: 16px;
}

.icon-svg svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.tag {
  display: inline-flex;
  margin-top: 14px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.mini {
  font-size: 11px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--bg-subtle);
}

/* ── Skill map ── */
.skill-list { display: grid; gap: 12px; }

.skill-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}

.skill-row h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.skill-row p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary);
  background: var(--primary-soft);
  white-space: nowrap;
}

.notice {
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: linear-gradient(135deg, var(--primary-soft), rgba(124, 58, 237, 0.06));
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
  font-size: 0.9375rem;
}

.notice strong { color: var(--text); font-weight: 600; }

.bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ── Quiz ── */
.question-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}

.side-panel {
  position: sticky;
  top: 80px;
  align-self: start;
}

.q-card { min-height: 560px; }

.q-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.q-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
  margin: 16px 0;
}

.q-progress span {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  width: 0;
  transition: 0.35s;
  border-radius: 999px;
}

.confidence {
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.confidence label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 12px;
  align-items: center;
}

.range-row input { width: 100%; accent-color: var(--primary); }

.conf-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

.difficulty-card {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.difficulty-card strong { font-size: 0.875rem; font-weight: 600; }
.difficulty-card span { font-size: 11px; color: var(--muted); line-height: 1.4; }

.scenario-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.scenario-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.scenario-box {
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.9375rem;
  margin-bottom: 18px;
}

.question-text {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--text);
}

.options { display: grid; gap: 10px; }

.option {
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: flex-start;
  transition: 0.18s;
}

.option:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.option .key {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--primary);
}

.option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.option.correct {
  border-color: rgba(5, 150, 105, 0.5);
  background: rgba(5, 150, 105, 0.08);
}

.option.wrong {
  border-color: rgba(220, 38, 38, 0.5);
  background: rgba(220, 38, 38, 0.06);
}

.option:disabled { cursor: default; opacity: 1; }

.verdict {
  display: none;
  margin-top: 16px;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.verdict.show { display: block; }
.verdict h4 { margin-bottom: 8px; font-weight: 600; color: var(--text); }
.verdict p { color: var(--text-secondary); line-height: 1.7; font-size: 0.9375rem; }

.formula {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--accent-green);
  line-height: 1.6;
}

.path-mini {
  display: grid;
  gap: 6px;
  max-height: 400px;
  overflow: auto;
  padding-right: 4px;
}

.path-mini div {
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.path-mini div.active {
  border-color: var(--primary);
  color: var(--text);
  background: var(--primary-soft);
  font-weight: 500;
}

.path-mini div.done {
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--green);
}

/* ── Results ── */
.results-hero {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: linear-gradient(135deg, var(--primary-soft), rgba(124, 58, 237, 0.06));
  margin-bottom: 24px;
}

.score {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
}

.score small {
  font-size: 1.25rem;
  color: var(--muted);
  font-weight: 500;
}

.result-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: start;
}

.report-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.report-main-note,
.sidebar-desc {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.gap-row-compact .gap-summary {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 0;
}

.insight-card { padding: 18px 18px 16px; }

.readiness-ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 8px auto 14px;
}

.readiness-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(#e2e8f0 0% 100%);
}

.readiness-ring-wrap::after {
  content: '';
  position: absolute;
  inset: 22px;
  background: var(--bg-card);
  border-radius: 50%;
}

.readiness-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.readiness-ring-label strong {
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
}

.readiness-ring-label span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.outcome-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.legend-item strong {
  margin-left: auto;
  color: var(--text);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skill-bars { display: grid; gap: 12px; }

.skill-bar-row { display: grid; gap: 4px; }

.skill-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.skill-bar-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.skill-bar-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.skill-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.skill-bar-fill.good { background: linear-gradient(90deg, #059669, #34d399); }
.skill-bar-fill.mid { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.skill-bar-fill.low { background: linear-gradient(90deg, #dc2626, #f87171); }

.skill-bar-meta {
  font-size: 0.6875rem;
  color: var(--muted);
}

.focus-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.focus-list li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.focus-list li strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

.priority-note {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.course-chips-wrap { margin-top: 4px; }

.counselling-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(5, 150, 105, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 20px;
}

.counselling-card h3 {
  margin: 4px 0 8px;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
}

.counselling-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
  text-decoration: none;
}

.counselling-card .btn-whatsapp { margin-bottom: 0; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.metric {
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
}

.metric span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gap-table { display: grid; gap: 10px; }

.gap-row {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

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

.outcome {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.know { background: rgba(5, 150, 105, 0.1); color: var(--green); border: 1px solid rgba(5, 150, 105, 0.25); }
.hidden { background: rgba(37, 99, 235, 0.1); color: var(--blue); border: 1px solid rgba(37, 99, 235, 0.25); }
.aware { background: rgba(234, 88, 12, 0.1); color: var(--orange); border: 1px solid rgba(234, 88, 12, 0.25); }
.blind { background: rgba(220, 38, 38, 0.1); color: var(--red); border: 1px solid rgba(220, 38, 38, 0.25); }

.gap-row p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }

.course-chip {
  display: inline-flex;
  margin: 6px 6px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: var(--primary-soft);
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* ── Forms ── */
.lead-form { display: grid; gap: 12px; margin-top: 14px; }
.field { display: grid; gap: 6px; }

.field label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

.field textarea { min-height: 88px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.tiny-note { color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 12px; }
.footer-note { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; margin: 32px auto 0; max-width: 720px; }

.fade { animation: fadeIn 0.4s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ── Lead magnet & unlock ── */
.is-hidden { display: none !important; }

.lead-magnet {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
}

.lead-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.lead-head h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}

.lead-head p { color: var(--text-secondary); line-height: 1.65; font-size: 0.9375rem; }

.lead-bonus {
  display: inline-flex;
  align-items: center;
  color: #071B4D;
  background: var(--accent-amber);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mini-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.phone-field input,
.whatsapp-field input {
  border-color: rgba(5, 150, 105, 0.4) !important;
}

.phone-field label::after,
.whatsapp-field label::after {
  content: ' · WhatsApp';
  color: var(--green);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.mid-save {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 80;
  width: min(920px, calc(100% - 24px));
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  display: none;
  gap: 12px;
  align-items: center;
}

.mid-save.show { display: grid; grid-template-columns: 1fr auto; }
.mid-save p { color: var(--text-secondary); line-height: 1.5; font-size: 0.9375rem; }
.mid-save strong { color: var(--text); }

.mid-save form { display: flex; gap: 8px; align-items: center; }

.mid-save input {
  min-width: 220px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

.mid-save input:focus { border-color: var(--primary); }

.dismiss {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.result-lock {
  margin: 22px 0;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.result-lock h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

.result-lock p { color: var(--text-secondary); line-height: 1.68; }

.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.unlock-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--primary);
}

.unlock-card h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.unlock-card p { color: var(--text-secondary); line-height: 1.7; }

.unlock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.unlock-grid .field.full { grid-column: 1 / -1; }

.unlock-card .btn-primary,
.lead-magnet .btn-primary { width: 100%; }

.lead-success {
  display: none;
  margin-top: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(5, 150, 105, 0.3);
  background: rgba(5, 150, 105, 0.08);
  padding: 14px;
  color: #065F46;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.lead-success.show { display: block; }

.lead-error {
  display: none;
  margin-top: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
  padding: 14px;
  color: #991B1B;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.lead-error.show { display: block; }

.lead-popup-modal .lead-bonus {
  display: inline-flex;
  margin-bottom: 12px;
}

.lead-popup-modal .exit-actions .btn-primary { width: 100%; }

.report-content { display: none; }
.report-content.unlocked { display: grid; }

.locked-placeholder {
  border: 2px dashed var(--border);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  text-align: center;
}

.trust-insight {
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: var(--primary-soft);
  border-radius: var(--radius);
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.trust-insight strong { color: var(--text); font-weight: 600; }

.locked-preview-wrap {
  position: relative;
  margin: 22px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.locked-preview {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
  padding: 22px;
  background: var(--bg-subtle);
}

.locked-preview-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  padding: 24px;
  text-align: center;
}

.locked-preview-overlay p {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  width: 100%;
  margin-top: 12px;
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.whatsapp-cta {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(37, 211, 102, 0.25);
  background: rgba(37, 211, 102, 0.06);
}

.whatsapp-cta p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.form-trust {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 10px;
}

.privacy-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 10px;
}

.tech-payload {
  display: none;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  overflow: hidden;
}

.tech-payload.show { display: block; }

.tech-payload summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--primary);
  font-weight: 600;
}

.tech-payload pre {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  padding: 18px;
}

.modal-backdrop.show { display: grid; }

.exit-modal {
  width: min(480px, 100%);
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.28s ease both;
}

.exit-modal h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

.exit-modal p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }

.exit-actions { display: grid; gap: 10px; }

.btn-link {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  font-family: inherit;
  font-size: 0.9375rem;
}

.btn-link:hover { color: var(--primary); }

.inline-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.payload { display: none; margin-top: 12px; }
.payload.show { display: block; }
.payload textarea {
  height: 140px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
}

.verdict .expl-block { margin-bottom: 10px; }
.verdict .expl-block strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section-head { display: block; }
  .question-shell,
  .result-grid { grid-template-columns: 1fr; }
  .report-sidebar { position: static; }
  .side-panel { position: static; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .mini-lead-grid,
  .unlock-grid { grid-template-columns: 1fr; }
  .lead-head { display: block; }
  .lead-bonus { margin-top: 10px; }
  .mid-save { grid-template-columns: 1fr !important; bottom: 10px; }
  .mid-save form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .mid-save input { min-width: 0; }
  .result-grid.report-content.unlocked { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .topbar-nav { gap: 2px; }
  .nav-link { padding: 6px 8px; font-size: 0.8125rem; }
}

@media (max-width: 580px) {
  .topbar {
    position: sticky;
    padding: 0 12px 8px;
    height: auto;
    min-height: 56px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 0;
  }

  .brand { justify-self: start; padding-top: 10px; }
  .top-actions { position: absolute; top: 10px; right: 12px; }

  .topbar-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 6px 0 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .topbar-nav::-webkit-scrollbar { display: none; }

  .nav-link { padding: 6px 10px; font-size: 0.8125rem; flex-shrink: 0; }
  .pill,
  .progress-mini { display: none; }
  .wrap { width: min(100% - 24px, 1120px); padding: 28px 0 40px; }
  .stats { grid-template-columns: 1fr; }
  .role-grid,
  .spec-grid { grid-template-columns: 1fr; }
  .skill-row { grid-template-columns: auto 1fr; }
  .skill-row .badge { grid-column: 1 / -1; width: max-content; }
  .metric-grid { grid-template-columns: 1fr; }
  .q-top { display: block; }
  .score { font-size: 2.75rem; }
}
