/* ===================================================================
   Industrial Automation Training — Design System
   =================================================================== */

:root {
  --navy-950: #0a1628;
  --navy-900: #0d1f36;
  --navy-800: #132a47;
  --navy-700: #1c3a5e;
  --steel-600: #4a5c73;
  --steel-500: #64798f;
  --steel-300: #a8b5c4;
  --steel-100: #e7ebef;
  --gray-50: #f6f8fa;
  --white: #ffffff;
  --amber-500: #f5a623;
  --amber-600: #d98c0f;
  --amber-100: #fdf0da;
  --success: #2e9e6b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08), 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.10), 0 2px 4px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(10, 22, 40, 0.16);
  --transition: 180ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--alt { background: var(--gray-50); }
.section--dark {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--amber-500); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-head p { color: var(--steel-600); font-size: 1.05rem; margin: 0; }
.section--dark .section-head p { color: var(--steel-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--amber-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--amber-600); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-900);
}
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand-text small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--amber-500);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--steel-300);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 10px 16px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* A door, not a call to action. Deliberately a quiet text link and not a
   button, so it never competes with Enroll Now — someone who has already paid
   is looking for a way in, not a second thing to buy. It keeps the weight and
   colour of .nav-links a rather than introducing a third nav treatment.
   Unlike .btn-outline it stays visible below 760px: on a phone it is the only
   route to the course, so hiding it behind the hamburger would defeat it. */
.nav-signin {
  color: var(--steel-300);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 8px 4px;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-signin:hover { color: var(--white); }
.nav-signin:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(245, 166, 35, 0.14), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 96px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  margin-bottom: 20px;
}
.hero-copy .accent { color: var(--amber-500); }
.hero-copy p {
  font-size: 1.12rem;
  color: var(--steel-300);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-size: 1.7rem;
  color: var(--white);
}
.hero-stats .stat span {
  font-size: 0.82rem;
  color: var(--steel-300);
}

.hero-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 28px;
  backdrop-filter: blur(4px);
}
.hero-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-panel-header .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber-500); }
.hero-panel-header span { font-weight: 700; font-size: 0.9rem; color: var(--steel-300); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-panel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-panel-row:last-child { border-bottom: none; }
.hero-panel-row .ico {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(245, 166, 35, 0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--amber-500);
}
.hero-panel-row .txt b { display: block; font-size: 0.93rem; color: var(--white); }
.hero-panel-row .txt span { font-size: 0.8rem; color: var(--steel-300); }

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: 36px 0;
  border-bottom: 1px solid var(--steel-100);
}
.logo-strip p {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 22px;
}
.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.platform-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--navy-900);
}
.platform-badge.soon {
  color: var(--steel-500);
  opacity: 0.55;
}
.platform-badge small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-500);
  background: var(--steel-100);
  padding: 3px 9px;
  border-radius: 20px;
}
.platform-badge.available small {
  color: var(--amber-600);
  background: var(--amber-100);
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: 12px;
  padding: 30px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--amber-100);
  color: var(--amber-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--steel-600); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Course cards ---------- */
.course-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.course-media {
  height: 132px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-500);
}
.course-media svg { width: 44px; height: 44px; }
.course-level {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
}
.course-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.course-body p { color: var(--steel-600); font-size: 0.92rem; flex: 1; }
.course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--steel-500);
  font-weight: 600;
  margin: 14px 0 18px;
  flex-wrap: wrap;
}
.course-meta span { display: flex; align-items: center; gap: 6px; }
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--steel-100);
}
.course-price { font-weight: 800; font-size: 1.05rem; color: var(--navy-900); }
.course-price small { font-weight: 500; color: var(--steel-500); font-size: 0.78rem; }
.link-arrow {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 30px;
  border: 1px solid var(--steel-100);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--steel-600);
  background: var(--white);
  transition: all var(--transition);
}
.filter-chip:hover { border-color: var(--navy-700); color: var(--navy-900); }
.filter-chip.active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.filter-chip:disabled,
.filter-chip.soon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 0.55;
  cursor: not-allowed;
}
.filter-chip:disabled:hover { border-color: var(--steel-100); color: var(--steel-600); }
.filter-chip.soon small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--steel-100);
  color: var(--steel-500);
  padding: 2px 7px;
  border-radius: 20px;
}

