/* Promotion Path LMS design system v0.2. Placeholder brand; colours and logo to be replaced by client assets. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --bg: #f7f4ed; --surface: #fffefb; --ink: #13221f; --muted: #66736f; --line: #e8e3d6;
  --primary: #0e7c6b; --primary-600: #0a6355; --primary-50: #e1f3ee;
  --navy: #0c3b35; --navy-2: #124a42;
  --amber: #f5a524; --amber-50: #fff1d6; --green: #1a9d5c; --green-50: #def5e7; --red: #e5484d; --red-50: #fde8e8;
  --teal: #0e8f8e; --teal-50: #dcf3f2; --rose: #e0527a; --rose-50: #fde6ed; --indigo: #5a54d6; --indigo-50: #ebeafc;
  --coral: #ff6b57; --plum: #7a3b8f; --ocean: #2468d8;
  --r: 18px; --r-sm: 10px;
  --sh: 0 1px 0 rgba(19,34,31,.04), 0 1px 3px rgba(19,34,31,.06), 0 14px 30px -18px rgba(19,34,31,.22);
  --sh-lg: 0 24px 50px -22px rgba(12,59,53,.45);
  --display: 'Sora', system-ui, sans-serif; --body: 'DM Sans', system-ui, sans-serif;
}
[data-theme="dark"] {
  --bg: #0b1614; --surface: #12211e; --ink: #ecf5f2; --muted: #92a8a2; --line: #203632;
  --primary: #34c3a8; --primary-600: #5fd6bf; --primary-50: #123a34;
  --amber-50: #3a2d10; --green-50: #0f3326; --red-50: #3b1a1a; --teal-50: #0d3333; --rose-50: #3a1626; --indigo-50: #1d1d4d;
  --sh: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font: 15px/1.5 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.2; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--primary); text-decoration: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* shell */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); color: var(--muted); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; color: var(--ink); font: 700 18px var(--display); }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); box-shadow: 0 8px 16px -8px var(--primary); display: grid; place-items: center; }
