/* Ensemble CIN — site stylesheet */

@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-Variable.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("/assets/fonts/PTSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Museo"; src: url("/assets/fonts/Museo-500.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --teal-50: #ebfbf7;
  --teal-600: #008375;
  --teal-700: #005e50;
  --blue-600: #00698f;
  --blue-700: #004869;
  --blue-900: #012333;
  --gray-25: #fbfcfc;
  --gray-50: #f5f7f7;
  --gray-200: #dfe3e5;
  --gray-300: #c7cdd0;
  --gray-400: #a6abaf;
  --gray-600: #6d7276;
  --gray-700: #53585c;
  --gray-800: #3a3e42;
  --gradient: linear-gradient(135deg, var(--blue-600) 0%, var(--teal-600) 100%);
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-display: "Museo", "Montserrat", system-ui, sans-serif;
  --font-serif: "PT Serif", Georgia, serif;
  --content-max: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --radius-control: 6px;
  --radius-card: 10px;
  --shadow-xs: 0 1px 2px rgba(1, 35, 51, .06);
  --shadow-sm: 0 1px 3px rgba(1, 35, 51, .08), 0 1px 2px rgba(1, 35, 51, .04);
  --shadow-inset: inset 0 1px 1px rgba(1, 35, 51, .06);
  --focus-ring: 0 0 0 3px rgba(0, 105, 143, .32);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 16px/1.65 var(--font-sans); color: var(--gray-800); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue-600); }
a:hover { color: var(--teal-700); }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; background: var(--blue-700); color: #fff; border-radius: var(--radius-control); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
.icon { flex: none; }

/* ---------- Type ---------- */
.eyebrow { font: 600 11px/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-700); }
.display { font: 500 clamp(44px, 9vw, 120px)/.98 var(--font-display); letter-spacing: -.03em; color: var(--blue-700); text-wrap: balance; }
.display-home { font-size: clamp(42px, 8.2vw, 108px); line-height: 1; }
.display-md { font-size: clamp(40px, 7.4vw, 98px); line-height: 1; }
.accent { color: var(--teal-600); }
.h2 { font: 500 clamp(30px, 4.2vw, 52px)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--blue-700); text-wrap: balance; }
.h2-lg { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.025em; }
.h3 { font: 600 19px/1.35 var(--font-sans); color: var(--blue-700); text-wrap: balance; }
.label-display { font: 500 28px/1 var(--font-display); color: var(--teal-600); }
.lead { font-size: 18px; line-height: 1.7; color: var(--gray-700); max-width: 58ch; text-wrap: pretty; }
.subhead { font: 500 clamp(22px, 2.4vw, 28px)/1.35 var(--font-display); letter-spacing: -.01em; color: var(--gray-700); max-width: 30ch; text-wrap: balance; }
.serif-line { font: italic 400 18px/1.55 var(--font-serif); color: var(--blue-700); text-wrap: balance; }
.serif-lg { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.5; max-width: 40ch; }
.serif-xl { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; max-width: 24ch; }
.statement { font: 500 clamp(23px, 3vw, 34px)/1.35 var(--font-display); letter-spacing: -.015em; color: var(--blue-700); max-width: 34ch; text-wrap: pretty; }
.body-xl { font-size: clamp(18px, 2vw, 22px); line-height: 1.7; color: var(--gray-800); max-width: 46ch; text-wrap: pretty; }
p { color: var(--gray-700); text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.section { padding: var(--section-y) 0; }
.section-roomy { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: var(--gray-50); }
.stack-sm { display: grid; gap: 14px; align-content: start; }
.stack-md { display: grid; gap: 24px; }
.stack-lg { display: grid; gap: clamp(28px, 3.5vw, 40px); }
.stack-xl { display: grid; gap: clamp(36px, 5vw, 64px); }
.align-start { justify-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px clamp(40px, 6vw, 80px); }
.cols-2-split { align-items: start; gap: 24px clamp(40px, 6vw, 80px); }
.cols-2-form { align-items: start; gap: 40px clamp(40px, 6vw, 96px); }
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px 48px; }
.ruled { display: grid; gap: 14px; align-content: start; padding-top: 24px; border-top: 1px solid var(--gray-200); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 36px; width: auto; }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: clamp(20px, 2.4vw, 32px); }
.nav-list { display: flex; gap: clamp(16px, 2.2vw, 28px); }
.nav-list a { display: block; padding: 6px 0 4px; font: 500 14px/1 var(--font-sans); color: var(--gray-700); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 140ms var(--ease), border-color 140ms var(--ease); }
.nav-list a:hover { color: var(--teal-700); }
.nav-list a[aria-current="page"] { color: var(--teal-700); border-bottom-color: var(--teal-600); }
.menu-toggle { display: none; margin-left: auto; margin-right: -10px; padding: 10px; background: none; border: 0; border-radius: var(--radius-control); color: var(--blue-700); cursor: pointer; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .brand img { height: 30px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 20px; padding: 8px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--gray-200); }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--gray-200); }
  .nav-cta { height: 48px; font-size: 16px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px; font: 600 16px/1 var(--font-sans); letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius-control); cursor: pointer; transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--blue-700); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--blue-700); }
