/* =========================================================
   eLearning Gate — Corporate Site Styles
   Plain CSS, no frameworks, no external dependencies.
   Brand: deep green, teal, white, restrained gold.
   ========================================================= */

:root {
  /* Brand colors */
  --green-900: #06261c;
  --green-800: #0a3a29;
  --green-700: #0f4d37;
  --green-600: #12664a;
  --teal-500: #0f9488;
  --teal-400: #17b3a3;
  --gold-500: #d4af37;
  --gold-400: #e8c766;
  --white: #ffffff;

  /* Implementation-cycle accent set (mobile fallback badges) */
  --stage-1: var(--green-600);
  --stage-2: var(--teal-500);
  --stage-3: var(--gold-500);
  --stage-4: #c17a3d;
  --stage-5: #7c5ea6;
  --stage-6: #3f72a8;
  --stage-7: #0e7a63;

  /* Neutrals / text */
  --ink-900: #0b1d17;
  --ink-700: #33453f;
  --ink-500: #5c7069;
  --ink-300: #9db0a9;
  --surface-0: #ffffff;
  --surface-1: #f5f9f7;
  --surface-2: #eef4f1;
  --border: #dde8e3;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(6, 38, 28, 0.06);
  --shadow-md: 0 12px 30px rgba(6, 38, 28, 0.10);
  --shadow-lg: 0 24px 60px rgba(6, 38, 28, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --header-h: 76px;
  --container-w: 1180px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, figure, form { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

body {
  font-family: var(--font-base);
  color: var(--ink-900);
  background: var(--surface-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); color: var(--green-900); }
h3 { font-size: 1.15rem; color: var(--green-900); }
.uppercase-head { text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold-500);
  color: var(--green-900);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.expansion-banner :focus-visible,
.demo-cta :focus-visible {
  outline-color: var(--gold-400);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--green-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-outline-dark {
  background: transparent;
  color: var(--green-800);
  border: 1.5px solid var(--green-800);
}
.btn-outline-dark:hover { background: var(--green-800); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  max-width: 1360px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; color: var(--green-900); }
.brand-text small { font-size: 0.72rem; color: var(--teal-500); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.main-nav ul { display: flex; flex-wrap: nowrap; gap: 20px; }
.main-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.site-header .main-nav a {
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover { color: var(--green-800); }
.main-nav a:hover::after { transform: scaleX(1); }

/* Active-section highlighting (scroll-synced via IntersectionObserver in main.js).
   Reuses the existing ::after underline bar — no box-size/layout change. */
.main-nav a.active {
  color: var(--green-900);
  font-weight: 700;
}
.main-nav a.active::after {
  background: var(--green-700);
  height: 3px;
  transform: scaleX(1);
}

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-900);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Reusable media slot (real screenshot component) ----------
   Shows a polished CSS/SVG mock-up (.media-fallback) by default.
   assets/js/main.js probes the data-src image; if it loads, a real
   <img> is inserted and .has-real hides the fallback automatically.
   No broken image is ever shown if the file is missing. */
.media-slot { position: relative; display: block; }
.media-slot .media-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.media-slot.has-real .media-fallback { display: none; }

/* Official logo: fixed height, natural width, never cropped/stretched */
.media-slot--logo {
  display: inline-flex;
  align-items: center;
  height: 40px;
  width: auto;
  max-width: 190px;
  flex-shrink: 0;
}
.media-slot--logo .media-real {
  width: auto;
  height: 100%;
  max-width: 190px;
  object-fit: contain;
  border-radius: 0;
}

.media-slot--feature {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.media-slot--dash {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 16px 0 18px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding-top: 96px;
  padding-bottom: 96px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(212, 175, 55, 0.18), transparent 60%),
    linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 55%, var(--teal-500) 130%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
}
.eyebrow-dark { color: var(--teal-500); }

.hero h1 {
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem);
  color: var(--white);
  margin-bottom: 22px;
}
.hero-desc {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.hero-actions .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.55); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.hero-trust li { position: relative; padding-left: 18px; }
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* ---------- Hero app-window mock-up ---------- */
.hero-visual { position: relative; }
.app-window {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.dot-red { background: #e97b6b; }
.dot-gold { background: var(--gold-500); }
.dot-teal { background: var(--teal-400); }
.app-title { margin-left: 10px; font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.55); letter-spacing: 0.02em; }

.app-body { display: flex; gap: 16px; padding: 22px; }
.app-sidebar { display: flex; flex-direction: column; gap: 10px; width: 44px; }
.app-nav-icon { height: 30px; border-radius: 8px; background: rgba(255,255,255,0.12); }
.app-nav-icon.is-active { background: var(--teal-400); }

.app-main { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app-stats { display: flex; gap: 12px; }
.app-stat {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-stat-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-stat-value { font-size: 1.3rem; font-weight: 800; color: var(--white); }
.app-stat-value-sm { font-size: 0.95rem; color: var(--gold-400); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); display: inline-block; }

.app-panels { display: flex; gap: 16px; align-items: center; background: rgba(255,255,255,0.06); border-radius: 12px; padding: 16px; }
.app-progress-ring { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.app-progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,0.15); stroke-width: 9; }
.ring-value { fill: none; stroke: var(--gold-500); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 78 100; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-center strong { font-size: 1.05rem; color: var(--white); }
.ring-center span { font-size: 0.6rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.03em; }

.app-chart { flex: 1; min-width: 0; }
.app-chart-title { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.chart-svg { width: 100%; height: 78px; }
.chart-line { fill: none; stroke: var(--gold-500); stroke-width: 2.5; }
.chart-fill { stroke: none; fill: rgba(232, 199, 102, 0.16); }

.visual-caption {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
  letter-spacing: 0.02em;
}
.feature-visual .visual-caption,
.workbook-preview .visual-caption { color: var(--ink-500); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-1); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-sub { color: var(--ink-500); font-size: 1.02rem; margin-top: 14px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Module cards (shared: ecosystem satellites + second row) ---------- */
.module-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-400);
}
.module-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-700), var(--teal-500));
  color: var(--white);
}
.module-icon svg { width: 21px; height: 21px; }
.module-card h3 { font-size: 1.02rem; }
.module-card p { color: var(--ink-500); font-size: 0.92rem; }

/* ---------- Ecosystem diagram ---------- */
.ecosystem { position: relative; margin-bottom: 60px; }

.eco-core {
  position: relative;
  max-width: 460px;
  margin: 0 auto 0;
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--green-700);
}
.core-badge {
  display: inline-block;
  background: rgba(212,175,55,0.18);
  color: var(--gold-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.core-icon { margin: 0 auto 16px; background: linear-gradient(135deg, var(--teal-400), var(--gold-500)); }
.eco-core h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 10px; }
.eco-core p { color: rgba(255,255,255,0.78); font-size: 0.95rem; margin-bottom: 18px; }
.eco-core-link { color: var(--gold-400); font-weight: 700; font-size: 0.92rem; transition: color 0.2s ease; }
.eco-core-link:hover { color: var(--gold-500); }

.ecosystem-connectors {
  display: block;
  width: 100%;
  height: 60px;
  color: var(--teal-400);
  opacity: 0.55;
}
.ecosystem-connectors line { stroke: currentColor; stroke-width: 1.5; }

.ecosystem-satellites {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.ecosystem-subhead {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 56px 0 28px;
}
.ecosystem-second-row { grid-template-columns: repeat(3, 1fr); }

/* ---------- Feature section (Exam Centre) ---------- */
.section-feature { background: linear-gradient(180deg, var(--surface-1), var(--surface-0)); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-text h2 { margin-bottom: 16px; }
.feature-text .section-sub { margin-top: 0; margin-bottom: 28px; }

.check-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--ink-700); }
.check-ico {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--teal-500);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.feature-visual { display: flex; flex-direction: column; align-items: center; }
.exam-app { background: var(--white); }
.exam-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  background: var(--green-900);
  color: var(--white);
}
.exam-subject { font-size: 0.85rem; font-weight: 700; }
.exam-timer { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--gold-400); }

.exam-app-body { padding: 20px; display: flex; gap: 18px; }
.exam-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex-shrink: 0;
  width: 148px;
}
.qnum {
  display: flex; align-items: center; justify-content: center;
  height: 30px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--ink-500);
}
.qnum.is-answered { background: var(--teal-500); border-color: var(--teal-500); color: var(--white); }
.qnum.is-current { background: var(--white); border: 2px solid var(--gold-500); color: var(--green-900); }

