/* =============================================================================
   WHOLE GENOME SEQUENCING — Education Page Styles
   Page-specific layouts and components not covered by base.css
   ============================================================================= */

/* ─── HERO BACKGROUND OVERRIDE — WGS page uses navy, not the deep ink default ─ */
.hero {
  background: var(--color-navy);
}

/* ─── HERO BACKGROUND IMAGE — lifestyle photograph at 0.3 opacity ──────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transform: scale(1.05);
  will-change: transform;
}

/* ─── PROSE SECTION — Long-form body copy ──────────────────────────────────── */
.wgs-prose {
  max-width: 720px;
}

.wgs-prose p+p {
  margin-top: 24px;
}

/* ─── COMPARISON VISUAL — 700K vs 4.6-5M bar chart ────────────────────────── */
.comparison-visual {
  max-width: 720px;
  margin-top: 56px;
}

.comparison-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.comparison-bar+.comparison-bar {
  border-top: 1px solid var(--color-border);
}

.comparison-bar-fill {
  height: 8px;
  border-radius: 4px;
  background: var(--color-muted);
  flex-shrink: 0;
  transition: width 0.8s var(--ease-out);
}

.comparison-bar--snp .comparison-bar-fill {
  width: 12%;
  background: var(--color-muted);
}

.comparison-bar--wgs .comparison-bar-fill {
  width: 100%;
  background: var(--color-accent);
}

.comparison-bar-label {
  flex: 1;
  min-width: 0;
}

.comparison-bar-number {
  font-size: var(--font-h3-size);
  font-weight: 600;
  color: var(--color-ink);
  display: block;
  line-height: 1.2;
}

.comparison-bar-desc {
  font-size: var(--font-small-size);
  color: var(--color-muted);
  display: block;
  margin-top: 2px;
}

/* ─── SUB-SECTIONS — 3A, 3B, 3C structure ──────────────────────────────────── */
.wgs-subsection {
  max-width: 720px;
  margin-top: 48px;
}

.wgs-subsection h3 {
  font-size: var(--font-h3-size);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.wgs-subsection p+p {
  margin-top: 20px;
}

/* ─── CLINICAL CATEGORIES — Section 4 grid ─────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.category-card {
  background: var(--color-card);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.category-card h3 {
  font-size: var(--font-h3-size);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.category-card p {
  font-size: var(--font-body-size);
  line-height: 1.68;
  color: var(--color-text);
  flex: 1;
}

.category-card .card-cta {
  margin-top: 20px;
  font-size: var(--font-small-size);
  font-weight: 500;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── WHAT YOU RECEIVE — Section 5 features ────────────────────────────────── */
.receive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.receive-item h3 {
  font-size: var(--font-h3-size);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
  margin-bottom: 10px;
}

.receive-item p {
  font-size: var(--font-body-size);
  line-height: 1.68;
  color: var(--color-text);
}

/* ─── VARIANT PREVIEW TABLE ────────────────────────────────────────────────── */
.variant-table {
  width: 100%;
  max-width: 800px;
  margin-top: 48px;
  border-collapse: collapse;
}

.variant-table th,
.variant-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-body-size);
  line-height: 1.5;
}

.variant-table th {
  font-size: var(--font-small-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.variant-table td:first-child {
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}

.variant-table td:last-child {
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}

/* ─── ROUTING CARDS — Section 6 (formerly Section 6, now Section 2 WHO WE HELP) ── */
.who-we-help-header {
  text-align: left;
  max-width: 680px;
  margin: 0 0 48px 0;
}

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

/* WHAT WE FIND — 6 cards in a 3×2 grid */
.conditions .cards-row {
  grid-template-columns: repeat(3, 1fr);
}



/* Grid fallback for old Section 6 logic (if any residual) */
.wgs-routing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* ─── PATIENT OUTCOMES ─────────────────────────────────────────────────────── */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.outcome-card {
  background: var(--color-bg);
  padding: 32px;
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
}

/* ─── CREDENTIAL STRIP — Compact inline badges ─────────────────────────────── */
.credentials-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 32px 0;
}

.credential-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-small-size);
  font-weight: 500;
  color: var(--color-text);
  padding: 0 24px;
  border-right: 1px solid var(--color-border);
  line-height: 1;
  white-space: nowrap;
}

