.health-landing { width: min(100% - 96px, var(--max)); margin: 0 auto; padding: clamp(58px, 9vw, 120px) 0; }
.health-landing-hero { max-width: 780px; }
.health-eyebrow { margin-bottom: 14px; color: var(--forest); font-size: .76rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.health-landing h1, .health-chat-header h1 { max-width: 14ch; margin-bottom: 22px; font-size: clamp(2.5rem, 5.2vw, 4.6rem); }
.health-lead { max-width: 58ch; margin-bottom: 28px; font-size: clamp(1.04rem, 1.8vw, 1.24rem); }
.health-landing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.health-analysis-button { background: var(--forest); color: var(--white); box-shadow: none; }
.health-analysis-button:hover { background: var(--forest-2); box-shadow: none; }
.health-boundary { margin-top: 16px; color: var(--muted); font-size: .82rem; }
.health-landing-section { margin-top: clamp(48px, 7vw, 88px); }
.health-section-title { margin-bottom: 22px; text-align: center; font-size: clamp(1.65rem, 3vw, 2.55rem); font-weight: 720; letter-spacing: -.03em; line-height: 1.08; }
.health-capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.health-capability-grid article { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.health-capability-grid strong { display: block; margin-bottom: 7px; font-size: 1rem; }
.health-capability-grid p { margin: 0; color: var(--muted); font-size: 1rem; }
.health-help-grid { gap: 18px; }
.health-help-grid article { position: relative; isolation: isolate; display: flex; min-height: 296px; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 28px; border-color: color-mix(in srgb, var(--help-card-ink), var(--line) 76%); background: var(--help-card); box-shadow: 0 18px 40px color-mix(in srgb, var(--help-card-ink), transparent 88%); transition: transform 180ms ease-out, box-shadow 180ms ease-out; }
.health-help-grid article::before { position: absolute; z-index: -1; top: 0; right: 0; left: 0; height: 44%; background: linear-gradient(118deg, transparent 11%, color-mix(in srgb, var(--help-card-shine), transparent 37%) 49%, transparent 72%); content: ""; pointer-events: none; }
.health-help-grid article::after { position: absolute; z-index: -1; right: -20%; bottom: -42%; width: 84%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--help-card-shine), transparent 44%), transparent 69%); content: ""; pointer-events: none; }
.health-help-grid article:nth-child(1) { --help-card: var(--forest); --help-card-ink: var(--white); --help-card-muted: color-mix(in srgb, var(--white), transparent 26%); --help-card-shine: var(--signal); }
.health-help-grid article:nth-child(2) { --help-card: color-mix(in srgb, var(--ok-soft), var(--surface) 38%); --help-card-ink: var(--forest); --help-card-muted: var(--muted); --help-card-shine: var(--white); }
.health-help-grid article:nth-child(3) { --help-card: color-mix(in srgb, var(--surface), var(--ok-soft) 30%); --help-card-ink: var(--ink); --help-card-muted: var(--muted); --help-card-shine: var(--white); }
.health-help-grid strong { margin: 32px 0 14px; color: var(--help-card-ink); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.12; letter-spacing: -.03em; }
.health-help-grid p { color: var(--help-card-muted); font-size: clamp(1.02rem, 1.3vw, 1.1rem); line-height: 1.55; }
.health-help-number { position: absolute; top: 23px; left: 25px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid color-mix(in srgb, var(--help-card-ink), transparent 70%); border-radius: 50%; color: var(--help-card-ink); font-size: .95rem; font-weight: 760; line-height: 1; }
.health-help-grid article:hover { transform: translateY(-3px); box-shadow: 0 23px 48px color-mix(in srgb, var(--help-card-ink), transparent 82%); }
@media (prefers-reduced-motion: reduce) { .health-help-grid article:hover { transform: none; transition: none; } }
.health-question-grid { gap: 16px; }
.health-question-grid .health-question-card { min-height: 0; padding: 24px; border: 1px solid var(--question-accent); border-top-width: 5px; background: color-mix(in srgb, var(--question-accent) 7%, var(--surface)); }
.health-question-card:nth-child(3n + 1) { --question-accent: var(--forest); }
.health-question-card:nth-child(3n + 2) { --question-accent: #587725; }
.health-question-card:nth-child(3n) { --question-accent: #9b5a34; }
.health-question-card h3 { margin-bottom: 18px; color: var(--question-accent); font-size: 1.25rem; }
.health-question-card p { max-width: none; }
.health-question-card p + p { margin-top: 13px; }
.health-question-card b { color: var(--ink); }
.health-comparison { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.health-comparison-card, .health-faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.health-comparison-card { padding: 24px; }
.health-comparison-card h3 { margin: 0 0 16px; font-size: 1.3rem; letter-spacing: -.02em; }
.health-comparison-card ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.health-comparison-card li { position: relative; padding-left: 25px; color: var(--ink); font-size: .95rem; line-height: 1.45; }
.health-comparison-card li::before { position: absolute; left: 0; top: .4em; width: 9px; height: 9px; border-radius: 50%; background: currentColor; content: ""; }
.health-comparison-ai { border-color: color-mix(in srgb, var(--forest), var(--line) 62%); background: color-mix(in srgb, var(--ok-soft), var(--surface) 62%); color: var(--forest); }
.health-comparison-doctor { border-color: color-mix(in srgb, #397583, var(--line) 58%); background: color-mix(in srgb, #dbeaf0, var(--surface) 62%); color: #245966; }
.health-comparison-card h3, .health-comparison-card li { color: inherit; }
.health-how-intro { max-width: 70ch; margin: 0 auto 32px; color: var(--muted); font-size: 1.08rem; }
.health-how-steps { margin: 0; padding: 0; list-style: none; counter-reset: health-how; }
.health-how-steps > li { display: grid; grid-template-columns: 44px minmax(160px, .7fr) minmax(0, 1.7fr); gap: clamp(16px, 3vw, 40px); padding: clamp(24px, 4vw, 40px) 0; border-top: 1px solid var(--line); counter-increment: health-how; }
.health-how-steps > li::before { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--forest); font-weight: 720; content: counter(health-how, decimal-leading-zero); }
.health-how-steps h3 { margin: 7px 0 0; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.3; letter-spacing: -.02em; }
.health-how-steps p { max-width: 70ch; margin: 0; color: var(--muted); }
.health-how-steps p + p { margin-top: 14px; }
.health-how-note { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--surface-2); }
.health-how-note strong { display: block; margin-bottom: 8px; font-size: 1.15rem; }
.health-how-note p { max-width: 75ch; margin: 0; color: var(--muted); }
.health-faq p { margin: 0; color: var(--muted); font-size: .9rem; }
.health-faq { display: grid; gap: 8px; }
.health-faq details { padding: 0 18px; }
.health-faq summary { padding: 16px 0; cursor: pointer; font-weight: 700; }
.health-faq details > p { padding: 0 0 16px; }
.health-benefit-rows { display: grid; gap: clamp(22px, 3vw, 40px); }
.health-benefit-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "copy visual"; gap: clamp(24px, 5vw, 76px); align-items: center; }
.health-benefit-row--reverse { grid-template-areas: "visual copy"; }
.health-benefit-copy { display: flex; grid-area: copy; aspect-ratio: 3 / 2; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); }
.health-benefit-copy strong { display: block; margin-bottom: 11px; font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.02em; }
.health-benefit-copy p { max-width: 48ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.08rem); }
.health-benefit-visual { grid-area: visual; min-height: 0; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--ground); }
.health-benefit-visual img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.health-landing-safe { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; margin-top: clamp(48px, 7vw, 88px); padding: clamp(22px, 3vw, 30px); border: 1px solid color-mix(in srgb, var(--danger), var(--line)); border-left: 5px solid var(--danger); border-radius: var(--radius); background: color-mix(in srgb, var(--danger-soft), var(--surface) 65%); }
.health-landing-safe::before { display: grid; grid-row: span 2; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--danger); color: var(--white); font-size: 1.25rem; font-weight: 760; content: "!"; }
.health-landing-safe .health-section-title { margin: 3px 0 8px; color: var(--danger); font-size: clamp(1.25rem, 2vw, 1.55rem); text-align: left; }
.health-landing-safe p { margin: 0; color: var(--muted); font-size: 1rem; }

