/* ============================================================
   Skillnaija — webapp stylesheet
   Brand tokens come from brand-assets/colors/skillnaija-tokens.css
   ============================================================ */

:root {
  --naija-deep-green: #0B3D2E;
  --growth-green:    #16A34A;
  --growth-green-dk: #15803D;
  --soft-mint:       #86EFAC;
  --mint-50:         #DCFCE7;
  --cloud-white:     #F2F7F2;
  --ink-navy:        #0F172A;
  --slate-700:       #334155;
  --slate-500:       #64748B;
  --slate-300:       #CBD5E1;
  --slate-200:       #E2E8F0;
  --slate-100:       #F1F5F9;
  --slate-50:        #F8FAFC;
  --sunrise-gold:    #F59E0B;
  --future-purple:   #8B5CF6;
  --coral-signal:    #F97316;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
  --shadow:    0 14px 40px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, .14);

  --container: 1200px;
  --gutter: 7vw;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--slate-50);
  color: var(--ink-navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand {
  font-family: Poppins, Inter, sans-serif;
  letter-spacing: -0.01em;
}

/* Brand type hierarchy: H1 56/64, H2 36/44 bold; H3 24/32 semibold. */
h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.06; margin: 12px 0; font-weight: 800; }
h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.18; margin: 0 0 18px; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; font-weight: 700; }

a { color: inherit; text-decoration: none; }

.brand-accent { color: var(--growth-green); }

.muted { color: var(--slate-500); font-size: 14px; }

.hidden { display: none !important; }

/* ============ Nav ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--slate-200);
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo-mark { height: 32px; width: auto; display: block; }

/* Wordmark mirrors the brand logo lockup: Poppins 800, Ink Navy + Growth Green. */
.wordmark {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--ink-navy);
}

.links {
  display: flex;
  gap: 28px;
  font-family: Poppins, Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
}

.links a { padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .15s; }
.links a:hover { border-color: var(--growth-green); }

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

.hamburger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  cursor: pointer;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink-navy);
  border-radius: 2px;
}

/* ============ Buttons ============ */

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 14px;
  font-family: Poppins, Inter, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn.lg { padding: 14px 22px; font-size: 15px; }

.btn.primary {
  background: var(--growth-green);
  color: white;
  box-shadow: 0 10px 24px rgba(22, 163, 74, .25);
}
.btn.primary:hover { background: var(--growth-green-dk); }

.btn.ghost {
  background: white;
  color: var(--ink-navy);
  border: 1px solid var(--slate-300);
}
.btn.ghost:hover { border-color: var(--ink-navy); }

.btn.dark {
  background: var(--naija-deep-green);
  color: white;
}

.link-btn {
  background: transparent;
  border: 0;
  color: var(--growth-green);
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  font-size: 14px;
}
.link-btn:hover { color: var(--growth-green-dk); }

.back-btn {
  background: transparent;
  border: 0;
  color: var(--slate-500);
  cursor: pointer;
  padding: 8px 0;
  font-size: 14px;
  margin-bottom: 16px;
}
.back-btn:hover { color: var(--ink-navy); }

/* ============ Views (router) ============ */

main { min-height: calc(100vh - 72px); }

.view {
  display: none;
  padding: 48px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.view.active { display: block; }
.view-home { padding: 0; max-width: none; }
.view-home > .block,
.view-home > .cta-band { max-width: var(--container); margin: 0 auto; }

/* ============ Hero ============ */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  padding: 72px var(--gutter) 56px;
  background:
    radial-gradient(circle at 82% 22%, var(--mint-50), transparent 34%),
    linear-gradient(180deg, var(--cloud-white), #fff);
}

.kicker {
  color: var(--growth-green);
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

.lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate-700);
  max-width: 620px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 28px; }

.trust { display: flex; gap: 28px; flex-wrap: wrap; }
.trust > div { display: flex; flex-direction: column; }
.trust strong {
  font-family: Poppins, Inter, sans-serif;
  font-size: 24px;
  color: var(--naija-deep-green);
}
.trust span { font-size: 13px; color: var(--slate-500); }

/* ============ Phone visual ============ */

.visual {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}

.phone {
  max-width: 310px;
  margin: auto;
  background: var(--slate-50);
  border: 12px solid var(--ink-navy);
  border-radius: 42px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.search-mock {
  padding: 14px 16px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  background: white;
  color: var(--slate-500);
  font-size: 14px;
}

.course-mock {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 14px 0;
}
.course-mock b { font-size: 15px; }
.course-mock p { margin: 4px 0 10px; color: var(--slate-500); font-size: 13px; }

.progress {
  height: 8px;
  background: var(--mint-50);
  border-radius: 999px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--growth-green);
  transition: width .4s ease;
}

/* ============ Sections / blocks ============ */

.block {
  padding: 64px var(--gutter);
}
.block.alt { background: var(--cloud-white); }

.block-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 18px;
  flex-wrap: wrap;
}