.logo small { display: block; font: 500 11px var(--body); color: var(--muted); letter-spacing: 0; }
.nav-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity:.8; padding: 14px 12px 6px; font-weight: 600; }
.sidebar button.nav { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 500; text-align: left; transition: background .15s; }
.sidebar button.nav:hover { background: var(--bg); color: var(--ink); }
.sidebar button.nav[aria-current="true"] { background: var(--primary-50); color: var(--primary); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary); }
.upgrade { margin-top: auto; background: var(--navy); border-radius: 18px; padding: 16px; color: #fff; }
.upgrade h4 { font-size: 15px; margin-bottom: 4px; } .upgrade p { font-size: 12px; opacity: .85; margin-bottom: 12px; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 16px 32px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 44px; color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; position: relative; }
.icon-btn .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; border: 2px solid var(--surface); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #f5a524, #ff6b57); color: #fff; font: 700 15px var(--display); display: grid; place-items: center; }
.content { padding: 28px 32px 80px; max-width: 1280px; }
.page { display: none; } .page.on { display: block; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; } .page-head p { color: var(--muted); margin-top: 4px; }

/* primitives */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.pad { padding: 20px; }
.row { display: flex; align-items: center; gap: 12px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 18px; } .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .b { font-weight: 600; } .num { font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 600; transition: transform .12s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -8px rgba(14,124,107,.7); } .btn-primary:hover { background: var(--primary-600); }
.btn-light { background: var(--amber); color: #3a2600; } .btn-ghost { background: var(--surface); border: 1px solid var(--line); } .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--primary-50); color: var(--primary); }
.chip.green { background: var(--green-50); color: var(--green); } .chip.amber { background: var(--amber-50); color: #b97800; } .chip.red { background: var(--red-50); color: var(--red); }
.chip.grey { background: var(--line); color: var(--muted); } .chip.teal { background: var(--teal-50); color: var(--teal); }
.chip svg.i { width: 13px; height: 13px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow: auto; }
.tabs button { padding: 12px 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--primary); border-color: var(--primary); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills button { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.pills button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; } .progress i { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.progress.green i { background: var(--green); } .progress.amber i { background: var(--amber); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--primary-50); color: var(--primary); }
.ico.green { background: var(--green-50); color: var(--green); } .ico.amber { background: var(--amber-50); color: #d98a00; } .ico.rose { background: var(--rose-50); color: var(--rose); } .ico.teal { background: var(--teal-50); color: var(--teal); } .ico.indigo { background: var(--indigo-50); color: var(--indigo); }

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 30px; color: #fff; background: #0c3b35; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; box-shadow: var(--sh-lg); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 92% 8%, rgba(245,165,36,.35), transparent 38%), repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 18px); }
.hero > * { position: relative; }
.hero h2 { font-size: 26px; margin: 8px 0 6px; max-width: 480px; } .hero p { opacity: .85; max-width: 460px; }
.hero .progress { background: rgba(255,255,255,.25); max-width: 380px; margin: 16px 0 18px; } .hero .progress i { background: var(--amber); }
.hero .art { width: 190px; height: 160px; position: relative; z-index: 1; }

/* stat cards */
.stat { padding: 18px; display: flex; gap: 14px; align-items: center; } .stat b { font: 700 24px var(--display); display: block; line-height: 1.1; } .stat span { color: var(--muted); font-size: 13px; }

/* course cards */
.course { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; cursor: pointer; text-align: left; width: 100%; }
.course:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.thumb { height: 138px; overflow: hidden; position: relative; display: grid; place-items: center; color: #fff; }
.thumb .badge { position: absolute; top: 10px; left: 10px; } .thumb .lockb { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.35); display: grid; place-items: center; }
.thumb .lockb svg.i { width: 16px; height: 16px; }
.thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 16px); }
.thumb .art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.t-blue { background: #0e7c6b; } .t-teal { background: #2468d8; } .t-amber { background: #f5a524; }
.t-rose { background: #ff6b57; } .t-indigo { background: #7a3b8f; } .t-navy { background: #0c3b35; }
.course .body { padding: 16px; display: grid; gap: 10px; flex: 1; } .course h3 { font-size: 16px; }
.meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; } .meta span { display: inline-flex; gap: 5px; align-items: center; } .meta svg.i { width: 15px; height: 15px; }

/* curriculum */
.module { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.module > button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; }
.module > button .chev { margin-left: auto; transition: rotate .2s; } .module.open > button .chev { rotate: 180deg; }
.lessons { display: none; border-top: 1px solid var(--line); } .module.open .lessons { display: block; }
.lesson { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; } .lesson:last-child { border-bottom: 0; }
.lesson:hover { background: var(--bg); }
.lesson .ico { width: 36px; height: 36px; border-radius: 10px; } .lesson .state { margin-left: auto; }

/* question + options */
.qhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.qtext { font: 600 21px/1.4 var(--display); margin: 8px 0 22px; letter-spacing: -.01em; }
.opt { width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 12px; font-weight: 500; transition: border-color .15s, background .15s, transform .1s; }
.opt .k { width: 32px; height: 32px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-weight: 700; flex: none; }
.opt:hover:not([disabled]) { border-color: var(--primary); transform: translateX(3px); }
.opt.ok { border-color: var(--green); background: var(--green-50); } .opt.ok .k { background: var(--green); color: #fff; }
.opt.bad { border-color: var(--red); background: var(--red-50); } .opt.bad .k { background: var(--red); color: #fff; }
.opt.sel { border-color: var(--primary); background: var(--primary-50); } .opt.sel .k { background: var(--primary); color: #fff; }
.opt[disabled] { cursor: default; }
.explain { display: none; background: var(--primary-50); border-radius: 14px; padding: 16px 18px; margin-top: 6px; } .explain.on { display: block; animation: fade .3s both; }
.pal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; } .pal i { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font: 600 13px var(--body); font-style: normal; background: var(--bg); border: 1px solid var(--line); }
.pal i.a { background: var(--green); color: #fff; border-color: var(--green); } .pal i.m { background: var(--amber); color: #3b2800; border-color: var(--amber); } .pal i.c { outline: 2px solid var(--primary); outline-offset: 1px; }
.timer { font: 700 18px var(--display); display: inline-flex; gap: 8px; align-items: center; background: var(--red-50); color: var(--red); padding: 8px 14px; border-radius: 12px; }

/* audio */
.player { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
.cover { aspect-ratio: 1; border-radius: 22px; position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; box-shadow: var(--sh-lg); }
.wave { display: flex; align-items: center; gap: 3px; height: 56px; } .wave i { flex: 1; background: var(--line); border-radius: 3px; } .wave i.d { background: var(--primary); }
.ctl { display: flex; align-items: center; gap: 18px; } .ctl button { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.ctl .play { width: 68px; height: 68px; background: var(--primary); color: #fff; border: 0; box-shadow: 0 10px 22px -8px rgba(14,124,107,.8); }

/* charts */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 160px; } .bars div { flex: 1; display: grid; gap: 8px; justify-items: center; align-content: end; height: 100%; font-size: 12px; color: var(--muted); }
.bars i { width: 100%; min-height: 6px; border-radius: 8px 8px 4px 4px; background: var(--primary-50); display: block; } .bars i.on { background: var(--primary); }
.heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; } .heat i { aspect-ratio: 1; border-radius: 5px; background: var(--line); } .heat i.l1 { background: #bfe3da; } .heat i.l2 { background: #7fc7b8; } .heat i.l3 { background: #3aa08f; } .heat i.l4 { background: #0a6355; }
.lb { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .lb:last-child { border: 0; } .lb .pos { width: 22px; font-weight: 700; color: var(--muted); }
.lb.me { background: var(--primary-50); margin: 0 -12px; padding: 10px 12px; border-radius: 12px; border: 0; }

/* tables / forms */
table { width: 100%; border-collapse: collapse; font-size: 14px; } th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 16px; background: var(--bg); font-weight: 600; } td { padding: 14px 16px; border-bottom: 1px solid var(--line); } tr:last-child td { border-bottom: 0; }
.tbl { overflow: hidden; padding: 0; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; } .field input, .field select { height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--surface); font: 500 15px var(--body); color: var(--ink); }
.field input:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 4px var(--primary-50); }
.skel { background: linear-gradient(90deg, var(--line), var(--bg), var(--line)); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 8px; height: 14px; } @keyframes sh { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.plan { padding: 24px; display: grid; gap: 14px; position: relative; } .plan.best { border: 2px solid var(--primary); box-shadow: var(--sh-lg); }
.plan .price { font: 800 36px var(--display); } .plan ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14px; } .plan li { display: flex; gap: 8px; align-items: center; } .plan li svg { color: var(--green); width: 16px; height: 16px; }
.ribbon { position: absolute; top: -12px; left: 24px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }

.bottomnav { display: none; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; } .sidebar { display: none; }
  .topbar { padding: 12px 16px; } .search { display: none; } .content { padding: 18px 16px 100px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .hero { grid-template-columns: 1fr; } .hero .art { display: none; } .player { grid-template-columns: 1fr; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 8px 4px 14px; z-index: 20; }
  .bottomnav button { display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 6px 0; }
  .bottomnav button[aria-current="true"] { color: var(--primary); font-weight: 700; }
}

/* flow v0.3 */
.nb { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; background: var(--amber-50); color: #b97800; padding: 2px 8px; border-radius: 99px; }
.engine { background: var(--navy); color: #fff; border-radius: 22px; padding: 26px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; }
.engine::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 95% 0, rgba(245,165,36,.3), transparent 40%), repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 18px); }
.engine > * { position: relative; } .engine h1 { font-size: 28px; margin-top: 8px; }
.engine .k { text-align: center; min-width: 84px; } .engine .k b { display: block; font: 700 28px var(--display); } .engine .k span { font-size: 12px; opacity: .75; }
.subj { display: flex; gap: 10px; flex-wrap: wrap; }
.subj button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; }
.subj button em { font-style: normal; font-size: 12px; background: var(--bg); padding: 2px 8px; border-radius: 99px; color: var(--muted); }
.subj button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.topic { border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); margin-bottom: 14px; overflow: hidden; }
.topic > button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; border-left: 6px solid var(--tc, var(--primary)); }
.topic > button .tico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tc, var(--primary)); color: #fff; flex: none; }
.topic > button .go { margin-left: auto; } .topic.open > button .go { rotate: 180deg; }
.batches { display: none; padding: 4px 18px 18px; grid-template-columns: repeat(3, 1fr); gap: 14px; } .topic.open .batches { display: grid; }
.batch { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; background: var(--bg); }
.batch h4 { font-size: 15px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.speed button { padding: 5px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; background: var(--bg); } .speed button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.lec { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid transparent; width: 100%; text-align: left; } .lec:hover { background: var(--bg); } .lec.on { border-color: var(--primary); background: var(--primary-50); }
.pdf { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; } .pdf:last-child { border: 0; } .pdf:hover { background: var(--bg); }
.stepper { display: flex; gap: 10px; flex-wrap: wrap; } .stepper span { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); }
.stepper span.on { background: var(--primary); color: #fff; border-color: var(--primary); } .stepper span.done { color: var(--green); }
.scales { display: flex; gap: 8px; margin-bottom: 14px; } .scales button { padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); font-weight: 700; background: var(--surface); } .scales button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.banks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; } .banks button { padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; font-weight: 700; font-size: 13px; display: grid; gap: 6px; justify-items: center; } .banks button i { font-style: normal; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 11px; } .banks button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-50); }
.toggle { width: 46px; height: 26px; border-radius: 99px; background: var(--primary); position: relative; flex: none; } .toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
@media (max-width: 1100px) { .batches { grid-template-columns: 1fr 1fr; } .banks { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .batches { grid-template-columns: 1fr; } .banks { grid-template-columns: repeat(3, 1fr); } }
