/* HTM Arabia landing page. Palette: only the six brand tokens. */
:root {
  --ink: #111111;
  --yellow: #FFD400;
  --paper: #FFFFFF;
  --warm: #F6F4EC;
  --muted: #4A4838;
  --line: #E3DFCF;

  --ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --en: "Montserrat", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --radius: 8px;
  --wrap: 1200px;
  --gutter: 20px;
  --section-y: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ar);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 700; line-height: 1.35; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }

.en { font-family: var(--en); font-weight: 500; }
b { font-family: var(--en); font-weight: 800; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: -100px; right: 16px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* Focus: Ink on light, Yellow on dark */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--yellow); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 24px;
  font: 600 17px/1.3 var(--ar);
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--yellow); color: var(--ink); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--paper); }
.btn-accent { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-accent:hover { background: var(--paper); border-color: var(--paper); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg { width: 40px; height: 40px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.text-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--yellow); }
.text-link.small { font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; padding-block: 12px; flex: none; }
.brand img { height: 40px; width: auto; }
.header-cta { margin-inline-start: auto; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); cursor: pointer;
}
.menu-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: inline; }

.nav { display: none; }
.nav.open {
  display: block;
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.nav.open ul { padding: 8px var(--gutter) 16px; }
.nav a {
  display: flex; align-items: center; min-height: 48px;
  text-decoration: none; font-weight: 500;
}
.nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--warm);
  min-height: calc(85vh - 68px);
  min-height: calc(85svh - 68px);
  display: flex; align-items: center;
  padding-block: 48px;
}
.hero-pulse {
  position: absolute; inset-inline: 0; top: 78%; transform: translateY(-50%);
  width: 100%; height: 220px; pointer-events: none;
}
.hero-pulse path { fill: none; stroke: var(--yellow); stroke-opacity: .1; stroke-width: 10; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 7.5vw, 56px); font-weight: 700; letter-spacing: 0; }
.hero-en { margin-top: 8px; font-size: 15px; color: var(--muted); text-align: right; }
.hero-sub { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 34em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: 220px; height: auto; }

.eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 12px; padding-inline-start: 12px; border-inline-start: 2px solid var(--yellow); line-height: 1.4; }
.hero-tagline { margin-top: 16px; font-weight: 600; font-size: 18px; }

.hero-tagline-en { margin-top: 2px; font-size: 14px; color: var(--muted); text-align: right; }

