/* Student app: cinematic navy & cream. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(114, 141, 165, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(156, 192, 255, 0.07), transparent 60%),
    var(--navy-950);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cream); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Prototype ribbon ---------- */
.proto-ribbon {
  background: linear-gradient(90deg, #0b1a33, #1b3358);
  color: var(--cream-80);
  font-size: 12.5px;
  text-align: center;
  padding: 6px var(--gutter);
  letter-spacing: 0.02em;
}
.proto-ribbon strong { color: var(--gold); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: 80px; display: flex; align-items: center; gap: 28px;
}
/* Text logo, same as the main website's header */
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(156, 192, 255, .4); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.header-back { color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 600; }
.header-back:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--cream-60); margin-top: 10px; max-width: 46ch; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-grid nav b { color: #fff; font-family: var(--font-display); font-size: 14px; margin-bottom: 4px; }
.footer-grid nav a { color: var(--gold); }
.footer-grid nav a:hover { color: #fff; }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; }
.footer-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--cream-06); font-size: 13px; }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  color: var(--cream-60); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.main-nav a:hover { color: var(--cream); background: var(--cream-06); }
.main-nav a.active { color: var(--cream); background: var(--cream-12); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--indigo-600));
  color: var(--ivory); font-weight: 600; font-size: 14px; border: 1px solid var(--cream-12); cursor: pointer;
}
.menu { position: relative; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px;
  background: var(--navy-850); border: 1px solid var(--cream-12); border-radius: var(--radius);
  box-shadow: var(--shadow-card); display: none;
}
.menu.open .menu-panel { display: block; }
.menu-panel .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--cream-06); margin-bottom: 6px; }
.menu-panel .who strong { display: block; }
.menu-panel .who span { font-size: 13px; color: var(--cream-60); }
.menu-panel a, .menu-panel button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  color: var(--cream-80); background: none; border: 0; cursor: pointer; font-size: 14.5px;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--cream-06); color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-gold { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -14px rgba(29, 106, 229, .8); }
.btn-gold:hover { background: var(--blue-h); color: #fff; transform: translateY(-1px); }
.btn-light { background: var(--cream); color: var(--navy-900); }
.btn-light:hover { background: var(--ivory); color: var(--navy-900); transform: translateY(-1px); }
.btn-ghost { background: var(--cream-06); border-color: var(--cream-12); color: var(--cream); }
.btn-ghost:hover { background: var(--cream-12); color: var(--cream); }
.btn-text { background: none; border: 0; color: var(--gold); padding: 8px 4px; }
.btn-text:hover { color: var(--cream); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Layout ---------- */
main { min-height: 60vh; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 44px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.section-head p { color: var(--cream-60); font-size: 15px; margin-top: 4px; }
.eyebrow { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.muted { color: var(--cream-60); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  background: rgba(11, 26, 51, 0.66); border: 1px solid var(--cream-12); color: var(--cream-80);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.chip svg { width: 13px; height: 13px; }
.chip-gold { color: var(--gold); border-color: rgba(156, 192, 255, .35); }
.chip-free { color: var(--sage); border-color: rgba(143, 196, 163, .35); }
.chip-violet { color: var(--violet-soft); border-color: rgba(169, 188, 205, .35); }
.chip-done { color: #10261a; background: var(--sage); border-color: transparent; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-art { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center right; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, var(--navy-950) 0%, rgba(11, 26, 51, .55) 38%, rgba(11, 26, 51, .1) 70%),
              linear-gradient(90deg, rgba(11, 26, 51, .92) 0%, rgba(11, 26, 51, .3) 55%, transparent 80%);
}
.hero-content { padding: 0 var(--gutter) clamp(40px, 7vw, 88px); max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero h1 { font-size: clamp(38px, 5.6vw, 72px); max-width: 13ch; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--cream-80); max-width: 56ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--cream-60); font-size: 14px; }
.hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Rails & cards ---------- */
.rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 3 * 18px) / 4));
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px;
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-btn {
  position: absolute; top: calc(50% - 30px); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; z-index: 3;
  background: rgba(11, 26, 51, .85); border: 1px solid var(--cream-12); color: var(--cream);
  opacity: 0; transition: opacity .2s var(--ease), background .2s;
}
.rail:hover .rail-btn { opacity: 1; }
.rail-btn:hover { background: var(--navy-700); }
.rail-btn.prev { left: -14px; } .rail-btn.next { right: -14px; }
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn[hidden] { display: none; }

.card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-850); border: 1px solid var(--cream-06); color: var(--cream);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { color: var(--cream); transform: translateY(-3px); border-color: rgba(156, 192, 255, .35); box-shadow: var(--shadow-card); }
.card-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-800); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-art img { transform: scale(1.03); }
.card-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 26, 51, .9), transparent 55%); }
.card-chips { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.card-lock {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(11, 26, 51, .72); border: 1px solid rgba(156, 192, 255, .4); color: var(--gold);
}
.card-lock svg { width: 16px; height: 16px; }
.card-title { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.card-title small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.card-title h3 { font-size: 21px; }
.card-body { padding: 14px 16px 16px; }
.card-body p { color: var(--cream-60); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--cream-60); }
.card-foot svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.card.locked .card-art img { filter: saturate(.75) brightness(.8); }
.bar { height: 4px; border-radius: 4px; background: var(--cream-12); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-strong), var(--gold)); border-radius: 4px; }
.card .bar { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0; z-index: 3; height: 3px; }

