/* Alex Weave, Estate Edition. No runtime font request is made here.
   Host Montserrat and Lora locally when strict CSP applies. */

:root {
  /* IHC / Alex core. Atlas names remain as compatibility aliases. */
  --ihc-purple: #3f3594;
  --alex-purple: #413494;
  --atlas-purple: var(--alex-purple); /* legacy alias */
  --purple-950: #211a4e;
  --purple-900: #2b235e;
  --purple-800: #342a78;
  --violet: #6f5bd3;
  --lavender: #ebe8fa;
  --lavender-2: #f4f1ff;
  --gold: #f9c20a;
  --gold-ink: #765300;
  --gold-soft: #fff3c8;
  --red: #e52823;
  --red-ink: #b91d19;
  --red-soft: #fbe2e0;
  --blue: #5eaee0;
  --blue-ink: #14577e;
  --blue-soft: #e8f5fc;
  --green: #82c341;
  --green-ink: #386811;
  --green-soft: #edf7e2;
  --pink-soft: #f8e5ef;

  /* neutrals */
  --ink: #202034;
  --charcoal: #35424b;
  --slate: #495965;
  --muted: #69747e;
  --subtle: #8a929d;
  --line: #dedee8;
  --line-strong: #c9c8d5;
  --canvas: #f5f4f9;
  --cream: #fff8ed;
  --paper: #fffdf9;
  --surface: #ffffff;

  /* typography */
  --font-display: "Montserrat", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --font-body: "Lora", Georgia, serif;
  --font-data: "Montserrat", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --step--1: clamp(.82rem, .8rem + .08vw, .88rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.08rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + .9vw, 2rem);
  --step-3: clamp(2rem, 1.55rem + 1.7vw, 3.1rem);
  --step-4: clamp(2.75rem, 2rem + 3vw, 5.2rem);
  --step-5: clamp(3.35rem, 2.35rem + 4vw, 6.8rem);

  /* shape + elevation */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;
  --shadow-1: 0 8px 24px rgba(32, 32, 52, .08);
  --shadow-2: 0 18px 56px rgba(32, 32, 52, .12);
  --shadow-3: 0 30px 80px rgba(32, 32, 52, .16);
  --focus: 0 0 0 4px rgba(111, 91, 211, .25);

  /* spacing */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --page: clamp(1rem, 4vw, 4rem);
  --max: 1240px;

  /* motion */
  --motion-fast: 120ms;
  --motion-ui: 220ms;
  --motion-stage: 360ms;
  --motion-story: 620ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.2, 1.2, .4, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
html { scroll-behavior: smooth; min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body[data-theme="workforce"] { --audience: var(--gold); --audience-soft: var(--gold-soft); --audience-ink: var(--gold-ink); --page-bg: var(--cream); }
body[data-theme="employer"] { --audience: var(--blue); --audience-soft: var(--blue-soft); --audience-ink: var(--blue-ink); --page-bg: #f4f7fb; }
body[data-theme="nonprofit"] { --audience: var(--green); --audience-soft: var(--green-soft); --audience-ink: var(--green-ink); --page-bg: var(--paper); }
body[data-theme="system"] { --audience: var(--violet); --audience-soft: var(--lavender); --audience-ink: var(--purple-900); --page-bg: var(--canvas); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
::selection { color: var(--ink); background: var(--gold-soft); }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  color: white;
  background: var(--purple-950);
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform var(--motion-ui) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- shared brand shell ---------- */
.site-shell { min-height: 100vh; overflow: clip; background: var(--page-bg, var(--canvas)); }
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(32, 32, 52, .08);
  background: color-mix(in srgb, var(--page-bg, #fff) 88%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}
.site-header__inner {
  width: min(calc(100% - (var(--page) * 2)), var(--max));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
/* Canonical brand lockup. Defensive resets keep the mark, wording, rule,
   and IHC logo from being repositioned or squeezed by page-level CSS. */
.brand-lockup {
  position: static;
  transform: none;
  margin: 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
/* Kinetic Layer Phase 1 delta (a): the lockup is a container of two links,
   the Alex home link and the IHC site link. Same geometry as the single
   anchor it replaces; data attributes unchanged. */
.brand-lockup__alex,
.brand-lockup__ihc-link {
  position: static;
  transform: none;
  margin: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.brand-lockup__mark {
  position: static;
  transform: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  flex-shrink: 0;
}
.brand-lockup__mark img { width: 38px; height: 38px; max-height: 38px; }
.brand-lockup__wording {
  position: static;
  transform: none;
  margin: 0 0 0 -4px; /* designed gap: 8px between mark and wording */
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.brand-lockup__wording strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.045em;
}
.brand-lockup__rule { width: 1px; height: 34px; margin: 0; flex-shrink: 0; background: var(--line-strong); }
.brand-lockup__ihc {
  width: 148px;
  height: auto;
  max-height: 55px;
  margin: 0;
  flex-shrink: 0;
  object-fit: contain;
}
.site-nav { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); }
.site-nav a {
  min-height: 44px;
  padding: 0 .85rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  color: var(--slate);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  transition: color var(--motion-ui), background var(--motion-ui), transform var(--motion-fast);
}
.site-nav a:hover { color: var(--purple-900); background: rgba(65, 52, 148, .07); transform: translateY(-1px); }
.site-nav a[aria-current="page"] { color: var(--purple-900); background: var(--lavender); }
.site-nav .nav-cta { color: white; background: var(--alex-purple); }
.site-nav .nav-cta:hover { color: white; background: var(--purple-900); }
.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--purple-900);
  background: var(--surface);
  cursor: pointer;
}
.menu-button span, .menu-button::before, .menu-button::after {
  content: "";
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  display: block;
  background: currentColor;
  transition: transform var(--motion-ui), opacity var(--motion-ui);
}
.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.audience-bar { border-bottom: 1px solid rgba(32, 32, 52, .06); background: rgba(255,255,255,.5); }
.audience-bar__inner {
  width: min(calc(100% - (var(--page) * 2)), var(--max));
  min-height: 42px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.audience-label { color: var(--muted); font-family: var(--font-display); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.audience-switch { display: flex; align-items: center; gap: 4px; }
.audience-switch a {
  min-height: 34px;
  padding: 0 .75rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  color: var(--slate);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
}
.audience-switch a:hover, .audience-switch a[aria-current="page"] { color: var(--purple-900); background: var(--surface); box-shadow: 0 4px 16px rgba(32,32,52,.07); }

.launch-note {
  min-height: 40px;
  padding: .55rem var(--page);
  color: white;
  background: var(--purple-950);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 650;
}
.launch-note b { color: var(--gold); }

/* ---------- layout ---------- */
.container { width: min(calc(100% - (var(--page) * 2)), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - (var(--page) * 2)), 800px); margin-inline: auto; }
.section { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--purple { color: white; background: var(--purple-950); }
.section--paper { background: var(--paper); }
.section--white { background: var(--surface); }
.section--soft { background: var(--audience-soft); }
.section-head { max-width: 780px; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--alex-purple);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section--purple .eyebrow { color: var(--gold); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { margin-bottom: 1.25rem; font-size: var(--step-4); font-weight: 800; }
h2 { margin-bottom: 1rem; font-size: var(--step-3); font-weight: 800; }
h3 { margin-bottom: .65rem; font-size: var(--step-1); font-weight: 750; }
p { max-width: 70ch; }
.lede { color: var(--slate); font-size: var(--step-1); line-height: 1.55; }
.section--purple .lede, .section--purple p { color: rgba(255,255,255,.76); }
.data-type { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.button {
  min-height: 52px;
  padding: .8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-ui), background var(--motion-ui), color var(--motion-ui), border-color var(--motion-ui);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.985); }
.button--primary { color: white; background: var(--alex-purple); box-shadow: 0 10px 26px rgba(65,52,148,.25); }
.button--primary:hover { background: var(--purple-900); box-shadow: 0 14px 36px rgba(65,52,148,.3); }
.button--gold { color: var(--ink); background: var(--gold); box-shadow: 0 10px 26px rgba(249,194,10,.24); }
.button--gold:hover { background: #ffd238; }
.button--light { color: var(--purple-900); background: white; box-shadow: var(--shadow-1); }
.button--ghost { color: var(--purple-900); border-color: var(--line-strong); background: transparent; }
.button--ghost:hover { border-color: var(--violet); background: var(--lavender-2); }
.button--small { min-height: 44px; padding: .65rem .9rem; font-size: .82rem; }
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--alex-purple);
  font-family: var(--font-display);
  font-weight: 800;
  text-underline-offset: 4px;
}

/* ---------- hero + weave ---------- */
.hero { position: relative; padding-block: clamp(4rem, 9vw, 8.5rem); isolation: isolate; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--audience) 18%, transparent), transparent 30%),
    radial-gradient(circle at 7% 78%, rgba(111,91,211,.13), transparent 33%),
    var(--page-bg, var(--canvas));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(340px, .97fr); align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker {
  width: fit-content;
  margin-bottom: 1.15rem;
  padding: .5rem .75rem;
  border: 1px solid color-mix(in srgb, var(--audience) 45%, var(--line));
  border-radius: var(--radius-pill);
  color: var(--audience-ink);
  background: color-mix(in srgb, var(--audience-soft) 74%, white);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero h1 em { color: var(--alex-purple); font-style: normal; }
.hero-proof { margin-top: 1.35rem; display: flex; flex-wrap: wrap; gap: .65rem 1rem; color: var(--slate); font-family: var(--font-display); font-size: .82rem; font-weight: 650; }
.hero-proof span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

.weave-art { position: relative; min-height: 500px; display: grid; place-items: center; }
.weave-art__halo { position: absolute; width: min(100%, 500px); aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--audience-soft) 78%, white); filter: blur(.2px); }
.weave-art svg { position: absolute; width: min(105%, 560px); overflow: visible; }
.weave-path { fill: none; stroke-linecap: round; stroke-width: 22; opacity: .96; }
.weave-path--purple { stroke: var(--alex-purple); }
.weave-path--gold { stroke: var(--gold); }
.weave-node { fill: white; stroke: var(--alex-purple); stroke-width: 5; filter: drop-shadow(0 8px 18px rgba(32,32,52,.12)); }
.weave-card {
  position: relative;
  z-index: 2;
  width: min(82%, 360px);
  margin-left: 10%;
  padding: 1.4rem;
  border: 1px solid rgba(32,32,52,.08);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.weave-card__label { color: var(--muted); font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.weave-card__number { margin: .45rem 0 .5rem; color: var(--purple-900); font-family: var(--font-data); font-size: clamp(2.2rem, 5vw, 4.1rem); font-weight: 800; line-height: .98; letter-spacing: -.06em; }
.weave-card p { margin: 0; color: var(--slate); font-size: .96rem; }
.weave-orbit {
  position: absolute;
  z-index: 3;
  width: 122px;
  padding: .85rem .9rem;
  border: 1px solid rgba(32,32,52,.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-2);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
}
.weave-orbit--a { top: 9%; right: 2%; }
.weave-orbit--b { bottom: 8%; left: 0; }
.weave-orbit b { display: block; margin-bottom: .22rem; color: var(--alex-purple); font-size: 1.15rem; }

/* ---------- cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid rgba(32,32,52,.09);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 2px 0 rgba(32,32,52,.02);
  overflow: hidden;
  transition: transform var(--motion-ui) var(--ease-out), box-shadow var(--motion-ui), border-color var(--motion-ui);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--audience) 50%, var(--line)); box-shadow: var(--shadow-2); }
.card::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--audience);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-stage) var(--ease-out);
}
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 44px; height: 44px; margin-bottom: 1.25rem; border-radius: 14px; display: grid; place-items: center; color: var(--audience-ink); background: var(--audience-soft); font-family: var(--font-display); font-weight: 800; }
.card__meta { margin-top: 1rem; color: var(--muted); font-family: var(--font-display); font-size: .78rem; font-weight: 700; }
.card--dark { color: white; border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.06); }
.card--dark p { color: rgba(255,255,255,.72); }
.card--dark:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.09); }

.audience-card { min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.audience-card__tag { width: fit-content; padding: .45rem .7rem; border-radius: var(--radius-pill); color: var(--audience-ink); background: var(--audience-soft); font-family: var(--font-display); font-size: .75rem; font-weight: 800; }
.audience-card__arrow { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--alex-purple); transition: transform var(--motion-stage) var(--ease-out), background var(--motion-ui); }
.audience-card:hover .audience-card__arrow { transform: translate(5px,-5px); background: var(--purple-900); }

.stat-story { padding: 1.5rem; border-left: 5px solid var(--gold); background: var(--surface); }
.stat-story__number { margin-bottom: .6rem; color: var(--purple-900); font-family: var(--font-data); font-size: var(--step-4); font-weight: 800; line-height: .95; letter-spacing: -.06em; }
.stat-story p { margin-bottom: 0; color: var(--slate); }

/* ---------- tool shell ---------- */
.tool-section { padding-block: clamp(3rem, 7vw, 6rem); background: #eeedf4; }
.tool-window {
  width: min(calc(100% - (var(--page) * 2)), 1380px);
  min-height: 720px;
  margin-inline: auto;
  border: 1px solid rgba(32,32,52,.12);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.tool-topbar {
  min-height: 72px;
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,.95);
}
.tool-brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); }
.tool-brand img { width: 32px; height: 32px; }
.tool-brand strong { font-size: 1rem; }
.tool-brand span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.tool-actions { display: flex; align-items: center; gap: .5rem; }
.tool-trust { display: inline-flex; align-items: center; padding-left: .65rem; border-left: 1px solid var(--line); }
.tool-trust img { width: 112px; height: auto; }
.icon-button {
  min-width: 44px;
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--slate);
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.tool-layout { min-height: 648px; display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; }
.tool-rail { padding: 1.25rem 1rem; border-right: 1px solid var(--line); background: #fafafd; }
.tool-rail__label { margin: .25rem .75rem .8rem; color: var(--muted); font-family: var(--font-display); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tool-nav { display: grid; gap: .3rem; }
.tool-nav button {
  min-height: 48px;
  padding: .65rem .75rem;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--slate);
  background: transparent;
  display: flex;
  align-items: center;
  gap: .65rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.tool-nav button:hover { color: var(--purple-900); background: var(--lavender-2); }
.tool-nav button[aria-current="step"] { color: var(--purple-900); background: var(--lavender); }
.tool-nav__dot { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: white; border: 1px solid var(--line); font-size: .7rem; }
.tool-nav button[aria-current="step"] .tool-nav__dot { color: var(--ink); border-color: transparent; background: var(--gold); }
.tool-main { min-width: 0; padding: clamp(1.4rem, 4vw, 3rem); background: var(--surface); }
.tool-main__head { max-width: 720px; margin-bottom: 2rem; }
.tool-main__head h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
.tool-main__head p { color: var(--slate); }
.tool-side { padding: 1.3rem; border-left: 1px solid var(--line); background: #fafafd; }
.side-panel { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.side-panel + .side-panel { margin-top: .8rem; }
.side-panel h3 { font-size: .92rem; }
.side-panel p { margin-bottom: .6rem; color: var(--slate); font-size: .86rem; }
.source-line { padding-top: .7rem; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-display); font-size: .69rem; font-weight: 650; line-height: 1.45; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.choice {
  min-height: 150px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  text-align: left;
  cursor: pointer;
  transition: transform var(--motion-ui) var(--ease-out), border-color var(--motion-ui), box-shadow var(--motion-ui), background var(--motion-ui);
}
.choice:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: var(--shadow-1); }
.choice[aria-pressed="true"] { border-color: var(--alex-purple); background: var(--lavender-2); box-shadow: 0 0 0 3px rgba(65,52,148,.1); }
.choice__label { display: block; color: var(--purple-900); font-family: var(--font-display); font-size: 1rem; font-weight: 800; }
.choice__copy { display: block; margin-top: .45rem; color: var(--slate); font-size: .9rem; }

.field { display: grid; gap: .45rem; margin-bottom: 1rem; }
.field label { color: var(--charcoal); font-family: var(--font-display); font-size: .78rem; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: .8rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: white;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--violet); }

.requirement-list { display: grid; gap: .6rem; }
.requirement {
  min-height: 58px;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.requirement__copy { min-width: 0; }
.requirement__copy strong { display: block; font-family: var(--font-display); font-size: .86rem; }
.requirement__copy span { display: block; color: var(--muted); font-size: .78rem; }
.switch { position: relative; flex: 0 0 auto; width: 48px; height: 28px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d7d8e1; cursor: pointer; transition: background var(--motion-ui); }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(32,32,52,.2); transition: transform var(--motion-ui) var(--ease-out); }
.switch input:checked + span { background: var(--alex-purple); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }

.insight-panel { margin-top: 1.2rem; padding: 1.25rem; border: 1px solid color-mix(in srgb, var(--audience) 45%, var(--line)); border-radius: var(--radius-lg); background: var(--audience-soft); }
.insight-panel__label { color: var(--audience-ink); font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.insight-panel__headline { margin: .55rem 0 .4rem; color: var(--purple-900); font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.insight-panel p { margin-bottom: 0; color: var(--slate); }

/* ---------- workforce journey ---------- */
.phone-stage { display: grid; place-items: center; min-height: 820px; padding: 2rem; border-radius: 30px; background: linear-gradient(145deg, var(--purple-950), #4b3bb0); overflow: hidden; }
.phone-frame { width: min(390px, 100%); min-height: 760px; border: 10px solid #171424; border-radius: 42px; background: var(--cream); box-shadow: 0 40px 90px rgba(15,11,38,.45); overflow: hidden; }
.phone-status { height: 28px; background: var(--cream); }
.phone-header { padding: .8rem 1.1rem .65rem; border-bottom: 1px solid rgba(32,32,52,.08); background: rgba(255,248,237,.94); }
.phone-brand { display: flex; justify-content: space-between; align-items: center; }
.phone-brand__atlas { display: flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; }
.phone-brand__atlas img { width: 31px; height: 31px; }
.phone-brand__local { color: var(--slate); font-family: var(--font-display); font-size: .7rem; font-weight: 750; }
.journey-meter { margin-top: .7rem; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .8rem; }
.journey-meter__copy small, .journey-meter__copy strong { display: block; font-family: var(--font-display); }
.journey-meter__copy small { color: var(--muted); font-size: .66rem; font-weight: 700; }
.journey-meter__copy strong { color: var(--purple-900); font-size: .86rem; }
.journey-steps { display: flex; align-items: end; gap: 3px; }
.journey-steps span { width: 13px; border-radius: 4px 4px 2px 2px; background: #d9d5e9; transition: height var(--motion-stage) var(--ease-out), background var(--motion-ui); }
.journey-steps span:nth-child(1) { height: 9px; }
.journey-steps span:nth-child(2) { height: 13px; }
.journey-steps span:nth-child(3) { height: 17px; }
.journey-steps span:nth-child(4) { height: 21px; }
.journey-steps span:nth-child(5) { height: 25px; }
.journey-steps span.is-done { background: var(--gold); }
.journey-steps span.is-active { background: var(--alex-purple); }
.phone-body { padding: 1.2rem 1.05rem 1.5rem; }
.phone-eyebrow { color: var(--alex-purple); font-family: var(--font-display); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.phone-title { margin: .45rem 0 .65rem; font-size: 1.75rem; }
.phone-copy { margin-bottom: 1rem; color: var(--slate); font-size: .92rem; line-height: 1.5; }
.pay-card { padding: 1.1rem; border-radius: 22px; color: white; background: var(--purple-900); box-shadow: 0 16px 30px rgba(43,35,94,.22); }
.pay-card__label { color: rgba(255,255,255,.65); font-family: var(--font-display); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pay-card__range { margin: .35rem 0 .25rem; font-family: var(--font-data); font-size: 1.78rem; font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
.pay-card p { margin: 0; color: rgba(255,255,255,.75); font-size: .78rem; line-height: 1.4; }
.skill-list { margin: 1rem 0; display: grid; gap: .5rem; }
.skill-line { min-height: 44px; padding: .55rem .7rem; border: 1px solid rgba(32,32,52,.08); border-radius: 13px; background: white; display: flex; align-items: center; gap: .55rem; font-size: .83rem; }
.skill-line::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: var(--gold-soft); box-shadow: inset 0 0 0 5px var(--gold); }
.phone-button { width: 100%; min-height: 52px; border: 0; border-radius: 15px; color: white; background: var(--alex-purple); font-family: var(--font-display); font-weight: 800; cursor: pointer; }

.stair-stack { position: relative; display: grid; gap: .7rem; }
.stair-choice { position: relative; width: calc(100% - var(--indent, 0px)); margin-left: var(--indent, 0px); padding: .95rem; border: 1px solid var(--line); border-radius: 18px; background: white; text-align: left; cursor: pointer; transition: transform var(--motion-stage) var(--ease-out), border-color var(--motion-ui), box-shadow var(--motion-ui); }
.stair-choice:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: var(--shadow-1); }
.stair-choice[aria-pressed="true"] { border-color: var(--alex-purple); box-shadow: 0 0 0 3px rgba(65,52,148,.1), var(--shadow-1); transform: translateY(-3px); }
.stair-choice__number { color: var(--alex-purple); font-family: var(--font-data); font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.stair-choice__title { display: block; margin-top: .45rem; font-family: var(--font-display); font-size: .9rem; font-weight: 800; }
.stair-choice__copy { display: block; margin-top: .3rem; color: var(--slate); font-size: .76rem; line-height: 1.4; }
.stair-choice__link { display: block; margin-top: .6rem; color: var(--alex-purple); font-family: var(--font-display); font-size: .72rem; font-weight: 800; }

.moment-list { display: grid; gap: .75rem; }
.moment { display: grid; grid-template-columns: 30px 1fr; gap: .7rem; align-items: start; }
.moment__node { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); background: white; font-family: var(--font-display); font-size: .72rem; font-weight: 800; }
.moment.is-done .moment__node { color: var(--ink); border-color: transparent; background: var(--gold); }
.moment strong { display: block; font-family: var(--font-display); font-size: .85rem; }
.moment span { color: var(--muted); font-size: .75rem; }
.passport-card { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(32,32,52,.1); border-radius: 18px; background: white; box-shadow: var(--shadow-1); }
.passport-card__top { display: flex; align-items: center; justify-content: space-between; }
.passport-card__top strong { font-family: var(--font-display); }
.passport-card__top img { width: 28px; height: 28px; }
.passport-card p { margin: .5rem 0 .8rem; color: var(--slate); font-size: .78rem; }

/* ---------- nonprofit evidence builder ---------- */
.document-canvas { min-height: 480px; padding: clamp(1.2rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 10px 34px rgba(32,32,52,.07); }
.document-head { padding-bottom: 1.2rem; border-bottom: 1px solid #d9d2c7; }
.document-kicker { color: var(--green-ink); font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.document-head h3 { margin: .45rem 0; font-family: var(--font-body); font-size: 1.7rem; letter-spacing: -.025em; }
.document-meta { color: var(--muted); font-family: var(--font-display); font-size: .72rem; font-weight: 650; }
.evidence-block { position: relative; margin-top: 1.2rem; padding: 1rem 1.1rem 1rem 1.3rem; border-left: 4px solid var(--green); background: white; }
.evidence-block::before { content: attr(data-cite); position: absolute; top: .7rem; right: .7rem; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; color: var(--green-ink); background: var(--green-soft); font-family: var(--font-display); font-size: .65rem; font-weight: 800; }
.evidence-block h4 { margin-bottom: .35rem; font-family: var(--font-body); font-size: 1.08rem; letter-spacing: -.01em; }
.evidence-block p { margin: 0; padding-right: 1.6rem; color: var(--charcoal); font-size: .9rem; }
.evidence-status { margin-top: 1rem; padding: .8rem; border-radius: var(--radius-sm); color: var(--green-ink); background: var(--green-soft); font-family: var(--font-display); font-size: .78rem; font-weight: 750; }
.topic-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.topic-tab { min-height: 42px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--slate); background: white; font-family: var(--font-display); font-size: .76rem; font-weight: 750; cursor: pointer; }
.topic-tab:hover { border-color: var(--green); }
.topic-tab[aria-pressed="true"] { color: var(--green-ink); border-color: var(--green); background: var(--green-soft); }



/* ---------- audience-specific compositions ---------- */
.journey-showcase {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(390px, 1.18fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.journey-copy-panel { padding: clamp(1rem, 3vw, 2rem); }
.journey-copy-panel h2 { font-size: clamp(2rem, 4.3vw, 4.4rem); }
.journey-points { margin: 2rem 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.journey-points li {
  position: relative;
  min-height: 48px;
  padding: .65rem .75rem .65rem 3.25rem;
  border: 1px solid rgba(32,32,52,.08);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.62);
  color: var(--slate);
}
.journey-points li::before {
  content: attr(data-step);
  position: absolute; left: .65rem; top: .55rem;
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink); background: var(--gold);
  font-family: var(--font-display); font-size: .72rem; font-weight: 800;
}
.micro-source { margin-top: .7rem; color: var(--muted); font-family: var(--font-display); font-size: .66rem; font-weight: 650; line-height: 1.45; }
.value-banner {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-xl);
  color: white;
  background: var(--purple-950);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-2);
}
.value-banner p { color: rgba(255,255,255,.72); margin-bottom: 0; }
.value-banner__number { color: var(--gold); font-family: var(--font-data); font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 800; line-height: .9; letter-spacing: -.075em; text-align: right; }
.builder-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 1rem; align-items: start; }
.builder-controls { position: sticky; top: 104px; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fafafd; }
.builder-controls h3 { font-size: 1rem; }
.source-stack { display: grid; gap: .65rem; margin-top: 1rem; }
.source-chip { padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; }
.source-chip strong { display: block; color: var(--charcoal); font-family: var(--font-display); font-size: .76rem; }
.source-chip span { display: block; margin-top: .2rem; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.nudge-card { margin-top: 1rem; padding: .9rem; border: 1px solid #ecd97f; border-radius: var(--radius-md); background: #fff8d9; }
.nudge-card strong { display: block; color: var(--gold-ink); font-family: var(--font-display); font-size: .78rem; }
.nudge-card p { margin: .3rem 0 0; color: var(--slate); font-size: .78rem; }

/* ---------- provenance + pricing ---------- */
.provenance { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: center; }
.provenance-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.provenance-core { position: relative; z-index: 2; width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--alex-purple); box-shadow: 0 26px 60px rgba(65,52,148,.32); text-align: center; font-family: var(--font-display); font-weight: 800; }
.provenance-core img { width: 48px; margin: 0 auto .5rem; filter: brightness(0) invert(1); }
.provenance-orbit { position: absolute; width: 150px; padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-1); text-align: center; font-family: var(--font-display); font-size: .75rem; font-weight: 750; }
.provenance-orbit:nth-child(2) { top: 0; left: 50%; transform: translateX(-50%); }
.provenance-orbit:nth-child(3) { right: 0; top: 44%; }
.provenance-orbit:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); }
.provenance-orbit:nth-child(5) { left: 0; top: 44%; }
.provenance-visual::before { content: ""; position: absolute; width: 310px; height: 310px; border: 2px dashed color-mix(in srgb, var(--audience) 55%, var(--line)); border-radius: 50%; animation: none; }
@keyframes slow-spin { to { transform: rotate(360deg); } }

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.price-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; }
.price-card { position: relative; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.price-card.is-featured { border-color: var(--alex-purple); box-shadow: var(--shadow-2); }
.price-badge { position: absolute; top: 1rem; right: 1rem; padding: .35rem .55rem; border-radius: var(--radius-pill); color: var(--ink); background: var(--gold); font-family: var(--font-display); font-size: .68rem; font-weight: 800; }
.price-card h3 { font-size: 1.1rem; }
.price { margin: 1rem 0; color: var(--purple-900); font-family: var(--font-data); font-size: 2.3rem; font-weight: 800; letter-spacing: -.05em; }
.price small { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: 0; }
.price-card ul { margin: 1.2rem 0; padding: 0; list-style: none; }
.price-card li { position: relative; padding: .42rem 0 .42rem 1.35rem; color: var(--slate); }
.price-card li::before { content: ""; position: absolute; top: .88rem; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- token showcase ---------- */
.token-row { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.token-row:first-child { border-top: 0; }
.token-row h3 { margin: 0; font-size: .95rem; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; }
.swatch { min-height: 110px; padding: .75rem; border: 1px solid rgba(32,32,52,.08); border-radius: var(--radius-md); color: var(--swatch-text, white); background: var(--swatch); display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--font-display); font-size: .72rem; font-weight: 750; }
.swatch code { margin-top: .2rem; color: inherit; font-size: .68rem; opacity: .75; }
.motion-demo { min-height: 140px; padding: 1rem; border-radius: var(--radius-lg); background: var(--lavender-2); display: grid; place-items: center; overflow: hidden; }
.motion-thread { width: 80%; height: 18px; border-radius: 999px; background: linear-gradient(90deg, var(--alex-purple), var(--violet), var(--gold)); transform-origin: left; animation: none; }
@keyframes thread-breathe { from { transform: scaleX(.35); border-radius: 999px; } to { transform: scaleX(1); border-radius: 6px 999px 999px 6px; } }

/* ---------- footer ---------- */
.site-footer { padding: clamp(3rem, 7vw, 5rem) var(--page) 2rem; color: white; background: var(--purple-950); }
.footer-inner { width: min(100%, var(--max)); margin-inline: auto; }
.footer-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.footer-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-alex { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.footer-alex img { width: 44px; }
.footer-rule { width: 1px; height: 48px; background: rgba(255,255,255,.23); }
.footer-ihc { width: 180px; }
.footer-copy { margin-top: 1.2rem; color: rgba(255,255,255,.68); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; font-family: var(--font-display); }
.footer-links a { min-height: 36px; color: rgba(255,255,255,.78); text-decoration: none; font-size: .82rem; font-weight: 700; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.55); font-family: var(--font-display); font-size: .7rem; }

/* ---------- dynamic helpers ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--motion-story) var(--ease-out), transform var(--motion-story) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 80ms; }
[data-delay="2"] { transition-delay: 160ms; }
[data-delay="3"] { transition-delay: 240ms; }
.toast {
  position: fixed;
  z-index: 250;
  right: 1rem;
  bottom: 1rem;
  max-width: 360px;
  padding: .9rem 1rem;
  border-radius: var(--radius-md);
  color: white;
  background: var(--purple-950);
  box-shadow: var(--shadow-3);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  transform: translateY(140%);
  opacity: 0;
  transition: transform var(--motion-stage) var(--ease-out), opacity var(--motion-ui);
}
.toast.is-shown { transform: translateY(0); opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 1rem var(--page) 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    display: grid;
    box-shadow: var(--shadow-2);
  }
  .site-nav.is-open a { justify-content: flex-start; border-radius: var(--radius-md); }
  .menu-button { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .journey-showcase { grid-template-columns: 1fr; }
  .journey-copy-panel { max-width: 780px; }
  .builder-grid { grid-template-columns: 1fr; }
  .builder-controls { position: static; }
  .hero-copy { max-width: 800px; }
  .weave-art { min-height: 470px; }
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .tool-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
  .side-panel + .side-panel { margin-top: 0; }
}

@media (max-width: 760px) {
  :root { --page: 1rem; }
  .site-header__inner { min-height: 70px; }
  .brand-lockup { gap: 8px; }
  .brand-lockup__alex, .brand-lockup__ihc-link { gap: 8px; }
  .brand-lockup__mark img { width: 33px; height: 33px; max-height: 33px; }
  .brand-lockup__wording { margin-left: 0; }
  .brand-lockup__wording strong { font-size: 1.08rem; }
  .brand-lockup__rule { height: 28px; }
  .brand-lockup__ihc { width: 104px; }
  .audience-bar__inner { min-height: 48px; overflow-x: auto; scrollbar-width: none; }
  .audience-bar__inner::-webkit-scrollbar { display: none; }
  .audience-label { display: none; }
  .audience-switch { min-width: max-content; margin-inline: auto; }
  .launch-note { font-size: .72rem; }
  .hero { padding-top: 3.2rem; }
  .weave-art { min-height: 410px; }
  .weave-card { width: 78%; margin-left: 0; }
  .weave-orbit { width: 112px; font-size: .68rem; }
  .weave-orbit--a { right: 0; }
  .weave-orbit--b { left: 0; }
  .card-grid, .card-grid--2, .card-grid--4, .price-grid, .price-grid--2, .provenance, .footer-top, .value-banner { grid-template-columns: 1fr; }
  .value-banner__number { text-align: left; }
  .audience-card { min-height: 300px; }
  .tool-section { padding-inline: 0; }
  .tool-window { width: 100%; border-inline: 0; border-radius: 0; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-rail { border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .tool-rail__label { display: none; }
  .tool-nav { min-width: max-content; display: flex; }
  .tool-nav button { min-width: 148px; }
  .tool-main { padding: 1.25rem 1rem 2rem; }
  .tool-side { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .phone-stage { min-height: auto; padding: 1rem 0; border-radius: 0; background: var(--cream); }
  .phone-frame { width: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .phone-status { display: none; }
  .provenance-visual { min-height: 360px; transform: scale(.88); }
  .swatches { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .token-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 440px) {
  .brand-lockup__ihc { width: 92px; }
  .brand-lockup__rule { display: none; }
  .brand-lockup__alex, .brand-lockup__ihc-link { gap: 6px; }
  .audience-switch a { padding-inline: .6rem; font-size: .72rem; }
  .weave-art { min-height: 380px; }
  .weave-orbit { display: none; }
  .weave-card { width: 88%; }
  .tool-topbar { align-items: flex-start; }
  .tool-brand span { display: none; }
  .tool-trust { display: none; }
}

@media (max-width: 390px) {
  /* Kinetic Layer 390px rule, Phase 1 delta (b): the Alex wording collapses
     visually while staying in flow and in the accessibility tree; the Alex
     mark and the IHC lockup remain visible. Visually-hidden (1x1, clipped)
     rather than display:none by design; see docs/alex-kinetic-migration.md
     D9. */
  .brand-lockup__wording {
    flex: 0 0 1px;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .audience-bar, .launch-note, .site-footer, .tool-rail, .tool-side, .tool-actions, .button-row { display: none !important; }
  body, .site-shell, .tool-section { background: white !important; }
  .tool-window { border: 0; box-shadow: none; }
  .tool-layout { display: block; }
  .tool-main { padding: 0; }
  .document-canvas, .passport-card { border: 0; box-shadow: none; }
}

/* ================================================================
   Alex Weave, Estate Edition extensions
   ================================================================ */

:root {
  /* estate register colors */
  --civic: #2e6f86;
  --civic-ink: #214f60;
  --civic-soft: #e7f2f5;
  --civic-line: #b9d4dd;
  --health: #526b88;
  --health-ink: #31475f;
  --health-soft: #eef2f7;
  --health-line: #cbd5e0;
  --calculator: #6f5bd3;
  --calculator-soft: #f1eefc;
  --workbench-accent: #495965;
  --workbench-soft: #f1f3f6;

  /* sensitive data, single hue only */
  --sensitive-0: #f5f7fa;
  --sensitive-1: #e6ecf2;
  --sensitive-2: #cbd7e2;
  --sensitive-3: #9fb2c3;
  --sensitive-4: #70879b;
  --sensitive-5: #455b70;
  --sensitive-6: #2b4054;
  --sensitive-ink: #24384b;
  --sensitive-grid: #dde4eb;

  /* chart theme */
  --chart-1: #413494;
  --chart-2: #1f78a8;
  --chart-3: #9c6a00;
  --chart-4: #4b7a1f;
  --chart-5: #b91d19;
  --chart-6: #6f5bd3;
  --chart-7: #495965;
  --chart-grid: #e3e5eb;
  --chart-zero: #c7cbd5;
  --chart-hover: #211a4e;

  /* map theme */
  --map-bg: #eaf0f3;
  --map-land: #f9fbfc;
  --map-road: #d6dee4;
  --map-boundary: #ffffff;
  --map-boundary-strong: #93a7b3;
  --map-standard-1: #e7f2f5;
  --map-standard-2: #c5dfe7;
  --map-standard-3: #8fc0cf;
  --map-standard-4: #5697aa;
  --map-standard-5: #2e6f86;

  /* density */
  --density-control: 52px;
  --density-row: 56px;
  --density-cell-inline: 16px;
  --density-cell-block: 14px;

  /* estate layout */
  --max-workbench: 1600px;
  --filter-rail-width: 280px;
  --decision-panel-width: 340px;
  --drawer-width: min(480px, 100vw);
  --crisis-height: 72px;
  --partner-accent: var(--civic);
  --partner-soft: var(--civic-soft);
}

body[data-theme="business"] {
  --audience: var(--blue);
  --audience-soft: var(--blue-soft);
  --audience-ink: var(--blue-ink);
  --page-bg: #f4f7fb;
}
body[data-theme="schools"] {
  --audience: #e98ca8;
  --audience-soft: #f9e9ef;
  --audience-ink: #7a2946;
  --page-bg: #fff8fb;
}
body[data-theme="students"] {
  --audience: var(--violet);
  --audience-soft: var(--lavender);
  --audience-ink: var(--purple-900);
  --page-bg: #f7f5ff;
}
body[data-theme="civic"] {
  --audience: var(--civic);
  --audience-soft: var(--civic-soft);
  --audience-ink: var(--civic-ink);
  --page-bg: #f2f6f7;
}
body[data-theme="health"] {
  --audience: var(--health);
  --audience-soft: var(--health-soft);
  --audience-ink: var(--health-ink);
  --page-bg: #f7f9fb;
}
body[data-theme="calculator"] {
  --audience: var(--calculator);
  --audience-soft: var(--calculator-soft);
  --audience-ink: var(--purple-900);
  --page-bg: #f8f6fd;
}
body[data-theme="workbench"] {
  --audience: var(--workbench-accent);
  --audience-soft: var(--workbench-soft);
  --audience-ink: var(--charcoal);
  --page-bg: #eef1f4;
}

.estate-shell { min-height: 100vh; overflow: clip; background: var(--page-bg, var(--canvas)); }
.estate-container { width: min(calc(100% - (var(--page) * 2)), var(--max)); margin-inline: auto; }
.estate-container--wide { width: min(calc(100% - (var(--page) * 2)), var(--max-workbench)); margin-inline: auto; }

.product-name {
  display: inline-flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-display);
  line-height: 1.05;
}
.product-name strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.035em; }
.product-name span { color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .015em; }

.header-cluster { min-width: 0; display: flex; align-items: center; gap: var(--space-4); }
.header-actions { display: flex; align-items: center; gap: .55rem; }

.partner-slot {
  min-height: 48px;
  padding-left: var(--space-4);
  border-left: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.partner-slot__label {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.partner-slot img { width: min(136px, 12vw); max-height: 40px; object-fit: contain; }
.partner-mobile-row {
  display: none;
  min-height: 48px;
  padding: .35rem var(--page);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.partner-mobile-row img { width: 112px; max-height: 34px; object-fit: contain; }
.partner-mobile-row span { color: var(--muted); font-family: var(--font-display); font-size: .7rem; font-weight: 700; }

.estate-bar { border-bottom: 1px solid rgba(32,32,52,.07); background: rgba(255,255,255,.68); }
.estate-bar__inner {
  width: min(calc(100% - (var(--page) * 2)), var(--max));
  min-height: 44px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.estate-bar__inner::-webkit-scrollbar { display: none; }
.estate-family-label { flex: 0 0 auto; color: var(--muted); font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.estate-switch { min-width: max-content; display: flex; align-items: center; gap: 2px; }
.estate-switch a {
  min-height: 38px;
  padding: .45rem .72rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  color: var(--slate);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 750;
}
.estate-switch a:hover { color: var(--purple-900); background: var(--lavender-2); }
.estate-switch a[aria-current="page"] { color: var(--audience-ink); background: var(--audience-soft); }

.sample-banner {
  padding: .72rem var(--page);
  border-bottom: 1px solid color-mix(in srgb, var(--audience) 25%, var(--line));
  color: var(--audience-ink);
  background: color-mix(in srgb, var(--audience-soft) 72%, white);
  text-align: center;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 750;
}
.sample-banner strong { font-weight: 800; }

.mode-kicker, .overline {
  margin-bottom: .7rem;
  color: var(--audience-ink);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.mode-pill {
  min-height: 32px;
  padding: .35rem .65rem;
  border: 1px solid color-mix(in srgb, var(--audience) 35%, var(--line));
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--audience-ink);
  background: var(--audience-soft);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
}
.mode-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--audience); }

.page-intro { padding: clamp(2.4rem, 6vw, 5.2rem) 0 clamp(1.5rem, 4vw, 3rem); }
.page-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.page-intro h1 { max-width: 17ch; font-size: clamp(2.35rem, 4.8vw, 4.8rem); }
.page-intro .lede { max-width: 66ch; }
.page-intro__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; }

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: inline-grid;
  place-items: center;
  color: var(--purple-900);
  background: white;
  cursor: pointer;
  transition: transform var(--motion-fast), border-color var(--motion-ui), background var(--motion-ui);
}
.icon-button:hover { transform: translateY(-1px); border-color: var(--violet); background: var(--lavender-2); }
.icon-button svg { width: 20px; height: 20px; }

.tag {
  min-height: 30px;
  padding: .25rem .58rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  color: var(--slate);
  background: var(--workbench-soft);
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 750;
}
.tag--sample { color: var(--purple-900); background: var(--lavender); }
.tag--source { color: var(--civic-ink); background: var(--civic-soft); }

.disclosure-button {
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--purple-900);
  background: white;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.disclosure-button:hover { border-color: var(--violet); background: var(--lavender-2); }
.disclosure-button::after { content: "+"; font-size: 1.05rem; line-height: 1; }

/* ---------- permanent crisis banner ---------- */
.crisis-banner {
  position: sticky;
  z-index: 220;
  top: 0;
  min-height: var(--crisis-height);
  color: white;
  background: var(--purple-950);
  box-shadow: 0 1px 0 rgba(255,255,255,.1);
}
.crisis-banner__inner {
  width: min(calc(100% - (var(--page) * 2)), var(--max));
  min-height: var(--crisis-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}
.crisis-banner__number {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  font-family: var(--font-data);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.035em;
}
.crisis-banner__copy { min-width: 0; }
.crisis-banner__copy strong { display: block; font-family: var(--font-display); font-size: .95rem; font-weight: 800; }
.crisis-banner__copy span { display: block; color: rgba(255,255,255,.78); font-size: .83rem; line-height: 1.4; }
.crisis-banner__actions { display: flex; align-items: center; gap: .5rem; }
.crisis-banner__actions a {
  min-height: 44px;
  padding: .55rem .82rem;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255,255,255,.08);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
}
.crisis-banner__actions a:first-child { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.crisis-banner__actions a:hover { transform: translateY(-1px); }
body.has-crisis-banner .site-header { top: var(--crisis-height); }

/* ---------- full source drawer ---------- */
.source-drawer {
  width: var(--drawer-width);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.source-drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: drawer-in var(--motion-stage) var(--ease-out) both; }
.source-drawer::backdrop { background: rgba(32,32,52,.48); backdrop-filter: blur(2px); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.source-drawer__head {
  min-height: 78px;
  padding: 1rem 1.1rem 1rem 1.35rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: white;
}
.source-drawer__head h2 { margin: 0; font-size: 1.18rem; }
.source-drawer__body { padding: 1.35rem; overflow-y: auto; }
.source-drawer__claim {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--gold-soft);
}
.source-drawer__claim span { display: block; color: var(--gold-ink); font-family: var(--font-display); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.source-drawer__claim strong { display: block; margin-top: .3rem; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3; }
.source-list { margin: 0; }
.source-list > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.source-list > div:first-child { border-top: 0; }
.source-list dt { color: var(--muted); font-family: var(--font-display); font-size: .7rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.source-list dd { margin: .32rem 0 0; color: var(--charcoal); }
.source-drawer__note { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-md); color: var(--slate); background: var(--canvas); font-size: .92rem; }
.source-drawer__foot { padding: 1rem 1.35rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: .65rem; background: white; }

/* ---------- forms shared by estate surfaces ---------- */
.control-group { display: grid; gap: .55rem; }
.control-group + .control-group { margin-top: 1.15rem; }
.control-label {
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
}
.control-help { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: .72rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: white;
  font-family: var(--font-display);
  font-size: 1rem;
}
.textarea { min-height: 112px; resize: vertical; font-family: var(--font-body); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--violet); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red-ink); box-shadow: 0 0 0 3px rgba(185,29,25,.12); }
.field-error { color: var(--red-ink); font-family: var(--font-display); font-size: .8rem; font-weight: 700; }
.check-row, .radio-row {
  min-height: 44px;
  padding: .55rem .65rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--charcoal);
  cursor: pointer;
}
.check-row:hover, .radio-row:hover { border-color: var(--line); background: white; }
.check-row input, .radio-row input { width: 20px; height: 20px; margin: .14rem 0 0; accent-color: var(--alex-purple); }
.check-row span, .radio-row span { min-width: 0; }
.check-row strong, .radio-row strong { display: block; font-family: var(--font-display); font-size: .88rem; }
.check-row small, .radio-row small { display: block; margin-top: .14rem; color: var(--muted); font-size: .78rem; }

.segmented-control {
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: inline-flex;
  gap: 3px;
  background: white;
}
.segmented-control button {
  min-height: 36px;
  padding: .42rem .72rem;
  border: 0;
  border-radius: 11px;
  color: var(--slate);
  background: transparent;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
}
.segmented-control button[aria-pressed="true"] { color: white; background: var(--purple-900); }

/* ---------- branded footer additions ---------- */
.footer-product-list { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-product-list span { min-height: 32px; padding: .35rem .6rem; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-pill); display: inline-flex; align-items: center; color: rgba(255,255,255,.72); font-family: var(--font-display); font-size: .7rem; font-weight: 700; }

/* ---------- Compass, civic decision studio ---------- */
.decision-studio {
  padding: 0 0 clamp(3rem, 7vw, 6rem);
}
.decision-studio__frame {
  min-height: 720px;
  border: 1px solid rgba(32,32,52,.1);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: var(--filter-rail-width) minmax(0, 1fr) var(--decision-panel-width);
  background: white;
  box-shadow: var(--shadow-2);
  overflow: clip;
}
.filter-rail {
  min-width: 0;
  padding: 1.2rem;
  border-right: 1px solid var(--line);
  background: #fafbfc;
}
.filter-rail__head { margin-bottom: 1.2rem; }
.filter-rail__head span { color: var(--civic-ink); font-family: var(--font-display); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.filter-rail__head h2 { margin: .35rem 0 0; font-size: 1.15rem; }
.filter-section { padding: 1.05rem 0; border-top: 1px solid var(--line); }
.filter-section:first-of-type { border-top: 0; padding-top: 0; }
.filter-section h3 { margin-bottom: .65rem; font-size: .82rem; }
.filter-section summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.filter-section summary::after { content: "+"; color: var(--civic-ink); font-size: 1.1rem; }
.filter-section[open] summary::after { content: "-"; }
.filter-section__body { padding-top: .65rem; }

.saved-query-group { margin-top: 1.2rem; }
.saved-query-group__label { display: block; margin-bottom: .5rem; color: var(--muted); font-family: var(--font-display); font-size: .7rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.saved-query-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.saved-query-chip {
  min-height: 36px;
  padding: .38rem .58rem .38rem .68rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--slate);
  background: white;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 750;
}
.saved-query-chip button {
  width: 28px;
  height: 28px;
  margin: -2px -3px -2px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.saved-query-chip button:hover { color: var(--purple-900); background: var(--lavender); }

.map-workspace { min-width: 0; display: grid; grid-template-rows: auto minmax(460px, 1fr); background: var(--map-bg); }
.map-toolbar {
  min-height: 64px;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: white;
}
.map-toolbar__title { min-width: 0; }
.map-toolbar__title strong { display: block; font-family: var(--font-display); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-toolbar__title span { display: block; color: var(--muted); font-size: .74rem; }
.map-toolbar__actions { display: flex; align-items: center; gap: .5rem; }

.alex-map {
  position: relative;
  min-height: 460px;
  background:
    linear-gradient(125deg, transparent 0 48%, rgba(214,222,228,.7) 49% 50%, transparent 51% 100%),
    linear-gradient(30deg, transparent 0 58%, rgba(214,222,228,.55) 59% 60%, transparent 61% 100%),
    var(--map-bg);
  overflow: hidden;
}
.alex-map::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .36;
  background-image:
    linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.alex-map__canvas { position: absolute; inset: 5% 4% 8%; }
.alex-map__canvas svg { width: 100%; height: 100%; filter: drop-shadow(0 16px 30px rgba(47,83,96,.14)); }
.map-region {
  stroke: var(--map-boundary);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: filter var(--motion-ui), stroke var(--motion-ui), transform var(--motion-ui);
  transform-box: fill-box;
  transform-origin: center;
}
.map-region:hover, .map-region:focus-visible { stroke: var(--purple-900); stroke-width: 5; filter: brightness(1.03); outline: none; }
.map-region.is-selected { stroke: var(--purple-950); stroke-width: 6; filter: drop-shadow(0 8px 10px rgba(33,26,78,.24)); }
.map-region--1 { fill: var(--map-standard-1); }
.map-region--2 { fill: var(--map-standard-2); }
.map-region--3 { fill: var(--map-standard-3); }
.map-region--4 { fill: var(--map-standard-4); }
.map-region--5 { fill: var(--map-standard-5); }
.map-region--s1 { fill: var(--sensitive-1); }
.map-region--s2 { fill: var(--sensitive-2); }
.map-region--s3 { fill: var(--sensitive-3); }
.map-region--s4 { fill: var(--sensitive-4); }
.map-region--s5 { fill: var(--sensitive-5); }

.map-floating-panel {
  position: absolute;
  z-index: 4;
  top: 1rem;
  left: 1rem;
  width: min(280px, calc(100% - 2rem));
  padding: .85rem;
  border: 1px solid rgba(32,32,52,.09);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(12px);
}
.map-floating-panel strong { display: block; font-family: var(--font-display); font-size: .82rem; }
.map-floating-panel span { display: block; margin-top: .18rem; color: var(--muted); font-size: .76rem; }

.map-legend {
  position: absolute;
  z-index: 4;
  right: 1rem;
  bottom: 1rem;
  min-width: 220px;
  max-width: calc(100% - 2rem);
  padding: .9rem;
  border: 1px solid rgba(32,32,52,.09);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-1);
}
.map-legend__title { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.map-legend__title strong { font-family: var(--font-display); font-size: .78rem; }
.map-legend__title span { color: var(--muted); font-size: .68rem; }
.legend-ramp { height: 12px; margin-top: .65rem; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--map-standard-1), var(--map-standard-2), var(--map-standard-3), var(--map-standard-4), var(--map-standard-5)); }
.legend-ramp--sensitive { background: linear-gradient(90deg, var(--sensitive-1), var(--sensitive-2), var(--sensitive-3), var(--sensitive-4), var(--sensitive-5)); }
.map-legend__range { margin-top: .35rem; display: flex; justify-content: space-between; gap: .7rem; color: var(--muted); font-family: var(--font-display); font-size: .65rem; font-weight: 700; }
.map-legend__note { margin: .55rem 0 0; color: var(--slate); font-size: .7rem; line-height: 1.4; }

.layer-toggle {
  min-height: 44px;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--slate);
  background: white;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}
.layer-toggle::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--line-strong); border-radius: 5px; background: white; }
.layer-toggle[aria-pressed="true"] { color: var(--civic-ink); border-color: var(--civic-line); background: var(--civic-soft); }
.layer-toggle[aria-pressed="true"]::before { border-color: var(--civic); background: var(--civic); box-shadow: inset 0 0 0 3px white; }

/* Leaflet integration, when Leaflet is vendored locally. */
.leaflet-container { font-family: var(--font-display); color: var(--ink); background: var(--map-bg); }
.leaflet-control { border: 1px solid var(--line) !important; border-radius: var(--radius-md) !important; box-shadow: var(--shadow-1) !important; overflow: hidden; }
.leaflet-control a { width: 44px !important; height: 44px !important; line-height: 44px !important; color: var(--purple-900) !important; background: white !important; }
.leaflet-control a:hover { background: var(--lavender-2) !important; }
.leaflet-popup-content-wrapper { border-radius: var(--radius-md); box-shadow: var(--shadow-2); }
.leaflet-popup-content { min-width: 210px; margin: 1rem; font-family: var(--font-body); font-size: 1rem; line-height: 1.5; }
.leaflet-tooltip { padding: .55rem .7rem; border: 0; border-radius: var(--radius-sm); color: white; background: var(--purple-950); box-shadow: var(--shadow-1); font-family: var(--font-display); font-size: .74rem; font-weight: 750; }

.decision-panel {
  min-width: 0;
  padding: 1.25rem;
  border-left: 1px solid var(--line);
  background: var(--paper);
  overflow-y: auto;
}
.decision-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.decision-panel__head span { color: var(--civic-ink); font-family: var(--font-display); font-size: .7rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.decision-panel__head h2 { margin: .35rem 0 0; font-size: 1.25rem; }
.decision-number {
  margin: 1.25rem 0;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  color: white;
  background: var(--purple-950);
}
.decision-number__label { display: block; color: rgba(255,255,255,.64); font-family: var(--font-display); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.decision-number strong { display: block; margin-top: .25rem; color: var(--gold); font-family: var(--font-data); font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.decision-number p { margin: .65rem 0 0; color: rgba(255,255,255,.78); font-size: .9rem; }
.decision-section { padding: 1rem 0; border-top: 1px solid var(--line); }
.decision-section h3 { margin-bottom: .45rem; font-size: .9rem; }
.decision-section p { margin: 0; color: var(--slate); font-size: .9rem; }
.decision-next {
  padding: 1rem;
  border: 1px solid var(--civic-line);
  border-radius: var(--radius-md);
  background: var(--civic-soft);
}
.decision-next strong { display: block; color: var(--civic-ink); font-family: var(--font-display); font-size: .82rem; }
.decision-next p { margin: .35rem 0 0; color: var(--slate); font-size: .85rem; }

.comparison-strip { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.comparison-strip__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.comparison-strip__head h2 { margin: 0; font-size: 1.05rem; }
.comparison-list { margin-top: .8rem; display: grid; gap: .55rem; }
.comparison-row { min-height: 48px; display: grid; grid-template-columns: minmax(130px, .6fr) minmax(160px, 1fr) auto; gap: .8rem; align-items: center; }
.comparison-row strong { font-family: var(--font-display); font-size: .8rem; }
.comparison-bar { height: 10px; border-radius: var(--radius-pill); background: var(--civic-soft); overflow: hidden; }
.comparison-bar span { display: block; width: var(--bar, 50%); height: 100%; border-radius: inherit; background: var(--civic); }
.comparison-row em { color: var(--slate); font-family: var(--font-data); font-size: .78rem; font-style: normal; font-weight: 750; }

/* ---------- chart surfaces ---------- */
.chart-card {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-1);
}
.chart-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.chart-card__head h2 { margin-bottom: .35rem; font-size: 1.2rem; }
.chart-card__head p { margin: 0; color: var(--slate); font-size: .88rem; }
.chart-card__body { margin-top: 1rem; }
.chart-note { margin: .85rem 0 0; padding-top: .85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

.sensitive-chart { min-height: 300px; display: grid; grid-template-columns: auto 1fr; gap: .75rem; }
.sensitive-chart__axis { padding: .3rem 0 1.75rem; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-family: var(--font-display); font-size: .68rem; font-weight: 700; text-align: right; }
.sensitive-chart__plot {
  position: relative;
  min-width: 0;
  padding: .3rem .4rem 1.75rem;
  border-left: 1px solid var(--chart-zero);
  border-bottom: 1px solid var(--chart-zero);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: clamp(.3rem, 1.5vw, .75rem);
  background-image: linear-gradient(to bottom, var(--sensitive-grid) 1px, transparent 1px);
  background-size: 100% 25%;
}
.sensitive-bar { position: relative; min-height: 16px; height: var(--value, 50%); border-radius: 10px 10px 3px 3px; background: var(--sensitive-4); transition: height var(--motion-story) var(--ease-out), filter var(--motion-ui); }
.sensitive-bar:nth-child(2n) { background: var(--sensitive-5); }
.sensitive-bar:hover, .sensitive-bar:focus-visible { filter: brightness(.9); outline: 3px solid rgba(65,52,148,.22); outline-offset: 2px; }
.sensitive-bar span { position: absolute; left: 50%; bottom: -1.45rem; transform: translateX(-50%); color: var(--muted); font-family: var(--font-display); font-size: .65rem; font-weight: 700; }
.sensitive-bar::after { content: attr(data-value); position: absolute; left: 50%; bottom: calc(100% + .35rem); transform: translateX(-50%); color: var(--sensitive-ink); font-family: var(--font-data); font-size: .68rem; font-weight: 800; white-space: nowrap; }

.standard-series-legend, .sensitive-series-legend { display: flex; flex-wrap: wrap; gap: .5rem .8rem; }
.series-key { display: inline-flex; align-items: center; gap: .4rem; color: var(--slate); font-family: var(--font-display); font-size: .72rem; font-weight: 750; }
.series-key::before { content: ""; width: 14px; height: 8px; border-radius: var(--radius-pill); background: var(--key, var(--chart-1)); }
.sensitive-series-legend .series-key::before { background: var(--key, var(--sensitive-5)); }

/* Plotly theme hooks for locally vendored Plotly. */
.js-plotly-plot .plotly .modebar { top: 8px !important; right: 8px !important; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.94); box-shadow: var(--shadow-1); }
.js-plotly-plot .plotly .modebar-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; }
.js-plotly-plot .plotly .modebar-btn path { fill: var(--slate) !important; }
.js-plotly-plot .plotly .modebar-btn:hover path { fill: var(--purple-900) !important; }

/* ---------- Care, public health action surfaces ---------- */
.health-hero { padding: clamp(2.8rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.health-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.health-hero h1 { max-width: 16ch; }
.health-assurance {
  padding: 1.2rem;
  border: 1px solid var(--health-line);
  border-radius: var(--radius-lg);
  background: var(--health-soft);
}
.health-assurance strong { display: block; color: var(--health-ink); font-family: var(--font-display); font-size: .9rem; }
.health-assurance p { margin: .4rem 0 0; color: var(--slate); font-size: .9rem; }

.action-door-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.action-door {
  min-height: 250px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  background: white;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform var(--motion-ui) var(--ease-out), box-shadow var(--motion-ui), border-color var(--motion-ui);
}
.action-door:hover { transform: translateY(-4px); border-color: var(--health-line); box-shadow: var(--shadow-2); }
.action-door__icon { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; color: var(--health-ink); background: var(--health-soft); font-family: var(--font-display); font-weight: 800; }
.action-door h2 { margin: 1.4rem 0 .45rem; font-size: 1.3rem; }
.action-door p { margin: 0; color: var(--slate); font-size: .92rem; }
.action-door__link { margin-top: 1rem; color: var(--purple-900); font-family: var(--font-display); font-size: .82rem; font-weight: 800; }

.health-data-section { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--health-soft); }
.health-data-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 1rem; align-items: start; }
.sensitive-rules-card { padding: 1.3rem; border: 1px solid var(--health-line); border-radius: var(--radius-lg); background: white; }
.sensitive-rules-card h2 { font-size: 1.15rem; }
.sensitive-rules-card ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.sensitive-rules-card li { position: relative; padding-left: 1.65rem; color: var(--slate); }
.sensitive-rules-card li::before { content: ""; position: absolute; top: .42rem; left: .15rem; width: 10px; height: 10px; border-radius: 50%; background: var(--sensitive-4); }
.neutral-ramp-sample { margin-top: 1rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.neutral-ramp-sample span { height: 30px; border-radius: 7px; }
.neutral-ramp-sample span:nth-child(1) { background: var(--sensitive-1); }
.neutral-ramp-sample span:nth-child(2) { background: var(--sensitive-2); }
.neutral-ramp-sample span:nth-child(3) { background: var(--sensitive-3); }
.neutral-ramp-sample span:nth-child(4) { background: var(--sensitive-4); }
.neutral-ramp-sample span:nth-child(5) { background: var(--sensitive-5); }
.neutral-ramp-sample span:nth-child(6) { background: var(--sensitive-6); }

.support-list { display: grid; gap: .75rem; }
.support-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: white; overflow: hidden; }
.support-item summary { min-height: 56px; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-weight: 800; cursor: pointer; }
.support-item summary::after { content: "+"; color: var(--health-ink); font-size: 1.2rem; }
.support-item[open] summary::after { content: "-"; }
.support-item__body { padding: 0 1rem 1rem; color: var(--slate); }
.support-item__body p { margin-bottom: .7rem; }

/* ---------- Estimate, calculators and guided tools ---------- */
.calculator-layout {
  padding: 0 0 clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr);
  gap: 1rem;
  align-items: start;
}
.wizard-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-2);
  overflow: clip;
}
.wizard-head { padding: 1.35rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line); background: var(--paper); }
.wizard-head__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.wizard-head h2 { margin-bottom: .35rem; font-size: 1.35rem; }
.wizard-head p { margin: 0; color: var(--slate); font-size: .9rem; }
.wizard-progress {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  counter-reset: wizard;
}
.wizard-step {
  position: relative;
  min-height: 50px;
  padding: .55rem .65rem .55rem 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  color: var(--muted);
  background: white;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
  text-align: left;
}
.wizard-step::before {
  counter-increment: wizard;
  content: counter(wizard);
  position: absolute;
  left: .55rem;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--canvas);
  font-family: var(--font-data);
  font-size: .72rem;
}
.wizard-step.is-current { color: var(--purple-900); border-color: var(--violet); background: var(--calculator-soft); }
.wizard-step.is-current::before { color: white; background: var(--alex-purple); }
.wizard-step.is-complete { color: var(--purple-900); border-color: transparent; background: var(--lavender); }
.wizard-step.is-complete::before { content: "✓"; color: var(--ink); background: var(--gold); }

.wizard-panel { padding: clamp(1.25rem, 4vw, 2.2rem); }
.wizard-panel[hidden] { display: none; }
.wizard-panel__intro { margin-bottom: 1.4rem; }
.wizard-panel__intro h3 { margin-bottom: .35rem; font-size: 1.35rem; }
.wizard-panel__intro p { margin: 0; color: var(--slate); }
.wizard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.wizard-review { display: grid; gap: .65rem; }
.review-row { min-height: 52px; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.review-row span { color: var(--slate); }
.review-row strong { font-family: var(--font-data); }
.wizard-actions { margin-top: 1.7rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.wizard-actions__right { display: flex; align-items: center; gap: .65rem; }

.calculator-aside { display: grid; gap: 1rem; }
.guidance-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.guidance-card h2 { font-size: 1.05rem; }
.guidance-card p { color: var(--slate); font-size: .9rem; }
.guidance-list { margin: .9rem 0 0; padding: 0; list-style: none; display: grid; gap: .65rem; }
.guidance-list li { position: relative; padding-left: 1.45rem; color: var(--slate); font-size: .88rem; }
.guidance-list li::before { content: ""; position: absolute; top: .45rem; left: .12rem; width: 8px; height: 8px; border-radius: 50%; background: var(--calculator); }

.result-reveal {
  margin-top: 1rem;
  border: 1px solid rgba(65,52,148,.2);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-2);
  overflow: clip;
}
.result-reveal[hidden] { display: none; }
.result-reveal.is-visible { animation: result-in var(--motion-story) var(--ease-out) both; }
@keyframes result-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.result-reveal__hero {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: white;
  background: var(--purple-950);
}
.result-reveal__label { color: rgba(255,255,255,.66); font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.result-reveal__number { display: block; margin-top: .35rem; color: var(--gold); font-family: var(--font-data); font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; line-height: .95; letter-spacing: -.065em; }
.result-reveal__hero p { margin: .75rem 0 0; color: rgba(255,255,255,.8); font-size: 1rem; }
.result-reveal__body { padding: clamp(1.25rem, 4vw, 2rem); }
.result-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.result-stat { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.result-stat span { display: block; color: var(--muted); font-family: var(--font-display); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.result-stat strong { display: block; margin-top: .25rem; color: var(--purple-900); font-family: var(--font-data); font-size: 1.35rem; }

.estimate-disclosure {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
}
.estimate-disclosure summary { min-height: 56px; padding: .85rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--purple-900); font-family: var(--font-display); font-weight: 800; cursor: pointer; }
.estimate-disclosure summary::after { content: "+"; font-size: 1.2rem; }
.estimate-disclosure[open] summary::after { content: "-"; }
.estimate-disclosure__body { padding: 0 1rem 1rem; }
.estimate-disclosure__body h3 { margin: 1rem 0 .35rem; font-size: .92rem; }
.estimate-disclosure__body p { margin: 0; color: var(--slate); font-size: .9rem; }
.authority-list { margin: .9rem 0 0; padding: 0; list-style: none; display: grid; gap: .65rem; }
.authority-list li { padding: .8rem; border-left: 4px solid var(--calculator); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: white; color: var(--slate); }
.authority-list strong { display: block; color: var(--charcoal); font-family: var(--font-display); font-size: .82rem; }

/* ---------- Lens, analyst workbench ---------- */
.workbench-page { min-height: calc(100vh - 120px); padding: 1rem var(--page) 2rem; }
.workbench-shell {
  width: min(100%, var(--max-workbench));
  min-height: 720px;
  margin-inline: auto;
  border: 1px solid rgba(32,32,52,.12);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: var(--filter-rail-width) minmax(0, 1fr);
  background: white;
  box-shadow: var(--shadow-2);
  overflow: clip;
}
.workbench-filter {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: #f8f9fb;
  overflow-y: auto;
}
.workbench-filter__head { padding: .25rem .2rem 1rem; }
.workbench-filter__head h1 { margin: .25rem 0 .35rem; font-size: 1.25rem; }
.workbench-filter__head p { margin: 0; color: var(--muted); font-size: .82rem; }
.filter-count { margin-top: .75rem; min-height: 36px; padding: .35rem .55rem; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--charcoal); background: white; font-family: var(--font-display); font-size: .75rem; font-weight: 750; }
.filter-count strong { color: var(--purple-900); }

.workbench-main { min-width: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.workbench-commandbar {
  min-height: 72px;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: white;
}
.commandbar-title { min-width: 0; }
.commandbar-title h2 { margin: 0; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.commandbar-title p { margin: .2rem 0 0; color: var(--muted); font-size: .76rem; }
.commandbar-actions { display: flex; align-items: center; gap: .5rem; }
.export-button {
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid var(--purple-900);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: white;
  background: var(--purple-900);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.export-button:hover { background: var(--purple-950); }
.export-button svg { width: 18px; height: 18px; }

.query-strip {
  min-height: 52px;
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: .6rem;
  overflow-x: auto;
  background: var(--paper);
  scrollbar-width: thin;
}
.query-strip__label { flex: 0 0 auto; color: var(--muted); font-family: var(--font-display); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.query-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: .4rem .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--slate);
  background: white;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 750;
  cursor: pointer;
}
.query-chip[aria-pressed="true"] { color: var(--purple-900); border-color: var(--violet); background: var(--lavender); }

.data-table-wrap { min-width: 0; overflow: auto; background: white; }
.data-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
}
.data-table caption { padding: 1rem; color: var(--slate); text-align: left; font-family: var(--font-body); }
.data-table th, .data-table td {
  min-height: var(--density-row);
  padding: var(--density-cell-block) var(--density-cell-inline);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  background: white;
}
.data-table thead th {
  position: sticky;
  z-index: 4;
  top: 0;
  height: 52px;
  padding-block: 4px;
  color: var(--slate);
  background: #f8f9fb;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.data-table th:first-child, .data-table td:first-child {
  position: sticky;
  z-index: 3;
  left: 0;
  box-shadow: 1px 0 0 var(--line), 10px 0 18px -18px rgba(32,32,52,.45);
}
.data-table thead th:first-child { z-index: 5; background: #f8f9fb; }
.data-table tbody tr:hover td { background: #fbfbfe; }
.data-table tbody tr:hover td:first-child { background: #fbfbfe; }
.data-table td:first-child strong { display: block; color: var(--purple-900); font-size: .84rem; }
.data-table td:first-child span { display: block; margin-top: .15rem; color: var(--muted); font-size: .72rem; }
.data-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .cell-muted { color: var(--muted); }
.sort-button {
  width: 100%;
  min-height: 44px;
  padding: .35rem .25rem;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .4rem;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.sort-button::after { content: "↕"; color: var(--subtle); font-size: .75rem; }
.sort-button[aria-sort="ascending"]::after { content: "↑"; color: var(--purple-900); }
.sort-button[aria-sort="descending"]::after { content: "↓"; color: var(--purple-900); }

.data-bar { min-width: 90px; display: grid; grid-template-columns: minmax(48px, 1fr) auto; gap: .55rem; align-items: center; }
.data-bar__track { height: 8px; border-radius: var(--radius-pill); background: var(--civic-soft); overflow: hidden; }
.data-bar__track span { display: block; width: var(--value, 50%); height: 100%; border-radius: inherit; background: var(--civic); }
.data-bar em { color: var(--slate); font-style: normal; font-variant-numeric: tabular-nums; }

.density-comfortable { --density-control: 52px; --density-row: 56px; --density-cell-inline: 16px; --density-cell-block: 14px; }
.density-compact { --density-control: 44px; --density-row: 48px; --density-cell-inline: 12px; --density-cell-block: 10px; }
.density-dense { --density-control: 44px; --density-row: 40px; --density-cell-inline: 10px; --density-cell-block: 8px; }
.density-dense .data-table td { font-size: .9rem; }

.table-status {
  min-height: 44px;
  padding: .55rem 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
}

/* ---------- embedded mode ---------- */
.embed-shell {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  overflow: clip;
}
.embed-shell__content { padding: clamp(1rem, 4vw, 1.5rem); }
.embed-attribution {
  min-height: 48px;
  padding: .45rem .75rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
}
.embed-attribution__brand { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.embed-attribution__alex { display: inline-flex; align-items: center; gap: .35rem; color: var(--purple-900); font-weight: 800; }
.embed-attribution__alex img { width: 24px; height: 24px; }
.embed-attribution__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-shell[data-chromeless="true"] .site-header, .embed-shell[data-chromeless="true"] .site-footer { display: none; }

/* ---------- named programs and credentials ---------- */
.subbrand-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-1);
}
.subbrand-card__program { color: var(--purple-900); font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.subbrand-card__relationship { margin-top: .3rem; color: var(--muted); font-family: var(--font-display); font-size: .72rem; font-weight: 700; }
.subbrand-card p { color: var(--slate); }
.subbrand-card__powered { padding-top: .8rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .6rem; }
.subbrand-card__powered img { width: 96px; }
.subbrand-card__powered span { color: var(--muted); font-family: var(--font-display); font-size: .68rem; font-weight: 700; }

.credential {
  position: relative;
  min-height: 420px;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid #d9d2c7;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.credential::before, .credential::after { content: ""; position: absolute; width: 220px; height: 10px; border-radius: var(--radius-pill); background: var(--alex-purple); transform: rotate(-28deg); }
.credential::before { top: 52px; right: -72px; }
.credential::after { top: 82px; right: -70px; background: var(--gold); }
.credential__program { color: var(--purple-900); font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.credential__title { max-width: 18ch; margin: 2rem 0; font-family: var(--font-body); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.1; }
.credential__recipient { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.credential__footer { padding-top: 1rem; border-top: 1px solid #d9d2c7; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.credential__footer span { color: var(--muted); font-family: var(--font-display); font-size: .72rem; font-weight: 700; }
.credential__logos { display: flex; align-items: center; gap: .6rem; }
.credential__logos img:first-child { width: 32px; }
.credential__logos img:last-child { width: 112px; }

/* ---------- report and PDF chrome ---------- */
.report-surface {
  position: relative;
  width: min(100%, 8.5in);
  min-height: 11in;
  margin-inline: auto;
  padding: .72in .65in;
  border: 1px solid #d9d2c7;
  background: white;
  box-shadow: var(--shadow-2);
}
.report-running-header {
  min-height: .42in;
  padding-bottom: .12in;
  border-bottom: 1px solid #d9d2c7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .2in;
}
.report-running-header__brand { display: flex; align-items: center; gap: .08in; }
.report-running-header__brand img:first-child { width: .28in; }
.report-running-header__brand strong { font-family: var(--font-display); font-size: 10pt; }
.report-running-header__brand img:last-child { width: 1.12in; margin-left: .08in; padding-left: .08in; border-left: 1px solid #d9d2c7; }
.report-running-header__meta { color: var(--muted); font-family: var(--font-display); font-size: 8.5pt; font-weight: 700; text-align: right; }
.report-title { margin: .42in 0 .28in; }
.report-title h1 { margin-bottom: .12in; font-size: 26pt; }
.report-title p { color: var(--slate); font-size: 11pt; }
.report-evidence {
  margin: .18in 0;
  padding: .18in .2in;
  border-left: 4px solid var(--gold);
  background: #fffaf0;
  break-inside: avoid;
}
.report-evidence__number { color: var(--purple-900); font-family: var(--font-data); font-size: 24pt; font-weight: 800; }
.report-evidence p { margin: .06in 0 0; color: var(--charcoal); font-size: 10.5pt; }
.report-source-footer {
  position: absolute;
  right: .65in;
  bottom: .34in;
  left: .65in;
  min-height: .28in;
  padding-top: .08in;
  border-top: 1px solid #d9d2c7;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .2in;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 8.5pt;
  line-height: 1.35;
}
.report-source-footer span:last-child { flex: 0 0 auto; }

/* ---------- estate overview patterns ---------- */
.estate-hero { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.estate-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.estate-hero h1 { max-width: 13ch; }
.estate-hero-art { position: relative; min-height: 470px; border-radius: var(--radius-xl); background: var(--purple-950); overflow: hidden; box-shadow: var(--shadow-3); }
.estate-hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.estate-hero-art__card { position: absolute; right: 9%; bottom: 10%; width: min(330px, 80%); padding: 1.2rem; border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-2); }
.estate-hero-art__card span { color: var(--muted); font-family: var(--font-display); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.estate-hero-art__card strong { display: block; margin-top: .35rem; color: var(--purple-900); font-family: var(--font-display); font-size: 1.5rem; }
.estate-hero-art__card p { margin: .4rem 0 0; color: var(--slate); font-size: .88rem; }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mode-card { min-height: 260px; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; justify-content: space-between; background: white; box-shadow: var(--shadow-1); }
.mode-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mode-card__mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--mode-ink, var(--purple-900)); background: var(--mode-soft, var(--lavender)); font-family: var(--font-display); font-weight: 800; }
.mode-card__status { color: var(--muted); font-family: var(--font-display); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.mode-card h3 { margin: 1.2rem 0 .4rem; }
.mode-card p { margin: 0; color: var(--slate); }
.mode-card__name { margin-top: 1rem; color: var(--mode-ink, var(--purple-900)); font-family: var(--font-display); font-size: .76rem; font-weight: 800; }

.lockup-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.component-demo { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); }
.component-demo h3 { font-size: 1rem; }
.component-demo > p { color: var(--slate); font-size: .88rem; }

/* ---------- Estate responsive behavior ---------- */
@media (max-width: 1240px) {
  .partner-slot { display: none; }
  .partner-mobile-row { display: flex; }
  .decision-studio__frame { grid-template-columns: 244px minmax(0, 1fr); }
  .decision-panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 1rem; }
  .decision-panel__head, .decision-number { grid-column: 1; }
  .decision-section, .decision-next { grid-column: 2; }
  .workbench-commandbar { align-items: flex-start; }
}

@media (max-width: 980px) {
  .page-intro__grid, .health-hero__grid, .calculator-layout, .estate-hero__grid { grid-template-columns: 1fr; }
  .page-intro__actions { justify-content: flex-start; }
  .decision-studio__frame { grid-template-columns: 1fr; }
  .filter-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .filter-rail__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .map-workspace { grid-template-rows: auto minmax(480px, 1fr); }
  .decision-panel { grid-column: auto; }
  .health-data-grid { grid-template-columns: 1fr; }
  .action-door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-shell { grid-template-columns: 232px minmax(0, 1fr); }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --crisis-height: 124px; }
  .product-name strong { font-size: 1rem; }
  .product-name span { display: none; }
  .estate-family-label { display: none; }
  .estate-switch { margin-inline: auto; }
  .estate-switch a { padding-inline: .58rem; font-size: .69rem; }
  .crisis-banner__inner {
    min-height: var(--crisis-height);
    padding-block: .72rem;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
  }
  .crisis-banner__actions { grid-column: 1 / -1; }
  .crisis-banner__actions a { flex: 1; }
  .page-intro { padding-top: 2.6rem; }
  .page-intro h1 { font-size: clamp(2.15rem, 11vw, 3.4rem); }
  .decision-studio { margin-inline: calc(var(--page) * -1); }
  .decision-studio__frame { border-inline: 0; border-radius: 0; box-shadow: none; }
  .filter-rail { padding: 1rem; }
  .filter-rail__body { grid-template-columns: 1fr; }
  .map-toolbar { align-items: flex-start; }
  .map-toolbar__actions { flex-wrap: wrap; justify-content: flex-end; }
  .map-toolbar .layer-toggle span { display: none; }
  .alex-map { min-height: 490px; }
  .map-floating-panel { top: .75rem; left: .75rem; }
  .map-legend { right: .75rem; bottom: .75rem; left: .75rem; min-width: 0; }
  .decision-panel { padding: 1rem; grid-template-columns: 1fr; }
  .decision-panel__head, .decision-number, .decision-section, .decision-next { grid-column: auto; }
  .comparison-row { grid-template-columns: 1fr auto; }
  .comparison-bar { grid-column: 1 / -1; }
  .action-door-grid, .wizard-grid, .result-breakdown, .mode-grid, .lockup-showcase { grid-template-columns: 1fr; }
  .action-door { min-height: 210px; }
  .sensitive-chart { min-height: 270px; }
  .sensitive-chart__plot { gap: .26rem; }
  .sensitive-bar::after { display: none; }
  .wizard-head { padding: 1rem; }
  .wizard-progress { gap: .3rem; }
  .wizard-step { min-height: 46px; padding-left: 2.35rem; font-size: .68rem; }
  .wizard-step::before { left: .45rem; width: 26px; height: 26px; }
  .wizard-panel { padding: 1.1rem 1rem 1.3rem; }
  .wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .wizard-actions__right { width: 100%; display: grid; grid-template-columns: 1fr; }
  .wizard-actions .button { width: 100%; }
  .workbench-page { padding: 0; }
  .workbench-shell { min-height: 0; border-inline: 0; border-radius: 0; grid-template-columns: 1fr; box-shadow: none; }
  .workbench-filter { border-right: 0; border-bottom: 1px solid var(--line); }
  .workbench-filter details { border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
  .workbench-filter details summary { min-height: 48px; padding: .6rem .75rem; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 800; cursor: pointer; }
  .workbench-filter details summary::after { content: "+"; }
  .workbench-filter details[open] summary::after { content: "-"; }
  .workbench-filter details > div { padding: 0 .75rem .75rem; }
  .workbench-commandbar { min-height: 0; align-items: stretch; flex-direction: column; }
  .commandbar-actions { width: 100%; display: grid; grid-template-columns: 1fr auto; }
  .commandbar-actions .segmented-control { overflow-x: auto; }
  .export-button { justify-content: center; }
  .data-table-wrap { overflow: visible; padding: .75rem; background: var(--workbench-soft); }
  .data-table { min-width: 0; border-collapse: separate; display: block; font-size: 1rem; }
  .data-table caption { padding: .25rem 0 .75rem; }
  .data-table thead { display: none; }
  .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tbody { display: grid; gap: .75rem; }
  .data-table tr { border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-1); overflow: hidden; }
  .data-table td {
    position: static !important;
    min-height: 48px;
    padding: .7rem .85rem;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(118px, .72fr) minmax(0, 1.28fr);
    gap: .7rem;
    align-items: center;
    text-align: right;
    box-shadow: none !important;
    background: white;
  }
  .data-table td::before { content: attr(data-label); color: var(--muted); font-family: var(--font-display); font-size: .72rem; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .035em; }
  .data-table td:first-child { background: var(--lavender-2); text-align: left; }
  .data-table td:first-child::before { content: "Place"; }
  .data-table td:last-child { border-bottom: 0; }
  .data-table .numeric { text-align: right; }
  .data-bar { min-width: 0; }
  .table-status { align-items: flex-start; flex-direction: column; }
  .embed-attribution { align-items: flex-start; flex-direction: column; }
  .embed-attribution__text { white-space: normal; }
  .credential__footer { align-items: flex-start; flex-direction: column; }
  .report-surface { min-height: 0; padding: 1rem; border-inline: 0; box-shadow: none; }
  .report-source-footer { position: static; margin-top: 2rem; }
  .estate-hero-art { min-height: 380px; }
}

@media (max-width: 480px) {
  .product-name strong { font-size: .95rem; }
  .site-header__inner { gap: .5rem; }
  .header-actions { gap: .3rem; }
  .partner-mobile-row { padding-inline: 1rem; }
  .estate-switch a { padding-inline: .5rem; }
  .crisis-banner__number { width: 44px; height: 44px; border-radius: 14px; }
  .crisis-banner__copy strong { font-size: .88rem; }
  .crisis-banner__copy span { font-size: .75rem; }
  .crisis-banner__actions a { padding-inline: .65rem; }
  .map-toolbar__title span { display: none; }
  .map-floating-panel { width: calc(100% - 1.5rem); }
  .wizard-progress { grid-template-columns: 1fr; }
  .wizard-step { display: none; }
  .wizard-step.is-current { display: flex; }
  .result-reveal__number { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  .commandbar-actions { grid-template-columns: 1fr; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1; }
  .source-drawer__head, .source-drawer__body, .source-drawer__foot { padding-inline: 1rem; }
  .source-drawer__foot { display: grid; }
  .source-drawer__foot .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .source-drawer[open], .result-reveal.is-visible { animation: none !important; }
  .map-region, .sensitive-bar { transition: none !important; }
}

/* ---------- Print and server-generated PDF ---------- */
@page {
  size: Letter;
  margin: .72in .65in;
}

@media print {
  html, body { min-width: 0; background: white !important; }
  body { color: #202034; font-size: 10.5pt; }
  .crisis-banner, .site-header, .estate-bar, .sample-banner, .partner-mobile-row,
  .site-footer, .page-intro__actions, .filter-rail, .workbench-filter,
  .workbench-commandbar, .query-strip, .map-toolbar__actions, .source-drawer,
  .toast, .no-print, .menu-button { display: none !important; }
  .page-intro { padding: 0 0 .25in; }
  .estate-container, .estate-container--wide { width: 100%; }
  .decision-studio { padding: 0; }
  .decision-studio__frame, .workbench-shell, .wizard-card, .result-reveal,
  .chart-card, .report-surface { border: 0; border-radius: 0; box-shadow: none; }
  .decision-studio__frame { display: block; min-height: 0; }
  .map-workspace { display: block; }
  .alex-map { min-height: 4.8in; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .decision-panel { border: 0; display: block; }
  .workbench-shell { display: block; min-height: 0; }
  .data-table-wrap { overflow: visible; }
  .data-table { min-width: 0; font-size: 8.5pt; }
  .data-table th:first-child, .data-table td:first-child { position: static; box-shadow: none; }
  .data-table thead th { position: static; }
  .report-surface { width: 100%; min-height: 0; margin: 0; padding: 0; }
  .report-running-header { position: running(alex-header); }
  .report-source-footer { position: running(alex-footer); }
  .report-evidence, .chart-card, .decision-number, .estimate-disclosure { break-inside: avoid; }
  a[href]::after { content: none !important; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ---------- Workbench filter details ---------- */
.workbench-filter details { padding: .2rem 0; border-top: 1px solid var(--line); }
.workbench-filter details:first-of-type { border-top: 0; }
.workbench-filter details summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; color: var(--charcoal); font-family: var(--font-display); font-size: .8rem; font-weight: 800; cursor: pointer; list-style: none; }
.workbench-filter details summary::-webkit-details-marker { display: none; }
.workbench-filter details summary::after { content: "+"; color: var(--purple-900); font-size: 1.05rem; }
.workbench-filter details[open] summary::after { content: "-"; }
.workbench-filter details > div { padding: .35rem 0 .8rem; }
.alex-map.show-boundaries .map-region { stroke: var(--map-boundary-strong); }
.alex-map.show-labels .map-region { filter: saturate(1.03); }

/* ---------- Estate minimum target corrections ---------- */
.estate-switch a { min-height: 44px; }
.footer-links a { min-height: 44px; display: flex; align-items: center; }
.saved-query-chip { min-height: 44px; }
.saved-query-chip button { width: 44px; height: 44px; margin: -5px -7px -5px 0; }
.query-chip { min-height: 44px; }
.segmented-control { min-height: 52px; }
.segmented-control button { min-height: 44px; }
.topic-tab { min-height: 44px; }


/* ================================================================
   ATLAS WEAVE COMPATIBILITY LAYER
   Restyles the existing portal template vocabulary with Weave tokens
   so every secondary screen joins the product family without blind
   rewrites. New/rewritten pages should prefer the Weave classes above.
   ================================================================ */
.wrap { width: min(calc(100% - (var(--page) * 2)), var(--max)); margin-inline: auto; padding-block: clamp(1.5rem, 4vw, 3rem); }
.wrap.narrow { max-width: 800px; }
.kicker { margin: 0 0 .8rem; color: var(--alex-purple); font-family: var(--font-display); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.fine { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.btn {
  min-height: 48px; padding: .7rem 1.05rem; border: 1px solid transparent;
  border-radius: var(--radius-md); display: inline-flex; align-items: center;
  justify-content: center; gap: .5rem; text-decoration: none;
  font-family: var(--font-display); font-size: .88rem; font-weight: 800;
  cursor: pointer; color: white; background: var(--alex-purple);
  box-shadow: 0 10px 26px rgba(65,52,148,.22);
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-ui), background var(--motion-ui);
}
.btn:hover { transform: translateY(-2px); background: var(--purple-900); }
.btn:active { transform: translateY(0) scale(.985); }
.btn.primary { background: var(--alex-purple); }
.btn.gold { color: var(--ink); background: var(--gold); box-shadow: 0 10px 26px rgba(249,194,10,.24); }
.btn.gold:hover { background: #ffd238; }
.btn.ghost { color: var(--purple-900); border-color: var(--line-strong); background: transparent; box-shadow: none; }
.btn.ghost:hover { border-color: var(--violet); background: var(--lavender-2); }
.btn.onlight { color: var(--purple-900); background: white; box-shadow: var(--shadow-1); }
.btn.wide { width: 100%; }
.grid { display: grid; gap: 1rem; }
.grid.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 760px) { .grid.g2, .grid.g3 { grid-template-columns: 1fr; } }
.pill { display: inline-flex; align-items: center; padding: .35rem .65rem; border-radius: var(--radius-pill); color: var(--purple-900); background: var(--lavender); font-family: var(--font-display); font-size: .72rem; font-weight: 800; }
.pill.good { color: var(--green-ink); background: var(--green-soft); }
.chip { min-height: 40px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--slate); background: white; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-size: .78rem; font-weight: 700; cursor: pointer; transition: border-color var(--motion-ui), background var(--motion-ui); }
.chip:hover { border-color: var(--violet); }
.chip.sel { color: white; border-color: transparent; background: var(--alex-purple); }
table.t { width: 100%; margin: .6rem 0; border-collapse: collapse; font-size: .88rem; }
table.t th { padding: .55rem .6rem; border-bottom: 2px solid var(--line-strong); color: var(--charcoal); background: var(--lavender-2); text-align: left; font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
table.t td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tablewrap { overflow-x: auto; }
.f { display: block; width: 100%; margin: 4px 0 12px; padding: .75rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink); background: white; font: 16px/1.4 var(--font-body); box-sizing: border-box; }
label.f { border: 0; margin: 0; padding: 0; color: var(--charcoal); font-family: var(--font-display); font-size: .78rem; font-weight: 800; background: transparent; }
.formok { margin: 10px 0; padding: .8rem 1rem; border-radius: var(--radius-sm); color: var(--green-ink); background: var(--green-soft); font-family: var(--font-display); font-size: .85rem; font-weight: 700; }
.formerr { margin: 10px 0; padding: .8rem 1rem; border-radius: var(--radius-sm); color: var(--red-ink); background: var(--red-soft); font-family: var(--font-display); font-size: .85rem; font-weight: 700; }
.demobar { padding: .7rem 1rem; border: 1.5px solid var(--gold); border-radius: var(--radius-md); color: var(--gold-ink); background: var(--gold-soft); font-family: var(--font-display); font-size: .84rem; font-weight: 700; }
.demobar a { color: var(--purple-900); }
.testmode { padding: .7rem 1rem; border: 1.5px dashed var(--gold); border-radius: var(--radius-md); color: var(--gold-ink); background: var(--gold-soft); font-family: var(--font-display); font-size: .84rem; font-weight: 700; }
.plan { display: flex; flex-direction: column; }
.plan .price { margin: .6rem 0; color: var(--purple-900); font-family: var(--font-data); font-size: 2.1rem; font-weight: 800; letter-spacing: -.05em; }
.plan .price span { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: 0; }
.plan ul { margin: .8rem 0 1.2rem; padding: 0; list-style: none; flex: 1; }
.plan li { position: relative; padding: .4rem 0 .4rem 1.3rem; color: var(--slate); font-size: .9rem; }
.plan li::before { content: ""; position: absolute; top: .82rem; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.plan.featured { border-color: var(--alex-purple); box-shadow: var(--shadow-2); }
.door-card { display: flex; flex-direction: column; min-height: 260px; padding: clamp(1.3rem,3vw,2rem); border: 1px solid rgba(32,32,52,.09); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; transition: transform var(--motion-ui) var(--ease-out), box-shadow var(--motion-ui), border-color var(--motion-ui); }
.door-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--audience, var(--violet)) 50%, var(--line)); box-shadow: var(--shadow-2); }
.door-card .big { font-size: 2rem; }
.door-card h3 { margin: .5rem 0 .4rem; }
.door-card p { color: var(--slate); font-size: .92rem; }
.door-card .go { margin-top: auto; color: var(--alex-purple); font-family: var(--font-display); font-weight: 800; font-size: .85rem; }
.starq { margin: 10px 0; padding: 1rem 1.1rem; border-radius: var(--radius-md); background: var(--lavender); }
.starq b.q { font-family: var(--font-display); font-size: .95rem; }
.callout { margin: 10px 0; padding: .9rem 1.1rem; border-left: 4px solid var(--violet); border-radius: var(--radius-sm); background: var(--lavender); font-size: .92rem; }
.why-free { padding: 1rem 1.2rem; border-left: 4px solid var(--gold); border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--charcoal); font-size: .95rem; }
.mission-band { margin-top: clamp(2rem,5vw,3.5rem); padding: clamp(1.5rem,4vw,2.5rem); border-radius: var(--radius-xl); color: white; background: var(--purple-950); }
.mission-band a { color: var(--gold); }
.mission-band .fine { color: rgba(255,255,255,.66); }
.hero-aud { position: relative; padding: clamp(2.5rem,6vw,4.5rem) clamp(1.3rem,4vw,3rem); border-radius: var(--radius-xl); color: white; background: linear-gradient(140deg, var(--purple-950), var(--alex-purple)); overflow: hidden; isolation: isolate; }
.hero-aud .weave { position: absolute; inset: 0; z-index: -1; opacity: .1; background-size: 420px; }
.hero-aud h1 { color: white; font-size: var(--step-3); }
.hero-aud .lede { color: rgba(255,255,255,.78); font-size: var(--step-1); }
.hero-aud .kicker { color: var(--gold); }

/* ============================================================================
   PRICING REFINEMENT — premium pass (CEO 2026-07-17). Depth stays; the
   presentation earns it: calm whitespace, one type scale, quiet tables.
   ========================================================================== */
.pr-hero h1{font-size:clamp(30px,4.2vw,44px);letter-spacing:-.02em;line-height:1.1;max-width:17em}
.pr-lede{font-family:Lora,serif;font-size:17px;max-width:64ch;color:#495965}
.pr-notice{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #efe6bd;border-left:5px solid #F9C20A;border-radius:14px;padding:14px 18px;margin-top:20px;box-shadow:0 6px 24px rgba(32,32,52,.05)}
.pr-notice .tag{font:700 10.5px/1.4 Montserrat,sans-serif;letter-spacing:.1em;text-transform:uppercase;background:#fff3c8;color:#7a5d00;padding:6px 10px;border-radius:999px;white-space:nowrap;margin-top:1px}
.pr-notice p{margin:0;font-size:14px}
.pr-principles{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin-top:22px}
.pr-principle{background:#fff;border:1px solid #e5e2f2;border-radius:14px;padding:16px 18px;font-size:14px;display:flex;gap:12px;align-items:flex-start}
.pr-principle .dot{flex:0 0 26px;height:26px;border-radius:50%;background:#ebe8fa;color:#413494;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px}
.pr-sticky{position:sticky;top:0;z-index:40;background:rgba(247,247,251,.94);backdrop-filter:blur(8px);padding:10px 0;margin-top:28px;border-bottom:1px solid #e5e2f2}
.pr-sticky nav{display:flex;gap:8px;flex-wrap:wrap}
.pr-sticky a{font:700 13px Montserrat,sans-serif;color:#202034;text-decoration:none;padding:9px 16px;border-radius:999px;border:1.5px solid #d9d5ec;background:#fff}
.pr-sticky a.on,.pr-sticky a:hover{background:#413494;border-color:#413494;color:#fff}
.pr-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(248px,1fr));gap:16px;margin-top:20px;align-items:stretch}
.pr-plan{position:relative;background:#fff;border:1px solid #e5e2f2;border-radius:18px;padding:24px 22px 20px;display:flex;flex-direction:column}
.pr-plan.featured{border:2px solid #413494;box-shadow:0 18px 50px rgba(65,52,148,.14)}
.pr-plan .chip{position:absolute;top:-12px;left:20px;background:#413494;color:#fff;font:700 10.5px Montserrat,sans-serif;letter-spacing:.08em;text-transform:uppercase;padding:5px 12px;border-radius:999px}
.pr-plan .tname{font:700 12px Montserrat,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#68747e}
.pr-plan .price{font:800 34px Montserrat,sans-serif;color:#202034;letter-spacing:-.02em;margin-top:6px}
.pr-plan .price span{font-size:15px;font-weight:600;color:#68747e;letter-spacing:0}
.pr-plan .alt{font-size:12.5px;color:#68747e;margin-top:2px}
.pr-plan .tag-line{font-family:Lora,serif;font-size:14px;color:#495965;margin:8px 0 2px}
.pr-plan ul{list-style:none;margin:10px 0 16px;padding:0;flex:1}
.pr-plan li{position:relative;padding:7px 0 7px 24px;font-size:13.8px;border-top:1px solid #f2f0fa}
.pr-plan li:first-child{border-top:0}
.pr-plan li::before{content:"✓";position:absolute;left:1px;top:6px;color:#5a8a2d;font-weight:800}
.pr-save{margin-top:22px;background:linear-gradient(120deg,#413494 0%,#2b235e 100%);color:#fff;border-radius:18px;padding:24px 28px;display:flex;gap:26px;align-items:center;flex-wrap:wrap}
.pr-save .big{font:800 34px Montserrat,sans-serif;color:#F9C20A;white-space:nowrap}
.pr-save p{margin:0;font-size:14.5px;opacity:.94;max-width:58ch}
.pr-tablecard{margin-top:22px;background:#fff;border:1px solid #e5e2f2;border-radius:18px;padding:22px 22px 8px;overflow:hidden}
.pr-tablecard h3{margin:0 0 2px}
.pr-tablecard>.fine{margin-bottom:10px}
.pr-scroll{overflow-x:auto;margin:0 -22px;padding:0 22px}
table.pr-matrix{border-collapse:collapse;width:100%;min-width:640px;font-size:13.8px}
.pr-matrix th{font:700 11.5px Montserrat,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#68747e;padding:12px 10px;border-bottom:2px solid #e5e2f2;text-align:center;background:#fff}
.pr-matrix th:first-child{text-align:left;min-width:230px}
.pr-matrix td{padding:10px 10px;border-bottom:1px solid #f2f0fa;text-align:center}
.pr-matrix td:first-child{text-align:left;font-size:13.8px}
.pr-matrix tr.cat td{background:#f4f2fc;font:700 11px Montserrat,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#413494;padding:8px 10px;text-align:left}
.pr-matrix td.yes span{display:inline-block;width:9px;height:9px;border-radius:50%;background:#413494}
.pr-matrix td.no{color:#d5d2e6}
.pr-matrix tbody tr:not(.cat):hover td{background:#fbfaff}
.pr-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:18px}
.pr-step{background:#fff;border:1px solid #e5e2f2;border-radius:16px;padding:20px}
.pr-step .n{width:32px;height:32px;border-radius:50%;background:#413494;color:#fff;font:800 15px Montserrat,sans-serif;display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.pr-step b{font-family:Montserrat,sans-serif;font-size:15px}
.pr-step p{font-size:13.8px;color:#495965;margin:6px 0 0}
.pr-faq{margin-top:16px;display:grid;gap:10px}
.pr-faq details{background:#fff;border:1px solid #e5e2f2;border-radius:14px;padding:2px 18px}
.pr-faq summary{cursor:pointer;font:700 15px Montserrat,sans-serif;padding:14px 0;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
.pr-faq summary::-webkit-details-marker{display:none}
.pr-faq summary::after{content:"+";font-size:20px;color:#413494;font-weight:700;flex:0 0 auto}
.pr-faq details[open] summary::after{content:"–"}
.pr-faq .a{font-size:14.5px;color:#495965;padding:0 0 16px;max-width:75ch}
.pr-cta{margin:36px 0 10px;background:#fff;border:2px solid #413494;border-radius:20px;padding:28px 30px;display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.pr-cta h3{margin:0 0 4px}
.pr-cta p{margin:0;font-size:14.5px;color:#495965}
/* compare-table refinement (also lifts the three audience pages) */
table.compare-table{border-collapse:collapse;width:100%;font-size:13.8px}
.compare-table th{font:700 11.5px Montserrat,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#68747e;text-align:left;padding:12px 14px;border-bottom:2px solid #e5e2f2;background:#fff}
.compare-table td{padding:16px 14px;border-bottom:1px solid #f2f0fa;vertical-align:top;line-height:1.5}
.compare-table tr:last-child td{border-bottom:0}
.compare-table tbody tr:hover td{background:#fbfaff}
.compare-table .market-rate{color:#495965}
.compare-table .market-basis{display:block;font-size:12px;color:#8b93a2;margin-top:3px}
.compare-table .our-price{font-weight:800;color:#413494}
.compare-table .our-price.free{color:#3d6b12}
@media (max-width:640px){.pr-save{padding:20px}.pr-cta{padding:22px}}

/* ============================================================================
   BRAND CONFORMANCE PASS (CEO 2026-07-18): door grid that actually grids,
   icon chips replacing emoji, mission-band typography, section heading scale.
   ========================================================================== */
.sec-h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); letter-spacing: -.01em; }
.icn { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.door-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px; margin-top: 16px; }
@media (max-width: 980px){ .door-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px){ .door-grid { grid-template-columns: 1fr; } }
.door-card { min-height: 0; }
.door-icon { display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: .35rem;
  color: var(--audience, #413494);
  background: color-mix(in srgb, var(--audience, #413494) 11%, white);
  border: 1px solid color-mix(in srgb, var(--audience, #413494) 22%, white); }
.door-links { margin-top: auto; padding-top: .8rem; display: flex; gap: 12px;
  flex-wrap: wrap; align-items: baseline; }
.door-links a { font-family: var(--font-display, Montserrat, sans-serif);
  font-weight: 800; font-size: .85rem; color: var(--alex-purple, #413494);
  text-decoration: none; }
.door-links a:hover { text-decoration: underline; }
.door-links a.alt { font-weight: 600; color: var(--slate, #495965); }
.chip { font-family: var(--font-display, Montserrat, sans-serif);
  font-weight: 700; font-size: .82rem; }
/* mission band: term/definition rhythm instead of run-on text */
.mission-band .kicker { color: var(--gold, #F9C20A); }
.mission-band .vision { font-family: var(--font-body, Lora, serif);
  font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin: .4rem 0 1rem; max-width: 30ch; line-height: 1.3; }
.mission-band .vm { font-size: .95rem; max-width: 78ch; margin: .5rem 0;
  color: rgba(255,255,255,.92); }
.mission-band .vm b { font-family: var(--font-display, Montserrat, sans-serif); }
.pillar-strip { display: grid; grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px; margin-top: 1.2rem; }
@media (max-width: 980px){ .pillar-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .pillar-strip { grid-template-columns: 1fr; } }
.pillar { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 14px 16px; }
.pillar b { display: block; font-family: var(--font-display, Montserrat, sans-serif);
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold, #F9C20A); margin-bottom: .45rem; }
.pillar span { font-family: var(--font-body, Lora, serif); font-size: .86rem;
  line-height: 1.5; color: rgba(255,255,255,.88); }
.tile .ic .icn { color: var(--alex-purple, #413494); }
.icn-h { display:inline-flex; vertical-align:-3px; color: var(--alex-purple, #413494); margin-right:2px; }
