:root {
  --bg: #fbfaf6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #18242d;
  --muted: #5d6870;
  --rule: #ded9cf;
  --accent: #2d7359;
  --accent-soft: #e4f0ea;
  --accent-dark: #17251f;
  --sky: #dcecf4;
  --amber: #f6d985;
  --coral: #d96a55;
  --note-bg: #202b34;
  --note-text: #f3f0e8;
  --shadow: 0 12px 28px rgba(29, 42, 52, 0.05);
  --section-y: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Aptos", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: var(--section-y) 0;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 4px;
}

.nav a:hover,
.text-link:hover,
.brand:hover {
  color: var(--text);
}

.nav a.nav-active {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  text-decoration-color: var(--text);
}

.site-main {
  display: block;
}

.home-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(228, 240, 234, 0.72) 0%, rgba(251, 250, 246, 0) 42%),
    var(--bg);
}

.home-main {
  min-height: calc(100vh - 77px);
}

.home-hero {
  padding: clamp(48px, 7vh, 76px) 0 clamp(34px, 5vh, 54px);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(460px, 0.72fr) minmax(480px, 0.92fr);
  gap: clamp(24px, 3vw, 46px);
  align-items: center;
}

.home-hero-title h1 {
  margin: 0;
  max-width: 650px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.85rem, 4.55vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--text);
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-top: 0;
}

.home-hero-copy p {
  margin: 0;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.65;
  color: var(--muted);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-button:hover {
  background: #263931;
}

.session-workflow {
  padding: clamp(32px, 5vh, 50px) 0 clamp(34px, 6vh, 54px);
  border-top: 1px solid var(--rule);
  background:
    linear-gradient(90deg, rgba(220, 236, 244, 0.52), rgba(228, 240, 234, 0.36) 50%, rgba(246, 217, 133, 0.28));
}

.workflow-heading {
  margin-bottom: 28px;
  text-align: center;
}

.workflow-heading h2 {
  margin: 0 auto;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 500;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(24, 36, 45, 0.2);
  border-bottom: 1px solid rgba(24, 36, 45, 0.2);
}

.workflow-step {
  min-height: 176px;
  padding: 24px 28px 24px 0;
}

.workflow-step + .workflow-step {
  border-left: 1px solid rgba(24, 36, 45, 0.16);
  padding-left: 28px;
}

.step-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workflow-step h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 650;
}

.workflow-step p:last-child {
  margin: 14px 0 0;
  max-width: 330px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.demo-page {
  min-height: calc(100vh - 77px);
}

.demo-page .section {
  padding-top: clamp(48px, 8vh, 84px);
}

.demo-shell {
  max-width: 820px;
}

.demo-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 500;
  text-align: center;
}

.demo-copy p {
  margin: 18px auto 28px;
  max-width: 590px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
}

.demo-copy .demo-note {
  border-left: 0;
  padding-left: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #41505a;
}

.demo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-wide,
.form-submit,
.form-status {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #cfd7d3;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  padding: 11px 12px;
}

.form-field textarea {
  min-height: 126px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 115, 89, 0.14);
  outline: 0;
}

.form-submit {
  justify-self: start;
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status-success {
  color: var(--accent);
}

.form-status-error {
  color: #b9432f;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.intro {
  padding-top: 84px;
  padding-bottom: 84px;
}

.intro-inner {
  max-width: 860px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7b8790;
}

.intro-title,
.lead,
.lead-small,
.studio-note p,
.note-card p {
  margin: 0;
}

.intro-title {
  margin-top: 18px;
  max-width: 900px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--text);
}

.split-section {
  border-top: 1px solid var(--rule);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}

.lead {
  max-width: 780px;
  font-size: 20px;
  line-height: 1.8;
  color: var(--muted);
}

