:root {
  --health-ink: #102321;
  --health-forest: #154f43;
  --health-mint: #dff2ea;
  --health-aqua: #e9f8f4;
  --health-line: #cde2da;
  --health-soft: #f7fcfa;
  --health-warm: #fff7ec;
}

.health-page {
  background:
    radial-gradient(circle at 88% 6%, rgba(181, 232, 214, 0.62), transparent 27rem),
    radial-gradient(circle at 6% 38%, rgba(231, 241, 255, 0.8), transparent 23rem),
    linear-gradient(180deg, #f8fcfa 0%, #fff 49%, #f2faf6 100%);
}

.health-header { background: rgba(248, 252, 250, 0.88); }
.health-header .brand em { display: inline-flex; align-items: center; min-height: 25px; border: 1px solid rgba(21, 79, 67, 0.18); border-radius: 999px; background: rgba(223, 242, 234, 0.78); color: var(--health-forest); font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 10px; font-style: normal; font-weight: 600; letter-spacing: 0.03em; padding: 0 9px; text-transform: uppercase; }
.health-header .nav-cta { background: var(--health-forest); }

.health-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr); gap: clamp(36px, 7vw, 110px); align-items: center; min-height: calc(100vh - 68px); padding-top: clamp(76px, 8vw, 118px); }
.health-hero h1 { max-width: 790px; color: var(--health-ink); font-size: clamp(54px, 7.4vw, 100px); }
.health-hero .eyebrow, .health-section .eyebrow, .health-controls .eyebrow, .health-boundary .eyebrow, .health-review .eyebrow, .health-faq .eyebrow { color: var(--health-forest); }
.health-product-line { margin: 20px 0 0; color: var(--health-ink); font-family: "IBM Plex Serif", Georgia, serif; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }
.health-hero .lead { max-width: 670px; }
.health-hero .button.primary { background: linear-gradient(135deg, #1b6656, #0f4138); box-shadow: 0 10px 22px rgba(21, 79, 67, 0.2); }
.health-hero .button.secondary { border-color: var(--health-line); background: rgba(255, 255, 255, 0.8); }

.health-console { overflow: hidden; border: 1px solid rgba(21, 79, 67, 0.17); border-radius: 24px; background: rgba(255, 255, 255, 0.86); box-shadow: 0 28px 86px rgba(14, 62, 51, 0.17); padding: clamp(20px, 3vw, 30px); }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #5e756f; font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.console-top strong { border-radius: 999px; background: var(--health-warm); color: #8c5e20; padding: 7px 10px; font-size: 10px; }
.console-timeline { display: grid; gap: 13px; margin: 24px 0; }
.timeline-item { border: 1px solid var(--health-line); border-radius: 16px; background: var(--health-soft); padding: 16px; }
.timeline-item span, .console-rule span { display: block; color: #56716a; font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.timeline-item p { margin: 8px 0 0; color: var(--health-ink); font-size: 14px; line-height: 1.55; }
.timeline-item.assistant { margin-left: 22px; border-color: rgba(21, 79, 67, 0.28); background: #e9f8f4; }
.timeline-item.handoff { border-left: 4px solid var(--health-forest); background: #fff; }
.console-rule { border-radius: 14px; background: #102d27; color: #fff; padding: 17px; }
.console-rule span { color: #b8d8ce; }
.console-rule strong { display: block; margin-top: 8px; font-size: 14px; line-height: 1.45; }

.health-fit-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--health-line); border-bottom: 1px solid var(--health-line); background: rgba(255, 255, 255, 0.66); }
.health-fit-bar article { min-height: 190px; padding: 30px clamp(20px, 4vw, 50px); border-right: 1px solid var(--health-line); }
.health-fit-bar article:last-child { border-right: 0; }
.health-fit-bar span, .health-workflow-grid > article > span, .control-grid > article > span { display: block; color: var(--health-forest); font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.health-fit-bar strong { display: block; margin-top: 14px; color: var(--health-ink); font-family: "IBM Plex Serif", Georgia, serif; font-size: clamp(30px, 3vw, 45px); font-weight: 500; line-height: 1; }
.health-fit-bar p { max-width: 290px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.health-demo { background: linear-gradient(180deg, #f4fbf8 0%, #fff 100%); }
.demo-heading { margin-bottom: 38px; }
.demo-heading p:last-child { max-width: 720px; }
.demo-shell { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.6fr) minmax(240px, 0.7fr); max-width: 1240px; margin: 0 auto; overflow: hidden; border: 1px solid var(--health-line); border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(18, 72, 61, 0.1); }
.demo-scenarios { display: grid; align-content: start; gap: 10px; padding: 18px; border-right: 1px solid var(--health-line); background: #eff9f5; }
.demo-scenario { display: grid; grid-template-columns: auto 1fr; gap: 12px; width: 100%; border: 1px solid transparent; border-radius: 14px; background: transparent; padding: 15px 12px; color: var(--health-ink); text-align: left; cursor: pointer; transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.demo-scenario:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.72); }
.demo-scenario.is-active { border-color: rgba(21, 79, 67, 0.28); background: #fff; box-shadow: 0 10px 20px rgba(21, 79, 67, 0.08); }
.demo-scenario-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #cbe7dd; color: var(--health-forest); font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 11px; font-weight: 700; }
.demo-scenario.is-active .demo-scenario-number { background: var(--health-forest); color: #fff; }
.demo-scenario strong, .demo-scenario small { display: block; }
.demo-scenario strong { font-size: 14px; line-height: 1.3; }
.demo-scenario small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.demo-stage { padding: 25px; }
.demo-chat { overflow: hidden; border: 1px solid var(--health-line); border-radius: 16px; background: var(--health-soft); }
.demo-chat-top, .demo-chat-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; color: #56716a; font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.demo-chat-top { border-bottom: 1px solid var(--health-line); background: rgba(255,255,255,0.68); }
.demo-status { border-radius: 999px; background: #daf0e8; padding: 5px 8px; color: #1d6654; }
.demo-messages { display: grid; gap: 12px; padding: 18px; }
.demo-message { max-width: 92%; border-radius: 13px; padding: 13px 14px; }
.demo-message span { display: block; color: #56716a; font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.demo-message p { margin: 7px 0 0; color: var(--health-ink); font-size: 14px; line-height: 1.55; }
.demo-message.visitor { background: #fff; border: 1px solid var(--health-line); }
.demo-message.assistant { margin-left: auto; background: #dff2ea; border: 1px solid rgba(21, 79, 67, 0.16); }
.demo-chat-footer { justify-content: flex-start; border-top: 1px solid var(--health-line); background: #fff; font-size: 10px; }
.demo-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #2f9b78; box-shadow: 0 0 0 3px rgba(47,155,120,0.14); }
.demo-flow { display: grid; gap: 11px; margin: 18px 0 0; padding: 0; list-style: none; }
.demo-flow li { display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; }
.demo-flow li > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--health-mint); color: var(--health-forest); font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 11px; font-weight: 700; }
.demo-flow strong { display: block; color: var(--health-ink); font-size: 13px; }
.demo-flow p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.demo-outcome { display: flex; flex-direction: column; justify-content: center; padding: 25px; border-left: 1px solid var(--health-line); background: #102d27; color: #fff; }
.outcome-label { color: #a7d5c6; font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.demo-outcome h3 { margin: 16px 0 0; font-family: "IBM Plex Serif", Georgia, serif; font-size: clamp(25px, 2.2vw, 34px); font-weight: 500; line-height: 1.1; }
.demo-outcome > p { margin: 16px 0 0; color: rgba(255,255,255,0.72); font-size: 14px; line-height: 1.6; }
.outcome-pill { display: inline-flex; align-self: flex-start; margin-top: 19px; border: 1px solid rgba(178,226,210,0.34); border-radius: 999px; padding: 8px 10px; color: #c7eadc; font-size: 11px; font-weight: 700; }
.demo-disclaimer { margin-top: 24px !important; color: rgba(255,255,255,0.52) !important; font-size: 11px !important; }
.demo-shell[data-scenario="sensitive"] .demo-status { background: #fff2db; color: #8d5d1f; }
.demo-shell[data-scenario="sensitive"] .demo-dot { background: #d28a25; box-shadow: 0 0 0 3px rgba(210,138,37,0.15); }
.demo-shell[data-scenario="sensitive"] .demo-message.assistant { border-color: rgba(184, 122, 35, 0.22); background: #fff8ec; }
.demo-shell[data-scenario="sensitive"] .demo-flow li:nth-child(2) > span { background: #fff0d7; color: #965f13; }

.health-section { background: rgba(255, 255, 255, 0.6); }
.health-section .section-heading p:last-child { max-width: 680px; }
.health-workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1120px; margin: 0 auto; gap: 15px; }
.health-workflow-grid article { min-height: 258px; border: 1px solid var(--health-line); border-radius: 17px; background: #fff; padding: 23px; box-shadow: 0 14px 36px rgba(18, 72, 61, 0.06); }
.health-workflow-grid h3 { margin-top: 38px; color: var(--health-ink); font-size: 26px; }
.health-workflow-grid p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.62; }

.health-boundary { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.9fr); gap: clamp(34px, 7vw, 112px); align-items: center; background: #102d27; color: #fff; }
.health-boundary .eyebrow { color: #a7d5c6; }
.health-boundary h2 { max-width: 720px; }
.health-boundary-copy > p:last-child { max-width: 600px; margin: 22px 0 0; color: rgba(255,255,255,0.68); font-size: 17px; line-height: 1.65; }
.boundary-card-grid { display: grid; gap: 12px; }
.boundary-card { border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 22px; }
.boundary-card.yes { background: rgba(100, 186, 151, 0.14); }
.boundary-card.no { background: rgba(255,255,255,0.06); }
.boundary-card span { display: block; color: #bce2d4; font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.boundary-card ul { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; }
.boundary-card li { position: relative; padding-left: 20px; color: rgba(255,255,255,0.86); font-size: 14px; line-height: 1.45; }
.boundary-card li::before { position: absolute; left: 0; color: #bce2d4; content: "•"; }

.health-controls { background: var(--health-aqua); }
.health-controls .section-heading p:last-child { margin: 0; }
.control-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1120px; margin: 0 auto; gap: 15px; }
.control-grid article { min-height: 238px; border: 1px solid var(--health-line); border-radius: 17px; background: rgba(255,255,255,0.8); padding: 23px; }
.control-grid h3 { margin-top: 24px; color: var(--health-ink); font-size: 25px; }
.control-grid p { margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.health-review { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; background: linear-gradient(135deg, #0f4439, #1c6e5d); color: #fff; }
.health-review .eyebrow { color: #bee6d7; }
.health-review h2 { max-width: 760px; }
.health-review p { max-width: 640px; margin: 18px 0 0; color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.62; }
.health-review .review-note { color: #dcefe8; font-size: 13px; }
.review-actions { display: grid; gap: 11px; min-width: 255px; }
.review-actions .button { min-width: 255px; }
.review-actions .button.ghost { border-color: rgba(255,255,255,0.34); }

.health-faq { background: rgba(255,255,255,0.72); }
.health-faq-grid { display: grid; max-width: 950px; margin: 0 auto; gap: 10px; }
.health-faq details { border: 1px solid var(--health-line); border-radius: 14px; background: #fff; padding: 0 20px; }
.health-faq summary { min-height: 66px; display: flex; align-items: center; cursor: pointer; color: var(--health-ink); font-weight: 700; }
.health-faq p { max-width: 760px; margin: 0; padding: 0 0 19px; color: var(--muted); line-height: 1.65; }

@media (max-width: 1080px) {
  .health-hero, .health-boundary { grid-template-columns: 1fr; }
  .health-workflow-grid, .control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .health-review { grid-template-columns: 1fr; }
  .demo-shell { grid-template-columns: minmax(210px, 0.65fr) minmax(0, 1.4fr); }
  .demo-outcome { grid-column: 1 / -1; border-top: 1px solid var(--health-line); border-left: 0; }
}

@media (max-width: 760px) {
  .health-header .brand em { display: none; }
  .health-hero { min-height: auto; padding-top: 66px; }
  .health-hero h1 { font-size: clamp(46px, 14vw, 66px); }
  .health-fit-bar, .health-workflow-grid, .control-grid { grid-template-columns: 1fr; }
  .health-fit-bar article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--health-line); }
  .health-fit-bar article:last-child { border-bottom: 0; }
  .health-workflow-grid article, .control-grid article { min-height: auto; }
  .health-workflow-grid h3 { margin-top: 28px; }
  .health-boundary { gap: 34px; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-scenarios { grid-template-columns: 1fr; border-right: 0; border-bottom: 1px solid var(--health-line); }
  .demo-stage { padding: 18px; }
  .demo-outcome { grid-column: auto; padding: 22px 18px; }
  .demo-chat-top { align-items: flex-start; }
  .review-actions, .review-actions .button { width: 100%; min-width: 0; }
}
