/* ==========================================================================
   InvestAbility for Employers — consumer learning app design system
   IHC 2026 brand: Purple #413494 · Blue #5EAEE0 · Gold #F9C20A · Red #E52823
   Green #82C341 · Pink #CE509D · Charcoal #495965
   Montserrat (headings) + Lora (body). Mobile-first. WCAG 2.2 AA.
   ========================================================================== */

:root {
  --purple: #413494;
  --purple-deep: #2E2470;
  --purple-soft: #ECEAF6;
  --blue: #5EAEE0;
  --blue-soft: #EAF4FB;
  --gold: #F9C20A;
  --gold-soft: #FEF6DC;
  --red: #E52823;
  --red-soft: #FCEAEA;
  --green: #82C341;
  --green-soft: #F0F8E6;
  --pink: #CE509D;
  --pink-soft: #FAEDF5;
  --charcoal: #495965;
  --ink: #23253A;
  --paper: #FFFFFF;
  --canvas: #F7F7FB;
  --line: #E4E4EE;

  --font-head: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Lora', Georgia, serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 2px 10px rgba(35, 37, 58, .06), 0 12px 32px rgba(35, 37, 58, .08);
  --shadow-sm: 0 1px 4px rgba(35, 37, 58, .08);
  --space: clamp(1rem, 3vw, 1.75rem);
  --ease: cubic-bezier(.22, .8, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--purple-deep); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.on-light :focus-visible, main :focus-visible { outline-color: var(--purple); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--purple-deep); color: #fff; padding: .75rem 1.25rem;
  font-family: var(--font-head); font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--space); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--space); }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  display: flex; align-items: center; gap: 1rem;
  max-width: 1080px; margin: 0 auto; padding: .65rem var(--space);
}
.brand img { height: 44px; width: auto; display: block; }
.brand { flex-shrink: 0; }

.nav-toggle {
  margin-left: auto; background: none; border: 2px solid var(--purple);
  border-radius: 10px; padding: .4rem .7rem; font-family: var(--font-head);
  font-weight: 700; color: var(--purple); cursor: pointer; font-size: .9rem;
}
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav ul { list-style: none; margin: 0; padding: .5rem var(--space) 1rem; display: flex; flex-direction: column; gap: .1rem; }
.site-nav a {
  display: block; padding: .65rem .9rem; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--charcoal); border-radius: 10px;
}
.site-nav a:hover { background: var(--purple-soft); color: var(--purple-deep); }
.site-nav a[aria-current="page"] { background: var(--purple); color: #fff; }
.site-nav .nav-cta a { background: var(--gold); color: var(--purple-deep); }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; margin-left: auto; position: static; box-shadow: none; border: 0; }
  .site-nav ul { flex-direction: row; align-items: center; padding: 0; gap: .15rem; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: .85rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); color: #fff; }
