:root {
  --brand: #0084c1;
  --brand-dark: #006395;
  --brand-light: #e6f4fb;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 16px;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(0,132,193,0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0,132,193,0.04) 0%, transparent 40%);
}

.container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 40px;
  width: auto;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInDown 0.6s ease forwards;
}

.section {
  display: none;
  animation: fadeIn 0.5s ease;
}
.section.active { display: block; }

/* Landing */
.landing {
  text-align: center;
  padding: 40px 0 80px;
}
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.1s ease forwards;
}
.landing-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.landing h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.2s ease forwards;
}
.landing h1 span { color: var(--brand); }
.landing p.lead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 0.6s 0.3s ease forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 14px rgba(0,132,193,0.35);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,132,193,0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}
.landing .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s 0.4s ease forwards;
}

.social-proof {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s 0.5s ease forwards;
}
.avatars { display: flex; }
.avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid white;
  margin-left: -10px;
  object-fit: cover;
  background: var(--surface);
}
.avatars img:first-child { margin-left: 0; }
.social-proof p { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.social-proof strong { color: var(--text); }

/* Quiz */
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-top: 8px;
}
.quiz-header .back {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.quiz-header .back:hover { color: var(--brand); background: var(--brand-light); }
.progress-wrapper { flex: 1; margin-left: 20px; max-width: 320px; }
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.progress-bar { height: 6px; background: var(--border); border-radius: 100px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}
.question-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.4s ease;
}
.question-number {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.question-text {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.answers { display: flex; flex-direction: column; gap: 12px; }
.answer-btn {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.answer-btn .letter {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.answer-btn:hover {
  background: white;
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.answer-btn:hover .letter { background: var(--brand); border-color: var(--brand); color: white; }
.answer-btn:active { transform: translateX(2px) scale(0.99); }

/* Processing */
.processing { text-align: center; padding: 100px 20px; }
.processing-spinner {
  width: 64px; height: 64px;
  border: 4px solid var(--brand-light);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 32px;
}
.processing h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.processing p { color: var(--text-secondary); font-size: 1rem; }

/* Results Hero */
.results-hero {
  text-align: center;
  padding: 20px 0 36px;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.results-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.results-hero h1 .type-name {
  color: var(--brand);
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
}
.results-hero .description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* DNA Card */
.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}
.score-card h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.score-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.score-row:last-child { margin-bottom: 0; }
.score-label {
  width: 120px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-track {
  flex: 1;
  height: 28px;
  background: white;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}
.score-fill {
  height: 100%;
  background: var(--border);
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  min-width: 40px;
}
.score-fill.active { background: var(--brand); }
.score-fill span { font-size: 12px; font-weight: 700; color: white; white-space: nowrap; }
.score-fill:not(.active) span { color: var(--text-secondary); }

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}
.tab-panel.active { display: block; }

/* Result prose */
.prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.prose p { margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 700; }

.pull-quote {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: 24px 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}

.trait-grid {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
.trait-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: all 0.2s;
}
.trait-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.trait-card h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trait-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.trait-icon { font-size: 20px; }

.playbook-grid {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
.playbook-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.playbook-card h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: 12px;
}
.playbook-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.famous-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 640px) { .famous-grid { grid-template-columns: repeat(4, 1fr); } }
.famous-card {
  text-align: center;
  padding: 20px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.famous-card .famous-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-light), white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
  border: 2px solid var(--border);
}
.famous-card .famous-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.famous-card .famous-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.roadmap {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.roadmap-step {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 28px;
}
.roadmap-step:last-child { padding-bottom: 0; }
.roadmap-step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.roadmap-step:last-child::before { display: none; }
.roadmap-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  z-index: 1;
}
.roadmap-content h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  margin-top: 8px;
}
.roadmap-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cta-card {
  background: var(--brand);
  color: white;
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.cta-card h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}
.cta-card p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 24px;
  position: relative;
}
.cta-card .btn { background: white; color: var(--brand); position: relative; }
.cta-card .btn:hover { background: var(--surface); }

.share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 64px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.share-bar span { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.share-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.share-btn svg { width: 20px; height: 20px; }

footer {
  text-align: center;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
footer img { height: 32px; margin-bottom: 12px; opacity: 0.6; }
footer p { font-size: 13px; color: var(--text-muted); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (max-width: 640px) {
  .question-card { padding: 24px; }
  .score-card { padding: 24px; }
  .score-label { width: 100px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cta-card { padding: 36px 24px; }
  .tab-btn { padding: 10px 14px; font-size: 13px; }
  .trait-card, .playbook-card { padding: 18px; }
}

/* ═══════════════════════════════════════
   PASS 2 — PREMIUM VISUAL UPGRADE
═══════════════════════════════════════ */

/* ── Archetype color tokens ── */
[data-type="hustler"]       { --accent: #E8590C; --accent-dark: #c44a08; --accent-light: #fef0e7; }
[data-type="analyst"]       { --accent: #1B4FD8; --accent-dark: #1540b5; --accent-light: #eef2ff; }
[data-type="improver"]      { --accent: #2D7A56; --accent-dark: #236043; --accent-light: #ecf7f2; }
[data-type="inventor"]      { --accent: #7B2FBE; --accent-dark: #6424a0; --accent-light: #f5eeff; }
[data-type="wantrepreneur"] { --accent: #C2830A; --accent-dark: #a36c07; --accent-light: #fef9ec; }

/* ── Results hero banner ── */
.results-hero-banner {
  margin: 0 -24px 40px;
  padding: 60px 32px 52px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.results-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,0.13) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.type-code-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.type-display-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.type-tagline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.03em;
}

/* ── Magazine-style section labels ── */
.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, var(--brand));
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── DNA section wrapper ── */
.dna-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

/* ── Trait spectrum ── */
.spectrum-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.spectrum-row {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.spectrum-row:last-child { margin-bottom: 0; }

.spectrum-left  { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-align: right; line-height: 1.3; }
.spectrum-right { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-align: left; line-height: 1.3; }

.spectrum-track {
  position: relative;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
}

.spectrum-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--accent, var(--brand));
  border-radius: 100px;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.spectrum-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent, var(--brand));
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent, var(--brand)), var(--shadow-sm);
  left: 0;
  transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 560px) {
  .spectrum-row { grid-template-columns: 68px 1fr 68px; gap: 8px; }
  .spectrum-left, .spectrum-right { font-size: 11px; }
  .dna-section, .spectrum-section { padding: 20px; }
}

/* ── Deep content sections ── */
.deep-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* ── Drop cap on overview ── */
.prose > p:first-child::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4em;
  font-weight: 900;
  line-height: 0.82;
  float: left;
  margin: 0.05em 0.1em 0 0;
  color: var(--accent, var(--brand));
}

/* ── Sticky tab nav ── */
.tabs-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding-top: 4px;
  box-shadow: 0 1px 0 var(--border);
}

/* ── Enhanced pull quote ── */
.pull-quote {
  position: relative;
  padding: 28px 32px 28px 48px;
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  left: 8px;
  top: 4px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent, var(--brand));
  opacity: 0.22;
  pointer-events: none;
}

/* ── Accent color overrides for results page ── */
[data-type] .score-fill.active        { background: var(--accent); }
[data-type] .tab-btn.active           { color: var(--accent); border-bottom-color: var(--accent); }
[data-type] .tab-btn:hover            { color: var(--accent); }
[data-type] .pull-quote               { border-left-color: var(--accent); background: var(--accent-light); }
[data-type] .roadmap-num              { background: var(--accent); }
[data-type] .playbook-card h4         { color: var(--accent); }
[data-type] .cta-card                 { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); }
[data-type] .cta-card .btn            { color: var(--accent); }
[data-type] .answer-btn:hover         { border-color: var(--accent); }
[data-type] .answer-btn:hover .letter { background: var(--accent); border-color: var(--accent); }

/* ── Mobile tab grid ── */
@media (max-width: 640px) {
  .tabs-nav {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-bottom: none;
    box-shadow: none;
    overflow-x: visible;
    padding: 0 0 4px;
    margin-bottom: 24px;
  }
  .tab-btn {
    border: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm);
    padding: 11px 8px;
    font-size: 12px;
    background: var(--surface);
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    margin-bottom: 0;
    color: var(--text-secondary);
  }
  .tab-btn.active {
    background: var(--accent-light, var(--brand-light));
    border-color: var(--accent, var(--brand)) !important;
    color: var(--accent, var(--brand));
  }
  .tab-btn:hover {
    background: var(--surface);
  }
  /* 5th tab spans both columns */
  .tabs-nav .tab-btn:last-child {
    grid-column: 1 / -1;
  }
}

/* ── Next-tab navigation button ── */
.next-tab-wrap {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}
.next-tab-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: white;
  background: var(--accent, var(--brand));
  border: none;
  padding: 12px 24px;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent, var(--brand)) 35%, transparent);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.next-tab-btn svg {
  transition: transform 0.18s;
}
.next-tab-btn:hover {
  background: var(--accent-dark, var(--brand-dark));
  box-shadow: 0 6px 28px color-mix(in srgb, var(--accent, var(--brand)) 45%, transparent);
  transform: translateY(-1px);
}
.next-tab-btn:hover svg {
  transform: translateX(3px);
}