/* ============ Grids ============ */

.grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ Cards ============ */

.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card.clickable { cursor: pointer; }
.card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--mint-50);
}

.card h3 { margin-top: 0; }
.card p { color: var(--slate-700); margin: 0 0 12px; line-height: 1.55; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint-50);
  color: var(--naija-deep-green);
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}
.tag.gold    { background: #FEF3C7; color: #92400E; }
.tag.purple  { background: #EDE9FE; color: #5B21B6; }
.tag.coral   { background: #FFEDD5; color: #9A3412; }

.course-card .course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 12px;
}

/* ============ Journey steps ============ */

.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  background: white;
  border: 1px solid var(--mint-50);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--growth-green);
  color: white;
  border-radius: 50%;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  margin-bottom: 12px;
}
.step b { display: block; margin-bottom: 4px; font-size: 16px; }
.step p { margin: 0; color: var(--slate-700); font-size: 14px; line-height: 1.5; }

/* ============ Testimonials ============ */

.testimonial {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.testimonial p { font-size: 16px; color: var(--ink-navy); line-height: 1.6; margin: 0 0 14px; }
.testimonial footer { color: var(--slate-500); font-size: 13px; }

/* ============ CTA band ============ */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, var(--naija-deep-green), #134e3b);
  color: white;
  padding: 48px var(--gutter);
}
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }

/* ============ Page head ============ */

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
  flex: 1;
  max-width: 520px;
}

.input {
  padding: 12px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: white;
  width: 100%;
}
.input:focus { outline: 2px solid var(--mint-50); border-color: var(--growth-green); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--slate-300);
  background: white;
  font-family: Poppins, Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--slate-700);
}
.chip.active {
  background: var(--naija-deep-green);
  color: white;
  border-color: var(--naija-deep-green);
}

/* ============ Course detail ============ */

.course-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.course-hero .meta-row { display: flex; gap: 18px; color: var(--slate-500); font-size: 14px; margin: 10px 0 20px; flex-wrap: wrap; }
.enroll-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.enroll-card .price { font-family: Poppins, Inter, sans-serif; font-size: 24px; font-weight: 800; color: var(--growth-green); margin-bottom: 8px; }
.enroll-card ul { padding-left: 18px; color: var(--slate-700); }
.enroll-card ul li { margin: 6px 0; }

.lessons {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lesson-row:hover { border-color: var(--growth-green); }
.lesson-row.done { background: var(--mint-50); border-color: var(--soft-mint); }
.lesson-row .lesson-title { font-weight: 600; }
.lesson-row .lesson-side { display: flex; align-items: center; gap: 10px; color: var(--slate-500); font-size: 13px; }

.check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--slate-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
}
.lesson-row.done .check {
  background: var(--growth-green);
  border-color: var(--growth-green);
}

/* ============ Lesson view ============ */

.lesson-stage {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.lesson-stage h1 { font-size: 32px; margin-bottom: 6px; }
.lesson-stage .lesson-body { line-height: 1.7; color: var(--slate-700); }
.lesson-stage .lesson-body p { margin: 0 0 14px; }
.lesson-stage .lesson-body ul { line-height: 1.7; }
.lesson-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

/* Language + audio toolbar on the lesson reader */
.lesson-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--slate-200);
}
.lang-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-pill {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--slate-300);
  background: white;
  color: var(--slate-700);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.lang-pill:hover { border-color: var(--growth-green); color: var(--naija-deep-green); }
.lang-pill.active {
  background: var(--naija-deep-green);
  border-color: var(--naija-deep-green);
  color: white;
}
.lesson-listen { white-space: nowrap; }
.lesson-listen.playing {
  background: var(--mint-50);
  border-color: var(--growth-green);
  color: var(--growth-green-dk);
}
.lesson-body.translating { opacity: .65; }

.lesson-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Text-size (comfort) control */
.comfort-control { display: inline-flex; border: 1px solid var(--slate-300); border-radius: 999px; overflow: hidden; background: white; }
.comfort-btn {
  font: 700 13px Inter, sans-serif; border: 0; background: transparent; color: var(--slate-700);
  padding: 6px 12px; cursor: pointer; line-height: 1; border-right: 1px solid var(--slate-200);
}
.comfort-btn:last-child { border-right: 0; }
.comfort-btn:nth-child(1) { font-size: 11px; }
.comfort-btn:nth-child(3) { font-size: 16px; }
.comfort-btn:hover { background: var(--slate-50); }
.comfort-btn.active { background: var(--naija-deep-green); color: white; }

/* ============ Lesson canvas — typed blocks ============ */

/* Body text scales with the comfort control via a scoped variable. */
.lesson-stage { --reader-scale: 1; }
.lesson-stage .lesson-body { font-size: calc(16px * var(--reader-scale)); }