/* ---------- Process / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step { position: relative; padding-left: 4px; }
.step .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--amber-100);
  -webkit-text-stroke: 1.5px var(--amber-500);
  color: transparent;
  display: block;
  margin-bottom: 10px;
}
.step h4 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: var(--steel-600); font-size: 0.9rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-band b {
  display: block;
  font-size: 2.1rem;
  color: var(--white);
}
.stats-band span { font-size: 0.85rem; color: var(--steel-300); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: 12px;
  padding: 28px;
}
.testimonial .stars { color: var(--amber-500); font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial p { color: var(--navy-800); font-size: 0.98rem; }
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--amber-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.testimonial-person b { display: block; font-size: 0.9rem; }
.testimonial-person span { font-size: 0.8rem; color: var(--steel-500); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  border-radius: 16px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.7rem; margin-bottom: 8px; }
.cta-band p { color: var(--steel-300); margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Team ---------- */
.team-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}
.team-photo {
  height: 180px;
  background: linear-gradient(135deg, var(--steel-100), var(--gray-50));
  display: flex; align-items: center; justify-content: center;
  color: var(--steel-500);
}
.team-photo svg { width: 56px; height: 56px; }
.team-info { padding: 22px; }
.team-info h4 { font-size: 1rem; margin-bottom: 2px; }
.team-info span { font-size: 0.83rem; color: var(--amber-600); font-weight: 700; }
.team-info p { font-size: 0.85rem; color: var(--steel-600); margin: 10px 0 0; }

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: 14px;
  padding: 36px;
}
.contact-info-card h3 { font-size: 1.2rem; }
.contact-info-card p { color: var(--steel-300); font-size: 0.93rem; }
.contact-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-row .ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(245, 166, 35, 0.12);
  color: var(--amber-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row b { display: block; font-size: 0.9rem; }
.contact-row span, .contact-row div { font-size: 0.86rem; color: var(--steel-300); }

.form-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: 14px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--steel-100);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--navy-900);
  background: var(--gray-50);
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--steel-500); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  background: #ecfaf3;
  border: 1px solid #bfe9d5;
  color: var(--success);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-success.visible { display: block; }
.form-error {
  display: none;
  background: #fdecec;
  border: 1px solid #f3c2c2;
  color: #b3261e;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-error a { color: #b3261e; text-decoration: underline; }
.form-error.visible { display: block; }

.map-block {
  margin-top: 24px;
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
  background:
    linear-gradient(rgba(13,31,54,0.85), rgba(13,31,54,0.85)),
    repeating-linear-gradient(45deg, var(--steel-300) 0, var(--steel-300) 1px, transparent 1px, transparent 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  gap: 8px;
}

/* ---------- Cal.com booking embed ---------- */
.cal-embed-wrap {
  width: 100%;
  max-width: 100%;
  height: clamp(560px, 80vh, 780px);
  border: 1px solid var(--steel-100);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
#cal-inline-embed {
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
  .cal-embed-wrap { height: 90vh; border-radius: 10px; }
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--steel-100);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
}
.faq-q .plus {
  font-size: 1.3rem;
  color: var(--amber-600);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
  color: var(--steel-600);
  font-size: 0.93rem;
}
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 20px; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}
.breadcrumb {
  position: relative;
  font-size: 0.82rem;
  color: var(--steel-300);
  margin-bottom: 14px;
  font-weight: 600;
}
.breadcrumb .amber { color: var(--amber-500); }
.page-header h1 { position: relative; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.page-header p { position: relative; color: var(--steel-300); max-width: 560px; font-size: 1.02rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--steel-300);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.social-row a:hover { background: var(--amber-500); color: var(--navy-950); }
.footer-col h5 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 480px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--navy-950);
    flex-direction: column;
    padding: 12px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  body.nav-open .nav-links a { padding: 14px 4px; width: 100%; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }
}

