/* ──────────────────────────────────────────────────────────────────────
   Sapphire — page-specific extensions on top of styles.css
   Tighter heroes, icon tiles, screenshot slots, density modes,
   compact CTA bar, tweaks panel chrome.
   ────────────────────────────────────────────────────────────────────── */

/* ── Hero density modifiers (applied to <body>) ── */
body[data-hero="short"]    .s-hero { padding: 56px 24px 48px; }
body[data-hero="shorter"]  .s-hero { padding: 40px 24px 36px; }
body[data-hero="shortest"] .s-hero { padding: 28px 24px 24px; }

body[data-hero="shorter"]  .s-hero h1 { font-size: 30px; margin-bottom: 12px; }
body[data-hero="shortest"] .s-hero h1 { font-size: 26px; margin-bottom: 8px; line-height: 1.2; }

body[data-hero="shortest"] .s-hero__sub { font-size: 14.5px; margin-bottom: 16px; max-width: 660px; }
body[data-hero="shorter"]  .s-hero__sub { font-size: 15px;   margin-bottom: 20px; }

body[data-hero="shortest"] .s-hero__eyebrow { margin-bottom: 8px; }

/* When the hero is shortest, hide the long sub paragraph entirely
   on pages that opt-in via .s-hero__sub--collapsible. */
body[data-hero="shortest"] .s-hero__sub--collapsible { display: none; }

/* ── Feature card tinted background (Sapphire pages, tweakable) ── */
body[data-section="sapphire"][data-feature-bg="yellow"] .does {
  background: #fffaeb;
  border: 0.5px solid #f5e9c4;
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
}
body[data-section="sapphire"][data-feature-bg="grey"] .does {
  background: #f6f7f9;
  border: 0.5px solid #e6e8ec;
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
}

/* ── Leadership card tinted background (About page, tweakable) ── */
body[data-section="company"][data-leader-bg="grey"] .ab-leader {
  background: #f6f7f9;
  border: 0.5px solid #e6e8ec;
}
body[data-section="company"][data-leader-bg="yellow"] .ab-leader {
  background: #fffaeb;
  border: 0.5px solid #f5e9c4;
}

/* ── Density modes ── */
body[data-density="compact"] .s-section { padding: 36px 24px; }
body[data-density="compact"] .s-section h2 { font-size: 22px; margin-bottom: 10px; }
body[data-density="compact"] .s-section__lead { font-size: 14px; margin-bottom: 18px; }
body[data-density="compact"] .feat { padding: 16px 18px; }
body[data-density="compact"] .feat__title { font-size: 13.5px; margin-bottom: 6px; }
body[data-density="compact"] .feat__body  { font-size: 12.5px; line-height: 1.55; }
body[data-density="compact"] .stat-band { padding: 18px 24px; }
body[data-density="compact"] .stat__value { font-size: 22px; }
body[data-density="compact"] .demo-cta { padding: 16px 20px; }
body[data-density="compact"] .app-card { padding: 16px 18px; }

/* ── Toggle: show/hide program/payer language blocks ── */
body[data-payer="off"] [data-payer-block] { display: none !important; }

/* ── Toggle: show/hide evidence strip (Hypertension only) ── */
body[data-evidence="off"] [data-evidence-block] { display: none !important; }

/* ── Compact icon tile used inside .feat headers and elsewhere ── */
.icon-tile {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--navy-50);
  border: 0.5px solid var(--navy-100);
  color: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-tile svg { width: 16px; height: 16px; }

.feat--with-icon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.feat--with-icon .icon-tile { margin-top: 2px; }

/* Inline icon next to text */
.inline-icon {
  width: 14px; height: 14px;
  vertical-align: -2px; margin-right: 6px;
  color: var(--navy-700);
}

/* ── Screenshot slot — visible placeholder for product imagery ── */
.shot {
  border: 1px dashed var(--navy-200);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(23, 95, 165, 0.04) 0 8px,
      rgba(23, 95, 165, 0.00) 8px 16px
    ),
    var(--navy-50);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--navy-700);
  font-family: var(--font-mono), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 24px;
  min-height: 180px;
}
.shot__inner { max-width: 280px; line-height: 1.5; }
.shot__label {
  display: block;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--navy-700);
  opacity: 0.7;
  margin-bottom: 6px;
}
.shot__caption {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 8px;
}