.l-lead { font-size: calc(18px * var(--reader-scale)); color: var(--ink-navy); font-weight: 500; line-height: 1.6; margin: 0 0 18px; }
.lesson-body .l-h { font-family: Poppins, Inter, sans-serif; color: var(--ink-navy); line-height: 1.3; }
.lesson-body h2.l-h { font-size: calc(22px * var(--reader-scale)); margin: 30px 0 10px; }
.lesson-body h3.l-h { font-size: calc(18px * var(--reader-scale)); margin: 24px 0 8px; }
.lesson-body .l-term { font-weight: 700; color: var(--naija-deep-green); }
.l-list { margin: 0 0 16px; padding-left: 22px; }
.l-list li { margin: 0 0 8px; }
.l-divider { border: 0; border-top: 1px solid var(--slate-200); margin: 28px 0; }
.lesson-body blockquote.l-quote {
  margin: 22px 0; padding: 6px 0 6px 18px; border-left: 4px solid var(--soft-mint);
  color: var(--slate-700); font-style: italic;
}
.lesson-body blockquote.l-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--slate-500); }

/* Callouts */
.callout { border-radius: var(--radius); padding: 14px 16px; margin: 20px 0; border: 1px solid; line-height: 1.6; }
.callout p { margin: 0; }
.callout-title { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.callout-tip     { background: var(--mint-50);   border-color: var(--soft-mint); color: var(--naija-deep-green); }
.callout-tip .callout-title     { color: var(--growth-green-dk); }
.callout-note    { background: var(--slate-50);  border-color: var(--slate-200); color: var(--slate-700); }
.callout-note .callout-title    { color: var(--slate-500); }
.callout-example { background: #EFF6FF;          border-color: #BFDBFE; color: #1E3A8A; }
.callout-example .callout-title { color: #2563EB; }
.callout-warning { background: #FEF3C7;          border-color: #FCD34D; color: #92400E; }
.callout-warning .callout-title { color: #B45309; }

/* Key takeaways recap */
.key-takeaways { background: var(--mint-50); border: 1px solid var(--soft-mint); border-radius: var(--radius-lg); padding: 18px 20px; margin: 28px 0 8px; }
.kt-title { font-family: Poppins, Inter, sans-serif; font-weight: 700; color: var(--naija-deep-green); margin-bottom: 10px; }
.key-takeaways ul { margin: 0; padding-left: 20px; }
.key-takeaways li { margin: 0 0 8px; color: var(--ink-navy); }

/* Mini table of contents (long lessons) */
.l-toc { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 24px; }
.l-toc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-500); margin-bottom: 8px; }
.l-toc ul { margin: 0; padding-left: 18px; }
.l-toc li { margin: 4px 0; }
.l-toc a { color: var(--growth-green-dk); text-decoration: none; }
.l-toc a:hover { text-decoration: underline; }

/* ============ Media ============ */
.l-figure { margin: 24px 0; }
.l-figure img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--slate-200); background: var(--slate-100); }
.l-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--slate-500); line-height: 1.5; }
.l-media-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9; border-radius: var(--radius-lg); border: 1px dashed var(--slate-300); background: var(--slate-100); color: var(--slate-500); font-size: 14px; text-align: center; padding: 16px; }
.l-embed { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm); background: var(--ink-navy); }
.l-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.l-yt { cursor: pointer; }
.l-yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.l-yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: rgba(15, 23, 42, .78); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 4px; transition: background .15s; }
.l-yt:hover .l-yt-play, .l-yt:focus-visible .l-yt-play { background: var(--growth-green); }
.l-yt:focus-visible { outline: 3px solid var(--soft-mint); outline-offset: 2px; }
.l-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============ Tool-snapshot mockups ============ */
.l-mock { border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.l-mock-bar { display: flex; gap: 6px; align-items: center; padding: 9px 14px; background: var(--slate-50); border-bottom: 1px solid var(--slate-200); font: 700 13px Poppins, Inter, sans-serif; color: var(--slate-700); }
.l-mock-bar .l-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-300); }
.l-mock-bar .l-mock-title { margin-left: 8px; }
.l-mock-body { padding: 0; }
.l-mock table { width: 100%; border-collapse: collapse; font-size: 14px; }
.l-mock th { text-align: left; background: var(--naija-deep-green); color: #fff; font-weight: 600; }
.l-mock td, .l-mock th { padding: 8px 14px; border-bottom: 1px solid var(--slate-100); }
.l-mock tbody tr:nth-child(even) td { background: var(--slate-50); }
.l-mock tr.total td { font-weight: 700; background: var(--mint-50); color: var(--naija-deep-green); }
/* POS */
.l-pos { padding: 14px; }
.l-pos-row { display: flex; justify-content: space-between; padding: 9px 4px; border-bottom: 1px dashed var(--slate-200); font-size: 14px; }
.l-pos-price { font-variant-numeric: tabular-nums; font-weight: 600; }
.l-pos-sub { border-bottom: 0; font-weight: 700; color: var(--ink-navy); margin-top: 4px; }
.l-pos-cta { margin-top: 12px; text-align: center; background: var(--growth-green); color: #fff; font-weight: 700; padding: 12px; border-radius: var(--radius); }
/* Bar chart */
.l-bars { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding: 18px 16px 0; }
.l-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 6px; }
.l-bar-val { font-size: 12px; font-weight: 700; color: var(--slate-700); font-variant-numeric: tabular-nums; }
.l-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.l-bar { width: 100%; background: linear-gradient(180deg, var(--growth-green), var(--naija-deep-green)); border-radius: 6px 6px 0 0; min-height: 4px; }
.l-bar-label { font-size: 12px; color: var(--slate-500); text-align: center; }
/* WhatsApp catalog card */
.l-wa { display: flex; gap: 12px; padding: 14px; align-items: center; }
.l-wa-img { width: 84px; height: 84px; border-radius: var(--radius); background: var(--slate-100); border: 1px solid var(--slate-200); overflow: hidden; flex: none; }
.l-wa-img img { width: 100%; height: 100%; object-fit: cover; }
.l-wa-name { font-weight: 700; color: var(--ink-navy); }
.l-wa-price { color: var(--growth-green-dk); font-weight: 700; margin: 2px 0 8px; }
.l-wa-cta { display: inline-block; background: var(--mint-50); color: var(--growth-green-dk); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; }

/* ============ Highlighting ============ */
mark.hl { background: transparent; color: inherit; border-radius: 2px; padding: 0 1px; box-shadow: inset 0 -2px rgba(0,0,0,.18); }
mark.hl-yellow { background: #FEF08A; }
mark.hl-green  { background: var(--soft-mint); }
.hl-popover { position: absolute; z-index: 40; display: flex; gap: 6px; align-items: center; background: var(--ink-navy); padding: 7px 8px; border-radius: 999px; box-shadow: var(--shadow); }
.hl-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.hl-swatch.hl-yellow { background: #FEF08A; }
.hl-swatch.hl-green  { background: var(--soft-mint); }
.hl-remove { background: transparent; border: 0; color: #fff; font: 600 13px Inter, sans-serif; cursor: pointer; padding: 4px 8px; border-radius: 999px; }
.hl-remove:hover { background: rgba(255,255,255,.15); }
.hl-swatch:focus-visible, .hl-remove:focus-visible, .comfort-btn:focus-visible,
.hl-note:focus-visible, .hl-note-save:focus-visible, .hl-note-cancel:focus-visible { outline: 2px solid var(--soft-mint); outline-offset: 2px; }
.hl-note { background: transparent; border: 0; color: #fff; font: 600 13px Inter, sans-serif; cursor: pointer; padding: 4px 8px; border-radius: 999px; }
.hl-note:hover { background: rgba(255,255,255,.15); }
mark.hl-has-note { box-shadow: inset 0 -2px rgba(0,0,0,.18); border-bottom: 2px dotted rgba(15,23,42,.55); cursor: help; }

/* Inline note editor (popover morphs into this) */
.hl-popover.editing { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; width: min(280px, 86vw); border-radius: var(--radius); }
.hl-note-input { width: 100%; resize: vertical; min-height: 56px; border: 0; border-radius: 8px; padding: 8px 10px; font: 14px Inter, sans-serif; }
.hl-note-actions { display: flex; justify-content: flex-end; gap: 8px; }
.hl-note-save { background: var(--growth-green); color: #fff; border: 0; font: 600 13px Inter, sans-serif; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.hl-note-cancel { background: transparent; color: #fff; border: 0; font: 600 13px Inter, sans-serif; padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.hl-note-cancel:hover { background: rgba(255,255,255,.15); }

/* Notes & highlights review (under a lesson) */
.hl-review { margin-top: 22px; }
.hl-review-inner { border-top: 1px solid var(--slate-200); padding-top: 18px; }
.hl-review-title { font-family: Poppins, Inter, sans-serif; font-size: 16px; color: var(--ink-navy); margin: 0 0 12px; }
.hl-review-row { position: relative; background: var(--slate-50); border: 1px solid var(--slate-200); border-left-width: 4px; border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 10px; }
.hl-edge-yellow { border-left-color: #FACC15; }
.hl-edge-green { border-left-color: var(--growth-green); }
.hl-review-quote { margin: 0; font-style: italic; color: var(--slate-700); line-height: 1.5; }
.hl-review-note { margin: 8px 0 0; color: var(--ink-navy); font-size: 14px; }
.hl-review-jump { margin-top: 8px; background: transparent; border: 0; color: var(--growth-green-dk); font: 600 13px Inter, sans-serif; cursor: pointer; padding: 0; }
.hl-review-jump:hover { text-decoration: underline; }
mark.hl-flash { animation: hlFlash 1.2s ease; }
@keyframes hlFlash { 0%,100% { box-shadow: inset 0 -2px rgba(0,0,0,.18); } 30% { box-shadow: 0 0 0 3px var(--soft-mint); } }
@media (prefers-reduced-motion: reduce) { mark.hl-flash { animation: none; } }

/* ============ Reading progress ============ */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 60; opacity: 0; transition: opacity .2s; pointer-events: none; }
.reading-progress.show { opacity: 1; }
.reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--growth-green), var(--soft-mint)); transition: width .1s linear; }

@media (max-width: 720px) {
  .l-bars { height: 150px; }
  .lesson-tools { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress span { transition: none; }
}

/* ============ Assessment / quiz ============ */

.quiz-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  max-width: 720px;
}
.quiz-step { font-size: 13px; color: var(--slate-500); margin-bottom: 8px; }
.quiz-question { font-size: 22px; font-weight: 700; margin: 0 0 18px; font-family: Poppins, Inter, sans-serif; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.quiz-option {
  text-align: left;
  background: white;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.quiz-option:hover { border-color: var(--growth-green); }
.quiz-option.selected {
  border-color: var(--growth-green);
  background: var(--mint-50);
}

.quiz-progress {
  height: 6px;
  background: var(--slate-100);
  border-radius: 999px;
  margin-bottom: 20px;
  overflow: hidden;
}
.quiz-progress span {
  display: block;
  height: 100%;
  background: var(--growth-green);
  transition: width .25s ease;
}

.quiz-result {
  text-align: center;
}
.quiz-result h2 { font-size: 28px; margin-bottom: 6px; }
.quiz-result .recommendation {
  margin-top: 16px;
  padding: 20px;
  background: var(--mint-50);
  border-radius: var(--radius);
  text-align: left;
}

/* ============ Dashboard ============ */

.weekly-ring {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.weekly-ring svg { transform: rotate(-90deg); width: 96px; height: 96px; }
.ring-bg { fill: none; stroke: var(--slate-100); stroke-width: 3; }
.ring-fg { fill: none; stroke: var(--growth-green); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray .5s ease; }
#ringPct {
  position: absolute;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  color: var(--naija-deep-green);
  font-size: 18px;
}

.tabbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 28px;
}
.pill {
  padding: 9px 16px;
  border: 1px solid var(--slate-300);
  border-radius: 999px;
  background: white;
  font-family: Poppins, Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--slate-700);
}
.pill.active { background: var(--naija-deep-green); color: white; border-color: var(--naija-deep-green); }

.tab-panel { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ============ Certificate card ============ */

.cert {
  background: linear-gradient(135deg, var(--naija-deep-green), #134e3b);
  color: white;
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.cert::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--growth-green), transparent 60%);
  opacity: 0.45;
}
.cert h3 { color: white; }
.cert .cert-name { font-family: Poppins, Inter, sans-serif; font-size: 22px; margin: 16px 0 4px; }
.cert .cert-meta { font-size: 13px; opacity: 0.8; }

/* ============ Job card ============ */

.job-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  flex-wrap: wrap;
}
.job-card h3 { margin: 0 0 4px; }
.job-card .job-meta { color: var(--slate-500); font-size: 13px; margin-bottom: 8px; }
.job-card .job-side { display: flex; flex-direction: column; align-items: end; gap: 10px; }

/* ============ Footer ============ */

.footer {
  background: var(--naija-deep-green);
  color: white;
  padding: 56px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
}
.footer-logo { height: 64px; width: auto; display: block; margin: 0 0 8px -4px; }
.footer-brand p { color: rgba(255, 255, 255, .8); margin: 0; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 28px; }
.footer-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, .7); margin: 0 0 12px; font-family: Poppins, Inter, sans-serif; }
.footer-cols a, .footer-cols span { display: block; color: rgba(255, 255, 255, .85); font-size: 14px; margin: 6px 0; }
.footer-cols a:hover { color: white; }
.footer-legal {
  grid-column: 1 / -1;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255, 255, 255, .7);
}
.footer-legal a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-legal a:hover { color: white; }

