/* ─────────────────────────────────────────────────────────────────────────
   Nest Learn — Marketing site
   Built on the product's "Friendly Modern" system:
   forest-green primary, warm stone paper, Plus Jakarta Sans + JetBrains Mono.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* paper + ink */
  --paper:        #f6f3ec;
  --paper-2:      #efebe1;
  --surface:      #ffffff;
  --surface-soft: #faf8f3;
  --ink:          #11302e;   /* deep charcoal-navy/forest */
  --ink-2:        #1c3d39;
  --muted:        #5a6f6a;
  --subtle:       #899691;
  --line:         #e4ded2;
  --line-2:       #d6cfc0;

  /* brand */
  --brand:        #1f7a5c;   /* forest-green primary (oklch .42 .10 158) */
  --brand-hover:  #186449;
  --brand-deep:   #103a2c;
  --brand-bright: #34a98f;   /* logo teal */
  --brand-soft:   #e4f0ea;
  --brand-soft-fg:#1c6149;

  /* status accents */
  --sage:    #6fae8e;
  --blue:    #4f86b8;   --blue-soft:#e7eef5;  --blue-fg:#2f6391;
  --amber:   #d99a3a;   --amber-soft:#f7ecd7; --amber-fg:#9a6b1e;
  --red:     #c25a4b;   --red-soft:#f6e3df;   --red-fg:#9a3d30;
  --green:   #3f8f6a;   --green-soft:#e3f0e8; --green-fg:#296b4c;
  --grey-soft:#edeae2;  --grey-fg:#6c726a;

  /* coral — used very sparingly as warm spark */
  --coral:   #f0826f;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(17,48,46,.05);
  --shadow:    0 2px 4px rgba(17,48,46,.04), 0 10px 30px rgba(17,48,46,.07);
  --shadow-lg: 0 8px 24px rgba(17,48,46,.10), 0 30px 70px rgba(17,48,46,.13);

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* selection */
::selection { background: var(--brand-bright); color: #fff; }

/* keyboard focus — premium accessibility */
a:focus-visible, .btn:focus-visible, .cat-pill:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { outline-offset: 4px; }

/* anchor targets clear the sticky header */
main section[id], #demo { scroll-margin-top: 88px; }

/* ── shared layout ─────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-soft-fg);
  margin: 0 0 18px;
  white-space: nowrap;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: var(--brand-bright);
}
.eyebrow.on-dark { color: #9fd9c5; }
.eyebrow.on-dark::before { background: #9fd9c5; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.05; font-weight: 800; }
h2.title { font-size: clamp(32px, 4vw, 50px); max-width: 16ch; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.4vw, 21px); color: var(--muted); line-height: 1.55; max-width: 56ch; margin: 20px 0 0; }
.section-head { margin-bottom: 56px; max-width: 780px; }

/* ── buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: 15.5px; font-weight: 700;
  letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .14s ease, background .14s, box-shadow .14s, border-color .14s, color .14s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 16px rgba(31,122,92,.28); }
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 10px 24px rgba(31,122,92,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(17,48,46,.03); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1ede4; }
.btn-on-dark-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn-on-dark-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }
.btn .arrow { transition: transform .16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── badges & chips ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-soft-fg);
  border: 1px solid color-mix(in oklab, var(--brand-soft-fg) 16%, transparent);
}
.badge.online { background: var(--blue-soft); color: var(--blue-fg); border-color: color-mix(in oklab, var(--blue-fg) 16%, transparent); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: -0.005em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--grey-soft); color: var(--grey-fg);
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.chip.complete { background: var(--green-soft); color: var(--green-fg); }
.chip.overdue  { background: var(--red-soft);   color: var(--red-fg); }
.chip.expired  { background: #ece7e0; color: #6c655a; }
.chip.booking  { background: var(--blue-soft);  color: var(--blue-fg); }
.chip.notassigned { background: transparent; color: var(--subtle); border-color: var(--line-2); }
.chip.inprogress { background: var(--amber-soft); color: var(--amber-fg); }

/* ── header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in oklab, var(--paper) 92%, transparent); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--brand-bright); border-radius: 2px; transition: right .22s ease;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { right: 0; }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-signin { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.nav-signin:hover { color: var(--brand); }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo .logo-img { height: 38px; width: auto; display: block; }
.footer .logo .logo-img { height: 40px; }
.logo .mark { width: 36px; height: 36px; flex: 0 0 auto; }
.logo .word { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.logo .word .a { color: var(--ink); }
.logo .word .b { color: var(--brand); margin-left: 2px; }

.menu-btn { display: none; }
.menu-btn .ic-close { display: none; }

/* mobile dropdown menu */
.mobile-menu { display: none; }

/* ── HERO ──────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(52,169,143,.16), transparent 60%),
    radial-gradient(700px 420px at 8% 12%, rgba(79,134,184,.09), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  gap: 48px; align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); letter-spacing: -0.035em; line-height: 1.0; text-wrap: balance; }
.hero h1 .hl { color: var(--brand); }
.hero-sub { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); line-height: 1.5; max-width: 46ch; margin: 24px 0 0; }
.hero-cta { display: flex; gap: 14px; margin: 32px 0 0; flex-wrap: wrap; }
.hero-proof { display: grid; gap: 11px; margin: 36px 0 0; }
.hero-proof li {
  display: flex; align-items: center; gap: 11px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.hero-proof .tick {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.hero-proof .tick svg { width: 12px; height: 12px; }
.hero-cred {
  display: flex; align-items: center; gap: 10px; margin: 26px 0 0;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--ink-2); max-width: 46ch;
}
.hero-cred .hc-ic { width: 22px; height: 22px; flex: 0 0 auto; color: var(--brand); }
.hero-cred .hc-ic svg { width: 22px; height: 22px; }

/* hero product composition */
.hero-stage { position: relative; height: 520px; min-width: 0; }
.float-badge {
  position: absolute; z-index: 6;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 15px;
  font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em;
  box-shadow: var(--shadow);
}
.float-badge .ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-family: var(--mono); font-size: 11px; }
.fb-1 { top: -26px; right: 40px; }
.fb-1 .ic { background: var(--brand); }
.fb-2 { bottom: 18px; left: -10px; }
.fb-2 .ic { background: var(--amber); }

