:root {
  color-scheme: light;
  --paper: #f4f0e7;
  --paper-light: #fbf9f4;
  --ink: #102938;
  --ink-soft: #294554;
  --muted: #65757d;
  --line: rgba(16, 41, 56, 0.18);
  --red: #ae302f;
  --coral: #e7836d;
  --cyan: #3fc1cf;
  --stage-0: #4f9f91;
  --stage-1: #efd48d;
  --stage-2: #e8ad51;
  --stage-3: #e27b59;
  --stage-4: #bd3546;
  --traffic-green: #1f7a68;
  --traffic-yellow: #e7b84b;
  --traffic-red: #bc3f52;
  --traffic-gray: #75818a;
  --shadow: 0 24px 70px rgba(16, 41, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  min-height: 7rem;
  padding: 1.65rem clamp(1.25rem, 5vw, 5.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 3px solid #9fc7a9;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
}

.brand-mark {
  width: 4.1rem;
  height: auto;
  overflow: visible;
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}

.brand-mark path:first-child {
  stroke: #d63763;
}

.brand-mark path:last-child {
  stroke: var(--cyan);
}

.brand > span {
  display: grid;
  gap: 0.15rem;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.brand small {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link {
  padding-bottom: 0.45rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  min-height: 43rem;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 6vw, 7.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(20rem, 0.7fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(16, 41, 56, 0.045) calc(100% - 1px)) 0 0 / 9rem 100%,
    var(--paper);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--red);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

h1,
h2,
legend {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  margin: 0;
  font-size: clamp(5.7rem, 13vw, 11.5rem);
  letter-spacing: -0.065em;
  line-height: 0.78;
}

.acronym-expansion {
  max-width: 54rem;
  margin: clamp(2rem, 4vw, 3.2rem) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.3rem;
  color: var(--ink-soft);
  font-size: clamp(0.72rem, 0.95vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.acronym-expansion span {
  white-space: nowrap;
}

.acronym-expansion mark {
  padding: 0;
  color: var(--red);
  background: transparent;
  font-size: 1.22em;
  font-weight: 900;
}

.acronym-translation {
  max-width: 46rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.hero-title {
  max-width: 50rem;
  margin: clamp(1.8rem, 3.5vw, 2.8rem) 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  line-height: 1.12;
}

.hero-lead {
  max-width: 45rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.17rem);
  line-height: 1.75;
}

.primary-link {
  width: fit-content;
  min-height: 3.25rem;
  margin-top: 2.5rem;
  padding: 0.9rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-visual {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: white;
  background: var(--ink);
  border-radius: 7rem 0 0 0;
  box-shadow: var(--shadow);
}

.hero-visual p {
  max-width: 22rem;
  margin: 5rem 0 2.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.4rem);
  line-height: 1.2;
}

.hero-visual small {
  display: block;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.mini-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.mini-stages span {
  min-height: 4.25rem;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.mini-stages span:last-child {
  border-right: 0;
}

.s0 { background: var(--stage-0); }
.s1 { background: var(--stage-1); }
.s2 { background: var(--stage-2); }
.s3 { background: var(--stage-3); }
.s4 { color: white !important; background: var(--stage-4); }

.hero-care-pyramid {
  display: grid;
  gap: 0.45rem;
}

.hero-care-top,
.hero-care-middle,
.hero-care-base {
  margin-inline: auto;
  display: grid;
  gap: 0.45rem;
}

.hero-care-top {
  width: 58%;
  grid-template-columns: repeat(2, 1fr);
}

.hero-care-middle {
  width: 78%;
  grid-template-columns: repeat(2, 1fr);
}

.hero-care-base {
  width: 100%;
}

.hero-care-pyramid span {
  min-height: 3.2rem;
  padding: 0.65rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.hero-care-base span {
  min-height: 4rem;
  color: var(--ink);
  background: var(--cyan);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles article {
  min-height: 15rem;
  padding: 2.5rem clamp(1.5rem, 4vw, 4.5rem);
  border-right: 1px solid var(--line);
}

.principles article:last-child {
  border-right: 0;
}

.principles span,
.step-number {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.principles h2 {
  margin: 2rem 0 0.7rem;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
}

.principles p {
  max-width: 24rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.care-assessment {
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5.5rem);
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
}

.care-toolbar {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.care-toolbar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.care-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.care-toolbar button {
  min-height: 2.7rem;
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.care-toolbar button:first-child {
  color: white;
  background: var(--ink);
}

.care-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(28rem, 0.88fr);
  align-items: start;
  gap: 1.5rem;
}

.care-form {
  padding: clamp(1.25rem, 3vw, 2.3rem);
  display: grid;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.pillar-fieldset {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.pillar-fieldset:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(63, 193, 207, 0.2);
}

.pillar-fieldset legend {
  padding-right: 0.7rem;
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  line-height: 1.05;
}

.pillar-fieldset legend > span {
  width: 2rem;
  height: 2rem;
  margin-right: 0.35rem;
  display: inline-grid;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  vertical-align: 0.22rem;
}

.pillar-activity {
  border-left: 5px solid var(--cyan);
}

.pillar-fieldset .field-help {
  margin: 0.75rem 0 1.15rem;
  font-size: 0.82rem;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}

.data-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.data-field > span:first-child {
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.3;
}

.data-field input,
.data-field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(16, 41, 56, 0.28);
  border-radius: 0;
}

.input-with-unit {
  position: relative;
  display: block;
}

.input-with-unit input {
  padding-right: 4rem;
}

.input-with-unit small {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  color: var(--muted);
  font-size: 0.67rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.inline-check {
  margin-top: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1.45;
}

.micro-copy {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.guideline-note {
  margin: 0.9rem 0 0;
  padding-top: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.5;
}

.care-panel {
  position: sticky;
  top: 1rem;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.care-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.care-panel-head .result-kicker {
  color: var(--coral);
}

.care-panel-head h3 {
  margin: 0.55rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
}

.meta-badge {
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.care-alert {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  color: #fff4f1;
  background: rgba(188, 63, 82, 0.24);
  border: 1px solid #ef9aa7;
  font-size: 0.78rem;
  line-height: 1.5;
}

.care-pyramid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: minmax(6rem, auto) minmax(6.5rem, auto) minmax(7.5rem, auto);
  gap: 0.45rem;
}

.care-segment {
  min-width: 0;
  padding: 0.8rem 0.65rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.25rem;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  text-align: center;
  transition: filter 150ms ease, transform 150ms ease, background 180ms ease;
}

.care-segment:hover {
  filter: brightness(1.08);
  transform: translateY(-0.12rem);
}

.care-segment strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  font-weight: 400;
  line-height: 1.05;
}

.care-segment small {
  color: currentColor;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.76;
  text-transform: uppercase;
}

.care-segment > span {
  margin-top: 0.35rem;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.care-segment b {
  margin-right: 0.18rem;
  font-size: 0.82rem;
}

.segment-activity { grid-column: 1 / 7; grid-row: 3; }
.segment-bp { grid-column: 1 / 4; grid-row: 2; }
.segment-ldl { grid-column: 4 / 7; grid-row: 2; }
.segment-a1c { grid-column: 2 / 4; grid-row: 1; }
.segment-obesity { grid-column: 4 / 6; grid-row: 1; }

.care-segment.state-green { background: var(--traffic-green); }
.care-segment.state-yellow { color: var(--ink); background: var(--traffic-yellow); border-color: #ffe29a; }
.care-segment.state-red { background: var(--traffic-red); }
.care-segment.state-unknown { background: var(--traffic-gray); }

.traffic-legend {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.65rem;
  line-height: 1.35;
}

.traffic-legend span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.traffic-legend i {
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.legend-green { background: var(--traffic-green); }
.legend-yellow { background: var(--traffic-yellow); }
.legend-red { background: var(--traffic-red); }
.legend-gray { background: var(--traffic-gray); }

.care-summary {
  margin-top: 1.6rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--cyan);
}

.care-summary p,
.care-summary strong {
  margin: 0;
  display: block;
  line-height: 1.55;
}

.care-summary p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.care-summary strong {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.69rem;
}

.care-details {
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
}

.care-details li {
  padding: 0.85rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.care-details span,
.care-details strong {
  font-size: 0.75rem;
}

.care-details strong {
  text-align: right;
}

.care-details small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.67rem;
  line-height: 1.45;
}

.care-details li[data-state="green"] strong { color: #8fe0c7; }
.care-details li[data-state="yellow"] strong { color: #ffdb7a; }
.care-details li[data-state="red"] strong { color: #ff9cad; }
.care-details li[data-state="unknown"] strong { color: #c2c9cd; }

.care-guardrail {
  margin: 1.4rem 0 0;
  padding-top: 1.1rem;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.65rem;
  line-height: 1.6;
}

.assessment {
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5.5rem);
  background: #eeebe3;
}

.section-heading {
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(20rem, 1.2fr);
  align-items: end;
  gap: 3rem;
}

.section-heading h2,
.evidence h2 {
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 6.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.section-heading > p {
  max-width: 45rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.demo-switcher {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.demo-switcher span {
  margin-right: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-switcher button {
  min-height: 2.6rem;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.demo-switcher button:hover,
.demo-switcher button.is-active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.demo-switcher .text-button {
  margin-left: auto;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.assessment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(27rem, 0.92fr);
  align-items: start;
  box-shadow: var(--shadow);
}

.question-card {
  min-height: 53rem;
  padding: clamp(1.5rem, 4vw, 3.6rem);
  display: flex;
  flex-direction: column;
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.question-topline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.progress-track {
  height: 2px;
  flex: 1;
  overflow: hidden;
  background: var(--line);
}

.progress-track span {
  width: 25%;
  height: 100%;
  display: block;
  background: var(--red);
  transition: width 220ms ease;
}

.form-step {
  margin-top: 3.2rem;
  animation: reveal 220ms ease both;
}

.form-step[hidden] {
  display: none;
}

.step-number {
  margin: 0 0 1.1rem;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  max-width: 46rem;
  padding: 0;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.05;
}

.field-help {
  max-width: 45rem;
  margin: 1.1rem 0 1.75rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
}

.option-list {
  display: grid;
  gap: 0.7rem;
}

.option-list label,
.completion-check {
  min-height: 4.7rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: white;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.option-list label:hover,
.completion-check:hover {
  border-color: rgba(16, 41, 56, 0.45);
}

.option-list label:has(input:checked),
.completion-check:has(input:checked) {
  background: #eaf1ee;
  border-color: var(--ink);
  transform: translateX(0.25rem);
}

input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.12rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--ink);
}

.option-list label > span,
.completion-check > span {
  display: grid;
  gap: 0.32rem;
}

.option-list strong,
.completion-check strong {
  font-size: 0.94rem;
}

.option-list small,
.completion-check small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.completion-check {
  margin-top: 1.25rem;
  border-left: 4px solid var(--stage-0);
}

.form-actions {
  margin-top: auto;
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.primary-button,
.secondary-button {
  min-height: 3.2rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-button {
  margin-left: auto;
  color: white;
  background: var(--ink);
}

.secondary-button {
  color: var(--ink);
  background: transparent;
}

.secondary-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.result-card {
  min-height: 53rem;
  padding: clamp(1.5rem, 4vw, 3.6rem);
  color: white;
  background: var(--ink);
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.result-head p,
.result-kicker {
  margin: 0;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.result-head p {
  color: var(--coral);
}

.status-badge {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge.is-final {
  color: #d5f6e8;
  border-color: #72c9a8;
}

.status-badge.is-provisional {
  color: #ffe3a8;
  border-color: #e8ad51;
}

.result-title-row {
  margin-top: 3.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

#result-kicker {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-title-row h2 {
  max-width: 30rem;
  margin: 0.55rem 0 0;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  line-height: 0.98;
}

#result-number {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.75;
}

.result-description {
  max-width: 44rem;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  line-height: 1.7;
}

.stage-scale {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.stage-scale > div {
  min-width: 0;
  min-height: 5.5rem;
  padding: 0.75rem 0.45rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0.45;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.stage-scale > div:last-child {
  border-right: 0;
}

.stage-scale > div:nth-child(1) { background: var(--stage-0); }
.stage-scale > div:nth-child(2) { color: var(--ink); background: var(--stage-1); }
.stage-scale > div:nth-child(3) { color: var(--ink); background: var(--stage-2); }
.stage-scale > div:nth-child(4) { background: var(--stage-3); }
.stage-scale > div:nth-child(5) { background: var(--stage-4); }

.stage-scale span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.stage-scale small {
  overflow: hidden;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stage-scale > div.is-current {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: translateY(-0.45rem) scale(1.04);
  box-shadow: 0 0 0 3px var(--paper-light), 0 12px 24px rgba(0, 0, 0, 0.22);
}

.result-detail {
  margin-top: 2.6rem;
  display: grid;
  gap: 1.25rem;
}

.result-detail section {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.result-detail h3 {
  margin: 0;
  color: var(--coral);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-detail ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.result-detail li + li {
  margin-top: 0.3rem;
}

.pending-section p {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.result-footnote {
  margin: 2.25rem 0 0;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--coral);
  font-size: 0.72rem;
  line-height: 1.55;
}

.evidence {
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 6vw, 7.5rem);
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(3rem, 7vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.evidence h2 {
  max-width: 45rem;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
}

.evidence-copy {
  color: var(--ink-soft);
  line-height: 1.7;
}

.evidence-copy p {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
}

.evidence-copy ol {
  margin: 2rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.8rem;
}

.evidence-copy li + li {
  margin-top: 0.65rem;
}

footer {
  min-height: 5rem;
  padding: 1.25rem clamp(1.25rem, 5vw, 5.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .evidence {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 38rem;
  }

  .hero-visual p {
    margin-top: 3rem;
  }

  .assessment-grid {
    grid-template-columns: 1fr;
  }

  .care-grid {
    grid-template-columns: 1fr;
  }

  .care-panel {
    position: static;
  }

  .result-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 5.75rem;
    padding-block: 1.15rem;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 3rem;
  }

  .back-link {
    font-size: 0.58rem;
  }

  .hero {
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(5rem, 25vw, 7rem);
  }

  .acronym-expansion {
    gap: 0.35rem 0.85rem;
    font-size: 0.67rem;
  }

  .acronym-translation {
    font-size: 0.74rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principles article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principles article:last-child {
    border-bottom: 0;
  }

  .section-heading {
    gap: 1.5rem;
  }

  .section-heading h2 {
    font-size: 3.7rem;
  }

  .demo-switcher {
    align-items: stretch;
  }

  .demo-switcher span {
    width: 100%;
  }

  .demo-switcher button {
    flex: 1 1 calc(33.333% - 0.55rem);
  }

  .demo-switcher .text-button {
    margin-left: 0;
  }

  .care-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .care-toolbar > div,
  .care-toolbar button {
    width: 100%;
  }

  .care-form,
  .care-panel {
    padding: 1.1rem;
  }

  .pillar-fieldset {
    padding: 1rem;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .care-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .care-pyramid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .care-segment {
    min-height: 5.3rem;
  }

  .segment-activity { order: 0; }
  .segment-bp { order: 1; }
  .segment-ldl { order: 2; }
  .segment-a1c { order: 3; }
  .segment-obesity { order: 4; }

  .traffic-legend {
    grid-template-columns: 1fr;
  }

  .question-card,
  .result-card {
    min-height: auto;
    padding: 1.35rem;
  }

  legend {
    font-size: 2.35rem;
  }

  .option-list label {
    min-height: 4.9rem;
  }

  .form-actions {
    margin-top: 1.5rem;
  }

  .result-title-row {
    margin-top: 2.2rem;
    align-items: flex-start;
  }

  #result-number {
    font-size: 5.5rem;
  }

  .stage-scale > div {
    min-height: 4.3rem;
    padding-inline: 0.15rem;
  }

  .stage-scale small {
    display: none;
  }

  .evidence {
    gap: 2rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