/* cookie / on-device storage notice */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 720px; margin: 0 auto;
  background: var(--ink-navy); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-notice p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .9); flex: 1 1 320px; }
.cookie-notice a { color: var(--soft-mint); text-decoration: underline; }
.cookie-notice.hidden { display: none; }
#cookieAccept {
  background: var(--growth-green); color: #fff; border: none; cursor: pointer; white-space: nowrap;
  padding: 9px 18px; border-radius: 999px; font: 600 14px Inter, sans-serif;
}
#cookieAccept:hover { background: var(--growth-green-dk); }

/* updated-terms re-consent banner (top pill — distinct from the bottom cookie notice) */
.reconsent-banner {
  position: fixed; top: 84px; left: 16px; right: 16px; z-index: 1100; /* clear the 72px sticky nav */
  max-width: 760px; margin: 0 auto;
  background: #FFFBEB; border: 1px solid var(--sunrise-gold); color: #92400E;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.reconsent-banner p { margin: 0; font-size: 13.5px; line-height: 1.5; flex: 1 1 300px; }
.reconsent-banner a { color: var(--growth-green-dk); }
.reconsent-banner.hidden { display: none; }
#reconsentAgree {
  background: var(--growth-green); color: #fff; border: none; cursor: pointer; white-space: nowrap;
  padding: 9px 18px; border-radius: 999px; font: 600 14px Inter, sans-serif;
}
#reconsentAgree:hover { background: var(--growth-green-dk); }