.credential-item:last-child {
  border-right: none;
}

.credential-icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ─── CTA BLOCK — Final conversion ─────────────────────────────────────────── */
.wgs-cta-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.wgs-cta-block .h2 {
  text-align: center;
}

.wgs-cta-block .body-copy {
  margin-top: 16px;
  text-align: center;
}

.wgs-cta-block .cta-group {
  margin-top: 40px;
  justify-content: center;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────────── */

/* ── 1024px: tablet landscape ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* WHO WE HELP: 4-col → 2-col on tablet */
  .cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* WHAT WE FIND: 3-col → 2-col on tablet (.conditions .cards-row has higher
     specificity so must be overridden explicitly in each breakpoint) */
  .conditions .cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Upgrade strip stays full width */
  .upgrade-strip {
    min-height: 120px;
  }
}

/* ── 900px: distinction section stacks ────────────────────────────────────── */
@media (max-width: 900px) {
  .distinction-split {
    grid-template-columns: 1fr;
    column-gap: 0;
    gap: 48px;
    padding: 24px 0;
  }

  /* All grid children flow to one column */
  .distinction-header {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
    margin-bottom: 16px;
  }

  .distinction-content {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
  }

  .distinction-data-stack {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
    gap: 16px;
  }

  .data-stack-card {
    padding: 24px;
  }

  .clinical-pillars {
    gap: 28px;
  }
}

/* ── 768px: mobile ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* WHO WE HELP & WHAT WE FIND: collapse to single column on mobile */
  .cards-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

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

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

  .wgs-routing-grid {
    grid-template-columns: 1fr;
  }

  .credentials-bar {
    flex-direction: column;
    gap: 16px;
  }

  .credential-item {
    border-right: none;
    padding: 0;
  }

  .comparison-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .comparison-bar-fill {
    width: 100% !important;
    max-width: 100%;
  }

  .comparison-bar--snp .comparison-bar-fill {
    width: 30% !important;
  }

  /* WHO WE HELP header */
  .who-we-help-header {
    margin-bottom: 32px;
  }

  /* Conditions grid: handled below at 600px, let it stay 1-col here too */
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .condition-card {
    padding: 24px;
  }

  /* Deliverables */
  .deliverable-feature {
    grid-template-columns: 1fr;
    padding: 28px;
    direction: ltr !important;
  }

  .deliverable-feature--reversed {
    direction: ltr;
  }

  .deliverable-feature-media {
    order: -1;
  }

  /* WYR viewer — tabs scroll horizontally */
  .wyr-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 4px;
  }

  .wyr-tab {
    padding: 14px 16px;
    font-size: 13px;
  }

  /* Standards grid */
  .standards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .standard-item {
    border-left: none;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    padding: 24px 0 0 0;
  }

  /* Proof outcomes */
  .proof-outcomes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .proof-outcome {
    padding: 22px;
  }

  /* Proof band header */
  .proof-band-header {
    max-width: 100%;
  }

  /* Section conditions header */
  .conditions-header {
    margin-bottom: 40px;
  }
}