.lesson-card .card-art::after { background: linear-gradient(0deg, rgba(11, 26, 51, .96) 0%, rgba(11, 26, 51, .7) 40%, transparent 75%); }
.lesson-card .card-title h3 { font-size: 17px; font-family: var(--font-body); font-weight: 600; line-height: 1.3; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
/* Course rows: 4 per row on desktop, then 3, 2, 1 as the screen narrows */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 520px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Continue learning ---------- */
.continue {
  position: relative; display: grid; grid-template-columns: 1.25fr 1fr; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-850); border: 1px solid var(--cream-12); min-height: 300px; color: var(--cream);
  transition: border-color .25s var(--ease);
}
.continue:hover { border-color: rgba(156, 192, 255, .4); color: var(--cream); }
.continue-art { position: relative; min-height: 240px; }
.continue-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.continue-art .play-ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(11, 26, 51, .55); border: 1px solid rgba(246, 240, 227, .45);
  transition: transform .25s var(--ease), background .25s;
}
.continue:hover .play-ring { transform: translate(-50%, -50%) scale(1.06); background: var(--blue); color: #fff; }
.play-ring svg { width: 28px; height: 28px; margin-left: 4px; }
.continue-info { padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.continue-info h3 { font-size: clamp(24px, 2.4vw, 32px); }
.continue-info .bar { margin-top: 6px; }
.continue-info .meta { font-size: 14px; color: var(--cream-60); display: flex; justify-content: space-between; }

/* ---------- Welcome & progress ---------- */
.welcome { padding: clamp(36px, 5vw, 64px) 0 10px; }
.welcome h1 { font-size: clamp(32px, 4.2vw, 52px); margin: 10px 0 10px; }
.welcome p { color: var(--cream-80); max-width: 62ch; }
/* Welcome video featured in the dashboard's main card */
.continue.featured { grid-template-columns: 1fr; align-content: start; }
.continue.featured .player { border-radius: 0; box-shadow: none; margin: 0; }
.continue.featured .continue-info { padding: clamp(18px, 2.4vw, 28px); gap: 8px; }
.continue.featured .meta { gap: 16px; flex-wrap: wrap; }
.rewatch { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 14.5px; color: var(--gold); }
.rewatch svg { width: 16px; height: 16px; }
.rewatch:hover { color: #fff; }
.dash-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; margin-top: 28px; }
.panel { background: linear-gradient(180deg, var(--navy-850), var(--navy-900)); border: 1px solid var(--cream-06); border-radius: var(--radius-lg); padding: 24px; }
.panel h3 { font-size: 21px; }
.progress-panel { display: flex; flex-direction: column; gap: 18px; }
.ring-row { display: flex; align-items: center; gap: 18px; }
.ring { width: 96px; height: 96px; flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: var(--cream-12); }
.ring .val { stroke: url(#ringGold); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .8s var(--ease); }
.ring text { fill: var(--cream); font-family: var(--font-display); font-size: 22px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.course-progress { display: grid; gap: 12px; }
.course-progress a { display: grid; gap: 6px; color: var(--cream-80); font-size: 14px; }
.course-progress a:hover { color: var(--cream); }
.course-progress .row { display: flex; justify-content: space-between; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--cream-06); border-radius: var(--radius); padding: 12px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--cream); }
.stat span { font-size: 12px; color: var(--cream-60); }

/* ---------- Enrollment wall ---------- */
.wall {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid rgba(156, 192, 255, .28);
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(114, 141, 165, .28), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(156, 192, 255, .14), transparent 70%),
    linear-gradient(160deg, #1b3358, #102341);
  padding: clamp(28px, 5vw, 60px);
}
.wall-mark { display: block; width: 54px; height: 54px; color: var(--gold); margin-bottom: 16px; }
.wall .eyebrow { display: block; }
.wall h2 { font-size: clamp(30px, 4vw, 48px); max-width: 20ch; }
.wall > p { color: var(--cream-80); font-size: clamp(16px, 1.3vw, 18px); max-width: 60ch; margin-top: 14px; }
.wall-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.wall-option {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius);
  background: rgba(11, 26, 51, .45); border: 1px solid var(--cream-12); color: var(--cream);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.wall-option:hover { color: var(--cream); border-color: rgba(156, 192, 255, .5); background: rgba(11, 26, 51, .65); transform: translateY(-2px); }
.wall-option .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(156, 192, 255, .14); color: var(--gold); }
.wall-option .ico svg { width: 22px; height: 22px; }
.wall-option h3 { font-size: 22px; }
.wall-option p { color: var(--cream-60); font-size: 15px; }
.wall-option .go { margin-top: auto; padding-top: 8px; color: var(--gold); font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.wall-option .go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.wall-option:hover .go svg { transform: translateX(3px); }
.wall-foot { margin-top: 22px; font-size: 14px; color: var(--cream-60); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--navy-850), var(--navy-900)); border: 1px solid var(--cream-12);
}
.plan.featured { border-color: rgba(156, 192, 255, .55); box-shadow: 0 0 0 1px rgba(156, 192, 255, .2) inset; }
.plan h3 { font-size: 22px; }
.plan > .chip { align-self: flex-start; }
.plan .price { font-family: var(--font-display); font-size: 38px; line-height: 1; }
.plan .price small { font-family: var(--font-body); font-size: 15px; color: var(--cream-60); font-weight: 400; }
.plan p { color: var(--cream-60); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; font-size: 14.5px; color: var(--cream-80); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.plan .btn { margin-top: auto; }
.note { font-size: 13.5px; color: var(--cream-60); display: flex; gap: 10px; align-items: flex-start; }
.note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--violet-soft); }

