/* OpenSkills — one light theme on purpose: the brand is white, very light grey, deep blue and teal. */
:root {
  /* Layout: left-aligned content on a 1200px grid; white and graph-paper mist bands alternate; cards only for things you open or download */
  --ink: #0C2340;
  --ink-2: #33445E;
  --muted: #56667E;
  --blue-deep: #064E96;
  --blue: #0866BC;
  --blue-bright: #2A9DD9;
  --teal: #0A96A0;
  --teal-ink: #077A83;
  --paper: #FFFFFF;
  --mist: #F4F7FB;
  --sky: #EAF3FC;
  --sky-2: #DCEBFA;
  --mint: #E5F5F4;
  --line: #DEE6F0;
  --line-2: #C8D5E4;
  --grid: rgba(8, 102, 188, 0.075);
  --ok: #0F7B53;
  --ok-bg: #E7F6EE;
  --bad: #B42318;
  --bad-bg: #FDEDEB;
  --warn: #7A4B00;
  --warn-bg: #FFF5E1;
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255, 255, 255, 0.84);
  --scrim: rgba(255, 255, 255, 0.9);
  --grad: linear-gradient(118deg, #064E96 0%, #0866BC 46%, #0A96A0 100%);
  --font-display: "Lexend", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Lexend", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --sh-1: 0 1px 2px rgba(12, 35, 64, 0.05), 0 4px 12px rgba(12, 35, 64, 0.05);
  --sh-2: 0 2px 6px rgba(12, 35, 64, 0.06), 0 18px 40px rgba(12, 35, 64, 0.11);
  --wrap: 1200px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (min-width: 640px) {
  :root {
    --gutter: max(32px, env(safe-area-inset-left, 0px));
    --gutter-r: max(32px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Base ---------- */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 70;
  background: var(--paper);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky-2); color: var(--ink); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue-deep); --fg: var(--on-dark); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid var(--bd); border-radius: var(--r-sm);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.1; letter-spacing: -0.005em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn, .btn:hover { color: var(--fg); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--blue-deep); box-shadow: 0 6px 18px rgba(6, 78, 150, 0.22); }
.btn-primary:hover { --bg: var(--blue); }
.btn-ghost { --bg: var(--paper); --fg: var(--ink); --bd: var(--line-2); }
.btn-ghost:hover { --bd: var(--blue-deep); --fg: var(--blue-deep); }
.btn-soft { --bg: var(--sky); --fg: var(--blue-deep); }
.btn-soft:hover { --bg: var(--sky-2); }
.btn-light { --bg: var(--paper); --fg: var(--blue-deep); box-shadow: 0 8px 22px rgba(4, 30, 64, 0.22); }
.btn-light:hover { --bg: var(--sky); }
.btn-outline-light { --bg: transparent; --fg: var(--on-dark); --bd: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { --bd: var(--on-dark); --bg: rgba(255, 255, 255, 0.08); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--scrim);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--line); box-shadow: 0 8px 28px rgba(12, 35, 64, 0.06); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; border-radius: 10px; flex: none; }
.brand-mark { width: 51px; height: 40px; }
.brand-word { width: 112px; height: 24px; margin-top: 4px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 0.97rem;
}
.nav-list a:hover { background: var(--mist); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--blue-deep); background: var(--sky); }
.header-cta { flex: none; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); cursor: pointer;
}
.menu-toggle .ico { width: 24px; height: 24px; }
.menu-toggle .i-close { display: none; }
.site-header.is-open .menu-toggle .i-open { display: none; }
.site-header.is-open .menu-toggle .i-close { display: block; }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px rgba(12, 35, 64, 0.1);
    padding: 8px var(--gutter-r) 20px var(--gutter);
  }
  .site-header.is-open .primary-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; max-width: var(--wrap); margin-inline: auto; }
  .nav-list a { width: 100%; min-height: 52px; font-size: 1.08rem; padding: 0 14px; }
}
@media (max-width: 520px) {
  .header-inner { gap: 10px; min-height: 64px; }
  .brand-mark { width: 41px; height: 32px; }
  .brand-word { width: 94px; height: 20px; }
  .header-cta { min-height: 44px; padding: 0 14px; font-size: 0.92rem; }
  .menu-toggle { width: 44px; height: 44px; }
}
@media (max-width: 370px) {
  .brand-word { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-mist { background: var(--mist); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head > div { max-width: 40rem; }
.section-head h2, .h2 { font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.65rem); font-weight: 650; letter-spacing: -0.028em; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 1.12rem; }
.graph-paper { position: relative; isolation: isolate; }
.graph-paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px); }
.hero + .section { padding-top: clamp(48px, 6vw, 88px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 78% 42%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 75% at 78% 42%, #000 10%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(720px, 90vw); aspect-ratio: 1; right: -12%; top: -18%;
  background: radial-gradient(circle, rgba(42, 157, 217, 0.17) 0%, rgba(10, 150, 160, 0.10) 42%, rgba(255, 255, 255, 0) 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(2.2rem, 4.7vw, 3.55rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.02;
}
.hero h1 .line { display: block; }
.hero .lead { margin-top: 26px; max-width: 33em; font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; list-style: none; font-weight: 500; font-size: 0.95rem; color: var(--ink-2); }
.trust-line li { display: inline-flex; align-items: center; gap: 8px; }
.trust-line .ico { color: var(--teal); width: 20px; height: 20px; stroke-width: 2.2; }

/* hero composition: a real moment from three courses */
.hero-visual { position: relative; height: 548px; font-size: 15px; max-width: 580px; justify-self: end; width: 100%; }
.hv-card { position: absolute; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-2); }
.hv-budget { top: 0; right: 0; width: 70%; padding: 16px 18px 15px; }
.hv-sheet { top: 162px; left: 0; width: 92%; padding: 16px 16px 14px; }
.hv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hv-tag { font: 600 0.8em/1.2 var(--font-display); color: var(--blue-deep); background: var(--sky); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.hv-tag.t2 { color: var(--teal-ink); background: var(--mint); }
.hv-step, .hv-amt { font-size: 0.8em; color: var(--muted); white-space: nowrap; }
.hv-amt b { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.15em; }
.fx { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; font: 500 0.86em/1.3 var(--font-mono); color: var(--ink); }
.fx-label { font-style: italic; color: var(--muted); font-family: Georgia, "Times New Roman", serif; padding-right: 10px; border-right: 1px solid var(--line); }
.mini-sheet { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.86em; font-variant-numeric: tabular-nums; }
.mini-sheet th, .mini-sheet td { border: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sheet thead th, .mini-sheet tbody th { background: var(--mist); color: var(--muted); font-weight: 600; font-size: 0.86em; text-align: center; padding: 4px; }
.mini-sheet .corner { background: var(--mist); }
.mini-sheet .h { font-weight: 600; color: var(--ink-2); background: var(--paper); }
.mini-sheet .n { text-align: right; }
.mini-sheet tr.tot td { font-weight: 600; }
.mini-sheet td.sel { position: relative; background: var(--mint); color: var(--teal-ink); box-shadow: inset 0 0 0 2px var(--teal); }
.hv-check { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-size: 0.84em; font-weight: 500; color: var(--ok); }
.hv-check .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.split { display: flex; gap: 3px; height: 14px; }
.split span { display: block; height: 100%; width: var(--w); border-radius: 4px; transform-origin: left center; }
.split .s1 { background: var(--blue-deep); border-radius: 999px 4px 4px 999px; }
.split .s2 { background: var(--blue-bright); }
.split .s3 { background: var(--teal); border-radius: 4px 999px 999px 4px; }
.split-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 11px; list-style: none; font-size: 0.8em; color: var(--muted); }
.split-legend li { display: flex; flex-direction: column; gap: 2px; }
.split-legend b { font: 600 1.18em/1.2 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.split-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.split-legend .d1 { background: var(--blue-deep); }
.split-legend .d2 { background: var(--blue-bright); }
.split-legend .d3 { background: var(--teal); }
.hv-cert { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 11px 18px 11px 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-2); }
.hv-cert .seal { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: var(--on-dark); }
.hv-cert .seal .ico { width: 24px; height: 24px; }
.hv-cert b { display: block; font: 600 0.95em/1.25 var(--font-display); color: var(--ink); }
.hv-cert small { display: block; font-size: 0.82em; color: var(--muted); }

.anim .hv-budget { animation: hv-in .7s cubic-bezier(.2, .7, .2, 1) .1s backwards; }
.anim .hv-sheet { animation: hv-in .7s cubic-bezier(.2, .7, .2, 1) .28s backwards; }
.anim .split span { animation: grow .8s cubic-bezier(.3, .7, .2, 1) backwards; }
.anim .split .s1 { animation-delay: .55s; }
.anim .split .s2 { animation-delay: .75s; }
.anim .split .s3 { animation-delay: .95s; }
.anim .mini-sheet .rv { animation: cell-in .4s ease backwards; }
.anim .mini-sheet tr:nth-child(2) .rv { animation-delay: .8s; }
.anim .mini-sheet tr:nth-child(3) .rv { animation-delay: .92s; }
.anim .mini-sheet tr:nth-child(4) .rv { animation-delay: 1.04s; }
.anim .mini-sheet tr:nth-child(5) .rv { animation-delay: 1.16s; }
.anim .mini-sheet td.sel { animation: sel-pulse .9s ease 1.3s backwards; }
.anim .hv-check { animation: fade-up .5s ease 2.05s backwards; }
.anim .hv-cert { animation: pop .6s cubic-bezier(.3, 1.4, .5, 1) 2.3s backwards; }
@keyframes hv-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes cell-in { from { opacity: 0; } }
@keyframes sel-pulse { from { box-shadow: inset 0 0 0 2px var(--teal), 0 0 0 0 rgba(10, 150, 160, .45); } 60% { box-shadow: inset 0 0 0 2px var(--teal), 0 0 0 8px rgba(10, 150, 160, 0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { height: auto; justify-self: stretch; max-width: 560px; display: flex; flex-direction: column; font-size: 14px; }
  .hv-budget, .hv-sheet, .hv-cert { position: relative; inset: auto; }
  .hv-budget { width: auto; margin-left: 14%; }
  .hv-sheet { width: auto; margin-right: 3%; margin-top: -10px; }
  .hv-cert { align-self: flex-end; margin-top: -22px; right: auto; }
  .hero h1 { font-size: clamp(2.2rem, 8.6vw, 3.55rem); }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .hero-visual { font-size: 12.5px; }
  .hv-budget { margin-left: 6%; }
  .mini-sheet th, .mini-sheet td { padding: 5px 5px; }
}

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cat-card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cat-card:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.cat-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--c, var(--blue-deep)); background: var(--c-bg, var(--sky)); }
.cat-icon .ico { width: 26px; height: 26px; }
.cat-card h3 { font-size: 1.3rem; margin-top: 6px; }
.cat-card p { color: var(--ink-2); }
.cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.cat-count { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } .cat-card { padding: 22px; } }

/* category colours */
.c-business { --c: #064E96; --c-bg: #E7F0FA; }
.c-finance { --c: #066F77; --c-bg: #E3F4F3; }
.c-technology { --c: #0866BC; --c-bg: #E6F1FC; }
.c-career { --c: #2C4EA8; --c-bg: #EAEFFB; }
.c-digital { --c: #0A6E9E; --c-bg: #E3F2F8; }
.c-entrepreneurship { --c: #0B7566; --c-bg: #E2F3EF; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .course-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.course-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.cc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; background: var(--mist); }
.cc-thumb svg { display: block; width: 100%; height: 100%; }
.badge-free {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 11px; border-radius: 999px; background: var(--paper); color: var(--teal-ink);
  font: 700 0.8rem/1.4 var(--font-display); letter-spacing: 0.01em; box-shadow: 0 2px 8px rgba(4, 30, 64, 0.16);
}
.cc-done {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font: 700 0.8rem/1.4 var(--font-display);
}
.cc-done .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.cc-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.cat-tag { align-self: flex-start; font: 600 0.82rem/1.3 var(--font-display); color: var(--c, var(--blue-deep)); background: var(--c-bg, var(--sky)); padding: 4px 10px; border-radius: 999px; }
.cc-title { font-size: 1.22rem; line-height: 1.22; }
.cc-title a { color: var(--ink); text-decoration: none; }
.cc-title a:hover { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1.5px; }
.cc-desc { color: var(--ink-2); font-size: 0.99rem; }
.meta-list { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; font-size: 0.92rem; color: var(--muted); }
.meta-list li { display: inline-flex; align-items: center; gap: 6px; }
.meta-list .ico { width: 17px; height: 17px; color: var(--teal-ink); }
.cc-foot { margin-top: auto; padding-top: 8px; display: grid; gap: 12px; }
.progress { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-deep), var(--teal)); transition: width .5s ease; }

/* ---------- How it works: three steps rising like the logo's bars ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; align-items: start; }
.step { position: relative; padding: 26px 26px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.step::before { content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 5px; border-radius: 0 0 6px 6px; background: var(--bar); }
.step:nth-child(1) { --bar: var(--blue-deep); margin-top: 72px; }
.step:nth-child(2) { --bar: var(--blue-bright); margin-top: 36px; }
.step:nth-child(3) { --bar: var(--teal); margin-top: 0; }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--blue-deep); font: 700 1.15rem/1 var(--font-display); }
.step h3 { margin-top: 18px; font-size: 1.3rem; }
.step p { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .step:nth-child(n) { margin-top: 0; }
}

/* ---------- Why OpenSkills ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.why-copy h2 { font-size: clamp(1.9rem, 1.3rem + 2.1vw, 2.85rem); font-weight: 650; letter-spacing: -0.03em; }
.why-copy p { margin-top: 20px; font-size: 1.14rem; color: var(--ink-2); max-width: 34em; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 26px 24px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.stat dd { font: 700 clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem)/1 var(--font-display); white-space: nowrap; letter-spacing: -0.035em; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.stat:nth-child(2) dd, .stat:nth-child(3) dd { color: var(--teal-ink); }
.stat dt { font-weight: 600; color: var(--ink); }
.stat .sub { display: block; font-weight: 400; color: var(--muted); font-size: 0.94rem; margin-top: 2px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .stats { gap: 10px; } .stat { padding: 20px 16px; } }

/* ---------- Mission band ---------- */
.mission { position: relative; overflow: hidden; isolation: isolate; background: var(--grad); color: var(--on-dark); }
.mission-inner { position: relative; padding-block: clamp(72px, 9vw, 128px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: center; }
.mission h2 { color: var(--on-dark); font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.mission p { margin-top: 22px; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.28rem); color: var(--on-dark-2); max-width: 32em; }
.mission .btn { margin-top: 32px; }
.mission-art { width: 100%; max-width: 380px; justify-self: end; color: var(--on-dark); opacity: 0.9; }
@media (max-width: 820px) { .mission-inner { grid-template-columns: minmax(0, 1fr); } .mission-art { display: none; } }

/* ---------- CTA band (inner pages) ---------- */
.cta-band { background: var(--sky); border-top: 1px solid var(--sky-2); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: clamp(44px, 5vw, 64px); }
.cta-inner h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: -0.025em; }
.cta-inner p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding-block: 64px 28px; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.footer-brand .brand { margin: 0; }
.footer-brand .tagline { margin-top: 16px; font: 600 1.12rem/1.35 var(--font-display); color: var(--ink); max-width: 18em; }
.footer-brand .note { margin-top: 10px; color: var(--muted); max-width: 26em; }
.site-footer h2 { font-size: 0.98rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; min-height: 34px; align-items: center; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--blue-deep); text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 22px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 11px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); color: var(--ink-2); text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.social a:hover { border-color: var(--blue-deep); color: var(--blue-deep); }
.social .ico { width: 18px; height: 18px; color: var(--blue-deep); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 6vw, 84px) clamp(40px, 5vw, 64px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
}
.page-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); font-weight: 700; letter-spacing: -0.038em; line-height: 1.02; max-width: 16em; }
.page-hero .lead { margin-top: 18px; max-width: 38em; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem); color: var(--ink-2); }

/* ---------- Courses page ---------- */
.search-block { margin-top: 30px; max-width: 640px; }
.search-block label { display: block; font: 600 1rem/1.3 var(--font-display); color: var(--ink); margin-bottom: 10px; }
.search-field { position: relative; }
.search-field .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%; min-height: 60px; padding: 0 18px 0 52px;
  border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--paper);
  font-size: 1.08rem; color: var(--ink); box-shadow: var(--sh-1);
}
.search-field input::placeholder { color: #64748A; }
.search-field input:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(42, 157, 217, 0.25); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--paper); color: var(--ink-2);
  font: 600 0.95rem/1 var(--font-display); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--blue-deep); color: var(--blue-deep); }
