/* ============================================================
   DEBT FREE MILLIONAIRE LEARNING ACADEMY — Homepage
   Brand tokens carried over from Platform/css/styles.css
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --purple: #7c3aed;
  --green: #10b981;
  --green-dark: #059669;
  --amber: #f59e0b;
  --amber-dark: #d97706;

  --ink: #0f172a;
  --ink-2: #1e293b;
  --text: #334155;
  /* Secondary text on white. Was #64748b (4.8:1) — legible but washed out at
     13–15px. #475569 gives 7.5:1, well past AA, while staying clearly below
     --ink so the hierarchy still reads. Only ever used on light backgrounds;
     greys on the dark hero/narrator/tab bands are set separately. */
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #fff;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", "Poppins", sans-serif;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--green) 0%, var(--primary) 100%);
  color: #fff; display: grid; place-items: center;
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 19px;
}
.logo-text { font-family: "Montserrat", sans-serif; font-size: 15px; color: var(--ink); letter-spacing: -0.2px; }
.logo-text span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text); transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 11px; border: 0; cursor: pointer;
  font-family: "Poppins", sans-serif; font-size: 14.5px; font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: rgba(255,255,255,0.14); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-light:hover { background: rgba(255,255,255,0.24); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 26px; color: var(--ink); line-height: 1; padding: 4px 8px; }

/* ---------- Hero ---------- */
/* Warm golden burst behind the headline, cooling to deep night at the edges —
   the same light structure as the logo art. */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(760px 420px at 50% 12%, rgba(251, 191, 36, 0.30) 0%, transparent 62%),
              radial-gradient(1100px 520px at 10% -12%, #7c2d12 0%, transparent 58%),
              radial-gradient(900px 480px at 90% 0%, #4c1d95 0%, transparent 55%),
              linear-gradient(160deg, #1a1206 0%, #14162e 52%, #0b1220 100%);
  padding: 84px 0 96px;
}
/* Fine starfield glints, as in the logo's sky. Decorative only. */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 18% 22%, rgba(255,255,255,0.55) 50%, transparent 50%),
                    radial-gradient(1.5px 1.5px at 72% 16%, rgba(255,224,138,0.55) 50%, transparent 50%),
                    radial-gradient(1.2px 1.2px at 42% 34%, rgba(255,255,255,0.40) 50%, transparent 50%),
                    radial-gradient(1.2px 1.2px at 86% 40%, rgba(255,255,255,0.35) 50%, transparent 50%),
                    radial-gradient(1.6px 1.6px at 30% 62%, rgba(255,224,138,0.35) 50%, transparent 50%);
}
.hero > * { position: relative; z-index: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7; font-size: 12.5px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,0.25); }

/* Headline treatment lifted from the Debt-Free Millionaire logo: hot gold
   gradient over a dark sunset field, with a warm outline glow instead of the
   logo's hard red keyline (a keyline at body sizes reads as a rendering bug). */
.hero h1 {
  color: #fff; font-family: "Montserrat", sans-serif; font-weight: 800;
  font-size: clamp(34px, 5.6vw, 62px); letter-spacing: -1.2px; margin-bottom: 20px;
  text-transform: uppercase;
}
.hero h1 .grad {
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 38%, #f59e0b 62%, #d97706 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(180, 83, 9, 0.55))
          drop-shadow(0 0 22px rgba(251, 191, 36, 0.35));
}
.hero p { font-size: clamp(16px, 2vw, 19px); color: #c7d2e3; max-width: 660px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 44px; }
.hero-stats .stat-n {
  font-family: "Montserrat", sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1;
}
.hero-stats .stat-l { font-size: 12.5px; color: #94a3b8; margin-top: 7px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 500; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-head .kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -0.8px; margin-bottom: 15px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

/* ---------- How it works ---------- */
.how { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.how-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative;
}
.how-num {
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 13px;
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: #fff; margin-bottom: 18px;
}
.how-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.how-card p { font-size: 14.8px; color: var(--muted); }
.how-note {
  margin-top: 30px; padding: 20px 24px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(37,99,235,0.07), rgba(124,58,237,0.07));
  border: 1px solid rgba(37,99,235,0.18); font-size: 15px; color: var(--text); text-align: center;
}
.how-note strong { color: var(--ink); }

/* ---------- Academy cards ---------- */
.academies { display: grid; gap: 26px; }

.academy {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.academy:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.academy-top {
  display: flex; align-items: flex-start; gap: 22px; padding: 30px 32px;
  border-bottom: 1px solid var(--line); position: relative;
}
.academy-top::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--a-accent, var(--primary));
}
.academy-icon {
  width: 60px; height: 60px; flex: none; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; background: var(--a-soft); border: 1px solid var(--a-line);
}
.academy-head { flex: 1; min-width: 0; }
.academy-head h3 { font-size: 22px; letter-spacing: -0.4px; margin-bottom: 5px; }
.academy-tag { font-size: 14.5px; color: var(--a-accent); font-weight: 600; margin-bottom: 9px; }
.academy-blurb { font-size: 14.8px; color: var(--muted); max-width: 680px; }