/* ---------- Phase 2: hero metrics ---------- */
.hero { flex-direction: column; justify-content: center; }
.metrics-wrap { position: relative; margin-top: 40px; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metrics li { background: var(--paper); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.metrics li:last-child { grid-column: 1 / -1; }
.metric-num { font-family: var(--en); font-weight: 800; font-size: 30px; line-height: 1.1; }
.metric-label { font-size: 15px; color: var(--muted); }
.metrics-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- Phase 2: product status + CTAs ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: 1px solid var(--muted); }
.status-available .status-dot, .status-early .status-dot { background: var(--yellow); border-color: var(--ink); }
.status-onRequest .status-dot { background: var(--ink); border-color: var(--ink); }
.status-waitlist .status-dot { background: var(--paper); border-color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 4px; }
.pid { font-size: 13px; color: var(--muted); font-weight: 600; text-align: right; }
.clamp-2 { color: var(--muted); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.main-output { background: var(--warm); border-radius: 6px; padding: 10px 12px; font-size: 15px; line-height: 1.7; }
.section-warm .main-output { background: var(--paper); border: 1px solid var(--line); }
.target-note { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.journey-title { font-size: 18px; text-align: center; margin-bottom: 20px; }
.sec-btn { align-self: flex-start; margin-top: auto; }
.section-head .intro p + p { margin-top: 10px; }
.pkg { gap: 12px; }

/* Academy tracks */
.tracks-grid { display: grid; gap: 16px; align-items: start; }
.track { display: flex; flex-direction: column; gap: 12px; }
.track-meta { font-weight: 600; }
.track-meta .sep { color: var(--line); margin-inline: 6px; }
.track-toggle { align-self: flex-start; }
.course-list { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.course { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.course-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.course-id { font-weight: 800; font-size: 14px; }
.course-title { font-weight: 600; line-height: 1.6; }
.course-meta { font-size: 14px; color: var(--muted); }
.course .cta-row { padding-top: 6px; }

/* Why + model */
.why { display: grid; gap: 16px; }
.why-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.why-item h3 { font-size: 18px; }
.why-item p { color: var(--muted); font-size: 16px; }
.model-card { display: flex; flex-direction: column; gap: 14px; }
.model-card p { color: var(--muted); }
.about-text { display: grid; gap: 12px; color: var(--muted); margin-bottom: 24px; }

/* Closing (dark) */
.btn-ghost-dark { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost-dark:hover { background: var(--paper); color: var(--ink); }
.btn-row-center { justify-content: center; margin-top: 0; }
.form-title { margin: 48px 0 20px; font-size: 20px; text-align: center; border-top: 1px solid var(--muted); padding-top: 32px; }
.form-product { border: 1px solid var(--yellow); border-radius: var(--radius); padding: 10px 14px; font-weight: 600; }

/* ---------- Batch 2: inner pages ---------- */
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.page-head { background: var(--warm); padding-block: 24px 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(26px, 5vw, 38px); margin-top: 12px; }
.page-head .intro { margin-top: 16px; color: var(--muted); max-width: 46em; }
.page-meta { margin-top: 8px; font-weight: 600; }
.pulse-start { margin-top: 12px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--muted); padding-block: 12px 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: 4px; color: var(--line); }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.section-tight { padding-block: 48px; }
.sub-title { font-size: 22px; margin-bottom: 20px; }

/* Track filter cards */
.track-filter { display: grid; gap: 12px; }
.track-pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: right;
  font: inherit; color: var(--ink); background: var(--paper); cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  transition: border-color .15s ease;
}
.track-pick:hover { border-color: var(--ink); }
.track-pick[aria-pressed="true"] { border-color: var(--ink); border-bottom: 3px solid var(--yellow); padding-bottom: 14px; }
.track-pick-top { display: flex; align-items: center; gap: 10px; }
.track-pick-name { font-weight: 700; line-height: 1.5; }
.track-pick-meta { font-size: 14px; color: var(--muted); font-weight: 600; }
.track-pick-desc { font-size: 14px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.track-pick-cta { font-size: 14px; font-weight: 600; margin-top: 2px; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.track-all { justify-content: center; }

/* Catalog toolbar */
.catalog-bar { display: grid; gap: 12px; margin-bottom: 24px; }
.catalog-bar .sub-title { margin: 0; }
.filters { display: grid; gap: 12px; }
.filters label { font-size: 14px; font-weight: 600; }
.filters select, .filters input {
  width: 100%; min-height: 48px; font: 400 16px/1.5 var(--ar); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
}
.filters select { appearance: none; -webkit-appearance: none; padding-inline-start: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 20px; background-position: left 12px center; }
.filters select:focus, .filters input:focus { border-color: var(--ink); }
.search-box { position: relative; }
.search-box .ico { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-inline-start: 42px; }
.results-count { font-size: 15px; color: var(--muted); font-weight: 600; }

/* Course cards + unified cover */
.course-grid { display: grid; gap: 16px; }
.course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.course-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-card .course-title { font-size: 17px; line-height: 1.6; }
.course-card .course-title a { text-decoration: none; }
.course-card .course-title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.course-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.course-meta .ico { width: 16px; height: 16px; }
.course-meta .dot { color: var(--line); }
.cover-link { display: block; text-decoration: none; }
.cover {
  aspect-ratio: 16 / 9; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 16px 18px;
  position: relative; border-bottom: 3px solid var(--yellow);
}
.cover-top { display: flex; align-items: center; justify-content: space-between; }
.cover-num { font-family: var(--en); font-weight: 800; font-size: 22px; color: var(--yellow); line-height: 1; }
.cover-ico { width: 28px; height: 28px; color: var(--yellow); }
.cover-title { font-weight: 700; font-size: 17px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover-brand { font-family: var(--en); font-weight: 500; font-size: 12px; color: var(--line); text-align: left; letter-spacing: .04em; }
.cover-brand b { color: var(--paper); }
.cover-lg { border-radius: var(--radius); padding: 24px; }
.cover-lg .cover-num { font-size: 32px; }
.cover-lg .cover-ico { width: 40px; height: 40px; }
.cover-lg .cover-title { font-size: 22px; }
.empty { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Course detail */
.course-hero { padding-block: 16px 40px; background: var(--warm); border-bottom: 1px solid var(--line); }
.course-hero-grid { display: grid; gap: 24px; align-items: center; }
.course-hero-text { display: flex; flex-direction: column; gap: 8px; }
.course-hero-text h1 { font-size: clamp(26px, 5vw, 38px); }
.course-hero .crumbs { margin-bottom: 8px; }
.facts-row { display: grid; gap: 8px; margin: 8px 0 12px; }
.facts-row li { display: flex; align-items: center; gap: 8px; }
.facts-row .ico { color: var(--muted); }
.course-layout { display: grid; gap: 32px; align-items: start; }
.detail-block + .detail-block { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.detail-block p + p { margin-top: 12px; }
.detail-block .ticks { gap: 8px; }
.reg-card { display: flex; flex-direction: column; gap: 12px; }
.reg-card .sub-title { margin-bottom: 0; }
.price { font-weight: 700; font-size: 20px; }
.disclaimer-start { text-align: right; margin-inline: 0; margin-top: 32px; }

/* ---------- Course content from Appendix A ---------- */
.clamp-3 { color: var(--muted); font-size: 15px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); margin-top: 2px; }
.course-stats li { display: inline-flex; align-items: center; gap: 4px; }
.course-stats .ico { width: 16px; height: 16px; }
.muted { color: var(--line); font-size: .92em; }
.block-intro { color: var(--muted); margin-bottom: 10px; }
.outcomes { display: grid; gap: 10px; }
.outcomes li { display: flex; align-items: flex-start; gap: 10px; }
.outcomes .ico { flex: none; margin-top: 5px; color: var(--ink); }
.topics { display: grid; gap: 0; border-top: 1px solid var(--ink); counter-reset: none; }
.topics li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.topic-n { flex: none; font-weight: 800; font-size: 13px; color: var(--muted); min-width: 22px; }
.track-line { font-weight: 600; margin-bottom: 6px; }
.track-line a { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (min-width: 768px) {
  .topics { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

/* ---------- Batch 3: assistant pages ---------- */
.ai-hero-tile {
  aspect-ratio: 16 / 9; background: var(--ink); color: var(--paper); border-radius: var(--radius);
  border-bottom: 3px solid var(--yellow); padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
}
.ai-tile-top { display: flex; align-items: center; justify-content: space-between; }
.ai-tile-top .cover-num { font-size: 28px; }
.ai-tile-ico { width: 64px; height: 64px; color: var(--yellow); stroke-width: 1.5; align-self: center; }
.ai-tagline-lg { font-size: 20px; margin-top: 4px; }
.course-hero-text .cta-row { margin-top: 12px; }
.journey-steps-col { grid-template-columns: 1fr !important; }
.journey-steps-col li { flex-direction: row !important; text-align: right !important; }
.journey-tagline-start { text-align: right; }
.notices { display: grid; gap: 10px; }
.notices li { border-inline-start: 2px solid var(--yellow); padding-inline-start: 12px; color: var(--muted); font-size: 16px; }
.more-ai { display: grid; gap: 12px; }
.more-ai-item { display: flex; align-items: flex-start; gap: 12px; text-decoration: none; padding: 16px; transition: border-color .15s ease; }
.more-ai-item:hover { border-color: var(--ink); }
.more-ai-text { display: flex; flex-direction: column; gap: 2px; }
.more-ai-name { font-weight: 700; line-height: 1.5; }
.more-ai-tag { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Batch 4: solution pages + request forms ---------- */
.tile-mode { font-size: 20px; font-weight: 700; align-self: center; text-align: center; }
.sum-row { font-size: 15px; line-height: 1.7; }
.form-fields { display: contents; }
.form input[type="tel"] { width: 100%; min-height: 48px; font: 400 17px/1.5 var(--en); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; text-align: left; }
.form .hint { font-size: 14px; color: var(--line); }
.form [aria-invalid="true"] { border-color: var(--yellow); outline: 2px solid var(--yellow); outline-offset: 0; }

/* ---------- Batch 5: login + certificate verification ---------- */
@media (max-width: 1023px) { .header-login { display: none !important; } }
@media (min-width: 1024px) { .nav-login { display: none; } }
.verify-box { max-width: 640px; margin-inline: auto; }
.verify-form { display: grid; gap: 12px; }
.verify-form .field input { width: 100%; min-height: 52px; font: 500 18px/1.5 var(--en); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; text-align: left; }
.verify-form .field input:focus { border-color: var(--ink); }
.verify-form .field input[aria-invalid="true"] { border-color: var(--ink); outline: 2px solid var(--yellow); }
.verify-form .err { color: var(--ink); font-weight: 600; }
.verify-form .hint { font-size: 14px; color: var(--muted); }
.verify-result { margin-top: 24px; }
.verify-card { border: 1px solid var(--ink); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.verify-card.ok { border-top: 4px solid var(--yellow); }
.verify-card .verify-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.verify-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.verify-card dt { color: var(--muted); font-size: 15px; }
.verify-card dd { margin: 0; font-weight: 600; }

/* ---------- Credibility (optional, HTM_DATA.showFigures) ---------- */
.cred { border-bottom: 1px solid var(--line); padding-block: 40px; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.cred-grid li { display: flex; flex-direction: column; gap: 6px; }
.cred-num { font-family: var(--en); font-weight: 800; font-size: 36px; line-height: 1.1; text-align: right; }
.cred-num-ar { font-family: var(--ar); font-weight: 700; }
.cred-label { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-warm { background: var(--warm); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 40px; }
.section-head.start { align-items: flex-start; text-align: right; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 5vw, 36px); font-weight: 700; }
.section-head .intro { margin-top: 16px; color: var(--muted); max-width: 40em; }
.h-en { display: block; font-family: var(--en); font-weight: 500; font-size: .72em; color: var(--ink); margin-bottom: 4px; }
.h-sep { display: none; }
.h-ar { display: block; }

/* Pulse motif under titles */
.pulse { width: 64px; height: 24px; margin-top: 14px; overflow: visible; }
.pulse path, .steps-line path {
  fill: none; stroke: var(--yellow); stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.js .pulse path, .js .steps-line path { stroke-dasharray: var(--len, 0) var(--len, 0); stroke-dashoffset: var(--len, 0); }
.js .drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s ease-out; }

/* Fade-up on titles */
.js .reveal { opacity: 0; transform: translateY(8px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .15s ease-out, transform .15s ease-out; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.cards-3 { display: grid; gap: 20px; }
.sec-card { display: flex; flex-direction: column; gap: 16px; }
.lockup { display: flex; align-items: center; gap: 14px; }
.lockup img { width: 56px; height: 56px; flex: none; }
.lockup-name { font-family: var(--en); font-weight: 500; font-size: 22px; line-height: 1.2; text-align: right; }
.lockup-ar { font-weight: 600; color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 2px; }
.promise { font-weight: 500; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 22px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .7em;
  width: 10px; height: 5px;
  border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg);
}
.sec-card .text-link { margin-top: auto; }

.badge {
  display: inline-block; align-self: flex-start;
  background: var(--yellow); color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 1;
  padding: 7px 12px; border-radius: 4px;
}

.desc { color: var(--muted); }
.name-en { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.5; margin-top: 2px; }
.disclaimer { margin-top: 24px; font-size: 14px; color: var(--muted); text-align: center; max-width: 52em; margin-inline: auto; }

/* Learn · Apply · Improve */
.flow-steps .step-num .ico { width: 22px; height: 22px; }
.flow-body { display: flex; flex-direction: column; gap: 2px; }
.flow-key { font-size: 13px; letter-spacing: .12em; color: var(--muted); text-align: right; }
.flow-ar { font-size: 22px; }
.flow-product { font-size: 15px; text-align: right; }
.flow-text { color: var(--muted); margin-top: 4px; }
.example-panel { margin-top: 40px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); padding: 20px 24px; max-width: 880px; margin-inline: auto; }
.example-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

/* Academy */
.features { display: grid; gap: 10px 24px; margin-bottom: 32px; }
.features li { position: relative; padding-inline-start: 22px; }
.features li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .7em;
  width: 10px; height: 5px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg);
}
.tracks tfoot th, .tracks tfoot td { font-weight: 800; border-top: 1px solid var(--ink); border-bottom: 0; }
.tracks tfoot th { font-weight: 700; }
.academy-grid { display: grid; gap: 24px; align-items: start; }
.card-featured { display: flex; flex-direction: column; gap: 12px; border-color: var(--ink); }
.card-featured h3 { font-size: 24px; }
.en-sub { font-size: 14px; color: var(--muted); text-align: right; }
.card-featured .btn { margin-top: 8px; align-self: flex-start; }
.tracks table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.tracks th, .tracks td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
.tracks thead th { font-weight: 600; font-size: 14px; color: var(--muted); background: var(--paper); }
.tracks tbody th { font-weight: 500; }
.tracks td { font-family: var(--en); font-weight: 500; text-align: center; width: 4.5em; }
.tracks thead th:not(:first-child) { text-align: center; }
.tracks tr:last-child th, .tracks tr:last-child td { border-bottom: 0; }
.note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; color: var(--muted); }
.note-center { justify-content: center; text-align: center; margin-top: 24px; }

/* AI */
.ai-card { display: flex; flex-direction: column; gap: 14px; }
.ai-card h3 { font-size: 20px; }
.io { display: flex; flex-direction: column; gap: 6px; }
.io-row { background: var(--warm); border-radius: 6px; padding: 12px 14px; font-size: 16px; line-height: 1.7; }
.io-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.io-arrow { display: flex; justify-content: center; color: var(--muted); }
.ai-card .value { color: var(--muted); font-size: 16px; }
.ai-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); }
.ai-icon .ico { width: 24px; height: 24px; }
.ai-tagline { font-weight: 700; }
.family { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.family-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; font-size: 18px; }
.family-brand { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--en); white-space: nowrap; }
.family-brand .h-sep { display: inline-block; width: 2px; height: .9em; background: var(--yellow); margin-inline: 6px; align-self: center; }
.family-dot { color: var(--muted); }
.family-ar { font-weight: 600; }
.family-en { font-size: 14px; color: var(--muted); }
.journey { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.journey-steps { display: grid; gap: 12px; }
.journey-steps li { display: flex; align-items: center; gap: 12px; }
.j-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink); font-weight: 800; font-size: 14px; background: var(--paper); }
.journey-tagline { margin-top: 16px; font-weight: 600; text-align: center; }
.section-cta { display: flex; justify-content: center; margin-top: 40px; }

/* Solutions */
.pkg-grid { display: grid; gap: 16px; }
.pkg { display: flex; flex-direction: column; gap: 10px; }
.pkg h3 { font-size: 19px; }
.pkg-line { font-weight: 500; }
.pkg .ticks { gap: 4px; font-size: 16px; }
.pkg-client { font-size: 16px; }
.pkg-label { display: inline-block; min-width: 4.5em; font-size: 14px; font-weight: 600; color: var(--muted); }
.pkg-note { font-size: 14px; color: var(--muted); border-inline-start: 2px solid var(--line); padding-inline-start: 10px; }

/* Who it is for */
.who { display: grid; gap: 12px; }
.who-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 16px 18px; }
.who-item h3 { font-size: 17px; font-weight: 600; line-height: 1.5; }
.who-item p { font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.7; }
.founder-cta { margin-top: 28px; }
.pkg .text-link { margin-top: auto; align-self: flex-start; }

/* How it works */
.steps-wrap { position: relative; }
.steps { position: relative; display: grid; gap: 40px; counter-reset: none; }
.steps li { display: flex; align-items: flex-start; gap: 18px; }
.step-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--ink);
  font-family: var(--en); font-weight: 800; font-size: 18px; line-height: 1;
  position: relative; z-index: 1;
}
.steps p { padding-top: 8px; }
.steps-line { position: absolute; pointer-events: none; }
.steps-line-h { display: none; }
.steps-line-v { top: 24px; right: 4px; width: 40px; height: 66%; }

/* Founder */
.founder-grid { display: grid; gap: 32px; align-items: center; }
.founder-photo { max-width: 360px; width: 100%; margin-inline: auto; }
.photo-ph {
  aspect-ratio: 4 / 5; width: 100%;
  background: var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.photo-ph img { width: 180px; height: auto; }
.founder-photo > img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
.founder-name { font-size: 24px; font-weight: 700; }
.founder-cred { color: var(--muted); font-size: 16px; text-align: right; margin-top: 2px; }
.facts { display: grid; gap: 12px; margin-top: 20px; }
.facts li { position: relative; padding-inline-start: 20px; }
.facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 8px; height: 8px; background: var(--yellow); border-radius: 2px; }

/* ---------- Waitlist (dark) ---------- */
.waitlist { background: var(--ink); color: var(--paper); padding-block: var(--section-y); }
.waitlist-logo { width: 237px; height: auto; margin: 0 auto 32px; }
.waitlist .section-head .intro { color: var(--paper); }
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: 16px; }
.req { color: var(--yellow); }
.opt { color: var(--line); font-size: 14px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; min-height: 48px;
  font: 400 17px/1.5 var(--ar);
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px;
}
.form input[dir="ltr"] { text-align: left; font-family: var(--en); }
.form select { appearance: none; -webkit-appearance: none; padding-inline-start: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 20px; background-position: left 12px center; }
.form textarea { resize: vertical; min-height: 110px; }
.form [aria-invalid="true"] { border-color: var(--yellow); outline: 2px solid var(--yellow); outline-offset: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 16px;
  border: 1px solid var(--muted); border-radius: var(--radius);
  cursor: pointer; user-select: none;
}
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--yellow); cursor: pointer; }
.check:has(input:checked) { border-color: var(--yellow); }
.err { color: var(--yellow); font-size: 15px; min-height: 0; }
.err:empty { display: none; }
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 6px; }
.form-actions .btn { min-width: 200px; }
.privacy { font-size: 14px; color: var(--line); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.success {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  border: 1px solid var(--yellow); border-radius: var(--radius); padding: 40px 24px;
  font-size: 20px; font-weight: 600;
}
.success .ico { color: var(--yellow); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding-block: 14px;
  font-weight: 600; font-size: 18px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .15s ease; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }
.faq details p a { color: var(--ink); font-weight: 600; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--warm); border-top: 1px solid var(--line); padding-block: 48px 24px; }
.footer-inner { display: grid; gap: 28px; }
.footer-brand img { width: 203px; height: auto; }
.tagline { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.tagline + .tagline { margin-top: 2px; }
.domain { color: var(--muted); font-size: 15px; text-align: right; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.copy { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--en); font-size: 14px; color: var(--muted); text-align: right; }

/* ---------- Legal pages ---------- */
.legal { padding-block: 56px 72px; }
.legal h1 { font-size: clamp(28px, 5vw, 36px); margin-bottom: 24px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-inline-start: 22px; }

/* ---------- ≥ 480 ---------- */
@media (min-width: 480px) {
  .brand img { height: 40px; }
}

/* ---------- ≥ 768 ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 96px; }
  body { font-size: 18px; }
  .pkg-grid { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: repeat(5, 1fr); }
  .metrics li:last-child { grid-column: auto; }
  .tracks-grid { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .track-filter { grid-template-columns: 1fr 1fr; }
  .track-all { grid-column: 1 / -1; }
  .filters { grid-template-columns: 2fr 1fr 1fr; align-items: end; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .more-ai { grid-template-columns: 1fr 1fr; }
  .course-hero-grid { grid-template-columns: 1fr 1.3fr; gap: 40px; }
  .cred-grid { grid-template-columns: repeat(4, 1fr); }
  .cred-num { font-size: 40px; }
  .features { grid-template-columns: 1fr 1fr; }
  .journey-steps { grid-template-columns: repeat(4, 1fr); }
  .journey-steps li { flex-direction: column; text-align: center; align-items: center; }
  .who { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .field-full { grid-column: 1 / -1; }
  .h-en { display: inline; font-size: 1em; margin: 0; }
  .h-sep { display: inline-block; width: 2px; height: .9em; background: var(--yellow); margin-inline: 14px; vertical-align: -0.08em; }
  .h-ar { display: inline; }
  .academy-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- ≥ 1024 ---------- */
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .nav { display: block; margin-inline-start: 32px; }
  .nav ul { display: flex; gap: 28px; }
  .nav a { font-size: 16px; }
  .header-cta { margin-inline-start: auto; }

  .hero { padding-block: 64px; }
  .hero-pulse { top: 50%; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; }
  .hero-visual img { width: 280px; }

  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .academy-grid { grid-template-columns: 5fr 7fr; gap: 32px; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .steps p { padding-top: 0; max-width: 18em; }
  .steps-line-v { display: none; }
  .flow-body { align-items: center; }
  .flow-key, .flow-product { text-align: center; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .who { grid-template-columns: repeat(5, 1fr); }
  .tracks-grid { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(3, 1fr); }
  .track-filter { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .more-ai { grid-template-columns: repeat(3, 1fr); }
  .course-layout { grid-template-columns: 1fr 320px; gap: 48px; }
  .course-aside { position: sticky; top: 88px; }
  .steps-line-h { display: block; top: 4px; left: 0; right: 0; width: 100%; height: 40px; }

  .founder-grid { grid-template-columns: 360px 1fr; gap: 64px; }
  .founder-photo { margin: 0; }
}

/* ---------- ≥ 1440 ---------- */
@media (min-width: 1440px) {
  :root { --wrap: 1280px; --section-y: 112px; }
  .hero h1 { font-size: 60px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .pulse path, .js .steps-line path { stroke-dashoffset: 0; }
}
.lead { font-size: 18px; color: var(--muted); margin-top: 4px; }

/* Footer: brand column sized to its tagline, links take the remaining width (desktop only). */
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: auto 1fr; align-items: end; gap: 28px 56px; }
  .footer-brand .tagline { white-space: nowrap; }
  .footer-nav ul { justify-content: flex-end; }
}

/* ---------- Academy redesign (section A, batch A1) ---------- */
.hero-search { display: flex; gap: 8px; margin-top: 24px; max-width: 720px; }
.hero-search .search-box { flex: 1; min-width: 0; }
.hero-search input {
  width: 100%; min-height: 56px; font: 400 17px/1.5 var(--ar); color: var(--ink);
  background: var(--paper); border: 1px solid var(--paper); border-radius: var(--radius); padding: 12px 14px 12px 14px; padding-inline-start: 44px;
}
.hero-search input:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
.hero-search .btn { min-height: 56px; flex: none; }
.track-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.track-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; font-size: 14px; font-weight: 500;
  color: var(--paper); text-decoration: none; border: 1px solid var(--muted); border-radius: 999px;
}
.track-chip:hover, .track-chip[aria-current] { border-color: var(--yellow); color: var(--yellow); }
.portal-links { margin-top: 8px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.portal-links a { color: var(--paper); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.portal-links .sep { color: var(--muted); }

.spotlight { display: grid; gap: 0; padding: 0; overflow: hidden; }
.spotlight .cover-lg { border-radius: 0; height: 100%; aspect-ratio: auto; min-height: 220px; clip-path: none; }
.spotlight .cover-lg::after { display: none; }
.spotlight-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.spotlight-title { font-size: clamp(20px, 3vw, 26px); line-height: 1.5; }
.spotlight-title a { text-decoration: none; }
.spotlight-title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.spotlight-body > p { color: var(--muted); }

.new-badge { display: inline-block; font-family: var(--ar); letter-spacing: 0; font-size: 12px; font-weight: 700; background: var(--yellow); color: var(--ink); padding: 2px 8px; border-radius: 4px; margin-inline-end: 8px; }
.course-by, .course-next { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.course-by .ico, .course-next .ico { width: 16px; height: 16px; color: var(--muted); }
.course-rating { font-size: 14px; font-weight: 600; }
.track-pick-aud { font-size: 13px; color: var(--muted); line-height: 1.7; }
.track-pick-aud b { color: var(--ink); font-weight: 600; }

.cert-grid, .instructor-grid, .cohort-list { display: grid; gap: 16px; }
.cert-card, .instructor-card, .cohort { display: flex; flex-direction: column; gap: 8px; }
.cert-code { font-family: var(--en); font-weight: 800; font-size: 32px; line-height: 1; text-align: right; margin-top: 8px; }
.cert-code::after { content: ""; display: block; width: 40px; height: 3px; background: var(--yellow); margin-top: 10px; }
.cert-body { font-size: 14px; color: var(--muted); }
.instructor-photo { width: 96px; height: 96px; border-radius: 4px; object-fit: cover; }
.instructor-title { color: var(--muted); font-size: 15px; }
.instructor-creds { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-align: right; }
.cohort-date { font-weight: 700; }

.journey-steps-5 .j-text { display: flex; flex-direction: column; gap: 2px; }
.journey-steps-5 .j-text b { font-weight: 700; }
.journey-steps-5 .j-text span { color: var(--muted); font-size: 15px; line-height: 1.7; }
.journey-steps-5 li { align-items: flex-start; }
.journey-steps-5 .j-num { margin-top: 2px; }

.org-card { display: grid; gap: 24px; padding: 32px 24px 24px; }
.org-card h2 { font-size: clamp(22px, 3vw, 28px); margin: 6px 0 10px; }
.org-card .org-text > p { color: var(--muted); }
.org-card .cta-row { margin-top: 16px; }
.eyebrow-dark { font-family: var(--en); font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--muted); }

.teach-band {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding-block: 28px;
}
.teach-band h2 { font-size: clamp(20px, 3vw, 26px); margin-bottom: 6px; }
.teach-band p { color: var(--muted); max-width: 46em; }
.academy-closing { text-align: center; padding-block: 64px; }
.academy-closing h2 { color: var(--paper); font-size: clamp(24px, 4vw, 34px); }
.academy-closing .intro { color: var(--line); margin: 12px auto 24px; max-width: 40em; }

@media (min-width: 768px) {
  .filters { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .filters .field-search { grid-column: 1 / -1; }
  .cert-grid, .instructor-grid, .cohort-list { grid-template-columns: 1fr 1fr; }
  .spotlight { grid-template-columns: 2fr 3fr; }
  .org-card { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 40px; }
  .teach-band { flex-direction: row; align-items: center; justify-content: space-between; }
  .teach-band .btn { flex: none; }
  .journey-steps-5 { grid-template-columns: 1fr; }
  .journey-steps-5 li { flex-direction: row; text-align: right; align-items: flex-start; }
}
@media (min-width: 1024px) {
  .filters { grid-template-columns: 2fr repeat(3, 1fr); }
  .filters .field-search { grid-column: auto; }
  .cert-grid { grid-template-columns: repeat(5, 1fr); }
  .instructor-grid, .cohort-list { grid-template-columns: repeat(3, 1fr); }
  .journey-steps-5 { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .journey-steps-5 li { flex-direction: column; text-align: center; align-items: center; }
  .journey-steps-5 .j-text { align-items: center; }
}
.cert-card .course-title { font-size: 16px; line-height: 1.6; }
.cert-card .course-title a { text-decoration: none; }
.cert-card .course-title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* Phones: track chips scroll sideways in one row instead of stacking six lines */
@media (max-width: 767px) {
  .track-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px; }
  .track-chips::-webkit-scrollbar { display: none; }
  .track-chip { white-space: nowrap; }
}
/* Two neighbouring sections with the same surface (e.g. when an optional section appears): a hairline between them */
.section-warm:not([hidden]) + .section-warm, .section:not(.section-warm):not([hidden]) + .section:not(.section-warm) { border-top: 1px solid var(--line); }

/* ---------- Course page redesign (section A, batch A2) ---------- */
.course-tabs { position: sticky; top: var(--header-h, 64px); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--ink); }
.course-tabs ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.course-tabs ul::-webkit-scrollbar { display: none; }
.course-tabs a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; white-space: nowrap;
  font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent;
}
.course-tabs a:hover { color: var(--ink); }
.course-tabs a[aria-current] { color: var(--ink); font-weight: 700; border-bottom-color: var(--yellow); }
.detail-block { scroll-margin-top: calc(var(--header-h, 64px) + 64px); }

.course-by-hero { display: block; margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--paper); }
.course-by-hero a { color: var(--paper); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border: 1px solid var(--muted); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.course-hero .cta-row + .btn, #heroCta .btn-secondary { margin-top: 8px; }

.readmore { max-height: 13.5em; overflow: hidden; position: relative; }
.readmore:not(.open)::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3em; background: linear-gradient(transparent, var(--warm)); }
.readmore.open { max-height: none; }
.readmore-btn { margin-top: 4px; }

.outcomes-2 { gap: 12px 32px; }
.mini-title { font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.detail-block .mini-title:first-of-type { margin-top: 16px; }

.curriculum-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.curriculum-sum { font-weight: 600; color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.curriculum-bar .curriculum-sum { margin: 0; }
.curriculum { border-top: 1px solid var(--ink); }
.curriculum details { border-bottom: 1px solid var(--line); }
.curriculum summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 0; cursor: pointer; list-style: none; }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.curriculum summary .ico { transition: transform .15s ease; }
.curriculum details[open] summary .ico { transform: rotate(180deg); }
.mod-n { flex: none; font-weight: 800; font-size: 13px; color: var(--muted); min-width: 22px; }
.mod-title { flex: 1; font-weight: 600; line-height: 1.6; }
.mod-meta { flex: none; font-size: 14px; color: var(--muted); }
.lessons { padding: 0 34px 12px 0; display: grid; gap: 2px; }
.lessons li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 16px; }
.lessons .ico { width: 16px; height: 16px; color: var(--muted); }
.lesson-title { flex: 1; }
.lesson-min { font-size: 14px; color: var(--muted); flex: none; }
.preview-tag { flex: none; font-size: 12px; font-weight: 700; background: var(--yellow); color: var(--ink); padding: 2px 8px; border-radius: 4px; }

.instructor-row { display: flex; gap: 16px; align-items: flex-start; }
.instructor-row + .instructor-row { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.instructor-row p + p { margin-top: 6px; }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.cohort-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.cohort-table th, .cohort-table td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.cohort-table th { font-weight: 600; color: var(--muted); font-size: 14px; }

.cert-panel { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--ink); background: var(--paper); padding: 20px; }
.cert-mark { flex: none; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--yellow); }
.cert-mark .ico { width: 30px; height: 30px; }
.cert-title { font-weight: 700; margin-bottom: 10px; }
.cert-note { font-size: 14px; color: var(--muted); margin-top: 10px; }

