/* ============================================================
   Aggregate Check — design tokens
   Ink navy + paper, one indigo accent, traffic-light meter for
   the one thing this page actually needs to communicate: a
   yes/maybe/no read on your chances.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #0F1A2B;
  --ink-soft: #48566B;
  --paper: #F5F7F6;
  --paper-dim: #E7EBE9;
  --line: #D9DEDC;
  --accent: #3552E0;
  --accent-dark: #2540B8;
  --go: #1F9D63;
  --go-bg: #E4F5EC;
  --warn: #C98A1E;
  --warn-bg: #FBF0DB;
  --stop: #C23F35;
  --stop-bg: #FBE7E5;
  --whatsapp: #1EA95C;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-s: 6px;
  --radius-m: 12px;
  --max-w: 640px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Top bar ---------- */

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--go);
  box-shadow: 0 0 0 3px rgba(31, 157, 99, 0.25);
  flex-shrink: 0;
}

.brand-text-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.brand-tagline {
  display: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.01em;
}
@media (min-width: 640px) {
  .brand-tagline { display: block; }
}

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover { color: #fff; }

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: #fff;
  padding: 40px 20px 56px;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.85rem;
  color: #9FB0CC;
  margin-bottom: 10px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  letter-spacing: -0.01em;
}

.hero-lead {
  color: #C6D0E0;
  font-size: 1rem;
  max-width: 46ch;
}

.quick-check {
  margin-top: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-m);
  padding: 16px;
}

.quick-check label {
  display: block;
  font-size: 0.9rem;
  color: #DCE3EE;
  margin-bottom: 10px;
}

.quick-check-row {
  display: flex;
  gap: 10px;
}

.quick-check-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.95);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.quick-check-row button {
  padding: 12px 18px;
  border-radius: var(--radius-s);
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
}

.quick-check-row button:hover { background: var(--accent-dark); }

.quick-check-result {
  margin: 12px 0 0;
  font-size: 0.92rem;
  min-height: 1.3em;
  color: #EAF5EE;
}

.hero-cta {
  display: inline-block;
  margin-top: 22px;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.95rem;
}

/* ---------- Calculator ---------- */

.calculator { padding: 36px 20px 8px; }
.calculator-inner { max-width: var(--max-w); margin: 0 auto; }

.alert {
  background: var(--stop-bg);
  border: 1px solid var(--stop);
  color: #7A241D;
  border-radius: var(--radius-s);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.alert ul { margin: 0; padding-left: 18px; }

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 30px;
}

legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding: 0;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  flex-shrink: 0;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 16px 0 6px;
}