/* ===================================================================
   Clickable course cards
   The whole card is a link to its module page, but the card also
   contains an Enroll link — nesting anchors is invalid HTML, so the
   title link stretches over the card with ::after and Enroll is
   lifted above it. Clicking Enroll fires only Enroll.
   =================================================================== */

.course-card--linked { position: relative; }
.course-card--linked .card-link-overlay { color: inherit; }
.course-card--linked .card-link-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.course-card--linked:hover .card-link-overlay { color: var(--amber-600); }

/* Anything that must stay independently clickable sits above the overlay. */
.link-arrow--above { position: relative; z-index: 2; }
.link-arrow--above:hover { color: var(--amber-600); }

/* Focus ring around the whole card, not just the title text. */
.course-card--linked:has(.card-link-overlay:focus-visible) {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
}
@supports not selector(:has(*)) {
  .course-card--linked:focus-within {
    outline: 3px solid var(--amber-500);
    outline-offset: 3px;
  }
}

/* ===================================================================
   Module / lesson page — slide viewer
   =================================================================== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--steel-600);
  margin-bottom: 20px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--navy-900); }

.viewer {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}
.viewer-bar-title {
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-500);
}
.viewer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.viewer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}
.viewer-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}
.viewer-btn:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 2px;
}
.viewer-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.viewer-btn--icon { padding: 7px 10px; }

.slide-counter {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--steel-300);
  min-width: 108px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.viewer-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--gray-50);
}

/* One-click start for the narrated run. Sits over the slide — the slide
   stays visible behind it — and is gone for the rest of the session once
   playback has actually begun. */
.viewer-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 22, 40, 0.32);
}
.viewer-start[hidden] { display: none; }
.viewer-start .btn { box-shadow: var(--shadow-md); }

.viewer-canvas-wrap { width: 100%; display: flex; justify-content: center; }
.viewer-canvas-wrap canvas {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

/* ---------- Viewer states ---------- */
.viewer-state {
  max-width: 460px;
  margin: 0 auto;
  padding: 32px 16px;
  text-align: center;
  color: var(--steel-600);
}
.viewer-state h3 { font-size: 1.1rem; color: var(--navy-900); margin-bottom: 8px; }
.viewer-state p { font-size: 0.94rem; margin-bottom: 0; }
.viewer-state p + .btn { margin-top: 20px; }
.viewer-state a { color: var(--amber-600); font-weight: 700; }
/* The preview offer sits under the main sentence as a quieter second line —
   it is the consolation, not the call to action. */
.viewer-state-preview { margin-top: 14px; font-size: 0.88rem; color: var(--steel-500); }
.viewer-state-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--steel-100);
  color: var(--steel-500);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.viewer-state--empty {
  border: 1px dashed var(--steel-300);
  border-radius: 12px;
  background: var(--white);
  padding: 36px 28px;
}

.viewer-spinner {
  display: block;
  width: 26px; height: 26px;
  margin: 0 auto 14px;
  border: 2.5px solid var(--steel-100);
  border-top-color: var(--amber-500);
  border-radius: 50%;
  animation: viewer-spin 700ms linear infinite;
}
@keyframes viewer-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .viewer-spinner { animation-duration: 2.5s; }
}

.viewer-hint {
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--steel-100);
  font-size: 0.8rem;
  color: var(--steel-500);
  text-align: center;
}

/* Fullscreen: the viewer becomes the whole screen. */
.viewer--fullscreen { border-radius: 0; border: none; display: flex; flex-direction: column; }
.viewer--fullscreen .viewer-stage { flex: 1; min-height: 0; background: var(--navy-950); }