/* legal document pages (privacy / terms / cookies) */
.legal-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter); background: var(--naija-deep-green);
}
.legal-topbar a { color: #fff; text-decoration: none; }
.legal-topbar .brand { font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 20px; }
.legal-topbar .brand span { color: var(--soft-mint); }
.legal-wrap { max-width: 840px; margin: 0 auto; padding: 28px var(--gutter) 96px; color: var(--slate-700); }
.legal-back { display: inline-block; margin-bottom: 14px; color: var(--growth-green-dk); text-decoration: none; font-weight: 600; font-size: 14px; }
.legal-wrap h1 { font-family: Poppins, Inter, sans-serif; color: var(--naija-deep-green); font-size: 34px; margin: 6px 0 6px; }
.legal-sub { color: var(--slate-500); font-size: 16px; margin: 0 0 6px; }
.legal-meta { color: var(--slate-500); font-size: 13px; margin: 0 0 24px; }
.legal-wrap section { margin: 0 0 22px; }
.legal-wrap h2 { font-family: Poppins, Inter, sans-serif; color: var(--ink-navy); font-size: 21px; margin: 28px 0 10px; scroll-margin-top: 16px; }
.legal-wrap h3 { color: var(--ink-navy); font-size: 16px; margin: 18px 0 8px; }
.legal-wrap p, .legal-wrap li { font-size: 15.5px; line-height: 1.7; }
.legal-wrap ul { padding-left: 22px; margin: 8px 0; }
.legal-wrap li { margin: 5px 0; }
.legal-wrap a { color: var(--growth-green-dk); }
.legal-callout { background: var(--mint-50); border: 1px solid var(--soft-mint); border-radius: var(--radius-sm); padding: 14px 16px; margin: 16px 0; font-size: 14.5px; color: var(--naija-deep-green); }
.legal-footer { border-top: 1px solid var(--slate-200); margin-top: 40px; padding-top: 18px; font-size: 13px; color: var(--slate-500); display: flex; gap: 14px; flex-wrap: wrap; }
.legal-footer a { color: var(--growth-green-dk); text-decoration: none; }

/* ============ Modal ============ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
  animation: fadeIn .15s ease;
}
.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal h2 { margin: 0 0 4px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: 0;
  background: var(--slate-100);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: var(--slate-700);
}
.modal-close:hover { background: var(--slate-200); }

.form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--slate-700); }
.form label.auth-consent { flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 500; font-size: 13px; line-height: 1.5; }
.auth-consent input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--growth-green); }
.auth-consent a { color: var(--growth-green-dk); }

/* ============ Auth: OAuth + login/signup modes ============ */

.oauth-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.btn.oauth {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--slate-300);
  color: var(--ink-navy);
}
.btn.oauth:hover { border-color: var(--ink-navy); background: var(--slate-50); }
.oauth-icon { width: 18px; height: 18px; flex: none; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: var(--slate-500);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}