.exam-answer { flex: 1; min-width: 0; }
.exam-q-line { height: 10px; border-radius: 4px; background: var(--surface-2); margin-bottom: 10px; }
.exam-q-line.long { width: 92%; }
.exam-q-line.short { width: 60%; }
.exam-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.exam-options span { height: 34px; border-radius: 8px; background: var(--surface-1); border: 1px solid var(--border); }
.exam-options span.is-selected { background: rgba(15,148,136,0.1); border: 1.5px solid var(--teal-500); }

.exam-app-footer {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.exam-progress { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.exam-progress i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--teal-500), var(--gold-500)); }
.exam-readiness { font-size: 0.78rem; font-weight: 700; color: var(--green-800); white-space: nowrap; }

/* ---------- Stepper (Workbook + Implementation Pathway + Analytics pipeline) ---------- */
.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 44px;
  margin-bottom: 0;
}
.stepper-item {
  position: relative;
  flex: 1 1 190px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stepper-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stepper-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -32px;
  width: 22px;
  height: 22px;
  background: currentColor;
  color: var(--teal-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.stepper-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--green-900);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.stepper-item h3 { font-size: 0.98rem; margin-bottom: 6px; }
.stepper-item p { font-size: 0.86rem; color: var(--ink-500); }
.stepper-compact { margin-bottom: 32px; gap: 28px 32px; }
.stepper-compact .stepper-item { padding: 18px 16px; flex-basis: 160px; }
.stepper-compact .stepper-item:not(:last-child)::after { top: 26px; right: -22px; width: 18px; height: 18px; }

/* ---------- Implementation cycle: approved infographic image (desktop/tablet) ---------- */

/* Visually hidden (not display:none) so it stays in the accessibility tree and
   heading outline on every viewport, without visually duplicating the title/
   subtitle already shown inside the infographic image on desktop/tablet. */
.cycle-heading-wrap {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cycle-image-wrap { position: relative; margin: 40px 0 0; }
.cycle-image-wrap img {
  width: 100%;
  max-width: 960px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.cycle-expand-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 5;
}
.cycle-expand-btn:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.cycle-expand-btn:focus-visible { outline: 2.5px solid var(--gold-500); outline-offset: 2px; }

/* ---------- Implementation cycle: expand-to-lightbox modal ---------- */
body.modal-open { overflow: hidden; }

.img-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.img-modal[hidden] { display: none; }
.img-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 38, 28, 0.72);
}
.img-modal-content {
  position: relative;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
}
.img-modal-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 92vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.img-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background 0.15s ease, transform 0.15s ease;
}
.img-modal-close:hover { background: var(--surface-2); transform: scale(1.05); }
.img-modal-close:focus-visible { outline: 2.5px solid var(--gold-500); outline-offset: 2px; }

