/* LaMotheo Training website.
   Direction: a bright, open "data notebook". White pages on a faint spreadsheet grid, LaMotheo navy for ink
   and the big bands, the logo's blue for every action, gold only for ratings. The assistant is the signature:
   it lives in the hero search and in the corner of every page. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --brand: #011852;          /* from the logo, set at runtime */
  --brand-2: #0B2A73;
  --accent: #4070E7;         /* from the logo, set at runtime */
  --accent-2: #6A5BEA;
  --on-accent: #FFFFFF;
  --accent-ink: #2453C9;
  --accent-soft: rgba(64,112,231,.10);
  --canvas: #F5F7FB;
  --paper: #FFFFFF;
  --ink: #0A1633;
  --ink-2: #33415C;
  --mute: #5E6B85;
  --line: #E2E7F0;
  --line-2: #EEF1F6;
  --grid: rgba(1,24,82,.045);
  --star: #F4A80C;
  --ok: #0E8A5F; --ok-soft: #E2F6EE;
  --warn: #8F5A00; --warn-soft: #FFF2D6;
  --bad: #C2322B; --bad-soft: #FDE7E5;
  --shadow-1: 0 1px 2px rgba(10,22,51,.06), 0 1px 1px rgba(10,22,51,.04);
  --shadow-2: 0 2px 4px rgba(10,22,51,.05), 0 12px 32px rgba(10,22,51,.09);
  --on-dark: #FFFFFF;
  --on-dark-mute: #B7C3DD;
  --t-ai-a: var(--accent); --t-ai-b: var(--accent-2);
  --t-excel-a: #1FA463; --t-excel-b: #0B7443;
  --t-pbi-a: #F7B731; --t-pbi-b: #E5791B;
  --t-data-a: #4B8CF7; --t-data-b: #2752D6;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #070D1C; --paper: #0E1830; --ink: #EAF0FB; --ink-2: #C8D2E6; --mute: #93A1BD; --line: #1E2B48; --line-2: #16213A;
    --grid: rgba(255,255,255,.035); --accent-ink: #8FAEFF; --accent-soft: rgba(64,112,231,.18);
    --ok: #4CD6A0; --ok-soft: #0D3326; --warn: #F2C35C; --warn-soft: #3A2C08; --bad: #FF8B84; --bad-soft: #42171A;
    --shadow-1: 0 0 0 1px #1A2742; --shadow-2: 0 0 0 1px #1E2B48, 0 16px 40px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #070D1C; --paper: #0E1830; --ink: #EAF0FB; --ink-2: #C8D2E6; --mute: #93A1BD; --line: #1E2B48; --line-2: #16213A;
  --grid: rgba(255,255,255,.035); --accent-ink: #8FAEFF; --accent-soft: rgba(64,112,231,.18);
  --ok: #4CD6A0; --ok-soft: #0D3326; --warn: #F2C35C; --warn-soft: #3A2C08; --bad: #FF8B84; --bad-soft: #42171A;
  --shadow-1: 0 0 0 1px #1A2742; --shadow-2: 0 0 0 1px #1E2B48, 0 16px 40px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *:before, *:after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, .d { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic.fill { fill: currentColor; stroke: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 640px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* ---------- buttons, fields, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 0;
  background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: 15.5px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px var(--accent); transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.lg { min-height: 54px; padding: 12px 26px; font-size: 16.5px; border-radius: 14px; }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); filter: none; }