.auth-switch { text-align: center; margin: 16px 0 0; font-size: 14px; }
.auth-switch .link-btn { font-size: 14px; }

/* Login mode hides the signup-only fields (name, goal). */
#authModal[data-mode="login"] .signup-only { display: none; }

.dash-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ============ Toast ============ */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink-navy);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  z-index: 60;
  /* Fully hidden when idle: translateY(120%) alone can't clear the bottom
     offset for an empty toast, so it would peek out as a dark blob. */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease, visibility .25s;
  max-width: 90vw;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============ Auth wall ============ */
/* Everything is gated behind sign-in. When signed out (body.auth-locked) only
   the logo and the centered auth card show; the gate can't be dismissed. */
body.auth-locked #main,
body.auth-locked .footer,
body.auth-locked .nav .links,
body.auth-locked .nav-actions { display: none; }

/* ============ Empty / utility ============ */

.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--slate-500);
  background: white;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-lg);
}

/* ============ Course tabs + Classroom ============ */

.course-tabbar { margin: 28px 0 0; }
.tab-tag {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--growth-green);
  color: white;
  font-size: 10px;
  letter-spacing: .06em;
}
.pill.active .tab-tag { background: var(--soft-mint); color: var(--naija-deep-green); }

.classroom-panel {
  margin-top: 18px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.classroom-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
}
.classroom-header h3 { font-size: 16px; }
.classroom-header-side { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.usage-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint-50);
  color: var(--naija-deep-green);
  font-size: 12px;
  font-weight: 700;
  font-family: Poppins, Inter, sans-serif;
  white-space: nowrap;
}
.usage-chip.danger { background: #FEE2E2; color: #991B1B; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 520px;
  scroll-behavior: smooth;
}

