/* Benewise V4 experience stylesheet — brand edition (2026-07-26).
   Restyled to the Benewise app system used by index.html and demo/legacy.html:
   lilac field, white cards, plum ink, purple accent, square plum logo block,
   Segoe/Aptos display type. Every selector and layout rule from the prior
   version is preserved; only the visual system changed. */

:root {
  --ink: #2e1f4d;
  --ink-2: #5a4db8;
  --muted: #6b5ecb;
  --accent: #6b5ecb;
  --accent-2: #5a4db8;
  --soft: #b3a8e6;
  --logo: #cbc2f0;
  --lilac: #eeebf7;
  --lilac-2: #e3e0f0;
  --paper: #f9f8fd;
  --white: #fff;
  --green: #3f8a3f;
  --green-soft: #dff0df;
  --info: #2e6b2e;
  --info-soft: #dff0df;
  --warn: #a8862a;
  --warn-soft: #faf0d0;
  --red: #8a3324;
  --red-soft: #fbeae6;
  --hl: #ead98c;
  --line: #e3e0f0;
  --shadow: 0 18px 48px rgba(42, 33, 56, .09);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --disp: 'Archivo', 'Helvetica Neue', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Archivo', 'Archivo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% -5%, rgba(220, 210, 239, .75), transparent 29rem),
    linear-gradient(180deg, #f9f8fd 0, var(--lilac) 42rem, #f9f8fd 100%);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  border-radius: 0 0 10px 10px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}
.skip-link:focus { top: 0; }

.app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(42, 33, 56, .12);
  background: rgba(250, 248, 253, .9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  /* L3 wordmark: full name lowercase, purple period. */
  text-transform: lowercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-ink);
  /* L1 mark: white b on ink, never a lavender letter on ink. */
  color: var(--color-white);
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 700;
  font-style: normal;
  text-transform: lowercase;
  line-height: 1;
}