/* ── 600px: conditions grid → 1-col ──────────────────────────────────────── */
@media (max-width: 600px) {
  .conditions-grid {
    grid-template-columns: 1fr;
  }

  .wyr-right {
    padding: 24px;
  }

  .wyr-body {
    grid-template-columns: 1fr;
  }

  .wyr-left {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  /* Hide browser chrome decorations on small screens */
  .wyr-browser-chrome {
    display: none;
  }

  .wyr-panel img {
    max-height: 260px;
  }
}

/* ── 480px: smallest phones ───────────────────────────────────────────────── */
@media (max-width: 480px) {

  /* WHO WE HELP header sizing */
  .who-we-help-header .h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  /* Already 1-col from 768px breakpoint — kept for specificity safety */
  .cards-row,
  .conditions .cards-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Routing cards shorter on small phones */
  .routing-card {
    min-height: 200px;
  }

  /* Distinction — tighter spacing */
  .data-stack-card {
    padding: 18px;
  }

  .distinction-split {
    gap: 36px;
    padding: 16px 0;
  }

  /* Proof band pullquote */
  .proof-pullquote {
    font-size: clamp(18px, 5vw, 24px);
    margin: 28px 0 36px;
  }

  /* Conditions */
  .conditions-header {
    margin-bottom: 32px;
  }

  .condition-card {
    padding: 20px;
  }

  .condition-icon {
    font-size: 26px;
    margin-bottom: 14px;
  }

  /* Deliverables panel */
  .deliverable-feature {
    padding: 22px;
    gap: 28px;
  }

  .deliverable-feature-text .deliverable-title {
    font-size: 20px;
  }

  /* Standards */
  .standards-header {
    margin-bottom: 40px;
  }

  /* Trust text badges – wrap cleanly on 2 per row */
  .trust-text-badges {
    gap: 8px;
  }

  /* Proof outcomes */
  .proof-outcome {
    padding: 18px;
  }

  /* WYR tabs: smaller font */
  .wyr-tab {
    font-size: 12px;
    padding: 12px 12px;
  }

  /* Upgrade strip — tighter on small phones */
  .upgrade-strip {
    min-height: 100px;
  }
}

/* ─── DISTINCTION SECTION OVERRIDES (section-specific, component is in base.css) ─ */
section.distinction.section--dark {
  background-color: var(--color-navy);
}

section.distinction::before {
  display: none;
}

.distinction-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  column-gap: 80px;
  align-items: stretch;
  padding: 40px 0;
}

/* LEFT/RIGHT SIDE: Data Visualization Stack */
.distinction-data-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
  width: 100%;
  height: 100%;
}

.data-stack-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center content vertically inside stretched card */
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.4s var(--ease-out);
}

.data-stack-card.is-active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  /* Removed heavy elevation */
}

.data-stack-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.data-stack-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.data-stack-stat {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

.data-stack-card.is-active .data-stack-stat {
  color: var(--color-white);
  /* Pure white for 100% */
  font-weight: 500;
}

.data-stack-caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  line-height: 1.4;
}

/* Visualization Blocks — The "Dot Matrix" */
.data-stack-viz {
  position: relative;
  height: 48px;
  width: 100%;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* Base dot pattern for empty space */
.data-stack-viz::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  background-position: 0 0;
}

/* 100% Dante (Fully colored matrix with striking Premium White) */
.viz-dante::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  background-position: 0 0;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
  /* Clean white radiance */
  animation: data-fill 1.5s ease-out forwards;
}

/* 0.1% Targeted Panel (Deliberate structured fraction in muted white) */
.viz-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  background-position: 0 0;
  clip-path: polygon(0 0, 1.2% 0, 1.2% 100%, 0 100%);
}

/* <0.02% Microarray (Extremely sparse deliberate fraction in muted white) */
.viz-micro::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  background-position: 0 0;
  clip-path: polygon(0 0, 0.3% 0, 0.3% 100%, 0 100%);
}