.cards-section {
  border-top: 1px solid var(--rule);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.note-card {
  border: 1px solid var(--rule);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.info-card {
  min-height: 220px;
  padding: 24px 22px;
}

.info-card p:last-child {
  margin-top: 16px;
  color: var(--muted);
}

.studio-note {
  max-width: 760px;
  border-radius: 30px;
  border: 1px solid rgba(32, 43, 52, 0.15);
  background: var(--note-bg);
  padding: 28px 30px;
}

.studio-note p {
  font-size: 20px;
  line-height: 1.8;
  color: var(--note-text);
}

.section-label-with-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.small-copy {
  margin: 12px 0 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.text-link {
  text-decoration: none;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.note-card {
  display: block;
  padding: 28px;
  text-decoration: none;
}

.note-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--text);
}

.note-card p {
  margin-top: 16px;
  color: var(--muted);
}

.portal-section {
  border-top: 1px solid var(--rule);
}

.portal-shell {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--rule);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.72);
  padding: 34px;
}

.portal-copy {
  max-width: 760px;
}

.lead-small {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.portal-button:hover {
  background: #31424f;
}

.desktop-only {
  display: inline;
}

.note-page .intro {
  padding-top: 62px;
  padding-bottom: 18px;
}

.note-list-page {
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}

.note-article {
  max-width: 820px;
}

.note-shell {
  max-width: 980px;
}

.notes-title {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--text);
}

.notes-subtitle {
  margin: 10px 0 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}

.note-row {
  display: block;
  border-top: 1px solid var(--rule);
  padding: 24px 0 20px;
}

.note-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.note-date {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: #7b8790;
}

.note-row h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--text);
}

.note-excerpt {
  margin: 14px 0 0;
  max-width: 920px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}

.note-read-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.note-read-more:hover {
  color: var(--accent-dark);
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
}

.back-link:hover {
  color: var(--text);
}

.note-article h1 {
  margin: 0 0 30px;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.note-article h2 {
  margin: 48px 0 18px;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--text);
}

.note-article p {
  margin: 0 0 22px;
  font-size: 20px;
  line-height: 1.9;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
    gap: 46px;
  }

  .home-hero-title h1 {
    font-size: clamp(2.7rem, 5.25vw, 4.2rem);
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --section-y: 56px;
  }

  .header-inner,
  .portal-shell,
  .section-label-with-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-main,
  .demo-page {
    min-height: auto;
  }

  .home-hero {
    padding-top: 50px;
  }

  .home-hero-grid,
  .workflow-grid,
  .demo-form {
    grid-template-columns: 1fr;
  }

  .home-hero-title h1 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .home-hero-copy {
    padding-top: 0;
  }

  .home-hero-copy p {
    font-size: 18px;
    line-height: 1.6;
  }

  .workflow-grid {
    border-top: 1px solid rgba(24, 36, 45, 0.2);
  }

  .workflow-step {
    min-height: auto;
    padding: 24px 0;
  }

  .workflow-step + .workflow-step {
    border-left: 0;
    border-top: 1px solid rgba(24, 36, 45, 0.16);
    padding-left: 0;
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro {
    padding-top: 60px;
    padding-bottom: 60px;
  }

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

  .desktop-only {
    display: none;
  }

  .lead,
  .studio-note p,
  .lead-small,
  .note-article p {
    font-size: 18px;
    line-height: 1.8;
  }

  .notes-subtitle {
    font-size: 14px;
  }

  .note-row h2 {
    font-size: 28px;
  }

  .note-excerpt {
    font-size: 17px;
    line-height: 1.7;
  }
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: rgba(251, 250, 246, 0.9);
}

.footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner a,
.legal-content a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

.legal-page {
  padding: clamp(48px, 7vh, 78px) 0;
}

.legal-content {
  max-width: 840px;
}

.legal-content h1,
.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--text);
}

.legal-content h1 {
  margin: 0 0 8px;
  font-size: clamp(2.45rem, 5vw, 4rem);
  line-height: 1.04;
}

