/* ============================================================
   JPA AI Pharmacy Platform — Design System
   Palette from the JPA AI Strategy Toolkit:
   navy #0E2A47 · teal #028090 · gold #E9A23B
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0E2A47;
  --navy-deep: #081B30;
  --navy-soft: #16375C;
  --teal: #028090;
  --teal-bright: #06B6C9;
  --gold: #E9A23B;
  --gold-soft: #F5C97E;
  --ink: #1B2733;
  --slate: #5A6B7C;
  --mist: #EEF3F7;
  --paper: #F8FAFC;
  --white: #FFFFFF;
  --green: #2A9D8F;
  --purple: #7B2D8B;
  --rust: #B4654A;
  --steel: #456990;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(14, 42, 71, .10);
  --shadow-lg: 0 20px 60px rgba(14, 42, 71, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 42, 71, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
/* The header row may use more width than page content: with 9 nav links
   + CTA beside the brand, 1180px is not enough — allow up to 1400px. */
.site-header .container { max-width: 1400px; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; flex: none; }
.brand-mark {
  width: 58px; height: 58px; flex: none;
  position: relative; display: grid; place-items: center;
}
.brand-mark img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 0 2px rgba(255,255,255,1)) drop-shadow(0 0 6px rgba(255,255,255,.95)) drop-shadow(0 0 16px rgba(255,255,255,.7));
}
.rx-badge {
  position: absolute; bottom: -5px; right: -7px; width: 21px; height: 21px;
  border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  color: #fff; font-size: 12px; font-style: normal; display: grid; place-items: center;
  border: 2px solid var(--navy-deep); box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.brand-text { line-height: 1.15; font-size: 19px; letter-spacing: -.3px; }
.brand-text .tel {
  background: linear-gradient(90deg, #06B6C9, #7FE3EE);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text .rx-sym { color: var(--gold); font-size: .72em; vertical-align: super; font-weight: 800; margin-left: 1px; }
.brand-text small {
  display: block; font-weight: 700; font-size: 9.5px; color: var(--gold-soft);
  letter-spacing: 2px; text-transform: uppercase; margin-top: 2px;
}
.brand-text small::before { content: "◆ "; color: var(--teal-bright); font-size: 8px; }
.main-nav { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; min-width: 0; }
.main-nav a {
  color: rgba(255,255,255,.82); font-weight: 600; font-size: 13.5px;
  padding: 9px 10px; border-radius: 10px; transition: all .2s; white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { color: #fff; background: rgba(2,128,144,.45); }
.nav-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  font-weight: 700 !important; margin-left: 8px;
}
.nav-cta:hover { background: var(--gold-soft) !important; }
.nav-burger { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(2,128,144,.55), transparent 60%),
              radial-gradient(900px 500px at 10% 110%, rgba(233,162,59,.22), transparent 55%),
              linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #123A63 100%);
  padding: 92px 0 100px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(2,128,144,.25); border: 1px solid rgba(6,182,201,.45);
  color: #9BE8F0; font-size: 13px; font-weight: 700; letter-spacing: .6px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; font-weight: 800; letter-spacing: -1px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--teal-bright), var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin-top: 20px; font-size: 18px; color: rgba(255,255,255,.85); max-width: 560px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 15.5px;
  transition: all .22s; cursor: pointer; border: 0;
}
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 24px rgba(233,162,59,.35); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 8px 24px rgba(2,128,144,.35); }
.btn-teal:hover { background: var(--teal-bright); transform: translateY(-2px); }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 24px 22px; backdrop-filter: blur(6px);
  transition: transform .25s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card .num { font-size: 34px; font-weight: 800; color: var(--gold-soft); line-height: 1; }
.stat-card .lbl { margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,.78); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--white); }
.section.navy-band {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy-soft)); color: #fff;
}
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--teal); font-weight: 800; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; }
.navy-band .kicker { color: var(--teal-bright); }
.sec-head h2 { font-size: clamp(26px, 3.3vw, 38px); font-weight: 800; letter-spacing: -.6px; margin-top: 10px; color: var(--navy); }
.navy-band .sec-head h2 { color: #fff; }
.sec-head p { margin-top: 14px; color: var(--slate); font-size: 16.5px; }
.navy-band .sec-head p { color: rgba(255,255,255,.78); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--white); border: 1px solid #E3EAF1; border-radius: var(--radius);
  padding: 30px 26px; transition: all .25s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(2,128,144,.35); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(2,128,144,.12), rgba(6,182,201,.18));
}
.card h3 { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.card p { margin-top: 10px; color: var(--slate); font-size: 14.5px; }
.card .card-num {
  position: absolute; top: 18px; right: 20px; font-size: 44px; font-weight: 800;
  color: var(--mist); line-height: 1; z-index: 0;
}

/* Framework chips */
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .8px;
  background: rgba(2,128,144,.12); color: var(--teal);
}
.chip.gold { background: rgba(233,162,59,.16); color: #B47716; }
.chip.navy { background: rgba(14,42,71,.09); color: var(--navy); }

/* ---------- Ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: tier; }
.ladder-step {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  border-top: 5px solid var(--teal); box-shadow: var(--shadow); transition: transform .25s;
  position: relative;
}
.ladder-step:nth-child(2) { border-top-color: var(--gold); }
.ladder-step:nth-child(3) { border-top-color: var(--navy); }
.ladder-step:hover { transform: translateY(-6px); }
.ladder-step .tier-tag { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); }
.ladder-step:nth-child(2) .tier-tag { color: #B47716; }
.ladder-step:nth-child(3) .tier-tag { color: var(--navy); }
.ladder-step h3 { margin-top: 8px; font-size: 20px; font-weight: 800; color: var(--navy); }
.ladder-step .fw {
  margin-top: 14px; font-size: 26px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ladder-step:nth-child(2) .fw { background: linear-gradient(90deg, #B47716, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.ladder-step:nth-child(3) .fw { background: linear-gradient(90deg, var(--navy), var(--steel)); -webkit-background-clip: text; background-clip: text; }
.ladder-step p { margin-top: 10px; color: var(--slate); font-size: 14.5px; }
.ladder-arrow { position: absolute; top: 50%; right: -19px; transform: translateY(-50%); font-size: 22px; color: var(--gold); z-index: 2; }

/* ---------- Catalogue ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--white); border: 1px solid #E3EAF1; border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 30px;
  position: sticky; top: 84px; z-index: 40;
}
.search-input {
  flex: 1; min-width: 220px; border: 1.5px solid #DCE5EE; border-radius: 10px;
  padding: 11px 16px; font-size: 14.5px; font-family: var(--font); outline: none;
  transition: border .2s;
}
.search-input:focus { border-color: var(--teal); }
.fbtn {
  border: 1.5px solid #DCE5EE; background: #fff; color: var(--slate);
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: all .18s; font-family: var(--font);
}
.fbtn:hover { border-color: var(--teal); color: var(--teal); }
.fbtn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.result-count { font-size: 13px; color: var(--slate); font-weight: 600; margin-left: auto; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card {
  background: var(--white); border: 1px solid #E3EAF1; border-radius: var(--radius);
  padding: 24px 22px 20px; cursor: pointer; transition: all .22s;
  display: flex; flex-direction: column; position: relative;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(2,128,144,.4); }
.course-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.course-code {
  font-weight: 800; font-size: 13px; padding: 4px 11px; border-radius: 8px; color: #fff;
}
.course-tier { font-size: 12px; color: var(--slate); font-weight: 600; }
.course-card h3 { font-size: 16.5px; font-weight: 800; color: var(--navy); line-height: 1.35; letter-spacing: -.2px; }
.course-card .one { margin-top: 9px; font-size: 13.5px; color: var(--slate); flex: 1; }
.course-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.meta-pill {
  font-size: 11.5px; font-weight: 700; color: var(--slate);
  background: var(--mist); padding: 4px 10px; border-radius: 999px;
}
.meta-pill.hours { color: var(--teal); background: rgba(2,128,144,.1); }
.badge-mandatory {
  position: absolute; top: -9px; right: 16px; background: var(--gold); color: var(--navy);
  font-size: 10.5px; font-weight: 800; letter-spacing: .6px; padding: 3px 10px;
  border-radius: 999px; text-transform: uppercase;
}
.badge-popular {
  position: absolute; top: -9px; right: 16px; background: var(--teal); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .6px; padding: 3px 10px;
  border-radius: 999px; text-transform: uppercase;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(8,27,48,.72); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(5px);
}
.modal-overlay.open { display: flex; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: #fff; border-radius: 20px; max-width: 720px; width: 100%;
  max-height: 88vh; overflow-y: auto; animation: slideUp .28s;
}
@keyframes slideUp { from { transform: translateY(26px); opacity: 0 } to { transform: none; opacity: 1 } }
.modal-head { padding: 30px 34px 22px; color: #fff; border-radius: 20px 20px 0 0; position: relative; }
.modal-head h3 { font-size: 23px; font-weight: 800; margin-top: 10px; letter-spacing: -.3px; }
.modal-head .sub { margin-top: 8px; font-size: 14px; opacity: .85; }
.modal-close {
  position: absolute; top: 18px; right: 20px; background: rgba(255,255,255,.15);
  border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%;
  font-size: 17px; cursor: pointer;
}
.modal-body { padding: 26px 34px 34px; }
.modal-body h4 { font-size: 13px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: var(--teal); margin: 20px 0 10px; }
.modal-body ul { padding-left: 20px; color: var(--ink); font-size: 14.5px; }
.modal-body ul li { margin-bottom: 7px; }
.modal-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 4px; }
.fact { background: var(--mist); border-radius: 10px; padding: 12px 15px; font-size: 13.5px; }
.fact b { display: block; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--slate); margin-bottom: 3px; }
.modal-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Pathways ---------- */
.pathway-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.pathway-panel {
  background: var(--white); border: 1px solid #E3EAF1; border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.path-flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.path-node {
  background: var(--mist); border: 1.5px solid #DCE5EE; padding: 8px 14px;
  border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--navy);
  cursor: pointer; transition: all .18s;
}
.path-node:hover { border-color: var(--teal); background: rgba(2,128,144,.08); }
.path-node.ai-node { background: rgba(2,128,144,.1); border-color: rgba(2,128,144,.35); color: var(--teal); }
.path-sep { color: var(--gold); font-weight: 800; }
.path-label { width: 100%; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); margin: 14px 0 4px; }