.btn-white { background: #fff; border-color: #fff; color: var(--blue-700); }
.btn-white:hover { background: var(--teal-50); border-color: var(--teal-50); color: var(--blue-700); }
.btn-white:focus-visible { outline-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; width: max-content; font: 600 14px/1 var(--font-sans); color: var(--blue-600); text-decoration: none; }
.text-link:hover { color: var(--teal-700); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) { .btn-row .btn, .hero-copy > .btn { flex: 1 1 100%; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--gray-50); }
.hero::before { content: ""; position: absolute; left: -120px; bottom: -160px; width: 520px; height: 520px; background: url("/assets/img/dot-arc-teal.png") no-repeat left bottom / contain; opacity: .07; pointer-events: none; }
.hero-inner { position: relative; display: grid; gap: clamp(32px, 4vw, 56px); padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px clamp(32px, 6vw, 80px); align-items: end; }
.hero-grid.no-media { grid-template-columns: minmax(0, 1fr); }
.hero-grid.no-media .lead { max-width: 62ch; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }

/* Home, Providers, Payers, Giving. Picture sources in those pages use the same 901px breakpoint.
   Scoped so Model, About, Privacy, and 404 keep the shared hero rules above. */
.hero-landscape .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 40px) clamp(32px, 4.5vw, 64px);
}
.hero-landscape .hero-copy {
  gap: clamp(20px, 2.4vw, 28px);
  align-content: center;
  min-width: 0;
}
.hero-landscape .display,
.hero-landscape .display-home,
.hero-landscape .display-md {
  font-size: clamp(42px, 4.7vw, 68px);
  line-height: 1.02;
}
.hero-landscape .hero-media {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.hero-landscape .hero-media picture { display: block; }
.hero-landscape .hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-card);
  background: var(--gray-200);
}
@media (max-width: 900px) {
  .hero-landscape .hero-inner { padding-top: clamp(36px, 8vw, 56px); padding-bottom: clamp(36px, 7vw, 56px); }
  .hero-landscape .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: clamp(24px, 5vw, 32px); }
  .hero-landscape .display { font-size: clamp(44px, 9vw, 120px); line-height: .98; }
  .hero-landscape .display-home { font-size: clamp(42px, 8.2vw, 108px); line-height: 1; }
  .hero-landscape .display-md { font-size: clamp(40px, 7.4vw, 98px); line-height: 1; }
  .hero-landscape .hero-media img { aspect-ratio: 4 / 3; }
}
.hero-404 { min-height: calc(100vh - var(--header-h) - 120px); }

/* ---------- Cards / doors ---------- */
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-card); box-shadow: var(--shadow-xs); }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.door { position: relative; display: grid; gap: 14px; align-content: start; padding: 32px; transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease); }
.door:hover { border-color: var(--teal-600); box-shadow: var(--shadow-sm); }
.door:focus-within { border-color: var(--blue-600); box-shadow: var(--focus-ring); }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 600 22px/1.25 var(--font-sans); color: var(--blue-700); }
.card-title .icon { color: var(--teal-600); width: 20px; height: 20px; }
.door-link { color: inherit; text-decoration: none; }
.door-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.door-link:focus-visible { outline: none; }
.door p { font-size: 15px; }