/* ---------- Implementation cycle: mobile-only real HTML list (<=700px) ----------
   Hidden by default; shown at <=700px alongside the circular infographic
   image (both are visible on mobile: image first, then this stage-by-stage
   list as an accessible, always-readable companion to the diagram). */
.cycle-vertical { display: none; list-style: none; margin: 40px auto 0; padding: 0; max-width: 620px; }
.cycle-vertical-item { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; }
.cycle-vertical-item::before {
  content: "";
  position: absolute;
  left: 23px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  z-index: 0;
}
.cycle-vertical-badge {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.92rem;
  border: 3px solid var(--surface-1);
  box-shadow: var(--shadow-sm);
}
.cycle-vertical-item h3 { font-size: 1rem; margin-bottom: 4px; }
.cycle-vertical-item p { font-size: 0.88rem; color: var(--ink-500); }

.cycle-vertical-loop { display: flex; align-items: center; gap: 16px; padding: 12px 0 0; }
.cycle-vertical-loop-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px dashed var(--gold-500);
  color: var(--gold-500);
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.cycle-vertical-loop span:last-child { font-weight: 700; font-size: 0.9rem; color: var(--green-800); }

.cycle-principles-mobile {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.cycle-principle { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; color: var(--green-800); }
.cycle-principle-icon {
  display: flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--teal-500);
  font-size: 1.15rem;
  line-height: 1;
}

@media (max-width: 700px) {
  .cycle-heading-wrap {
    position: static;
    width: auto; height: auto;
    margin: 0 auto 40px; padding: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
  }
  .cycle-image-wrap {
    display: block;
    max-width: 500px;
    width: 100%;
    margin: 32px auto 0;
  }
  .cycle-vertical { display: block; }
  .cycle-principles-mobile { display: flex; }
}

