/* ============================================================
   Upskillia — shared site components & layout
   Depends on tokens.css. Vanilla CSS, theme-aware via var()s.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--violet-tint); color: var(--violet-tint-text); }

/* ---------- i18n: show one language at a time ---------- */
html[data-lang="es"] .en { display: none !important; }
html[data-lang="en"] .es { display: none !important; }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-wide { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--sp-section); padding-bottom: var(--sp-section); }
.section-sm { padding-top: clamp(48px,7vw,80px); padding-bottom: clamp(48px,7vw,80px); }
.band-navy { background: var(--navy); color: var(--on-dark); }
[data-screen-label="Home hero"] .hide-sm img { height: 300px; max-width: 100%; opacity: .96; }
.band-paper { background: var(--canvas); }
.band-card { background: var(--card); }

.eyebrow { font: var(--w-semibold) var(--overline-size)/1.4 var(--font-sans); letter-spacing: var(--overline-ls); text-transform: uppercase; color: var(--muted); display: block; }
.band-navy .eyebrow { color: var(--on-dark-soft); }
.eyebrow-violet { color: var(--violet); }

.stack > * + * { margin-top: var(--sp-4); }
.lede { font-size: var(--body-lg-size); line-height: 1.6; color: var(--muted); }
.band-navy .lede { color: var(--on-dark-soft); }
.measure { max-width: 620px; }
.measure-sm { max-width: 480px; }
.center { text-align: center; }
.center-x { margin-left: auto; margin-right: auto; }

/* ---------- Heading → content gap (tweakable via CSS vars on index.html) ---------- */
:root {
  --tweak-h-gap-sm:    28px;   /* h2 → immediately-following text          */
  --tweak-h-gap-lg:    64px;   /* h2 / lede / header row → grid or cards   */
  --tweak-eyebrow-gap: 20px;   /* eyebrow label → heading                  */
}
/* Small gaps: mb-3 (12px) and mb-4 (16px) on headings are too tight */
.section h2.mb-3, .section h2.mb-4,
.section-sm h2.mb-3, .section-sm h2.mb-4  { margin-bottom: var(--tweak-h-gap-sm) !important; }
/* Large gaps: heading / lede / flex header row → grid or big block */
.section h2.mb-12, .section .lede.mb-12, .section .eyebrow.mb-12, .section .flex.mb-12,
.section-sm h2.mb-12, .section-sm .flex.mb-12                     { margin-bottom: var(--tweak-h-gap-lg)  !important; }
/* Eyebrow → heading */
.section .eyebrow.mb-4, .section .eyebrow.mb-6,
.section-sm .eyebrow.mb-4                                         { margin-bottom: var(--tweak-eyebrow-gap) !important; }