.btn.soft { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
.btn.dark { background: var(--brand); color: #fff; box-shadow: none; }
.btn.white { background: #fff; color: var(--brand); box-shadow: 0 8px 24px -10px rgba(0,0,0,.4); }
.btn.on-dark { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link { color: var(--accent-ink); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea, .field select, .input {
  width: 100%; min-height: 48px; padding: 11px 14px; font-size: 16px; background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.field .hint { font-size: 13px; color: var(--mute); margin-top: 6px; }
.form-error { background: var(--bad-soft); color: var(--bad); border-radius: 12px; padding: 11px 14px; margin-bottom: 16px; font-weight: 600; font-size: 15px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.on-dark { background: rgba(255,255,255,.12); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--star); }
.stars .ic { width: 15px; height: 15px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.rating b { color: var(--warn); font-weight: 700; }
.rating span { color: var(--mute); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top { background: rgba(14,24,48,.86); } }
:root[data-theme="dark"] .top { background: rgba(14,24,48,.86); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.logo img, .logo .mark { width: 38px; height: 38px; object-fit: contain; }
.logo .mark { border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; }
.logo b { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; line-height: 1; display: block; }
.logo small { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; font-weight: 600; }
.search { flex: 1 1 auto; max-width: 520px; position: relative; }
.search input { width: 100%; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--canvas); padding: 0 16px 0 44px; font-size: 15px; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 4px var(--accent-soft); }
.search .ic { position: absolute; left: 15px; top: 12px; color: var(--mute); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav button.navb { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 9px 12px; border-radius: 10px; background: none; border: 0; position: relative; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover, .nav button.navb:hover { background: var(--line-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-ink); }
.badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 0; font-family: var(--display); }
.menu-btn { display: none; }
.menu { position: absolute; right: 24px; top: 62px; width: 260px; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-2); padding: 8px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; text-align: left; color: var(--ink); }
.menu a:hover, .menu button:hover { background: var(--line-2); }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; }
.menu .who span { font-size: 13px; color: var(--mute); word-break: break-all; }
@media (max-width: 960px) {
  .nav .wide { display: none; }
  .search { max-width: none; }
}
@media (max-width: 640px) {
  .top .wrap { gap: 10px; height: 60px; }
  .logo small, .logo b { display: none; }
  .search input { height: 40px; }
  .nav .navtext { display: none; }
  .menu { right: 12px; left: 12px; width: auto; top: 56px; }
  .nav .signin { display: none; }
  .sec { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 40px; }
  .sec h2 { font-size: 25px; }
  .page-title { font-size: 31px; }
}

/* ---------- page furniture ---------- */
main { min-height: 70vh; }
.page { padding-top: 36px; padding-bottom: 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 600; color: var(--mute); margin-bottom: 14px; }
.crumbs a { color: var(--accent-ink); text-decoration: none; }
.page-title { font-size: 40px; margin-bottom: 8px; }
.page-sub { color: var(--mute); font-size: 18px; max-width: 46em; }
.sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 56px 0 20px; }
.sec h2 { font-size: 30px; }
.sec p { color: var(--mute); margin-top: 6px; }
.sec a { font-weight: 650; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.panel { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 22px; }
.note { display: flex; gap: 12px; background: var(--warn-soft); border-radius: 14px; padding: 14px 16px; font-size: 15px; margin-bottom: 16px; }
.note > .ic { color: var(--warn); margin-top: 1px; }
.note.info { background: var(--accent-soft); } .note.info > .ic { color: var(--accent-ink); }
.note.ok { background: var(--ok-soft); } .note.ok > .ic { color: var(--ok); }
.note.bad { background: var(--bad-soft); } .note.bad > .ic { color: var(--bad); }
.note b { display: block; }
.note > div { min-width: 0; }
.empty { text-align: center; padding: 56px 20px; }
.empty .art { margin: 0 auto 18px; }
.empty h3 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--mute); margin: 0 auto 20px; max-width: 32em; }
.skel { background: var(--line-2); border-radius: var(--r); animation: shimmer 1.3s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background-color: var(--paper); border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.eyebrowless { font-size: 15px; font-weight: 600; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.hero h1 { font-size: 62px; line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 19px; color: var(--ink-2); margin: 20px 0 28px; max-width: 34em; }
.ask { position: relative; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-2), 0 0 0 1.5px var(--line); padding: 8px; display: flex; align-items: center; gap: 8px; }
.ask:focus-within { box-shadow: var(--shadow-2), 0 0 0 2px var(--accent); }
.ask .spark { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; }
.ask input { flex: 1 1 auto; min-width: 0; border: 0; background: none; font-size: 17px; height: 44px; color: var(--ink); }
.ask input:focus { outline: none; }
.ask-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-2); padding: 8px; z-index: 5; text-align: left; }
.ask-results a, .ask-results button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; text-decoration: none; background: none; border: 0; text-align: left; color: var(--ink); }
.ask-results a:hover, .ask-results button:hover, .ask-results .on { background: var(--line-2); }
.ask-results .lbl { font-size: 12.5px; font-weight: 700; color: var(--mute); padding: 8px 10px 4px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.topic { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.topic:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.topic .tile { width: 28px; height: 28px; border-radius: 50%; }
.topic .tile .ic { width: 15px; height: 15px; }
.hero-stats { display: flex; gap: 32px; margin-top: 34px; }
.hero-stats b { display: block; font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; }
.hero-stats span { font-size: 14px; color: var(--mute); }

/* the product collage on the right of the hero */
.collage { position: relative; min-height: 540px; }
.collage .slab { position: absolute; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-2); }
.collage .c1 { left: 6%; top: 0; width: 70%; overflow: hidden; }
.collage .c2 { right: 0; top: 190px; width: 58%; padding: 16px; }
.collage .c3 { left: 0; bottom: 0; width: 56%; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.collage .c1 .cover { height: 150px; }
.collage .c1 .in { padding: 16px 18px 18px; }
.collage .c1 h3 { font-size: 19px; margin-bottom: 6px; }
.bubble { border-radius: 14px; padding: 10px 13px; font-size: 14px; line-height: 1.45; max-width: 92%; }
.bubble.me { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--line-2); border-bottom-left-radius: 4px; margin-top: 8px; }
.collage .c2 .who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.seal { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; background: conic-gradient(from 0deg, var(--star), #ffd979, var(--star)); display: flex; align-items: center; justify-content: center; color: #6B4200; }
.seal .ic { width: 26px; height: 26px; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 52px; }
  .hero h1 { font-size: 44px; }
  .collage { min-height: 420px; max-width: 520px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 17px; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 24px; }
  .collage { display: none; }
}

/* ---------- course covers and cards ---------- */
.cover { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--t-data-a), var(--t-data-b)); }
.cover:before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px); background-size: 22px 22px; }
.cover.ai { background: linear-gradient(135deg, var(--t-ai-a), var(--t-ai-b)); }
.cover.excel { background: linear-gradient(135deg, var(--t-excel-a), var(--t-excel-b)); }
.cover.powerbi { background: linear-gradient(135deg, var(--t-pbi-a), var(--t-pbi-b)); color: #2B1700; }
.cover .glyph { position: absolute; right: -10px; bottom: -22px; opacity: .9; }
.cover .glyph .ic { width: 128px; height: 128px; stroke-width: 1.3; }
.cover .tag { position: absolute; left: 14px; top: 14px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #0A1633; }
.cover .tag.live { background: #0A1633; color: #fff; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid, .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid, .grid.three { grid-template-columns: 1fr; } }
.ccard { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-1); overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ccard .cover { height: 150px; }
.ccard .in { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.ccard h3 { font-size: 18.5px; line-height: 1.2; margin-bottom: 6px; }
.ccard p { font-size: 14.5px; color: var(--mute); line-height: 1.45; margin-bottom: 10px; }
.ccard .meta { font-size: 13.5px; color: var(--mute); margin-top: 6px; }
.ccard .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.price small { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--mute); }
.pbar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- catalogue ---------- */
.cat { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: 92px; }
.filters h3 { font-size: 15px; font-family: var(--body); letter-spacing: 0; font-weight: 700; margin: 22px 0 10px; }
.filters h3:first-child { margin-top: 0; }
.filters .groups > div + div { margin-top: 18px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--accent); }
.opt span { margin-left: auto; color: var(--mute); font-size: 13px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar select { min-height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); padding: 0 12px; }
@media (max-width: 900px) { .cat { grid-template-columns: 1fr; } .filters { position: static; } .filters .groups { display: flex; flex-wrap: wrap; gap: 0 28px; } }

/* ---------- course page ---------- */
.band { background: var(--brand); color: var(--on-dark); position: relative; overflow: hidden; }
.band:after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.12), rgba(255,255,255,0)); }
.band .wrap { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 44px; }
.band .crumbs, .band .crumbs a { color: #9DB7FF; }
.band h1 { font-size: 44px; max-width: 18em; }
.band .lead { font-size: 19px; color: var(--on-dark-mute); margin: 14px 0 18px; max-width: 40em; }
.band .facts { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 15px; color: var(--on-dark-mute); }
.band .facts b { color: #fff; }
.band .rating b { color: #FFC24B; }
.band .rating span { color: var(--on-dark-mute); }
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.course-grid > .side { margin-top: -230px; position: sticky; top: 92px; z-index: 2; }
.buy { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.buy .cover { height: 180px; }
.buy .in { padding: 22px; }
.buy .price { font-size: 32px; }
.buy ul { list-style: none; padding: 0; margin: 18px 0 0; }
.buy li { display: flex; gap: 10px; padding: 6px 0; font-size: 15px; }
.buy li .ic { color: var(--accent-ink); width: 19px; height: 19px; margin-top: 2px; }
.buy .btn + .btn { margin-top: 10px; }
@media (max-width: 1000px) {
  .course-grid { grid-template-columns: 1fr; }
  .course-grid > .side { margin-top: 0; position: static; order: -1; }
  .band h1 { font-size: 34px; }
}
.box { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 26px; margin-top: 28px; }
.box h2 { font-size: 24px; margin-bottom: 16px; }
.learn-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; list-style: none; padding: 0; }
.learn-list li { display: flex; gap: 10px; font-size: 15.5px; }
.learn-list .ic { color: var(--ok); margin-top: 2px; }
@media (max-width: 640px) { .learn-list { grid-template-columns: 1fr; } }
.prose { font-size: 16.5px; color: var(--ink-2); max-width: 44em; }
.prose p + p { margin-top: 14px; }

.acc { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; background: var(--line-2); font-weight: 700; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .grow { flex: 1 1 auto; min-width: 0; }
.acc summary small { font-weight: 600; color: var(--mute); font-size: 13.5px; }
.acc summary .ic.chev { transition: transform .2s; }
.acc[open] summary .ic.chev { transform: rotate(90deg); }
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); text-decoration: none; font-size: 15px; background: none; width: 100%; text-align: left; border-left: 0; border-right: 0; border-bottom: 0; }
.lrow:hover { background: var(--line-2); }
.lrow .grow { flex: 1 1 auto; min-width: 0; }
.lrow .st { font-size: 13px; color: var(--mute); display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 2px var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--mute); }
.dot .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.dot.done { background: var(--ok); box-shadow: none; color: #fff; }
.dot.lock { background: var(--line-2); }

/* reviews */
.rev-top { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 22px; }
.rev-score { text-align: center; }
.rev-score b { display: block; font-family: var(--display); font-size: 58px; line-height: 1; color: var(--warn); }
.rev-score .stars .ic { width: 18px; height: 18px; }
.rev-score span { display: block; font-size: 14px; color: var(--mute); margin-top: 6px; }
.dist div { display: grid; grid-template-columns: minmax(0, 1fr) 96px 40px; gap: 12px; align-items: center; font-size: 14px; color: var(--mute); padding: 3px 0; }
.dist .pbar { height: 8px; }
.dist .pbar i { background: var(--star); }
.review { padding: 18px 0; border-top: 1px solid var(--line); }
.review .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review .av { width: 36px; height: 36px; border-radius: 50%; background: var(--line-2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-2); }
.review .hd b { display: block; font-size: 15px; }
.review .hd span { font-size: 13px; color: var(--mute); }
.star-pick { display: inline-flex; gap: 4px; }
.star-pick button { background: none; border: 0; padding: 4px; color: var(--line); }
.star-pick button .ic { width: 32px; height: 32px; }
.star-pick button.on { color: var(--star); }
@media (max-width: 640px) { .rev-top { grid-template-columns: 1fr; } }

/* class dates */
.date { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 18px; }
.date + .date { margin-top: 12px; }
.cal { text-align: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); padding: 9px 0 10px; }
.cal b { display: block; font-family: var(--display); font-size: 28px; line-height: 1; }
.cal span { display: block; font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.date h3 { font-size: 19px; margin-bottom: 4px; }
.date .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; color: var(--mute); }
.date .meta span { display: inline-flex; align-items: center; gap: 6px; }
.date .meta .ic { width: 16px; height: 16px; }
.seats { margin-top: 10px; max-width: 320px; }
.seats .pbar { height: 7px; }
.seats .pbar i { background: var(--ok); }
.seats.full .pbar i { background: var(--bad); }
.seats p { font-size: 13px; color: var(--mute); margin-top: 5px; }
.date .act { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 190px; }
@media (max-width: 720px) { .date { grid-template-columns: 64px minmax(0, 1fr); } .date .act { grid-column: 1 / -1; min-width: 0; } }

/* ---------- learning player ---------- */
.player { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.player .side { background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto; max-height: calc(100vh - 68px); position: sticky; top: 68px; }
.player .side .hd { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.player .side .hd h2 { font-size: 18px; margin-bottom: 10px; }
.player .side .mod { padding: 12px 18px 6px; font-size: 13px; font-weight: 700; color: var(--mute); }
.player .side .lrow { border-top: 0; padding: 10px 18px; }
.player .side .lrow.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.reader { max-width: 760px; margin: 0 auto; padding: 40px 32px 60px; width: 100%; }
.reader .kicker { font-size: 14px; font-weight: 650; color: var(--accent-ink); margin-bottom: 10px; }
.reader h1 { font-size: 38px; margin-bottom: 26px; }
.lesson { font-size: 18px; line-height: 1.72; color: var(--ink-2); }
.lesson p { margin-bottom: 20px; }
.lesson h3 { font-size: 21px; color: var(--ink); margin: 32px 0 12px; }
.lesson ul { margin: 0 0 20px; padding: 0; list-style: none; }
.lesson li { position: relative; padding: 0 0 12px 32px; }
.lesson li:before { content: ""; position: absolute; left: 4px; top: 10px; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.lesson .try { background: var(--accent-soft); border-radius: var(--r); padding: 6px 22px 4px; margin: 28px 0; }
.lesson .try h3 { margin-top: 16px; color: var(--accent-ink); }
.lesson video { width: 100%; border-radius: var(--r); background: #000; margin-bottom: 22px; }
.quiz { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 26px; margin: 36px 0 26px; }
.quiz h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.quiz .q { margin-top: 22px; }
.quiz .q > b { display: block; font-size: 17px; margin-bottom: 10px; }
.qopt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); margin-bottom: 8px; font-size: 15.5px; }
.qopt:hover { border-color: var(--accent); }
.qopt .k { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.qopt.pick { border-color: var(--accent); background: var(--accent-soft); }
.qopt.pick .k { background: var(--accent); color: #fff; box-shadow: none; }
.qopt.right { border-color: var(--ok); background: var(--ok-soft); }
.qopt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.explain { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.lesson-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 10px; flex-wrap: wrap; }
.done-pop { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ok); }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: none; opacity: 1; } }
.done-pop .dot { animation: pop .4s ease-out both; width: 30px; height: 30px; }
.side-toggle { display: none; }
@media (max-width: 900px) {
  .player { grid-template-columns: 1fr; }
  .player .side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); max-height: none; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow-2); }
  .player.open .side { transform: none; }
  .side-toggle { display: inline-flex; }
  .reader { padding: 24px 16px 48px; }
  .reader h1 { font-size: 30px; }
}