.btn-gold { background: var(--gold); color: var(--purple-deep); }
.btn-gold:hover { background: #E5B209; color: var(--purple-deep); }
.btn-ghost { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-ghost:hover { background: var(--purple-soft); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 55%, #52449F 100%);
  color: #fff; padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6rem);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(249,194,10,.25), transparent 65%);
  border-radius: 50%;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { font-size: clamp(1.1rem, 2.5vw, 1.3rem); max-width: 52ch; color: #E8E5F5; }
.hero .kicker {
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* --------------------------------------------------------------------------
   Sections, cards
   -------------------------------------------------------------------------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--paper); }
.section-purple { background: var(--purple-deep); color: #E8E5F5; }
.section-purple h2 { color: #fff; }
.section .kicker {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--pink); margin-bottom: .4rem;
}

.card {
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* Path cards (learning) */
.path-card {
  display: flex; flex-direction: column; gap: .4rem;
  text-decoration: none; color: inherit; position: relative;
  border-top: 6px solid var(--accent, var(--purple));
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.path-card h3 { margin: 0; }
.path-card .tagline { color: var(--charcoal); font-size: .98rem; margin: 0; }
.path-card .meta { font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: var(--charcoal); margin-top: auto; padding-top: .6rem; }
.accent-gold { --accent: var(--gold); }
.accent-blue { --accent: var(--blue); }
.accent-purple { --accent: var(--purple); }
.accent-green { --accent: var(--green); }
.accent-red { --accent: var(--red); }
.accent-pink { --accent: var(--pink); }

/* Progress bar */
.progress-track { background: var(--line); border-radius: 999px; height: 10px; overflow: hidden; }
.progress-fill {
  background: linear-gradient(90deg, var(--purple), var(--blue));
  height: 100%; border-radius: 999px; transition: width .6s var(--ease);
  min-width: 4px;
}
.progress-fill.gold { background: linear-gradient(90deg, var(--gold), #E5B209); }

/* Journey ring */
.ring { width: 132px; height: 132px; }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--line); }
.ring .meter { stroke: var(--purple); stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke-dashoffset .9s var(--ease); }
.ring-label { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; fill: var(--purple-deep); }
.ring-sub { font-family: var(--font-head); font-size: .6rem; font-weight: 600; fill: var(--charcoal); letter-spacing: .08em; }

/* Stats */
.stat-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.6rem 0; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--purple-soft); border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem; text-align: center;
}
.stat-value { display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--purple); }
.stat-label { display: block; font-family: var(--font-head); font-size: .82rem;
  font-weight: 600; color: var(--charcoal); margin-top: .25rem; line-height: 1.4; }
.section-purple .stat { background: rgba(255,255,255,.08); }
.section-purple .stat-value { color: var(--gold); }
.section-purple .stat-label { color: #D8D4EC; }

/* --------------------------------------------------------------------------
   Levels
   -------------------------------------------------------------------------- */
.level-card {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--paper); overflow: hidden; box-shadow: var(--shadow-sm);
}
.level-card .level-head {
  padding: 1.1rem 1.4rem; display: flex; align-items: center; gap: .9rem;
  background: var(--tint, var(--purple-soft));
}
.level-medal {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--medal, var(--purple)); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.level-head h3 { margin: 0; }
.level-head .role { font-family: var(--font-head); font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--charcoal); }
.level-body { padding: 1.2rem 1.4rem 1.4rem; }
.level-body ul { padding-left: 1.2rem; margin: .4em 0 1em; }
.level-body li { margin-bottom: .45em; }

/* Journey level states */
.journey-level { position: relative; margin-bottom: 1.2rem; }
.journey-level.achieved .level-head::after {
  content: "Achieved ✓"; margin-left: auto; font-family: var(--font-head);
  font-weight: 700; font-size: .85rem; color: var(--green);
  background: var(--green-soft); padding: .3rem .8rem; border-radius: 999px;
}
.journey-level.active .level-card { border: 2px solid var(--purple); box-shadow: var(--shadow); }
.journey-level.upcoming { opacity: .75; }
.req { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 0; border-top: 1px solid var(--line); }
.req:first-child { border-top: 0; }
.req-mark { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem; font-family: var(--font-head); font-weight: 800;
  border: 2px solid var(--line); color: var(--charcoal); background: #fff; }
.req.met .req-mark { background: var(--green); border-color: var(--green); color: #fff; }
.req.pending .req-mark { background: var(--gold); border-color: var(--gold); color: var(--purple-deep); }
.req .req-status { font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; }
.req.met .req-status { color: #4C7A1E; }
.req.pending .req-status { color: #8A6D00; }
.req.open .req-status { color: var(--charcoal); }

details.req-form { margin-top: .5rem; }
details.req-form summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  color: var(--purple); list-style: none;
}
details.req-form summary::before { content: "+ "; }
details.req-form[open] summary::before { content: "− "; }
details.req-form .form-body { margin-top: .8rem; padding: 1rem; background: var(--canvas); border-radius: var(--radius-sm); }

/* --------------------------------------------------------------------------
   Lesson layout
   -------------------------------------------------------------------------- */
.lesson-shell { max-width: 720px; margin: 0 auto; padding: 0 var(--space); }
.lesson-top { padding: 1.4rem 0 .5rem; }
.crumb { font-family: var(--font-head); font-size: .85rem; font-weight: 600; }
.crumb a { text-decoration: none; color: var(--charcoal); }
.crumb a:hover { color: var(--purple); }
.lesson-article {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.6rem); margin-bottom: 1.4rem;
}
.lesson-article .lede { font-size: 1.2rem; color: var(--purple-deep); line-height: 1.65; }
.lesson-article h3 { margin-top: 1.8em; }
.lesson-article ul { padding-left: 1.3rem; }
.lesson-article li { margin-bottom: .5em; }

.takeaway {
  background: var(--gold-soft); border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem; margin: 1.2rem 0 1.8rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.takeaway .k { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: #8A6D00; margin-bottom: .3rem; }

.try-this {
  background: var(--blue-soft); border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem; margin: 1.6rem 0 .4rem;
}
.myth { background: var(--canvas); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.myth h4 { margin: 0 0 .4em; color: var(--red); font-size: 1.02rem; }
.myth p { margin: 0; }

.before-after { display: grid; gap: 1rem; margin: 1.2rem 0; }
@media (min-width: 720px) { .before-after { grid-template-columns: 1fr 1fr; } }
.before, .after { border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.before { background: var(--red-soft); }
.after { background: var(--green-soft); }
.before h4 { color: var(--red); margin: 0 0 .4em; }
.after h4 { color: #4C7A1E; margin: 0 0 .4em; }
.before p, .after p { margin: 0; font-size: .98rem; }

.simple-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .98rem; }
.simple-table th { font-family: var(--font-head); font-size: .85rem; text-align: left;
  background: var(--purple-soft); color: var(--purple-deep); padding: .6rem .8rem; }
.simple-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }

ul.checklist { list-style: none; padding-left: 0; }
ul.checklist li { padding-left: 2rem; position: relative; margin-bottom: .55em; }
ul.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.15em; height: 1.15em;
  border: 2px solid var(--purple); border-radius: 5px; background: #fff;
}

.sources { font-size: .85rem; color: var(--charcoal); border-top: 1px solid var(--line);
  margin-top: 2rem; padding-top: 1rem; font-family: var(--font-head); }

.lesson-nav { display: flex; gap: .8rem; justify-content: space-between; flex-wrap: wrap; padding-bottom: 3rem; }
.lesson-nav .spacer { flex: 1; }

/* Complete button + celebration */
.complete-btn { position: relative; }
.complete-btn.done { background: var(--green); color: #fff; }
.celebrate {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: 90;
  background: rgba(46, 36, 112, .55); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.celebrate.show { opacity: 1; pointer-events: auto; }
.celebrate-card {
  background: var(--paper); border-radius: var(--radius); padding: 2.2rem 2.6rem;
  text-align: center; box-shadow: var(--shadow); max-width: 420px; margin: 1rem;
  transform: translateY(12px); transition: transform .3s var(--ease);
}
.celebrate.show .celebrate-card { transform: translateY(0); }
.celebrate-card .big { font-size: 3rem; line-height: 1; margin-bottom: .5rem; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
label { font-family: var(--font-head); font-weight: 700; font-size: .92rem; display: block; margin-bottom: .3rem; color: var(--purple-deep); }
.hint { font-size: .85rem; color: var(--charcoal); font-family: var(--font-head); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; font-family: var(--font-head); font-size: 1rem;
  padding: .75rem .9rem; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--purple); outline: none; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--purple); flex-shrink: 0; }
.check label, .check span { font-weight: 500; font-family: var(--font-body); font-size: .98rem; margin: 0; color: var(--ink); }
.form-error { background: var(--red-soft); border-left: 5px solid var(--red);
  padding: .8rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head); font-weight: 600; margin-bottom: 1.2rem; }
.form-ok { background: var(--green-soft); border-left: 5px solid var(--green);
  padding: .8rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head); font-weight: 600; margin-bottom: 1.2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.honeypot { position: absolute; left: -9999px; top: -9999px; }

/* Assessment */
.assess-q { padding: 1rem 0; border-top: 1px solid var(--line); }
.assess-q:first-of-type { border-top: 0; }
fieldset.assess-q { border: 0; margin: 0; }
fieldset.assess-q legend { font-family: var(--font-body); font-size: 1.05rem; padding: 0; margin-bottom: .6rem; }
.assess-opts { display: flex; gap: .5rem; flex-wrap: wrap; }
.assess-opts label {
  border: 2px solid var(--line); border-radius: 999px; padding: .45rem 1.1rem;
  cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--charcoal); margin: 0;
  display: inline-flex; align-items: center; gap: .45rem;
}
.assess-opts input { accent-color: var(--purple); }
.assess-opts label:has(input:checked) { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-deep); }
.assess-opts label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--purple-deep); color: #C9C4E4; padding: 2.6rem 0 2rem; margin-top: 3rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer img { height: 40px; width: auto; margin-bottom: .8rem; }
.site-footer .fine { font-size: .82rem; margin-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem; font-family: var(--font-head); }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; font-family: var(--font-head); font-size: .95rem; }

/* --------------------------------------------------------------------------
   Home (journey) specifics
   -------------------------------------------------------------------------- */
.journey-hero { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.next-step {
  background: linear-gradient(135deg, var(--purple) 0%, #52449F 100%);
  color: #fff; border-radius: var(--radius); padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
}
.next-step h3 { color: var(--gold); margin-bottom: .3em; }
.next-step p { color: #E8E5F5; }
.badge-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  background: var(--tint, var(--purple-soft)); color: var(--ink);
  border-radius: 999px; padding: .35rem .95rem;
}
.badge-chip .dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--medal, var(--purple)); }

/* Toolkit / print */
.tool-note { background: var(--canvas); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .92rem; font-family: var(--font-head); }
.fill { line-height: 2.1; }
@media print {
  .site-header, .site-footer, .lesson-nav, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .lesson-article, .card { box-shadow: none; border: 0; }
}

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; font-family: var(--font-head); font-size: .9rem; background: var(--paper); border-radius: var(--radius-sm); overflow: hidden; }
.admin-table th { background: var(--purple-deep); color: #fff; text-align: left; padding: .6rem .8rem; }
.admin-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .15rem .7rem; }
.pill-pending { background: var(--gold-soft); color: #8A6D00; }
.pill-approved, .pill-answered, .pill-delivered { background: var(--green-soft); color: #4C7A1E; }
.pill-declined { background: var(--red-soft); color: var(--red); }
.pill-new, .pill-not_ordered { background: var(--blue-soft); color: #1D6EA5; }
.pill-ordered { background: var(--purple-soft); color: var(--purple); }
.inline-form { display: inline; }

/* ==========================================================================
   Atlas layer — design language from the Atlas consumer product
   (violet accent, lavender surfaces, stagebar journey, night ink)
   ========================================================================== */
:root {
  --violet: #6F5BD3;
  --lavender: #EBE8FA;
  --night: #202034;
  --blue-mist: #E9F5FC;
  --green-mist: #ECF6E2;
  --gold-soft-atlas: #FFF3C8;
  --shadow-atlas: 0 10px 30px rgba(32, 32, 52, .08);
}

/* Atlas topbar identity */
.atlas-mark { display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
  color: var(--purple); text-decoration: none; }
.atlas-mark svg { display: block; flex-shrink: 0; }
.atlas-mark .for { font-weight: 600; font-size: .85rem; color: var(--charcoal); margin-left: .1rem; }
.provider-chip { display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-size: .72rem; font-weight: 600;
  color: var(--charcoal); text-decoration: none; }
.provider-chip img { height: 22px; width: auto; display: block; }
.provider-strip { background: var(--paper); border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: .78rem; color: var(--charcoal);
  text-align: center; padding: .3rem 1rem; }
.provider-strip img { height: 16px; width: auto; vertical-align: -3px; margin: 0 .35rem; }

.module-chip { display: inline-flex; align-items: center; gap: .5rem;
  background: var(--lavender); border-radius: 999px; padding: .3rem .9rem .3rem .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--purple-deep); }
.module-chip img { height: 20px; width: auto; }

/* Atlas stagebar (journey progress, from the consumer product) */
.stagebar { background: var(--paper); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  padding: .8rem 1.1rem; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; }
.stagebar .lbl .k { font-family: var(--font-head); font-size: .68rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal);
  font-weight: 700; display: block; }
.stagebar .lbl b { font-family: var(--font-head); font-size: .98rem; color: var(--night); }
.segs { display: flex; gap: 5px; align-items: flex-end; }
.segs span { width: 18px; height: 8px; border-radius: 5px; background: var(--lavender);
  transition: all .24s var(--ease); }
.segs span.done { background: var(--gold); height: 12px; }
.segs span.cur { background: var(--purple); width: 28px; height: 14px; }

/* Atlas front cards (progress fronts on the Atlas home) */
.front-card { background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; }
.front-card .k { font-family: var(--font-head); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 800; color: var(--violet); }
.front-card .val { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  color: var(--purple-deep); line-height: 1.15; }
.front-card .sub { font-size: .92rem; color: var(--charcoal); }
.front-card a.go { font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  margin-top: auto; text-decoration: none; }
.front-card.portal { background: linear-gradient(150deg, var(--purple-deep), var(--purple));
  border: 0; }
.front-card.portal .k { color: var(--gold); }
.front-card.portal .val, .front-card.portal .sub { color: #fff; }
.front-card.portal .sub { color: #DAD5EE; }

/* Engagement catalog (recruitment cycle) */
.cycle-stage { margin-bottom: 1.6rem; }
.cycle-stage > h3 { display: flex; align-items: center; gap: .6rem; }
.cycle-stage .stage-num { width: 30px; height: 30px; border-radius: 50%;
  background: var(--lavender); color: var(--violet); display: inline-grid;
  place-items: center; font-family: var(--font-head); font-weight: 800; font-size: .95rem; }
.cycle-stage .stage-blurb { color: var(--charcoal); font-size: .95rem; margin: .1rem 0 .8rem; }
.engage-card { display: flex; flex-direction: column; gap: .3rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; text-decoration: none; color: inherit;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.engage-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-atlas); }
.engage-card b { font-family: var(--font-head); color: var(--purple-deep); }
.engage-card .what { font-size: .9rem; color: var(--charcoal); }
.engage-card .tag { font-family: var(--font-head); font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; }
.engage-card .tag.free { color: #4C7A1E; }
.engage-card .tag.investability { color: var(--violet); }
.engage-card .tag.portal { color: #8A6D00; }
.engage-card .tag.talk { color: var(--pink); }

/* Invite box */
.invite-box { background: var(--blue-mist); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; }
.invite-box input { font-family: var(--font-head); font-size: .88rem;
  background: #fff; }

/* Membership cards */
.plan-card { display: flex; flex-direction: column; gap: .5rem; }
.plan-card .price-line { font-family: var(--font-head); font-weight: 700;
  font-size: .85rem; color: var(--violet); }
.plan-card ul { padding-left: 1.2rem; margin: .3rem 0 .8rem; }
.plan-card li { margin-bottom: .35em; font-size: .95rem; }
.plan-card.current { border: 2px solid var(--green); }
.plan-card.current::after { content: "Your plan"; align-self: flex-start;
  font-family: var(--font-head); font-weight: 700; font-size: .75rem;
  background: var(--green-soft); color: #4C7A1E; border-radius: 999px; padding: .2rem .8rem; }

/* ==========================================================================
   Atlas dynamic layer v2 — weave hero assets, staged flows, feedback pill,
   passport. Grammar from the worker-facing Atlas + Weave Shell standard.
   ========================================================================== */
:root { --weave-asset: url('../img/ihc-weave-pattern.png'); }

/* Weave hero: purple field, weave anchored right edge, gold insight rule */
.hero.weave, .section-purple.weave {
  background-image: linear-gradient(100deg, var(--purple-deep) 0%, var(--purple) 46%, rgba(65,52,148,.9) 70%, rgba(65,52,148,.68) 100%), var(--weave-asset);
  background-position: left center, right -60px center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, auto 130%;
}
.hero-rule { width: 88px; height: 6px; border-radius: 999px;
  background: var(--gold); margin: 1.1rem 0 1.2rem; }
.next-step.weave {
  background-image: linear-gradient(115deg, var(--purple) 0%, #52449F 62%, rgba(82,68,159,.7) 100%), var(--weave-asset);
  background-position: left center, right -80px center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, auto 200%;
}

/* Link-back rows (worker Atlas .linkrow) */
.linkrow { font-family: var(--font-head); font-weight: 700; font-size: .95rem; margin-top: .8rem; }
.linkrow a { color: var(--purple-deep); text-decoration: none;
  border-bottom: 3px solid var(--gold); padding-bottom: 1px; }
.linkrow a:hover { color: var(--purple); }
.section-purple .linkrow a, .hero .linkrow a, .next-step .linkrow a { color: #fff; }

/* Feedback pill (worker Atlas .fb) */
.fb { position: fixed; right: 16px; bottom: 16px; background: var(--gold);
  color: var(--night); font-family: var(--font-head); font-weight: 700;
  font-size: .82rem; padding: .65rem 1.05rem; border-radius: 999px;
  text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.22); z-index: 60; }
.fb:hover { background: #E5B209; color: var(--night); }
@media print { .fb { display: none; } }

/* Staged flow (join) — rise animation from the worker Atlas */
.flow-stage { display: block; }
.js-staged .flow-stage { display: none; }
.js-staged .flow-stage.on { display: block; animation: rise .32s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js-staged .flow-stage.on { animation: none; } }
.stagebar .segs span { cursor: default; }
.stagebar.clickable .segs span { cursor: pointer; }
.flow-nav { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.flow-back { background: none; border: none; font-family: var(--font-head);
  font-weight: 700; color: var(--charcoal); cursor: pointer; font-size: .92rem;
  padding: .6rem 0; text-decoration: underline; text-underline-offset: 3px; }

/* Passport (printable journey summary) */
.passport-card { border: 2px solid var(--purple); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; background: var(--paper); }
.passchips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.passchips span { background: var(--lavender); border-radius: 10px;
  padding: .45rem .8rem; font-family: var(--font-head); font-size: .82rem; font-weight: 600; }
@media print {
  body.passport-print * { visibility: hidden; }
  body.passport-print #passport, body.passport-print #passport * { visibility: visible; }
  body.passport-print #passport { position: absolute; top: 0; left: 0; width: 100%; border: none; box-shadow: none; }
}