/* ---------- Headings ---------- */
.display { font-weight: var(--w-bold); font-size: clamp(34px,5vw,52px); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.band-navy .display, .display.on-dark { color: var(--paper); }
.h-light { font-weight: var(--w-light); font-size: clamp(32px,5vw,52px); line-height: 1.14; letter-spacing: -.01em; }
.h-light b { font-weight: var(--w-bold); }
.h1 { font-weight: var(--w-bold); font-size: clamp(28px,4vw,40px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.h2 { font-weight: var(--w-bold); font-size: clamp(26px,4vw,34px); line-height: 1.15; letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.h3 { font-weight: var(--w-semibold); font-size: 20px; line-height: 1.3; color: var(--ink); }
.h4 { font-weight: var(--w-semibold); font-size: 17px; line-height: 1.35; color: var(--ink); }
.band-navy .h1, .band-navy .h2, .band-navy .h3, .band-navy .h4 { color: var(--paper); }
.muted { color: var(--muted); }
.on-dark { color: var(--paper); }
.on-dark-soft { color: var(--on-dark-soft); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: var(--w-semibold); cursor: pointer; border: none;
  white-space: nowrap; transition: all var(--ease-micro); height: 40px; padding: 0 20px;
  font-size: 14px; border-radius: var(--r-sm); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: var(--r-xs); }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 16px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-press); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--mist); }
.btn-secondary:hover { border-color: var(--violet); color: var(--violet); }
.btn-ghost { background: var(--ghost-fill); color: var(--navy); }
.btn-ghost:hover { background: var(--violet-tint); color: var(--violet-tint-text); }
.on-dark-btns .btn-secondary, .btn-secondary.on-dark { color: var(--paper); border-color: rgba(226,232,240,.3); }
.on-dark-btns .btn-secondary:hover, .btn-secondary.on-dark:hover { border-color: var(--paper); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: var(--w-bold); letter-spacing: .04em; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.badge-violet { background: var(--violet-tint); color: var(--violet-tint-text); }
.badge-navy { background: var(--navy-tint); color: var(--navy); }
html[data-theme="dark"] .badge-navy { color: var(--paper); }
.badge-green { background: var(--ok-tint); color: var(--ok-text); }
.badge-green .dot { background: var(--ok); }
.badge-red { background: var(--no-tint); color: var(--no-text); }
.badge-red .dot { background: var(--no); }
.badge-outline { background: transparent; border: 1px solid var(--mist); color: var(--muted); font-weight: var(--w-semibold); }

/* ---------- Tag / chip ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-xs);
  font-size: 11.5px; font-weight: var(--w-semibold); letter-spacing: .02em; background: var(--violet-tint); color: var(--violet-tint-text); text-transform: uppercase; }
.tag-muted { background: var(--ghost-fill); color: var(--muted); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--mist); border-radius: var(--r-lg); padding: 32px; }
.card-pad-sm { padding: 24px; }
.card-xl { border-radius: var(--r-xl); }
.card-hover { transition: box-shadow var(--ease-micro), transform var(--ease-micro), background var(--ease-micro); }
.card-hover:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.icon-tile { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--violet-tint); color: var(--violet);
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile-navy { background: var(--navy-tint); color: var(--navy); }
html[data-theme="dark"] .icon-tile-navy { color: var(--paper); }
.band-navy .icon-tile { background: rgba(61,161,255,.2); color: var(--violet-on-dark); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px,5vw,64px); align-items: center; }
.split-65 { grid-template-columns: 1.15fr .85fr; }

/* ---------- Icons ---------- */
.ic { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-16 { width: 16px; height: 16px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-28 { width: 28px; height: 28px; }

/* ---------- Inputs / forms ---------- */
.field { display: block; }
.field-label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: var(--w-semibold); margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 16px; border-radius: var(--r-sm);
  font-family: var(--font-sans); font-size: 16px; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--mist); outline: none; transition: border-color var(--ease-micro), box-shadow var(--ease-micro); }
.textarea { height: auto; min-height: 120px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6B82' 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 14px center; padding-right: 40px; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .7; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(61,161,255,.12); }
.input.error { border-color: var(--no); }
.field-error { font-size: 12px; color: var(--no-text); margin-top: 6px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.checkbox-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--violet); flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; }
.site-header nav { height: 60px; background: var(--nav-bg); backdrop-filter: var(--nav-blur); -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--mist); display: flex; align-items: center; gap: 0; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { height: 22px; width: auto; }
.brand-name { font-weight: var(--w-semibold); font-size: 19px; letter-spacing: -.015em; color: var(--ink); }
.nav-links { display: flex; gap: 26px; margin-left: 36px; }
.nav-links a { position: relative; font-size: 13.5px; font-weight: var(--w-medium); color: var(--muted); cursor: pointer; padding: 4px 0; transition: color var(--ease-micro); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-textlink { font-size: 13.5px; font-weight: var(--w-medium); color: var(--muted); cursor: pointer; }
.nav-textlink:hover { color: var(--ink); }

.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--mist); border-radius: var(--r-pill); padding: 2px; background: var(--card); }
.lang-switch button { border: none; background: transparent; cursor: pointer; font-family: var(--font-sans); font-size: 12px; font-weight: var(--w-semibold); color: var(--muted); padding: 4px 9px; border-radius: var(--r-pill); transition: all var(--ease-micro); }
.lang-switch button.on { background: var(--btn); color: #fff; }
.theme-toggle { width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--mist); background: var(--card); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all var(--ease-micro); }
.theme-toggle:hover { color: var(--ink); border-color: var(--violet); }
.theme-toggle .ic { width: 18px; height: 18px; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }

.nav-burger { display: none; margin-left: auto; background: none; border: none; color: var(--ink); cursor: pointer; padding: 4px; }
.nav-sheet { display: none; background: var(--canvas); border-bottom: 1px solid var(--mist); padding: 8px var(--gutter) 24px; }
.nav-sheet.open { display: block; }
.nav-sheet a { display: block; padding: 14px 0; font-size: 18px; font-weight: var(--w-semibold); color: var(--ink); border-bottom: 1px solid var(--mist); }
.nav-sheet-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.nav-sheet-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); }
.footer-inner { padding: clamp(56px,8vw,96px) 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .brand-name { color: var(--paper); }
.footer-mission { margin-top: 18px; max-width: 260px; font-size: 14.5px; line-height: 1.6; color: var(--on-dark-soft); }
.footer-col h5 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: var(--w-semibold); color: var(--on-dark-soft); margin: 0 0 14px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--paper); opacity: .92; }
.footer-col a:hover { opacity: 1; color: var(--violet-on-dark); }
.footer-socials { display: flex; gap: 12px; margin-top: 22px; }
.footer-socials a { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--hairline-on-dark); display: inline-flex; align-items: center; justify-content: center; color: var(--on-dark-soft); transition: all var(--ease-micro); }
.footer-socials a:hover { color: var(--paper); border-color: var(--paper); }
.footer-socials .ic { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--hairline-on-dark); font-size: 13px; color: var(--on-dark-soft); }
.footer-lang { display: inline-flex; align-items: center; border: 1px solid var(--hairline-on-dark); border-radius: var(--r-pill); padding: 2px; }
.footer-lang button { border: none; background: transparent; cursor: pointer; font-family: var(--font-sans); font-size: 12px; font-weight: var(--w-semibold); color: var(--on-dark-soft); padding: 4px 9px; border-radius: var(--r-pill); }
.footer-lang button.on { background: var(--btn); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { padding-bottom: var(--sp-section); }
.cta-inner { background: var(--navy); border-radius: var(--r-xl); padding: clamp(40px,6vw,72px); text-align: center; }
.cta-inner .h2 { color: var(--paper); }
.cta-form { display: flex; gap: 12px; max-width: 460px; margin: 28px auto 0; flex-wrap: wrap; justify-content: center; }
.cta-form .input { flex: 1; min-width: 220px; }

/* ---------- Stats ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.stat-num { font-size: clamp(34px,5vw,46px); font-weight: var(--w-bold); letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.band-navy .stat-num { color: var(--paper); }
.stat-label { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.band-navy .stat-label { color: var(--on-dark-soft); }
.stat-divider { width: 1px; height: 34px; background: var(--hairline-on-dark); }

/* ---------- Numbered steps ---------- */
.step-num { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--violet-tint); color: var(--violet-tint-text);
  display: inline-flex; align-items: center; justify-content: center; font-weight: var(--w-bold); font-size: 16px; flex: none; }