/* ---------- CARES strip ---------- */
.cares-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cares-letter {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 26px 20px; text-align: center; transition: all .25s;
}
.cares-letter:hover { background: rgba(2,128,144,.22); transform: translateY(-5px); }
.cares-letter .big {
  font-size: 44px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--teal-bright), var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cares-letter h4 { margin-top: 12px; font-size: 15px; color: #fff; font-weight: 800; }
.cares-letter p { margin-top: 8px; font-size: 12.5px; color: rgba(255,255,255,.7); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--teal), var(--gold)); border-radius: 3px;
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 5px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--teal); border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(2,128,144,.25);
}
.tl-item h4 { font-size: 16.5px; font-weight: 800; color: var(--navy); }
.tl-item p { font-size: 14px; color: var(--slate); margin-top: 5px; }
.tl-item .when { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--teal); text-transform: uppercase; }

/* ---------- Member portal ---------- */
.portal-shell { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.portal-side {
  background: var(--navy); border-radius: var(--radius); padding: 24px 0; color: #fff;
  position: sticky; top: 96px;
}
.portal-user { padding: 0 22px 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  font-weight: 800; font-size: 19px; margin-bottom: 10px;
}
.portal-user b { font-size: 15px; }
.portal-user span { display: block; font-size: 12px; color: rgba(255,255,255,.65); }
.portal-nav { padding-top: 12px; display: flex; flex-direction: column; }
.portal-nav button {
  background: none; border: 0; color: rgba(255,255,255,.78); text-align: left;
  padding: 12px 22px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font); display: flex; gap: 11px; align-items: center; transition: all .18s;
  border-left: 3px solid transparent;
}
.portal-nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.portal-nav button.on { color: #fff; background: rgba(2,128,144,.3); border-left-color: var(--gold); }
.portal-main { min-height: 520px; }
.pcard {
  background: var(--white); border: 1px solid #E3EAF1; border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.pcard h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.progress-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.progress-row .plabel { flex: 0 0 240px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.pbar { flex: 1; height: 10px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.pbar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.pbar.gold > i { background: linear-gradient(90deg, #D28A1B, var(--gold)); }
.pct { font-size: 13px; font-weight: 800; color: var(--teal); width: 44px; text-align: right; }
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cred {
  border: 1.5px solid #E3EAF1; border-radius: 14px; padding: 20px; text-align: center;
  transition: all .2s;
}
.cred.earned { border-color: var(--gold); background: linear-gradient(180deg, rgba(233,162,59,.08), transparent); }
.cred .medal { font-size: 34px; }
.cred b { display: block; margin-top: 8px; font-size: 14px; color: var(--navy); }
.cred span { font-size: 12px; color: var(--slate); }
.cred .state { display: inline-block; margin-top: 9px; font-size: 11px; font-weight: 800; padding: 3px 11px; border-radius: 99px; letter-spacing: .5px; }
.cred.earned .state { background: rgba(233,162,59,.2); color: #9A6A10; }
.cred.progress .state { background: rgba(2,128,144,.13); color: var(--teal); }
.cred.locked { opacity: .62; }
.cred.locked .state { background: var(--mist); color: var(--slate); }

/* AI assistant demo */
.chat-box { border: 1.5px solid #E3EAF1; border-radius: 14px; overflow: hidden; }
.chat-log { padding: 20px; height: 320px; overflow-y: auto; background: var(--paper); }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 14px; margin-bottom: 12px; font-size: 14px; line-height: 1.55; }
.msg.bot { background: #fff; border: 1px solid #E3EAF1; border-bottom-left-radius: 4px; }
.msg.user { background: var(--navy); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg .src { display: block; margin-top: 8px; font-size: 11.5px; color: var(--teal); font-weight: 700; }
.chat-input-row { display: flex; border-top: 1.5px solid #E3EAF1; background: #fff; }
.chat-input-row input { flex: 1; border: 0; padding: 15px 18px; font-size: 14px; outline: none; font-family: var(--font); }
.chat-input-row button { border: 0; background: var(--teal); color: #fff; padding: 0 24px; font-weight: 700; cursor: pointer; font-size: 14px; }
.chat-input-row button:hover { background: var(--teal-bright); }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; background: #fff; border-top: 1px dashed #E3EAF1; }
.chat-suggest button {
  border: 1px solid #DCE5EE; background: var(--paper); border-radius: 99px;
  font-size: 12px; font-weight: 600; color: var(--slate); padding: 6px 13px; cursor: pointer;
  font-family: var(--font);
}
.chat-suggest button:hover { border-color: var(--teal); color: var(--teal); }
.disclaimer {
  margin-top: 14px; font-size: 12px; color: var(--slate); background: var(--mist);
  border-radius: 10px; padding: 11px 15px; border-left: 3px solid var(--gold);
}

/* ---------- Guidance notes / pillars ---------- */
.gn-row { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid #E3EAF1; border-radius: 14px; padding: 22px; margin-bottom: 14px; transition: all .2s; }
.gn-row:hover { box-shadow: var(--shadow); border-color: rgba(2,128,144,.35); }
.gn-tag { flex: none; font-weight: 800; font-size: 13px; color: #fff; background: var(--teal); border-radius: 9px; padding: 6px 12px; }
.gn-row h4 { font-size: 15.5px; font-weight: 800; color: var(--navy); }
.gn-row p { font-size: 13.5px; color: var(--slate); margin-top: 5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 60px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h5 { color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 15px; }
.site-footer a { display: block; color: rgba(255,255,255,.66); font-size: 13.5px; margin-bottom: 9px; }
.site-footer a:hover { color: var(--gold-soft); }
.foot-note { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(255,255,255,.5); }
.foot-note .caveat { margin-top: 8px; }

/* ---------- Visuals & infographics ---------- */
.hero-grid > div, .hero .container > * { position: relative; z-index: 2; }
.hero-art {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.hero-art svg { position: absolute; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg) } 50% { transform: translateY(-18px) rotate(3deg) } }
@keyframes floaty2 { 0%,100% { transform: translateY(-10px) } 50% { transform: translateY(14px) } }
@keyframes spinSlow { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
@keyframes dashFlow { to { stroke-dashoffset: -120 } }
@keyframes pulseNode { 0%,100% { opacity:.55; r:5 } 50% { opacity:1; r:7 } }
.float-a { animation: floaty 9s ease-in-out infinite; }
.float-b { animation: floaty2 12s ease-in-out infinite; }

.wheel-wrap { display: flex; justify-content: center; margin-bottom: 46px; }
.wheel-wrap svg { width: 100%; max-width: 600px; height: auto; }
.wheel-spin { transform-origin: 50% 50%; animation: spinSlow 80s linear infinite; }
.wheel-node { cursor: pointer; }
.wheel-node .node-inner { transition: transform .22s; transform-origin: center; transform-box: fill-box; }
.wheel-node:hover .node-inner { transform: scale(1.12); }
.wheel-node text { font-family: var(--font); }
@keyframes flashCard { 0% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: 0 0 0 0 rgba(233,162,59,0); } }
.card.flash { animation: flashCard 1.4s ease-out 2; }

.viz-card {
  background: var(--white); border: 1px solid #E3EAF1; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.viz-card h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.viz-card .viz-sub { font-size: 13px; color: var(--slate); margin-bottom: 20px; }
.hbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.hbar-label { flex: 0 0 168px; font-size: 12.5px; font-weight: 700; color: var(--navy); text-align: right; }
.hbar-track { flex: 1; background: var(--mist); border-radius: 99px; height: 22px; overflow: hidden; }
.hbar-fill {
  height: 100%; border-radius: 99px; width: 0;
  transition: width 1.1s cubic-bezier(.2,.7,.3,1);
  display: flex; align-items: center; justify-content: flex-end;
  color: #fff; font-size: 11px; font-weight: 800; padding-right: 8px; min-width: 26px;
}
.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center; }
.legend { display: flex; flex-direction: column; gap: 8px; }
.legend span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--slate); }
.legend i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.donut-seg { transition: stroke-width .2s; cursor: pointer; }
.donut-seg:hover { stroke-width: 40; }

.gauge-wrap { display: flex; flex-direction: column; align-items: center; }
.gauge-wrap .gauge-cap { font-size: 12px; font-weight: 700; color: var(--slate); margin-top: 4px; }

/* ---------- Founders ---------- */
.founder-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.founder-card {
  background: linear-gradient(170deg, #10305233, #16375C22), var(--white);
  border: 1px solid #E3EAF1; border-radius: 20px; padding: 42px 34px;
  text-align: center; transition: all .25s; box-shadow: var(--shadow);
}
.navy-band .founder-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.founder-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.founder-photo {
  width: 172px; height: 172px; border-radius: 50%; margin: 0 auto 24px; padding: 5px;
  background: linear-gradient(135deg, #06B6C9, #7B2D8B, #E9539B);
}
.founder-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 4px solid #0E2A47; }
.founder-card h3 { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.4px; }
.founder-role { margin-top: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  background: linear-gradient(90deg, #06B6C9, #B07CE8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.founder-role2 { margin-top: 4px; font-size: 14.5px; color: rgba(255,255,255,.75); font-weight: 600; }
.founder-bio { margin-top: 18px; font-size: 14.5px; color: rgba(255,255,255,.8); line-height: 1.75; }
.founder-chips { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.founder-chips .chip { background: rgba(6,182,201,.18); color: #9BE8F0; }
.founder-chips .chip.gold { background: rgba(233,162,59,.2); color: var(--gold-soft); }
.lead-badge {
  display: inline-block; padding: 7px 20px; border-radius: 999px; font-size: 12px; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase; color: #B07CE8;
  border: 1px solid rgba(176,124,232,.45); background: rgba(123,45,139,.15); margin-bottom: 18px;
}
.grad-purple { background: linear-gradient(90deg, #06B6C9, #B07CE8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
.contact-item { display: flex; gap: 15px; align-items: center; margin-bottom: 22px; }
.contact-item .ci-icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  font-size: 19px; background: rgba(6,182,201,.14); border: 1px solid rgba(6,182,201,.3);
}
.contact-item b { display: block; font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--slate); font-weight: 800; }
.contact-item span { font-size: 15.5px; color: var(--navy); font-weight: 600; }
.contact-item a { color: var(--navy); font-weight: 600; }
.contact-item a:hover { color: var(--teal); }
.consult-card {
  margin-top: 10px; background: linear-gradient(150deg, var(--navy-deep), var(--navy-soft));
  border-radius: 16px; padding: 26px; color: #fff;
}
.consult-card h4 { color: var(--gold); font-size: 18px; font-weight: 800; }
.consult-card p { margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,.78); }
.contact-form {
  background: var(--white); border: 1px solid #E3EAF1; border-radius: 18px; padding: 30px;
  box-shadow: var(--shadow);
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { margin-bottom: 16px; }
.cf-field label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--slate); margin-bottom: 7px; }
.cf-field label em { color: #D9534F; font-style: normal; }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; border: 1.5px solid #DCE5EE; border-radius: 11px; padding: 12px 15px;
  font-size: 14.5px; font-family: var(--font); outline: none; transition: border .2s; background: var(--paper);
  color: var(--ink);
}
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { border-color: var(--teal); }
.cf-field textarea { min-height: 130px; resize: vertical; }
.cf-send {
  width: 100%; border: 0; border-radius: 12px; padding: 15px; font-size: 15.5px; font-weight: 800;
  font-family: var(--font); color: #fff; cursor: pointer; transition: all .2s;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}
.cf-send:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(2,128,144,.4); }
.cf-thanks { display: none; margin-top: 16px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: all .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* The nav collapses to the burger well before it can crowd the wordmark:
   9 links + CTA need ~1270px beside the brand, so hand over below 1280px. */
@media (max-width: 1279px) {
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-deep); flex-direction: column; align-items: stretch; padding: 14px; gap: 4px; }
  .main-nav.open { display: flex; }
  .nav-burger { display: block; }
}
@media (max-width: 980px) {
  .hero-grid, .grid-3, .grid-4, .ladder, .course-grid, .foot-grid, .portal-shell { grid-template-columns: 1fr 1fr; }
  .contact-grid, .founder-grid { grid-template-columns: 1fr; }
  .cares-strip { grid-template-columns: repeat(3, 1fr); }
  .portal-shell { grid-template-columns: 1fr; }
  .portal-side { position: static; }
}
@media (max-width: 640px) {
  .hero-grid, .grid-3, .grid-2, .grid-4, .ladder, .course-grid, .foot-grid, .cred-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .cares-strip { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0 70px; }
  .modal-facts { grid-template-columns: 1fr; }
  .filter-bar { position: static; }
  .progress-row .plabel { flex-basis: 130px; }
}

/* ---------- Member login ---------- */
.login-wrap { display: grid; grid-template-columns: 1fr 440px; gap: 40px; align-items: center; }
.login-side h3 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 20px; max-width: 380px; }
.login-points { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.login-points li { display: flex; gap: 14px; align-items: flex-start; }
.login-points i { font-style: normal; font-size: 20px; width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid #E3EBF2; border-radius: 12px; box-shadow: 0 3px 12px rgba(14,42,71,.06); }
.login-points b { display: block; font-size: 14.5px; }
.login-points span { font-size: 13px; color: var(--slate); }
.login-card { background: #fff; border: 1px solid #E3EBF2; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 30px 30px 24px; }
.login-head { text-align: center; margin-bottom: 22px; }
.login-lock { width: 54px; height: 54px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 24px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); box-shadow: 0 6px 18px rgba(14,42,71,.28); }
.login-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.login-head p { font-size: 13px; color: var(--slate); margin-top: 4px; }
.field { display: block; margin-bottom: 14px; }
.field > span:first-child { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; letter-spacing: .2px; }
.field input { width: 100%; border: 1.5px solid #DCE5EE; border-radius: var(--radius-sm); padding: 12px 14px; font-family: var(--font); font-size: 14.5px; color: var(--ink); background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(2,128,144,.14); background: #fff; }
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-right: 46px; }
.pass-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 16px; cursor: pointer; padding: 6px; border-radius: 8px; line-height: 1; }
.pass-wrap button:hover { background: var(--mist); }
#loginError { display: none; font-size: 13px; font-weight: 600; color: #B4364A; background: #FDF0F2; border: 1px solid #F3CCD4; border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; }
.login-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; }
.login-row .remember { display: inline-flex; align-items: center; gap: 7px; color: var(--slate); cursor: pointer; }
.login-row .remember input { accent-color: var(--teal); width: 15px; height: 15px; }
.login-row a { font-weight: 600; }
#forgotNote { display: none; font-size: 12.5px; color: var(--slate); background: var(--mist); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; }
.login-submit { width: 100%; justify-content: center; font-size: 15px; padding: 13px 20px; position: relative; }
.login-submit.loading span { visibility: hidden; }
.login-submit.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2.5px solid rgba(14,42,71,.25); border-top-color: var(--navy); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shakeX { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
form.shake { animation: shakeX .5s cubic-bezier(.36,.07,.19,.97); }
.login-demo { margin-top: 18px; padding: 12px 14px; background: linear-gradient(135deg, rgba(2,128,144,.07), rgba(233,162,59,.08)); border: 1px dashed rgba(2,128,144,.35); border-radius: var(--radius-sm); font-size: 13px; color: var(--slate); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.login-demo b { color: var(--navy); }
.login-demo code { background: #fff; border: 1px solid #E3EBF2; border-radius: 6px; padding: 2px 7px; font-size: 12px; color: var(--teal); }
.login-demo button { margin-left: auto; border: 1px solid var(--teal); background: none; color: var(--teal); font-family: var(--font); font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.login-demo button:hover { background: var(--teal); color: #fff; }
.login-caveat { margin-top: 14px; font-size: 11.5px; color: var(--slate); text-align: center; line-height: 1.5; }
.nav-cta.signed-in { background: linear-gradient(135deg, var(--teal), var(--teal-bright)); color: #fff; }
.portal-signout { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-top: 1px solid rgba(255,255,255,.12); border-left: 3px solid transparent; background: none; color: rgba(255,255,255,.55); font-family: var(--font); font-size: 13.5px; font-weight: 600; padding: 13px 22px; margin-top: 10px; cursor: pointer; transition: all .2s; }
.portal-signout:hover { color: #fff; background: rgba(180,54,74,.25); border-left-color: #E06C7D; }
#portalWrap.portal-enter { animation: portalIn .55s cubic-bezier(.2,.7,.3,1); }
@keyframes portalIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
#lastLogin { color: rgba(255,255,255,.45); font-size: 11px !important; }
@media (max-width: 980px) {
  .login-wrap { grid-template-columns: 1fr; gap: 30px; }
  .login-card { max-width: 480px; }
}

/* ---------- Regulations library ---------- */
.reg-card { cursor: default; }
.reg-actions { margin-top: 16px; display: flex; gap: 10px; }
.reg-actions .btn { padding: 9px 16px; font-size: 13px; flex: 1; justify-content: center; text-align: center; }
.reg-actions .reg-dl { color: var(--navy); border-color: #DCE5EE; }
.reg-actions .reg-dl:hover { border-color: var(--teal); color: var(--teal); }
