/* ═══════════════════════════════════════════════════════════════════
   Vinn Platform shared stylesheet
   Used by /learn, /kits, /intensives, /membership, /dashboard, etc.
═══════════════════════════════════════════════════════════════════ */

:root {
  --navy: #0F1F3D;
  --navy-mid: #1E3A5F;
  --navy-light: #E8EDF5;
  --teal: #0D7B8A;
  --teal-hover: #0D8578;
  --teal-active: #0A6470;
  --teal-light: #DDF0F3;
  --teal-text: #0A5F6B;
  --bg: #F6F6F3;
  --surface: #FFFFFF;
  --surface-2: #F0F0ED;
  --text: #0F1F3D;
  --text-mid: #4A5568;
  --text-muted: #7A8898;
  --border: rgba(15,31,61,0.10);
  --border-mid: rgba(15,31,61,0.18);
  --amber: #B5621C;
  --amber-light: #FAEEDA;
  --amber-text: #8A4410;
  --red: #8B2E2E;
  --red-light: #FCEBEB;
  --green-d: #0F6E56;
  --green-light: #E1F5EE;
  --purple: #0D7B8A;
  --purple-light: #DDF0F3;
  --r: 8px;
  --r-lg: 12px;
  --r-pill: 9999px;
  --transition: 150ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Fade-in-on-scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease-out, transform 600ms ease-out; will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mid);
  background: var(--bg);
  letter-spacing: -0.005em;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  text-wrap: balance;
  letter-spacing: -0.02em;
  font-weight: 300;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.18; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.012em; }
h4 { font-size: 1rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.008em; }
em { font-style: italic; color: var(--teal); }
p { color: var(--text-mid); line-height: 1.65; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ── Layout ────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 2.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-tight { padding: 3rem 0; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--text-muted); }