.health-chat-page { display: grid; grid-template-columns: 278px minmax(0, 1fr); min-height: calc(100vh - 108px); background: var(--surface); }
.health-chat-history-toggle { display: none; }
.health-chat-sidebar { display: flex; flex-direction: column; gap: 14px; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--ground); }
.health-chat-back { padding: 6px 8px; color: var(--muted); font-size: .78rem; text-decoration: none; }
.health-chat-new { min-height: 42px; border: 1px solid var(--forest); border-radius: var(--radius-control); background: var(--forest); color: var(--white); font-weight: 700; text-align: left; padding: 0 13px; }
.health-chat-history { display: grid; gap: 4px; overflow-y: auto; }
.health-chat-history > p { margin: 12px 8px; color: var(--muted); font-size: .8rem; }
.health-chat-conversation { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: center; border-radius: 8px; }
.health-chat-conversation.is-active { background: var(--surface-2); }
.health-chat-conversation button { border: 0; background: transparent; color: var(--ink); text-align: left; }
.health-chat-conversation [data-health-chat-open] { overflow: hidden; min-height: 38px; padding: 0 9px; text-overflow: ellipsis; white-space: nowrap; }
.health-chat-conversation [data-health-chat-delete] { width: 30px; height: 30px; color: var(--muted); text-align: center; }
.health-chat-sidebar > p { margin: auto 8px 0; color: var(--muted); font-size: .73rem; line-height: 1.4; }
.health-chat-main { display: flex; flex-direction: column; width: min(100%, 900px); min-height: 0; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 72px) 24px; }
.health-chat-header { max-width: 660px; margin: auto 0 26px; }
.health-chat-header h1 { margin-bottom: 13px; font-size: clamp(2rem, 4vw, 3.3rem); }
.health-chat-header > p:last-child { margin-bottom: 0; color: var(--muted); }
.health-chat-specialties { max-width: 680px; margin: 0 0 24px; }
.health-chat-specialties h2 { margin: 0 0 5px; font-size: 1rem; }
.health-chat-specialties > p { margin: 0 0 10px; color: var(--muted); font-size: .82rem; }
.health-chat-specialties > div { display: flex; flex-wrap: wrap; gap: 8px; }
.health-chat-specialties button { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 8px 11px; color: var(--ink); font-size: .78rem; }
.health-chat-specialties button[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: var(--white); }
.health-chat-log { display: grid; gap: 16px; max-height: 54vh; overflow-y: auto; padding: 8px 2px; }
.health-chat-message { width: fit-content; max-width: min(84%, 700px); padding: 12px 15px; border-radius: 14px; background: var(--ground); white-space: pre-wrap; }
.health-chat-message.is-user { justify-self: end; background: var(--forest); color: var(--white); }
.health-chat-message.is-urgent { border: 2px solid var(--danger); background: var(--danger-soft); color: var(--ink); }
.health-chat-message-specialty { display: table; margin-bottom: 7px; padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--forest) 12%, transparent); color: var(--forest); font-size: .72rem; font-weight: 760; letter-spacing: .02em; line-height: 1.2; }
.health-chat-form { margin-top: auto; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 10px 34px rgba(20,63,53,.08); }
.health-chat-form textarea { display: block; width: 100%; min-height: 58px; resize: vertical; border: 0; outline: 0; background: transparent; }
.health-chat-form > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.health-chat-form > div > span { color: var(--muted); font-size: .72rem; }
.health-chat-attachment { justify-content: flex-start !important; margin: 0 0 8px; }
.health-chat-attachment > span { max-width: min(100%, 420px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .78rem; }
.health-chat-attachment button { min-height: 26px; margin-left: auto; background: transparent; color: var(--muted); font-size: 1.2rem; }
.health-chat-attach { display: grid; width: 36px; height: 36px; margin-right: auto; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 1rem; cursor: pointer; }
.health-chat-attach:hover { border-color: var(--forest); }
.health-chat-form button { min-height: 36px; border: 0; border-radius: 8px; background: var(--forest); color: var(--white); padding: 0 13px; font-weight: 700; }
.health-chat-form button span { color: inherit; font-size: inherit; }
.health-chat-form button:disabled { opacity: .55; cursor: wait; }
.health-chat-form p { margin: 10px 0 0; color: var(--danger); font-size: .8rem; }
.health-chat-quota { position: relative; width: fit-content; margin: 8px 2px 0 auto; color: var(--muted); font-size: .75rem; cursor: help; }
.health-chat-quota-tip { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 1; width: max-content; max-width: min(260px, calc(100vw - 40px)); padding: 8px 10px; border-radius: 8px; background: var(--forest); color: var(--white); font-size: .72rem; font-weight: 620; line-height: 1.35; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity 160ms ease-out, transform 160ms ease-out; }
.health-chat-quota:hover .health-chat-quota-tip, .health-chat-quota:focus .health-chat-quota-tip { opacity: 1; transform: translateY(0); }
.health-chat-disclaimer { margin: 13px 0 0; color: var(--muted); font-size: .73rem; text-align: center; }

@media (max-width: 760px) {
  .health-how-steps > li { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .health-how-steps > li > div { grid-column: 1 / -1; }
  .health-landing { width: calc(100% - 40px); padding: 56px 0; }
  .health-capability-grid { grid-template-columns: 1fr; }
  .health-benefit-row, .health-benefit-row--reverse { grid-template-columns: 1fr; grid-template-areas: "copy" "visual"; gap: 14px; }
  .health-benefit-copy { padding: 24px; }
  .health-comparison { grid-template-columns: 1fr; }
  .health-landing-safe { grid-template-columns: 38px minmax(0, 1fr); gap: 0 13px; padding: 20px; }
  .health-landing-safe::before { width: 38px; height: 38px; font-size: 1.1rem; }
  .health-chat-page { grid-template-columns: 1fr; min-height: 0; }
  .health-chat-history-toggle { position: fixed; z-index: 18; top: 86px; left: 14px; display: block; min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); padding: 0 13px; font-weight: 700; box-shadow: 0 8px 24px rgba(20,63,53,.12); }
  .health-chat-sidebar { position: fixed; z-index: 18; top: 72px; bottom: 0; left: 0; display: flex; width: min(84vw, 320px); padding: 70px 16px 18px; border: 0; box-shadow: 12px 0 32px rgba(20,63,53,.18); transform: translateX(-100%); transition: transform 180ms ease-out; }
  .health-chat-page.is-history-open .health-chat-sidebar { transform: translateX(0); }
  .health-chat-sidebar > p { display: none; }
  .health-chat-back { display: none; }
  .health-chat-new { text-align: center; }
  .health-chat-history { overflow-y: auto; }
  .health-chat-form > div:last-of-type { display: grid; grid-template-columns: 1fr auto; }
  .health-chat-form > div:last-of-type .health-chat-attach { grid-column: 1; }
  .health-chat-form > div:last-of-type > span { grid-column: 2; }
  .health-chat-form > div:last-of-type button { grid-column: 1 / -1; width: 100%; }
  .health-chat-main { min-height: calc(100vh - 108px); padding: 76px 20px 18px; }
  .health-chat-log { max-height: 48vh; }
  .health-chat-message { max-width: 92%; }
}

@media (max-width: 680px) {
  .health-chat-history-toggle { top: 78px; }
  .health-chat-sidebar { top: 64px; }
}
