@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
  --navy:         #ffffff;
  --surface:      #f1f5f9;
  --card:         #f8fafc;
  --teal:         #0d9488;
  --teal-light:   #0f766e;
  --amber:        #d97706;
  --amber-light:  #b45309;
  --blue-accent:  #2563eb;
  --red-accent:   #dc2626;
  --border:       rgba(15,23,42,0.12);
  --text:         #1e293b;
  --muted:        #64748b;
}

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

/* ─── BASE ─── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* ─── TOP BAR ─── */
.topbar {
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}

.module-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--teal-light);
}

/* ─── PAGE DOTS ─── */
.page-dots {
  display: flex; gap: 7px; align-items: center;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}

.dot.active          { background: var(--teal);       transform: scale(1.3); }
.dot.done            { background: var(--teal-light);  opacity: 0.6; }
.dot.quiz-dot        { background: var(--border); }
.dot.quiz-dot.active { background: var(--amber);      transform: scale(1.3); }
.dot.quiz-dot.done   { background: var(--amber);      opacity: 0.6; }
.dot.summary-dot.active { background: var(--blue-accent); transform: scale(1.3); }

.page-counter {
  font-size: 12px; color: var(--muted);
}

/* ─── SLIDE WRAPPER ─── */
.slide-wrapper {
  width: 100%;
  max-width: 820px;
  padding: 48px 24px 80px;
  flex: 1;
}

.slide { display: none; animation: fadeIn 0.35s ease; }
.slide.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SLIDE TAG PILLS ─── */
.slide-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(45,212,191,0.25);
  color: var(--teal-light);
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; margin-bottom: 20px;
}

.slide-tag.quiz-tag {
  background: rgba(245,158,11,0.12);
  border-color: rgba(252,211,77,0.3);
  color: var(--amber-light);
}

.slide-tag.summary-tag {
  background: rgba(96,165,250,0.12);
  border-color: rgba(96,165,250,0.3);
  color: var(--blue-accent);
}

/* ─── HEADINGS ─── */
h1.slide-title {
  font-family: 'DM Serif Display', serif;
  font-size: 36px; line-height: 1.2;
  color: var(--text); margin-bottom: 12px;
}

h2.slide-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px; line-height: 1.3;
  color: var(--text); margin-bottom: 12px;
}

.slide-subtitle {
  font-size: 16px; color: var(--muted);
  line-height: 1.6; margin-bottom: 32px;
  max-width: 600px;
}

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

/* ─── DEFINITION CARDS ─── */
.def-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 16px;
}

.def-card-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 8px;
}

.def-card-label.teal  { color: var(--teal-light); }
.def-card-label.amber { color: var(--amber-light); }

.def-card-question {
  font-size: 20px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
  line-height: 1.4;
}

.def-card-note {
  font-size: 13px; color: var(--muted);
  line-height: 1.6;
}

/* ─── NOTE BOX ─── */
.note-box {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
}

.note-box-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--amber-light); margin-bottom: 6px;
}

.note-box p {
  font-size: 14px; color: var(--text); line-height: 1.6;
}

/* ─── FRAMEWORK IMAGE BLOCK ─── */
.framework-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.framework-img-wrap {
  background: var(--surface);
  display: flex; justify-content: center;
  padding: 24px;
}

.framework-img-wrap img {
  max-width: 100%; max-height: 340px;
  object-fit: contain;
}

.framework-labels {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.fw-label {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.fw-label:last-child { border-right: none; }

.fw-label-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.fw-label-desc {
  font-size: 12px; color: var(--muted); line-height: 1.5;
}

/* ─── COMPARE CARDS ─── */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 20px;
}

.compare-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.compare-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
}

.compare-card.ivc::before   { background: var(--teal); }
.compare-card.vexus::before { background: var(--amber); }

.compare-icon { font-size: 32px; margin-bottom: 12px; }

.compare-tool {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 6px;
}

.compare-card.ivc .compare-tool   { color: var(--teal-light); }
.compare-card.vexus .compare-tool { color: var(--amber-light); }

.compare-arrow {
  font-size: 13px; color: var(--muted);
  margin-bottom: 8px;
}

.compare-concept {
  font-size: 22px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
  line-height: 1.2;
}

.compare-question {
  font-size: 13px; color: var(--muted);
  line-height: 1.6;
}

.compare-connect {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted);
  gap: 8px; padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ─── QUIZ ─── */