select, input[type="number"], input[type="text"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

select:focus, input:focus { border-color: var(--accent); }

.weight-bar {
  display: flex;
  margin-top: 14px;
  border-radius: var(--radius-s);
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}
.weight-seg {
  padding: 8px 4px;
  color: #fff;
}
.weight-seg b { display: block; font-family: var(--font-display); font-size: 0.85rem; }
.weight-jamb { background: var(--accent); }
.weight-post { background: #5B72E8; }
.weight-olevel { background: #8B9BEF; }

.grade-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.grade-row select { padding: 10px 4px; font-size: 0.85rem; text-align: center; }

.btn {
  display: inline-block;
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { background: #A9B3C4; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { filter: brightness(0.95); }
.btn-block { display: block; width: 100%; margin-top: 10px; }

.form-fineprint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 14px;
}

/* ---------- Result panel ---------- */

.result-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 20px;
  margin-bottom: 26px;
}

.result-eyebrow {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.result-figures {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.result-number { display: flex; flex-direction: column; }
.figure {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.figure-label { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }
.figure-go { color: var(--go); }
.figure-warn { color: var(--warn); }
.figure-stop { color: var(--stop); }

.meter {
  height: 10px;
  border-radius: 6px;
  background: var(--paper-dim);
  overflow: hidden;
  margin-bottom: 12px;
}
.meter-fill { height: 100%; border-radius: 6px; }
.meter-go { background: var(--go); }
.meter-warn { background: var(--warn); }
.meter-stop { background: var(--stop); }

.band-label { font-weight: 600; font-family: var(--font-display); margin-bottom: 6px; }
.band-go { color: var(--go); }
.band-warn { color: var(--warn); }
.band-stop { color: var(--stop); }

.band-advice { color: var(--ink-soft); font-size: 0.94rem; }

.provisional-note {
  font-size: 0.85rem;
  background: var(--warn-bg);
  color: #7A5410;
  padding: 10px 12px;
  border-radius: var(--radius-s);
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 14px;
}

.result-fineprint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 0;
}

/* ---------- Upsell strip ---------- */

.upsell {
  background: var(--paper-dim);
  padding: 36px 20px;
  margin-top: 20px;
}
.upsell-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.upsell h2 { font-size: 1.3rem; }
.upsell p { color: var(--ink-soft); font-size: 0.95rem; }
.upsell .btn { margin-top: 6px; }

/* ---------- Steps / guide pages ---------- */

.page-head { background: var(--ink); color: #fff; padding: 32px 20px 40px; }
.page-head-inner { max-width: var(--max-w); margin: 0 auto; }
.back-link { color: #AEC0DE; font-size: 0.88rem; text-decoration: none; }
.page-head h1 { font-size: clamp(1.4rem, 5vw, 1.8rem); margin-top: 12px; }
.page-lead { color: #C6D0E0; }

.steps-section { padding: 32px 20px 8px; }
.steps-inner { max-width: var(--max-w); margin: 0 auto; }

.steps-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  counter-reset: step;
}
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 40px;
  border-left: 2px solid var(--line);
  margin-left: 13px;
}
.steps-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: -14px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-list h3 { font-size: 1rem; margin-bottom: 4px; }
.steps-list p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

.steps-disclaimer {
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--paper-dim);
  padding: 12px 14px;
  border-radius: var(--radius-s);
}

.steps-upsell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px;
  margin: 24px 0 40px;
}
.steps-upsell h2 { font-size: 1.1rem; }
.steps-upsell p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.guide-section { padding: 32px 20px 48px; }
.guide-card {
  max-width: var(--max-w);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.guide-card-main { padding: 24px 22px 6px; }
.guide-list { padding-left: 20px; color: var(--ink-soft); font-size: 0.95rem; }
.guide-list li { margin-bottom: 8px; }

.guide-card-buy {
  padding: 22px;
  border-top: 1px solid var(--line);
  background: var(--paper-dim);
}
.guide-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin: 0; }
.guide-price-note { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 16px; }
.guide-fineprint { text-align: center; font-size: 0.8rem; color: var(--ink-soft); margin: 10px 0 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #C6D0E0; padding: 30px 20px 40px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-disclaimer { font-size: 0.82rem; color: #9FB0CC; }
.footer-credit { font-size: 0.85rem; margin: 0; }
.footer-credit a { color: #C6D0E0; }

/* ---------- Small screens tighten padding further ---------- */
@media (max-width: 380px) {
  .grade-row { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .grade-row select { padding: 9px 2px; font-size: 0.76rem; }
}

/* ---------- Wider screens: a touch more breathing room ---------- */
@media (min-width: 720px) {
  .hero, .calculator, .upsell, .page-head, .steps-section, .guide-section, .site-footer {
    padding-left: 32px;
    padding-right: 32px;
  }
  .result-actions { flex-direction: row; }
  .result-actions .btn { flex: 1; }
  .upsell-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .upsell-inner > div:first-child { flex: 1; }
  .steps-upsell { flex-direction: row; align-items: center; justify-content: space-between; }
  .guide-card { display: flex; }
  .guide-card-main { flex: 1.3; }
  .guide-card-buy { flex: 1; border-top: none; border-left: 1px solid var(--line); }
}

/* ============================================================
   PLATFORM EXPANSION — added on top of the original calculator
   styles above. Same tokens, same restraint: no new colors
   beyond --ink/--paper/--accent/--go/--warn/--stop, no gradients,
   no glassmorphism. Just more components built from the same kit.
   ============================================================ */

:root {
  --max-w-wide: 1120px;
  --max-w-read: 680px;
  --card-bg: #fff;
  --radius-l: 18px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-s) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar v2 ---------- */
.site-bar-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.site-bar { padding: 0; }
.site-nav { display: none; }
.site-nav a.is-active { color: #fff; }
.site-bar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--ink);
  padding: 90px 24px 24px;
  overflow-y: auto;
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-drawer a.is-active { color: #9FE0BE; }
body.drawer-open { overflow: hidden; }

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 120;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.68rem;
  padding: 4px 0;
}
.bottom-nav a.is-active { color: var(--accent); }
.bottom-nav-cta { color: var(--accent) !important; font-weight: 700; }
body { padding-bottom: 66px; }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs-wrap { background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumbs { max-width: var(--max-w-wide); margin: 0 auto; padding: 10px 20px; overflow-x: auto; }
.breadcrumbs ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; white-space: nowrap; font-size: 0.8rem; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- Generic layout helpers ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 20px; }
.container-read { max-width: var(--max-w-read); margin: 0 auto; padding: 0 20px; }
.section { padding: 36px 0; }
.section-tight { padding: 20px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); margin-bottom: 6px; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
.section-alt { background: var(--paper-dim); }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .card-grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.card-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--paper-dim);
  color: var(--accent);
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 700;
}
.card-meta { display: flex; gap: 10px; margin-top: 10px; font-size: 0.78rem; color: var(--ink-soft); flex-wrap: wrap; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--paper-dim);
  color: var(--ink-soft);
}
.badge-go { background: var(--go-bg); color: var(--go); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-stop { background: var(--stop-bg); color: var(--stop); }
.badge-accent { background: #E7EAFB; color: var(--accent-dark); }
.badge-demo { background: #F1EAFB; color: #6A38B5; }

/* ---------- Bar rows (score breakdown / comparisons) ---------- */
.barchart { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.bar-row { display: grid; grid-template-columns: 84px 1fr 56px; align-items: center; gap: 10px; }
.bar-label { font-size: 0.82rem; color: var(--ink-soft); }
.bar-track { height: 10px; background: var(--paper-dim); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width 0.6s ease; }
.bar-fill-go { background: var(--go); }
.bar-fill-warn { background: var(--warn); }
.bar-fill-stop { background: var(--stop); }
.bar-value { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Comparison meter (score vs cutoff) ---------- */
.compare-meter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; margin: 16px 0; }
.compare-meter-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.compare-meter-figure { display: flex; flex-direction: column; }
.compare-meter-figure .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.compare-meter-figure .lbl { font-size: 0.76rem; color: var(--ink-soft); }
.compare-track { position: relative; height: 14px; background: var(--paper-dim); border-radius: 8px; margin: 14px 0 8px; }
.compare-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--accent); }
.compare-cutoff-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.compare-diff { text-align: center; font-family: var(--font-display); font-weight: 600; }

/* ---------- What-if calculator ---------- */
.whatif { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; margin: 16px 0; }
.whatif-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
.whatif-chip {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}
.whatif-chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.whatif-result { display: flex; gap: 20px; }
.whatif-result .num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.whatif-result .lbl { font-size: 0.76rem; color: var(--ink-soft); }

/* ---------- Report card / share card preview ---------- */
.report-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 26px 22px;
  text-align: center;
  max-width: 360px;
  margin: 20px auto;
}
.report-card .rc-brand { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; color: #9FE0BE; text-transform: uppercase; }
.report-card .rc-course { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin: 14px 0 2px; }
.report-card .rc-uni { color: #AEC0DE; font-size: 0.9rem; margin-bottom: 14px; }
.report-card .rc-score { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; }
.report-card .rc-band { font-weight: 600; margin-bottom: 16px; }
.report-card .rc-bars { text-align: left; }
.report-card .bar-label, .report-card .bar-value { color: #DCE3EE; }
.report-card .bar-track { background: rgba(255,255,255,0.15); }
.report-card .rc-footer { margin-top: 14px; font-size: 0.72rem; color: #9FB0CC; }

/* ---------- Tabs ---------- */
.tabs-nav { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs-nav button {
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs-nav button.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Accordion ---------- */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
}
.accordion-trigger::after { content: '+'; font-size: 1.2rem; color: var(--ink-soft); }
.accordion-trigger[aria-expanded="true"]::after { content: '–'; }
.accordion-panel { padding: 0 4px 16px; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Timeline / roadmap ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-step {
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
  position: relative;
}
.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 1;
}
.timeline-body h3 { font-size: 0.98rem; margin-bottom: 3px; }
.timeline-body p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---------- Journey strip (homepage) ---------- */
.journey-strip { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.journey-node {
  padding: 10px 16px;
  border-radius: 20px;
  background: var(--paper-dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
}
.journey-arrow { align-self: center; color: var(--ink-soft); }

/* ---------- Progress bars (learning) ---------- */
.progress-track { height: 8px; background: var(--paper-dim); border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--go); border-radius: 5px; }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; }
.progress-row .subject-name { font-size: 0.9rem; font-weight: 500; }
.progress-row .subject-pct { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 34px 20px; color: var(--ink-soft); }
.empty-state h3 { color: var(--ink); font-size: 1rem; margin-bottom: 6px; }

/* ---------- Lesson reader ---------- */
.lesson-header { background: var(--ink); color: #fff; padding: 24px 20px 20px; }
.lesson-header-inner { max-width: var(--max-w-read); margin: 0 auto; }
.lesson-progress-track { height: 6px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; margin-top: 12px; }
.lesson-progress-fill { height: 100%; background: #9FE0BE; }
.lesson-meta { font-size: 0.8rem; color: #AEC0DE; margin-top: 8px; }

.lesson-body { padding: 30px 0 20px; }
.lesson-page h2 { font-size: 1.3rem; margin-bottom: 14px; }
.lesson-page p { color: var(--ink); font-size: 1rem; line-height: 1.7; white-space: pre-line; }
.objectives-box { background: var(--paper-dim); border-radius: var(--radius-m); padding: 16px 18px; margin-bottom: 20px; }
.objectives-box h3 { font-size: 0.92rem; margin-bottom: 8px; }
.objectives-box ul { margin: 0; padding-left: 18px; font-size: 0.9rem; color: var(--ink-soft); }

.lesson-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.lesson-page-dots { display: flex; gap: 6px; }
.lesson-page-dots a {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  text-indent: -9999px;
  display: block;
}
.lesson-page-dots a.is-current { background: var(--accent); width: 20px; border-radius: 4px; }
.lesson-nav-btn { font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--accent); }
.lesson-nav-btn.is-disabled { color: var(--line); pointer-events: none; }

.key-terms { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.demo-banner {
  background: #F1EAFB;
  color: #5A2D9E;
  border: 1px dashed #C9AEEE;
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-size: 0.86rem;
  margin-bottom: 20px;
}

/* ---------- Practice / exam mode ---------- */
.quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 0.85rem; color: var(--ink-soft); }
.quiz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; }
.quiz-question { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 16px; }
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  margin-bottom: 10px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
}
.quiz-option:hover { border-color: var(--accent); }
.quiz-option.is-correct { border-color: var(--go); background: var(--go-bg); }
.quiz-option.is-wrong { border-color: var(--stop); background: var(--stop-bg); }
.quiz-explanation { background: var(--paper-dim); border-radius: var(--radius-s); padding: 12px 14px; font-size: 0.88rem; color: var(--ink-soft); margin-top: 12px; }
.quiz-footer { display: flex; justify-content: space-between; margin-top: 16px; }
.quiz-score-ring { text-align: center; }
.quiz-score-ring .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.checklist label { margin: 0; color: var(--ink); font-weight: 400; font-size: 0.95rem; flex: 1; }
.checklist li.is-done label { color: var(--ink-soft); text-decoration: line-through; }

/* ---------- Streak calendar ---------- */
.streak-row { display: flex; gap: 6px; }
.streak-day { flex: 1; text-align: center; }
.streak-day .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--paper-dim); margin: 0 auto 4px; }
.streak-day.is-active .dot { background: var(--go); }
.streak-day .lbl { font-size: 0.68rem; color: var(--ink-soft); }

/* ---------- Search box ---------- */
.search-box { display: flex; gap: 8px; margin: 20px 0; }
.search-box input { flex: 1; }
.search-results-list { display: flex; flex-direction: column; gap: 10px; }
.search-result-item { display: block; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--ink); }
.search-result-item .srt-type { font-size: 0.72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.search-result-item h4 { margin: 4px 0 2px; font-size: 0.98rem; }
.search-result-item p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Comparison table ---------- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare-table th, .compare-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table th { font-family: var(--font-display); font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Callout boxes ---------- */
.callout { border-radius: var(--radius-s); padding: 14px 16px; font-size: 0.9rem; margin: 16px 0; }
.callout-info { background: #E7EAFB; color: #29348C; }
.callout-tip { background: var(--go-bg); color: #14653E; }
.callout-warn { background: var(--warn-bg); color: #7A5410; }

/* ---------- Banner (continue learning / notices) ---------- */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; flex-wrap: wrap; }
.banner-text strong { display: block; font-family: var(--font-display); font-size: 0.98rem; }
.banner-text span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Forms (planner/study-plan wizards) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .checkbox-grid { grid-template-columns: repeat(3, 1fr); } }
.checkbox-pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; font-size: 0.88rem; }
.checkbox-pill input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------- Print ---------- */
@media print {
  .site-bar, .mobile-drawer, .bottom-nav, .breadcrumbs-wrap, .site-footer, .upsell, .result-actions, .no-print { display: none !important; }
  body { padding-bottom: 0; }
  .report-card { color: #000; background: #fff; border: 2px solid #000; }
  .report-card .rc-brand, .report-card .bar-label, .report-card .bar-value, .report-card .rc-uni, .report-card .rc-footer { color: #333; }
}

/* ---------- Reduced motion already handled globally above ---------- */

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  .lesson-pagination { padding: 20px 0; }
}