/* ---------- my learning ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 26px 0 8px; }
.stat { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 18px 20px; }
.stat b { display: block; font-family: var(--display); font-size: 34px; letter-spacing: -0.02em; line-height: 1.05; }
.stat span { font-size: 14px; color: var(--mute); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 30px 0 22px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; font-weight: 650; color: var(--mute); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.row-card { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-1); overflow: hidden; }
.row-card + .row-card { margin-top: 14px; }
.row-card .cover { height: 100%; min-height: 120px; }
.row-card .in { padding: 16px 0; }
.row-card h3 { font-size: 19px; margin-bottom: 6px; }
.row-card .act { padding: 16px 20px 16px 0; }
@media (max-width: 720px) { .row-card { grid-template-columns: 1fr; gap: 0; } .row-card .cover { min-height: 110px; } .row-card .in { padding: 16px; } .row-card .act { padding: 0 16px 16px; } }
.cert-card { display: flex; align-items: center; gap: 16px; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 18px; text-decoration: none; }
.cert-card + .cert-card { margin-top: 12px; }

/* ---------- chat ---------- */
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr) 280px; height: calc(100vh - 68px); background: var(--paper); border-top: 1px solid var(--line); }
.chat.no-info { grid-template-columns: 320px minmax(0, 1fr); }
.rooms { border-right: 1px solid var(--line); overflow-y: auto; }
.rooms .hd { padding: 18px 18px 10px; display: flex; align-items: center; justify-content: space-between; }
.rooms .hd h1 { font-size: 24px; }
.rooms .grp { font-size: 12.5px; font-weight: 700; color: var(--mute); padding: 14px 18px 6px; }
.room { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 6px; border-radius: 12px; text-decoration: none; position: relative; }
.room:hover { background: var(--line-2); }
.room.on { background: var(--accent-soft); }
.room .grow { flex: 1 1 auto; min-width: 0; }
.room .t { font-weight: 650; font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room .s { font-size: 13.5px; color: var(--mute); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.room .flag { color: var(--bad); font-size: 12px; font-weight: 700; }
.rtile { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--line-2); color: var(--ink-2); }
.rtile.news { background: var(--brand); color: #fff; }
.rtile.assist, .rtile.ai { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.rtile.excel { background: linear-gradient(135deg, var(--t-excel-a), var(--t-excel-b)); color: #fff; }
.rtile.powerbi { background: linear-gradient(135deg, var(--t-pbi-a), var(--t-pbi-b)); color: #2B1700; }
.rtile.person { border-radius: 50%; background: var(--line-2); font-weight: 700; color: var(--ink-2); }
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread .hd { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); min-height: 68px; }
.thread .hd .grow { min-width: 0; flex: 1 1 auto; }
.thread .hd b { display: block; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .hd span { font-size: 13.5px; color: var(--mute); }
.msgs { flex: 1 1 auto; overflow-y: auto; padding: 18px 22px; background-color: var(--canvas); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.msg { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-end; }
.msg .av { width: 30px; height: 30px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.msg .av.bot { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.msg .av.staff { background: var(--brand); color: #fff; }
.msg .b { max-width: min(620px, 78%); background: var(--paper); border-radius: 16px 16px 16px 4px; padding: 9px 13px 8px; box-shadow: var(--shadow-1); position: relative; }
.msg .b .who { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); margin-bottom: 2px; }
.msg .b .txt { white-space: pre-wrap; word-wrap: break-word; font-size: 15px; line-height: 1.5; }
.msg .b .txt a { color: var(--accent-ink); }
.msg .b .tm { font-size: 11.5px; color: var(--mute); margin-top: 3px; display: flex; gap: 10px; align-items: center; }
.msg .b .tm button { background: none; border: 0; padding: 0; font-size: 11.5px; color: var(--mute); font-weight: 650; }
.msg .b .tm button:hover { color: var(--bad); }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .b { background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg.mine .b .tm, .msg.mine .b .tm button { color: rgba(255,255,255,.8); }
.msg.mine .b .txt a { color: #fff; }
.msg.removed .b { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); font-style: italic; }
.daysep { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--mute); margin: 16px 0 12px; }
.compose { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-end; background: var(--paper); }
.compose textarea { flex: 1 1 auto; min-height: 46px; max-height: 160px; resize: none; border-radius: 14px; border: 1.5px solid var(--line); padding: 11px 14px; background: var(--canvas); font-size: 15.5px; line-height: 1.4; }
.compose textarea:focus { outline: none; border-color: var(--accent); background: var(--paper); }
.compose .btn { min-height: 46px; width: 46px; padding: 0; border-radius: 14px; }
.readonly { padding: 16px; text-align: center; color: var(--mute); font-size: 14.5px; border-top: 1px solid var(--line); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 12px; background: var(--canvas); }
.suggest button { background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.suggest button:hover { border-color: var(--accent); color: var(--accent-ink); }
.info { border-left: 1px solid var(--line); overflow-y: auto; padding: 18px; }
.info h3 { font-size: 16px; margin-bottom: 12px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.person .grow { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 14.5px; }
.person .grow small { display: block; font-weight: 600; color: var(--mute); font-size: 12px; }
.person button { background: none; border: 0; color: var(--accent-ink); font-weight: 650; font-size: 13px; padding: 4px; }
@media (max-width: 1100px) { .chat { grid-template-columns: 300px minmax(0, 1fr); } .chat .info { display: none; } }
@media (max-width: 760px) {
  .chat, .chat.no-info { grid-template-columns: 1fr; height: calc(100vh - 60px); }
  .chat .rooms { display: block; }
  .chat .thread { display: none; }
  .chat.in-room .rooms { display: none; }
  .chat.in-room .thread { display: flex; }
  .msgs { padding: 14px; }
  .msg .b { max-width: 86%; }
}

/* ---------- assistant bubble ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 60px; height: 60px; border-radius: 20px; border: 0; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 34px -10px var(--accent), 0 4px 10px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; }
.fab .ic { width: 28px; height: 28px; }
.fab .badge { top: -4px; right: -4px; }
@keyframes breathe { 0%, 100% { box-shadow: 0 14px 34px -10px var(--accent), 0 0 0 0 var(--accent-soft); } 50% { box-shadow: 0 14px 34px -10px var(--accent), 0 0 0 10px rgba(64,112,231,0); } }
.fab { animation: breathe 3.6s ease-in-out 2; }
.assist-panel { position: fixed; right: 22px; bottom: 96px; z-index: 50; width: 390px; max-height: min(640px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-2), 0 30px 70px -20px rgba(1,24,82,.35); overflow: hidden; animation: rise .22s cubic-bezier(.2,.9,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.assist-panel .hd { background: var(--brand); color: #fff; padding: 16px 18px; display: flex; gap: 12px; align-items: center; }
.assist-panel .hd .rtile { width: 42px; height: 42px; }
.assist-panel .hd b { display: block; font-family: var(--display); font-size: 17px; }
.assist-panel .hd span { font-size: 13px; color: var(--on-dark-mute); }
.assist-panel .hd button { margin-left: auto; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.assist-panel .msgs { min-height: 240px; }
.assist-panel .compose { padding: 10px; }
@media (max-width: 560px) { .assist-panel { right: 8px; left: 8px; width: auto; bottom: 88px; max-height: calc(100vh - 110px); } .fab { right: 14px; bottom: 14px; } }

/* ---------- modal + toast ---------- */
.scrim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; background: rgba(5,12,30,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-2); width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; animation: rise .2s ease-out both; position: relative; }
.modal h2 { font-size: 24px; margin-bottom: 6px; padding-right: 40px; }
.modal > p { color: var(--mute); margin-bottom: 18px; }
.modal .x { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--line-2); display: flex; align-items: center; justify-content: center; }
.pay-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.pay-opt:hover { border-color: var(--accent); }
.pay-opt b { display: block; }
.pay-opt span span { display: block; font-size: 14px; color: var(--mute); }
.pay-opt > .ic { margin-left: auto; color: var(--mute); }
.kv { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv:last-child { border: 0; }
.kv span { flex: 0 0 38%; color: var(--mute); }
.kv b { flex: 1 1 auto; word-break: break-word; }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 70; pointer-events: none; }
#toast div { background: var(--ink); color: var(--canvas); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-2); pointer-events: auto; animation: rise .2s ease-out both; max-width: calc(100vw - 32px); }

/* tiles used across pages */
.tile { width: 48px; height: 48px; border-radius: 14px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--t-data-a), var(--t-data-b)); }
.tile .ic { width: 24px; height: 24px; }
.tile.ai { background: linear-gradient(135deg, var(--t-ai-a), var(--t-ai-b)); }
.tile.excel { background: linear-gradient(135deg, var(--t-excel-a), var(--t-excel-b)); }
.tile.powerbi { background: linear-gradient(135deg, var(--t-pbi-a), var(--t-pbi-b)); color: #2B1700; }

/* ---------- home sections ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 24px; }
.feature .tile { margin-bottom: 16px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--mute); font-size: 15.5px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.cta-band { background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; margin-top: 64px; position: relative; overflow: hidden;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 36px 36px; }
.cta-band h2 { font-size: 34px; }
.cta-band p { color: var(--on-dark-mute); margin-top: 8px; font-size: 17px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 28px; } .cta-band h2 { font-size: 26px; } }
.quote { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 24px; }
.quote p { font-size: 16.5px; margin: 10px 0 14px; }
.quote span { font-size: 14px; color: var(--mute); }

/* help */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; gap: 14px; align-items: center; padding: 18px 2px; cursor: pointer; font-weight: 650; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { margin-left: auto; transition: transform .2s; color: var(--mute); }
.faq[open] summary .ic { transform: rotate(45deg); }
.faq p { padding: 0 2px 20px; color: var(--ink-2); max-width: 46em; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

/* auth */
.auth { max-width: 460px; margin: 0 auto; padding: 56px 0 80px; }
.auth .panel { padding: 30px; }
.auth h1 { font-size: 32px; margin-bottom: 6px; }
.auth .sub { color: var(--mute); margin-bottom: 22px; }

/* certificate */
.cert { max-width: 980px; margin: 0 auto; background: #fff; color: #0A1633; border-radius: 6px; box-shadow: var(--shadow-2); padding: 56px 64px; position: relative; overflow: hidden; aspect-ratio: 1.414 / 1; display: flex; flex-direction: column; }
.cert:before { content: ""; position: absolute; left: 18px; right: 18px; top: 18px; bottom: 18px; border: 2px solid #011852; border-radius: 4px; pointer-events: none; }
.cert:after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 340px; height: 340px; background-image: linear-gradient(rgba(1,24,82,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(1,24,82,.07) 1px, transparent 1px); background-size: 20px 20px; border-radius: 50%; }
.cert .top-row { display: flex; align-items: center; gap: 14px; }
.cert .top-row img { width: 64px; height: 64px; object-fit: contain; }
.cert .top-row b { font-family: var(--display); font-size: 22px; }
.cert h1 { font-size: 20px; letter-spacing: .01em; font-family: var(--body); font-weight: 700; color: #4D5B78; margin-top: 52px; }
.cert .name { font-family: var(--display); font-size: 58px; letter-spacing: -0.03em; margin: 12px 0 18px; line-height: 1; }
.cert .what { font-size: 19px; color: #33415C; max-width: 34em; }
.cert .what b { color: #0A1633; }
.cert .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; font-size: 14px; color: #4D5B78; position: relative; z-index: 1; }
.cert .foot b { display: block; color: #0A1633; font-size: 15px; }
@media (max-width: 760px) { .cert { padding: 36px 30px; aspect-ratio: auto; min-height: 460px; } .cert .name { font-size: 38px; } .cert h1 { margin-top: 32px; } }
@media print {
  .top, .foot-site, .fab, .assist-panel, .no-print { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; }
  .cert { box-shadow: none; max-width: none; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* ---------- footer ---------- */
.foot-site { background: var(--brand); color: var(--on-dark-mute); margin-top: 40px; }
.foot-site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
.foot-site h4 { color: #fff; font-family: var(--body); font-size: 15px; margin-bottom: 12px; }
.foot-site a { display: block; color: var(--on-dark-mute); text-decoration: none; padding: 4px 0; font-size: 15px; }
.foot-site a:hover { color: #fff; }
.foot-site .logo b { color: #fff; }
.foot-site .logo small { color: var(--on-dark-mute); }
.foot-site p { font-size: 15px; margin-top: 14px; max-width: 26em; }
.foot-site .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) { .foot-site .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-site .wrap { grid-template-columns: 1fr; } }

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

/* ---------- the installed app (2.1): phone tab bar, reminders, notifications ---------- */
.tabbar { display: none; }
.avatar { position: relative; }
.avatar .pip { position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--paper); }
.menu .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bad); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.foot-site .flink { display: block; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 15px; color: var(--on-dark-mute); cursor: pointer; text-align: left; }
.foot-site .flink:hover { color: #fff; }
#toast div { display: flex; align-items: center; gap: 14px; }
#toast button { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; padding: 0; cursor: pointer; }

.setting { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.setting:first-of-type { border-top: 0; padding-top: 4px; }
.setting .tile { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; }
.setting .grow { flex: 1 1 auto; min-width: 0; }
.setting b { display: block; font-size: 15.5px; }
.setting span:not(.tile) { display: block; font-size: 14px; color: var(--mute); }
.switch { flex: 0 0 auto; width: 52px; height: 30px; border-radius: 15px; border: 0; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.switch:after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]:after { transform: translateX(22px); }
.switch:disabled { opacity: .6; }
.switch:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

.updates a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin: 0 -12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.updates a:hover { background: var(--line-2); }
.updates a .ic { color: var(--accent-ink); margin-top: 2px; flex: 0 0 auto; }
.updates a.new b:after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }
.updates .grow { flex: 1 1 auto; min-width: 0; }
.updates b { display: block; font-size: 15px; }
.updates .grow span { display: block; font-size: 14px; color: var(--mute); margin-top: 2px; }
.updates .when { font-size: 12.5px; color: var(--mute); white-space: nowrap; }
ol.steps { margin: 4px 0 20px; padding-left: 22px; display: grid; gap: 10px; }
ol.steps .ic { width: 18px; height: 18px; vertical-align: -3px; }

.resume-top { padding-top: 8px; padding-bottom: 28px; }
.resume-top .sec { margin-top: 24px; }
.row-card.resume { margin-bottom: 12px; }
.row-card.resume h3 { margin-top: 2px; }

@media (max-width: 760px) {
  .nav .tabdup { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(10,22,51,.35); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; text-decoration: none; color: var(--mute); font-size: 11.5px; font-weight: 650; }
  .tabbar a .ic { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: var(--accent-ink); }
  .tabbar a[aria-current="page"] .ic { background: var(--accent-soft); border-radius: 10px; padding: 2px 10px; width: 44px; box-sizing: content-box; height: 23px; margin: -2px 0; }
  .tabbar .badge { top: 0; right: calc(50% - 22px); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .fab { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .assist-panel { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 220px); }
  #toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .chat, .chat.no-info { height: calc(100vh - 60px - 66px - env(safe-area-inset-bottom, 0px)); }
  .player { min-height: 0; }
}
@media (max-width: 560px) { .fab { right: 14px; } .assist-panel { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 220px); } }
/* Opened from the home screen: no website footer on phones, the tab bar does that job */
@media (display-mode: standalone) and (max-width: 760px) { .foot-site { display: none; } main { min-height: 0; } }
.standalone .top { padding-top: env(safe-area-inset-top, 0px); }
.hero.compact .wrap { padding-top: 48px; padding-bottom: 56px; }
.hero.compact h1 { font-size: 48px; }
@media (max-width: 640px) {
  .sec { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 40px; }
  .hero.compact .wrap { padding-top: 28px; padding-bottom: 32px; }
  .hero.compact h1 { font-size: 34px; }
  .hero.compact .lead { font-size: 16.5px; margin: 12px 0 20px; }
}

/* v2.2.0: Maths Lit Made Simple (free Grade 10 course in /maths-lit/) */
:root { --t-maths-a: #FFD84D; --t-maths-b: #F5B82E; }
.cover.maths, .tile.maths, .rtile.maths { background: linear-gradient(135deg, var(--t-maths-a), var(--t-maths-b)); color: #2B2000;
  background-image: linear-gradient(rgba(47,95,224,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(47,95,224,.12) 1px, transparent 1px), linear-gradient(135deg, var(--t-maths-a), var(--t-maths-b)); background-size: 18px 18px, 18px 18px, auto; }
.cover .glyph.lw { right: 6px; bottom: -14px; opacity: 1; }
.cover .glyph.lw .lwazi { width: 112px; height: 112px; display: block; transform: rotate(-6deg); }
.row-card .cover .glyph.lw .lwazi { width: 92px; height: 92px; }
.maths-band { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 40px; padding: 30px 34px; border-radius: var(--r-lg); color: #20190a;
  background: linear-gradient(rgba(47,95,224,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(47,95,224,.10) 1px, transparent 1px), linear-gradient(135deg, #FFE27A, #F7C33C); background-size: 22px 22px, 22px 22px, auto; }
.maths-band .mb-art .lwazi { width: 150px; height: 150px; display: block; transform: rotate(-6deg); }
.maths-band h2 { font-size: 30px; margin: 10px 0 8px; color: #14203a; }
.maths-band p { font-size: 16.5px; max-width: 60ch; color: #3a3220; }
.maths-band .chip.accent { background: #14203a; color: #FFE27A; }
.maths-band .mb-act { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.maths-band .btn.ghost { background: rgba(255,255,255,.55); color: #14203a; box-shadow: none; }
@media (max-width: 720px) { .maths-band { grid-template-columns: 1fr; padding: 22px; gap: 10px; } .maths-band .mb-art .lwazi { width: 96px; height: 96px; } .maths-band h2 { font-size: 24px; } }