/* ---------- Shared "not yet available" pill ---------- */
.soon-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--steel-100);
  color: var(--steel-500);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ===================================================================
   Slide narration player
   Sits inside the viewer panel, directly under the canvas — it belongs
   to the slide, not the page. Most slides have no recording yet, so
   the disabled state has to look deliberate rather than broken.
   =================================================================== */

.narration {
  padding: 14px 18px;
  border-top: 1px solid var(--steel-100);
  background: var(--white);
}

.narration-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.narration-play {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--navy-900);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), opacity var(--transition);
}
.narration-play:hover:not(:disabled) { background: var(--amber-600); }
.narration-play:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }
.narration-play:disabled { background: var(--steel-100); color: var(--steel-500); cursor: not-allowed; }
.narration-play .icon-play { margin-left: 2px; }
/* The UA [hidden] rule is namespaced to HTML, so an SVG icon marked hidden
   still paints — without this, play and pause show at the same time. */
.narration-play svg[hidden] { display: none; }

.narration-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--steel-500);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: center;
}

/* Shared slider look for seek + volume. */
.narration-seek,
.narration-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: var(--steel-100);
  outline: none;
}
.narration-seek { flex: 1 1 160px; min-width: 120px; }
.narration-vol-slider { width: 78px; flex: none; }

.narration-seek::-webkit-slider-thumb,
.narration-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--amber-500);
  border: none;
  cursor: pointer;
}
.narration-seek::-moz-range-thumb,
.narration-vol-slider::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--amber-500);
  border: none;
  cursor: pointer;
}
.narration-seek:focus-visible,
.narration-vol-slider:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 3px; }
.narration-seek:disabled::-webkit-slider-thumb { background: var(--steel-300); cursor: not-allowed; }
.narration-seek:disabled::-moz-range-thumb { background: var(--steel-300); cursor: not-allowed; }

.narration-volume {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--steel-500);
  flex: none;
}

.narration-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.narration-auto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--steel-600);
  cursor: pointer;
}
.narration-auto input { accent-color: var(--amber-600); width: 15px; height: 15px; cursor: pointer; }
.narration-auto:hover { color: var(--navy-900); }

/* The normal state today: no recording for this slide yet. */
.narration-empty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--steel-500);
}
.narration-empty .soon-pill { margin-bottom: 0; }

/* Only the transport dims — the auto-advance toggle has to stay usable on a
   silent slide, since that's exactly where a student wants to switch it off. */
.narration--empty .narration-row { opacity: 0.45; }

.viewer--fullscreen .narration { background: var(--white); }

@media (max-width: 560px) {
  .narration-volume { order: 3; }
  .narration-seek { flex-basis: 100%; order: 4; }
}

/* ===================================================================
   Course page (/course/:code)
   Sits between the catalog and the lesson viewer. Everything here uses
   the tokens at the top of this file — no new colours, no new fonts.
   =================================================================== */

.course-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.course-hero-level {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-500);
  border: 1px solid rgba(245, 166, 35, 0.45);
  padding: 4px 12px;
  border-radius: 20px;
}
.course-hero-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}
.course-hero-price small { font-size: 0.8rem; font-weight: 600; color: var(--steel-300); }

/* ---------- Promo video ---------- */
.promo-video {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-950);
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.promo-video video {
  display: block;
  width: 100%;
  height: auto;
  /* Keeps a tall phone from letterboxing into a sliver. */
  max-height: 70vh;
  background: var(--navy-950);
}

/* ---------- Two-column body ---------- */
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.course-main { min-width: 0; }
.course-prose {
  font-size: 1.02rem;
  color: var(--steel-600);
  line-height: 1.75;
  margin-bottom: 1.1em;
}

/* ---------- Module list ---------- */
.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
  border-top: 1px solid var(--steel-100);
}
.module-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--steel-100);
}
.module-num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
/* A module with no material yet is deliberately quieter — present on the
   roadmap, plainly not something you can open. The numbered circle is NOT
   part of that: it stays filled navy on every row so the list reads as one
   sequence, and only the title colour and the Coming soon pill mark the
   difference. */
