/* PayorMap Phase 1 — institutional intelligence visual refresh
   Preview-only. Homepage-scoped: the application, dashboard and subpages are unchanged.
   Inspired by Rogo's editorial restraint, not a reproduction of Rogo's identity. */
:root {
  --p1-ink: #111a16;
  --p1-midnight: #06120e;
  --p1-emerald: #00b46b;
  --p1-mint: #8be8bc;
  --p1-paper: #f7f8f4;
  --p1-line: #dce4db;
}
html { scroll-padding-top: 86px; font-size: 100%; }
body.home-page { background: var(--p1-paper); color: var(--p1-ink); -webkit-font-smoothing: antialiased; }
.home-page .wrap { width: min(1280px, calc(100% - 80px)); }
.home-page .site-header { background: rgba(6, 18, 14, .96); border-bottom: 1px solid rgba(192,226,204,.12); }
.home-page .nav { height: 82px; }
.home-page .brand img { width: 160px; max-height: 43px; object-fit: contain; }
.home-page .nav-links { gap: 34px; font-size: .875rem; font-weight: 600; letter-spacing: .01em; }
.home-page .nav-links a:not(.nav-cta) { color: #f1f6f2; opacity: .78; transition: color .2s, opacity .2s; }
.home-page .nav-links a:not(.nav-cta):hover, .home-page .nav-links a.active:not(.nav-cta) { color: #fff; opacity: 1; }
.home-page .nav-cta { min-height: 42px; padding: 0 20px; border-radius: 6px; font-size: .875rem; }
.home-page a:focus-visible, .home-page button:focus-visible { outline: 3px solid #5ce2a2; outline-offset: 4px; }

/* Big, restrained editorial hero */
.home-page .hero.essence-hero.editorial-hero {
  min-height: unset;
  background: var(--p1-midnight);
  isolation: isolate;
  overflow: clip;
}
.home-page .hero.essence-hero.editorial-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 58% 41% at 50% 6%, rgba(17, 76, 48, .33), transparent 72%),
    linear-gradient(90deg, transparent 49.9%, rgba(190, 228, 206,.028) 50%, transparent 50.1%);
}
.home-page .hero.essence-hero.editorial-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 12, 8, .28) 100%);
}
.home-page .hero .hero-content {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 108px 0 80px; text-align: center;
}
.home-page .hero-kicker {
  background: transparent; border: 1px solid rgba(119, 221, 166, .26);
  border-radius: 100px; padding: 10px 17px;
  color: #b1eccb; font-size: .75rem; font-weight: 700; letter-spacing: .16em;
}
.home-page .hero h1 {
  max-width: 1170px; margin: 26px auto 24px;
  font-size: clamp(3.1rem, 6.6vw, 6.5rem);
  line-height: .99; letter-spacing: -.072em; font-weight: 600;
  text-wrap: balance;
}
.home-page .hero h1 .p1-line { display: block; }
.home-page .hero h1 .hero-highlight {
  color: #b5f1cd; font-family: Georgia, "Times New Roman", serif;
  font-style: italic; font-weight: 400; letter-spacing: -.065em;
}
.home-page .hero p {
  margin: 0 auto; max-width: 710px; color: #b7c8bf;
  font-size: clamp(1rem, 1.45vw, 1.25rem); line-height: 1.66; font-weight: 400;
}
.home-page .hero p .hero-outcome {
  color: #b5f1cd; font-weight: 600;
}
.home-page .hero-actions { justify-content: center; align-items: center; gap: 27px; margin-top: 31px; }
.home-page .btn-primary { background: #e8f7ed; color: #0d2317; border: 1px solid #e8f7ed; border-radius: 6px; min-height: 52px; padding: 0 27px; }
.home-page .btn-primary:hover { background: #fff; color: #0a2517; border-color: #fff; transform: translateY(-2px); }
.home-page .hero-text-link { color: #d7e7db; font-weight: 600; font-size: .91rem; border-bottom: 1px solid rgba(227,244,232,.28); padding-bottom: 4px; }
.home-page .hero-text-link:hover { color: #fff; border-color: #fff; }
.home-page .p1-hero-intelligence {
  display: block; position: relative; z-index: 1; text-align: left;
  width: min(1080px, 100%); margin: 76px auto 0;
  border: 1px solid rgba(165, 214, 177, .25); border-radius: 16px;
  background: linear-gradient(145deg, rgba(23, 46, 33, .95), rgba(8, 24, 17, .99) 65%);
  box-shadow: 0 28px 100px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.055);
  overflow: hidden;
}
.home-page .p1-canvas-header {
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  min-height: 49px; padding: 0 25px; border-bottom: 1px solid rgba(196,229,204,.1);
  color: #a5b8ad; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.home-page .p1-canvas-header strong { display: flex; align-items: center; gap: 8px; color: #c8efda; font-size: .75rem; }
.home-page .p1-live-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: #55dfa1; box-shadow: 0 0 0 5px rgba(85,223,161,.1); }
.home-page .p1-canvas-main { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.22fr) minmax(0,.92fr); align-items: center; min-height: 275px; }
.home-page .p1-source { padding: 30px 0 30px 33px; display: flex; flex-direction: column; gap: 12px; }
.home-page .p1-source-label, .home-page .p1-result-label { color: #9eb7a8; text-transform: uppercase; letter-spacing: .14em; font-size: .875rem; font-weight: 750; }
.home-page .p1-source-row {
  display: flex; gap: 11px; align-items: center; width: 100%; padding: 11px 13px;
  border: 1px solid rgba(192,230,202,.12); border-radius: 7px;
  color: #e5f3e9; background: rgba(255,255,255,.035); font-size: .875rem;
}
.home-page .p1-source-row b { display: inline-grid; place-items: center; width: 25px; height: 25px;
  border-radius: 5px; color: #a6f3c8; background: rgba(54,174,109,.13); font-size: .875rem; }
.home-page .p1-orbit { position: relative; display: grid; place-items: center; height: 245px; min-width: 0; }
.home-page .p1-orbit::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(12,154,82,.12) 0 20%, transparent 65%),
    repeating-radial-gradient(circle at center, transparent 0 35px, rgba(151,213,170,.15) 36px, transparent 37px);
  animation: p1-breathe 7s ease-in-out infinite;
}
.home-page .p1-orbit::after { content: ""; position: absolute; height: 1px; width: 85%; background: linear-gradient(90deg,transparent,rgba(124,219,161,.3),transparent); transform: rotate(-25deg); }
.home-page .p1-orbit-center {
  z-index: 2; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px;
  width: 124px; height: 124px; border: 1px solid rgba(123,234,166,.4);
  border-radius: 50%; background: radial-gradient(circle at 40% 40%, #214d34, #0d2419);
  box-shadow: 0 0 0 10px rgba(15,140,74,.065), 0 0 50px rgba(37,205,109,.12);
}
.home-page .p1-orbit-center strong { font-size: 1.1rem; font-weight: 700; letter-spacing: -.04em; color: #fff; }
.home-page .p1-orbit-center small { font-size: .75rem; color: #9ed4b6; letter-spacing: .11em; text-transform: uppercase; }
.home-page .p1-orbit-node { position: absolute; z-index: 3; width: 10px; height: 10px; border-radius: 50%; background: #a1fac5; border: 2px solid #0d2518; box-shadow: 0 0 13px rgba(134,236,172,.65); }
.home-page .p1-orbit-node.a { top: 16%; left: 19%; } .home-page .p1-orbit-node.b { bottom: 14%; left: 30%; }
.home-page .p1-orbit-node.c { top: 29%; right: 15%; } .home-page .p1-orbit-node.d { bottom: 21%; right: 20%; }
.home-page .p1-result {
  display: flex; flex-direction: column; gap: 7px; align-items: flex-start;
  border-left: 1px solid rgba(192,230,202,.1); padding: 34px 28px; min-height: 182px;
}
.home-page .p1-result strong { font-size: clamp(2.65rem,4.6vw,4.25rem); letter-spacing: -.075em; line-height: 1.05; color: #f3fff4; font-weight: 650; }
.home-page .p1-result small { color: #b1c8b8; font-size: .875rem; line-height: 1.5; }
.home-page .p1-result .p1-upside { display: inline-flex; color: #91e7ba; font-size: .875rem; font-weight: 650; margin-top: 11px; padding: 7px 10px; background: rgba(89,226,151,.085); border-radius: 5px; }
.home-page .p1-canvas-bottom { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 17px 20px;
  border-top: 1px solid rgba(196,229,204,.1); color: #a8c4b1; font-size: .875rem; letter-spacing: .035em; }
.home-page .p1-canvas-bottom span + span::before { content: "→"; margin-right: 24px; color: #67c391; }

/* Evidence strip: scale without marketing noise */
.home-page .metrics.essence-metrics { background: #f2f5ee; color: var(--p1-ink); border: none; }
.home-page .essence-metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 51px 0; }
.home-page .metric { text-align: left; padding: 0 38px; border-right: 1px solid #d7dfd7; }
.home-page .metric:first-child { padding-left: 0; }
.home-page .metric:last-child { padding-right: 0; }
.home-page .metric strong { font-size: clamp(2.5rem,4.4vw,4.25rem); line-height: 1.03; letter-spacing: -.075em; font-weight: 600; color: #0d2519; }
.home-page .metric span { display: block; margin-top: 9px; font-size: .875rem; line-height: 1.5; letter-spacing: .02em; color: #57675d; }

/* Immersive product walkthrough, preserving the existing tab-based demonstration */
.home-page .howworks-story { background: #fbfcfa; color: #111a16; padding: 122px 0 132px; }
.home-page .howworks-grid { display: flex; flex-direction: column; gap: 60px; align-items: center; }
.home-page .howworks-copy { max-width: 1000px; width: 100%; text-align: center; }
.home-page .eyebrow { color: #147a4a; letter-spacing: .13em; font-size: clamp(.86rem,.76rem + .25vw,.96rem); }
.home-page .howworks-copy h2, .home-page .contract-story-copy h2, .home-page .essence-section-head h2 {
  font-size: clamp(2.9rem,5.65vw,5.75rem); line-height: 1.05; font-weight: 600; letter-spacing: -.069em;
  max-width: 920px; margin: 19px auto 20px; text-wrap: balance;
}
.home-page .howworks-copy > p, .home-page .contract-story-copy > p {
  max-width: 720px; margin: 0 auto; font-size: 1.08rem; line-height: 1.7; color: #5d6c62;
}
.home-page .howworks-points, .home-page .contract-story-points {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px;
  text-align: left; margin: 39px 0 27px; max-width: 100%;
}
.home-page .howworks-points > div, .home-page .contract-story-points > div {
  min-height: 155px; border-top: 1px solid #d4ded4; padding: 18px 8px 6px 0;
}
.home-page .howworks-points strong, .home-page .contract-story-points strong {
  font-size: .98rem; font-weight: 650; letter-spacing: -.035em; color: #112319; 
}
.home-page .howworks-points small, .home-page .contract-story-points small { line-height: 1.6; color: #5c6c63; font-size: .875rem; }
.home-page .howworks-link, .home-page .contract-story-link { font-weight: 700; font-size: .875rem; color: #127547; }
.home-page .how-demo-shell, .home-page .contract-story .contract-demo-shell {
  width: min(1120px,100%); max-width: 1120px; min-width: 0;
  border: 1px solid #dfe7dd; border-radius: 15px; overflow: hidden;
  box-shadow: 0 28px 72px rgba(17,40,26,.09), 0 3px 14px rgba(17,40,26,.04);
  background: #fff;
}
.home-page .contract-demo-browser { background: #0e1e16; color: #dbece0; border-bottom: 1px solid rgba(255,255,255,.1); }
.home-page .contract-demo-browser b { color: #a9eac3; }
.home-page .contract-demo-tabs { background: #f5f8f3; border-bottom: 1px solid #e0e7de; }
.home-page .contract-demo-tab, .home-page .contract-demo-tabs button { white-space: nowrap; }
.home-page .contract-demo-tabs button.active { color: #0b7a44; }
.home-page .contract-demo-note { color: #626c66; }

/* The contracts product has its own generous, calm chapter */
.home-page .contract-story { background: #eef2eb; color: #111a16; padding: 122px 0 130px; }
.home-page .contract-story-grid { display: flex; flex-direction: column; align-items: center; gap: 57px; }
.home-page .contract-story-copy { max-width: 1010px; width: 100%; text-align: center; }
.home-page .contract-story-points { margin-top: 40px; }
.home-page .contract-story-points > div > span { color: #147a4a; }
.home-page .contract-story-points > div { border-top-color: #d4ded4; }

/* Signals, audience and conversion */
.home-page .payer-coverage { background: #101e17; color: #f8fbf8; padding: 94px 0; }
.home-page .payer-coverage .eyebrow { color: #a1ebc2; }
.home-page .payer-coverage h2 { color: #f4fbf6; letter-spacing: -.057em; font-weight: 600; }
.home-page .payer-coverage p, .home-page .payer-coverage small, .home-page .payer-coverage-more { color: #acbdb0; }
.home-page .payer-logo-strip { background: #fbfcfa; border: 1px solid rgba(227,235,225,.7); border-radius: 12px; padding: 26px 28px; margin: 38px 0 30px; }
.home-page .payer-coverage-facts { border-top: 1px solid rgba(210,232,214,.17); padding-top: 27px; }
.home-page .payer-coverage-facts strong { color: #f1fcf4; }
.home-page .payer-coverage-facts span { color: #adc1b2; }
.home-page .essence-audiences { padding: 122px 0; background: #fafbf8; }
.home-page .essence-section-head { max-width: 980px; }
.home-page .essence-audience-grid { gap: 20px; }
.home-page .essence-audience-card {
  padding: clamp(31px,4vw,61px); min-height: 340px;
  border: 1px solid #dfe6dd; border-radius: 12px; background: #f2f5ef;
  box-shadow: none; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.home-page .essence-audience-card:hover { transform: translateY(-4px); border-color: #b4cdbd; box-shadow: 0 20px 50px rgba(22,59,35,.075); }
.home-page .essence-audience-card h3 { font-size: clamp(1.8rem,2.9vw,3rem); line-height: 1.13; letter-spacing: -.05em; font-weight: 600; }
.home-page .essence-audience-card p { max-width: 410px; color: #5c6c60; }
.home-page .essence-assessment { background: #071910; color: #fff; padding: 88px 0; }
.home-page .essence-assessment h2 { color: #f8fff9; font-size: clamp(2rem,4.3vw,4.3rem); line-height: 1.09; font-weight: 600; letter-spacing: -.058em; }
.home-page .essence-assessment p { color: #b6c9ba; }
.home-page .essence-assessment .eyebrow { color: #86d9ac; }
.home-page .essence-assessment .btn-primary { background: #e8f7ed; color: #0a2115; }
.home-page footer { background: #07100c; }
.home-page footer a:hover { color: #a1ecc1; }
@keyframes p1-breathe { 0%,100% { opacity: .76; transform: scale(.985); } 50% { opacity: 1; transform: scale(1.02); } }

@media (max-width: 960px) {
  .home-page .wrap { width: min(100% - 48px, 1280px); }
  .home-page .nav-links { gap: 18px; }
  .home-page .hero .hero-content { padding: 88px 0 69px; }
  .home-page .p1-canvas-main { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); }
  .home-page .p1-orbit { display: none; }
  .home-page .p1-source { padding: 27px; }
  .home-page .p1-result { padding: 30px; }
  .home-page .metric { padding: 0 22px; }
  .home-page .howworks-story, .home-page .contract-story, .home-page .essence-audiences { padding: 84px 0; }
}
@media (max-width: 680px) {
  .home-page .wrap { width: min(100% - 36px, 1280px); }
  .home-page .nav { height: 68px; }
  .home-page .brand img { width: 144px; }
  .home-page .nav-links { gap: 8px; }
  .home-page .nav-links.open { padding: 20px; background: #0b1b12; border: 1px solid #284b37; }
  .home-page .hero .hero-content { padding: 72px 0 58px; }
  .home-page .hero h1 { font-size: clamp(2.54rem, 10.3vw, 4.1rem); letter-spacing: -.065em; margin: 23px auto 19px; line-height: 1.035; }
  .home-page .hero h1 .p1-line { display: block; }
  .home-page .hero p { font-size: 1rem; }
  .home-page .hero-actions { flex-wrap: wrap; gap: 18px; margin-top: 28px; }
  .home-page .p1-hero-intelligence { margin-top: 48px; border-radius: 10px; }
  .home-page .p1-canvas-header {
    align-items: center; gap: 10px; min-height: 0;
    padding: 12px 14px; font-size: .6875rem; letter-spacing: .04em; line-height: 1.35;
  }
  .home-page .p1-canvas-header > span { flex: 1 1 auto; min-width: 0; }
  .home-page .p1-canvas-header strong {
    flex: 0 0 auto; white-space: nowrap; font-size: .6875rem; letter-spacing: .02em;
  }
  .home-page .p1-source-label, .home-page .p1-result-label { font-size: .6875rem; letter-spacing: .08em; }
  .home-page .p1-canvas-main { grid-template-columns: 1fr; }
  .home-page .p1-source { padding: 20px; gap: 8px; }
  .home-page .p1-source-row { padding: 8px 11px; }
  .home-page .p1-result { border-top: 1px solid rgba(192,230,202,.1); border-left: none; padding: 22px; min-height: unset; }
  .home-page .p1-result strong { font-size: 2.7rem; }
  .home-page .p1-canvas-bottom { flex-wrap: wrap; gap: 8px 12px; padding: 14px 16px; font-size: .75rem; }
  .home-page .p1-canvas-bottom span + span::before { margin-right: 9px; }
  .home-page .essence-metric-grid { grid-template-columns: 1fr; padding: 22px 0; }
  .home-page .metric, .home-page .metric:first-child, .home-page .metric:last-child { border-right: none; border-bottom: 1px solid #d9e2da; padding: 19px 3px; }
  .home-page .metric:last-child { border-bottom: none; }
  .home-page .metric strong { font-size: 2.75rem; }
  .home-page .howworks-grid, .home-page .contract-story-grid { gap: 34px; }
  .home-page .howworks-copy h2, .home-page .contract-story-copy h2, .home-page .essence-section-head h2 { font-size: clamp(2.4rem, 8.5vw, 3.45rem); }
  .home-page .howworks-points, .home-page .contract-story-points { grid-template-columns: 1fr; gap: 0; margin: 30px 0 24px; }
  .home-page .howworks-points > div, .home-page .contract-story-points > div { min-height: unset; padding: 17px 0; }
  .home-page .how-demo-shell, .home-page .contract-story .contract-demo-shell { width: 100%; border-radius: 9px; }
  .home-page .how-demo-tabs, .home-page .contract-demo-tabs { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .home-page .payer-coverage { padding: 68px 0; }
  .home-page .payer-logo-strip { padding: 18px; }
  .home-page .essence-audience-card { min-height: 260px; }
  .home-page .essence-assessment { padding: 70px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .p1-orbit::before { animation: none !important; }
  .home-page .essence-audience-card, .home-page .btn-primary { transition: none !important; }
  .home-page .essence-audience-card:hover, .home-page .btn-primary:hover { transform: none !important; }
}


/* Coverage proof: dark-on-light card contrast.
   Supersedes the inherited white-on-dark coverage text rules. */
.home-page .payer-coverage .payer-coverage-facts > div {
  background: #f7faf6;
  border-color: #d2e0d4;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .035);
  gap: 7px;
  padding: 20px 23px;
}
.home-page .payer-coverage .payer-coverage-facts > div strong {
  color: #143923;
  font-size: clamp(1.08rem, 1.3vw, 1.32rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.25;
}
.home-page .payer-coverage .payer-coverage-facts > div span {
  color: #496354;
  font-size: .89rem;
  font-weight: 500;
  line-height: 1.45;
}
@media (max-width: 620px) {
  .home-page .payer-coverage .payer-coverage-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 17px 19px;
  }
}