/* ---------- Workbook preview ---------- */
.workbook-preview { margin-top: 48px; display: flex; flex-direction: column; align-items: center; }
.workbook-app { background: var(--white); }
.workbook-app-header { padding: 16px 20px; background: var(--green-900); }
.stage-pill {
  display: inline-block;
  background: rgba(212,175,55,0.18);
  color: var(--gold-400);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.workbook-app-body { display: flex; gap: 18px; padding: 24px; }
.workbook-canvas {
  position: relative;
  flex: 1;
  min-height: 140px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.wb-node { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-500); border: 3px solid var(--white); box-shadow: var(--shadow-sm); }
.wb-node-1 { top: 20px; left: 30px; }
.wb-node-2 { top: 70px; left: 130px; background: var(--gold-500); }
.wb-node-3 { top: 30px; right: 30px; }
.wb-link { position: absolute; top: 38px; left: 46px; width: 62%; height: 2px; background: var(--border); transform: rotate(6deg); transform-origin: left; }
.workbook-side { width: 100px; display: flex; flex-direction: column; gap: 10px; }
.wb-chip { height: 30px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.wb-chip:first-child { background: rgba(15,148,136,0.14); border-color: var(--teal-400); }

/* ---------- Dashboards ---------- */
.dash-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dash-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dash-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--teal-500);
  margin-bottom: 16px;
}
.dash-icon svg { width: 24px; height: 24px; }
.dash-card ul { display: flex; flex-direction: column; gap: 10px; }
.dash-card ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--ink-700);
}
.dash-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--gold-500);
  transform: rotate(45deg);
}

/* Dashboard mini previews */
.dash-preview { display: flex; align-items: center; gap: 18px; padding: 18px; background: var(--surface-1); min-height: 96px; }
.mini-ring { position: relative; width: 60px; height: 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); position: absolute; inset: 0; }
.mini-ring-track { stroke: var(--surface-2); stroke-width: 6; }
.mini-ring-value { stroke: var(--teal-500); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 65 100; }
.mini-ring span { position: relative; font-size: 0.72rem; font-weight: 800; color: var(--green-800); }
.mini-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mini-bars span { display: block; height: 8px; border-radius: 999px; width: var(--w); background: linear-gradient(90deg, var(--teal-500), var(--gold-500)); }

.teacher-preview { flex-direction: column; align-items: stretch; gap: 10px; }
.mini-row { display: flex; align-items: center; gap: 10px; }
.mini-name { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.mini-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: var(--w); background: var(--teal-500); }

.slt-preview { flex-direction: column; align-items: stretch; gap: 14px; }
.mini-compare { display: flex; align-items: flex-end; gap: 8px; height: 60px; }
.mini-compare span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--gold-400), var(--teal-500)); }
.mini-risk { display: flex; gap: 8px; }
.risk-chip { flex: 1; height: 10px; border-radius: 999px; }
.risk-low { background: var(--teal-400); }
.risk-med { background: var(--gold-500); }
.risk-high { background: #d9704f; }

/* ---------- Analytics section ---------- */
.analytics-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.metric-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.metric-chip {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--surface-0);
  border: 1.5px solid var(--teal-500);
  color: var(--green-800);
  font-weight: 700;
  font-size: 0.88rem;
}
.analytics-card {
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.analytics-card .app-chart-title { color: rgba(255,255,255,0.65); }
.chart-svg-lg { height: 140px; }
.analytics-card .chart-fill { fill: rgba(232, 199, 102, 0.14); }
.analytics-card .chart-line { stroke: var(--gold-500); }
.analytics-legend { display: flex; gap: 20px; margin-top: 14px; font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.analytics-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend-dot-teal { background: var(--teal-400); }
.legend-dot-gold { background: var(--gold-500); }

/* ---------- Why ELG ---------- */
.why-card {
  padding: 28px 26px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--surface-0), var(--surface-1));
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal-500);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--teal-500);
  margin-bottom: 14px;
}
.why-icon svg { width: 21px; height: 21px; }
.why-card p { color: var(--ink-500); margin-top: 8px; font-size: 0.94rem; }

/* ---------- Pakistan banner ---------- */
.expansion-banner {
  padding: 64px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: var(--white);
}
.expansion-icon { display: inline-flex; margin-bottom: 14px; color: var(--gold-400); }
.expansion-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 12px;
}
.expansion-banner h2 { color: var(--white); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.02em; }
.expansion-sub { color: rgba(255,255,255,0.88); font-weight: 600; margin-bottom: 8px; }
.expansion-banner p { color: rgba(255,255,255,0.8); max-width: 60ch; margin-inline: auto; }