.band-navy .step-num { background: rgba(61,161,255,.2); color: var(--violet-on-dark); }

/* ---------- Quote / testimonial ---------- */
.quote { font-weight: var(--w-light); font-size: clamp(22px,3vw,30px); line-height: 1.4; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.band-navy .quote { color: var(--paper); }
.quote b { font-weight: var(--w-semibold); color: var(--violet); }
.band-navy .quote b { color: var(--violet-on-dark); }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--violet-tint); }
.avatar-init { display: inline-flex; align-items: center; justify-content: center; font-weight: var(--w-bold); color: var(--violet-tint-text); font-size: 17px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--violet); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--ink); }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--mist); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--mist); }
.acc-head { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-sans);
  font-size: 16px; font-weight: var(--w-semibold); color: var(--ink); }
.acc-head .chev { transition: transform var(--ease-micro); color: var(--muted); flex: none; }
.acc-item.open .acc-head .chev { transform: rotate(180deg); color: var(--violet); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-body-inner { padding: 0 24px 22px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Tabs / segmented toggle ---------- */
.seg { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--mist); border-radius: var(--r-pill); padding: 4px; }
.band-navy .seg { background: rgba(255,255,255,.06); border-color: var(--hairline-on-dark); }
.seg button { border: none; cursor: pointer; font-family: var(--font-sans); font-size: 13.5px; font-weight: var(--w-semibold);
  padding: 8px 18px; border-radius: var(--r-pill); background: transparent; color: var(--muted); transition: all var(--ease-micro); }
.seg button.on { background: var(--btn); color: #fff; }
.band-navy .seg button { color: var(--on-dark-soft); }
.band-navy .seg button.on { color: #fff; }

.filterbar { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--mist); background: var(--card); color: var(--muted); font-size: 13.5px; font-weight: var(--w-medium); cursor: pointer; transition: all var(--ease-micro); }
.chip:hover { border-color: var(--violet); color: var(--ink); }
.chip.on { background: var(--navy); color: var(--paper); border-color: var(--navy); }
html[data-theme="dark"] .chip.on { background: var(--violet); border-color: var(--violet); }

/* ---------- Thumbnails (course/article) ---------- */
.thumb { aspect-ratio: 16/10; border-radius: var(--r-md); position: relative; overflow: hidden;
  background: var(--navy); display: flex; align-items: center; justify-content: center; }
.thumb .mark { height: 56%; opacity: .9; }
.thumb-violet { background: linear-gradient(135deg, #1C7FE5, #10161C); }
.thumb-label { position: absolute; left: 14px; top: 14px; }

/* ---------- Course / article cards ---------- */
.course-card { background: var(--card); border: 1px solid var(--mist); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--ease-micro), transform var(--ease-micro); }
.course-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.course-card .thumb { border-radius: 0; }
.course-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); align-items: center; }
.course-meta .mi { display: inline-flex; align-items: center; gap: 5px; }
.course-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--mist); }
.price { font-size: 20px; font-weight: var(--w-bold); color: var(--ink); }
.price small { font-size: 13px; font-weight: var(--w-medium); color: var(--muted); }