/* generic product panel */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.panel-head .ttl { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.panel-head .sub { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }

/* hero stage layered cards */
.stage-dash {
  position: absolute; top: 8px; left: 0; width: 260px; z-index: 2;
  transform: rotate(-2deg);
}
.stage-matrix {
  position: absolute; top: 14px; right: 0; width: 300px; z-index: 3;
  transform: rotate(1.5deg);
}
.stage-library {
  position: absolute; bottom: 0; left: 70px; right: 30px; z-index: 5;
}

/* mini metric tiles (dashboard) */
.mini-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.mini-metric { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; position: relative; overflow: hidden; }
.mini-metric::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-2); }
.mini-metric[data-tone="red"]::before { background: var(--red); }
.mini-metric[data-tone="amber"]::before { background: var(--amber); }
.mini-metric[data-tone="blue"]::before { background: var(--blue); }
.mini-metric[data-tone="green"]::before { background: var(--green); }
.mini-metric .l { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: -0.005em; }
.mini-metric .n { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-top: 4px; }
.mini-metric[data-tone="red"] .n { color: var(--red-fg); }
.mini-metric[data-tone="amber"] .n { color: var(--amber-fg); }
.mini-metric[data-tone="blue"] .n { color: var(--blue-fg); }

/* mini matrix */
.mini-matrix { padding: 6px 0 10px; }
.mmx-row { display: grid; grid-template-columns: 84px repeat(4, 1fr); align-items: center; gap: 5px; padding: 5px 14px; }
.mmx-row .name { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmx-row.head .name { color: var(--subtle); font-size: 9px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.mmx-cell { height: 20px; border-radius: 5px; display: grid; place-items: center; }
.mmx-cell.complete { background: var(--green-soft); }
.mmx-cell.overdue  { background: var(--red-soft); }
.mmx-cell.booking  { background: var(--blue-soft); }
.mmx-cell.expired  { background: #ece7e0; }
.mmx-cell.empty    { background: var(--surface-soft); border: 1px dashed var(--line-2); }
.mmx-cell svg { width: 10px; height: 10px; }
.mmx-row.head .mmx-col { font-size: 8.5px; font-family: var(--mono); color: var(--subtle); text-align: center; text-transform: uppercase; }

/* course card */
.course-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform .16s ease, box-shadow .16s, border-color .16s;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cc-thumb { height: 96px; position: relative; display: grid; place-items: center; overflow: hidden; }
.cc-thumb .ck {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.16) 0 2px, transparent 2px 13px);
}
.cc-thumb .cat-ic { position: relative; width: 38px; height: 38px; color: #fff; opacity: .96; }
.cc-thumb .pill-tl { position: absolute; top: 10px; left: 10px; z-index: 2; }
.cc-body { padding: 14px 15px 16px; flex: 1; display: flex; flex-direction: column; }
.cc-cat { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-soft-fg); }
.cc-title { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; margin: 7px 0 0; line-height: 1.25; }
.cc-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.cc-meta .m { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.cc-meta .m svg { width: 13px; height: 13px; opacity: .7; }

/* thumb palettes */
.t-safeguard { background: linear-gradient(135deg, #2c6e57, #1f7a5c); }
.t-health    { background: linear-gradient(135deg, #4f86b8, #386a96); }
.t-food      { background: linear-gradient(135deg, #d99a3a, #c07f25); }
.t-med       { background: linear-gradient(135deg, #b85b6a, #9a4453); }
.t-mh        { background: linear-gradient(135deg, #7a6cae, #5f5494); }
.t-conf      { background: linear-gradient(135deg, #3f8f6a, #2c6e52); }
.t-induct    { background: linear-gradient(135deg, #5e8f8a, #437872); }
.t-online    { background: linear-gradient(135deg, #4a7a99, #356283); }

/* hero library strip */
.lib-strip-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.lib-strip-head .ttl { font-size: 13px; font-weight: 800; letter-spacing: -0.015em; }
.lib-strip-head .cnt { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.lib-grid .course-card { box-shadow: none; }
.lib-grid .cc-thumb { height: 64px; }
.lib-grid .cc-thumb .cat-ic { width: 28px; height: 28px; }
.lib-grid .cc-body { padding: 11px 12px 13px; }
.lib-grid .cc-title { font-size: 12.5px; }
.lib-grid .cc-cat { font-size: 9px; }

/* logos / trust strip */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.trust-row { display: flex; align-items: center; gap: 28px; padding: 26px 0; flex-wrap: wrap; justify-content: center; }
.trust-row .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--subtle); text-transform: uppercase; }
.trust-row .stat { display: flex; align-items: baseline; gap: 8px; }
.trust-row .stat .num { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); }
.trust-row .stat .txt { font-size: 14px; color: var(--muted); font-weight: 600; }
.trust-row .sep { width: 1px; height: 26px; background: var(--line-2); }

/* ── courses section ───────────────────────────────────────────────── */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: border-color .14s, transform .14s, color .14s;
}
.cat-pill:hover { border-color: var(--brand-bright); color: var(--brand); transform: translateY(-1px); }
.cat-pill .cd { width: 8px; height: 8px; border-radius: 50%; }
.courses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* below-grid note + accreditation */
.courses-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px; padding: 20px 24px;
  background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px;
}
.courses-foot .cf-note { font-size: 16px; font-weight: 700; color: var(--ink-2); letter-spacing: -0.01em; max-width: 52ch; }
.courses-foot .cf-note b { color: var(--brand); }
.accred-badge {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
  padding: 9px 14px 9px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid color-mix(in oklab, var(--brand-soft-fg) 22%, transparent);
  box-shadow: 0 1px 2px rgba(16,58,44,.05);
}
.accred-badge .ab-seal {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.accred-badge .ab-seal svg { width: 16px; height: 16px; }
.accred-badge .ab-txt { line-height: 1.2; }
.accred-badge .ab-k { display: block; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.accred-badge .ab-v { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }

/* ── features ──────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px 30px; transition: transform .16s ease, box-shadow .16s, border-color .16s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feature .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 20px;
}
.feature .ic svg { width: 23px; height: 23px; }
.feature h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.feature p { font-size: 15px; color: var(--muted); margin: 11px 0 0; line-height: 1.55; }
.feature .num { font-family: var(--mono); font-size: 11px; color: var(--subtle); float: right; }

/* ── manager / staff split ─────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.split-card {
  border-radius: var(--r-xl); padding: 32px 30px; position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.split-card.mgr { background: var(--surface); }
.split-card.staff { background: linear-gradient(165deg, #143a31, #0e2a26); border-color: #1d4a3f; color: #eaf3ee; }
.split-card .role-tag { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-soft-fg); }
.split-card.staff .role-tag { color: #8fd3bc; }
.split-card h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; margin: 10px 0 18px; }
.split-list { display: grid; gap: 12px; margin: 0 0 24px; }
.split-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; font-weight: 600; }
.split-list .tick { width: 21px; height: 21px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-top: 1px; }
.split-list .tick svg { width: 11px; height: 11px; }
.split-card.staff .split-list .tick { background: rgba(143,211,188,.18); color: #8fd3bc; }
.split-card.staff .lead { color: #b6cdc4; }

/* embedded mini staff UI */
.staff-ui { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px; margin-top: 8px; }
.staff-task { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,.04); margin-bottom: 8px; }
.staff-task:last-child { margin-bottom: 0; }
.staff-task .st-ic { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center; color: #0e2a26; }
.staff-task .st-body { flex: 1; min-width: 0; }
.staff-task .st-title { font-size: 13.5px; font-weight: 700; color: #eaf3ee; }
.staff-task .st-sub { font-size: 11.5px; color: #9fb8af; margin-top: 1px; }
.staff-task .st-cta { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #8fd3bc; color: #0e2a26; white-space: nowrap; }

/* embedded mgr queue */
.mgr-ui { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 8px; }
.mgr-q { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mgr-q:last-child { border-bottom: 0; }
.mgr-q .q-ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; }
.mgr-q[data-tone="red"] .q-ic { background: var(--red-soft); color: var(--red-fg); }
.mgr-q[data-tone="amber"] .q-ic { background: var(--amber-soft); color: var(--amber-fg); }
.mgr-q[data-tone="blue"] .q-ic { background: var(--blue-soft); color: var(--blue-fg); }
.mgr-q .q-title { font-size: 13.5px; font-weight: 700; }
.mgr-q .q-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.mgr-q .q-n { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.mgr-q[data-tone="red"] .q-n { color: var(--red-fg); }
.mgr-q[data-tone="amber"] .q-n { color: var(--amber-fg); }
.mgr-q[data-tone="blue"] .q-n { color: var(--blue-fg); }

/* ── alternating feature rows (matrix, paths, f2f, evidence) ───────── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fr-copy, .fr-visual { min-width: 0; }
.feature-row.flip .fr-copy { order: 2; }
.feature-row.flip .fr-visual { order: 1; }
.fr-copy h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.028em; line-height: 1.05; text-wrap: balance; }
.fr-copy .lead { margin-top: 18px; }
.fr-points { display: grid; gap: 13px; margin: 26px 0 0; }
.fr-points li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.fr-points .tick { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-top: 1px; }
.fr-points .tick svg { width: 12px; height: 12px; }
.fr-row-cta { margin-top: 30px; }

/* full matrix mockup */
.matrix-panel { box-shadow: var(--shadow-lg); }
.mx-toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-soft); flex-wrap: wrap; }
.mx-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.mx-filter svg { width: 13px; height: 13px; opacity: .7; }
.mx-filter.active { color: var(--brand); border-color: var(--brand-bright); background: var(--brand-soft); }
.mx-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.mx-table th, .mx-table td { padding: 0; }
.mx-table thead th { padding: 12px 8px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--subtle); border-bottom: 1px solid var(--line); text-align: center; vertical-align: bottom; }
.mx-table thead th.staff-col { text-align: left; padding-left: 18px; width: 190px; }
.mx-table tbody td { border-bottom: 1px solid var(--line); padding: 11px 8px; text-align: center; }
.mx-table tbody tr:last-child td { border-bottom: 0; }
.mx-table tbody tr:hover td { background: var(--surface-soft); }
.mx-staff { display: flex; align-items: center; gap: 11px; padding-left: 18px; text-align: left; }
.mx-staff .av { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.mx-staff .nm { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.mx-staff .hm { font-size: 11px; color: var(--muted); font-weight: 500; }
.mx-cell-chip { display: inline-flex; }

/* learning path builder mockup */
.lp-builder { box-shadow: var(--shadow-lg); }
.lp-meta { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.lp-meta .lp-name { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.lp-meta .lp-tags { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.lp-course { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.lp-course .lp-h { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.lp-course .lp-t { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.lp-course .lp-s { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.lp-course .lp-off { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 4px 9px; border-radius: 7px; background: var(--surface-soft); border: 1px solid var(--line); }
.lp-preview { padding: 14px 18px; background: var(--brand-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-preview .lpp-l { font-size: 12.5px; font-weight: 700; color: var(--brand-soft-fg); }
.lp-preview .lpp-l b { font-weight: 800; }
.lp-preview .lpp-faces { display: flex; }
.lp-preview .lpp-faces .f { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--brand-soft); margin-left: -7px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }

/* f2f session mockup */
.f2f-card { box-shadow: var(--shadow-lg); }
.f2f-hero { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.f2f-date { width: 60px; height: 60px; border-radius: 12px; flex: 0 0 auto; background: var(--brand); color: #fff; display: grid; place-items: center; text-align: center; }
.f2f-date .mo { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.f2f-date .dy { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.f2f-hero .f2f-t { font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; }
.f2f-hero .f2f-s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.f2f-sec-h { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); padding: 13px 20px 7px; }
.f2f-att { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 9px 20px; }
.f2f-att .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.f2f-att .nm { font-size: 13.5px; font-weight: 700; }
.f2f-evidence { margin: 8px 20px 18px; display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-soft); }
.f2f-evidence .fic { width: 32px; height: 38px; border-radius: 5px; background: #fff; border: 1px solid var(--line-2); flex: 0 0 auto; display: grid; place-items: center; font-family: var(--mono); font-size: 8px; font-weight: 700; color: var(--red-fg); }
.f2f-evidence .fn { font-size: 13px; font-weight: 700; }
.f2f-evidence .fs { font-size: 11px; color: var(--muted); }

/* evidence / certificate */
.cert {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 28px; position: relative; overflow: hidden;
}
.cert::before { content: ""; position: absolute; inset: 0; border: 6px solid transparent; border-image: linear-gradient(135deg, var(--brand-bright), var(--brand)) 1; opacity: .0; }
.cert-inner { border: 1.5px solid var(--line-2); border-radius: 8px; padding: 26px 24px; text-align: center; position: relative; }
.cert .seal { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; background: var(--brand-soft); border: 2px solid var(--brand); display: grid; place-items: center; color: var(--brand); }
.cert .seal svg { width: 26px; height: 26px; }
.cert .ce { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cert .cn { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; margin: 8px 0 4px; }
.cert .cc { font-size: 14px; color: var(--muted); }
.cert .cmeta { display: flex; justify-content: center; gap: 26px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.cert .cmeta .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--subtle); }
.cert .cmeta .v { font-size: 13px; font-weight: 700; margin-top: 3px; }
.verify-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 12px; font-weight: 700; color: var(--green-fg); background: var(--green-soft); padding: 6px 12px; border-radius: 999px; }
.verify-badge svg { width: 13px; height: 13px; }

/* audit timeline */
.audit { margin-top: 18px; }
.audit-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; padding: 11px 0; position: relative; }
.audit-line { position: relative; }
.audit-row .ad-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); z-index: 1; }
.audit-row .ad-ic svg { width: 12px; height: 12px; }
.audit-row::before { content: ""; position: absolute; left: 12.5px; top: 28px; bottom: -11px; width: 1.5px; background: var(--line); }
.audit-row:last-child::before { display: none; }
.audit-row .ad-body { font-size: 13.5px; }
.audit-row .ad-body b { font-weight: 800; }
.audit-row .ad-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.audit-row .ad-time { font-family: var(--mono); font-size: 11px; color: var(--subtle); white-space: nowrap; }

/* ── implementation steps ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; margin-top: 12px; }
.step { padding: 26px 22px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step .sn { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand); }
.step .sic { width: 40px; height: 40px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); margin: 14px 0 14px; }
.step .sic svg { width: 20px; height: 20px; }
.step h4 { font-size: 16px; font-weight: 800; letter-spacing: -0.018em; }
.step p { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.steps-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }

/* ── trust ─────────────────────────────────────────────────────────── */
.dark-section { background: linear-gradient(170deg, #143a31 0%, #0e2a26 100%); color: #eaf3ee; }
.dark-section .lead { color: #b6cdc4; }
.dark-section h2.title { color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.trust-item { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.11); border-radius: var(--r); padding: 22px 22px 24px; transition: background .16s, border-color .16s; }
.trust-item:hover { background: rgba(255,255,255,.07); border-color: rgba(143,211,188,.4); }
.trust-item .ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(143,211,188,.16); color: #8fd3bc; display: grid; place-items: center; margin-bottom: 16px; }
.trust-item .ic svg { width: 21px; height: 21px; }
.trust-item h4 { font-size: 16.5px; font-weight: 800; letter-spacing: -0.018em; color: #fff; }
.trust-item p { font-size: 13.5px; color: #a9c3ba; margin: 8px 0 0; line-height: 1.5; }

/* ── final CTA ─────────────────────────────────────────────────────── */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 50% -10%, rgba(52,169,143,.16), transparent 60%); pointer-events: none; }
.final-cta h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.032em; line-height: 1.02; max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.final-cta .lead { margin: 22px auto 0; }
.final-cta .cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ── footer ────────────────────────────────────────────────────────── */
.footer { background: #0c2421; color: #b6cdc4; padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer .logo .word .a { color: #fff; }
.footer .logo .word .b { color: #8fd3bc; }
.footer .f-blurb { font-size: 14px; color: #8fa9a0; margin: 16px 0 0; max-width: 30ch; line-height: 1.55; }
.footer .f-col h5 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6f8c83; margin: 0 0 16px; }
.footer .f-col a { display: block; font-size: 14px; color: #b6cdc4; padding: 5px 0; transition: color .14s; }
.footer .f-col a:hover { color: #fff; }
.footer-bot { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.09); font-size: 13px; color: #6f8c83; flex-wrap: wrap; gap: 12px; }

/* ── reveal-on-scroll ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 1160px) {
  /* the layered hero scene needs a wide right column; below this it would
     compress until the dashboard and matrix panels collide. Stack early and
     centre the scene at its design width instead. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-stage { width: min(580px, 100%); justify-self: center; }
}
@media (max-width: 1080px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(1, 1fr); }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .menu-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; }
  .site-header.menu-open .menu-btn .ic-open { display: none; }
  .site-header.menu-open .menu-btn .ic-close { display: block; }
  .mobile-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(16,58,44,.10);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-header.menu-open .mobile-menu { display: block; }
  .mobile-menu-inner { padding: 8px 20px 22px; display: flex; flex-direction: column; }
  .mobile-menu .mm-link {
    padding: 14px 2px; font-size: 16.5px; font-weight: 600; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu .mm-link:active { color: var(--brand); }
  .mobile-menu .mm-cta { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
  .mobile-menu .mm-cta .btn { width: 100%; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-stage { height: 460px; }
  .split { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .matrix-panel { overflow-x: auto; }
  .feature-row.flip .fr-copy { order: 1; }
  .feature-row.flip .fr-visual { order: 2; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 68px 0; }
  .courses-grid { grid-template-columns: 1fr; }
  .hero-stage { height: auto; display: grid; gap: 16px; }
  .stage-dash, .stage-matrix, .stage-library { position: static; width: auto; transform: none; }
  .lib-grid { grid-template-columns: 1fr 1fr; }
  .float-badge { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bot { flex-direction: column; align-items: flex-start; }
  .trust-row { gap: 16px; }
  .matrix-panel { overflow-x: auto; }
  .mx-table { min-width: 540px; }
  .mx-table thead th.staff-col { width: 150px; }
}