/* ---------- Course page ---------- */
.course-hero { min-height: min(62vh, 560px); }
.course-hero h1 { max-width: 18ch; font-size: clamp(34px, 4.6vw, 60px); }
.lesson-list { display: grid; gap: 10px; }
.lesson-row {
  display: grid; grid-template-columns: 34px 168px 1fr auto; align-items: center; gap: 18px; padding: 12px;
  border-radius: var(--radius); background: var(--cream-06); border: 1px solid transparent; color: var(--cream);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
a.lesson-row:hover { background: var(--cream-12); border-color: var(--cream-12); color: var(--cream); }
.lesson-row .num { font-family: var(--font-display); font-size: 22px; color: var(--cream-40); text-align: center; }
.lesson-row .thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
.lesson-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson-row .thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0; height: 3px; }
.lesson-row h4 { font-family: var(--font-body); font-size: 16px; font-weight: 600; }
.lesson-row p { font-size: 14px; color: var(--cream-60); margin-top: 2px; }
.lesson-row .status { display: flex; align-items: center; gap: 10px; color: var(--cream-60); font-size: 13.5px; white-space: nowrap; }
.status-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--cream-12); }
.status-ico svg { width: 15px; height: 15px; }
.status-ico.done { background: var(--sage); color: #10261a; border-color: transparent; }
.status-ico.lock { color: var(--gold); border-color: rgba(156, 192, 255, .4); }
.lesson-row.locked { opacity: .82; }
.lesson-row.up-next { border-color: rgba(156, 192, 255, .55); background: rgba(29, 106, 229, .14); }
.chip-up-next { background: var(--blue); color: #fff; border-color: transparent; margin-right: 6px; vertical-align: 2px; }

/* My Journey checklist */
.journey-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.journey-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); }
.journey-steps li .status-ico { font-size: 13px; font-weight: 700; color: var(--cream-60); }
.journey-steps li b { font-weight: 600; }
.journey-steps li p { font-size: 14px; color: var(--cream-60); margin-top: 2px; }
.journey-steps li.todo b { color: var(--cream-60); font-weight: 500; }
.journey-steps li.current { background: rgba(29, 106, 229, .14); border: 1px solid rgba(156, 192, 255, .45); }
.journey-steps li.current .status-ico { background: var(--blue); color: #fff; border-color: transparent; }
.journey-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* "Your next lesson" bar (Home) */
.next-banner { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding: 18px; margin: 8px 0 34px;
  border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(29, 106, 229, .22), rgba(29, 106, 229, .06)); border: 1px solid rgba(156, 192, 255, .4); color: var(--cream); }
.next-banner:hover { color: var(--cream); border-color: rgba(156, 192, 255, .7); }
.next-banner img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.next-banner h2 { font-size: clamp(20px, 2vw, 26px); margin: 6px 0 4px; }
.next-banner p { color: var(--cream-60); font-size: 15px; }
.next-banner.done { grid-template-columns: 1fr auto; padding: 24px; }