/* ---------- Star rating ---------- */
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--violet); }
.stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.rating-text { font-size: 13px; color: var(--muted); font-weight: var(--w-medium); }

/* ---------- Category tile ---------- */
.cat-tile { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--mist); border-radius: var(--r-lg); background: var(--card); cursor: pointer; transition: all var(--ease-micro); }
.cat-tile:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.cat-count { font-size: 13px; color: var(--muted); }

/* ---------- Sticky enroll card ---------- */
.sticky-card { position: sticky; top: 84px; }

/* ---------- Pricing tier ---------- */
.tier { background: var(--card); border: 1px solid var(--mist); border-radius: var(--r-xl); padding: 36px; display: flex; flex-direction: column; }
.tier.featured { background: var(--navy); color: var(--on-dark); border: none; transform: scale(1.03); }
.tier-name { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: var(--w-semibold); color: var(--muted); }
.tier.featured .tier-name { color: var(--on-dark-soft); }
.tier-price { font-size: 44px; font-weight: var(--w-bold); letter-spacing: -.02em; margin: 14px 0 4px; color: var(--ink); }
.tier.featured .tier-price { color: var(--paper); }
.tier-price small { font-size: 14px; font-weight: var(--w-medium); color: var(--muted); }
.tier.featured .tier-price small { color: var(--on-dark-soft); }
.tier-blurb { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 0 0 22px; }
.tier.featured .tier-blurb { color: var(--on-dark-soft); }
.feat-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.feat-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.tier.featured .feat-list li { color: var(--paper); }
.feat-list .ic { width: 16px; height: 16px; color: var(--violet); margin-top: 3px; stroke-width: 2.5; }
.tier.featured .feat-list .ic { color: var(--violet-on-dark); }

/* ---------- Comparison table ---------- */
.cmp-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--mist); border-radius: var(--r-lg); overflow: hidden; }
.cmp-table th, .cmp-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--mist); font-size: 14.5px; }
.cmp-table thead th { font-weight: var(--w-bold); color: var(--ink); font-size: 15px; }
.cmp-table td.col-feat { color: var(--muted); }
.cmp-table td.center, .cmp-table th.center { text-align: center; }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-yes { color: var(--ok); }
.cmp-no { color: var(--muted); opacity: .4; }
.cmp-table .ic { width: 18px; height: 18px; margin: 0 auto; }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px,5vw,56px); }
.logo-strip .client { font-weight: var(--w-bold); font-size: 19px; letter-spacing: -.01em; color: var(--muted); opacity: .7; }
.band-navy .logo-strip .client { color: var(--on-dark-soft); }