.quiz-progress {
  display: flex; gap: 6px; margin-bottom: 28px;
}

.qpip {
  height: 3px; flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.qpip.done   { background: var(--amber); }
.qpip.active { background: var(--amber-light); }

.question-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 16px;
}

.q-number {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--amber-light); margin-bottom: 12px;
}

.q-text {
  font-size: 17px; font-weight: 500;
  color: var(--text); line-height: 1.5;
  margin-bottom: 20px;
}

.options { display: flex; flex-direction: column; gap: 10px; }

.opt-btn {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 18px;
  text-align: left;
  cursor: pointer;
  font-size: 14px; color: var(--text);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.18s;
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.5;
}

.opt-btn:hover:not(:disabled) {
  background: rgba(13,148,136,0.1);
  border-color: rgba(45,212,191,0.3);
}

.opt-btn .opt-letter {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
  transition: all 0.18s;
}

.opt-btn.correct {
  background: rgba(16,185,129,0.1);
  border-color: #10b981;
  color: #065f46;
}

.opt-btn.correct .opt-letter {
  background: #10b981; color: white;
}

.opt-btn.incorrect {
  background: rgba(239,68,68,0.07);
  border-color: #ef4444;
  color: #991b1b;
  opacity: 0.85;
}

.opt-btn.incorrect .opt-letter {
  background: #ef4444; color: white;
}

.opt-btn:disabled { cursor: default; }

/* No-feedback mode (pre/post test) — neutral selection, no green/red */
.opt-btn.chosen {
  background: rgba(13,148,136,0.08);
  border-color: var(--teal);
  color: var(--text);
}

.opt-btn.chosen .opt-letter {
  background: var(--teal); color: white;
}

.feedback-box {
  display: none;
  background: rgba(13,148,136,0.08);
  border: 1px solid rgba(13,148,136,0.2);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13.5px; line-height: 1.6;
  color: var(--text);
}

.feedback-box.show { display: block; }

/* ─── SUMMARY ─── */
.summary-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 20px;
}

.summary-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.summary-col-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}

.summary-col-icon  { font-size: 20px; }
.summary-col-title { font-size: 14px; font-weight: 700; color: var(--text); }

.summary-list { list-style: none; }

.summary-list li {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.6;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 8px;
}

.summary-list li:last-child { border-bottom: none; }

.summary-list li::before {
  content: '→';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

.summary-highlight {
  background: linear-gradient(135deg, rgba(13,148,136,0.12), rgba(96,165,250,0.08));
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 10px;
  padding: 18px 22px;
  text-align: center;
  font-size: 15px; color: var(--text);
  line-height: 1.6;
}

.summary-highlight strong { color: var(--teal-light); }

/* ─── NAV BAR ─── */
.nav-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.nav-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--teal);
  border: none; color: white;
  padding: 10px 24px; border-radius: 8px;
  cursor: pointer; font-size: 14px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}

.nav-btn:hover           { background: var(--teal-light); color: white; }
.nav-btn:disabled        { opacity: 0.25; cursor: default; background: var(--teal); color: white; }

.nav-btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.nav-btn.ghost:hover { border-color: var(--teal); color: var(--teal-light); background: transparent; }

.nav-hint {
  font-size: 12px; color: var(--muted);
  text-align: center;
}

/* ─── COMPLETE / SCORE SCREEN ─── */
.complete-screen {
  text-align: center; padding: 60px 24px;
}

.complete-icon { font-size: 56px; margin-bottom: 16px; }

.complete-screen h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 30px; color: var(--text); margin-bottom: 10px;
}

.complete-screen p {
  font-size: 15px; color: var(--muted); margin-bottom: 32px;
}

.score-badge {
  display: inline-block;
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(45,212,191,0.3);
  color: var(--teal-light);
  font-size: 32px; font-weight: 700;
  padding: 16px 40px; border-radius: 12px;
  margin-bottom: 32px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
  .framework-labels   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .compare-grid       { grid-template-columns: 1fr; }
  .summary-grid       { grid-template-columns: 1fr; }
  .framework-labels   { grid-template-columns: repeat(2, 1fr); }
  h1.slide-title      { font-size: 26px; }
  h2.slide-title      { font-size: 22px; }
  .nav-bar            { padding: 12px 16px; }
  .slide-wrapper      { padding: 32px 16px 80px; }
}