.legal-content h2 {
  margin: 42px 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.15;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-effective {
  margin: 0 0 30px;
  color: var(--muted);
}

.legal-callout {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 600px) {
  .footer-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

/* Scaled Metabolic homepage, local redesign candidate, 2026-09-28 */
.home-page {
  --home-ink: #14231d;
  --home-forest: #173d30;
  --home-green: #2d7359;
  --home-mint: #dcece3;
  --home-cream: #fbfaf6;
  background: var(--home-cream);
  color: var(--home-ink);
}

.home-page .container { max-width: 1240px; }

.home-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom-color: rgba(20, 35, 29, 0.12);
  background: rgba(251, 250, 246, 0.9);
}

.home-site-header .header-inner { min-height: 72px; }
.home-nav { gap: 24px; }
.home-nav .nav-portal {
  border: 1px solid rgba(20, 35, 29, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--home-ink);
}
.home-nav .nav-portal:hover { border-color: var(--home-green); background: rgba(228, 240, 234, 0.72); }
.home-main { min-height: 0; overflow: clip; }

.home-page .home-hero {
  position: relative;
  min-height: min(750px, calc(100vh - 72px));
  padding: clamp(64px, 8vh, 92px) 0 clamp(76px, 9vh, 104px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 79% 46%, rgba(220, 236, 244, 0.78), transparent 27%),
    radial-gradient(circle at 75% 48%, rgba(228, 240, 234, 0.9), transparent 44%),
    linear-gradient(180deg, rgba(228, 240, 234, 0.72), rgba(251, 250, 246, 0) 58%);
}

.home-page .home-hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 35, 29, 0.2), transparent);
}

.home-page .home-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  gap: clamp(52px, 7vw, 108px);
  align-items: center;
}

.home-page .home-hero-copy { align-self: center; gap: 0; padding: 0 0 clamp(4px, 1.5vh, 18px); }
.home-page .home-hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.15rem, 4.5vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  text-wrap: balance;
}

.home-page .home-hero-copy .hero-lead {
  margin: 34px 0 0;
  max-width: 660px;
  color: #48564f;
  font-size: clamp(1.05rem, 1.35vw, 1.16rem);
  line-height: 1.68;
}