/* ── Top nav (shared with all platform pages) ─────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
}
.topnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.topnav-logo img { height: 40px; width: auto; display: block; }
.topnav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}
.topnav-links a {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 400;
  transition: color var(--transition);
}
.topnav-links a:hover, .topnav-links a.active { color: var(--navy); }

/* Services dropdown */
.topnav-links .has-dropdown { position: relative; }
.topnav-links .dropdown-toggle {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 400; color: var(--text-mid);
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: color var(--transition);
}
.topnav-links .dropdown-toggle:hover,
.topnav-links .dropdown-toggle.active,
.topnav-links .has-dropdown:hover > .dropdown-toggle { color: var(--navy); }
.topnav-links .caret { font-size: 10px; line-height: 1; opacity: 0.75; }
.topnav-links .has-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 0.75rem;
  opacity: 0; pointer-events: none;
}
.topnav-links .has-dropdown:hover::after,
.topnav-links .has-dropdown:focus-within::after { pointer-events: auto; opacity: 1; }
.topnav-links .dropdown-menu {
  position: absolute; top: calc(100% + 0.75rem); left: 50%; transform: translateX(-50%);
  min-width: 180px; background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--r); padding: 0.35rem 0; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 150ms ease, visibility 150ms ease;
  z-index: 60;
}
.topnav-links .has-dropdown:hover > .dropdown-menu,
.topnav-links .has-dropdown:focus-within > .dropdown-menu,
.topnav-links .has-dropdown.open > .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.topnav-links .dropdown-menu li { display: block; }
.topnav-links .dropdown-menu a {
  display: block; padding: 0.55rem 1rem; font-size: 14px;
  color: var(--text-mid); text-decoration: none; white-space: nowrap;
}
.topnav-links .dropdown-menu a:hover,
.topnav-links .dropdown-menu a.active { background: var(--teal-light); color: var(--navy); }
.topnav-cta {
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
}
.topnav-cta:hover { background: var(--navy-mid); color: #fff; }
.topnav-ghost {
  background: transparent;
  color: var(--navy);
  border: 0.5px solid var(--navy);
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.topnav-ghost:hover { background: var(--navy); color: #fff; }
.topnav-signin {
  color: var(--teal);
  border: 0.5px solid var(--teal);
  background: transparent;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-right: 0.5rem;
  transition: background 0.15s, color 0.15s;
}
.topnav-signin:hover { background: var(--teal); color: #fff; }

@media (max-width: 760px) {
  .topnav-links { display: none; }
  .topnav-inner { flex-wrap: wrap; gap: 0.5rem; }
  .topnav-signin { display: none; }
  .topnav-ghost, .topnav-cta { padding: 0.5rem 0.95rem; font-size: 13px; }
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  padding: 0.85rem 1.5rem;
  line-height: 1;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-hover); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-mid); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 0.5px solid var(--border-mid); }
.btn-outline:hover { background: var(--surface); color: var(--navy); border-color: var(--navy); }
.card-dark .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.card-dark .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--text-mid); }
.btn-ghost:hover { color: var(--navy); }
.btn-lg { padding: 1rem 2rem; font-size: 15px; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color var(--transition);
}
.card-link { display: block; color: inherit; }
.card-link:hover { border-color: var(--navy); color: inherit; }
.card-dark { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 1.75rem; }
.card-dark h2, .card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255,255,255,0.7); }
.card-teal {
  background: var(--teal-light);
  border: 0.5px solid rgba(13,123,138,0.2);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.card-featured { border: 1.5px solid var(--teal); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.card-price {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.card-price .unit { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }

/* ── Badges / pills ────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  line-height: 1;
  letter-spacing: 0.02em;
}
.pill-teal { background: var(--teal-light); color: var(--teal-text); }
.pill-navy { background: var(--navy-light); color: var(--navy); }
.pill-amber { background: var(--amber-light); color: var(--amber-text); }
.pill-green { background: var(--green-light); color: var(--green-d); }
.pill-purple { background: var(--purple-light); color: var(--purple); }
.pill-dark { background: var(--navy); color: #fff; }
.pill-free { background: #E8F4EE; color: #1A5C3A; }

/* ── Page entrance animations ───────────────────────────────────── */
body {
  animation: bodyFadeIn 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes bodyFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .hero-inner > * {
  animation: heroRise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .hero-inner > *:nth-child(1) { animation-delay: 80ms; }
.hero .hero-inner > *:nth-child(2) { animation-delay: 180ms; }
.hero .hero-inner > *:nth-child(3) { animation-delay: 280ms; }
.hero .hero-inner > *:nth-child(4) { animation-delay: 380ms; }
.hero .hero-inner > *:nth-child(n+5) { animation-delay: 480ms; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body, .hero .hero-inner > * { animation: none !important; }
}

/* ── Hero (sales pages) ────────────────────────────────────────── */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 760px; margin: 0 auto; padding: 0 2.5rem; position: relative; z-index: 1; }

/* Brutalist geometry accents */
.geo {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.geo-tl { top: 40px; left: 4%; width: 110px; opacity: 0.28; transform: rotate(-8deg); }
.geo-tr { top: 30px; right: 4%; width: 140px; opacity: 0.30; }
.geo-bl { bottom: -30px; left: -20px; width: 150px; opacity: 0.22; transform: rotate(12deg); }
.geo-br { bottom: -40px; right: -30px; width: 180px; opacity: 0.18; }
@media (max-width: 720px) {
  .geo-tl, .geo-tr { width: 70px; }
  .geo-bl, .geo-br { width: 100px; }
}
.hero .eyebrow { display: block; margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero p.lead { font-size: 1.15rem; color: var(--text-mid); max-width: 600px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ── Grids ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Lists ─────────────────────────────────────────────────────── */
.feature-list { list-style: none; }
.feature-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.75rem;
  border-bottom: 0.5px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-mid);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 500;
}

/* ── Footer ────────────────────────────────────────────────────── */
.platform-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.platform-footer h4 { color: #fff; font-size: 0.9rem; font-weight: 500; margin-bottom: 1rem; }
.platform-footer a { color: rgba(255,255,255,0.65); display: block; padding: 0.3rem 0; font-size: 0.9rem; }
.platform-footer a:hover { color: #fff; }
.platform-footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* ── Dashboard layout (members area) ───────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-sidebar-logo {
  padding: 0 0.5rem 1.5rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}
.app-sidebar-logo img { height: 32px; filter: invert(1) brightness(2); width: auto; }
.app-sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.app-sidebar a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-weight: 400;
  transition: background var(--transition), color var(--transition);
}
.app-sidebar a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.app-sidebar a.active { background: var(--teal); color: #fff; font-weight: 500; }
.app-sidebar-footer { padding: 1rem 0.5rem 0; border-top: 0.5px solid rgba(255,255,255,0.1); font-size: 12px; color: rgba(255,255,255,0.45); }

.app-main { flex: 1; padding: 2rem 2.5rem 4rem; min-width: 0; }
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.5px solid var(--border);
}
.app-topbar h1 { font-size: 1.5rem; font-weight: 500; }

.tile {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 180px;
}
.tile-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.tile-value {
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tile-sub { font-size: 0.85rem; color: var(--text-muted); }
.tile-link { margin-top: auto; font-size: 0.85rem; color: var(--teal); font-weight: 500; }
.tile-dark {
  background: var(--navy);
  color: #fff;
  border: none;
}
.tile-dark .tile-label { color: rgba(255,255,255,0.5); }
.tile-dark .tile-value { color: #fff; }
.tile-dark .tile-sub { color: rgba(255,255,255,0.6); }

@media (max-width: 900px) {
  .app-sidebar { width: 180px; padding: 1rem 0.75rem; }
  .app-main { padding: 1.5rem; }
}
@media (max-width: 700px) {
  .app-shell { flex-direction: column; }
  .app-sidebar { width: 100%; height: auto; position: relative; }
  .app-sidebar nav { flex-direction: row; flex-wrap: wrap; }
}

/* ── Progress ──────────────────────────────────────────────────── */
.progress-track {
  height: 5px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: var(--r-pill);
  transition: width 250ms ease;
}

/* ── 5-stage colour system ─────────────────────────────────────── */
:root {
  --stage-discover: #0D7B8A;
  --stage-discover-light: #DDF0F3;
  --stage-learn: #534AB7;
  --stage-learn-light: #E8E6F4;
  --stage-build: #0F6E56;
  --stage-build-light: #E1F5EE;
  --stage-grow: #0D7B8A;
  --stage-grow-light: #DDF0F3;
  --stage-govern: #0F1F3D;
  --stage-govern-light: #E8EDF5;
}
.has-dropdown.stage-discover .dropdown-toggle.active,
.topnav-links .dropdown-toggle.stage-discover.active { color: var(--stage-discover); }
.has-dropdown.stage-learn .dropdown-toggle.active,
.topnav-links .dropdown-toggle.stage-learn.active { color: var(--stage-learn); }
.has-dropdown.stage-build .dropdown-toggle.active,
.topnav-links .dropdown-toggle.stage-build.active { color: var(--stage-build); }
.has-dropdown.stage-grow .dropdown-toggle.active,
.topnav-links .dropdown-toggle.stage-grow.active { color: var(--stage-grow); }
.has-dropdown.stage-govern .dropdown-toggle.active,
.topnav-links .dropdown-toggle.stage-govern.active { color: var(--stage-govern); }

/* Stage grid on home page */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.stage-card {
  display: block;
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.25rem 1.5rem;
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition);
}
.stage-card:hover { transform: translateY(-2px); border-color: var(--navy); color: inherit; }
.stage-card .stage-num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.stage-card .stage-name {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
}
.stage-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
  margin: 0;
}
.stage-card.stage-discover { background: var(--stage-discover-light); }
.stage-card.stage-discover .stage-num { color: var(--stage-discover); }
.stage-card.stage-learn { background: var(--stage-learn-light); }
.stage-card.stage-learn .stage-num { color: var(--stage-learn); }
.stage-card.stage-build { background: var(--stage-build-light); }
.stage-card.stage-build .stage-num { color: var(--stage-build); }
.stage-card.stage-grow { background: var(--stage-grow-light); }
.stage-card.stage-grow .stage-num { color: var(--stage-grow); }
.stage-card.stage-govern { background: var(--stage-govern-light); }
.stage-card.stage-govern .stage-num { color: var(--stage-govern); }
@media (max-width: 900px) {
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stage-grid { grid-template-columns: 1fr; }
}

/* Mobile nav stage groups (for index.html mobile menu) */
.mobile-group { padding: 0.5rem 0; border-top: 0.5px solid rgba(15,31,61,0.08); }
.mobile-group-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 0; }
.mobile-group-label.stage-discover { color: var(--stage-discover); }
.mobile-group-label.stage-learn { color: var(--stage-learn); }
.mobile-group-label.stage-build { color: var(--stage-build); }
.mobile-group-label.stage-grow { color: var(--stage-grow); }
.mobile-group-label.stage-govern { color: var(--stage-govern); }

/* Worker Builder wizard */
.wizard-steps { display: flex; gap: 0; margin-bottom: 2rem; border-bottom: 0.5px solid var(--border); }
.wizard-step { flex: 1; padding: 0.75rem 1rem; font-size: 12px; color: var(--text-muted); text-align: center; border-bottom: 2px solid transparent; }
.wizard-step.active { color: var(--navy); border-bottom-color: var(--teal); font-weight: 500; }
.wizard-step.done { color: var(--teal); }
.wizard-step-num { font-family: ui-monospace, monospace; font-size: 11px; margin-right: 0.4rem; }
.wizard-actions { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 0.5px solid var(--border); }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-row label { font-size: 13px; font-weight: 500; color: var(--navy); }
.form-row input, .form-row textarea, .form-row select {
  font-family: inherit; font-size: 14px; padding: 0.65rem 0.85rem;
  border: 0.5px solid var(--border-mid); border-radius: var(--r); background: var(--surface);
  color: var(--text); width: 100%;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row .hint { font-size: 12px; color: var(--text-muted); }

/* Governance checklist */
.gov-check { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0; border-bottom: 0.5px solid var(--border); }
.gov-check:last-child { border-bottom: none; }
.gov-check .gov-mark { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; flex-shrink: 0; }
.gov-check .gov-mark.done { background: var(--green-light); color: var(--green-d); }
.gov-check .gov-mark.todo { background: var(--surface-2); color: var(--text-muted); border: 0.5px solid var(--border); }
.gov-check .gov-title { flex: 1; font-size: 14px; color: var(--navy); font-weight: 400; }
.gov-check .gov-action { font-size: 12px; color: var(--teal); }

/* Utility */
/* ── Utility ───────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

details.mobile-group > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
details.mobile-group > summary::-webkit-details-marker { display: none; }
details.mobile-group > summary::after { content: "▾"; font-size: 10px; opacity: 0.6; transition: transform 0.15s; }
details.mobile-group[open] > summary::after { transform: rotate(180deg); }

/* ── Library Workers ───────────────────────────────────────────── */
.lib-intro {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}
.lib-intro-layer { display: flex; flex-direction: column; gap: 4px; }
.lib-intro-layer .lyr-num { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; color: var(--teal); text-transform: uppercase; }
.lib-intro-layer .lyr-name { font-size: 13px; font-weight: 500; color: var(--navy); }
.lib-intro-layer .lyr-desc { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
@media (max-width: 760px) { .lib-intro { grid-template-columns: 1fr; } }

.worker-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.worker-card:hover { border-color: var(--teal); transform: translateY(-1px); }
.worker-card h3 { font-size: 1rem; font-weight: 500; color: var(--navy); margin: 0; }
.worker-card .wk-blurb { font-size: 13px; color: var(--text-mid); line-height: 1.5; margin: 0; }
.worker-card .wk-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.worker-card .wk-modes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 0.5rem; border-top: 0.5px solid var(--border); }
.wk-mode-chip { font-size: 11px; color: var(--text-muted); padding: 2px 8px; border: 0.5px solid var(--border); border-radius: var(--r-pill); }
.wk-mode-chip.locked { color: var(--text-muted); opacity: 0.6; }
.wk-meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-muted); }

/* Drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15, 31, 61, 0.35); z-index: 50;
  animation: fadeIn 160ms ease-out both;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 100%);
  background: var(--surface); z-index: 51; overflow-y: auto;
  border-left: 0.5px solid var(--border);
  animation: slideIn 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.drawer-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 1.5rem 1.75rem 1rem; border-bottom: 0.5px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.drawer-head h2 { font-size: 1.25rem; font-weight: 500; color: var(--navy); margin: 0; }
.drawer-head .drawer-blurb { font-size: 13px; color: var(--text-mid); margin-top: 4px; }
.drawer-close {
  background: none; border: 0.5px solid var(--border); border-radius: 6px;
  width: 32px; height: 32px; cursor: pointer; color: var(--text-mid); font-size: 18px; line-height: 1;
}
.drawer-close:hover { color: var(--navy); border-color: var(--text-mid); }
.drawer-body { padding: 1.5rem 1.75rem 3rem; display: flex; flex-direction: column; gap: 1.75rem; }

.section-label { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.6rem; }

.layer-row {
  display: grid; grid-template-columns: 28px 1fr; gap: 0.75rem 0.85rem;
  padding: 0.75rem 0; border-bottom: 0.5px solid var(--border);
}
.layer-row:last-child { border-bottom: none; }
.layer-row .lyr-badge {
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal-light);
  color: var(--teal-text); font-size: 12px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.layer-row .lyr-h { font-size: 13px; font-weight: 500; color: var(--navy); margin: 0 0 2px; }
.layer-row .lyr-p { font-size: 12px; color: var(--text-mid); margin: 0; line-height: 1.5; }

.mode-card {
  border: 0.5px solid var(--border); border-radius: var(--r-lg); padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem; background: var(--surface);
}
.mode-card + .mode-card { margin-top: 0.75rem; }
.mode-card.primary { background: var(--teal-light); border-color: rgba(13,123,138,0.25); }
.mode-card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.mode-card-head .mode-num { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; color: var(--teal-text); text-transform: uppercase; }
.mode-card-head h3 { font-size: 1rem; font-weight: 500; color: var(--navy); margin: 0; }
.mode-card-desc { font-size: 13px; color: var(--text-mid); margin: 0; line-height: 1.5; }
.mode-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mode-link {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500;
  color: var(--teal); padding: 6px 10px; border: 0.5px solid var(--border); border-radius: 6px;
  background: var(--surface); cursor: pointer; text-decoration: none;
}
.mode-link:hover { border-color: var(--teal); }
.mode-link.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.mode-link.primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
.mode-link.muted { color: var(--text-mid); }

.prompt-box {
  background: var(--surface-2); border: 0.5px solid var(--border); border-radius: 8px;
  padding: 0.75rem 0.9rem; font-family: 'SF Mono', 'Menlo', monospace; font-size: 12px;
  color: var(--text); line-height: 1.55; white-space: pre-wrap; max-height: 220px; overflow-y: auto;
}
.notice {
  background: var(--surface-2); border: 0.5px solid var(--border); border-left: 3px solid var(--teal);
  border-radius: 6px; padding: 0.65rem 0.85rem; font-size: 12px; color: var(--text-mid); line-height: 1.5;
}
.copy-flash { font-size: 11px; color: var(--teal-text); }

/* ── LMS course player ─────────────────────────────────────────── */
.lms-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 980px) { .lms-layout { grid-template-columns: 1fr; } }
.lms-player { display: flex; flex-direction: column; gap: 1rem; }
.lms-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 0.5px solid var(--border);
}
.lms-video-empty {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-mid);
  padding: 2rem; text-align: center; font-size: 14px;
}
.lms-lesson-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  padding-bottom: 0.75rem; border-bottom: 0.5px solid var(--border);
}
.lms-lesson-title { font-size: 1.2rem; font-weight: 500; color: var(--navy); margin: 4px 0 0; }
.lms-nav { display: flex; justify-content: space-between; gap: 0.75rem; }
.lms-nav .btn { min-width: 140px; }