@keyframes data-fill {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

/* RIGHT SIDE: Clinical Pillars */
.distinction-content .eyebrow {
  margin-bottom: 24px;
}

.clinical-pillars {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.clinical-pillar {
  padding-left: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.3s ease;
}

.clinical-pillar:hover {
  border-color: var(--color-accent);
}

.clinical-pillar .pillar-title {
  font-size: var(--font-h3-size);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 12px;
}

.clinical-pillar .pillar-desc {
  font-size: var(--font-body-size);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
}

/* Responsive constraints */
@media (max-width: 900px) {
  .distinction-split {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .distinction-data {
    aspect-ratio: 16/9;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION 5 — PATIENT OUTCOME (WGS page override)
════════════════════════════════════════════════════════════════════════ */

/* Override the base 1fr 1fr grid with 3fr 2fr so right column is image */
.clinical-proof .clinical-proof-inner {
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: start;
}

.proof-image-column {
  position: sticky;
  top: 120px;
}

.proof-outcome-image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  display: block;
}

@media (max-width: 900px) {
  .clinical-proof .clinical-proof-inner {
    grid-template-columns: 1fr;
  }

  .proof-image-column {
    position: static;
    order: -1;
  }

  .proof-outcome-image {
    aspect-ratio: 16 / 9;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION 4 — CLINICAL CONDITIONS
════════════════════════════════════════════════════════════════════════ */
.conditions-header .eyebrow {
  margin-bottom: 16px;
  display: block;
}

/* .conditions-grid — moved to base.css */

.condition-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--card-shadow);
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.condition-icon {
  font-size: 32px;
  line-height: 1;
  color: var(--color-navy);
  margin-bottom: 20px;
  display: block;
  opacity: 0.7;
}

.condition-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.condition-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

@media (max-width: 900px) {
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ═══════════════════════════════════════════════════════════════════════
   SECTION 6 — DELIVERABLES
════════════════════════════════════════════════════════════════════════ */
.deliverables-header .eyebrow {
  margin-bottom: 16px;
  display: block;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ── Feature showcase rows (Cards 02 + 04) ─────────────────────────── */
.deliverable-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 0;
}

.deliverable-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  box-shadow: var(--card-shadow);
  padding: 40px 40px 40px 44px;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease-out);
}

.deliverable-feature:hover {
  box-shadow: var(--card-shadow-hover);
}

.deliverable-feature--reversed {
  direction: rtl;
}

.deliverable-feature--reversed>* {
  direction: ltr;
}

.deliverable-feature-text {
  display: flex;
  flex-direction: column;
}

.deliverable-feature-text .deliverable-num {
  margin-bottom: 10px;
}

.deliverable-feature-text .deliverable-title {
  font-size: 26px;
  margin-bottom: 14px;
}

.deliverable-feature-text .deliverable-desc {
  flex: 1;
}

.deliverable-feature-media {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.deliverable-screenshot {
  width: 100%;
  display: block;
  max-height: 320px;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 900px) {
  .deliverable-feature {
    grid-template-columns: 1fr;
    padding: 32px;
    direction: ltr;
  }

  .deliverable-feature--reversed {
    direction: ltr;
  }

  .deliverable-feature-media {
    order: -1;
  }
}

@media (max-width: 768px) {
  .deliverables-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.deliverable-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  box-shadow: var(--card-shadow);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.deliverable-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.deliverable-icon {
  font-size: 28px;
  color: var(--color-navy);
  opacity: 0.65;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}

.deliverable-num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.deliverable-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.deliverable-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

/* ── Final CTA — plum background (mirrors /genome/ section--plum) ──────── */
.cta-block--plum {
  background: #593159;
  position: relative;
  overflow: hidden;
}

.cta-block--plum::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/media/biology_hero.png') center / cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.cta-block--plum>* {
  position: relative;
  z-index: 1;
}

/* ── Biology hero overlay (no background change) ────────────────────── */
.has-bio-bg {
  position: relative;
  overflow: hidden;
}

.has-bio-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/media/biology_hero.png') center / cover no-repeat;
  opacity: 0.02;
  pointer-events: none;
}

.has-bio-bg>* {
  position: relative;
  z-index: 1;
}

/* ── WHAT YOU RECEIVE: Inline Tab Viewer ────────────────────────────── */
.wyr-viewer {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid var(--color-border);
}

/* ── Tab bar ───────────────────────────────────────────────── */
.wyr-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--color-border);
  padding: 0 8px;
  /* Scrollable on desktop if needed, but no visible scrollbar */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wyr-tabs::-webkit-scrollbar {
  display: none;
}

.wyr-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  padding: 16px 20px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.wyr-tab:hover {
  color: var(--color-ink);
}

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

.wyr-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--color-white);
}

/* Left column: browser chrome + screenshot */
.wyr-left {
  border-right: 1px solid var(--color-border);
}

.wyr-browser-chrome {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wyr-browser-dots {
  display: flex;
  gap: 6px;
}

.wyr-browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.wyr-browser-dots span:nth-child(1) {
  background: #ff5f57;
}

.wyr-browser-dots span:nth-child(2) {
  background: #febc2e;
}

.wyr-browser-dots span:nth-child(3) {
  background: #28c840;
}

.wyr-browser-address {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  color: #666;
  font-family: inherit;
}

.wyr-panel {
  display: none;
}

.wyr-panel.active {
  display: block;
}

.wyr-panel img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
}

/* Right column: deliverable info */
.wyr-right {
  padding: 40px 40px 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
}

.wyr-info {
  display: none;
  flex-direction: column;
}

.wyr-info.active {
  display: flex;
}

.wyr-info .deliverable-title {
  font-size: 22px;
  margin-top: 10px;
  margin-bottom: 16px;
}

.wyr-info .deliverable-desc {
  margin: 0;
}

@media (max-width: 900px) {
  .wyr-body {
    grid-template-columns: 1fr;
  }

  .wyr-left {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .wyr-right {
    min-height: auto;
    padding: 32px;
  }
}

/* ── Mobile tabs: 2×2 grid so no horizontal scrolling is needed ── */
@media (max-width: 768px) {
  .wyr-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
    padding: 0;
    gap: 0;
  }

  .wyr-tab {
    padding: 14px 12px;
    font-size: 13px;
    text-align: center;
    white-space: normal;
    border-bottom: none;
    border: 1px solid var(--color-border);
    margin: 0;
    line-height: 1.3;
    /* Subtle background diff for active vs inactive */
    background: rgba(0, 0, 0, 0.03);
  }

  .wyr-tab.active {
    background: var(--color-white);
    color: var(--color-accent);
    font-weight: 600;
    position: relative;
    /* Accent top border as active indicator */
    border-top: 2px solid var(--color-accent);
    border-bottom: none;
  }

  .wyr-tab:not(.active) {
    border-top: 2px solid transparent;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   SECTION 7 — STANDARDS
════════════════════════════════════════════════════════════════════════ */
.standards-header .eyebrow {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.5);
  display: block;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.standard-item {
  padding: 32px;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.standard-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 12px;
}

.standard-desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

@media (max-width: 900px) {
  .standards-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .standard-item {
    border-left: none;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    padding: 32px 0 0 0;
  }
}

/* ── Proof Band: Pull Quote ──────────────────────────────────────────── */
.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;
}

/* .proof-outcomes-grid — moved to base.css */

.proof-outcome {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 28px;
  border-top: 2px solid var(--color-accent);
}

.proof-outcome-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.45;
}

.proof-outcome-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 900px) {
  .proof-outcomes-grid {
    grid-template-columns: 1fr;
  }
}