.chat-welcome {
  background: var(--mint-50);
  border-radius: var(--radius);
  padding: 16px 18px;
  align-self: stretch;
}

.chat-msg { display: flex; }
.chat-msg-user { justify-content: flex-end; }
.chat-msg-assistant { justify-content: flex-start; }

.chat-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.55;
}
.chat-msg-user .chat-bubble {
  background: var(--naija-deep-green);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-msg-assistant .chat-bubble {
  background: var(--slate-100);
  color: var(--ink-navy);
  border-bottom-left-radius: 4px;
}
.chat-text { white-space: pre-wrap; }

.chat-msg.error .chat-bubble {
  background: #FEE2E2;
  color: #991B1B;
}

.chat-msg.safety-refusal .chat-bubble {
  background: #FEF3C7;
  color: #78350F;
  border-left: 4px solid var(--sunrise-gold);
  border-bottom-left-radius: 4px;
  max-width: 90%;
}
.safety-cta {
  display: block;
  margin-top: 14px;
  width: 100%;
}

.stream-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(2, start) infinite;
  color: var(--slate-500);
}
@keyframes blink { to { visibility: hidden; } }

.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--slate-200);
  background: white;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 160px;
  padding: 11px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  background: white;
}
.chat-input:focus { outline: 2px solid var(--mint-50); border-color: var(--growth-green); }
.chat-send { flex-shrink: 0; height: 44px; }

/* ============ Apprenticeship ============ */

.apprentice-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.apprentice-filter { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.apprentice-filter .chips { flex: 1 1 auto; }
.apprentice-filter .input { max-width: 220px; }

.apprentice-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.apprentice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--mint-50);
}
.apprentice-card .name-row { display: flex; align-items: center; gap: 12px; }
.apprentice-card h3 { margin: 0; }
.apprentice-card .blurb { color: var(--slate-700); margin: 0; line-height: 1.55; font-size: 14px; }
.apprentice-card .meta { color: var(--slate-500); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; }
.apprentice-card .courses-row { display: flex; gap: 6px; flex-wrap: wrap; }

.avatar-blob {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--mint-50);
  color: var(--naija-deep-green);
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.avatar-blob.lg { width: 72px; height: 72px; font-size: 26px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: Poppins, Inter, sans-serif;
}
.badge.tier-course   { background: var(--slate-100); color: var(--slate-700); }
.badge.tier-verified { background: var(--mint-50);   color: var(--naija-deep-green); }
.badge.tier-endorsed { background: #DCFCE7;          color: var(--growth-green-dk); }
.badge.tier-endorsed::before { content: "✦"; }
.badge.level-new      { background: var(--slate-100); color: var(--slate-700); }
.badge.level-mentor   { background: #DCFCE7;          color: var(--growth-green-dk); }
.badge.level-senior   { background: #FEF3C7;          color: #92400E; }
.badge.level-master   { background: #EDE9FE;          color: #5B21B6; }

.rating-pill { color: var(--sunrise-gold); font-weight: 700; font-size: 13px; }
.rating-pill .count { color: var(--slate-500); font-weight: 500; margin-left: 4px; }

.apprentice-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.apprentice-hero .badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.apprentice-hero .blurb-lg { font-size: 17px; line-height: 1.65; color: var(--slate-700); margin: 0 0 14px; }
.apprentice-hero .courses-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.apprentice-hero aside.request-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.apprentice-hero aside.request-card h3 { margin-top: 0; }
.apprentice-hero aside.request-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--slate-700); margin-bottom: 12px; }
.apprentice-hero aside.request-card textarea {
  resize: vertical;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: white;
}

.session-list { display: flex; flex-direction: column; gap: 12px; }
.session-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}
.session-card .title { margin: 0 0 4px; font-size: 17px; font-weight: 700; font-family: Poppins, Inter, sans-serif; }
.session-card .meta { color: var(--slate-500); font-size: 13px; margin-bottom: 8px; }
.session-card .message { color: var(--slate-700); font-size: 14px; line-height: 1.55; margin: 0 0 10px; padding: 12px 14px; background: var(--slate-50); border-radius: var(--radius); border-left: 3px solid var(--slate-300); }
.session-card .message.reply { border-left-color: var(--growth-green); background: var(--mint-50); }
.session-card .actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 160px; }
.session-card .actions .btn { width: 100%; padding: 9px 14px; font-size: 13px; }
.session-card .status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-pill.requested { background: var(--slate-100); color: var(--slate-700); }
.status-pill.accepted  { background: var(--mint-50); color: var(--growth-green-dk); }
.status-pill.completed { background: #DCFCE7; color: var(--growth-green-dk); }
.status-pill.declined,
.status-pill.cancelled { background: #FEE2E2; color: #991B1B; }

.session-card .contact-strip {
  background: linear-gradient(135deg, var(--naija-deep-green), #134e3b);
  color: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.session-card .contact-strip .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.session-card .contact-strip a { color: white; font-weight: 700; font-size: 16px; text-decoration: underline; }

.mine-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.become-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.become-form .full { grid-column: 1 / -1; }
.become-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--slate-700); }
.become-form textarea {
  resize: vertical;
  min-height: 100px;
  padding: 12px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: white;
}
.become-form .course-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}
.become-form .course-picker .chip { cursor: pointer; }

.reviewed-pill {
  text-align: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--mint-50);
  color: var(--growth-green-dk);
  font-size: 13px;
  font-weight: 700;
  font-family: Poppins, Inter, sans-serif;
}