.lms-sidebar {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  position: sticky; top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
.lp-mod { margin-bottom: 1.25rem; }
.lp-mod:last-child { margin-bottom: 0; }
.lp-mod-title {
  font-size: 12px; font-weight: 500; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0 4px 6px; border-bottom: 0.5px solid var(--border); margin-bottom: 4px;
}
.lp-lesson {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 8px;
  align-items: center; padding: 8px; border-radius: 6px;
  text-align: left; background: none; border: none; cursor: pointer; width: 100%;
  font: inherit; color: var(--text); font-size: 13px;
}
.lp-lesson:hover { background: var(--surface-2); }
.lp-lesson.active { background: var(--teal-light); color: var(--teal-text); }
.lp-lesson.active .lp-lesson-num { background: var(--teal); color: #fff; }
.lp-lesson.done .lp-lesson-num { background: var(--green-light); color: var(--green-d); }
.lp-lesson.locked { cursor: default; opacity: 0.6; }
.lp-lesson-num {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--surface-2);
  color: var(--text-muted); font-size: 11px; font-weight: 500; border: 0.5px solid var(--border);
}
.lp-lesson-title { font-size: 13px; line-height: 1.3; }
.lp-lesson-dur { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* ===== Unified site footer (matches main page) ===== */
footer {
  background: var(--navy);
  color: rgba(247,242,234,0.6);
  padding: 4rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
footer h4 {
  font-size: 13px;
  font-weight: 500;
  color: rgba(247,242,234,0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
footer p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 1rem;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer ul li { padding: 0.35rem 0; }
footer ul li a {
  color: rgba(247,242,234,0.6);
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.2s;
}
footer ul li a:hover { color: rgba(247,242,234,0.9); }
.footer-bottom {
  border-top: 1px solid rgba(247,242,234,0.12);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 300;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-logo {
  font-size: 20px;
  font-weight: 300;
  color: rgba(247,242,234,0.85);
  letter-spacing: -0.01em;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { text-align: center; }
}

/* ============================================================
   SITE NAV (landing-page style) — canonical nav for all
   standalone pages. Pair with the markup in
   _partials/site-nav.html. Use this, NOT the old .topnav.
   ============================================================ */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(246,246,243,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: inline-flex; align-items: center; cursor: pointer; border: none; background: none; padding: 0; line-height: 0; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 0; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links button, .nav-links a {
  background: none; border: none; padding: 0.5rem 1.1rem;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 400;
  color: var(--text-muted); cursor: pointer; transition: color 0.2s;
  letter-spacing: 0.01em; text-decoration: none; display: inline-block;
}
.nav-links button:hover, .nav-links button.active,
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta {
  background: var(--navy) !important; color: var(--bg) !important;
  border-radius: 100px !important; padding: 0.5rem 1.4rem !important;
  font-weight: 500 !important; font-size: 14px !important;
  transition: background 0.2s !important; margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--navy-mid) !important; }
.nav-signin {
  color: var(--teal) !important; border: 0.5px solid var(--teal);
  background: transparent; border-radius: 100px; padding: 0.45rem 1.1rem;
  font-weight: 500; font-size: 14px; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-signin:hover { background: var(--teal); color: #fff !important; }
.mobile-signin {
  display: block; margin: 1rem 1.25rem 0.5rem; padding: 0.7rem 1rem;
  border: 0.5px solid var(--teal); border-radius: 100px; color: var(--teal);
  text-decoration: none; text-align: center; font-weight: 500; font-size: 14px;
}
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.2s; }
.nav-mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(246,246,243,0.99); border-bottom: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem; z-index: 99; flex-direction: column; gap: 0.25rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu button, .nav-mobile-menu > a {
  background: none; border: none; padding: 0.75rem 0;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 400;
  color: var(--text-muted); cursor: pointer; text-align: left;
  border-bottom: 1px solid var(--border); width: 100%; text-decoration: none; display: block;
}
.nav-mobile-menu button:last-child { border-bottom: none; }
.nav-mobile-menu .mobile-cta {
  margin-top: 0.75rem; background: var(--navy) !important; color: var(--bg) !important;
  border-radius: 100px !important; text-align: center !important;
  font-weight: 500 !important; border: none !important;
}
@media (max-width: 900px) { nav.site-nav { padding: 0 1.5rem; } }
@media (max-width: 768px) { .nav-links { display: none; } .nav-hamburger { display: flex; } }
/* Pages with the fixed site-nav need top spacing so content clears the 72px bar. */
body.has-fixed-nav { padding-top: 72px; }
