/* ---------------------------------------------------------------------------
   SkillBank marketing site — self-contained brand identity, separate from
   the tenant-branded product UI (styles.css). No external fonts/CDNs: type
   is a deliberate system-font pairing (fast, zero-dependency, matches the
   product's own build philosophy) with a monospace accent for anything that
   reads as "data" — matrix cells, certificate numbers, prices — echoing the
   product's own visual language of a verified record.
--------------------------------------------------------------------------- */
:root {
  --mk-ink: #14161b;
  --mk-paper: #f1f1ec;
  --mk-surface: #ffffff;
  --mk-line: #dedcd2;
  --mk-line-soft: #e9e7dd;
  --mk-muted: #6b6a62;
  --mk-brand: #23409e;
  --mk-brand-ink: #16296b;
  --mk-brand-soft: #e6eaf7;
  --mk-stamp: #b5751b;
  --mk-stamp-soft: #f3e4cd;
  --mk-good: #2e7d46;
  --mk-warn: #9a6c00;
  --mk-bad: #b3261e;
  --mk-shadow: 0 1px 2px rgba(20, 22, 27, 0.04), 0 8px 24px rgba(20, 22, 27, 0.06);
  --mk-radius: 14px;
  --mk-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mk-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
}
:root[data-theme="dark"], :root[data-mode="dark"] {
  --mk-ink: #edeeE9;
  --mk-paper: #14161b;
  --mk-surface: #1b1e25;
  --mk-line: #2c2f38;
  --mk-line-soft: #23262e;
  --mk-muted: #9a9c96;
  --mk-brand: #7e9af5;
  --mk-brand-ink: #c2cff9;
  --mk-brand-soft: #212a45;
  --mk-stamp: #e3ab5e;
  --mk-stamp-soft: #34291a;
  --mk-good: #6cc98a;
  --mk-warn: #e0b23e;
  --mk-bad: #ef8a80;
  --mk-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]):not([data-theme="light"]) {
    --mk-ink: #edeeE9; --mk-paper: #14161b; --mk-surface: #1b1e25; --mk-line: #2c2f38; --mk-line-soft: #23262e;
    --mk-muted: #9a9c96; --mk-brand: #7e9af5; --mk-brand-ink: #c2cff9; --mk-brand-soft: #212a45;
    --mk-stamp: #e3ab5e; --mk-stamp-soft: #34291a; --mk-good: #6cc98a; --mk-warn: #e0b23e; --mk-bad: #ef8a80;
    --mk-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mk {
  margin: 0; background: var(--mk-paper); color: var(--mk-ink);
  font-family: var(--mk-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mk-shell { overflow-x: hidden; }
.mk-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mk-eyebrow {
  font-family: var(--mk-mono); font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--mk-brand); font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.mk-eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--mk-brand); display: inline-block; }
h1, h2, h3, h4 { font-family: var(--mk-sans); font-weight: 750; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
.mk h2 { font-size: clamp(28px, 3.4vw, 38px); }
.mk h3 { font-size: 19px; letter-spacing: -0.01em; }
.mk p { margin: 0; }
.mk-lead { font-size: 18px; line-height: 1.65; color: var(--mk-muted); max-width: 60ch; }
.mk a { color: inherit; }
.mk-num { font-family: var(--mk-mono); font-variant-numeric: tabular-nums; }

/* ---------- nav ---------- */
.mk-nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--mk-paper) 88%, transparent);
  border-bottom: 1px solid var(--mk-line);
}
.mk-nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; flex-wrap: nowrap; }
.mk-logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; color: var(--mk-ink); }
.mk-logo svg { flex-shrink: 0; }
.mk-navlinks { display: flex; gap: 22px; font-size: 14.5px; color: var(--mk-muted); white-space: nowrap; }
.mk-navlinks a { text-decoration: none; white-space: nowrap; }
.mk-navlinks a:hover { color: var(--mk-ink); }
.mk-nav-spacer { flex: 1; }
.mk-lang { display: inline-flex; border: 1px solid var(--mk-line); border-radius: 999px; padding: 2px; }
.mk-lang button {
  border: none; background: none; font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 999px;
  color: var(--mk-muted); cursor: pointer;
}
.mk-lang button.on { background: var(--mk-ink); color: var(--mk-paper); }