.environment-chip,
.eyebrow,
.pill,
.status-pill,
.utility-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.environment-chip { padding: 7px 10px; background: var(--lilac-2); color: #5a4db8; }
.eyebrow { padding: 8px 11px; background: var(--lilac-2); color: #5a4db8; letter-spacing: .04em; text-transform: uppercase; }
.pill { padding: 6px 9px; background: var(--lilac); color: var(--ink-2); }
.pill.good { background: var(--green-soft); color: #2e6b2e; }
.pill.warn { background: var(--warn-soft); color: #8a6d1a; }
.pill.info { background: var(--info-soft); color: var(--info); }

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav a {
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.header-nav a:hover,
.header-nav a[aria-current="page"] { background: var(--lilac-2); color: var(--accent); }

.mobile-nav-button { display: none; }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: 40px;
  align-items: center;
  padding: 64px 0 38px;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 16px 0;
  font-family: var(--disp);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.04;
}
.hero h1 { font-size: clamp(38px, 5.8vw, 62px); }
.page-hero h1 { font-size: clamp(33px, 4.2vw, 52px); }

.hero-copy > p,
.page-hero > p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  background: var(--accent);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(122, 99, 184, .22);
}
.button:hover { background: var(--accent-2); color: var(--white); }
.button.secondary { border-color: var(--line); background: var(--white); color: var(--accent); box-shadow: none; }
.button.secondary:hover { border-color: var(--soft); background: var(--lilac); }
.button.ghost { background: transparent; color: var(--accent); box-shadow: none; }
.button.small { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.button[disabled] { cursor: not-allowed; opacity: .48; }

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  padding: 26px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 30px 70px rgba(42, 33, 56, .24);
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -74px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(203, 185, 238, .16);
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card .metric { font-family: var(--disp); font-weight: 800; font-size: 48px; line-height: 1; letter-spacing: -.02em; }
.hero-card p { color: #cbc2f0; }
.hero-card-list { display: grid; gap: 11px; margin: 20px 0 0; padding: 0; list-style: none; }
.hero-card-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-dot { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--lilac-2); color: var(--accent-2); font-size: 13px; font-weight: 900; }

.demo-switcher {
  margin: 18px 0 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
}
.switcher-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 12px; }
.switcher-head h2 { margin: 0; font-family: var(--disp); font-size: 18px; }
.switcher-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.persona-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.persona-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 11px;
  cursor: pointer;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}
.persona-tab:hover { border-color: var(--soft); transform: translateY(-1px); }
.persona-tab[aria-selected="true"] { border-color: var(--accent); background: var(--lilac); box-shadow: inset 0 0 0 1px var(--accent); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--lilac-2); color: var(--accent-2); font-weight: 800; }
.persona-tab strong { display: block; font-size: 14px; }
.persona-tab small { display: block; color: var(--muted); font-size: 11.5px; }

.section { padding: 34px 0; }
.section.tight { padding-top: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-family: var(--disp); font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.section-heading p { max-width: 650px; margin: 7px 0 0; color: var(--muted); }
.section-kicker { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.scenario-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}
.scenario-banner .avatar { width: 58px; height: 58px; border-radius: 18px; font-size: 18px; }
.scenario-banner h2 { margin: 0; font-family: var(--disp); font-size: 22px; }
.scenario-banner p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.scenario-banner .meta-stack { text-align: right; }

.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.insight-card,
.panel,
.plan-card,
.metric-card,
.campaign-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(42, 33, 56, .05);
}

.insight-card { position: relative; overflow: hidden; padding: 19px; }
.insight-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.insight-card .rank { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.insight-card h3 { margin: 7px 0; font-family: var(--disp); font-size: 18px; line-height: 1.2; }
.insight-card p { margin: 0 0 15px; color: var(--ink-2); font-size: 13px; }
.utility-tag { padding: 6px 9px; background: var(--lilac); color: var(--accent-2); }

.panel { padding: 22px; }
.panel h3 { margin: 0 0 8px; font-family: var(--disp); font-size: 19px; }
.panel > p { margin-top: 0; color: var(--muted); }

.benefit-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.benefit-nav { display: grid; gap: 7px; position: sticky; top: 92px; }
.benefit-button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 13px;
  cursor: pointer;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
}
.benefit-button strong { display: block; font-size: 14px; }
.benefit-button span { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.benefit-button:hover { background: var(--lilac); }
.benefit-button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.benefit-button[aria-selected="true"] span { color: #cbc2f0; }

.benefit-content { min-width: 0; }
.benefit-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 14px; }
.benefit-header h3 { margin: 0; font-family: var(--disp); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.benefit-header p { margin: 5px 0 0; color: var(--muted); }

.coverage-list { display: grid; gap: 10px; }
.coverage-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, .7fr) minmax(220px, 1.3fr);
  gap: 15px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  background: #fff;
}
.coverage-row strong { font-size: 14px; }
.coverage-value { color: var(--accent-2); font-weight: 800; }
.coverage-note { color: var(--muted); font-size: 12.5px; }
.status-pill { padding: 5px 8px; white-space: nowrap; }
.status-pill.verified { background: var(--green-soft); color: #2e6b2e; }
.status-pill.needs { background: var(--warn-soft); color: #8a6d1a; }
.status-pill.prior { background: var(--info-soft); color: var(--info); }

.opportunity-box { margin-top: 14px; border-radius: 15px; padding: 17px; background: var(--lilac); }
.opportunity-box h4 { margin: 0 0 8px; font-family: var(--disp); }
.opportunity-box p { margin: 4px 0; color: var(--ink-2); font-size: 13px; }
.opportunity-number { font-family: var(--disp); font-weight: 800; font-size: 32px; color: var(--accent-2); letter-spacing: -.02em; }

.plan-snapshot { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; }
.plan-card { padding: 22px; }
.plan-card h3 { margin: 7px 0; font-family: var(--disp); font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.plan-card .plan-meta { color: var(--muted); font-size: 13px; }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.fact { border-radius: 12px; padding: 12px; background: #f4f3fa; }
.fact span { display: block; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.fact strong { display: block; margin-top: 4px; font-size: 14px; }

.routing-list,
.action-list,
.source-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.routing-list li,
.action-list li,
.source-list li { border-top: 1px solid var(--line); padding-top: 11px; }
.routing-list li:first-child,
.action-list li:first-child,
.source-list li:first-child { border-top: 0; padding-top: 0; }
.routing-list strong,
.action-list strong,
.source-list strong { display: block; }
.routing-list span,
.action-list span,
.source-list span { color: var(--muted); font-size: 12.5px; }

.notice {
  border-left: 4px solid var(--accent);
  border-radius: 8px 14px 14px 8px;
  padding: 13px 15px;
  background: var(--lilac);
  color: var(--ink-2);
  font-size: 13px;
}
.notice.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.notice.info { border-left-color: var(--info); background: var(--info-soft); }
.notice a { color: #5a4db8; }
.notice a:hover { color: var(--accent-2); }

.source-details { margin-top: 14px; }
.source-details summary { cursor: pointer; color: var(--accent); font-weight: 800; }
.source-details a { overflow-wrap: anywhere; }

.page-hero { padding: 56px 0 30px; }
.page-hero .hero-actions { margin-top: 20px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { padding: 18px; }
.metric-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 750; }
.metric-card strong { display: block; margin: 7px 0 2px; font-family: var(--disp); font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.metric-card small { color: var(--ink-2); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f4f3fa; color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.bar-row { display: grid; grid-template-columns: 140px 1fr 36px; gap: 10px; align-items: center; margin: 13px 0; }
.bar-label { font-size: 13px; font-weight: 760; }
.bar-track { height: 10px; border-radius: 99px; background: #e3e0f0; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--soft)); }
.bar-count { text-align: right; font-weight: 800; }

.campaign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.campaign-card { padding: 18px; }
.campaign-card h3 { margin: 7px 0 10px; font-family: var(--disp); font-size: 18px; }
.campaign-card dl { margin: 0; }
.campaign-card dt { margin-top: 9px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.campaign-card dd { margin: 2px 0 0; font-size: 13px; }

.selector-shell { padding: 42px 0 70px; }
.stepper { display: flex; align-items: center; gap: 8px; margin: 24px 0; padding: 0; list-style: none; }
.stepper li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.stepper li:not(:last-child)::after { content: ""; width: 44px; height: 1px; background: var(--line); }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e3e0f0; color: var(--ink-2); }
.stepper li.active { color: var(--accent); }
.stepper li.active .step-number { background: var(--accent); color: var(--white); }
.stepper li.done .step-number { background: var(--lilac-2); color: var(--accent-2); }

.wizard-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); background: var(--white); box-shadow: var(--shadow); }
.wizard-panel h2 { margin: 0 0 7px; font-family: var(--disp); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.wizard-panel > p { margin: 0 0 20px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label,
fieldset legend { font-size: 13px; font-weight: 800; }
.field small { color: var(--muted); }
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--lilac-2);
  border-radius: 11px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
}
fieldset { margin: 0; border: 0; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 9px; }
.choice {
  position: relative;
  display: block;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  cursor: pointer;
  background: #fff;
}
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--lilac); box-shadow: inset 0 0 0 1px var(--accent); }
.choice strong { display: block; }
.choice span { display: block; margin-top: 3px; color: #6b5ecb; font-size: 12px; }
.wizard-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }

.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 25px 0 14px; }
.selection-count { color: var(--muted); font-size: 13px; font-weight: 750; }
.plan-results { display: grid; gap: 12px; }
.result-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--white); }
.result-card.featured { border-color: var(--soft); box-shadow: 0 10px 26px rgba(122, 99, 184, .10); }
.result-card h3 { margin: 4px 0; font-family: var(--disp); font-size: 21px; font-weight: 800; letter-spacing: -.015em; }
.result-card p { margin: 5px 0; color: var(--muted); font-size: 13px; }
.result-card .result-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.select-plan { align-self: start; }
.select-plan label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; cursor: pointer; font-weight: 800; font-size: 13px; }
.select-plan input { width: 18px; height: 18px; accent-color: var(--accent); }

.comparison { margin-top: 20px; }
.comparison th:first-child { min-width: 170px; }
.comparison th:not(:first-child) { min-width: 210px; }
.unknown { color: var(--muted); font-style: italic; }
.source-note { color: var(--muted); font-size: 11px; }

.empty-state { border: 1px dashed var(--soft); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); }

.demo-hub { padding: 72px 0; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.hub-card { display: block; position: relative; overflow: hidden; min-height: 310px; border-radius: 26px; padding: 28px; text-decoration: none; }
.hub-card.member { background: var(--ink); color: var(--white); }
.hub-card.union { background: var(--lilac-2); color: var(--ink); }
.hub-card:hover { transform: translateY(-3px); }
.hub-card h2 { margin: 42px 0 10px; font-family: var(--disp); font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.hub-card p { max-width: 460px; }
.hub-card.member p { color: #cbc2f0; }
.hub-card .arrow { position: absolute; right: 24px; bottom: 20px; font-size: 34px; }

.footer { margin-top: 46px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 12px; }
.footer-grid { display: flex; justify-content: space-between; gap: 25px; }
.footer p { max-width: 760px; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }

.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; }
[hidden] { display: none !important; }

@media (max-width: 920px) {
  .header-nav { display: none; position: absolute; inset: 72px 16px auto; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: var(--white); box-shadow: var(--shadow); }
  .header-nav.open { display: flex; }
  .mobile-nav-button { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--white); color: var(--ink); font-weight: 800; }
  .environment-chip { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 42px; }
  .hero-card { max-width: 620px; }
  .benefit-layout { grid-template-columns: 1fr; }
  .benefit-nav { position: static; grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid,
  .plan-snapshot { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-row { grid-template-columns: minmax(160px, 1fr) minmax(140px, .8fr); }
  .coverage-note { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container,
  .header-inner { width: min(100% - 22px, var(--max)); }
  .header-inner { min-height: 64px; }
  .header-nav { inset-block-start: 64px; }
  .brand-link { font-size: 20px; }
  .hero { gap: 24px; padding-top: 34px; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 48px); }
  .persona-tabs,
  .insight-grid,
  .campaign-grid,
  .hub-grid { grid-template-columns: 1fr; }
  .switcher-head,
  .section-heading,
  .benefit-header,
  .results-toolbar,
  .footer-grid { align-items: stretch; flex-direction: column; }
  .scenario-banner { grid-template-columns: auto 1fr; }
  .scenario-banner .meta-stack { grid-column: 1 / -1; text-align: left; }
  .benefit-nav { display: flex; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x mandatory; }
  .benefit-button { flex: 0 0 190px; scroll-snap-align: start; }
  .coverage-row { grid-template-columns: 1fr; }
  .coverage-note { grid-column: auto; }
  .fact-grid,
  .field-grid,
  .choice-grid,
  .metric-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .result-card { grid-template-columns: 1fr; }
  .select-plan { justify-self: stretch; }
  .select-plan label { width: 100%; justify-content: center; }
  .stepper li span:last-child { display: none; }
  .stepper li:not(:last-child)::after { width: 24px; }
  .bar-row { grid-template-columns: 105px 1fr 28px; }
  .wizard-actions { flex-direction: column-reverse; }
  .wizard-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .app-header,
  .hero-actions,
  .demo-switcher,
  .benefit-nav,
  .button,
  .footer-links { display: none !important; }
  body { background: #fff; }
  .container { width: 100%; }
  .section { break-inside: avoid; }
  .panel,
  .plan-card,
  .insight-card { box-shadow: none; }
}

/* ======================= Member demo: legacy-style app frame ======================= */
/* 2026-07-26: /demo/mbr renders inside the same phone frame as the legacy demo -
   lilac stage, 430px paper frame, compact app bar, scrollable screens, bottom tab
   bar. Content components are forced single-column and compacted inside the frame.
   Scoped to body[data-experience-mode="member"] plus frame-local class names, so
   the union dashboard and Choose My Plan are unaffected. */

body[data-experience-mode="member"] { background: var(--lilac); }

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 0 40px;
}
.phone {
  width: 100%;
  max-width: 430px;
  height: 92vh;
  height: 92dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(42, 33, 56, .14), 0 2px 8px rgba(42, 33, 56, .07);
}

.appbar {
  flex: none;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  background: rgba(250, 248, 253, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.appbar .grow { flex: 1; }
.brand-mark-mini { width: 26px; height: 26px; border-radius: 8px; font-size: 15px; }
.appbar-word { font-family: var(--disp); font-size: 16px; font-weight: 800; letter-spacing: -.02em; text-transform: capitalize; }
.stagechip { font-family: var(--disp); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); background: var(--lilac-2); border-radius: 8px; padding: 5px 8px; }
.appbar-action { border: 1px solid var(--line); border-radius: 9px; padding: 6px 11px; background: var(--white); color: var(--accent); font-size: 12px; font-weight: 750; cursor: pointer; }
.appbar-action:hover { border-color: var(--soft); background: var(--lilac); }

.app-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 24px;
  outline: none;
}

/* ---- start screen ---- */
.start-screen h1 { margin: 12px 0 8px; font-family: var(--disp); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; font-size: 25px; }
.start-sub { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.start-foot { margin: 18px 0 0; color: var(--muted); font-size: 11.5px; }
.app-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.app-links a { color: var(--muted); font-size: 11.5px; text-decoration: none; }
.app-links a:hover { color: var(--accent); text-decoration: underline; }

.entry-grid { display: grid; gap: 10px; margin-top: 18px; }
.entry-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  cursor: pointer;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 6px 18px rgba(42, 33, 56, .05);
}
.entry-card:hover { border-color: var(--soft); }
.entry-card .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--lilac); color: var(--accent-2); }
.entry-copy strong { display: block; font-family: var(--disp); font-size: 14.5px; }
.entry-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.entry-card .arrow { color: var(--accent); font-size: 19px; }

.entry-detail { margin-top: 18px; outline: none; }
.entry-detail-title { margin: 0 0 3px; font-family: var(--disp); font-size: 17px; font-weight: 800; letter-spacing: -.015em; }
.entry-detail-sub { margin: 0 0 11px; color: var(--muted); font-size: 12px; }
.entry-detail-foot { margin-top: 11px; color: var(--muted); font-size: 11.5px; }
.scan-status { margin: 0 0 10px; padding: 10px 12px; border-radius: 11px; background: var(--info-soft); border-left: 4px solid var(--info); color: var(--ink-2); font-size: 12px; }

.persona-pick, .plan-pick { display: grid; gap: 9px; }
.persona-card, .plan-pick-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  cursor: pointer;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}
.persona-card:hover, .plan-pick-card:hover { border-color: var(--soft); }
.persona-card-head { display: flex; align-items: center; gap: 10px; }
.persona-card-head .avatar { width: 36px; height: 36px; border-radius: 12px; font-size: 13px; }
.persona-card-head strong { display: block; font-family: var(--disp); font-size: 14px; }
.persona-card-head small { display: block; color: var(--muted); font-size: 11px; }
.persona-card-plan { color: var(--accent-2); font-weight: 750; font-size: 11.5px; }
.persona-card-needs { color: var(--muted); font-size: 11px; border-top: 1px dashed var(--line); padding-top: 8px; }
.plan-pick-card strong { font-family: var(--disp); font-size: 13.5px; line-height: 1.3; }
.plan-pick-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.plan-pick-quality { color: var(--muted); font-size: 11px; }

/* ---- app screens ---- */
.app-greet { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.app-greet .avatar { width: 44px; height: 44px; border-radius: 14px; font-size: 15px; flex: none; }
.app-greet-copy h2 { margin: 0; font-family: var(--disp); font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; outline: none; }
.app-greet-copy p { margin: 3px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }

.app-panel { outline: none; }
.panel-heading { margin: 2px 0 12px; }
.panel-heading h3 { margin: 0; font-family: var(--disp); font-size: 16.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; }
.app-panel-actions { margin-top: 14px; }
.app-disclaimer { margin-top: 18px; font-size: 11px; }

/* single-column, compacted components inside the frame */
body[data-experience-mode="member"] .insight-grid { grid-template-columns: 1fr; gap: 10px; }
body[data-experience-mode="member"] .insight-card { padding: 14px 15px; }
body[data-experience-mode="member"] .insight-card h3 { font-size: 15px; margin: 6px 0; }
body[data-experience-mode="member"] .insight-card p { font-size: 12px; margin-bottom: 11px; }
body[data-experience-mode="member"] .benefit-nav { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scroll-snap-type: x mandatory; position: static; }
body[data-experience-mode="member"] .benefit-button { flex: 0 0 152px; scroll-snap-align: start; border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 10px 11px; }
body[data-experience-mode="member"] .benefit-button strong { font-size: 12.5px; }
body[data-experience-mode="member"] .benefit-button span { font-size: 10.5px; }
body[data-experience-mode="member"] .benefit-button[aria-selected="true"] { border-color: var(--ink); }
body[data-experience-mode="member"] .benefit-header { flex-direction: column; align-items: stretch; gap: 7px; margin-bottom: 10px; }
body[data-experience-mode="member"] .benefit-header h3 { font-size: 16px; }
body[data-experience-mode="member"] .benefit-header p { font-size: 11.5px; }
body[data-experience-mode="member"] .benefit-header .pill { align-self: flex-start; }
body[data-experience-mode="member"] .coverage-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 13px; }
body[data-experience-mode="member"] .coverage-value { font-size: 14px; }
body[data-experience-mode="member"] .coverage-note { font-size: 11.5px; }
body[data-experience-mode="member"] .opportunity-box { padding: 14px; }
body[data-experience-mode="member"] .opportunity-box h4 { font-size: 14px; }
body[data-experience-mode="member"] .opportunity-box p { font-size: 12px; }
body[data-experience-mode="member"] .opportunity-number { font-size: 23px; }
body[data-experience-mode="member"] .plan-snapshot { grid-template-columns: 1fr; gap: 12px; }
body[data-experience-mode="member"] .plan-card { padding: 15px 16px; }
body[data-experience-mode="member"] .plan-card h3 { font-size: 16px; }
body[data-experience-mode="member"] .fact { padding: 10px 11px; }
body[data-experience-mode="member"] .fact strong { font-size: 13px; }
body[data-experience-mode="member"] .panel { padding: 15px 16px; }
body[data-experience-mode="member"] .panel h3 { font-size: 15.5px; }
body[data-experience-mode="member"] .routing-list span,
body[data-experience-mode="member"] .action-list span,
body[data-experience-mode="member"] .source-list span { font-size: 11.5px; }
body[data-experience-mode="member"] .notice { font-size: 11.5px; padding: 11px 13px; }
body[data-experience-mode="member"] .utility-tag { font-size: 11px; }
body[data-experience-mode="member"] .status-pill { font-size: 10.5px; padding: 4px 7px; }
body[data-experience-mode="member"] .pill { font-size: 10.5px; }
body[data-experience-mode="member"] .eyebrow { font-size: 10.5px; padding: 6px 9px; }
body[data-experience-mode="member"] .empty-state { padding: 16px; font-size: 12px; }
body[data-experience-mode="member"] .button.secondary.small { font-size: 12px; }

/* ---- bottom tab bar (legacy pattern) ---- */
.tabbar {
  flex: none;
  z-index: 30;
  display: flex;
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 253, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tabbar .tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.tabbar .ticon { display: grid; place-items: center; width: 34px; height: 24px; border-radius: 9px; background: transparent; }
.tabbar svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .tlabel { font-size: 10px; font-weight: 700; }
.tabbar .tab-btn[aria-selected="true"] { color: var(--accent); }
.tabbar .tab-btn[aria-selected="true"] .ticon { background: var(--lilac-2); }

@media (max-width: 480px) {
  .stage { padding: 0; }
  .phone { max-width: none; height: 100vh; height: 100dvh; border-radius: 0; border: none; box-shadow: none; }
}