/* Your Course: classic curriculum layout */
.cur-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 34px; }
.cur-side { position: sticky; top: 100px; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-850); border: 1px solid var(--cream-06); }
.cur-side img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cur-side-body { padding: 20px; }
.cur-side h1 { font-size: 21px; line-height: 1.3; margin-bottom: 16px; }
.cur-side .bar { height: 8px; }
.cur-pct { margin-top: 10px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-80); }
.cur-pct b { font-family: var(--font-display); font-size: 26px; letter-spacing: 0; color: #fff; margin-right: 4px; }
.cur-side .muted { font-size: 14px; margin-top: 2px; }
.cur-links { display: grid; gap: 2px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--cream-06); }
.cur-links a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; color: var(--cream-80); font-size: 15px; }
.cur-links a:hover { background: var(--cream-06); color: #fff; }
.cur-links svg { width: 18px; height: 18px; color: var(--gold); }
.cur-heading { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 18px; }
.cur-next { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 8px 18px 8px 8px; border-radius: 14px;
  background: rgba(29, 106, 229, .16); border: 1px solid rgba(156, 192, 255, .4); color: var(--cream); margin-bottom: 30px; }
.cur-next:hover { color: #fff; border-color: rgba(156, 192, 255, .7); }
.cur-next .btn { padding: 12px 20px; }
.cur-next-title { font-weight: 600; font-size: 16px; }
.cur-next.done { padding: 16px 18px; justify-content: space-between; }
.cur-next.done > span:first-child { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; }
.cur-next.done svg { width: 18px; height: 18px; color: var(--sage); }
.cur-section { margin-bottom: 28px; }
.cur-section h3 { font-size: 19px; margin: 0 0 10px 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.cur-num { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.cur-lock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--gold);
  border: 1px solid rgba(156, 192, 255, .35); border-radius: 999px; padding: 3px 10px; }
.cur-lock svg { width: 12px; height: 12px; }
.cur-rows { border-radius: 14px; overflow: hidden; border: 1px solid var(--cream-06); }
.cur-row { display: grid; grid-template-columns: 26px 128px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 18px 10px 14px;
  background: var(--navy-850); color: var(--cream); border-top: 1px solid var(--cream-06); }
.cur-row:first-child { border-top: 0; }
.cur-row:hover { background: var(--navy-800); color: #fff; }
.cur-tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--cream-12); display: grid; place-items: center; }
.cur-tick svg { width: 14px; height: 14px; }
.cur-row.done .cur-tick { background: var(--blue); border-color: var(--blue); color: #fff; }
.cur-row.locked .cur-tick { border-color: rgba(156, 192, 255, .35); color: var(--gold); }
.cur-thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--navy-800); }
.cur-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cur-thumb-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 26, 51, .25); opacity: 0; transition: opacity .2s; }
.cur-thumb-play svg { width: 28px; height: 28px; padding: 7px; border-radius: 50%; background: rgba(11, 26, 51, .7); color: #fff; }
.cur-row:hover .cur-thumb-play, .cur-row.locked .cur-thumb-play { opacity: 1; }
.cur-row.locked .cur-thumb img { filter: saturate(.7) brightness(.75); }
.cur-title { font-size: 15.5px; font-weight: 500; line-height: 1.35; }
.cur-title .chip-up-next { display: inline-flex; margin: 4px 0 0; }
.cur-status { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.cur-row.current { background: rgba(29, 106, 229, .22); box-shadow: inset 3px 0 0 var(--gold); }
.cur-tag { font-size: 11.5px; color: var(--violet-soft); border: 1px solid rgba(169, 188, 205, .35); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 1px; }
.cur-time { font-size: 14px; color: var(--cream-60); font-variant-numeric: tabular-nums; }
.cur-row.next { background: rgba(29, 106, 229, .16); box-shadow: inset 3px 0 0 var(--blue); }
.cur-row.locked { color: var(--cream-60); }
@media (max-width: 1000px) {
  .cur-layout { grid-template-columns: 1fr; gap: 22px; }
  .cur-side { position: static; display: grid; grid-template-columns: 220px 1fr; }
  .cur-side img { height: 100%; aspect-ratio: auto; }
  .cur-links { grid-template-columns: repeat(3, auto); justify-content: start; }
}
@media (max-width: 640px) {
  .next-banner { grid-template-columns: 1fr; gap: 12px; }
  .next-banner .btn { justify-self: start; }
  .next-banner.done { grid-template-columns: 1fr; }
  .cur-side { grid-template-columns: 1fr; }
  .cur-side img { aspect-ratio: 16/9; height: auto; }
  .cur-links { grid-template-columns: 1fr; }
  .cur-row { grid-template-columns: 22px 92px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .cur-tick { width: 22px; height: 22px; }
  .cur-title { font-size: 14.5px; }
  .cur-title .chip-up-next { font-size: 11px; padding: 2px 8px; }
  .cur-next .btn { width: 100%; }
}

/* ---------- Lesson / theater ---------- */
.theater { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; padding-top: 26px; align-items: start; }
.crumbs { font-size: 14px; color: var(--cream-60); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.crumbs a { color: var(--cream-60); } .crumbs a:hover { color: var(--cream); }
.crumbs svg { width: 14px; height: 14px; }
.lesson-meta { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-start; }
.lesson-meta h1 { font-size: clamp(26px, 3vw, 38px); margin: 8px 0 10px; }
.lesson-meta p { color: var(--cream-80); max-width: 68ch; }
.lesson-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--cream-06); }
.lesson-nav a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; color: var(--cream); padding: 10px 14px; border-radius: var(--radius); background: var(--cream-06); }
.lesson-nav a:hover { background: var(--cream-12); color: var(--cream); }
.lesson-nav a small { color: var(--cream-60); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.lesson-nav a.next { margin-left: auto; text-align: right; }
.side-list { background: var(--navy-900); border: 1px solid var(--cream-06); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 92px; }
.side-list header { padding: 18px 18px 14px; border-bottom: 1px solid var(--cream-06); }
.side-list header h3 { font-size: 18px; }
.side-list header .bar { margin-top: 10px; }
.side-list header small { color: var(--cream-60); font-size: 13px; }
.side-items { max-height: calc(100vh - 260px); overflow-y: auto; padding: 8px; }
.side-list header h3 { font-size: 16px; line-height: 1.3; }
.side-list header small a { color: var(--gold); }
/* Compact curriculum rows beside the video */
.side-items .cur-section { margin: 6px 0 14px; }
.side-items .cur-section h3 { font-size: 14.5px; margin: 6px 4px 8px; }
.side-items .cur-num { font-size: 11px; }
.side-items .cur-lock { font-size: 11px; padding: 2px 8px; }
.side-items .cur-rows { border-radius: 10px; }
.side-items .cur-row { grid-template-columns: 20px 76px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
.side-items .cur-tick { width: 20px; height: 20px; border-width: 1.5px; }
.side-items .cur-tick svg { width: 11px; height: 11px; }
.side-items .cur-thumb { border-radius: 6px; }
.side-items .cur-thumb-play svg { width: 22px; height: 22px; padding: 5px; }
.side-items .cur-title { font-size: 13.5px; }
.side-items .cur-time { font-size: 12.5px; }
.side-items .cur-tag { display: none; }
.side-items .chip-up-next { font-size: 10.5px; padding: 1px 7px; }
.side-items .cur-status { font-size: 10.5px; }
.side-item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px; border-radius: 10px; color: var(--cream-80); align-items: center; }
.side-item:hover { background: var(--cream-06); color: var(--cream); }
.side-item.current { background: rgba(156, 192, 255, .12); color: var(--cream); box-shadow: inset 3px 0 0 var(--gold); }
.side-item .thumb { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; }
.side-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-item .thumb .tick { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--sage); color: #10261a; display: grid; place-items: center; }
.side-item .thumb .tick svg { width: 11px; height: 11px; }
.side-item b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.side-item span { font-size: 12.5px; color: var(--cream-60); }

/* ---------- Video player ---------- */
.player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); user-select: none; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player:fullscreen { border-radius: 0; }
.player .p-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(246, 240, 227, .5); background: rgba(11, 26, 51, .55); color: var(--cream);
  cursor: pointer; transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s;
}
.player .p-center:hover { background: var(--blue); color: #fff; }
.player .p-center svg { width: 32px; height: 32px; margin-left: 4px; }
.player.playing .p-center { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.9); }
.p-badge { position: absolute; top: 14px; left: 14px; z-index: 2; transition: opacity .3s; }
.p-controls {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 12px; z-index: 2;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), transparent);
  transition: opacity .3s var(--ease);
}
.player.playing.idle .p-controls, .player.playing.idle .p-badge { opacity: 0; }
.player.playing.idle { cursor: none; }
.p-scrub { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; margin-bottom: 4px; }
.p-scrub .rail-bg { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); transition: height .15s; }
.p-scrub:hover .rail-bg { height: 6px; }
.p-scrub .buf, .p-scrub .fill { position: absolute; left: 0; height: 100%; border-radius: 4px; }
.p-scrub .buf { background: rgba(255, 255, 255, .3); }
.p-scrub .fill { background: var(--gold); }
.p-scrub .knob { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--ivory); transform: translate(-50%, -50%) scale(0); transition: transform .15s; box-shadow: 0 0 0 4px rgba(156, 192, 255, .35); }
.p-scrub:hover .knob, .p-scrub.drag .knob { transform: translate(-50%, -50%) scale(1); }
.p-scrub input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; margin: 0; }
.p-row { display: flex; align-items: center; gap: 4px; }
.p-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; color: var(--cream); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.p-btn:hover { background: rgba(255, 255, 255, .12); }
.p-btn svg { width: 22px; height: 22px; }
.p-time { font-size: 13.5px; color: var(--cream-80); font-variant-numeric: tabular-nums; margin: 0 8px; white-space: nowrap; }
.p-spacer { flex: 1; }
.p-speed { width: auto; padding: 0 10px; font-size: 13.5px; font-weight: 600; }
.p-vol { width: 80px; accent-color: var(--gold); }
.p-toast { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; gap: 10px; align-items: center; background: rgba(11, 26, 51, .85); border: 1px solid var(--cream-12); border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 13.5px; }
.p-toast button { background: var(--cream-12); border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer; font-size: 13px; }
.p-end { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(11, 26, 51, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-align: center; padding: 20px; }
.p-end h3 { font-size: clamp(20px, 2.4vw, 28px); margin: 8px 0 16px; }
.p-end .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100vh - 100px); }
.auth-art { position: relative; overflow: hidden; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 71% center; }
.auth-art { position: sticky; top: 0; height: calc(100vh - 100px); }
.auth-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 26, 51, .9), rgba(11, 26, 51, .2) 60%); }
.auth-quote { position: absolute; left: clamp(24px, 4vw, 56px); right: clamp(24px, 4vw, 56px); bottom: clamp(24px, 4vw, 56px); z-index: 2; }
.auth-quote h2 { font-size: clamp(28px, 3vw, 42px); max-width: 16ch; }
.auth-quote p { color: var(--cream-80); margin-top: 10px; max-width: 46ch; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 34px; margin: 8px 0 8px; }
.auth-card > p { color: var(--cream-60); margin-bottom: 24px; }
.btn-google { width: 100%; background: var(--ivory); color: #1f1f1f; border-radius: 12px; padding: 13px 18px; }
.btn-google:hover { color: #1f1f1f; background: #fff; }
.btn-google .sim { font-size: 11px; font-weight: 600; background: #efe6d2; color: #6a5530; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--cream-40); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--cream-12); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--cream-80); }
.field .hint { font-size: 12.5px; color: var(--cream-40); }
.input, textarea.input, select.input {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--cream-12); background: rgba(11, 26, 51, .5);
  color: var(--cream); font: inherit; font-size: 15.5px; transition: border-color .2s, background .2s;
}
.input::placeholder { color: var(--cream-40); }
.input:focus { outline: none; border-color: var(--gold); background: rgba(11, 26, 51, .75); }
textarea.input { min-height: 120px; resize: vertical; }
select.input option { background: var(--navy-900); }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.error { background: rgba(227, 155, 143, .12); border: 1px solid rgba(227, 155, 143, .4); color: #f3c3ba; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.success { background: rgba(143, 196, 163, .1); border: 1px solid rgba(143, 196, 163, .35); color: #cfe9d8; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; }
.auth-switch { margin-top: 20px; font-size: 14.5px; color: var(--cream-60); text-align: center; }
.demo-box { margin-top: 26px; padding: 16px; border-radius: var(--radius); border: 1px dashed rgba(169, 188, 205, .4); background: rgba(114, 141, 165, .07); }
.demo-box h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-soft); margin-bottom: 10px; }
.demo-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--cream-06); font-size: 13.5px; }
.demo-item:first-of-type { border-top: 0; }
.demo-item code { color: var(--cream-60); font-size: 12.5px; }
.sim-email { margin-top: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--cream-12); background: var(--ivory); color: #222; }
.sim-email header { background: #ece4d2; padding: 10px 14px; font-size: 12.5px; color: #5a4a2c; font-weight: 600; letter-spacing: .04em; }
.sim-email .body { padding: 16px; font-size: 14.5px; display: grid; gap: 10px; }
.sim-email .body .btn { justify-self: start; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(3, 6, 18, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fadeIn .2s var(--ease); }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: var(--radius-lg); background: var(--navy-850); border: 1px solid var(--cream-12); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7); padding: 26px; animation: popIn .25s var(--ease); }
.modal.wide { max-width: 900px; padding: 0; background: none; border: 0; box-shadow: none; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { font-size: 22px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--cream-12); background: var(--cream-06); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; color: var(--cream); }
.icon-btn:hover { background: var(--cream-12); }
.icon-btn svg { width: 16px; height: 16px; }
.modal .wall .icon-btn { position: absolute; top: 18px; right: 18px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.g-sim { background: #fff; color: #202124; }
.g-sim .modal-head h3 { font-family: var(--font-body); font-size: 19px; font-weight: 600; }
.g-sim .icon-btn { background: #f1f3f4; border-color: #e0e0e0; color: #444; }
.g-banner { background: #fff4dc; color: #6a4b10; border: 1px solid #f0d9a6; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.g-acct { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-bottom: 1px solid #eee; background: none; cursor: pointer; text-align: left; color: #202124; }
.g-acct:hover { background: #f6f8fc; }
.g-acct .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; }
.g-acct small { display: block; color: #5f6368; font-size: 13px; }
.g-sim .input { background: #fff; color: #202124; border-color: #dadce0; }
.g-sim .field label { color: #3c4043; }
.g-sim .btn-light { background: #1a73e8; color: #fff; }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--cream); color: var(--navy-900); padding: 12px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-card); display: flex; gap: 10px; align-items: center; animation: popIn .25s var(--ease); }
.toast svg { width: 18px; height: 18px; color: var(--gold-deep); flex-shrink: 0; }

/* ---------- Misc blocks ---------- */
.contact-card { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.monogram { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 26px; color: #fff; background: linear-gradient(135deg, #3d7ef0, var(--navy-800)); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 22px; border-radius: var(--radius); background: var(--cream-06); border: 1px solid var(--cream-06); }
.step b { font-family: var(--font-display); font-size: 30px; color: var(--gold); display: block; }
.step h3 { font-size: 19px; margin: 6px 0 6px; }
.step p { color: var(--cream-60); font-size: 15px; }
.page-head { padding: clamp(36px, 5vw, 60px) 0 10px; }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); margin: 10px 0 10px; }
.page-head p { color: var(--cream-80); max-width: 62ch; }
.narrow { max-width: 760px; }
.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--cream-12); margin-top: 26px; }
.checkout .summary { padding: 30px; background: var(--navy-850); }
.checkout .pay { padding: 30px; background: var(--ivory); color: #1d1f2e; display: grid; gap: 14px; align-content: start; }
.checkout .pay h3 { color: #1d1f2e; }
.sim-banner { background: #fff1d6; border: 1px solid #ecd19a; color: #6a4b10; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.sim-banner strong { display: block; margin-bottom: 2px; }
.line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--cream-06); font-size: 15px; }
.line.total { font-weight: 700; border-bottom: 0; font-size: 17px; }
.verify-steps { display: grid; gap: 8px; font-size: 14px; color: #3a3d52; }
.verify-steps div { display: flex; gap: 10px; align-items: center; }
.verify-steps .dot { width: 20px; height: 20px; border-radius: 50%; background: #e7e2d6; display: grid; place-items: center; flex-shrink: 0; }
.verify-steps .dot.ok { background: #3f8f63; color: #fff; }
.verify-steps .dot svg { width: 12px; height: 12px; }
.btn-dark { background: var(--navy-900); color: var(--cream); }
.btn-dark:hover { background: var(--navy-700); color: var(--cream); }
.btn-outline-dark { background: none; border-color: #c9c2b0; color: #3a3d52; }
.btn-outline-dark:hover { background: #efe9dc; color: #1d1f2e; }
.empty { text-align: center; padding: 60px 20px; color: var(--cream-60); }
.empty h2 { color: var(--cream); margin-bottom: 10px; }
.locked-view { max-width: 720px; margin: 40px auto; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .08); padding: 48px 0 40px; color: var(--cream-40); font-size: 14.5px; }

/* ---------- Invitation page (from the Mailchimp free-trial invite) ---------- */
.arrive { background: var(--cream); color: var(--text-dark); margin-bottom: -80px; padding-bottom: 80px; }
.arrive-hero {
  position: relative; color: #fff; padding: clamp(40px, 5vw, 72px) 0;
  background:
    linear-gradient(90deg, rgba(16, 35, 65, .96) 0%, rgba(16, 35, 65, .82) 45%, rgba(16, 35, 65, .45) 100%),
    linear-gradient(0deg, rgba(16, 35, 65, .9), transparent 40%),
    var(--hero, none) center 35% / cover no-repeat,
    var(--navy-900);
}
.arrive-hero-inner { max-width: var(--maxw); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 4vw, 64px); align-items: center; }
/* Wide screens: headline and sign-up card share the left side so the person
   in the photo stays visible on the right. */
@media (min-width: 1280px) {
  .arrive-hero {
    background:
      linear-gradient(90deg, rgba(16, 35, 65, .97) 0%, rgba(16, 35, 65, .9) 45%, rgba(16, 35, 65, .35) 68%, rgba(16, 35, 65, 0) 85%),
      linear-gradient(0deg, rgba(16, 35, 65, .7), transparent 30%),
      var(--hero, none) right 30% / cover no-repeat,
      var(--navy-900);
  }
  .arrive-hero-inner {
    max-width: none; margin: 0;
    padding-left: max(var(--gutter), calc((100% - var(--maxw)) / 2));
    grid-template-columns: minmax(0, 560px) clamp(360px, 24vw, 420px) minmax(30vw, 1fr);
    gap: 36px;
  }
  .arrive .arrive-hero h1 { font-size: clamp(36px, 2.9vw, 54px); }
}
.arrive-hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.08; letter-spacing: -.02em; max-width: 15ch; margin: 14px 0 16px; color: #fff; }
.arrive-hero .lead { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .88); max-width: 54ch; line-height: 1.7; }
.arrive-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 15px; }
.arrive-points li { display: inline-flex; gap: 8px; align-items: center; color: #fff; }
.arrive-points svg { width: 18px; height: 18px; color: var(--gold); }
.arrive-body { padding-top: clamp(44px, 5vw, 72px); }
.arrive-card { color: var(--text-dark); background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 60px -30px rgba(16, 35, 65, .45); border: 1px solid var(--line); }
.arrive-card h2 { color: var(--navy-900); font-size: clamp(22px, 2vw, 26px); }
.arrive-sub { color: var(--text-dark); margin: 6px 0 20px; }
.arrive-card .divider { color: #8b8f9c; }
.arrive-card .divider::before, .arrive-card .divider::after { background: var(--line); }
.arrive-card .field label { color: var(--navy-900); }
.arrive-card .field .hint { color: #7a7f8c; }
.arrive-card .input { background: #fff; color: var(--navy-900); border-color: #d6cfc0; }
.arrive-card .input::placeholder { color: #9a9ea8; }
.arrive-card .input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(29, 106, 229, .15); }
.arrive-card .btn-google { border: 1px solid #d6cfc0; background: #fff; width: 100%; }
.arrive-card .btn-google:hover { background: var(--ivory); }
.arrive-card .error { color: #8a2f22; background: #fbe3de; border-color: #f0bfb5; }
.arrive-signin { margin-top: 16px; text-align: center; font-size: 14.5px; color: var(--text-dark); }
.arrive-signin a, .arrive-next a { color: var(--blue); font-weight: 600; }
.btn-lg { padding: 15px 22px; font-size: 16px; }
.arrive-next { text-align: center; }
.arrive-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; }
.arrive-watch { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: #fff; font-weight: 600; font-size: 15.5px; padding: 10px 18px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); }
.arrive-watch:hover { color: #fff; background: rgba(255, 255, 255, .18); }
.arrive-watch svg { width: 28px; height: 28px; padding: 7px; border-radius: 50%; background: var(--blue); }
.arrive-watch span { color: rgba(255, 255, 255, .7); font-weight: 400; }
.arrive-video { max-width: 980px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; scroll-margin-top: 100px; }
.arrive-video h2 { color: var(--navy-900); font-size: clamp(26px, 2.6vw, 34px); margin: 8px 0 22px; }
.arrive-video .eyebrow { color: #4e6a82; }
.arrive-video .player { text-align: left; }
.arrive .section-head h2 { color: var(--navy-900); }
.arrive .section-head p { color: var(--text-dark); }
.arrive .rail-btn { background: var(--navy-900); }
.arrive-next .eyebrow { color: #4e6a82; }
.arrive-next h2 { color: var(--navy-900); font-size: clamp(26px, 2.6vw, 34px); margin: 8px 0 22px; }
.arrive-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.arrive-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.arrive-steps b { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: #fff; font-family: var(--font-display); font-size: 18px; }
.arrive-steps h3 { color: var(--navy-900); font-size: 18px; }
.arrive-steps p { color: var(--text-dark); margin-top: 4px; font-size: 15.5px; }

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .rail-track { grid-auto-columns: minmax(260px, calc((100% - 2 * 18px) / 3)); }
  .theater { grid-template-columns: 1fr; }
  .side-list { position: static; }
  .side-items { max-height: none; }
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .arrive-hero-inner { grid-template-columns: 1fr; }
  .arrive-hero { background-position: 0 0, 0 0, 70% 30%, 0 0; }
  .arrive-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer { padding-bottom: 110px; }
  .header-back, .brand-tag { display: none; }
  .main-nav { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .continue { grid-template-columns: 1fr; }
  .continue-art { aspect-ratio: 16/9; min-height: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .checkout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .rail-track { grid-auto-columns: minmax(240px, calc((100% - 18px) / 2.2)); }
  .rail-btn { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(11, 26, 51, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--cream-12); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11.5px; color: var(--cream-60); padding: 6px 0; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--gold); }
  .toasts { bottom: 86px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .btn { white-space: normal; text-align: center; }
  .btn-google { flex-wrap: wrap; row-gap: 4px; }
  .btn-google > span { white-space: nowrap; }
  .arrive-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .arrive-hero { padding: 28px 0 32px; }
  .arrive-hero .eyebrow, .arrive-points { display: none; }
  .arrive-hero h1 { font-size: 31px; margin-top: 0; }
  .arrive-hero .lead { font-size: 15.5px; }
  .arrive-hero-inner { gap: 22px; }
  .arrive-card { padding: 22px 18px; }
  .header-inner { height: 68px; gap: 12px; }
  .brand-name { font-size: 20px; }
  .header-actions .btn-sm { padding: 8px 12px; font-size: 13px; }
  .hero { min-height: 74vh; }
  .hero-art { background-position: 70% center; }
  .rail-track { grid-auto-columns: 78%; gap: 14px; }
  .grid { grid-template-columns: 1fr; }
  .wall-options { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .lesson-row { grid-template-columns: 112px 1fr; gap: 12px; padding: 10px; }
  .lesson-row .num { display: none; }
  .lesson-row .status { grid-column: 2; }
  .lesson-row p { display: none; }
  .contact-card { grid-template-columns: 1fr; text-align: left; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .panel { padding: 18px; }
  .player { border-radius: var(--radius); margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .p-vol, .p-hide-sm { display: none; }
  .p-btn { width: 36px; height: 36px; }
  .lesson-nav a { max-width: 100%; }
  .lesson-nav { flex-direction: column; }
  .lesson-nav a.next { margin-left: 0; }
  .checkout .summary, .checkout .pay { padding: 22px; }
  .proto-ribbon { font-size: 11.5px; }
}

/* ---- Lesson pages and Companion Guides (added 2026-11-08, mirrors the Teachable course) ---- */
.guide-jump { display: flex; justify-content: center; margin: 14px 0 0; }
.guide-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--navy-850); border: 1px solid var(--cream-12); color: var(--cream); font: 700 14px var(--font-display); }
.guide-jump a:hover { border-color: var(--gold); color: var(--cream); }
.guide-jump a span { color: var(--gold); }
.lesson-page { margin-top: 22px; background: var(--ivory); border-radius: var(--radius-lg); padding: clamp(10px, 2vw, 22px); box-shadow: var(--shadow-card); }
.lesson-page-frame { display: block; width: 100%; height: 240px; border: 0; background: transparent; }
.guide-card { margin-top: 26px; background: var(--navy-900); border: 1px solid var(--cream-12); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); scroll-margin-top: 90px; }
.guide-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; }
.guide-card header h3 { flex: 1; min-width: 200px; margin: 0; font-size: 17px; }
.guide-tag { display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--navy-950); background: var(--gold); border-radius: 999px; padding: 5px 11px; }
.guide-tag svg { width: 14px; height: 14px; }
.guide-frame { display: block; width: calc(100% - 28px); margin: 0 14px 14px; height: min(82vh, 980px); border: 0; border-radius: 12px; background: #fff; }
@media (max-width: 760px) {
  .lesson-page { padding: 6px; border-radius: 16px; }
  .guide-frame { height: 70vh; }
}
.guide-jump a svg, .guide-card header .btn svg { width: 18px; height: 18px; flex: none; }

/* Enrollment options grouped like makemejewish.com (2026-11-11) */
.plan-group { margin: 0 0 34px; }
.plan-group-head { margin: 0 0 14px; }
.plan-group-head h3 { font-size: 24px; margin: 6px 0 0; }
.plans.plans-4 { grid-template-columns: repeat(4, 1fr); }
.plans.plans-1 { grid-template-columns: minmax(0, 420px); }
.plan .plan-total { margin: -4px 0 0; font-size: 14px; color: var(--cream-60); }
@media (max-width: 1100px) { .plans.plans-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans.plans-4, .plans.plans-1 { grid-template-columns: 1fr; } }

/* Two-step pricing: choose a path, then how to pay */
.path-step-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin: 0 0 14px; }
.plans.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .plans.plans-3 { grid-template-columns: 1fr; } }
.path-card { text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.path-card:hover, .path-card:focus-visible { transform: translateY(-3px); border-color: var(--gold, #c9a54c); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.path-card h3 { margin: 2px 0 0; }
.path-card .price { margin-top: 6px; }
.path-card .path-sub { margin: -4px 0 4px; opacity: .8; font-size: 14px; }
.path-card ul { flex: 1; }
.path-card .btn { margin-top: auto; pointer-events: none; }
.path-back { margin: 0 0 10px; padding-left: 0; }
.path-step[hidden] { display: none !important; }

/* 1 time / Monthly switch */
.pay-toggle { display: inline-flex; padding: 4px; margin: 0 0 18px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.pay-toggle button { font: inherit; font-weight: 600; font-size: 15px; color: inherit; background: none; border: 0; border-radius: 999px; padding: 9px 26px; cursor: pointer; opacity: .75; transition: background .2s ease, color .2s ease, opacity .2s ease; }
.pay-toggle button:hover { opacity: 1; }
.pay-toggle button.on { background: var(--gold, #c9a54c); color: #12203a; opacity: 1; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.pay-pane[hidden] { display: none !important; }

/* Gentler prices on the path cards */
.path-card .path-price { font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 8px; }
.path-card .path-price .from { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }
.path-card .path-price small { font-size: 15px; font-weight: 500; opacity: .75; margin-left: 2px; }

/* Toggle, stronger version */
.pay-toggle-wrap { text-align: center; margin: 4px 0 26px; }
.pay-toggle-q { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.pay-toggle { padding: 6px; margin: 0; gap: 4px; background: rgba(156,192,255,.10); border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(156,192,255,.06), 0 12px 30px -12px rgba(0,0,0,.6); }
.pay-toggle button { font-size: 18px; font-weight: 700; padding: 13px 40px; opacity: .85; display: inline-flex; align-items: center; gap: 10px; }
.pay-toggle button:hover:not(.on) { background: rgba(156,192,255,.12); }
.pay-toggle button.on { background: var(--blue); color: #fff; box-shadow: 0 8px 22px -6px rgba(29,106,229,.9); }
.pay-save { font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: #e8c45a; color: #1b1a12; }
@media (max-width: 480px) { .pay-toggle button { padding: 12px 22px; font-size: 16px; } }
.pay-pane.plans-1 { justify-content: center; }

/* Step tracker above the pricing */
.stepper { text-align: center; margin: 6px 0 26px; }
.stepper-dots { list-style: none; display: inline-flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 16px; }
.stepper-dots li { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; opacity: .55; }
.stepper-dots li span { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 16px; border: 2px solid rgba(156,192,255,.5); }
.stepper-dots li span svg { width: 18px; height: 18px; }
.stepper-dots li.on, .stepper-dots li.done { opacity: 1; }
.stepper-dots li.on span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(29,106,229,.25); }
.stepper-dots li.done span { background: var(--gold); border-color: var(--gold); color: #12203a; }
.stepper-dots li.bar { width: 70px; height: 3px; padding: 0; border-radius: 3px; background: rgba(156,192,255,.25); opacity: 1; }
.stepper-dots li.bar.done { background: var(--gold); }
.stepper-kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; }
.stepper-title { font-size: 32px; margin: 0; }
.stepper-sub { margin: 6px 0 0; opacity: .8; font-size: 16px; }
@media (max-width: 480px) { .stepper-title { font-size: 26px; } .stepper-dots li.bar { width: 36px; } }

/* Step 2 without the toggle: pay in full on top, monthly plans below */
.pay-head { text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.pay-once { justify-content: center; }
.pay-head-or { display: flex; align-items: center; gap: 16px; margin: 34px 0 16px; }
.pay-head-or::before, .pay-head-or::after { content: ""; flex: 1; height: 1px; background: rgba(156,192,255,.3); }