/* ---------- buttons ---------- */
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.mk-btn:active { transform: translateY(1px); }
.mk-btn-primary { background: var(--mk-brand); color: #fff; }
.mk-btn-primary:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--mk-brand) 45%, transparent); }
.mk-btn-ghost { background: transparent; border-color: var(--mk-line); color: var(--mk-ink); }
.mk-btn-ghost:hover { border-color: var(--mk-muted); }
.mk-btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.mk-btn-full { width: 100%; }

/* ---------- hero ---------- */
.mk-hero { padding: 76px 0 88px; position: relative; }
.mk-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.mk-hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 18px 0 20px; }
.mk-hero h1 em { font-style: normal; color: var(--mk-brand); }
.mk-hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.mk-hero-note { margin-top: 16px; font-size: 13.5px; color: var(--mk-muted); }

/* fake product window in the hero, styled to look like a live matrix */
.mk-window {
  background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: var(--mk-radius);
  box-shadow: var(--mk-shadow); overflow: hidden;
}
.mk-window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--mk-line-soft); min-width: 0; }
.mk-window-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--mk-line); }
.mk-window-bar .mk-wtitle { margin-left: 8px; font-family: var(--mk-mono); font-size: 11.5px; color: var(--mk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mk-window-body { padding: 16px; }
.mk-mtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.mk-mtable th, .mk-mtable td { padding: 8px 6px; border-bottom: 1px solid var(--mk-line-soft); text-align: left; }
.mk-mtable thead th { color: var(--mk-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.mk-mtable td:first-child { font-weight: 600; }
.mk-mtable code { font-family: var(--mk-mono); font-size: 11px; color: var(--mk-muted); }
.mk-chip { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; font-size: 13px; font-weight: 700; }
.mk-chip.good { background: color-mix(in srgb, var(--mk-good) 18%, transparent); color: var(--mk-good); }
.mk-chip.warn { background: color-mix(in srgb, var(--mk-warn) 20%, transparent); color: var(--mk-warn); }
.mk-chip.bad { background: color-mix(in srgb, var(--mk-bad) 16%, transparent); color: var(--mk-bad); }
.mk-chip.upd { background: var(--mk-brand-soft); color: var(--mk-brand); }
.mk-window-foot { padding: 10px 16px; border-top: 1px solid var(--mk-line-soft); font-size: 12px; color: var(--mk-muted); display: flex; align-items: center; gap: 8px; }
.mk-stamp-mark {
  position: absolute; top: -14px; right: -14px; width: 84px; height: 84px; border-radius: 50%;
  border: 2px dashed var(--mk-stamp); display: flex; align-items: center; justify-content: center;
  transform: rotate(-9deg); background: var(--mk-paper); padding: 6px; box-sizing: border-box;
}
.mk-stamp-mark span { font-family: var(--mk-mono); font-size: 8px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--mk-stamp); text-align: center; line-height: 1.35; max-width: 60px; }

/* ---------- proof line ---------- */
.mk-proof { border-top: 1px solid var(--mk-line); border-bottom: 1px solid var(--mk-line); padding: 22px 0; }
.mk-proof-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--mk-muted); }
.mk-proof strong { color: var(--mk-ink); font-weight: 650; }

/* ---------- sections ---------- */
.mk-section { padding: 88px 0; }
.mk-section-head { max-width: 640px; margin-bottom: 40px; }
.mk-section-head .mk-eyebrow { margin-bottom: 12px; }
.mk-section-head h2 { margin-bottom: 12px; }
.mk-section-head p { color: var(--mk-muted); font-size: 16.5px; }
.mk-section.alt { background: var(--mk-surface); border-top: 1px solid var(--mk-line); border-bottom: 1px solid var(--mk-line); }

/* feature grid: one lead card + a grid of smaller ones */
.mk-features { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.mk-feature-lead {
  grid-row: span 2; background: var(--mk-brand); color: #fff; border-radius: var(--mk-radius); padding: 32px;
  display: flex; flex-direction: column; gap: 16px; justify-content: space-between;
}
.mk-feature-lead h3 { color: #fff; font-size: 23px; }
.mk-feature-lead p { color: color-mix(in srgb, #fff 82%, transparent); font-size: 15px; line-height: 1.6; }
.mk-feature-lead .mk-eyebrow { color: color-mix(in srgb, #fff 85%, transparent); }
.mk-feature-lead .mk-eyebrow::before { background: color-mix(in srgb, #fff 65%, transparent); }
.mk-seg3-demo { display: flex; border-radius: 8px; overflow: hidden; border: 1px solid color-mix(in srgb, #fff 30%, transparent); font-size: 12px; margin-top: 4px; }
.mk-seg3-demo span { flex: 1; text-align: center; padding: 8px 4px; border-right: 1px solid color-mix(in srgb, #fff 22%, transparent); }
.mk-seg3-demo span:last-child { border-right: none; }
.mk-seg3-demo span.on { background: rgba(255, 255, 255, 0.22); font-weight: 700; }
.mk-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mk-fcard {
  background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: var(--mk-radius);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.mk-fcard .mk-ficon { width: 34px; height: 34px; border-radius: 9px; background: var(--mk-brand-soft); color: var(--mk-brand); display: flex; align-items: center; justify-content: center; }
.mk-fcard p { color: var(--mk-muted); font-size: 14.5px; line-height: 1.55; }
.mk-fcard-wide { grid-column: 1 / -1; }

/* ---------- how it works ---------- */
.mk-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.mk-steps::before { content: ""; position: absolute; top: 21px; left: 5%; right: 5%; height: 1px; background: var(--mk-line); }
.mk-step { position: relative; padding: 0 18px 0 0; }
.mk-step .mk-stepnum {
  width: 42px; height: 42px; border-radius: 50%; background: var(--mk-paper); border: 1px solid var(--mk-line);
  display: flex; align-items: center; justify-content: center; font-family: var(--mk-mono); font-weight: 700; font-size: 14px;
  color: var(--mk-brand); margin-bottom: 16px; position: relative; z-index: 1;
}
.mk-step h3 { font-size: 15.5px; margin-bottom: 6px; }
.mk-step p { color: var(--mk-muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- trust / data sheet ---------- */
.mk-trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.mk-sheet { border: 1px solid var(--mk-line); border-radius: var(--mk-radius); overflow: hidden; background: var(--mk-surface); }
.mk-sheet-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--mk-line-soft); font-size: 14px; }
.mk-sheet-row:last-child { border-bottom: none; }
.mk-sheet-row .k { color: var(--mk-muted); }
.mk-sheet-row .v { font-family: var(--mk-mono); font-size: 13px; text-align: right; }
.mk-trust-list { display: flex; flex-direction: column; gap: 18px; }
.mk-trust-item { display: flex; gap: 14px; align-items: flex-start; }
.mk-trust-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mk-good); margin-top: 7px; flex-shrink: 0; }
.mk-trust-item h4 { font-size: 15px; margin-bottom: 3px; }
.mk-trust-item p { color: var(--mk-muted); font-size: 14px; line-height: 1.5; }

/* ---------- pricing ---------- */
.mk-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.mk-pcard {
  border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 26px; background: var(--mk-surface);
  display: flex; flex-direction: column; position: relative;
}
.mk-pcard.on { border-color: var(--mk-brand); box-shadow: 0 0 0 1px var(--mk-brand), var(--mk-shadow); }
.mk-pcard-tag {
  position: absolute; top: -12px; left: 24px; background: var(--mk-brand); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.02em;
}
.mk-pcard h3 { font-size: 16px; color: var(--mk-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; font-size: 12.5px; }
.mk-price { font-family: var(--mk-mono); font-size: 40px; font-weight: 700; margin: 10px 0 2px; letter-spacing: -0.02em; }
.mk-price small { font-family: var(--mk-sans); font-size: 14px; font-weight: 500; color: var(--mk-muted); }
.mk-pcard-sub { color: var(--mk-muted); font-size: 13.5px; margin-bottom: 20px; }
.mk-plist { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mk-plist li { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.mk-plist li::before { content: "✓"; color: var(--mk-good); font-weight: 700; flex-shrink: 0; }
.mk-pricing-note { text-align: center; color: var(--mk-muted); font-size: 13.5px; margin-top: 28px; }
.mk-ent {
  margin-top: 18px; border: 1px dashed var(--mk-line); border-radius: var(--mk-radius); padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.mk-ent h4 { font-size: 15.5px; margin-bottom: 4px; }
.mk-ent p { color: var(--mk-muted); font-size: 13.5px; }

/* ---------- faq ---------- */
.mk-faq { max-width: 760px; }
.mk-faq details { border-bottom: 1px solid var(--mk-line); padding: 18px 0; }
.mk-faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; font-family: var(--mk-mono); font-size: 20px; color: var(--mk-muted); flex-shrink: 0; }
.mk-faq details[open] summary::after { content: "\\2212"; }
.mk-faq p { margin-top: 10px; color: var(--mk-muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- final CTA + lead form ---------- */
.mk-cta { padding: 96px 0; background: var(--mk-ink); color: var(--mk-paper); }
.mk-cta h2 { color: var(--mk-paper); }
.mk-cta .mk-lead { color: color-mix(in srgb, var(--mk-paper) 70%, transparent); }
.mk-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.mk-form { background: var(--mk-surface); color: var(--mk-ink); border-radius: var(--mk-radius); padding: 28px; box-shadow: var(--mk-shadow); }
.mk-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mk-field label { font-size: 13px; color: var(--mk-muted); }
.mk-field input, .mk-field textarea {
  font: inherit; font-size: 14.5px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--mk-line);
  background: var(--mk-paper); color: var(--mk-ink);
}
.mk-field textarea { resize: vertical; min-height: 72px; }
.mk-field input:focus, .mk-field textarea:focus { outline: 2px solid var(--mk-brand); outline-offset: 1px; }
.mk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk-form-note { font-size: 12.5px; color: var(--mk-muted); margin-top: 10px; }
.mk-form-ok { display: none; text-align: center; padding: 30px 10px; }
.mk-form-ok h3 { margin-bottom: 8px; }
.mk-form-ok p { color: var(--mk-muted); font-size: 14.5px; }
.mk-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mk-err-text { color: var(--mk-bad); font-size: 13px; min-height: 18px; }

/* ---------- footer ---------- */
.mk-footer { border-top: 1px solid var(--mk-line); padding: 40px 0 32px; }
.mk-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--mk-muted); }
.mk-footer a { text-decoration: none; }
.mk-footer a:hover { color: var(--mk-ink); }
.mk-footer-links { display: flex; gap: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .mk-navlinks { display: none; }
  .mk-hero-grid { grid-template-columns: 1fr; }
  .mk-hero { padding: 48px 0 56px; }
  .mk-features { grid-template-columns: 1fr; }
  .mk-feature-lead { grid-row: auto; }
  .mk-feature-grid { grid-template-columns: 1fr; }
  .mk-steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .mk-steps::before { display: none; }
  .mk-trust-grid { grid-template-columns: 1fr; }
  .mk-pricing-grid { grid-template-columns: 1fr; }
  .mk-cta-grid { grid-template-columns: 1fr; }
  .mk-form-row { grid-template-columns: 1fr; }
  .mk-section { padding: 56px 0; }
  .mk-stamp-mark { display: none; }
}
@media (max-width: 560px) {
  .mk-steps { grid-template-columns: 1fr; }
}