/* ---------- Dual-path home cards ---------- */
.path-card { border-radius: var(--r-xl); padding: clamp(32px,4vw,48px); display: flex; flex-direction: column; min-height: 320px; transition: transform var(--ease-micro), box-shadow var(--ease-micro); }
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.path-teams { background: var(--navy); color: var(--on-dark); }
.path-you { background: var(--card); border: 1px solid var(--mist); color: var(--ink); }

/* ---------- Certificate visual ---------- */
.certificate { background: var(--card); border: 1px solid var(--mist); border-radius: var(--r-lg); padding: clamp(28px,4vw,48px); position: relative; overflow: hidden; }
.certificate::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px;
  background: url('../assets/logos/symbol-navy.png') no-repeat center/contain; opacity: .05; pointer-events: none; }
html[data-theme="dark"] .certificate::after { background-image: url('../assets/logos/symbol-white.png'); opacity: .06; }
.cert-rule { height: 4px; width: 56px; background: var(--violet); border-radius: var(--r-pill); }

/* ---------- Verify result ---------- */
.verify-result { border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--mist); }
.verify-valid { border-color: var(--ok); background: var(--ok-tint); }
.verify-invalid { border-color: var(--no); background: var(--no-tint); }
.is-hidden { display: none !important; }

/* ---------- Auth split ---------- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 60px); }
.auth-panel { background: var(--navy); color: var(--on-dark); padding: clamp(40px,5vw,72px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-panel::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 360px; height: 360px;
  background: url('../assets/logos/symbol-white.png') no-repeat center/contain; opacity: .07; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: clamp(40px,5vw,72px) var(--gutter); }
.auth-form { width: 100%; max-width: 380px; }
.divider-or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 22px 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--mist); }
.sso-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: var(--r-sm);
  border: 1.5px solid var(--mist); background: var(--card); color: var(--ink); font-weight: var(--w-semibold); font-size: 14.5px; cursor: pointer; transition: all var(--ease-micro); }
.sso-btn:hover { border-color: var(--violet); }

/* ---------- Article body ---------- */
.prose { max-width: 720px; }
.prose p { font-size: 18px; line-height: 1.7; color: var(--ink); margin: 0 0 24px; }
.prose h2 { font-size: 26px; font-weight: var(--w-bold); color: var(--ink); margin: 44px 0 16px; letter-spacing: -.005em; }
.prose h3 { font-size: 20px; font-weight: var(--w-semibold); color: var(--ink); margin: 32px 0 12px; }
.prose ul { margin: 0 0 24px; padding-left: 22px; }
.prose li { font-size: 18px; line-height: 1.7; color: var(--ink); margin-bottom: 8px; }
.prose strong { font-weight: var(--w-semibold); }
.pull-quote { border-left: 3px solid var(--violet); padding: 4px 0 4px 24px; margin: 36px 0; font-weight: var(--w-light); font-size: 24px; line-height: 1.4; color: var(--ink); letter-spacing: -.01em; }
.inline-cta { background: var(--navy); border-radius: var(--r-lg); padding: 32px; margin: 40px 0; text-align: center; }

/* ---------- Misc helpers ---------- */
.divider { height: 1px; background: var(--mist); border: none; margin: 0; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.full { width: 100%; }
.rel { position: relative; }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: var(--paper); padding: 12px 20px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: var(--w-medium); box-shadow: 0 8px 30px rgba(16,22,28,.25); opacity: 0;
  pointer-events: none; transition: all .25s ease; z-index: 200; border: 1px solid var(--hairline-on-dark); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--ease-reveal), transform var(--ease-reveal); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .split, .split-65 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .auth-split { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .tier.featured { transform: none; }
}
@media (max-width: 880px) {
  .nav-links, .nav-right { display: none; }
  .nav-burger { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cmp-table { display: block; overflow-x: auto; }
  .hide-sm { display: none; }
}

/* ============================================================
   Photography helpers (human-imagery rollout — see raw/upskillia-photo-plan.md)
   ============================================================ */
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.thumb.has-photo .mark { display: none; }
.thumb.has-photo .thumb-label { z-index: 2; }
.thumb.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16,22,28,.10), rgba(16,22,28,.50)); }
.hero-photo { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: 0 1px 4px rgba(16,22,28,.18); }
.media-frame { border-radius: var(--r-xl); overflow: hidden; position: relative; }