.reviews { display: grid; gap: 12px; }
.review { border-inline-start: 3px solid var(--yellow); padding: 4px 16px; margin: 0; }
.review figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); }

.reg-text { color: var(--muted); font-size: 15px; }
.reg-cta .cta-row { margin-top: 0; }
.reg-cta .btn { width: 100%; justify-content: center; }
.reg-cohort { font-weight: 600; font-size: 15px; }
.muted-ink { color: var(--muted); font-weight: 400; font-size: 14px; }
.reg-card .mini-title { margin: 8px 0 0; font-size: 15px; }
.reg-card .ticks li { font-size: 15px; }
.reg-excludes, .reg-pay { font-size: 14px; color: var(--muted); }
.reg-excludes b { color: var(--ink); }
.reg-card .field select { width: 100%; min-height: 44px; font: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; background: var(--paper); }
.reg-links { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 15px; }
.reg-links a, .fav-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--ink); font-weight: 600; text-decoration: none; }
.reg-links a:hover, .fav-btn:hover span { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.fav-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.fav-btn .ico { width: 18px; height: 18px; }
.fav-btn[aria-pressed="true"] .ico { color: var(--ink); fill: var(--yellow); }

.reg-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 140; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); border-top: 3px solid var(--yellow);
}
.reg-bar[hidden] { display: none; }
.reg-bar-text { display: flex; flex-direction: column; min-width: 0; }
.reg-bar-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-bar-sub { font-size: 13px; color: var(--line); }
.reg-bar .cta-row { margin: 0; padding: 0; flex: none; }
.reg-bar .btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.has-reg-bar .htm-chat { bottom: 84px; }
.has-reg-bar .site-footer { padding-bottom: 80px; }

