/* Dario prototype, revision 2. Brand values provisional (dariohealth.com); contrast checked in DESIGN.md. */
:root {
  --plum: #2E223A;
  --plum-deep: #241A2E;
  --orange: #F2600F;
  --orange-ink: #B84A0A;     /* orange text on light grounds (>=4.9:1) */
  --orange-soft: #FF8A4C;    /* orange text on plum (6.4:1) */
  --ink: #2E223A;
  --body: #4A4152;
  --muted: #5B5163;
  --line: #E4DEEA;
  --surface: #F4F1F7;        /* cool plum-tinted surface */
  --radius: 12px;
  --wrap: 1200px;
  --gutter: 24px;
  --t-xs: 14px; --t-sm: 16px; --t-md: 17px; --t-lg: 1.25rem; --t-xl: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--t-md); line-height: 1.6; color: var(--body); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: var(--t-lg); font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--plum); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
main:focus { outline: none; }
.small { font-size: var(--t-sm); color: var(--muted); }
.mt-0 { margin-top: 0; }
.label { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--orange-ink); margin-bottom: 10px; }
.on-dark .label { color: var(--orange-soft); }
.lede { font-size: var(--t-lg); line-height: 1.55; max-width: 38em; }

.proto-bar { background: var(--plum); color: #fff; font-size: var(--t-xs); text-align: center; padding: 8px var(--gutter); }
.proto-short { display: none; }

/* Header and navigation */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.utility { display: flex; justify-content: flex-end; gap: 20px; font-size: var(--t-xs); padding-top: 4px; }
.utility a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.utility a:hover { color: var(--plum); text-decoration: underline; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 10px; position: relative; }
.brand img { height: 42px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 16px; }
.nav-top { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-top > li { position: relative; }
.nav-group-toggle, .nav-link { font: inherit; font-weight: 500; font-size: var(--t-sm); color: var(--ink); background: none; border: 0; padding: 10px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; }
.nav-group-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.nav-group-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.nav-group-toggle:hover, .nav-link:hover, .nav-group-toggle[aria-expanded="true"] { background: var(--surface); color: var(--ink); }
.nav-group-toggle[data-current="true"], .nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav-panel { display: none; position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; width: 640px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(46,34,58,.14); padding: 16px; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.nav-panel-narrow { width: 360px; grid-template-columns: 1fr; }
.nav-group-toggle[aria-expanded="true"] + .nav-panel { display: grid; }
.nav-panel-label { font-size: var(--t-xs); font-weight: 600; color: var(--muted); margin: 6px 0 4px 10px; }
.nav-feature { display: block; padding: 10px; border-radius: 8px; text-decoration: none; color: var(--body); }
.nav-feature strong { display: block; color: var(--ink); font-weight: 600; }
.nav-feature span { font-size: var(--t-xs); color: var(--muted); }
.nav-feature:hover, .nav-feature[aria-current="page"] { background: var(--surface); color: var(--body); }
.nav-sub { list-style: none; margin: 0 0 0 10px; padding: 0; display: flex; gap: 0 16px; flex-wrap: wrap; }
.nav-sub a { display: inline-block; padding: 6px 0; font-size: var(--t-sm); }
.nav-panel-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 10px 0; }
.nav-panel-foot a { font-weight: 600; display: inline-block; padding: 4px 0; }
.menu-toggle, .bar-mobile { display: none; }
.primary-nav .menu-utility { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: var(--t-sm); text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: background-color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--orange); color: var(--plum); }
.btn-primary:hover { background: #FF7A33; color: var(--plum); }
.btn-secondary { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-secondary:hover { background: var(--plum); color: #fff; }
.on-dark .btn-secondary { color: #fff; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Section rhythm */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-surface { background: var(--surface); }
.bg-plum { background: var(--plum-deep); color: #E9E2EE; }
.bg-plum h2, .bg-plum h3 { color: #fff; }
.bg-plum a { color: var(--orange-soft); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { font-size: var(--t-lg); line-height: 1.55; }

/* Hero */
.hero { padding: 56px 0 24px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 13em; }
.hero-media { position: relative; display: grid; place-items: center; min-height: 440px; margin: 0; }
.hero-media::before { content: ""; position: absolute; width: min(440px, 90%); aspect-ratio: 1; border-radius: 50%; border: 20px solid var(--orange); opacity: .12; }
.hero-media::after { content: ""; position: absolute; width: min(370px, 76%); aspect-ratio: 1; border-radius: 50%; background: var(--surface); }
.hero-media img { position: relative; z-index: 1; width: min(540px, 100%); }
.hero-media figcaption { position: relative; z-index: 1; font-size: var(--t-xs); color: var(--muted); margin-top: 6px; }

/* Portfolio wheel */
.portfolio { padding: 56px 0 88px; }
.portfolio-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-areas: "head head" "wheel list"; gap: 8px 48px; align-items: start; }
.portfolio-head { grid-area: head; max-width: 860px; margin-bottom: 8px; }
.wheel-figure { grid-area: wheel; }
.portfolio-text { grid-area: list; align-self: center; }
.wheel-figure { margin: 0; }
.wheel-svg { width: 100%; height: auto; display: block; }
.wheel-full .wheel-seg { cursor: pointer; }
.wheel-seg path { transition: opacity .2s; stroke: #fff; stroke-width: 2; }
.wheel-lead path { fill: var(--orange); }
.wheel-live path { fill: var(--plum); }
.wheel-soon path { fill: url(#wheel-hatch); stroke: #6E6280; stroke-dasharray: 5 4; stroke-width: 2; }
.wheel-arc { fill: none; stroke: var(--plum); stroke-width: 2.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.wheel-core { fill: #fff; stroke: var(--line); stroke-width: 2; }
.wheel-core-1 { font: 700 24px Inter, sans-serif; fill: var(--ink); }
.wheel-core-2 { font: 500 16px Inter, sans-serif; fill: var(--muted); }
.wheel-lead-1 { font: 700 24px Inter, sans-serif; fill: var(--orange-ink); }
.wheel-lead-2 { font: 600 17px Inter, sans-serif; fill: var(--ink); }
.wheel-lead-3 { font: 400 16px Inter, sans-serif; fill: var(--muted); }
.wheel-lbl-1 { font: 600 20px Inter, sans-serif; fill: var(--ink); }
.wheel-lbl-2 { font: 400 16px Inter, sans-serif; fill: var(--muted); }
.wheel-arc-lbl { font: 500 16px Inter, sans-serif; fill: var(--muted); }
.wheel-seg.is-on path { stroke: var(--orange-soft); stroke-width: 5; }
.wheel-lead.is-on path { stroke: var(--ink); }
.wheel-leader { stroke: var(--muted); stroke-width: 1.5; }
.wheel-num-bg { fill: #fff; }
.wheel-num { font: 700 24px Inter, sans-serif; fill: var(--ink); }
.wheel-compact { display: none; }
.wheel-compact .wheel-soon path { fill: url(#wheel-hatch-c); }
.programs .swatch { margin-right: 8px; vertical-align: 1px; position: relative; }
.programs .num { display: none; }
.feature-media.match { background: #F7F5F3; }
.quick { margin: 20px 0 0; font-size: var(--t-sm); color: var(--muted); }
.quick a { display: inline-block; padding: 2px 0; font-weight: 600; }
.reasons-section { border-top: 1px solid var(--line); }
.step-nav { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.step-nav button { font: inherit; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--plum); background: #fff; color: var(--plum); cursor: pointer; }
.step-nav button:disabled { opacity: .4; cursor: default; }
.legend { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--t-xs); color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.sw-lead { background: var(--orange); }
.sw-live { background: var(--plum); }
.sw-soon { background: repeating-linear-gradient(45deg, #F4F1F7 0 3px, #8C7F99 3px 5px); outline: 1px dashed #8C7F99; }
.sw-arc { height: 0; border-top: 3px dotted var(--plum); border-radius: 0; }
.programs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.programs li { border-bottom: 1px solid var(--line); }
.programs a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 8px; text-decoration: none; color: var(--body); }
.programs a:hover, .programs a:focus-visible, .programs a.is-on { background: var(--surface); }
.programs strong { color: var(--ink); font-size: var(--t-md); }
.programs .what { grid-column: 1 / 2; font-size: var(--t-sm); }
.programs .status { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: var(--t-xs); font-weight: 600; color: var(--muted); text-align: right; max-width: 11em; line-height: 1.35; }
.programs .status.s-lead { color: var(--orange-ink); }
.programs-note { font-size: var(--t-sm); color: var(--muted); margin: 16px 0 0; }

/* Member journey: tabs with product screens */
.journey-tabs { display: grid; grid-template-columns: 330px 1fr; gap: 40px; align-items: start; }
.tablist { display: flex; flex-direction: column; gap: 4px; }
.tablist [role="tab"] { text-align: left; font: inherit; background: none; border: 0; border-left: 3px solid var(--line); padding: 14px 16px 14px 20px; cursor: pointer; color: var(--body); min-height: 48px; }
.tablist [role="tab"] strong { display: block; color: var(--ink); font-size: var(--t-md); font-weight: 600; }
.tablist [role="tab"] span { font-size: var(--t-sm); color: var(--muted); }
.tablist [role="tab"][aria-selected="true"] { border-left-color: var(--orange); background: #fff; }
.tablist [role="tab"]:hover { background: #fff; }
.tabpanel { display: grid; grid-template-columns: .95fr 1.05fr; gap: 32px; align-items: center; background: #fff; border-radius: 20px; padding: 32px; min-height: 470px; }
.tabpanel[hidden] { display: none; }
.tabpanel img { max-height: 420px; width: auto; margin: 0 auto; }
.tabpanel h3 { font-size: var(--t-xl); }
.tabpanel .note { font-size: var(--t-sm); color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; margin: 0; }

/* Reasons to shortlist */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.reason { border-top: 3px solid var(--plum); padding-top: 20px; }
.reason h3 { font-size: var(--t-xl); line-height: 1.25; }
.reason .basis { font-size: var(--t-sm); color: var(--muted); margin: 0; }
.reason .basis a { display: inline-block; padding: 4px 0; }

/* Homepage evidence band */
.evidence-band .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.result { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.result:first-child { padding-top: 0; }
.result .fig { font-size: 2.5rem; font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1.05; display: block; margin-bottom: 6px; }
.result p { margin: 0; color: #E9E2EE; }
.result .qual { font-size: var(--t-sm); color: #D3C8DC; margin-top: 6px; }
.evidence-band .more { display: inline-block; padding: 6px 0; font-weight: 600; }

/* Audience rows */
.audiences { border-top: 1px solid var(--line); }
.audience { display: grid; grid-template-columns: 220px 1fr auto; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.audience h3 { margin: 0; font-size: var(--t-xl); }
.audience p { margin: 0; }
.audience a { font-weight: 600; white-space: nowrap; display: inline-block; padding: 6px 0; }

/* Implementation timeline */
.phases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: ph; }
.phases li { counter-increment: ph; position: relative; padding: 40px 24px 0 0; }
.phases li::before { content: counter(ph); position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--plum); color: #fff; font-size: var(--t-xs); font-weight: 700; display: grid; place-items: center; }
.phases li::after { content: ""; position: absolute; top: 13px; left: 36px; right: 8px; height: 2px; background: var(--line); }
.phases li:last-child::after { display: none; }
.phases-3 { grid-template-columns: repeat(3, 1fr); }

.phases h3 { font-size: var(--t-md); margin-bottom: 4px; }
.phases p { font-size: var(--t-sm); margin: 0 0 6px; }
.who { font-size: var(--t-xs); color: var(--muted); }

/* Inner page hero */
.page-hero { padding: 56px 0 48px; background: var(--surface); }
.page-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 2.5rem); }
.page-hero.solo .wrap { grid-template-columns: 1fr; }
.page-hero.solo .wrap > div { max-width: 820px; }
.hero-shot { max-height: 380px; width: auto; margin: 0 auto; }

/* Two-column statement */
.statement { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.statement h2 { margin-bottom: 0; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; scroll-margin-top: 120px; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-media { order: -1; }
.feature h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.feature ul { margin: 0; padding-left: 1.1em; }
.feature li { margin-bottom: 6px; }
.feature-media { display: grid; place-items: center; background: var(--surface); border-radius: 20px; padding: 24px; margin: 0; }
.feature-media img { max-height: 380px; width: auto; }
.crop-bp { width: 100%; max-width: 340px; aspect-ratio: 1 / 1; background: url(/assets/tab2.png) no-repeat; background-size: 190%; background-position: 2% 92%; }
.status-line { font-size: var(--t-sm); font-weight: 600; color: var(--muted); margin: 0 0 8px; }

/* Row lists */
.rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.rows > div { padding: 20px 0; border-top: 1px solid var(--line); }
.rows h3 { font-size: var(--t-md); margin-bottom: 4px; }
.rows p { margin: 0; font-size: var(--t-sm); }
.rows a { display: inline-block; padding: 4px 0; }
.rows-2 { grid-template-columns: repeat(2, 1fr); }
.rows-2 h3 { font-size: var(--t-lg, 1.25rem); }
.story { margin-top: 20px; }
.story p { font-size: var(--t-sm); }

/* Tables */
.access { width: 100%; border-collapse: collapse; font-size: var(--t-sm); background: #fff; }
.access caption { text-align: left; font-size: var(--t-sm); color: var(--muted); padding: 0 0 12px; caption-side: top; }
.access th, .access td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.access thead th { background: var(--plum); color: #fff; font-weight: 600; }
.access tbody th { color: var(--ink); font-weight: 600; width: 26%; }
.access td a { display: inline-block; padding: 4px 0; }

/* Evidence page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button { font: inherit; font-size: var(--t-sm); font-weight: 600; padding: 8px 16px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }
.study { border-top: 1px solid var(--line); padding: 26px 0; display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.study[hidden] { display: none; }
.study .meta { font-size: var(--t-sm); color: var(--muted); }
.study .meta strong { display: block; color: var(--ink); }
.study > div:last-child { max-width: 68ch; }
.study h3 { font-size: var(--t-lg); }
.study .limits { font-size: var(--t-sm); color: var(--muted); }
.study > div > a { display: inline-block; padding: 4px 0; }
.design-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.design-key > div { border-top: 3px solid var(--plum); padding-top: 14px; }
.design-key a { display: inline-block; padding: 4px 0; }
.status { font-weight: 600; color: var(--ink); }

/* Checklist */
.checklist-groups { display: grid; gap: 32px; counter-reset: q; }
.checklist-groups h3 { font-size: var(--t-lg); margin: 0 0 4px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.checklist li { counter-increment: q; padding: 16px 0 16px 44px; border-top: 1px solid var(--line); position: relative; }
.checklist li::before { content: counter(q); position: absolute; left: 0; top: 16px; font-weight: 700; color: var(--orange-ink); }
.checklist strong { color: var(--ink); display: block; }
.checklist li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Callout, CTA band */
.callout { border-left: 4px solid var(--orange); background: var(--surface); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p:last-child { margin: 0; }
.cta-band { background: var(--plum-deep); color: #E9E2EE; padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; max-width: 36em; }
.cta-band .actions { margin-top: 0; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
form .field { margin-bottom: 20px; }
label, legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.hint { font-size: var(--t-sm); color: var(--muted); margin: -2px 0 8px; }
input[type=text], input[type=email], select, textarea { width: 100%; font: inherit; font-size: var(--t-md); padding: 12px 14px; border: 1.5px solid #ABA0B5; border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--plum); }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-grid label { font-weight: 500; display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; margin: 0; min-height: 48px; }
.radio-grid input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--plum); }
.error { color: #A11A1A; font-size: var(--t-sm); font-weight: 600; margin-top: 6px; }
[aria-invalid="true"] { border-color: #A11A1A !important; }
.notice { border: 2px solid var(--plum); border-radius: var(--radius); padding: 20px 24px; background: var(--surface); }
.notice h2 { font-size: var(--t-xl); margin-bottom: 6px; }
.side-panel { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.side-panel h2 { font-size: var(--t-lg); }
.side-panel li a { display: inline-block; padding: 4px 0; }

/* Footer */
.site-footer { background: #1E1626; color: #D8CFE0; padding: 56px 0 28px; font-size: var(--t-sm); }
.site-footer a { color: #fff; text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: var(--t-sm); margin-bottom: 8px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-note { margin-top: 14px; max-width: 22em; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: var(--t-xs); }
.footer-legal p { margin: 0 0 8px; }

/* Hero with audience routing (revision 3) */
.hero-routed { padding: 40px 0 0; }
.hero-routed .hero-media { min-height: 360px; }
.hero-routed .hero-media img { width: min(440px, 100%); }
.hero-routed .hero-media::before { width: min(360px, 86%); }
.hero-routed .hero-media::after { width: min(300px, 72%); }
.hero-routed h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
.route-bar { margin-top: 16px; padding-top: 8px; padding-bottom: 32px; }
.route-title { font-size: var(--t-sm); font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.route-bar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.route-bar a { display: block; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--body); background: #fff; transition: border-color .15s, background-color .15s; }
.route-bar a:hover, .route-bar a:focus-visible { border-color: var(--plum); background: var(--surface); }
.route-bar strong { display: block; color: var(--ink); font-size: var(--t-md); }
.route-bar span { font-size: var(--t-xs); color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }

/* At-a-glance answers on audience pages */
.glance { margin: 0; background: #fff; border-radius: var(--radius); padding: 8px 20px; border: 1px solid var(--line); }
.glance > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.glance > div:last-child { border-bottom: 0; }
.glance dt { font-size: var(--t-sm); font-weight: 600; }
.glance dt a { display: inline-block; padding: 2px 0; }
.glance dd { margin: 0; font-size: var(--t-sm); color: var(--body); line-height: 1.45; }
section[id] { scroll-margin-top: 110px; }

/* Why section: reasons + qualified results on plum */
.why .reason { border-top-color: var(--orange-soft); }
.why .reason h3 { color: #fff; }
.why .reason p { color: #E9E2EE; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.results-intro { grid-column: 1 / -1; color: #D3C8DC; font-size: var(--t-sm); max-width: 62em; margin-bottom: 20px; }
.results .result { border-bottom: 0; padding: 0; }
.more-line { margin: 28px 0 0; }
.results-two { grid-template-columns: 1fr 1fr; margin-top: 8px; border-top: 0; padding-top: 0; }
.portfolio-compact { padding: 64px 0; }
.portfolio-compact .wheel-svg { max-width: 640px; }
@media (max-width: 960px) { .results-two { grid-template-columns: 1fr; gap: 20px; } .portfolio-compact { padding: 40px 0; } }
.more-line a { font-weight: 600; display: inline-block; padding: 4px 0; }

/* Members page choices */
.paths { display: grid; gap: 12px; }
.paths details { border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
.paths summary { cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--ink); font-size: var(--t-md); list-style-position: outside; min-height: 48px; }
.paths summary:hover { background: var(--surface); }
.paths summary { list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.paths summary::-webkit-details-marker { display: none; }
.paths summary::after { content: "+"; flex: none; font-size: 1.5em; line-height: 1; font-weight: 400; color: var(--orange-ink); }
.paths details[open] summary::after { content: "\2212"; }
.paths details[open] summary { border-bottom: 1px solid var(--line); }
.paths .path-body { padding: 16px 20px 20px; }
.paths .path-body p:last-child { margin-bottom: 0; }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }

/* Members: choices directly under the headline */
.members-hero .paths { margin-top: 24px; max-width: 820px; }
.members-hero .lede { margin-bottom: 0; }
.org-line { margin: 20px 0 0; font-size: var(--t-sm); color: var(--muted); }
.org-line a { display: inline-block; padding: 2px 0; }
@media (max-width: 960px) { .members-hero .paths { margin-top: 18px; } .paths summary { padding: 14px 16px; } }

/* Standalone links inside text get a 24px target */
main p > a, main td a, main th a, .qual a, .rows a, .feature p a { display: inline-block; padding: 2px 0; }

/* Responsive */
@media (max-width: 1100px) {
  .nav-group-toggle, .nav-link { padding: 10px 8px; }
  .journey-tabs { grid-template-columns: 1fr; }
  .tablist { flex-direction: row; overflow-x: auto; }
  .tablist [role="tab"] { border-left: 0; border-bottom: 3px solid var(--line); min-width: 180px; }
  .tablist [role="tab"][aria-selected="true"] { border-bottom-color: var(--orange); }
}
@media (max-width: 960px) {
  :root { --gutter: 16px; }
  section { padding: 56px 0; }
  .section-tight { padding: 36px 0; }
  .utility { display: none; }
  .bar { padding-top: 10px; }
  .bar-mobile { display: flex; align-items: center; gap: 8px; }
  .bar-cta { min-height: 44px; padding: 0 14px; }
  .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--plum); background: #fff; color: var(--plum); font: inherit; font-weight: 600; cursor: pointer; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 20px; flex-direction: column; align-items: stretch; gap: 12px; box-shadow: 0 16px 32px rgba(46,34,58,.12); max-height: calc(100vh - 140px); overflow-y: auto; }
  .primary-nav.open { display: flex; }
  .nav-cta { display: none; }
  .nav-top { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-group-toggle, .nav-link { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: var(--t-md); }
  .nav-group-toggle:hover, .nav-link:hover, .nav-group-toggle[aria-expanded="true"] { background: none; }
  .nav-group-toggle[data-current="true"], .nav-link[aria-current="page"] { box-shadow: none; color: var(--orange-ink); }
  .nav-panel, .nav-panel-narrow { position: static; width: auto; box-shadow: none; border: 0; padding: 4px 0 12px; grid-template-columns: 1fr; }
  .primary-nav .menu-utility { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; margin: 4px 0 0; padding: 0; }
  .menu-utility a { color: var(--muted); display: inline-block; padding: 8px 0; text-decoration: none; font-size: var(--t-sm); }
  .hero { padding: 32px 0 8px; }
  .hero-grid, .portfolio-grid, .statement, .feature, .page-hero .wrap, .form-grid, .evidence-band .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { min-height: 0; padding: 8px 0; }
  .portfolio { padding: 40px 0 56px; }
  .feature.flip .feature-media { order: 0; }
  .feature { padding: 32px 0; gap: 24px; }
  .tabpanel { grid-template-columns: 1fr; padding: 20px; min-height: 0; }
  .tabpanel img { max-height: 320px; }
  .reasons, .design-key { grid-template-columns: 1fr; gap: 28px; }
  .rows { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .phases { grid-template-columns: 1fr; }
  .phases li { padding: 0 0 22px 44px; }
  .phases li::after { top: 32px; left: 13px; right: auto; bottom: 0; width: 2px; height: auto; }
  .checklist { grid-template-columns: 1fr; }
  .study { grid-template-columns: 1fr; gap: 8px; }
  .study .meta { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .form-grid .side-panel { padding: 20px; }
  .page-hero { padding: 36px 0 28px; }
  .hero-shot { max-height: 280px; }
}
@media (max-width: 1100px) {
  .tablist [role="tab"] span { display: none; }
  .tablist [role="tab"] { min-width: 150px; }
  .step-nav { display: flex; }
}
@media (max-width: 1100px) {
  .route-bar ul { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .results { grid-template-columns: 1fr; gap: 20px; }
  .glance > div { grid-template-columns: 1fr; gap: 2px; }
  .portfolio-grid { grid-template-columns: 1fr; grid-template-areas: "head" "wheel" "list"; }
  .nav-feature span { display: none; }
  .nav-panel { gap: 0; }
  .nav-feature { padding: 8px 0; }
  .nav-panel-label { margin: 8px 0 0; }
  .nav-sub a { padding: 4px 0; }
  .nav-panel-foot { padding: 6px 0 0; margin-top: 4px; }
  .form-grid .side-panel { order: 2; }
}
@media (max-width: 700px) {
  .portfolio .wheel-figure { display: none; }
  .portfolio-grid { grid-template-areas: "head" "list"; }
  .portfolio-compact .portfolio-head { margin-bottom: 0; }
  .programs .swatch { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; }
  .programs .num { display: inline; font-size: var(--t-xs); font-weight: 700; color: #fff; }
  .programs .sw-lead .num, .programs .sw-soon .num { color: var(--ink); }
  .programs .sw-soon { outline-offset: 0; background: #fff; outline: 2px dashed #6E6280; }
  .wheel-full { display: none; }
  .wheel-compact { display: block; max-width: 300px; margin: 0 auto; }
  .wheel-figure .legend { justify-content: center; }
}
@media (max-width: 960px) {
  .hero-routed { display: flex; flex-direction: column; }
  .hero-routed .hero-grid { display: contents; }
  .hero-routed .hero-grid > div { order: 1; padding: 0 var(--gutter); }
  .hero-routed .route-bar { order: 2; margin-top: 4px; padding-bottom: 8px; }
  .hero-routed .hero-media { order: 3; padding: 8px var(--gutter) 24px; }
  .hero-routed .hero-media img { width: min(300px, 80%); }
  .hero-routed .actions { margin-top: 20px; }
}
@media (max-width: 960px) {
  .proto-long { display: none; }
  .proto-short { display: inline; }
  .proto-bar { padding: 4px var(--gutter); line-height: 1.4; }
  /* Mobile pacing on audience pages: smaller hero image, tighter hero and first section */
  .page-hero { padding: 28px 0 24px; }
  .page-hero .wrap { gap: 16px; }
  .page-hero .hero-shot, .page-hero .wrap > img { max-height: 170px; width: auto; max-width: 100%; margin: 0; object-fit: contain; }
  .page-hero .wrap > img { border-radius: 12px; }
  .page-hero .actions { margin-top: 18px; }
  #receive { padding-top: 32px; }
  #receive .section-head { margin-bottom: 20px; }
  #receive .feature-media { padding: 12px; }
  #receive .feature-media img { max-height: 240px; }
}
@media (max-width: 560px) {
  .route-bar ul { grid-template-columns: 1fr 1fr; }
  .route-bar li:last-child { grid-column: 1 / -1; }
  body { font-size: var(--t-sm); }
  .radio-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .result .fig { font-size: 2rem; }
  .access thead { display: none; }
  .access, .access tbody, .access tr, .access th, .access td, .access caption { display: block; width: 100%; }
  .access { border: 1px solid var(--line); }
  .access tr { border-bottom: 2px solid var(--line); }
  .access td { border: 0; padding-top: 4px; }
  .access td[data-label]::before { content: attr(data-label); display: block; font-size: var(--t-xs); font-weight: 700; color: var(--muted); }
  .access tbody th { width: 100%; background: var(--surface); }
  .programs .status { max-width: 8em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Revision 8: member line under the routes, clinical-care intro, offer cards, measurement ladder */
.route-member { margin: 14px 0 0; font-size: var(--t-sm); color: var(--muted); }
.route-bar .route-member a { display: inline-block; height: auto; padding: 4px 0; border: 0; border-radius: 0; background: none; color: var(--orange-ink); font-weight: 600; text-decoration: underline; }
.route-bar .route-member a:hover { color: var(--plum); background: none; }
.care-card { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 28px 32px; border: 1.5px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); background: #fff; }
.care-card h2 { font-size: var(--t-xl); margin: 0 0 6px; }
.care-card p { margin: 0; max-width: 46em; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: #fff; }
.offer .tag { display: inline-block; font-size: var(--t-xs); font-weight: 700; color: var(--plum); background: var(--surface); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.offer h3 { font-size: var(--t-lg); margin: 0 0 8px; }
.offer ul { margin: 0; padding-left: 1.1em; font-size: var(--t-sm); }
.offer li { margin-bottom: 6px; }
.offer .note { font-size: var(--t-sm); color: var(--muted); margin: 12px 0 0; }
.phases-5 { grid-template-columns: repeat(5, 1fr); }
.svc { list-style: none; margin: 0; padding: 0; }
.svc li { display: grid; grid-template-columns: 1fr 15em; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.svc li:last-child { border-bottom: 1px solid var(--line); }
.svc strong { color: var(--ink); display: block; font-size: var(--t-md); }
.svc .st { font-weight: 600; color: var(--plum); }
.checklist-plain { margin: 0; padding-left: 1.3em; }
.checklist-plain li { margin-bottom: 8px; }
@media (max-width: 960px) {
  .care-card { grid-template-columns: 1fr; gap: 16px; padding: 22px 20px; }
  .offers { grid-template-columns: 1fr; gap: 16px; }
  .offer { padding: 20px; }
  .phases-5 { grid-template-columns: 1fr; }
  .svc li { grid-template-columns: 1fr; gap: 2px; }
}
.access caption a, .svc a { display: inline-block; padding: 4px 0; }
.portfolio-care { margin: 0; }
.portfolio-care a { font-weight: 600; }