.chip[aria-pressed="true"] { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--on-dark); }
.chip .n { font-weight: 500; opacity: 0.75; font-variant-numeric: tabular-nums; }
.results-line { margin-bottom: 26px; color: var(--muted); font-size: 0.97rem; }
.empty {
  display: grid; justify-items: start; gap: 12px; padding: 40px; border: 1.5px dashed var(--line-2); border-radius: 20px; background: var(--mist);
}
.empty h2 { font-size: 1.35rem; }
.empty p { color: var(--ink-2); max-width: 36em; }

/* ---------- Course overview ---------- */
.course-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 64px); }
.ch-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.94rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.course-hero h1 { font-size: clamp(2.1rem, 1.45rem + 2.6vw, 3.3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.course-hero .lead { margin-top: 16px; font-size: 1.16rem; color: var(--ink-2); max-width: 36em; }
.course-hero .meta-list { margin-top: 20px; font-size: 0.98rem; color: var(--ink-2); }
.ch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.ch-progress { margin-top: 22px; max-width: 420px; }
.ch-thumb { border-radius: 22px; overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 16 / 9; max-width: 100%; }
.ch-thumb svg { display: block; width: 100%; height: 100%; }
.course-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); padding-block: clamp(40px, 5vw, 64px) clamp(64px, 7vw, 96px); align-items: start; }
.course-body h2 { font-size: 1.5rem; margin-bottom: 18px; }
.cb-main { display: grid; gap: 48px; min-width: 0; }
.objectives { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.objectives li { display: flex; gap: 12px; align-items: flex-start; }
.objectives .ico { color: var(--teal-ink); margin-top: 3px; stroke-width: 2.2; }
.module-list { list-style: none; display: grid; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); }
.module-list li + li { border-top: 1px solid var(--line); }
.module-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; text-decoration: none; color: var(--ink); }
.module-list a:hover { background: var(--mist); }
.module-list .k { display: block; font-size: 0.85rem; color: var(--muted); }
.module-list .t { display: block; font: 600 1.05rem/1.3 var(--font-display); }
.module-list .go { color: var(--muted); }
.status { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); color: var(--muted); font: 700 0.85rem/1 var(--font-display); background: var(--paper); }
.status.done { border-color: var(--teal); background: var(--teal); color: var(--on-dark); }
.status.done .ico { width: 16px; height: 16px; stroke-width: 3; }
.status.current { border-color: var(--blue-deep); color: var(--blue-deep); }
.cb-side { display: grid; gap: 18px; position: sticky; top: 96px; }
.side-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.side-card h2 { font-size: 1.12rem; margin-bottom: 14px; }
.facts { display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; font-size: 0.97rem; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; color: var(--ink); }
.side-card p { color: var(--ink-2); font-size: 0.97rem; }
.side-card .btn { margin-top: 16px; }
@media (max-width: 960px) {
  .ch-grid { grid-template-columns: minmax(0, 1fr); }
  .ch-thumb { max-width: 520px; order: -1; }
  .course-body { grid-template-columns: minmax(0, 1fr); }
  .cb-side { position: static; }
}
@media (max-width: 640px) { .objectives { grid-template-columns: minmax(0, 1fr); } .module-list a { padding: 14px 16px; gap: 12px; } }