@media (min-width: 768px) {
  .outcomes-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .course-aside { top: calc(var(--header-h, 64px) + 64px); }
  .reg-bar { display: none !important; }
}
button.text-link { background: none; border: 0; border-bottom: 1px solid transparent; padding: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.course-main, .course-aside { min-width: 0; }

/* ---------- Academy pages (section A, batch A3) ---------- */
.academy-nav { background: var(--ink); border-top: 1px solid var(--muted); }
.academy-nav .wrap { display: flex; align-items: center; gap: 16px; }
.academy-nav-brand { flex: none; font-family: var(--en); font-weight: 500; font-size: 14px; color: var(--line); display: none; }
.academy-nav-brand b { color: var(--yellow); }
.academy-nav ul { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.academy-nav ul::-webkit-scrollbar { display: none; }
.academy-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; white-space: nowrap; font-size: 14px; color: var(--line); text-decoration: none; border-bottom: 2px solid transparent; }
.academy-nav a:hover { color: var(--paper); }
.academy-nav a[aria-current] { color: var(--paper); border-bottom-color: var(--yellow); font-weight: 600; }
.academy-nav :focus-visible { outline-color: var(--yellow); }
.head-cta { margin-top: 20px; }
.page-head .btn-ghost-dark { color: var(--paper); border-color: var(--paper); }

.tile-grid { display: grid; gap: 16px; }
.tiles-stack { gap: 10px; }
.tiles-stack .why-item { padding: 14px 16px; }
.two-col { display: grid; gap: 32px; }
.two-col .mini-title:first-child { margin-top: 0; }
.cta-band { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding-block: 24px; }
.cta-band p { font-size: 18px; font-weight: 600; max-width: 40em; }
.cta-band .cta-row { margin: 0; }
.empty-state { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 16px; }
.empty-state p { color: var(--muted); max-width: 36em; }
.empty-state .empty-title { color: var(--ink); font-weight: 700; font-size: 20px; }
.empty-state .cta-row { justify-content: center; }

.program-grid { display: grid; gap: 16px; }
.program-card { display: flex; flex-direction: column; gap: 10px; }
.program-title { font-size: 19px; line-height: 1.5; }
.program-title a { text-decoration: none; }
.program-title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.program-meta { font-weight: 600; font-size: 15px; }
.program-path { display: grid; gap: 16px; }
.program-path > li { display: flex; gap: 14px; align-items: flex-start; }
.program-path > li > .j-num { margin-top: 16px; }
.program-path .course-card { flex: 1; min-width: 0; }
.month-title { margin-top: 8px; }
.month-title:not(:first-child) { margin-top: 40px; }

.notice-strong { border: 1px solid var(--line); background: var(--paper); padding: 12px 16px; margin: 0 0 24px; }
.cert-rows { display: grid; gap: 16px; }
.cert-row { display: grid; gap: 16px; }
.cert-row-head { display: flex; flex-direction: column; gap: 6px; }
.cert-row-body { display: flex; flex-direction: column; gap: 8px; }
.cert-row .course-title { font-size: 19px; line-height: 1.5; }
.cert-row .course-title a { text-decoration: none; }

.course-picks { border: 1px solid var(--muted); border-radius: var(--radius); padding: 12px 14px; margin: 0; }
.course-picks legend { padding: 0 6px; font-weight: 500; }
.course-picks details { border-bottom: 1px solid var(--muted); }
.course-picks details:last-of-type { border-bottom: 0; }
.course-picks summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.course-picks .checks { display: grid; gap: 4px; padding: 0 0 12px; }
.course-picks .check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.6; min-height: 32px; cursor: pointer; padding: 6px 10px; }
.course-picks .check input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--yellow); }
.waitlist .muted-ink { color: var(--line); }