.home-page .primary-button {
  min-height: 50px;
  background: var(--home-forest);
  padding: 13px 22px;
  transition: transform 180ms ease, background 180ms ease;
}
.home-page .primary-button:hover { background: #23513f; transform: translateY(-1px); }
.care-flow-visual {
  position: relative;
  width: min(100%, 560px);
  height: 510px;
  justify-self: end;
  isolation: isolate;
  transform: translateY(-42px);
}

.care-flow-visual::before {
  content: '';
  position: absolute;
  inset: 7% 0 0 5%;
  border-radius: 48% 52% 44% 56%;
  background: radial-gradient(circle at 58% 43%, rgba(255,255,255,.92), rgba(255,255,255,.26) 56%, transparent 72%);
  filter: blur(1px);
  z-index: -2;
}

.flow-path { position: absolute; inset: 18px 0 0; width: 100%; height: calc(100% - 18px); overflow: visible; z-index: -1; }
.flow-path-line { fill: none; stroke: rgba(45,115,89,.38); stroke-width: 2; stroke-dasharray: 7 8; }
.flow-path marker path { fill: #2d7359; }
.flow-pulse { fill: #6b9eb2; stroke: rgba(255,255,255,.9); stroke-width: 6; }

.flow-panel {
  position: absolute;
  border: 1px solid rgba(20,35,29,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 20px 52px rgba(24,55,43,.11);
  backdrop-filter: blur(12px);
  padding: 16px;
}

.flow-member-panel { top: 60px; left: 0; width: 232px; }
.flow-review-panel { top: 135px; right: 0; width: 324px; }
.flow-action-panel { right: 28px; bottom: 0; width: 286px; }
.flow-panel-head { display: flex; align-items: center; gap: 10px; }
.flow-panel-head > div { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; }
.flow-panel-head small { color: #74817a; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.flow-panel-head strong { margin-top: 3px; color: #20352c; font-size: 12px; line-height: 1.2; }
.flow-step { width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; display: grid; place-items: center; background: #e1eee7; color: #2b6951; font-size: 8px; font-weight: 800; }
.flow-status, .flow-window { margin-left: auto; border-radius: 999px; background: #e5f0ea; color: #2d7359; padding: 5px 8px; font-size: 8px; font-weight: 750; }
.flow-signal-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.flow-signal-grid span { border: 1px solid #e3e8e5; border-radius: 7px; display: flex; align-items: center; gap: 6px; padding: 7px 8px; color: #546159; font-size: 9px; }
.flow-signal-grid i { width: 7px; height: 7px; border-radius: 50%; }
.signal-glucose { background: #2d7359; } .signal-food { background: #d96a55; } .signal-activity { background: #5b8dac; } .signal-sleep { background: #7a6aa8; }
.flow-chart { width: 100%; height: 90px; margin-top: 14px; overflow: visible; }
.flow-chart-area { fill: rgba(45,115,89,.1); }
.flow-chart-line { fill: none; stroke: #2d7359; stroke-width: 3; stroke-linecap: round; }
.flow-event { fill: #fff; stroke-width: 3; }
.food-event { stroke: #d96a55; } .activity-event { stroke: #5b8dac; }
.flow-pattern { border-left: 2px solid #2d7359; padding-left: 10px; }
.flow-pattern span { color: #2d7359; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.flow-pattern p { margin: 3px 0 0; color: #56635c; font-size: 9px; line-height: 1.45; }
.flow-action-list { margin-top: 13px; display: grid; gap: 7px; }
.flow-action-list span { display: flex; align-items: center; gap: 7px; color: #4f5f57; font-size: 9px; }
.flow-action-list i { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: #e2efe8; color: #2d7359; font-size: 8px; font-style: normal; font-weight: 900; }

.home-section { padding: clamp(64px, 6vw, 88px) 0; }
.section-kicker { margin: 0 0 18px; color: var(--home-green); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.home-section h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.3rem,3.3vw,3.65rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 500; text-wrap: balance; }

.problem-section { border-bottom: 1px solid rgba(20,35,29,.14); background: var(--home-cream); }
.problem-grid { display: grid; grid-template-columns: minmax(0,.98fr) minmax(400px,1.02fr); gap: clamp(44px,5vw,72px); align-items: center; }
.problem-copy { border-left: 1px solid rgba(20,35,29,.2); padding-left: clamp(28px,4vw,52px); }
.problem-copy p { margin: 0; color: #4f5d56; font-size: 18px; line-height: 1.78; }
.problem-copy p + p { margin-top: 20px; color: var(--home-ink); font-weight: 620; }

.product-section { padding-top: clamp(56px, 5vw, 72px); background: linear-gradient(180deg, rgba(220,236,244,.32), transparent 24%), #f4f0e8; }
.product-kicker { margin-bottom: 28px; }
.section-heading { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.7fr); gap: 56px; align-items: end; margin-bottom: 42px; }
.section-heading > p { margin: 0 0 5px; color: #546159; font-size: 17px; line-height: 1.75; }
.review-story { border: 1px solid rgba(20,35,29,.16); border-radius: 24px; background: #fff; box-shadow: 0 34px 80px rgba(29,58,46,.14); overflow: hidden; }
.review-story-topbar { min-height: 74px; border-bottom: 1px solid #e5e8e5; padding: 0 24px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.review-story-member, .review-story-member > span:last-child { display: flex; align-items: center; }
.review-story-member { gap: 9px; }
.review-story-member > span:last-child { align-items: flex-start; flex-direction: column; }
.review-story-member small { color: #78827d; font-size: 9px; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
.review-story-member strong { margin-top: 2px; font-size: 12px; line-height: 1.25; }
.review-story-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--home-mint); color: var(--home-forest); font-size: 10px; font-weight: 800; }
.review-story-window { border: 1px solid #d8e2dc; border-radius: 999px; background: #f7faf8; color: #315e4d; padding: 7px 11px; font-size: 10px; font-weight: 750; }
.review-story-steps { border-bottom: 1px solid #e5e8e5; display: grid; grid-template-columns: 1.2fr .9fr 1.2fr .95fr; background: #f5f8f6; }
.review-story-steps span { position: relative; padding: 13px 18px; color: #5a6b62; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.review-story-steps span + span { border-left: 1px solid #e0e6e2; }
.review-story-grid { display: grid; grid-template-columns: 1.2fr .9fr 1.2fr .95fr; }
.story-card { min-width: 0; min-height: 530px; padding: 24px 20px; }
.story-card + .story-card { border-left: 1px solid #e4e8e5; }
.analytics-intro { margin: 0; color: #405149; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.45; }
.agp-chart { width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.analytics-grid line, .signal-grid line { stroke: #e4e9e6; stroke-width: 1; stroke-dasharray: 3 3; }
.analytics-axis-labels { fill: #627169; font-size: 9px; }
.agp-axis-title { fill: #4d5e55; font-size: 8px; font-weight: 700; }
.agp-target { fill: #eef2df; opacity: .86; }
.agp-outer-band { fill: #e2f0e9; }
.agp-inner-band { fill: #b9ddca; }
.agp-median { fill: none; stroke: var(--home-green); stroke-width: 4; stroke-linecap: round; }
.agp-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; color: #617067; font-size: 8px; line-height: 1.2; }
.agp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.agp-legend i { width: 18px; height: 7px; border-radius: 2px; display: inline-block; }
.agp-legend .median-key { height: 2px; background: var(--home-green); }
.agp-legend .inner-key { background: #b9ddca; }
.agp-legend .outer-key { background: #e2f0e9; }
.agp-legend .target-key { border: 1px solid #d7ddc4; background: #eef2df; }
.agp-metrics { margin-top: 19px; border-top: 1px solid #e5e9e6; display: grid; grid-template-columns: .75fr 1.25fr; }
.agp-metrics span { padding-top: 16px; }
.agp-metrics span + span { border-left: 1px solid #e1e6e3; padding-left: 18px; }
.agp-metrics small, .agp-metrics strong { display: block; }
.agp-metrics small { color: #64736b; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.agp-metrics strong { margin-top: 8px; color: #172d24; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; line-height: 1; font-weight: 500; }

.analytics-notes { display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); }
.analytics-note { border-bottom: 1px solid #e4e9e6; display: grid; grid-template-columns: 9px 1fr; gap: 12px; align-content: center; padding: 20px 0; }
.analytics-note:first-child { padding-top: 0; }
.analytics-note > i { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; }
.note-green { background: #219466; }
.note-coral { background: #ed604c; }
.note-lavender { background: #7559b0; }
.analytics-note h3 { margin: 0; color: #1e352b; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.28; font-weight: 500; }
.analytics-note p { margin: 7px 0 0; color: #64736b; font-size: 10px; line-height: 1.55; }

.signal-card { padding: 18px 16px; }
.signal-selectors { display: flex; flex-wrap: wrap; gap: 6px; }
.signal-selectors span { border: 1px solid #dfe6e2; border-radius: 999px; background: #fff; color: #52645b; padding: 6px 8px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.signal-selectors .is-selected { border-color: #284f40; background: #284f40; color: #fff; }
.signal-chart-shell { position: relative; margin-top: 17px; }
.signal-track-title { margin: 0; color: #1e342a; font-size: 11px; font-weight: 800; line-height: 1.25; }
.signal-track-title small { display: block; margin-top: 2px; color: #6b7871; font-size: 8px; font-weight: 500; }
.signal-tooltip { position: absolute; top: -4px; right: 4px; z-index: 2; width: 148px; border: 1px solid #dde5e0; border-radius: 8px; display: grid; gap: 4px; background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(20,35,29,.12); padding: 9px 10px; color: #536159; font-size: 8px; }
.signal-tooltip strong { color: #263b31; font-size: 9px; }
.signal-tooltip span { display: flex; align-items: center; gap: 5px; }
.signal-tooltip i { width: 7px; height: 7px; border-radius: 50%; }
.tooltip-glucose { background: #24714f; }
.tooltip-sleep { background: #806ab1; }
.signal-glucose-chart, .signal-sleep-chart { width: 100%; height: auto; display: block; overflow: visible; }
.signal-glucose-chart { margin-top: 6px; }
.signal-target { fill: #eaf2e9; }
.signal-selection { fill: #f0edf8; opacity: .82; }
.signal-ranges path { fill: none; stroke: #78a991; stroke-width: 2; stroke-linecap: round; }
.signal-glucose-line { fill: none; stroke: #24714f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.signal-points circle { fill: #fff; stroke: #24714f; stroke-width: 2.5; }
.signal-points .selected-point { fill: #24714f; stroke: #fff; stroke-width: 3; }
.signal-target-label { fill: #3d785f; font-size: 8px; font-weight: 700; }
.sleep-track-title { margin-top: -2px; }
.signal-sleep-chart { margin-top: 5px; }
.sleep-bars rect { fill: #c4b9df; }
.sleep-bars .selected-bar { fill: #806ab1; }
.sleep-selected-point { fill: #806ab1; stroke: #fff; stroke-width: 3; }
.signal-coverage { margin: 7px 0 0; color: #6b7971; font-size: 8px; }
.connected-notes { background: #fbfcfb; }

.pillars-section { border-top: 1px solid rgba(20,35,29,.12); border-bottom: 1px solid rgba(20,35,29,.14); background: var(--home-cream); }
.pillars-heading { max-width: 920px; grid-template-columns: 1fr; }
.pillars-grid { border-top: 1px solid rgba(20,35,29,.22); border-bottom: 1px solid rgba(20,35,29,.22); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.pillars-grid article { min-height: 260px; padding: 28px 30px 30px 0; }
.pillars-grid article + article { border-left: 1px solid rgba(20,35,29,.17); padding-left: 30px; }
.pillars-grid article > span { color: var(--home-green); font-family: Georgia, 'Times New Roman', serif; font-size: 13px; }
.pillars-grid h3 { margin: 40px 0 14px; color: #253a30; font-family: Georgia, 'Times New Roman', serif; font-size: 25px; line-height: 1.16; font-weight: 500; }
.pillars-grid p { margin: 0; color: #5b6761; font-size: 14px; line-height: 1.72; }

.audience-section { background: radial-gradient(circle at 10% 30%, rgba(220,236,244,.55), transparent 34%), #e8efe9; }
.audience-heading { display: block; margin-bottom: 42px; }
.audience-heading > div { width: 100%; }
.audience-heading h2 { max-width: none; }
.audience-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.audience-grid article { min-height: 310px; border: 1px solid rgba(20,35,29,.16); border-radius: 20px; background: rgba(255,255,255,.62); padding: clamp(28px,4vw,44px); }
.audience-card-head { min-height: 88px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.audience-label { margin: 0; padding-top: 4px; color: var(--home-green); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.audience-illustration { width: clamp(128px,11vw,158px); height: 96px; flex: 0 0 auto; margin-top: -12px; display: block; object-fit: contain; }
.audience-grid h3 { margin: 18px 0 16px; max-width: 430px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.75rem,2.4vw,2.4rem); line-height: 1.12; font-weight: 500; }
.audience-grid article > p:last-child { margin: 0; max-width: 500px; color: #536159; font-size: 15px; line-height: 1.75; }

.home-cta { padding-top: 0; background: var(--home-cream); }
.cta-shell { border-radius: 24px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.65fr); gap: 70px; align-items: center; background: radial-gradient(circle at 92% 10%, rgba(141,185,164,.2), transparent 35%), #172a22; color: #f8f5ed; padding: clamp(38px,6vw,72px); }
.home-cta .section-kicker { color: #9cc9b3; }
.home-cta h2 { font-size: clamp(2.1rem,3.1vw,3.35rem); }
.cta-copy p { margin: 0 0 24px; color: #c8d2cd; font-size: 16px; line-height: 1.75; }
.home-page .light-button { background: #f4f1e8; color: #173329; }
.home-page .light-button:hover { background: #fff; }

.js .reveal-section { transform: translateY(14px); transition: transform 500ms ease; }
.js .reveal-section.is-visible { transform: translateY(0); }

@media (prefers-reduced-motion: no-preference) {
  .flow-path-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: flow-draw 1.5s 250ms ease forwards; }
  .flow-pulse-one { animation: flow-pulse 2.8s ease-in-out infinite; }
  .flow-pulse-two { animation: flow-pulse 2.8s 1.1s ease-in-out infinite; }
  .flow-chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: chart-draw 1.3s 550ms ease forwards; }
  .agp-median, .signal-glucose-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: chart-draw 1.6s 450ms ease forwards; }
}
@keyframes flow-draw { to { stroke-dashoffset: 0; } }
@keyframes flow-pulse { 0%,100% { opacity: .35; r: 4px; } 50% { opacity: 1; r: 6px; } }
@keyframes chart-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 1120px) {
  .home-page .home-hero-grid { grid-template-columns: minmax(0,1fr) minmax(390px,.78fr); gap: 50px; }
  .home-page .home-hero-copy h1 { font-size: clamp(3rem,5vw,4.4rem); }
  .care-flow-visual { width: 440px; }
}

@media (min-width: 1121px) {
  .audience-heading h2 { white-space: nowrap; font-size: clamp(2.3rem,3.05vw,3.45rem); }
}

@media (max-width: 920px) {
  .home-page .home-hero { min-height: auto; }
  .home-page .home-hero-grid, .problem-grid, .section-heading, .cta-shell { grid-template-columns: 1fr; }
  .home-page .home-hero-grid { gap: 65px; }
  .home-page .home-hero-copy h1 { max-width: 760px; }
  .care-flow-visual { width: min(100%,560px); justify-self: center; transform: none; }
  .problem-grid, .section-heading, .cta-shell { gap: 38px; }
  .problem-copy { border-top: 1px solid rgba(20,35,29,.2); border-left: 0; padding: 30px 0 0; }
  .review-story-steps, .review-story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .review-story-steps { display: none; }
  .story-card:nth-child(3) { border-top: 1px solid #e4e8e5; border-left: 0; }
  .story-card:nth-child(4) { border-top: 1px solid #e4e8e5; }
  .story-card { min-height: 520px; }
}

@media (max-width: 700px) {
  .home-page .container { padding-right: 20px; padding-left: 20px; }
  .home-site-header .header-inner { min-height: 64px; flex-direction: row; align-items: center; }
  .home-site-header .brand { width: 132px; flex: 0 0 132px; line-height: 1.25; }
  .home-nav { gap: 8px; }
  .home-nav a { font-size: 11px; }
  .home-nav .nav-portal { padding: 6px 8px; font-size: 11px; }
  .home-page .home-hero { padding: 64px 0 78px; }
  .home-page .home-hero-copy h1 { font-size: clamp(2.65rem,12vw,3.3rem); line-height: 1.03; }
  .home-page .home-hero-copy .hero-lead { margin-top: 24px; font-size: 17px; line-height: 1.65; }
  .care-flow-visual { width: 100%; height: auto; display: grid; gap: 12px; }
  .care-flow-visual::before, .flow-path { display: none; }
  .flow-panel { position: relative; inset: auto; width: 100%; }
  .flow-review-panel { order: 2; }
  .flow-action-panel { order: 3; }
  .flow-chart { height: auto; }
  .home-section { padding: 60px 0; }
  .home-section h2 { font-size: clamp(2.15rem,9.5vw,2.85rem); line-height: 1.1; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-grid article { min-height: 290px; }
  .audience-card-head { min-height: 78px; gap: 16px; }
  .audience-illustration { width: 112px; height: 72px; }
  .audience-grid h3 { margin-top: 18px; }
  .cta-shell { text-align: left; }
  .review-story { border-radius: 16px; }
  .review-story-topbar { padding: 15px; grid-template-columns: 1fr auto; gap: 12px; }
  .review-story-grid, .pillars-grid { grid-template-columns: 1fr; }
  .story-card { min-height: auto; padding: 24px 20px; }
  .story-card + .story-card, .story-card:nth-child(3), .story-card:nth-child(4) { border-top: 1px solid #e4e8e5; border-left: 0; }
  .analytics-notes { min-height: 0; }
  .signal-tooltip { position: static; width: 100%; margin-bottom: 14px; }
  .pillars-grid article, .pillars-grid article + article { min-height: auto; border-top: 1px solid rgba(20,35,29,.17); border-left: 0; padding: 28px 0; }
  .pillars-grid article:first-child { border-top: 0; }
  .pillars-grid h3 { margin-top: 36px; }
  .home-cta { padding-bottom: 76px; }
  .cta-shell { border-radius: 18px; padding: 34px 26px; }
}

@media (max-width: 430px) {
  .audience-card-head { gap: 10px; }
  .audience-illustration { width: 92px; height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal-section { opacity: 1; transform: none; transition: none; }
  .flow-path-line, .flow-pulse, .flow-chart-line, .agp-median, .signal-glucose-line { animation: none; }
}