.module-row--soon .module-title { color: var(--steel-600); }

.module-detail { min-width: 0; }
.module-title {
  font-size: 1.02rem;
  margin: 0 0 4px;
}
.module-title a { color: var(--navy-900); }
.module-title a:hover { color: var(--amber-600); text-decoration: underline; }
.module-summary {
  font-size: 0.92rem;
  color: var(--steel-600);
  margin: 0 0 8px;
}
.module-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.module-fact {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel-500);
  background: var(--gray-50);
  border: 1px solid var(--steel-100);
  padding: 3px 10px;
  border-radius: 20px;
}
.module-fact--live { color: #1d6f4c; background: #e2f4ec; border-color: #b9e2cd; }
.module-facts .soon-pill { margin-bottom: 0; }

/* ---------- Module preview video ----------
   A thumbnail on the right of a module row, vertically aligned with that
   row's text block. Only rendered for a module that actually has a video, so
   .module-detail--grow is what keeps every OTHER row at full text width:
   the thumbnail is a sibling that simply isn't there most of the time.
   Built from the existing tokens — no separate palette. */
.module-detail--grow { flex: 1 1 auto; }

.module-preview {
  flex: none;
  position: relative;
  /* Aligns the thumbnail's top edge with the title rather than centring it
     against a row whose height varies with the summary and chip wrapping. */
  align-self: flex-start;
  width: 160px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  /* With no poster uploaded this is the whole visual: a navy card carrying
     the play glyph. Deliberately not a <video preload="metadata"> used as a
     still — that would fetch every clip's header on a marketing page. */
  background: linear-gradient(140deg, var(--navy-900), var(--navy-950));
  transition: transform var(--transition), border-color var(--transition);
}
.module-preview:hover { transform: translateY(-2px); border-color: var(--amber-500); }
.module-preview:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }

.module-preview__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-preview__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber-500);
  color: var(--navy-950);
  /* The glyph's own optical centre sits left of the circle's. */
  padding-left: 3px;
}

.module-preview__time {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  background: rgba(10, 22, 40, 0.78);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Narrow screens stack the thumbnail under the text rather than squeezing
   the title into a column too thin to read. */
@media (max-width: 620px) {
  .module-row { flex-wrap: wrap; }
  .module-preview { width: 100%; max-width: 260px; margin-left: 48px; }
}

.lab-note {
  font-size: 0.86rem;
  color: var(--steel-500);
  margin-top: 18px;
}

/* ---------- Sidebar ---------- */
.course-side { position: sticky; top: 24px; }
.side-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.side-card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 14px;
}
.side-list { display: grid; gap: 10px; }
.side-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--navy-900);
  line-height: 1.5;
}
.side-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--amber-500);
}
.side-note { font-size: 0.88rem; color: var(--steel-600); margin: 0; }
.side-card--cta { background: var(--gray-50); }

/* ---------- Disclosure ---------- */
.disclosure {
  margin-top: 56px;
  padding: 26px 28px;
  background: var(--gray-50);
  border: 1px solid var(--steel-100);
  border-left: 3px solid var(--amber-500);
  border-radius: var(--radius);
}
.disclosure h3 {
  font-size: 1rem;
  color: var(--navy-900);
  margin-bottom: 12px;
}
.disclosure p {
  font-size: 0.94rem;
  color: var(--steel-600);
  line-height: 1.7;
  margin-bottom: 0.9em;
}
.disclosure p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .course-layout { grid-template-columns: 1fr; gap: 36px; }
  .course-side { position: static; }
}

/* ---------- Video modal ---------- */
.video-note {
  font-size: 0.82rem;
  color: var(--steel-500);
  margin: 12px 0 0;
}

.video-modal {
  position: fixed;
  inset: 0;
  /* Above .site-header, which is sticky at z-index 100. */
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  /* Top padding leaves room for the close button sitting above the video. */
  padding: 68px 20px 24px;
}
.video-modal.is-open { display: flex; }
.video-modal[hidden] { display: none; }

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.9);
}