.star-row { display: flex; gap: 6px; }
.star {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  padding: 4px 6px;
  color: var(--slate-300);
  transition: color .15s, transform .1s;
}
.star:hover { transform: scale(1.1); }
.star.active { color: var(--sunrise-gold); }

.review-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.review-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.review-card .review-stars {
  color: var(--sunrise-gold);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.review-card p { color: var(--slate-700); line-height: 1.55; margin: 0 0 10px; }
.review-card footer { font-size: 12px; }

.safety-callout {
  background: #FEF3C7;
  border-left: 4px solid var(--sunrise-gold);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #78350F;
  font-size: 14px;
  line-height: 1.55;
  margin: 18px 0;
}

/* ============ Responsive ============ */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .course-hero { grid-template-columns: 1fr; }
  .apprentice-hero { grid-template-columns: 1fr; }
  .apprentice-hero aside.request-card { position: static; }
  .enroll-card { position: static; }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .become-form { grid-template-columns: 1fr; }
  .session-card { grid-template-columns: 1fr; }
  .session-card .actions { min-width: 0; }
  .review-list { grid-template-columns: 1fr; }
  .links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: white; padding: 16px var(--gutter); border-bottom: 1px solid var(--slate-200); }
  .links.open { display: flex; }
  .links a { padding: 12px 0; border-bottom: 1px solid var(--slate-100); }
  .hamburger { display: flex; }
  .nav-actions .btn { display: none; }
  .nav-actions .btn.primary { display: inline-flex; }
  .footer-cols { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ Project submission + grading ============ */
.project-page { display: flex; flex-direction: column; gap: 20px; max-width: 820px; margin: 0 auto; }
.project-brief { background: white; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.project-brief h1 { font-size: 28px; margin: 10px 0 4px; }
.project-brief h3 { font-family: Poppins, Inter, sans-serif; font-size: 16px; margin: 22px 0 8px; color: var(--ink-navy); }
.project-steps { line-height: 1.6; padding-left: 22px; }
.project-steps li { margin: 0 0 8px; }
.rubric-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 14px; }
.rubric-table th { text-align: left; background: var(--slate-50); color: var(--slate-500); font-weight: 600; }
.rubric-table td, .rubric-table th { padding: 8px 12px; border-bottom: 1px solid var(--slate-100); }
.rubric-table td:last-child, .rubric-table th:last-child { text-align: right; width: 80px; font-variant-numeric: tabular-nums; }

.project-form .field-label { display: block; font-weight: 600; font-size: 14px; color: var(--slate-700); margin: 14px 0 6px; }
.project-form textarea.input, .project-form input.input { width: 100%; font: 15px Inter, sans-serif; }
.project-writeup { resize: vertical; min-height: 120px; }
.project-form-status { margin: 10px 0 0; }

.project-result .project-result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.project-result h1 { font-size: 24px; margin: 0; }
.project-feedback { font-size: 16px; line-height: 1.6; color: var(--ink-navy); margin: 14px 0 4px; }
.project-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.status-pill { display: inline-block; font: 700 12px Inter, sans-serif; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.status-received { background: var(--slate-100); color: var(--slate-700); }
.status-grading  { background: #DBEAFE; color: #1D4ED8; animation: pulsePill 1.4s ease-in-out infinite; }
.status-passed   { background: var(--mint-50); color: var(--growth-green-dk); }
.status-failed   { background: #FEF3C7; color: #B45309; }
.status-review   { background: #EDE9FE; color: #6D28D9; }
@keyframes pulsePill { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

.criterion-list { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.criterion-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.criterion-score { font-variant-numeric: tabular-nums; color: var(--slate-500); }
.criterion-track { height: 8px; background: var(--slate-100); border-radius: 999px; overflow: hidden; }
.criterion-fill { height: 100%; background: linear-gradient(90deg, var(--growth-green), var(--soft-mint)); border-radius: 999px; }
.criterion-note { margin: 6px 0 0; font-size: 13px; color: var(--slate-500); }

.mentor-box h3 { font-family: Poppins, Inter, sans-serif; }
.mentor-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.mentor-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 14px 16px; }
.mentor-name { font-weight: 700; color: var(--ink-navy); }
.mentor-blurb { margin: 4px 0 0; font-size: 14px; color: var(--slate-600, var(--slate-700)); }
