/* =============================================================================
   DANTE LABS — OUTCOMES PAGE
   /outcomes/ — Five documented clinical cases
   Complements base.css — no redesign of shared tokens or components
   ============================================================================= */

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
.outcomes-hero {
  background: var(--color-dark);
  position: relative;
  overflow: hidden; /* clips backdrop-filter on trust strip */
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: 0; /* trust strip sits flush at bottom */
}

/* Trust strip — reset from base.css absolute positioning to in-document flow.
   No backdrop-filter here: blur() cannot be clipped by overflow:hidden and bleeds
   white from the next section. Use a solid dark tint instead. */
.outcomes-hero .hero-trust-strip {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  max-width: none;
  margin: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(10, 14, 23, 0.55);
}

.outcomes-hero-inner {
  max-width: 680px;
}

.outcomes-hero .h1 {
  color: #ffffff;
  font-weight: 300;
}

.outcomes-hero .body-copy {
  color: rgba(255, 255, 255, 0.68);
  margin-top: 24px;
  max-width: 520px;
}

/* ─── CASE INDEX ─────────────────────────────────────────────────────────────── */
.case-index-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.case-index-tile {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 24px 20px 20px;
  text-decoration: none;
  box-shadow: var(--card-shadow);
  transition: all 0.3s var(--ease-out);
}

.case-index-tile:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.case-tile-number {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  opacity: 0.65;
  margin-bottom: 14px;
}

.case-tile-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.case-tile-condition {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
  flex: 1;
  margin-bottom: 14px;
}

.case-tile-meta {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  line-height: 1.5;
}

.case-tile-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: gap 0.2s var(--ease-out);
}

.case-index-tile:hover .case-tile-cta {
  gap: 8px;
}