/* ---------- Lesson player ---------- */
.lesson-top { background: var(--mist); border-bottom: 1px solid var(--line); }
.lt-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; min-height: 64px; padding-block: 10px; }
.lt-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.lt-back:hover { color: var(--blue-deep); }
.lt-title { font: 600 1rem/1.3 var(--font-display); color: var(--ink); margin-right: auto; }
.lt-progress { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--muted); min-width: min(280px, 100%); }
.lt-progress .bar { flex: 1; min-width: 120px; }
.lesson-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); padding-block: 36px clamp(64px, 7vw, 96px); align-items: start; }
.lesson-side { position: sticky; top: 92px; }
.lesson-side summary { list-style: none; cursor: default; font: 600 1rem/1.3 var(--font-display); color: var(--ink); padding: 0 0 12px; }
.lesson-side summary::-webkit-details-marker { display: none; }
.lesson-side .sum-meta { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.lesson-nav { list-style: none; display: grid; gap: 2px; }
.lesson-nav a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; }
.lesson-nav a:hover { background: var(--mist); color: var(--ink); }
.lesson-nav a[aria-current="step"] { background: var(--sky); color: var(--ink); }
.lesson-nav .k { display: block; font-size: 0.8rem; color: var(--muted); }
.lesson-nav .t { display: block; font: 500 0.97rem/1.3 var(--font-display); }
.lesson-nav .status { width: 26px; height: 26px; font-size: 0.78rem; }
.lesson { min-width: 0; max-width: 46rem; }
.lesson-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.95rem; color: var(--muted); }
.kind-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--sky); color: var(--blue-deep); font: 600 0.86rem/1.3 var(--font-display); }
.kind-pill .ico { width: 17px; height: 17px; }
.lesson h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.lesson-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.lesson-pager .btn { max-width: 100%; white-space: normal; }
.lesson-pager .next { margin-left: auto; }
@media (max-width: 960px) {
  .lesson-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .lesson-side { position: static; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
  .lesson-side summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; min-height: 56px; }
  .lesson-side summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); flex: none; transition: transform .2s; }
  .lesson-side details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
  .lesson-nav { padding: 0 10px 12px; }
}