/* .hero--split — moved to base.css */

.hero-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 8vw, 120px);
}

.hero--split .hero-text {
  max-width: 560px;
}

.hero--split .hero-text .h1 {
  max-width: 520px;
}

.hero--split .hero-text .body-copy {
  max-width: 480px;
  margin-top: 24px;
}

/* Product image column */
.hero-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: 16px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.35),
    0 16px 32px rgba(0, 0, 0, 0.2);
  display: block;
  /* Slight lift animation */
  animation: hero-img-rise 0.9s var(--ease-out) both;
  animation-delay: 0.3s;
}

@keyframes hero-img-rise {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Hero split responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-split-inner {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .hero-split-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: clamp(60px, 8vw, 100px);
  }

  .hero--split .hero-text {
    max-width: 100%;
  }

  .hero-product-image {
    order: -1;
    /* image above text on mobile */
  }

  .hero-product-img {
    max-width: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  .hero-product-img {
    border-radius: 12px;
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
/* ═══════════════════════════════════════════════════════════════════════
   COVERAGE TRACK VISUALIZATION — CLINICAL ADVANTAGE section
   Replaces abstract dot-grid with sequencing read-depth bar chart
════════════════════════════════════════════════════════════════════════ */
.coverage-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.coverage-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Coverage track area — bars rendered by JS */
.coverage-track {
  flex: 1;
  display: flex;
  align-items: flex-end;   /* bars grow upward from baseline */
  gap: 1px;
  padding: 14px 14px 0;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

/* Subtle baseline rule */
.coverage-track::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

/* Individual read-depth bar */
.coverage-bar {
  flex-shrink: 0;
  width: 3px;
  border-radius: 1px 1px 0 0;
  min-height: 1px;
  transition: opacity 0.2s;
}

/* Card footer */
.coverage-card-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coverage-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.coverage-stat {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.coverage-caption {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  margin: 6px 0 0;
}

@media (max-width: 900px) {
  .coverage-cards-row {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .coverage-track { min-height: 100px; }
}
@media (max-width: 540px) {
  .coverage-cards-row { max-width: 100%; }
}


/* ═══════════════════════════════════════════════════════════════════════
   EYEBROW COLOR OVERRIDES (section-specific, no !important needed)
════════════════════════════════════════════════════════════════════════ */
#main-content .proof-band.section--dark .eyebrow,
#main-content .section--dark .proof-band .eyebrow,
#main-content .section--dark.distinction .eyebrow,
#main-content .section--dark .eyebrow {
  color: rgba(255, 255, 255, 0.5) !important;
}

.wgs-hero .eyebrow,
.section--cta-finale .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

/* ─── SECTION--CTA-FINALE overrides ──────────────────────────────────── */
.section--cta-finale {
  background: var(--color-bg);
}

.section--cta-finale .cta-final .h2 {
  color: var(--color-dark);
}

.section--cta-finale .cta-final .body-copy {
  color: var(--color-text);
}

.section--cta-finale .cta-micro-copy {
  color: var(--color-muted);
}

.section--offwhite .data-stack-card {
  background: var(--color-white);
  border-color: var(--color-border);
  box-shadow: var(--card-shadow);
}

.section--offwhite .data-stack-card.is-active {
  background: var(--color-white);
  border-color: rgba(10, 14, 23, 0.1);
  box-shadow: var(--card-shadow-hover);
}

.section--offwhite .data-stack-title {
  color: var(--color-dark);
}

.section--offwhite .data-stack-stat {
  color: var(--color-accent);
}

.section--offwhite .data-stack-card.is-active .data-stack-stat {
  color: var(--color-dark);
  font-weight: 600;
}

.section--offwhite .data-stack-caption {
  color: var(--color-text);
}

.section--offwhite .data-stack-viz {
  background-color: var(--color-bg);
}

.section--offwhite .data-stack-viz::before {
  background-image: radial-gradient(rgba(10, 14, 23, 0.12) 1.5px, transparent 1.5px);
}

.section--offwhite .viz-dante::after {
  background-image: radial-gradient(var(--color-accent) 1.5px, transparent 1.5px);
  filter: none;
}

.section--offwhite .viz-panel::after {
  background-image: radial-gradient(rgba(10, 14, 23, 0.35) 1.5px, transparent 1.5px);
  filter: none;
}

.section--offwhite .viz-micro::after {
  background-image: radial-gradient(rgba(10, 14, 23, 0.2) 1.5px, transparent 1.5px);
  filter: none;
}

/* Eyebrow colors and CTA-finale overrides moved above (no !important) */

/* .section--cta-finale — consolidated above */

/* ═══════════════════════════════════════════════════════════════════════
   H2 SECTION CONTEXT STYLES
   Covers color, margin, and line-height concerns previously written as
   inline styles — keeps HTML clean, all in CSS.
════════════════════════════════════════════════════════════════════════ */

/* What's Included H2 */
.deliverables-header .h2 {
  margin-bottom: 24px;
}

/* Clinical Advantage — dark navy section H2 */
.section--dark #distinction-h2,
.distinction.section--dark .h2 {
  color: var(--color-white);
  margin-bottom: 0;
}

/* What We Find H2 */
.conditions-header .h2 {
  margin-bottom: 24px;
}

/* Proof band H2 — white + tighter line-height (complementary to home.css rule) */
.proof-band .h2 {
  color: #ffffff;
  line-height: 1.25;
}


/* Override the dark-optimised button to standard primary (no !important needed) */
.section--cta-finale .cta-group .btn-primary {
  background: var(--color-dark);
  color: #ffffff;
  border-color: var(--color-dark);
}

.section--cta-finale .cta-group .btn-primary:hover {
  background: #1c2128;
  border-color: #1c2128;
  box-shadow: 0 8px 24px rgba(10, 14, 23, 0.18);
}