/* ─── STICKY CASE TAB NAV ────────────────────────────────────────────────────── */
.case-tab-nav {
  position: sticky;
  top: var(--header-height, 0px);
  z-index: 99;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.case-tab-list {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.case-tab-list::-webkit-scrollbar {
  display: none;
}

.case-tab {
  display: inline-flex;
  align-items: center;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.case-tab:hover {
  color: var(--color-dark);
}

.case-tab.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

/* ─── PROOF-BAND OVERRIDE — dark bg + typography ─────────────────────────────── */
/* proof-band styles live in home.css; outcomes.css re-declares background only  */
.proof-band {
  background: var(--color-dark);
}

.proof-band .stats-strip {
  margin-top: 48px;
}

/* proof-band H2 — white text (mirrors whole-genome-sequencing.css rule) */
.proof-band .h2 {
  color: #ffffff;
  line-height: 1.25;
}

/* Pull quote — PATIENT VOICES section (mirrors whole-genome-sequencing.css) */
.proof-pullquote {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  font-style: normal;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 40px 0 52px;
  padding: 0;
  border: none;
}

.proof-pullquote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 14px;
}


/* Credential tiles — dark-bordered, inside proof-band */
.proof-band-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 16px;
}

.proof-band-cred-tile {
  padding: 32px 36px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.proof-band-cred-tile:last-child {
  border-right: none;
}

.proof-band-cred-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.proof-band-cred-title {
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.proof-band-cred-body {
  font-size: clamp(13px, 1vw, 14px);
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

/* "btn-text--white" variant for dark backgrounds */
.proof-band .trust-logos-label {
  margin-top: 64px;
}

.proof-band .trust-text-badges {
  margin-top: 24px;
}

.btn-text--white {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.btn-text--white:hover {
  color: #ffffff;
  text-decoration-color: rgba(255,255,255,0.7);
}
.btn-text--white::after {
  content: " →";
}

/* ─── COMMUNITY VOICES SECTION ───────────────────────────────────────────────── */
.community-section {
  background: #ffffff;
}

.community-header {
  margin-bottom: 52px;
  max-width: 600px;
}

.community-h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  line-height: 1.2;
  margin: 12px 0 16px;
}

.community-intro {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--color-muted);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.community-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.community-card:hover {
  box-shadow: 0 8px 32px rgba(28, 33, 40, 0.08);
  transform: translateY(-2px);
}

/* Video area — portrait 4:5 */
.community-video {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #111827 0%, #1C2128 60%, #0F1623 100%);
  overflow: hidden;
}

/* Live embeds fill the container */
.community-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Placeholder state */
.community-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.community-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  padding-left: 3px; /* optical centre for play icon */
  transition: border-color 0.2s, color 0.2s;
}

.community-card:hover .community-play-btn {
  border-color: rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.7);
}

.community-placeholder-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
}

/* Platform badge — top left overlay */
.community-platform-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Card body */
.community-card-body {
  padding: 18px 20px 22px;
}

.community-handle {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.community-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* Disclaimer */
.community-note {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 580px;
  opacity: 0.7;
}

/* Community responsive */
@media (max-width: 768px) {
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-header {
    margin-bottom: 36px;
  }
}

@media (max-width: 640px) {
  .proof-band-creds {
    grid-template-columns: 1fr;
  }
  .proof-band-cred-tile {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 24px 20px;
  }
  .proof-band-cred-tile:last-child {
    border-bottom: none;
  }
}


/* ─── OUTCOME SECTIONS ────────────────────────────────────────────────────────── */
.outcome-section {
  /* accounts for main nav only (tab nav removed) */
  scroll-margin-top: 96px;
  /* Ensures the full viewport is occupied so clicking a card or tab nav
     link always shows only this section — previous section scrolls fully off-screen */
  min-height: 100dvh;
}

.outcome-section-eyebrow-group {
  margin-bottom: 16px;
}

.outcome-section-label {
  display: none; /* content moved into finding box — remove from eyebrow area */
}

/* ─── OUTCOME STORY LAYOUT ────────────────────────────────────────────────────── */
.outcome-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(48px, 7vw, 96px);
  row-gap: clamp(36px, 4vw, 56px);
  align-items: start;
}

/* Editorial pull quote: weight 300 (overrides base.css weight 600 for this page context) */
.outcome-story .pull-quote {
  font-size: clamp(21px, 2.5vw, 30px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: 28px;
  font-style: normal;
}

.outcome-attribution {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.outcome-attribution-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

.outcome-attribution-detail {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.5;
}

.outcome-narrative .body-copy {
  margin-bottom: 20px;
}

.outcome-narrative .body-copy:last-of-type {
  margin-bottom: 0;
}

/* Clinical note — inline-label footnote, no card styling */
.outcome-clinical-note {
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--color-muted);
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.outcome-clinical-note::before {
  content: 'CLINICAL DISCLOSURE \00B7\0020';
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  display: inline;
}

/* ─── FINDING ANNOTATION — flat typographic block, not a card ───────────────── */
.outcome-finding-box {
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.outcome-finding-label {
  display: inline;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Gene name — one size above body, dark but not headline */
.outcome-finding-gene {
  display: inline;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-left: 8px;
}

/* Make label + gene appear on one line, description below */
.outcome-finding-label + .outcome-finding-gene {
  display: inline;
}

.outcome-finding-condition {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--color-muted);
}

/* ─── DARK QUOTE INTERSTITIALS — between case sections ───────────────────────── */
.quote-interstitial {
  background: var(--color-ink);
  padding: clamp(40px, 5vw, 64px) 0;
}

.quote-interstitial-text {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
  max-width: 680px;
  margin: 0;
  quotes: none;
}

.quote-interstitial-attribution {
  margin-top: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  display: block;
}

/* ─── SCALE STATS CLOSING TEXT ───────────────────────────────────────────────── */
.scale-stats-closing {
  margin-top: 40px;
  max-width: 640px;
}

.scale-stats-closing p {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
}

/* ─── CREDENTIALS ─────────────────────────────────────────────────────────────── */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.credential-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 28px 24px 24px;
}

.credential-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.credential-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .case-index-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

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

@media (max-width: 1024px) {
  .outcome-story {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

}

@media (max-width: 768px) {
  .case-index-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .outcome-story {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

@media (max-width: 480px) {
  .case-index-grid {
    grid-template-columns: 1fr;
  }

  .outcome-story .pull-quote {
    font-size: clamp(19px, 5.5vw, 26px);
  }
}

/* ─── OUTCOMES-SPECIFIC RESPONSIVE ───────────────────────────────────────────── */

/* Tablet — stats 2×2 */
@media (max-width: 768px) {
  .proof-band .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 36px;
  }

  .stat-cell {
    padding: 28px 20px;
  }

  .proof-band-header {
    margin-bottom: 0;
  }

  /* Release fixed h2 max-width on mobile */
  .proof-band .h2 {
    max-width: 100% !important;
  }

  /* Credential tiles stack */
  .proof-band-creds {
    grid-template-columns: 1fr;
  }

  .proof-band-cred-tile {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .proof-band-cred-tile:last-child {
    border-bottom: none;
  }

  /* Outcome story quote col layout */
  .outcome-quote-col {
    padding: 0;
  }
}

/* Mobile — stats stacked, hero breathing room */
@media (max-width: 480px) {
  .proof-band .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat-cell {
    padding: 20px 16px;
  }

  /* Patient Voices — pull quote tighter */
  .proof-pullquote {
    font-size: clamp(18px, 5vw, 24px);
    margin: 28px 0 36px;
  }

  /* Case tile text stays readable */
  .case-tile-name {
    font-size: clamp(13px, 3.5vw, 15px);
  }

  /* Credentials trust label */
  .proof-band .trust-logos-label {
    margin-top: 40px;
  }

  /* Proof-band top spacing */
  .proof-band.section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