/* lesson prose */
.prose { margin-top: 26px; font-size: 1.03rem; line-height: 1.72; color: var(--ink); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.45rem; margin-top: 1.9em; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.18rem; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.55em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--teal-ink); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose code, .f { font-family: var(--font-mono); font-size: 0.9em; background: var(--sky); color: var(--blue-deep); padding: 0.12em 0.4em; border-radius: 6px; white-space: nowrap; }
.prose p code, .prose li code, .prose dd code { white-space: normal; overflow-wrap: anywhere; }
.prose .lede { font-size: 1.16rem; color: var(--ink-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.t { width: 100%; border-collapse: collapse; font-size: 0.94rem; font-variant-numeric: tabular-nums; }
.t th, .t td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.t thead th { background: var(--mist); font: 600 0.9rem/1.3 var(--font-display); color: var(--ink-2); white-space: nowrap; }
.t tbody tr:last-child th, .t tbody tr:last-child td { border-bottom: 0; }
.t .num { text-align: right; white-space: nowrap; }
.t tbody th { font-weight: 500; }
.t tr.total td, .t tr.total th { font-weight: 600; background: var(--mist); }
.t .pos { color: var(--ok); }
.t .neg { color: var(--bad); }
.table-note { font-size: 0.92rem; color: var(--muted); margin-top: 0.6em; }
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 18px 20px; border-radius: 14px; background: var(--sky); }
.callout .ico { grid-row: span 2; color: var(--blue-deep); margin-top: 3px; }
.callout strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.callout p { color: var(--ink-2); }
.callout.tip { background: var(--mint); }
.callout.tip .ico { color: var(--teal-ink); }
.callout.warn { background: var(--warn-bg); }
.callout.warn .ico { color: var(--warn); }
.terms { display: grid; gap: 12px; }
.terms div { padding: 14px 18px; border-left: 3px solid var(--teal); background: var(--mist); border-radius: 0 12px 12px 0; }
.terms dt { font: 600 1.02rem/1.3 var(--font-display); }
.terms dd { color: var(--ink-2); margin-top: 4px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.compare > div { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); }
.compare .before { background: var(--bad-bg); border-color: #F5CBC6; }
.compare .after { background: var(--ok-bg); border-color: #BFE5D2; }
.compare b { display: block; font: 600 0.9rem/1.3 var(--font-display); margin-bottom: 6px; }
.compare .before b { color: var(--bad); }
.compare .after b { color: var(--ok); }
@media (max-width: 640px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.sample { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--mist); font-size: 1rem; }
.sample p + p { margin-top: 0.7em; }
.sample .label { font: 600 0.88rem/1.3 var(--font-display); color: var(--muted); }
.eq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 20px; border-radius: 14px; background: var(--mist); font: 600 1.15rem/1.3 var(--font-display); text-align: center; }
.eq span { padding: 8px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.eq i { font-style: normal; color: var(--teal-ink); font-size: 1.4rem; }
details.reveal { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
details.reveal > summary { cursor: pointer; padding: 14px 18px; font: 600 1rem/1.3 var(--font-display); color: var(--blue-deep); min-height: 52px; display: flex; align-items: center; }
details.reveal > div { padding: 0 18px 18px; }
details.reveal > div > * + * { margin-top: 0.8em; }

/* practice checklist */
.checklist { list-style: none; padding: 0 !important; display: grid; gap: 10px; counter-reset: step; }
.checklist li { margin: 0 !important; }
.checklist label { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; transition: background-color .15s, border-color .15s; }
.checklist label:hover { border-color: var(--line-2); }
.checklist input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal-ink); cursor: pointer; }
.checklist .n { counter-increment: step; font: 700 0.9rem/1.6 var(--font-display); color: var(--muted); min-width: 1.2em; }
.checklist .n::before { content: counter(step); }
.checklist input:checked ~ .txt { color: var(--muted); }
.checklist li:has(input:checked) label { background: var(--mist); }
.check-count { font-size: 0.95rem; color: var(--muted); }
.resource-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--mist); }
.resource-inline p { font-size: 1rem; color: var(--ink-2); }
.resource-inline strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); }

