/* =========================================================
   ZeroStart Club — Design System
   Calm. Clear. Trust-first. Fintech + Education.
   No hype. No heavy visuals. Fast.
   ========================================================= */

:root {
  /* Brand */
  --ink:        #0A101C;   /* logo navy / primary text */
  --ink-soft:   #232B3A;   /* headings on light */
  --muted:      #5B6472;   /* secondary text */
  --muted-2:    #8A92A0;   /* tertiary / captions */

  /* Surfaces */
  --bg:         #FFFFFF;
  --bg-alt:     #F6F8FA;   /* section band */
  --bg-sink:    #F1F4F7;   /* cards on alt */
  --line:       #E6EAEF;   /* hairline borders */
  --line-2:     #D7DCE3;

  /* Accent — restrained trust green, used sparingly */
  --accent:     #12805C;
  --accent-ink: #0C5C42;
  --accent-soft:#E7F4EF;

  /* Utility */
  --warn-soft:  #FBEEEE;
  --warn-ink:   #B4453C;

  /* Shape & depth */
  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 2px rgba(10,16,28,.04), 0 1px 3px rgba(10,16,28,.06);
  --shadow-md:  0 6px 24px rgba(10,16,28,.07);
  --ring:       0 0 0 3px rgba(18,128,92,.18);

  /* Rhythm */
  --maxw:       1120px;
  --maxw-narrow:760px;
  --pad:        clamp(20px, 5vw, 40px);
  --section-y:  clamp(56px, 9vw, 104px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); }
