/* =============================================================================
   DANTE LABS — RNA PROFILE STYLES
   /rna/ — RNA Profile product page
   Page-specific overrides only. All shared components (hero, trust-strip,
   wyr-viewer, proof-band, how-it-works, cta-block, data-stack-card)
   are defined in base.css.
   ============================================================================= */

/* ─── HERO — RNA-specific override ─────────────────────────────────────────── */
/* The .hero class in base.css sets background: var(--color-dark).
   RNA hero uses the same dark background — no override needed.
   min-height: 100svh and flex centering are inherited from base.css .hero.
   This block is here as a documentation anchor. */

.rna-hero {
  /* inherits all HERO-DARK full-height styles from base.css .hero */
}

/* ─── 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;
}

/* Hero CTA — purple (accent plum) instead of default semi-transparent white */
.rna-hero .btn-hero {
  background: var(--color-accent, #593159);
  color: #ffffff;
  border: 1.5px solid var(--color-accent, #593159);
}

.rna-hero .btn-hero:hover {
  background: #4A284A;
  border-color: #4A284A;
  box-shadow: 0 8px 24px rgba(89, 49, 89, 0.30);
}

/* ─── CLINICAL ADVANTAGE — Comparison layout ──────────────────────────────── */

.clinical-advantage-header {
  text-align: left;
  max-width: 800px;
  margin-bottom: 56px;
}

.clinical-advantage-header .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.clinical-advantage-header .h2 {
  color: #ffffff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.3;
}

.clinical-advantage-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 32px;
  align-items: start;
}

/* VS divider between columns */
.comparison-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  padding-top: 80px;
}

.clinical-advantage-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.clinical-advantage-col .h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.35;
  font-weight: 400;
}

.clinical-advantage-subhead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Featured card — accent top border + subtle glow */
.heatmap-card--featured {
  border-top: 2px solid var(--color-accent, #593159);
  box-shadow: 0 0 40px rgba(89, 49, 89, 0.15);
}

/* Individual card */
.heatmap-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;
}

/* Active card (Dante RNA) — no special border, density tells the story */
.heatmap-card--active {}

/* Heatmap cell grid */
.heatmap-viz {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5px;
  padding: 14px;
  min-height: 140px;
  align-content: flex-start;
}

/* Individual gene cell */
.heatmap-cell {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  flex-shrink: 0;
}

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

.heatmap-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);
}

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

.heatmap-card--active .heatmap-stat {
  color: #ffffff;
}

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

/* Responsive: stack to single column below 900px */
@media (max-width: 900px) {
  .clinical-advantage-comparison {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .comparison-vs {
    display: none;
  }
  .heatmap-viz {
    min-height: 100px;
  }
}

@media (max-width: 540px) {
  .heatmap-cards-row {
    max-width: 100%;
  }
}


/* ─── ROUTING-CARD GRID LAYOUT ─────────────────────────────────────────────── */
/* .cards-row is defined in base.css */

.who-we-help-header {
  text-align: left;
  max-width: 680px;
  margin: 0 0 48px 0;
}

/* ─── PROOF-BAND — Pull quote + outcome vignettes ────────────────────────── */
/* Copied from whole-genome-sequencing.css — not in base.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;
}

/* base.css sets margin-bottom: 56px on .proof-outcomes-grid globally — remove it
   here so the Baylor attribution line sits tight under the cards */
.proof-band .proof-outcomes-grid {
  margin-bottom: 0;
}

.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;
}

/* ─── WHY RNA — card visualization ───────────────────────────────────────── */
.distinction-viz {
  margin: 16px 0 20px;
}

.distinction-viz svg {
  display: block;
  width: 100%;
  height: 36px;
}

.distinction-viz-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 14, 23, 0.45);
  margin-top: 8px;
}

/* ─── CLINICAL CONDITIONS — 3-col at desktop (6 cards, 3×2 grid) ──────────── */
.conditions .cards-row {
  grid-template-columns: repeat(3, 1fr);
}


/* ─── HOW-IT-WORKS — standalone section reset ─────────────────────────────── */
/* base.css .how-it-works has margin-top + border-top for inline use.
   On this page it sits inside its own <section> so we reset those. */

.how-it-works {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Process section heading */
#rna-how-h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
}


/* ─── WHY RNA — FOUR PILLARS GRID ──────────────────────────────────────────── */

.rna-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.rna-pillar-card {
  padding: 32px 28px;
  border: 1px solid rgba(10, 14, 23, 0.08);
  border-radius: 12px;
  background: #ffffff;
}

.rna-pillar-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(89, 49, 89, 0.07);
  border-radius: 12px;
  color: var(--color-accent, #593159);
  margin-bottom: 20px;
  font-size: 24px;
}

.rna-pillar-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink, #0A0E17);
  margin-bottom: 12px;
}

.rna-pillar-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text, #3d3d3d);
}


/* Mirrors genome.css .genome-manager-band exactly */