.video-modal__dialog {
  position: relative;
  width: min(1080px, 100%);
}

.video-modal__video {
  display: block;
  width: 100%;
  /* The employer skill-test demo is 2520x1080. Declared so preload="none"
     can't collapse the element to the 300x150 default before metadata
     arrives. This value is specific to THAT clip — a modal showing something
     else must not inherit it, see --auto below. */
  aspect-ratio: 7 / 3;
  max-height: calc(100vh - 116px);
  object-fit: contain;
  background: var(--navy-950);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* A modal that shows more than one clip cannot hardcode a shape. 16/9 is only
   the placeholder that stops preload="none" collapsing the element to
   300x150; the script replaces it with the real ratio the moment metadata
   arrives, and clears it again on close so the next clip starts neutral. */
.video-modal__video--auto { aspect-ratio: 16 / 9; }

.video-modal__close {
  position: absolute;
  /* Above the video's top-right corner, so it never covers the frame. */
  bottom: calc(100% + 12px);
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--steel-100);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
  transition: background var(--transition), color var(--transition);
}
.video-modal__close:hover { background: var(--amber-500); color: var(--navy-950); }
.video-modal__close:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 3px; }

/* Keeps the page behind the overlay from scrolling. */
body.has-modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .video-modal { padding: 60px 14px 18px; }
  .video-modal__video { max-height: calc(100vh - 100px); }
  .video-modal__close { width: 36px; height: 36px; bottom: calc(100% + 10px); }
}

/* ---------- Knowledge check (lesson page) ---------- */
/* ---------- Live dashboard panel (lesson page) ----------
   Built from the existing tokens, like .kc* — no separate palette, no
   second type scale. */
.screen-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  background: var(--gray-50);
}
.screen-text { min-width: 0; }
.screen-title {
  font-size: 1.02rem;
  margin: 4px 0 6px;
}
.screen-note {
  font-size: 0.9rem;
  color: var(--steel-600);
  margin: 0;
  max-width: 62ch;
}
.screen-open { flex: none; }

.kc-section { padding-top: 0; }
.kc {
  background: var(--gray-50);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  padding: 36px 34px;
}

.kc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.kc-head .kc-label { margin-bottom: 0; }
.kc-counter {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-500);
}

.kc-prompt {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--navy-900);
  margin: 18px 0 26px;
  max-width: 28em;
}

.kc-options { display: grid; gap: 10px; }
.kc-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  padding: 15px 18px;
  font-size: 0.98rem;
  color: var(--navy-900);
  transition: border-color var(--transition), background var(--transition);
}
.kc-option:hover:not(:disabled) { border-color: var(--steel-300); }
.kc-option:disabled { cursor: default; }
.kc-option:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }
.kc-option.is-pending { opacity: 0.7; }
.kc-letter {
  flex: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--steel-500);
}
/* Right and wrong carry an icon-free colour change, so the state is also
   readable from the border weight alone. */
.kc-option.is-correct {
  border-color: var(--success);
  border-width: 2px;
  background: rgba(46, 158, 107, 0.06);
}
.kc-option.is-wrong {
  border-color: #b4443a;
  border-width: 2px;
  background: rgba(180, 68, 58, 0.06);
}

.kc-explain {
  margin: 20px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--amber-500);
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--steel-600);
}

.kc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--steel-100);
}
.kc-score {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.kc-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.kc-buttons .btn:disabled { opacity: 0.4; cursor: default; transform: none; }

.kc-done { font-size: 1.02rem; line-height: 1.7; color: var(--steel-600); margin: 0; }
.kc-done strong { color: var(--navy-900); }

@media (max-width: 600px) {
  .kc { padding: 26px 20px; }
  .kc-foot { flex-direction: column; align-items: stretch; }
  .kc-buttons .btn { flex: 1; justify-content: center; }
}