.band { background: var(--bg-alt); }
.center { text-align: center; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); letter-spacing: -0.01em; }
p  { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
}
.section-head { max-width: 680px; margin-inline: auto; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { text-align: center; }
.section-head p { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #05264a1a; background: #16233b; box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); box-shadow: var(--shadow-md); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); font-size: 1.12rem; letter-spacing: -0.02em; }
.brand .mark { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 8px; font-size: .96rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { background: var(--bg-alt); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 9px; width: 42px; height: 42px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-signin { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open + .mobile-menu { display: block; }
  .mobile-menu { display: none; border-bottom: 1px solid var(--line); background: #fff; }
  .mobile-menu .wrap { padding-block: 14px 20px; }
  .mobile-menu a { display: block; padding: 13px 6px; font-size: 1.05rem; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-of-type { border-bottom: 0; }
  .mobile-menu .btn { width: 100%; margin-top: 14px; }
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 84px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero .wrap { max-width: 860px; text-align: center; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin: 20px auto 0; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: .93rem; color: var(--muted-2); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .97rem; }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px;
}
.card .ico svg { width: 23px; height: 23px; }

/* Feature list w/ ticks */
.ticks { display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-weight: 500; }
.ticks .tk { flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.ticks .tk svg { width: 14px; height: 14px; }
.ticks small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* Problem / pain chips */
.pain-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; max-width: 720px; margin: 0 auto; }
@media (max-width: 560px){ .pain-grid { grid-template-columns: 1fr; } }
.pain {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  display: flex; gap: 12px; align-items: center; color: var(--ink-soft); font-weight: 500;
}
.pain .x { flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); display: flex; align-items: center; justify-content: center; }
.pain .x svg { width: 15px; height: 15px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.steps.cols { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px){ .steps.cols { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .steps.cols { grid-template-columns: 1fr; } }
.step { position: relative; background:#fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color:#fff; font-weight: 700; display:flex; align-items:center; justify-content:center; margin-bottom: 16px; font-size: 1.05rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: .95rem; }

/* ---------- Learn categories ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 860px){ .learn-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .learn-grid { grid-template-columns: 1fr; } }
.learn {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px;
  transition: border-color .2s ease, transform .12s ease;
}
.learn:hover { border-color: var(--line-2); }
.learn .ico { width: 42px; height:42px; border-radius: 11px; background: var(--bg-alt); color: var(--ink); display:flex;align-items:center;justify-content:center; margin-bottom: 14px; }
.learn .ico svg { width: 22px; height:22px; }
.learn h3 { font-size: 1.08rem; margin-bottom: 4px; }
.learn p { font-size: .93rem; }

/* ---------- Why different (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; gap: 28px; } }
.compare { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-sm); }
.compare-row { display:flex; align-items:center; gap: 12px; padding: 15px 18px; border-radius: 12px; font-weight: 500; color: var(--ink-soft); }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row .ic { flex:none; width: 26px; height:26px; border-radius: 999px; display:flex;align-items:center;justify-content:center; }
.compare-row .ic svg { width: 15px; height:15px; }
.compare-row.no .ic { background: var(--warn-soft); color: var(--warn-ink); }
.compare-row.yes .ic { background: var(--accent-soft); color: var(--accent); }

/* milestone ladder */
.ladder { display:flex; align-items:center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ladder .rung { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; padding: 10px 16px; border-radius: 10px; font-size: 1.05rem; }
.ladder .arw { color: var(--muted-2); font-weight: 700; }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 440px; margin-inline: auto; background:#fff; border:1px solid var(--line-2);
  border-radius: var(--radius-lg); padding: 34px 32px; box-shadow: var(--shadow-md); text-align: left;
}
.price-card.center { text-align: center; }
.price-top { display:flex; align-items:baseline; justify-content:center; gap: 6px; margin: 6px 0 4px; }
.price-amt { font-size: 3.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.price-per { color: var(--muted); font-weight: 500; }
.price-card .ticks { margin: 24px 0 26px; text-align: left; }
.price-sub { font-size: .9rem; color: var(--muted-2); margin-top: 14px; }
.price-badges { display:flex; gap: 10px; justify-content:center; flex-wrap: wrap; margin-top: 20px; }
.badge { font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: var(--bg-alt); border:1px solid var(--line); padding: 7px 12px; border-radius: 999px; display:inline-flex; gap:6px; align-items:center; }
.badge svg { width: 14px; height:14px; color: var(--accent); }

/* comparison table */
.ptable { width:100%; border-collapse: collapse; background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ptable th, .ptable td { padding: 15px 18px; text-align:left; font-size: .95rem; border-bottom: 1px solid var(--line); }
.ptable th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
.ptable td.c { text-align:center; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable .yes { color: var(--accent); font-weight: 700; }
.ptable .no { color: var(--muted-2); }

/* ---------- Social proof ---------- */
.stats { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 620px){ .stats { grid-template-columns: 1fr; } }
.stat { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align:center; }
.stat .big { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing:-0.02em; }
.stat .lbl { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width:100%; text-align:left; background:none; border:none; padding: 22px 4px;
  display:flex; align-items:center; justify-content:space-between; gap: 16px;
  font-size: 1.08rem; font-weight: 600; color: var(--ink);
}
.faq-q .chev { flex:none; width: 22px; height:22px; color: var(--muted); transition: transform .2s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { padding: 0 4px 22px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta-band { background: var(--ink); color:#fff; border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 72px) var(--pad); text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color: #B9C1CE; margin: 16px auto 0; max-width: 520px; }
.cta-band .btn { margin-top: 30px; }
.cta-band .btn-primary { background:#fff; color: var(--ink); }
.cta-band .btn-primary:hover { background:#EEF1F4; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 52px 30px; }
.foot-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 440px){ .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { font-size: .93rem; max-width: 280px; }
.foot-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 14px; font-weight: 600; }
.foot-col a { display:block; padding: 6px 0; color: var(--muted); font-size: .95rem; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display:flex; justify-content:space-between; gap: 14px; flex-wrap: wrap; align-items:center; }
.foot-bottom p { font-size: .88rem; color: var(--muted-2); }
.foot-bottom .fine { display:flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom .fine a { font-size: .88rem; color: var(--muted-2); }
.foot-bottom .fine a:hover { color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(44px, 7vw, 76px); padding-bottom: clamp(28px, 4vw, 44px); text-align:center; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero p { margin: 16px auto 0; max-width: 600px; }

/* ---------- Prose (about) ---------- */
.prose { max-width: 720px; margin-inline: auto; }
.prose p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.prose h3 { margin: 34px 0 12px; }
.value-row { display:grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 560px){ .value-row { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-card { max-width: 460px; margin-inline: auto; background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display:block; font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width:100%; padding: 13px 15px; border:1px solid var(--line-2); border-radius: 11px;
  font-size: 1rem; font-family: inherit; color: var(--ink); background:#fff; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--accent); box-shadow: var(--ring); }
.field textarea { min-height: 130px; resize: vertical; }
.form-alt { text-align:center; margin-top: 20px; font-size: .95rem; color: var(--muted); }
.form-alt a { color: var(--accent-ink); font-weight: 600; }
.form-note { font-size: .85rem; color: var(--muted-2); text-align:center; margin-top: 16px; display:flex; align-items:center; justify-content:center; gap: 7px; }
.form-note svg { width: 15px; height:15px; color: var(--accent); }

/* tabs (login/register) */
.tabs { display:flex; background: var(--bg-alt); border-radius: 12px; padding: 5px; margin-bottom: 26px; }
.tabs button { flex:1; padding: 11px; border:none; background:none; border-radius: 9px; font-weight: 600; color: var(--muted); font-size: .98rem; }
.tabs button.active { background:#fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* contact split */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:start; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info .info-row { display:flex; gap: 14px; align-items:flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-row:last-child { border-bottom:0; }
.contact-info .ico { flex:none; width:42px;height:42px;border-radius:11px;background:var(--bg-alt);color:var(--ink);display:flex;align-items:center;justify-content:center; }
.contact-info .ico svg { width:20px;height:20px; }
.contact-info h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-info p { font-size: .95rem; }

/* ---------- Dashboard ---------- */
.dash { display:grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
@media (max-width: 900px){ .dash { grid-template-columns: 1fr; } }
.dash-side { background: var(--ink); color:#fff; padding: 22px 18px; position: sticky; top:0; height: 100vh; overflow:auto; }
@media (max-width: 900px){ .dash-side { position: static; height:auto; } }
.dash-side .brand { color:#fff; margin-bottom: 26px; }
.dash-nav a { display:flex; align-items:center; gap: 12px; padding: 12px 14px; border-radius: 10px; color:#B9C1CE; font-weight: 500; font-size: .96rem; }
.dash-nav a svg { width: 19px; height:19px; }
.dash-nav a:hover { background: rgba(255,255,255,.06); color:#fff; }
.dash-nav a.active { background: rgba(255,255,255,.1); color:#fff; }
.dash-main { padding: clamp(22px, 4vw, 40px); background: var(--bg-alt); }
.dash-topline { display:flex; justify-content:space-between; align-items:center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-topline h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.dash-topline p { margin-top: 4px; font-size: .96rem; }
.progress-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 26px; }
.progress-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 12px; }
.progress-head strong { color: var(--ink); }
.progress-head span { color: var(--muted); font-size: .9rem; }
.bar { height: 10px; background: var(--bg-sink); border-radius: 999px; overflow:hidden; }
.bar > i { display:block; height:100%; background: var(--accent); border-radius: 999px; }
.dash-section-title { display:flex; align-items:center; justify-content:space-between; margin: 30px 0 16px; }
.dash-section-title h2 { font-size: 1.25rem; }
.mod {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm);
  display:flex; flex-direction: column; transition: transform .12s ease, box-shadow .2s ease;
}
.mod:hover { box-shadow: var(--shadow-md); }
.mod-top { padding: 20px 22px 18px; }
.mod-cat { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing:.05em; color: var(--accent-ink); background: var(--accent-soft); display:inline-block; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.mod h3 { font-size: 1.08rem; margin-bottom: 6px; }
.mod p { font-size: .92rem; }
.mod-foot { margin-top:auto; padding: 14px 22px; border-top: 1px solid var(--line); display:flex; align-items:center; justify-content:space-between; font-size: .88rem; color: var(--muted); }
.mod-foot .done { color: var(--accent); font-weight: 600; display:inline-flex; gap:6px; align-items:center; }
.mod-foot .done svg { width: 15px; height:15px; }
.chip { font-size: .8rem; color: var(--muted); background: var(--bg-alt); border:1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

/* download list */
.dl-list { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.dl-row { display:flex; align-items:center; gap:14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dl-row:last-child { border-bottom:0; }
.dl-row .ico { flex:none; width:40px;height:40px;border-radius:10px;background:var(--bg-alt);color:var(--ink);display:flex;align-items:center;justify-content:center; }
.dl-row .ico svg{width:20px;height:20px;}
.dl-row .meta { flex:1; }
.dl-row .meta strong { display:block; color:var(--ink); font-size: .97rem; }
.dl-row .meta span { font-size:.85rem; color: var(--muted-2); }

/* =========================================================
   CLASSROOM — courses, curriculum, video player
   ========================================================= */

/* Course catalog grid */
.course-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 960px){ .course-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .course-grid { grid-template-columns: 1fr; } }

.course-card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; display:flex; flex-direction:column; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); }
.course-thumb {
  aspect-ratio: 16/9; background: var(--ink); position: relative; display:flex; align-items:center; justify-content:center;
  overflow: hidden;
}
.course-thumb .glyph { color:#fff; opacity:.9; }
.course-thumb .glyph svg { width: 46px; height: 46px; }
.course-thumb .tag { position:absolute; top:12px; left:12px; font-size:.72rem; font-weight:600; letter-spacing:.03em; text-transform:uppercase; color:#fff; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); padding:5px 10px; border-radius:999px; }
.course-thumb.grad-1 { background: linear-gradient(135deg,#0A101C,#1c2b45); }
.course-thumb.grad-2 { background: linear-gradient(135deg,#0A101C,#14352b); }
.course-thumb.grad-3 { background: linear-gradient(135deg,#0A101C,#2a2140); }
.course-thumb.grad-4 { background: linear-gradient(135deg,#0A101C,#3a2b16); }
.course-thumb.grad-5 { background: linear-gradient(135deg,#0A101C,#123244); }
.course-thumb.grad-6 { background: linear-gradient(135deg,#0A101C,#3a1f28); }
.course-cbody { padding: 20px 22px; display:flex; flex-direction:column; flex:1; }
.course-cbody .level { font-size:.76rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--accent-ink); margin-bottom:8px; }
.course-cbody h3 { font-size:1.12rem; margin-bottom:7px; }
.course-cbody p { font-size:.93rem; flex:1; }
.course-meta { display:flex; gap:16px; flex-wrap:wrap; margin-top:16px; font-size:.86rem; color:var(--muted); }
.course-meta span { display:inline-flex; align-items:center; gap:6px; }
.course-meta svg { width:15px; height:15px; color:var(--muted-2); }
.course-cbody .cprogress { margin-top:16px; }
.course-cbody .cprogress .bar { height:7px; }
.course-cbody .cprogress .lbl { font-size:.8rem; color:var(--muted-2); margin-top:7px; display:flex; justify-content:space-between; }
.course-cfoot { padding: 0 22px 22px; }

/* filter chips */
.chips-row { display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 28px; }
.chip-btn { border:1px solid var(--line-2); background:#fff; color:var(--ink-soft); font-weight:600; font-size:.9rem; padding:9px 16px; border-radius:999px; transition:.15s; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn.active { background: var(--ink); color:#fff; border-color: var(--ink); }

/* Course header (single course) */
.course-hero { background: var(--ink); color:#fff; }
.course-hero .wrap { padding-block: clamp(32px,5vw,56px); }
.course-hero .level { color:#9fb0c9; font-size:.8rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.course-hero h1 { color:#fff; margin:12px 0 12px; }
.course-hero p { color:#B9C1CE; max-width:640px; font-size:1.08rem; }
.course-hero .chm { display:flex; gap:22px; flex-wrap:wrap; margin-top:22px; color:#9fb0c9; font-size:.92rem; }
.course-hero .chm span { display:inline-flex; align-items:center; gap:7px; }
.course-hero .chm svg { width:16px; height:16px; }
.course-hero .cta-row { display:flex; gap:14px; flex-wrap:wrap; margin-top:26px; align-items:center; }
.course-hero .btn-primary { background:#fff; color:var(--ink); }
.course-hero .btn-primary:hover { background:#EEF1F4; }
.course-hero .barwrap { max-width:420px; margin-top:24px; }
.course-hero .barwrap .bar { height:8px; background: rgba(255,255,255,.15); }
.course-hero .barwrap .lbl { font-size:.85rem; color:#9fb0c9; margin-top:8px; }

/* Curriculum */
.curriculum { max-width: 820px; }
.module { border:1px solid var(--line); border-radius: var(--radius); background:#fff; margin-bottom:16px; overflow:hidden; }
.module-head { padding:18px 22px; background:var(--bg-alt); border-bottom:1px solid var(--line); }
.module-head h3 { font-size:1.08rem; }
.module-head .mmeta { font-size:.85rem; color:var(--muted-2); margin-top:3px; }
.lesson-row { display:flex; align-items:center; gap:14px; padding:15px 22px; border-bottom:1px solid var(--line); transition: background .12s; }
.lesson-row:last-child { border-bottom:0; }
.lesson-row:hover { background: var(--bg-alt); }
.lesson-row .ltype { flex:none; width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--bg-alt); color:var(--ink); border:1px solid var(--line); }
.lesson-row .ltype svg { width:18px; height:18px; }
.lesson-row.done .ltype { background: var(--accent-soft); color:var(--accent); border-color:#CDE7DD; }
.lesson-row .linfo { flex:1; min-width:0; }
.lesson-row .linfo strong { display:block; color:var(--ink); font-weight:600; font-size:.98rem; }
.lesson-row .linfo span { font-size:.83rem; color:var(--muted-2); display:inline-flex; gap:10px; }
.lesson-row .lmeta { font-size:.85rem; color:var(--muted); display:flex; align-items:center; gap:12px; flex:none; }
.type-badge { font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em; padding:3px 8px; border-radius:6px; background:var(--bg-alt); color:var(--muted); border:1px solid var(--line); }
.type-badge.video { background:#EAF0FB; color:#2a4c8f; border-color:#D6E1F5; }
.type-badge.lecture { background:#F1ECFA; color:#5a3fa0; border-color:#E2D8F3; }
.type-badge.reading { background:var(--bg-alt); color:var(--muted); }
.type-badge.template { background:var(--accent-soft); color:var(--accent-ink); border-color:#CDE7DD; }
.lesson-row .lock { color:var(--muted-2); }
.lesson-row .lock svg { width:16px; height:16px; }

/* Video player page */
.player-layout { display:grid; grid-template-columns: 1fr 340px; gap:28px; align-items:start; }
@media (max-width: 1000px){ .player-layout { grid-template-columns: 1fr; } }
.video-frame { aspect-ratio:16/9; width:100%; background:#000; border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); }
.video-frame iframe, .video-frame video { width:100%; height:100%; border:0; display:block; }
.video-placeholder { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:#fff; background: linear-gradient(135deg,#0A101C,#1c2b45); text-align:center; padding:24px; }
.video-placeholder .play { width:72px; height:72px; border-radius:999px; background:rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; }
.video-placeholder .play svg { width:30px; height:30px; color:#fff; margin-left:4px; }
.video-placeholder small { color:#9fb0c9; max-width:360px; font-size:.86rem; }
.vmeta { display:flex; gap:16px; flex-wrap:wrap; align-items:center; margin:18px 0 6px; color:var(--muted); font-size:.9rem; }
.vmeta .type-badge { font-size:.72rem; }
.player-tabs { display:flex; gap:6px; border-bottom:1px solid var(--line); margin:22px 0 18px; }
.player-tabs button { background:none; border:0; padding:12px 4px; margin-right:18px; font-weight:600; color:var(--muted); font-size:.98rem; border-bottom:2px solid transparent; }
.player-tabs button.active { color:var(--ink); border-bottom-color:var(--ink); }
.vpanel { display:none; }
.vpanel.active { display:block; }
.vpanel p { color:var(--muted); margin-bottom:16px; font-size:1.02rem; }
.vpanel ol, .vpanel ul { color:var(--muted); padding-left:20px; margin-bottom:16px; }
.vpanel li { margin-bottom:10px; }
.vpanel li strong { color:var(--ink); }
.vpanel h3 { font-size:1.2rem; margin:26px 0 10px; }
.vpanel h4 { font-size:1.02rem; margin:22px 0 8px; color:var(--ink); }
.vpanel .callout { background:var(--accent-soft); border:1px solid #CDE7DD; border-radius:12px; padding:16px 18px; margin:8px 0 20px; }
.vpanel .callout strong { color:var(--accent-ink); }
.vpanel blockquote { border-left:3px solid var(--line-2); margin:0 0 18px; padding:4px 0 4px 18px; color:var(--muted); font-style:italic; }

/* course sidebar curriculum (sticky) */
.course-side { position: sticky; top: 88px; }
@media (max-width: 1000px){ .course-side { position: static; } }
.side-curric { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; max-height: 70vh; overflow-y:auto; }
@media (max-width:1000px){ .side-curric { max-height:none; } }
.side-curric .sc-head { padding:16px 18px; border-bottom:1px solid var(--line); background:var(--bg-alt); }
.side-curric .sc-head strong { color:var(--ink); font-size:.98rem; }
.side-curric .sc-head span { display:block; font-size:.82rem; color:var(--muted-2); margin-top:3px; }
.sc-mod { font-size:.76rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--muted-2); padding:14px 18px 6px; }
.sc-lesson { display:flex; align-items:center; gap:11px; padding:11px 18px; border-top:1px solid var(--line); font-size:.9rem; color:var(--ink-soft); }
.sc-lesson:hover { background:var(--bg-alt); }
.sc-lesson.active { background:var(--accent-soft); }
.sc-lesson.active strong { color:var(--accent-ink); }
.sc-lesson .ic { flex:none; width:26px; height:26px; border-radius:7px; background:var(--bg-alt); color:var(--muted); display:flex; align-items:center; justify-content:center; border:1px solid var(--line); }
.sc-lesson.done .ic { background:var(--accent-soft); color:var(--accent); border-color:#CDE7DD; }
.sc-lesson .ic svg { width:14px; height:14px; }
.sc-lesson .t { flex:1; min-width:0; }
.sc-lesson .t strong { display:block; font-weight:500; font-size:.9rem; color:var(--ink-soft); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sc-lesson .t span { font-size:.78rem; color:var(--muted-2); }

.player-nav { display:flex; justify-content:space-between; gap:14px; margin-top:26px; padding-top:22px; border-top:1px solid var(--line); }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.mb-0{margin-bottom:0}
.hide-sm{}
@media (max-width:560px){ .hide-sm{display:none} }
.divider { height:1px; background: var(--line); border:0; margin: 0; }
.notice { background: var(--accent-soft); border:1px solid #CDE7DD; color: var(--accent-ink); border-radius: 12px; padding: 14px 18px; font-size: .92rem; display:flex; gap:10px; align-items:flex-start; }
.notice svg { width:18px;height:18px;flex:none;margin-top:1px; }