.genome-manager-band-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 56px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.genome-manager-band-content {
  flex: 0 0 40%;
  min-width: 0;
}

.genome-manager-band-content .h3 {
  font-size: 36px;
  font-weight: 500;
  color: #1c2128;
}

.genome-manager-band-image {
  flex: 1;
  min-width: 0;
}

.genome-manager-band-image img {
  width: 100%;
}

/* ─── CTA ROUTING LINKS ───────────────────────────────────────────────────── */
.rna-routing-links {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rna-routing-note {
  font-size: var(--font-small-size);
  color: var(--color-muted);
  line-height: 1.5;
}

.rna-routing-note a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(89, 49, 89, 0.3);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: text-decoration-color 0.2s ease;
}

.rna-routing-note a:hover {
  text-decoration-color: var(--color-accent);
}

/* =============================================================================
   RESPONSIVE — RNA PAGE
   ============================================================================= */

/* ─── 1024px — ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Deliverables section header: allow heading to balance at mid-widths */
  .deliverables-header .h2 {
    text-wrap: balance;
  }
}

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

  /* Four Pillars: 2-column on tablet */
  .rna-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }


  /* Hero CTA group: stack buttons vertically */
  .rna-hero .cta-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .rna-hero .cta-group .btn-hero {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Hero body copy: tighten line length on tablet */
  .rna-hero .body-copy {
    max-width: 100%;
  }

  /* Distinction section: heading line break works better without forced BR */
  .distinction .h2 {
    text-wrap: balance;
  }

  /* Proof-band H2 wrapping */
  .proof-band .h2 {
    text-wrap: balance;
  }

  /* Deliverables section */
  .deliverables-header .h2 {
    font-size: clamp(24px, 5vw, 36px);
    text-wrap: balance;
  }

  /* Clinical applications section */
  .section--white .h2 {
    text-wrap: balance;
  }

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

  /* Conditions cards: 3-col → 1-col on mobile (specificity override) */
  .conditions .cards-row {
    grid-template-columns: 1fr;
  }

  /* who-we-help header: let it be full width on tablet */
  .who-we-help-header {
    max-width: 100%;
  }

  /* Process steps: 4-col → 2-col on tablet */
  .how-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* What's in the box band: stack vertically on tablet */
  .genome-manager-band-inner {
    flex-direction: column;
    padding: 40px;
    gap: 32px;
  }

  .genome-manager-band-content {
    flex: none;
    width: 100%;
  }

  /* conditions-header: full width on tablet */
  .conditions-header {
    max-width: 100% !important;
  }

}

/* ─── 600px — Cards single column ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .rna-pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .how-steps-grid {
    grid-template-columns: 1fr;
  }

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

/* ─── 480px — Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {


  /* Hero: tighten heading at narrowest widths */
  .rna-hero .h1 {
    font-size: clamp(36px, 10vw, 52px);
    text-wrap: balance;
  }

  /* Hero body copy: comfortable size on small screens */
  .rna-hero .body-copy {
    font-size: 16px;
    line-height: 1.65;
  }

  /* Hero CTA: both buttons full width on smallest screens */
  .rna-hero .btn-text {
    font-size: 15px;
  }

  /* Distinction cards: remove auto-centering constraint at <480px */
  .distinction-cards-row {
    max-width: 100%;
    margin: 0;
  }

  /* Proof-band stats: stat numbers scale down slightly on very narrow screens */
  .stat-number {
    font-size: clamp(28px, 8vw, 48px);
  }

  /* WYR section deliverables header: balance heading */
  .deliverables-header .h2 {
    font-size: clamp(22px, 7vw, 32px);
    text-wrap: balance;
  }

  /* HOW-IT-WORKS headline */
  .how-it-works .how-it-works-headline {
    font-size: clamp(20px, 6vw, 28px);
    text-wrap: balance;
  }

  /* RNA app cards: ensure no overflow at narrowest */
  .rna-app-card {
    padding: 24px 20px;
  }



  /* Proof-band stats: 4-col → 2-col already in base.css at 768px.
     At 480px go full 1-col to prevent horizontal overflow at phone widths.
     Also allow stat numbers to wrap (base.css has white-space: nowrap). */
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stat-number {
    white-space: normal;
    font-size: clamp(28px, 8vw, 40px);
  }

  /* ── Heading BR tags at mobile: let text-wrap:balance handle line breaks ─── */
  .rna-hero .h1 br,
  .distinction .h2 br,
  .cta-block .h2 br {
    display: none;
  }

  /* Conditions cards: 3-col → 1-col on mobile (specificity override) */
  .conditions .cards-row {
    grid-template-columns: 1fr;
  }

  /* OUTCOMES attribution line: full width on mobile */
  .proof-attribution {
    max-width: 100% !important;
  }



  /* What's in the box: tighter padding */
  .genome-manager-band-inner {
    padding: 28px;
    gap: 24px;
  }

  .genome-manager-band-content .h3 {
    font-size: clamp(24px, 6vw, 32px);
  }

}