/* Two-column hero/section: copy on left, screenshot on right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.split--features {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 820px) {
  .split, .split--features { grid-template-columns: 1fr; }
}

/* ── Slim, three-up benefit row ── */
.benefit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 4px;
}
.benefit {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
}
.benefit__title {
  font-size: 13px; font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.35;
}
.benefit__body {
  font-size: 12px; color: var(--text-secondary);
  line-height: 1.55;
}
@media (max-width: 820px) {
  .benefit-row { grid-template-columns: 1fr; }
}

/* ── Compact "what it does" 3-card row ── */
.does-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.does-grid--2 { grid-template-columns: repeat(2, 1fr); }
.does {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.does__title {
  font-size: 13.5px; font-weight: 500;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.does__body {
  font-size: 12.5px; color: var(--text-secondary);
  line-height: 1.6;
}
@media (max-width: 820px) {
  .does-grid { grid-template-columns: 1fr; }
}

/* ── Audience strip (community health centers, primary care, small/mid health systems) ── */
.audience-strip {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 14px;
}
.audience-chip {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(23, 95, 165, 0.06);
  color: var(--navy-800);
  border: 0.5px solid var(--navy-100);
  white-space: nowrap;
}

/* ── Tighter app cards on the suite overview ── */
.app-card--lite {
  background: var(--white);
  border: 0.5px solid var(--border);
}
.app-card--lite:hover { border-color: var(--navy-300); }
.app-card__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--navy-50);
  border: 0.5px solid var(--navy-100);
  color: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.app-card__icon svg { width: 18px; height: 18px; }
.app-card__meta {
  font-size: 11px; color: var(--text-muted);
  font-family: var(--font-mono), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-top: 2px;
}

/* ── Compact bottom CTA inline strip ── */
.cta-strip {
  background: linear-gradient(180deg, var(--navy-50) 0%, #C7DEF6 100%);
  border-top: 0.5px solid var(--navy-100);
  padding: 28px 24px;
}
.cta-strip__inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.cta-strip h2 {
  font-size: 22px; font-weight: 400; letter-spacing: -0.02em;
  color: var(--navy-900); margin: 0; max-width: 540px; line-height: 1.25;
}
.cta-strip__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Evidence pill (mini, slots into the hero on Hypertension only) ── */
.evidence-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--white);
  border: 0.5px solid var(--navy-200);
  color: var(--navy-800);
  font-size: 12px;
  margin-bottom: 14px;
}
.evidence-pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--navy-700);
}

/* Thin banner shown above the site header to flag preview/staging context */
.preview-banner {
  background: var(--amber-50);
  border-bottom: 0.5px solid var(--amber-200);
  color: var(--amber-800);
  font-size: 12px;
  padding: 6px 24px;
  text-align: center;
}

/* ── Screenshot modal (shared across Sapphire product pages) ── */
.shot-thumb {
  appearance: none; background: var(--white); cursor: pointer;
  border: 1px dashed var(--navy-200); border-radius: var(--radius-md);
  padding: 0; width: 100%; min-height: 220px;
  text-align: left; overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.shot-thumb:hover { border-color: var(--navy-400); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.shot-thumb--tall { height: 100%; min-height: 280px; }
.shot-thumb--image { position: relative; }
.shot-thumb--image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot-thumb__overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 10px; font-size: 11px;
  color: var(--white); background: rgba(4,44,83,0.55);
  font-family: var(--font-mono), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.shot-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.shot-modal[hidden] { display: none; }
.shot-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(4,44,83,0.55); backdrop-filter: blur(2px);
  border: none; cursor: pointer; width: 100%; height: 100%;
}
.shot-modal__panel {
  position: relative; z-index: 1; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  max-width: 1280px; width: 100%; padding: 16px;
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
}
.shot-modal__close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--text-muted);
}
.shot-modal__image-wrap {
  background: var(--white); border-radius: var(--radius-md);
  min-height: 0; overflow: auto;
  display: flex; align-items: center; justify-content: center;
}
.shot-modal__image-wrap img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  width: auto; height: auto;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .shot-thumb--tall { min-height: 180px; }
  .shot-modal { padding: 16px; }
}