@media (min-width: 768px) {
  .tile-grid.tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .tiles-stack { grid-template-columns: 1fr !important; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 48px; }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .cert-row { grid-template-columns: 180px 1fr; align-items: start; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
  .course-picks .checks { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}
@media (min-width: 1024px) {
  .academy-nav-brand { display: block; }
  .program-grid { grid-template-columns: repeat(3, 1fr); }
  .program-path { grid-template-columns: 1fr 1fr; }
}

/* ---------- Accounts: signup / login / reset / account ---------- */
.auth-section { min-height: 60vh; }
.auth-loading { text-align: center; color: var(--muted); }
.auth-card { max-width: 640px; margin-inline: auto; padding: 32px 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-title { font-size: clamp(24px, 4vw, 30px); }
.auth-sub { color: var(--muted); }
.auth-sub a, .consent a, .hint-dark a, .acc a:not(.btn):not(.acc-course-main) { color: var(--ink); font-weight: 600; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.auth-form { gap: 16px; }
.auth-form .field label { color: var(--ink); }
.auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="url"], .auth-form input[type="tel"],
.auth-form input[type="password"], .auth-form select, .auth-form textarea {
  width: 100%; min-height: 48px; font: 400 17px/1.5 var(--ar); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
}
.auth-form input[dir="ltr"] { text-align: left; font-family: var(--en); }
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus { border-color: var(--ink); outline: 2px solid var(--yellow); outline-offset: 0; }
.auth-form .hint, .hint-dark { font-size: 14px; color: var(--muted); }
.auth-form .err, .auth-form .form-err, .form-err-static { color: var(--ink); font-weight: 600; font-size: 15px; border-inline-start: 3px solid var(--yellow); padding-inline-start: 8px; }
.auth-form .err:empty, .auth-form .form-err:empty { display: none; }
.auth-form [aria-invalid="true"] { border-color: var(--ink); outline: 2px solid var(--yellow); }
.auth-form .form-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
.auth-form .form-actions .err, .auth-form .form-actions .form-ok { flex-basis: 100%; }
.form-ok { color: var(--ink); font-weight: 600; font-size: 15px; }
.form-ok:empty { display: none; }
.pw-box { position: relative; }
.pw-box input { padding-inline-end: 76px !important; }
.pw-toggle { position: absolute; top: 50%; transform: translateY(-50%); left: 6px; min-height: 36px; padding: 0 10px; font: 600 14px var(--ar);
  background: var(--warm); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.role-switch { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.role-switch legend { font-weight: 600; margin-bottom: 8px; }
.role-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.role-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow); }
.role-opt input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.role-opt b { display: block; }
.role-opt span span { font-size: 14px; color: var(--muted); }
.role-ico { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--yellow); border-radius: 4px; }
.role-note { font-size: 14px; color: var(--muted); background: var(--warm); padding: 10px 12px; border-inline-start: 3px solid var(--yellow); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ink); flex: none; }
.forgot { border-top: 1px solid var(--line); padding-top: 16px; }
.test-banner { font-size: 14px; background: var(--yellow); color: var(--ink); padding: 10px 12px; }
.success-light { display: flex; flex-direction: column; gap: 12px; }

.acc { max-width: 960px; margin-inline: auto; display: flex; flex-direction: column; gap: 20px; }
.acc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 16px; }
.acc-role { font-size: 14px; font-weight: 600; color: var(--muted); }
.acc-title { font-size: clamp(24px, 4vw, 32px); }
.acc-email { color: var(--muted); font-size: 14px; text-align: right; }
.acc-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tabs [role=tab] { min-height: 46px; padding: 0 14px; white-space: nowrap; font: 500 15px var(--ar); color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.acc-tabs [role=tab][aria-selected="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--yellow); }
.acc-tabs [role=tab]:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.acc-panel { display: flex; flex-direction: column; gap: 16px; }
.acc-panel:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.acc-stats li { background: var(--paper); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.acc-stats b { font-size: 32px; font-weight: 800; line-height: 1; }
.acc-stats span { color: var(--muted); font-size: 14px; }
.status-panel { border: 1px solid var(--ink); background: var(--paper); padding: 16px; border-inline-start: 6px solid var(--line); }
.status-panel.acc-approved { border-inline-start-color: var(--yellow); }
.status-panel.acc-pending { border-inline-start-color: var(--muted); }
.sp-title { font-weight: 700; margin-bottom: 4px; }
.acc-status { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); white-space: nowrap; }
.acc-status.acc-approved { background: var(--yellow); }
.acc-status.acc-rejected { background: var(--ink); color: var(--paper); }
.acc-list { display: grid; gap: 10px; }
.acc-course, .proposal { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--paper); border: 1px solid var(--line); padding: 12px 14px; }
.acc-course-main { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; flex: 1; }
.acc-course-main .cover-num { flex: none; color: var(--ink); background: var(--yellow); padding: 8px; font-size: 16px; min-width: 52px; text-align: center; }
.acc-course-main b { display: block; line-height: 1.6; }
.acc-course-main:hover b { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.acc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-top: 4px; }
.proposal b { display: block; }
.proposal-note { font-size: 14px; margin-top: 6px; }
.acc-form { background: var(--paper); border: 1px solid var(--line); padding: 20px; }
.acc-note { margin-top: -4px; }
.header-login.is-account { display: inline-flex; }

@media (min-width: 768px) {
  .role-switch { grid-template-columns: 1fr 1fr; }
  .auth-form, .acc-form { grid-template-columns: 1fr 1fr; }
  .auth-form > .role-switch, .auth-form > .role-note, .auth-form > .test-banner { grid-column: 1 / -1; }
  #login-form, #forgot-form, #reset-form { grid-template-columns: 1fr; }
  .auth-card { padding: 40px 40px 32px; }
}

/* ---------- Learning platform: checkout, player, quizzes, certificate ---------- */
.err-dark { color: var(--ink); font-weight: 600; font-size: 15px; border-inline-start: 3px solid var(--yellow); padding-inline-start: 8px; }
.err-dark:empty { display: none; }
.checkout { max-width: 1040px; margin-inline: auto; display: flex; flex-direction: column; gap: 20px; }
.checkout-steps { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.checkout-steps li { display: inline-flex; align-items: center; gap: 8px; }
.checkout-steps li[aria-current] { color: var(--ink); font-weight: 700; }
.checkout-steps li[aria-current] .j-num { background: var(--yellow); }
.checkout-grid { display: grid; gap: 20px; align-items: start; }
.checkout-main, .checkout-sum { padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.co-course { display: grid; gap: 16px; }
.co-course .cover { max-width: 320px; }
.co-name { font-size: 20px; line-height: 1.5; margin: 4px 0 8px; }
.co-terms li { font-size: 15px; }
.co-lines { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.co-lines dt { color: var(--muted); }
.co-lines dd { margin: 0; font-weight: 600; text-align: left; }
.co-lines .co-total { border-top: 1px solid var(--ink); padding-top: 10px; font-size: 18px; font-weight: 800; color: var(--ink); }
.coupon label { font-weight: 600; font-size: 15px; }
.coupon-row { display: flex; gap: 8px; margin-top: 6px; }
.coupon-row input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: 500 16px var(--en); text-transform: uppercase; }
.co-go { width: 100%; justify-content: center; }

.learn-section { padding-top: 24px; }
.learn { display: flex; flex-direction: column; gap: 16px; }
.learn-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.learn-head .pid a { color: inherit; text-decoration: none; }
.learn-title { font-size: clamp(20px, 3vw, 26px); line-height: 1.5; }
.learn-progress { min-width: 220px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.bar { display: block; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--yellow); border-inline-end: 2px solid var(--ink); transition: width .3s ease; }
.bar.small { height: 6px; margin-top: 8px; max-width: 280px; }
.learn-grid { display: grid; gap: 16px; align-items: start; }
.learn-nav { padding: 16px; display: none; }
.learn-nav.open { display: block; }
.ln-mod { font-weight: 700; font-size: 14px; margin: 12px 0 6px; color: var(--muted); }
.ln-mod:first-child { margin-top: 0; }
.ln-list { display: grid; gap: 2px; }
.ln-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: 15px; }
.ln-list a:hover { background: var(--warm); }
.ln-list a[aria-current] { background: var(--ink); color: var(--paper); }
.ln-list a[aria-disabled="true"] { color: var(--muted); }
.ln-ico { flex: none; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.ln-ico.done { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.ln-t { flex: 1; line-height: 1.5; }
.ln-min { flex: none; font-size: 13px; color: var(--muted); }
.ln-list a[aria-current] .ln-min { color: var(--line); }
.ln-cert { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); text-decoration: none; min-height: 44px; }
.learn-main { padding: 24px; min-height: 320px; display: flex; flex-direction: column; gap: 14px; }
.learn-main:focus { outline: none; }
.lesson-h { font-size: clamp(20px, 3vw, 26px); line-height: 1.5; }
.lesson-body p + p { margin-top: 12px; }
.lesson-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.lesson-nav { display: inline-flex; gap: 20px; }
.quiz-meta { margin-bottom: 4px; }
.quiz-timer { font-weight: 700; background: var(--warm); padding: 8px 12px; align-self: flex-start; }
.quiz-form { display: flex; flex-direction: column; gap: 16px; }
.q { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; }
.q legend { font-weight: 600; padding: 0 4px; line-height: 1.6; }
.q-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 4px; cursor: pointer; }
.q-opt:hover { background: var(--warm); }
.q-opt input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.q-opt.is-correct { background: var(--yellow); font-weight: 700; }
.q-opt.is-wrong { text-decoration: line-through; color: var(--muted); }
.q-fb { font-size: 14px; color: var(--muted); }
.q-fb:empty { display: none; }
.quiz-result { border: 1px solid var(--ink); padding: 16px; background: var(--paper); border-inline-start: 6px solid var(--muted); }
.quiz-result.pass { border-inline-start-color: var(--yellow); }
.cert-reqs li.ok { color: var(--ink); font-weight: 600; }
.cert-reqs li.ok::after { content: " ✓"; }
.acc-course.enr .acc-course-main { align-items: flex-start; }
.acc-course .cover-num .ico { width: 22px; height: 22px; }

.cert-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.cert-sheet { position: relative; max-width: 960px; margin-inline: auto; aspect-ratio: 1.414 / 1; background: var(--paper); border: 1px solid var(--ink);
  outline: 10px solid var(--warm); outline-offset: -22px; padding: 6% 8%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2%; }
.cs-head { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 2%; }
.cs-head img { width: 26%; height: auto; }
.cs-academy { font-family: var(--en); font-weight: 500; font-size: clamp(12px, 1.6vw, 18px); }
.cs-kicker { font-size: clamp(22px, 3.6vw, 40px); font-weight: 700; }
.cs-kicker-en { font-family: var(--en); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: clamp(10px, 1.2vw, 14px); color: var(--muted); }
.cs-line { font-size: clamp(12px, 1.6vw, 18px); color: var(--muted); }
.cs-name { font-size: clamp(22px, 3.4vw, 38px); font-weight: 700; border-bottom: 3px solid var(--yellow); padding: 0 16px 4px; }
.cs-course { font-size: clamp(16px, 2.2vw, 24px); font-weight: 700; max-width: 80%; line-height: 1.5; }
.cs-foot { margin-top: auto; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: right; }
.cs-code { font-size: clamp(11px, 1.3vw, 15px); }
.cs-verify { font-size: clamp(9px, 1vw, 12px); color: var(--muted); text-align: right; word-break: break-all; }
.cs-note { font-size: clamp(9px, 1vw, 12px); color: var(--muted); margin-top: 4px; max-width: 46em; }
.cs-qr { width: 14%; min-width: 72px; flex: none; }
.cs-qr svg { width: 100%; height: auto; display: block; }
.cs-revoked { position: absolute; inset: 40% 0 auto; font-size: 64px; font-weight: 800; color: var(--ink); opacity: .15; transform: rotate(-12deg); }

@media (min-width: 768px) {
  .co-course { grid-template-columns: 240px 1fr; align-items: start; }
}
@media (min-width: 1024px) {
  .checkout-grid { grid-template-columns: 1fr 340px; }
  .checkout-sum { position: sticky; top: 96px; }
  .learn-grid { grid-template-columns: 300px 1fr; }
  .learn-nav { display: block; position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
  .outline-toggle { display: none; }
}
@media print {
  .site-header, .site-footer, .cert-actions, .htm-chat, .skip { display: none !important; }
  .auth-section { padding: 0 !important; background: #fff !important; }
  body { background: #fff; }
  .cert-sheet { max-width: none; width: 100%; outline-offset: -16px; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* ---------- Admin panel ---------- */
.adm { max-width: 1240px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
.adm-grid { display: grid; gap: 16px; align-items: start; }
.adm-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.adm-nav ul::-webkit-scrollbar { display: none; }
.adm-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap; font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.adm-nav a[aria-current] { color: var(--ink); font-weight: 700; border-bottom-color: var(--yellow); }
.adm-main { padding: 24px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.adm-main:focus { outline: none; }
.adm-main .sub-title { margin: 0; }
.adm-table td, .adm-table th { vertical-align: top; }
.adm-table select, .adm-inline select, .adm-inline input { min-height: 40px; font: 400 15px var(--ar); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; background: var(--paper); color: var(--ink); }
.adm-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-inline label { font-weight: 600; font-size: 15px; }
.adm-inline input { flex: 1; min-width: 180px; }
.adm-box { border: 1px solid var(--line); background: var(--paper); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.adm-form { margin: 0; }
.adm-form .consent { align-self: center; }
.adm-mod { border-top: 1px solid var(--line); padding-top: 8px; }
.adm-mod-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.adm-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.adm-item b { display: block; font-weight: 600; }
.adm-acts { display: inline-flex; gap: 12px; flex: none; }
.wf { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.wf li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.wf li[aria-current] { border-color: var(--ink); background: var(--yellow); color: var(--ink); font-weight: 700; }
.adm-q { display: grid; gap: 12px; padding-inline-start: 20px; list-style: decimal; }
.adm-q ul { margin: 6px 0; padding-inline-start: 16px; list-style: disc; font-size: 15px; }
.adm-q li.ok { font-weight: 700; }
.acc-status.acc-published, .acc-status.acc-answered, .acc-status.acc-paid { background: var(--yellow); }
.acc-status.acc-changes_requested, .acc-status.acc-archived, .acc-status.acc-closed { background: var(--warm); }
@media (min-width: 1024px) {
  .adm-grid { grid-template-columns: 230px 1fr; }
  .adm-nav ul { flex-direction: column; border-bottom: 0; border-inline-start: 1px solid var(--line); position: sticky; top: 88px; }
  .adm-nav a { border-bottom: 0; border-inline-start: 3px solid transparent; margin-inline-start: -1px; }
  .adm-nav a[aria-current] { border-inline-start-color: var(--yellow); background: var(--paper); }
}
.adm-nav, .adm-grid > * { min-width: 0; }
.auth-form input:not([type]), .auth-form input[type="number"], .auth-form input[type="date"] {
  width: 100%; min-height: 48px; font: 400 17px/1.5 var(--ar); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
}
.auth-form input[type="number"], .auth-form input[type="date"] { font-family: var(--en); text-align: left; }
.adm-box .field input { width: 100%; min-height: 44px; font: 400 16px var(--ar); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; background: var(--paper); }
.adm-inline > * { max-width: 100%; min-width: 0; }
.adm-inline select { flex: 1 1 220px; }
.adm-box, .adm-main > * { min-width: 0; max-width: 100%; }

/* ---------- Payment: note, receipt ---------- */
.pay-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); background: var(--warm); padding: 10px 12px; }
.pay-note .ico { flex: none; color: var(--ink); margin-top: 2px; }
.pay-note b { color: var(--ink); }
.receipt { max-width: 760px; margin-inline: auto; padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.receipt .cs-head img { width: 180px; }
.rc-title { text-align: left; }
.rc-title .cs-kicker { font-size: 26px; }
.rc-seller { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.rc-grid { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.rc-grid dt { color: var(--muted); }
.rc-grid dd { margin: 0; font-weight: 600; }
.rc-lines { border-top: 1px solid var(--ink); padding-top: 12px; }
.rc-refunded { inset: 35% 0 auto; text-align: center; }
@media print {
  .receipt { box-shadow: none; clip-path: none; border: 1px solid var(--ink); max-width: none; }
  .receipt::before, .receipt::after { display: none; }
  .receipt { page: receipt; }
  @page receipt { size: A4 portrait; margin: 14mm; }
}

/* ---------- Yaqaz | يَقِظ (HTM AI product page) ---------- */
.yq-hero { padding-block: 32px 56px; }
.yq-hero-grid { display: grid; gap: 32px; align-items: center; }
.yq-hero-text { display: flex; flex-direction: column; gap: 14px; }
.yq-hero .crumbs a, .yq-hero .crumbs li { color: var(--line); }
.yq-brand { display: flex; align-items: center; gap: 14px; }
.yq-brand img { width: 56px; height: 56px; border-radius: 12px; outline: 1px solid var(--muted); }
.yq-name { font-size: 22px; font-weight: 700; color: var(--paper); }
.yq-name .en { font-family: var(--en); font-weight: 800; }
.yq-sep { color: var(--yellow); margin-inline: 4px; }
.yq-desc { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--line); text-align: right; }
.yq-hero h1 { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.35; }
.yq-slogan { font-weight: 700; color: var(--yellow); font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.yq-slogan .en { font-family: var(--en); }
.yq-dot { color: var(--muted); }
.yq-ctas { margin-top: 6px; }
.yq-hero .yq-link { color: var(--paper); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.yq-status { font-size: 14px; color: var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yq-radar { margin: 0; position: relative; max-width: 440px; width: 100%; margin-inline: auto; }
.yq-radar svg { width: 100%; height: auto; display: block; }
.yq-sweep { transform-origin: 200px 200px; animation: yq-sweep 6s linear infinite; }
@keyframes yq-sweep { to { transform: rotate(360deg); } }
.yq-radar figcaption { position: absolute; inset: 0; pointer-events: none; font-size: 13px; font-weight: 600; color: var(--paper); }
.yq-n { position: absolute; background: var(--ink); border: 1px solid var(--muted); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.yq-n1 { top: 0; left: 50%; transform: translate(-50%, -30%); }
.yq-n2 { top: 50%; right: 0; transform: translate(10%, -160%); }
.yq-n3 { bottom: 0; left: 50%; transform: translate(-50%, 30%); }
.yq-n4 { top: 50%; left: 0; transform: translate(-10%, -160%); }
.yq-problems { display: grid; gap: 10px; counter-reset: yq; }
.yq-problems li { background: var(--card, var(--paper)); border: 1px solid var(--line); border-inline-start: 4px solid var(--yellow); padding: 12px 16px; font-weight: 500; }
.yq-chain { font-family: var(--en); font-weight: 600; text-align: center; margin-top: 8px; }
.yq-ba { display: grid; gap: 16px; }
.yq-ba .card { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.yq-ba .en { font-family: var(--en); font-size: 14px; color: var(--muted); text-align: left; line-height: 1.7; }
.yq-after { border-color: var(--ink) !important; }
.yq-after .pid { color: var(--ink); }
.yq-features .why-item .en { font-family: var(--en); font-size: 13px; color: var(--muted); text-align: right; }
.yq-sources { display: grid; gap: 12px; }
.yq-sources li { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); background: var(--card, var(--paper)); padding: 16px; }
.yq-sources b { font-size: 20px; }
.yq-sources span { color: var(--muted); font-size: 15px; }
.yq-final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.yq-final img { border-radius: 14px; }
.yq-final h2 { color: var(--paper); font-size: clamp(26px, 4vw, 36px); }
.yq-final h2 .en { font-family: var(--en); font-weight: 800; }
.yq-final .yq-slogan { justify-content: center; }
.yq-parent { color: var(--line); font-family: var(--en); font-size: 14px; }
.yq-parent b { color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .yq-sweep { animation: none; } }
@media (min-width: 768px) {
  .yq-problems { grid-template-columns: 1fr 1fr; }
  .yq-ba { grid-template-columns: 1fr 1fr; }
  .yq-sources { grid-template-columns: 1fr 1fr; }
  .yq-steps { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (min-width: 1024px) {
  .yq-hero-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; }
  .yq-steps { grid-template-columns: repeat(6, 1fr) !important; }
  .yq-sources { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Yaqaz app ---------- */
.yq-section { padding-top: 24px; }
.yq-wrap { max-width: 1440px; }
.yq-app { display: flex; flex-direction: column; gap: 16px; }
.yq-banner { margin: 0; }
.yq-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.yq-top-brand { display: flex; align-items: center; gap: 12px; }
.yq-top-brand img { border-radius: 10px; }
.yq-top-name { font-weight: 700; font-size: 18px; }
.yq-top-name .en { font-family: var(--en); font-weight: 800; }
.yq-top-org { font-size: 13px; color: var(--line); }
.yq-top-slogan { font-family: var(--en); font-weight: 600; color: var(--yellow); font-size: 14px; }
.yq-grid { display: grid; gap: 16px; align-items: start; }
.yq-nav { min-width: 0; }
.yq-nav ul { display: grid; gap: 2px; margin-bottom: 8px; }
.yq-nav-h { font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0 4px; letter-spacing: .02em; }
.yq-nav a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: 15px; }
.yq-nav a:hover { background: var(--paper); }
.yq-nav a[aria-current] { background: var(--ink); color: var(--paper); font-weight: 600; }
.yq-soon { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; color: var(--muted); font-size: 14px; }
.yq-soon small { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; }
.yq-main { padding: 24px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.yq-main:focus { outline: none; }
.yq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.yq-h1 { font-size: clamp(22px, 3vw, 28px); line-height: 1.4; }
.yq-kpis li b { font-size: 28px; }
.yq-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.yq-b { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.yq-red { background: #FEE4E2; color: #912018; border-color: #912018; }
.yq-org { background: #FFE7CC; color: #7A2E0E; border-color: #7A2E0E; }
.yq-amb { background: #FFF4B8; color: #4D3F00; border-color: #4D3F00; }
.yq-grn { background: #DCFAE6; color: #085D3A; border-color: #085D3A; }
.yq-gry { background: #EAECF0; color: #344054; border-color: #98A2B3; }
.yq-miss { font-size: 12px; color: #912018; font-weight: 600; }
.yq-err { margin-bottom: 8px; }
.yq-map { display: grid; gap: 10px; }
.yq-map label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.yq-map select, .yq-main .adm-inline input, .yq-main .adm-inline select { min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; font: 400 15px var(--ar); background: var(--paper); }
.yq-mode { border: 0; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.yq-mode legend { font-weight: 600; margin-bottom: 6px; }
.yq-errs { border: 1px solid var(--line); padding: 8px 12px; background: var(--paper); font-size: 14px; }
.yq-errs summary { cursor: pointer; font-weight: 600; }
.yq-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.yq-tabs button { min-height: 42px; padding: 0 14px; background: none; border: 0; border-bottom: 3px solid transparent; font: 500 15px var(--ar); color: var(--muted); cursor: pointer; }
.yq-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--yellow); }
.yq-main textarea, .yq-main input[type="url"], .yq-main input[type="file"] { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font: 400 15px/1.6 var(--ar); background: var(--paper); }
.yq-main [data-p] label { display: block; font-weight: 600; margin-bottom: 6px; }
.yq-form .field-full textarea { min-height: 84px; }
.yq-table td { vertical-align: top; }
.yq-table details summary { cursor: pointer; color: var(--ink); font-weight: 600; font-size: 13px; }
.yq-table details ul { padding-inline-start: 16px; list-style: disc; font-size: 13px; }
.yq-recips { display: grid; gap: 6px; }
@media (min-width: 768px) { .yq-map { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .yq-grid { grid-template-columns: 240px 1fr; }
  .yq-nav { position: sticky; top: 88px; }
}
@media (max-width: 1023px) {
  .yq-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
  .yq-nav::-webkit-scrollbar { display: none; }
  .yq-nav-h, .yq-soon { display: none; }
  .yq-nav ul { display: contents; }
  .yq-nav a { white-space: nowrap; min-height: 40px; border: 1px solid var(--line); background: var(--paper); }
  .yq-main { padding: 16px; }
}

/* ---------- Google sign-in + profile (Firebase accounts) ---------- */
.oauth { display: flex; flex-direction: column; gap: 6px; }
.btn-google { width: 100%; gap: 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); font-weight: 600; }
.btn-google:hover { background: var(--warm); }
.btn-google .g-logo { flex: none; }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 0; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth-note { font-size: 13px; margin: 0; }
.acc-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.acc-avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow); background: var(--warm); }
.acc-initial { display: grid; place-items: center; font-family: var(--en); font-weight: 800; font-size: 24px; color: var(--ink); background: var(--yellow); border-color: var(--ink); }
.acc-security { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.acc-security .mini-title { margin: 0; }