/* quiz */
.quiz { display: grid; gap: 18px; margin-top: 26px; }
.q { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px 22px; margin: 0; background: var(--paper); min-width: 0; }
.q legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 600 1.1rem/1.4 var(--font-display); color: var(--ink); }
.q legend .qn { display: block; font: 400 0.88rem/1.4 var(--font-body); color: var(--muted); margin-bottom: 4px; }
.q .opts { clear: both; display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.opt:hover { border-color: var(--line-2); background: var(--mist); }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue-deep); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--blue-deep); background: var(--sky); }
.opt .mark { display: none; font: 700 0.82rem/1 var(--font-display); white-space: nowrap; }
.quiz.checked .opt { cursor: default; }
.quiz.checked .opt:hover { background: transparent; border-color: var(--line); }
.quiz.checked .opt.is-right { border-color: var(--ok); background: var(--ok-bg); }
.quiz.checked .opt.is-wrong { border-color: var(--bad); background: var(--bad-bg); }
.quiz.checked .opt.is-right .mark, .quiz.checked .opt.is-wrong .mark { display: inline-flex; align-items: center; gap: 4px; }
.opt.is-right .mark { color: var(--ok); }
.opt.is-wrong .mark { color: var(--bad); }
.q-explain { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--mist); color: var(--ink-2); font-size: 0.98rem; }
.q-explain b { color: var(--ink); }
.q.unanswered { border-color: var(--bad); }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.quiz-actions p { color: var(--muted); font-size: 0.97rem; }
.quiz-error { color: var(--bad); font-weight: 500; }
.result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 22px; align-items: center; padding: 24px; border-radius: 18px; margin-top: 26px; }
.result.pass { background: var(--ok-bg); border: 1px solid #BFE5D2; }
.result.fail { background: var(--warn-bg); border: 1px solid #F2D9A6; }
.result .score { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--paper); font: 700 1.5rem/1 var(--font-display); color: var(--ink); box-shadow: inset 0 0 0 5px var(--ring, var(--ok)); font-variant-numeric: tabular-nums; }
.result.fail .score { --ring: #E3A33C; }
.result h2 { font-size: 1.35rem; }
.result p { margin-top: 6px; color: var(--ink-2); }
.result .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .result { grid-template-columns: minmax(0, 1fr); } }

/* completion + certificate */
.done-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 22px 24px; border-radius: 18px; background: var(--grad); color: var(--on-dark); margin-top: 26px; }
.done-banner .seal { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, 0.16); }
.done-banner .seal .ico { width: 34px; height: 34px; }
.done-banner h2 { color: var(--on-dark); font-size: 1.35rem; }
.done-banner p { color: var(--on-dark-2); margin-top: 4px; }
.takeaways { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.takeaways li { display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; }
.takeaways .ico { color: var(--teal-ink); margin-top: 4px; stroke-width: 2.2; }
.cert-panel { margin-top: 36px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--mist); }
.cert-panel h2 { font-size: 1.35rem; }
.cert-panel > p { margin-top: 8px; color: var(--ink-2); }
.cert-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 18px; }
.cert-form .field { flex: 1 1 260px; margin: 0; }
.cert-preview { margin-top: 20px; display: grid; gap: 14px; justify-items: start; }
.cert-preview canvas { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--sh-2); background: var(--paper); }
.locked { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: start; }
.locked .ico { grid-row: span 3; width: 28px; height: 28px; color: var(--muted); margin-top: 2px; }
.locked .btn { justify-self: start; margin-top: 12px; }
.next-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mini-course { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--paper); }
.mini-course:hover { border-color: var(--line-2); box-shadow: var(--sh-1); color: var(--ink); }
.mini-course .mt { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; max-width: 100%; }
.mini-course .mt svg { display: block; width: 100%; height: 100%; }
.mini-course b { display: block; font: 600 1rem/1.3 var(--font-display); }
.mini-course small { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 640px) { .next-courses { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Resources ---------- */
.res-cat { font-size: 0.84rem; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.cat-card .btn-soft { --bg: var(--c-bg); --fg: var(--c); }
.cat-card .btn-soft:hover { --bg: var(--c-bg); box-shadow: inset 0 0 0 1.5px var(--c); }
[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.belief .belief-intro { margin: 0 0 18px; color: var(--muted); font-size: 1.05rem; max-width: none; }
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .res-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.res-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.res-card:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.res-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.file-glyph { position: relative; width: 52px; height: 64px; flex: none; }
.file-glyph svg { width: 100%; height: 100%; display: block; }
.file-glyph span { position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%); font: 700 0.62rem/1 var(--font-display); letter-spacing: 0.04em; color: var(--on-dark); background: var(--fc); padding: 3px 5px; border-radius: 4px; }
.res-card h3 { font-size: 1.18rem; }
.res-card p { color: var(--ink-2); font-size: 0.99rem; }
.res-list { list-style: none; display: grid; gap: 6px; font-size: 0.93rem; color: var(--ink-2); }
.res-list li { display: flex; gap: 8px; align-items: flex-start; }
.res-list .ico { width: 17px; height: 17px; color: var(--teal-ink); margin-top: 3px; stroke-width: 2.2; }
.res-foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.res-foot small { color: var(--muted); font-size: 0.88rem; }
.res-card .link-sm, .link-sm { font-size: 0.92rem; font-weight: 500; }
.res-related { margin-top: -2px; }
.res-teaser { margin-top: 28px; }

/* ---------- About ---------- */
.belief { padding-block: clamp(56px, 7vw, 96px); }
.belief blockquote { max-width: 22em; font: 650 clamp(1.8rem, 1.2rem + 2.6vw, 3.1rem)/1.12 var(--font-display); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.belief blockquote::before { content: ""; display: block; width: 72px; height: 6px; border-radius: 6px; background: var(--grad); margin-bottom: 28px; }
.belief p { margin-top: 24px; max-width: 38em; font-size: 1.14rem; color: var(--ink-2); }
.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mv { padding: 32px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.mv .ico { width: 30px; height: 30px; color: var(--teal-ink); }
.mv h2 { font-size: 1.5rem; margin-top: 16px; }
.mv p { margin-top: 12px; font-size: 1.1rem; color: var(--ink-2); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; }
.values li { display: grid; gap: 10px; align-content: start; }
.values .vi { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--blue-deep); }
.values li:nth-child(even) .vi { background: var(--mint); color: var(--teal-ink); }
.values h3 { font-size: 1.2rem; margin-top: 6px; }
.values p { color: var(--ink-2); }
.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.impact { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: var(--paper); }
.impact.has-value { border-style: solid; border-color: var(--line); }
.impact .ico { color: var(--blue-deep); width: 24px; height: 24px; }
.impact h3 { font-size: 1.05rem; font-weight: 600; }
.impact .val { font: 700 2.2rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.pending { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--mist); color: var(--muted); font: 600 0.85rem/1.3 var(--font-display); }
.impact-note { margin-top: 20px; max-width: 46em; color: var(--ink-2); }
.involve { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.involve-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.involve-card .ico { width: 26px; height: 26px; color: var(--teal-ink); }
.involve-card h3 { font-size: 1.12rem; margin-top: 4px; }
.involve-card p { color: var(--ink-2); font-size: 0.98rem; }
.involve-card .btn { margin-top: auto; align-self: flex-start; }
.share-fallback { display: flex; gap: 8px; margin-top: 8px; }
.share-fallback input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 0.9rem; }
@media (max-width: 1000px) { .values, .impact-grid, .involve { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mv-grid { grid-template-columns: minmax(0, 1fr); } .mv { padding: 24px; } }
@media (max-width: 520px) { .values, .involve { grid-template-columns: minmax(0, 1fr); } .impact-grid { gap: 10px; } .impact { padding: 18px 16px; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: 1.4rem; margin-bottom: 14px; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 16px 4px; cursor: pointer; font: 600 1.1rem/1.35 var(--font-display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-deep); }
.faq summary .ico { color: var(--muted); transition: transform .25s ease; }
.faq[open] summary .ico { transform: rotate(180deg); color: var(--blue-deep); }
.faq-a { padding: 0 4px 22px; color: var(--ink-2); max-width: 44em; }
.faq-a > * + * { margin-top: 0.8em; }
.faq-a ul { padding-left: 1.3em; display: grid; gap: 6px; }
.aside-card { position: sticky; top: 96px; padding: 26px; border-radius: 20px; background: var(--mist); border: 1px solid var(--line); }
.aside-card h2 { font-size: 1.25rem; }
.aside-card p { margin-top: 10px; color: var(--ink-2); }
.aside-card .btn { margin-top: 18px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .aside-card { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-card { padding: clamp(24px, 3vw, 36px); border-radius: 22px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--sh-1); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font: 600 0.98rem/1.3 var(--font-display); color: var(--ink); }
.field .hint { font-size: 0.9rem; color: var(--muted); margin-top: -4px; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2356667E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(42, 157, 217, 0.25); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field-error { display: flex; gap: 6px; align-items: center; color: var(--bad); font-size: 0.9rem; font-weight: 500; }
.field-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.form-actions p { color: var(--muted); font-size: 0.94rem; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.err { background: var(--bad-bg); color: var(--bad); }
.form-status.info { background: var(--warn-bg); color: var(--warn); }
.success { display: grid; justify-items: start; gap: 12px; }
.success .seal { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ok-bg); color: var(--ok); }
.success .seal .ico { width: 30px; height: 30px; stroke-width: 2.4; }
.success h2 { font-size: 1.5rem; }
.success p { color: var(--ink-2); }
.contact-aside { display: grid; gap: 18px; }
.reason-list { list-style: none; display: grid; gap: 16px; margin-top: 14px; }
.reason-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
.reason-list .ico { grid-row: span 2; color: var(--teal-ink); margin-top: 3px; }
.reason-list b { font-family: var(--font-display); font-weight: 600; }
.reason-list span { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Legal ---------- */
.legal { max-width: 46rem; }
.legal .updated { color: var(--muted); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal ul { margin-top: 0.9em; color: var(--ink-2); }
.legal ul { padding-left: 1.3em; display: grid; gap: 6px; }

/* ---------- Not found ---------- */
.nf { display: grid; justify-items: start; gap: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; max-width: min(92vw, 520px);
  padding: 14px 18px; border-radius: 14px; background: var(--ink); color: var(--on-dark); font-weight: 500; box-shadow: 0 16px 40px rgba(4, 20, 40, 0.3);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { color: #7FE0D8; }

/* ---------- Scroll motion: elements are visible at rest; entering ones settle into place ---------- */
.settle { animation: settle .7s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--d, 0s); }
@keyframes settle { from { opacity: 0.35; transform: translateY(22px); } to { opacity: 1; transform: none; } }

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

@media print {
  .site-header, .site-footer, .cta-band, .lesson-side, .lesson-pager, .skip-link, .toast { display: none !important; }
  body { font-size: 11pt; }
}