/* ---------- Bands ---------- */
.band { position: relative; overflow: hidden; color: #fff; }
.band-gradient { background: var(--gradient); padding: clamp(56px, 8vw, 88px) 0; }
.band-gradient::before { content: ""; position: absolute; right: -160px; top: -140px; width: 560px; height: 560px; background: url("/assets/img/dot-arc-large.png") no-repeat right top / contain; filter: brightness(0) invert(1); opacity: .12; pointer-events: none; }
.band-dark { background: var(--blue-900); padding: clamp(64px, 10vw, 120px) 0; }
.band .lead, .band p { color: rgba(255, 255, 255, .86); }
.band-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.band-statement { max-width: 640px; font: 500 clamp(26px, 3.2vw, 38px)/1.25 var(--font-display); letter-spacing: -.02em; color: #fff !important; text-wrap: balance; }
.band-headline { max-width: 22ch; font: 500 clamp(32px, 5vw, 60px)/1.1 var(--font-display); letter-spacing: -.025em; color: #fff; text-wrap: balance; }
.close-line { max-width: 24ch; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; }

/* ---------- Model rows ---------- */
.rows { display: grid; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 8px 48px; padding: 28px 0; border-top: 1px solid var(--gray-200); }
.row dd { font-size: 16px; line-height: 1.7; color: var(--gray-700); }

/* ---------- Providers ---------- */
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--gray-800); }
.checklist .icon { color: var(--teal-600); }

/* ---------- Payers ---------- */
.stats { gap: 48px; }
.stats .ruled { gap: 16px; padding-top: 28px; }
.stat-num { font: 500 clamp(64px, 7.4vw, 96px)/.95 var(--font-display); letter-spacing: -.03em; color: var(--teal-600); }
.stats p:not(.stat-num) { font-size: 15px; line-height: 1.7; }

/* ---------- About ---------- */
.markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.market { display: grid; gap: 6px; padding-top: 24px; border-top: 2px solid var(--gray-300); }
.market.is-live { border-top-color: var(--teal-600); }
.market-city { font: 500 30px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--blue-700); }
.market p { font-size: 15px; color: var(--gray-600); }
.market .market-status { margin-top: 8px; color: var(--gray-600); }
.market.is-live .market-status { color: var(--teal-700); }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; }
.field label { font: 600 14px/1.3 var(--font-sans); color: var(--gray-800); }
.req { color: var(--teal-700); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--font-sans); color: var(--gray-800); background: #fff; border: 1px solid var(--gray-400); border-radius: var(--radius-control); box-shadow: var(--shadow-inset); transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease); }
.field input, .field select { height: 44px; padding: 0 12px; }
.field textarea { padding: 10px 12px; resize: vertical; min-height: 120px; }
.field select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2353585c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--focus-ring); }
.form-note { font-size: 13px; color: var(--gray-600); }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--teal-700); }
.form-error { color: var(--blue-700); font-weight: 600; }
.form button { margin-top: 4px; }
.form button:disabled { opacity: .65; cursor: default; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.site-footer .brand img { height: 32px; }
.logo-white { filter: brightness(0) invert(1); }
.site-footer p { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.site-footer p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer p a:hover { color: #fff; }
.site-footer a:focus-visible { outline-color: #fff; }

/* ---------- Model hero ---------- */
/* Page-specific. Shared .hero rules (and every other page's hero) stay as they are. */
.hero-model { background: var(--gray-50); }
.hero-model::before { z-index: 1; }
.hero-model .hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: clamp(680px, 72vw, 960px);
  padding-top: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(36px, 4.5vw, 64px);
}
.hero-model .display {
  margin-top: clamp(16px, 2vw, 28px);
  font-size: clamp(46px, 7.15vw, 108px);
  line-height: .94;
  max-width: 6.35em;
  text-wrap: wrap;
}
.hero-model .subhead { margin-top: auto; padding-top: clamp(56px, 9vw, 140px); }
.hero-model-media {
  position: absolute;
  z-index: 0;
  top: 0;
  right: -0.2vw;
  width: 70vw;
  margin: 0;
  pointer-events: none;
}
.hero-model-media picture { display: block; }
.hero-model-media img {
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 860px) {
  .hero-model .hero-inner { min-height: 0; padding-bottom: clamp(8px, 2vw, 16px); }
  .hero-model .display { font-size: clamp(40px, 11.8vw, 58px); }
  .hero-model .subhead { margin-top: clamp(22px, 5vw, 36px); padding-top: 0; }
  .hero-model-media {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin: 4px 0 0;
  }
  .hero-model-media img {
    width: 100%;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