/* ---------- Demo CTA ---------- */
.demo-cta {
  padding: 88px 0;
  background: radial-gradient(900px 400px at 50% 0%, rgba(212,175,55,0.10), transparent 70%), var(--surface-1);
  text-align: center;
}
.demo-cta-inner h2 { margin-bottom: 14px; }
.demo-cta-text { max-width: 640px; margin: 0 auto 32px; color: var(--ink-500); font-size: 1.02rem; }
.demo-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Contact form ---------- */
.form-wrap { max-width: 780px; }
.demo-form {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 700; color: var(--ink-700); }
.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface-1);
  font-size: 0.96rem;
  color: var(--ink-900);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: var(--white);
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #c2492e;
}
.field-error {
  font-size: 0.8rem;
  color: #c2492e;
  min-height: 1em;
}
.demo-form .btn { margin-top: 6px; }
.demo-form .btn[disabled] { opacity: 0.7; cursor: not-allowed; transform: none; }
/* Honeypot: kept in normal flow (not display:none) so it stays out of the
   accessibility tree cleanly without triggering "hidden field" bot heuristics
   that specifically look for display:none / visibility:hidden. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -9999px;
}
.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(15,148,136,0.1);
  border: 1px solid var(--teal-400);
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.94rem;
}
.form-status.is-error {
  background: rgba(194,73,46,0.08);
  border-color: #c2492e;
  color: #9a3a24;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.78);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1.35fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid > * { min-width: 0; }
.footer-brand .media-slot--logo { margin-bottom: 14px; }
.footer-brand-name { font-size: 1.1rem; font-weight: 800; color: var(--white); }
.footer-tagline { font-size: 0.85rem; color: var(--teal-400); font-weight: 600; margin-top: 4px; }
.footer-domain { margin-top: 14px; }
.footer-domain a { color: var(--gold-400); font-weight: 700; }
.site-footer h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--teal-400); }
.footer-note { font-size: 0.9rem; margin-bottom: 18px; }
.footer-col .btn-outline-dark { color: var(--white); border-color: rgba(255,255,255,0.4); }
.footer-col .btn-outline-dark:hover { background: var(--white); color: var(--green-900); }

.footer-col-links { display: flex; flex-direction: column; gap: 14px; }
.footer-portal {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  row-gap: 2px;
}
.footer-portal + .footer-portal { padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-portal-title { grid-column: 2; grid-row: 1; font-size: 0.88rem; font-weight: 700; color: var(--white); margin: 0; }
.footer-portal-desc { grid-column: 2; grid-row: 2; font-size: 0.76rem; line-height: 1.35; color: rgba(255,255,255,0.68); margin: 0; }
/* The QR image and link are markup siblings inside .footer-portal-row, but
   display:contents removes that wrapper from layout so both become direct
   grid items of .footer-portal — letting the QR span all three text rows
   without restructuring the HTML. */
.footer-portal-row { display: contents; }
.footer-qr {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: start;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background: var(--white);
  padding: 3px;
}
.footer-portal-link { grid-column: 2; grid-row: 3; margin-top: 4px; font-size: 0.8rem; font-weight: 700; color: var(--gold-400); }
.footer-portal-link:hover { color: var(--teal-400); }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-800);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 400;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.back-to-top:hover { background: var(--teal-500); transform: translateY(-2px); }
.back-to-top:focus-visible {
  outline: 2.5px solid var(--gold-500);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .module-card, .dash-card, .why-card, .stepper-item, .back-to-top { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .ecosystem-satellites { grid-template-columns: repeat(3, 1fr); }
  .ecosystem-connectors { display: none; }
  .analytics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .ecosystem-second-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-visual { order: -1; }
  .workbook-app-body { flex-direction: column; }
  .workbook-side { width: 100%; flex-direction: row; }
}

@media (max-width: 780px) {
  :root { --header-h: 68px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--surface-2); font-size: 0.95rem; white-space: normal; }
  .main-nav a::after { display: none; }

  .header-cta .btn-sm { display: none; }
  .nav-toggle { display: flex; }

  .grid-3, .ecosystem-satellites, .ecosystem-second-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .stepper-item:not(:last-child)::after { display: none; }
  .exam-app-body { flex-direction: column; }
  .exam-nav { width: 100%; grid-template-columns: repeat(6, 1fr); }
  .form-row { grid-template-columns: 1fr; }

  /* Mobile hero: the decorative Student Dashboard mock-up has several
     fixed-width children (app-progress-ring, app-sidebar, etc.) that don't
     shrink, which was forcing the whole hero row wider than the viewport.
     Dropping it on mobile removes that and the excess space it left above
     the hero copy; desktop keeps it via the existing >900px grid layout. */
  .hero-visual { display: none; }
  .hero .container { padding-inline: 22px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .grid-3, .ecosystem-satellites, .ecosystem-second-row { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; padding-bottom: 72px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn {
    text-align: center;
    width: 100%;
    white-space: normal;
  }
  .hero-trust { flex-direction: column; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .demo-cta-inner .btn { width: 100%; }
  .eco-core { padding: 26px 22px; }
  .demo-form { padding: 24px; }
}