.academy-meta { display: flex; align-items: center; gap: 12px; flex: none; padding-top: 4px; }
.course-count {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; white-space: nowrap;
}
.toggle {
  width: 38px; height: 38px; border-radius: 11px; border: 1.5px solid var(--line);
  background: var(--white); cursor: pointer; display: grid; place-items: center;
  transition: all 0.25s var(--ease); color: var(--ink);
}
.toggle:hover { border-color: var(--a-accent); color: var(--a-accent); }
.toggle svg { transition: transform 0.3s var(--ease); }
.academy.open .toggle svg { transform: rotate(180deg); }

/* course list — collapsed by default */
.academy-courses {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease);
}
.academy.open .academy-courses { grid-template-rows: 1fr; }
.academy-courses > div { overflow: hidden; }
.course-list { padding: 8px 32px 30px; }

.course {
  display: flex; align-items: flex-start; gap: 20px; padding: 22px 0;
  border-bottom: 1px dashed var(--line);
}
.course:last-child { border-bottom: 0; padding-bottom: 4px; }
.course-code {
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 12.5px; letter-spacing: 0.6px;
  color: #fff; background: var(--a-accent); padding: 7px 12px; border-radius: 8px;
  flex: none; min-width: 82px; text-align: center; margin-top: 2px;
}
.course.is-soon .course-code, .course.is-build .course-code { background: #94a3b8; }
.course-body { flex: 1; min-width: 0; }
.course-title-row { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 7px; }
.course-body h4 { font-size: 17px; letter-spacing: -0.2px; }
.course-desc { font-size: 14.6px; color: var(--muted); margin-bottom: 11px; }
.course-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.course-facts span { display: inline-flex; align-items: center; gap: 6px; }
.course-facts .ic { opacity: 0.6; }
.course-book { color: var(--a-accent); font-weight: 600; }
.course-action { flex: none; padding-top: 2px; }

.badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge-live { background: #dcfce7; color: #15803d; }
.badge-build { background: #fef3c7; color: #b45309; }
.badge-soon { background: #f1f5f9; color: #64748b; }

/* ---------- Spotlight (DFM 101) ---------- */
.spotlight { background: var(--white); border-top: 1px solid var(--line); }
.spot-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-md);
}
.spot-head {
  padding: 34px 36px; color: #fff;
  background: linear-gradient(135deg, #065f46 0%, #047857 45%, #1d4ed8 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.spot-head h3 { color: #fff; font-size: 25px; letter-spacing: -0.5px; margin-bottom: 8px; }
.spot-head p { color: rgba(255,255,255,0.82); font-size: 15px; max-width: 560px; }
.spot-numbers { display: flex; gap: 34px; }
.spot-numbers .n { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 27px; color: #fff; line-height: 1; }
.spot-numbers .l { font-size: 11.5px; color: rgba(255,255,255,0.72); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 6px; }

.month-list { padding: 10px 0; }
.month {
  border-bottom: 1px solid var(--line);
}
.month:last-child { border-bottom: 0; }
.month-btn {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 18px; padding: 19px 36px;
  font-family: "Poppins", sans-serif; transition: background 0.2s var(--ease);
}
.month-btn:hover { background: var(--bg); }
.month-label {
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 11.5px; letter-spacing: 0.8px;
  color: var(--green-dark); background: #ecfdf5; border: 1px solid #a7f3d0;
  padding: 6px 11px; border-radius: 7px; flex: none; min-width: 86px; text-align: center;
}
.month-theme { flex: 1; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.month-count { font-size: 13px; color: var(--muted); flex: none; }
.month-chev { flex: none; color: var(--muted); transition: transform 0.3s var(--ease); }
.month.open .month-chev { transform: rotate(180deg); }

.month-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.month.open .month-panel { grid-template-rows: 1fr; }
.month-panel > div { overflow: hidden; }

.pool-note {
  margin: 6px 36px 18px; padding: 13px 18px; border-radius: 10px; font-size: 14px; color: var(--text);
  background: #eff6ff; border: 1px solid #bfdbfe;
}
.pool-note b { color: var(--primary-dark); }

.lesson-grid {
  padding: 0 36px 28px; display: grid; gap: 13px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.lcard {
  background: var(--bg); border: 1px solid var(--line); border-radius: 13px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 9px;
}
.lcard.is-ready { background: var(--white); border-color: #a7f3d0; box-shadow: var(--shadow-sm); }
.lcard.is-soon { opacity: 0.82; }
.lcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lkind {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 5px;
}
.lkind.core { background: #eff6ff; color: #1d4ed8; }
.lkind.elective { background: #faf5ff; color: #7c3aed; }
.lready {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: #15803d; background: #dcfce7; padding: 4px 9px; border-radius: 5px;
}
.lcard h4 { font-size: 15.6px; letter-spacing: -0.2px; line-height: 1.35; }
.lnote { font-size: 13.2px; color: var(--muted); margin: 0; }
.lcard-foot { margin-top: auto; padding-top: 6px; }
.lcard-foot .btn { width: 100%; }
.lsoon {
  display: block; text-align: center; font-size: 13px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 10px; padding: 9px;
}

/* ---------- Narrators ---------- */
.narrators { background: var(--ink); color: #fff; overflow: hidden; }
.narrators .section-head h2 { color: #fff; }
.narrators .section-head p { color: #94a3b8; }
.narrators .section-head .kicker { color: #6ee7b7; }
.marquee { display: flex; gap: 12px; width: max-content; animation: slide 46s linear infinite; }
.marquee-row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row + .marquee-row { margin-top: 12px; }
.marquee-row:nth-child(2) .marquee { animation-duration: 58s; animation-direction: reverse; }
.chip {
  padding: 10px 18px; border-radius: 999px; white-space: nowrap; font-size: 14px; font-weight: 500;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #e2e8f0;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: var(--radius-lg); padding: 60px 40px; color: #fff; box-shadow: var(--shadow-lg);
}
.cta-card h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.7px; margin-bottom: 15px; }
.cta-card p { color: rgba(255,255,255,0.88); font-size: 16.5px; max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #94a3b8; padding: 54px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h5 { font-family: "Montserrat", sans-serif; color: #fff; font-size: 13px; letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 16px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; font-size: 14.2px; }
footer a:hover { color: #fff; }
.foot-about p { font-size: 14.2px; max-width: 320px; margin-top: 14px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.09); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.2px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .spot-numbers { gap: 26px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.show {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 14px 24px 20px; box-shadow: var(--shadow-md);
  }
  .nav-links.show a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav-links.show .btn { margin-top: 12px; }
  section { padding: 60px 0; }
  .hero { padding: 60px 0 68px; }
  .hero-stats { gap: 28px; }
  .academy-top { flex-wrap: wrap; padding: 24px 22px; gap: 16px; }
  .academy-meta { width: 100%; justify-content: space-between; }
  .course-list, .lesson-grid { padding-left: 22px; padding-right: 22px; }
  .pool-note { margin-left: 22px; margin-right: 22px; }
  .month-btn { padding: 17px 22px; gap: 12px; flex-wrap: wrap; }
  .spot-head { padding: 26px 22px; }
  .course { flex-wrap: wrap; gap: 14px; }
  .course-action { width: 100%; }
  .course-action .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PHOTOGRAPHY

   Every figure below sets its own aspect-ratio and crops with
   object-fit, so the browser reserves the space before the image
   arrives. Nothing here shifts the layout as it loads.
   ============================================================ */

/* ---- Hero: a wide plate under the headline, breaking out past the
        820px text column to the full 1180px wrap ---- */
.hero-figure {
  position: relative; z-index: 1; margin-top: 56px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 9; background: #14162e;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---- How it works: each step gets the picture of that step, bled to
        the card edge (the negative margins cancel .how-card's padding) ---- */
.how-figure {
  margin: -32px -28px 22px; border-radius: 15px 15px 0 0; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--line);
}
.how-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---- A wide plate under a section heading ---- */
.section-figure {
  max-width: 960px; margin: 0 auto 52px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9; background: var(--line);
}
.section-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Inside the closing call-to-action card ---- */
.cta-figure {
  max-width: 640px; margin: 0 auto 32px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16 / 9; background: rgba(255, 255, 255, 0.12);
}
.cta-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Lesson-card thumbnail: the lesson's own artwork, cropped to a
        band across the top of the card. Bleeds to the card edge by
        cancelling .lcard's 18px/20px padding.

        The 18 DFM electives have no artwork yet; academy.js removes
        the whole figure if the file 404s, so those cards keep their
        original look rather than showing a broken frame. ---- */
.lcard-figure {
  margin: -18px -20px 3px; border-radius: 12px 12px 0 0; overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--line);
}
.lcard-thumb {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.lcard.is-ready:hover .lcard-thumb { transform: scale(1.04); }
/* Unbuilt lessons read as unbuilt at a glance, art and all */
.lcard.is-soon .lcard-thumb { filter: grayscale(0.6); }

@media (prefers-reduced-motion: reduce) {
  .lcard-thumb { transition: none; }
  .lcard.is-ready:hover .lcard-thumb { transform: none; }
}

/* ============================================================
   XOGOS PLATFORM — time-limit banner, forced-exit overlay,
   and the SSO landing page.
   ============================================================ */

.xogos-banner{
  position:fixed; top:0; left:0; right:0; z-index:9999;
  display:none; align-items:center; gap:12px;
  padding:11px 18px;
  background:linear-gradient(90deg,#b45309,#d97706);
  color:#fff; font-weight:600; font-size:14.5px;
  box-shadow:0 2px 14px rgba(0,0,0,.28);
}
.xogos-banner.show{ display:flex; }
.xogos-banner .xb-dot{
  width:9px; height:9px; border-radius:50%; background:#fff;
  flex:0 0 auto; animation:xb-pulse 1.6s ease-in-out infinite;
}
@keyframes xb-pulse{ 0%,100%{opacity:1} 50%{opacity:.35} }
.xogos-banner .xb-msg{ flex:1 1 auto; }
.xogos-banner .xb-mins{
  flex:0 0 auto; background:rgba(0,0,0,.22);
  padding:3px 10px; border-radius:999px; font-size:13px;
}
/* Push the sticky nav down so the banner never covers it */
body.has-xogos-banner .nav{ top:44px; }
body.has-xogos-banner{ padding-top:44px; }

.xogos-overlay{
  position:fixed; inset:0; z-index:10000; display:none;
  align-items:center; justify-content:center;
  background:rgba(15,23,42,.82); backdrop-filter:blur(3px);
  padding:24px;
}
.xogos-overlay.show{ display:flex; }
.xogos-overlay .xo-card{
  background:#fff; border-radius:16px; padding:32px 30px;
  max-width:440px; text-align:center;
  box-shadow:0 24px 60px rgba(0,0,0,.4);
}
.xogos-overlay .xo-title{
  font-family:Montserrat,sans-serif; font-weight:800;
  font-size:22px; color:#0f172a; margin-bottom:10px;
}
.xogos-overlay .xo-msg{ color:#334155; font-size:15.5px; line-height:1.6; }
.xogos-overlay .xo-sub{
  margin-top:14px; color:#64748b; font-size:13.5px;
}

/* ---- Signed-in chip in the nav (replaces "Student log in") ---- */
.nav-user{
  display:flex; align-items:center; gap:10px;
  padding:5px 6px 5px 5px; border-radius:999px;
  border:1px solid var(--line); background:#fff;
}
.nav-user-face{
  width:28px; height:28px; border-radius:50%; flex:0 0 auto;
  object-fit:cover; display:flex; align-items:center; justify-content:center;
}
.nav-user-initial{
  font-family:Montserrat,sans-serif; font-weight:800; font-size:13px;
  color:#1a1008; background:linear-gradient(135deg,#fde68a,#f59e0b 55%,#d97706);
}
.nav-user-name{
  font-size:14px; font-weight:600; color:var(--ink);
  max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.nav-user-out{
  background:none; border:0; cursor:pointer; padding:4px 8px;
  font:inherit; font-size:12.5px; font-weight:600; color:var(--muted);
  border-radius:999px; transition:color .2s var(--ease), background .2s var(--ease);
}
.nav-user-out:hover{ color:var(--primary); background:var(--line); }

/* ---- SSO landing page (/auth/callback/) ---- */
.sso-wrap{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:24px;
  background:radial-gradient(ellipse at 50% 0%,#3b2415 0%,#1a1008 55%,#0d0904 100%);
}
.sso-card{
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09);
  border-radius:20px; padding:44px 38px; max-width:520px; text-align:center;
  box-shadow:0 30px 80px rgba(0,0,0,.5);
}
.sso-mark{
  width:56px; height:56px; margin:0 auto 20px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-family:Montserrat,sans-serif; font-weight:800; font-size:26px; color:#1a1008;
  background:linear-gradient(135deg,#fde68a,#f59e0b 55%,#d97706);
  box-shadow:0 8px 22px rgba(245,158,11,.35);
}
.sso-card h1{
  font-family:Montserrat,sans-serif; font-weight:800;
  font-size:26px; line-height:1.25; margin-bottom:12px;
  background:linear-gradient(135deg,#fde68a,#f59e0b 60%,#ea580c);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.sso-card p{ color:#cbb9a4; font-size:15.5px; line-height:1.65; }
.sso-spinner{
  width:30px; height:30px; margin:26px auto 0; border-radius:50%;
  border:3px solid rgba(245,158,11,.22); border-top-color:#f59e0b;
  animation:sso-spin .8s linear infinite;
}
@keyframes sso-spin{ to{ transform:rotate(360deg) } }
.sso-actions{
  margin-top:26px; display:flex; gap:12px;
  justify-content:center; flex-wrap:wrap;
}
