/* =============================================================================
   DANTE LABS — UPGRADE PAGE STYLES
   Page-specific styles for upgrade.html (/upgrade/)
   Requires: base.css (loaded first)
   ============================================================================= */

/* ─── HERO — PHOTO OVERLAY (page-specific) ──────────────────────────────────── */
/* Base hero styles (.hero, .hero-text, .hero::after, .hero-trust-strip)
   come from base.css. Only the photo background layer is page-specific. */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transform: scale(1.05);
  will-change: transform;
}


/* ─── CLINICAL ADVANTAGE — Coverage track visualization ──────────────────── */
/* Reused from /whole-genome-sequencing/ */
.section--dark .h2 {
  color: #ffffff;
}

.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 {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  padding: 14px 14px 0;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

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

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

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


/* ─── CONDITION CARDS (flat routing-card variant — no photo bg) ───────────────── */
/* Base .routing-card, .card-inner, .card-eyebrow, .card-headline, .card-body,
   .card-cta all come from base.css. Only the flat modifier is page-specific. */
.condition-cards {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 0;
}

.routing-card--flat {
  min-height: auto;
  background: var(--color-card);
}

.routing-card--flat .card-inner {
  justify-content: flex-start;
}

.routing-card--flat .card-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-muted);
}


/* ─── PROOF-BAND — Pull quote + outcome vignettes (not yet in base.css) ──── */
/* Copied from hereditary-risk.css — identical pattern used across all pages */
.proof-band {
  background: var(--color-dark);
  color: #ffffff;
}

.proof-band-header {
  margin-bottom: 60px;
  max-width: 680px;
}

.proof-band-header .h2 {
  color: #ffffff;
  line-height: 1.25;
}

.proof-statement {
  font-size: var(--font-body-size);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
  margin-bottom: 44px;
}

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


/* ─── DISTINCTION SECTION — uses base.css .distinction-* styles ──────────────── */
/* Only override what's needed for this page layout */

.distinction-intro {
  max-width: 680px;
  margin-bottom: 56px;
}

.distinction-intro .h2 {
  margin-bottom: 28px;
}


/* ─── CTA BLOCK ──────────────────────────────────────────────────────────────── */
.cta-block-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.cta-block-content {
  text-align: left;
}

.cta-block .h2 {
  margin-bottom: 24px;
  line-height: 1.2;
}

.cta-block .body-copy {
  margin-bottom: 40px;
  max-width: 540px;
}

.order-details {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.order-detail-item {
  font-size: 15px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-detail-item strong {
  font-weight: 300;
  color: var(--color-dark);
  font-size: clamp(24px, 2vw, 32px);
  letter-spacing: -0.03em;
}

.order-separator {
  color: var(--color-border);
  font-size: 20px;
}

/* Product image */
.cta-block-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.cta-product-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  transform: perspective(800px) rotateY(-2deg);
  filter: drop-shadow(0 32px 60px rgba(28, 33, 40, 0.20))
          drop-shadow(0 12px 24px rgba(28, 33, 40, 0.10));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s ease;
}

.cta-product-img:hover {
  transform: perspective(800px) rotateY(0deg) translateY(-6px);
  filter: drop-shadow(0 40px 80px rgba(28, 33, 40, 0.24))
          drop-shadow(0 16px 32px rgba(28, 33, 40, 0.12));
}

/* Mobile-only micro-copy */
.cta-mobile-micro {
  display: none;
}


/* ─── RESPONSIVE: 900px (coverage tracks) ────────────────────────────────── */
@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%; }
}


/* ─── RESPONSIVE: 1024px ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-row.condition-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-block-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}


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

  /* CTA block */
  .cta-block-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-block-image {
    order: -1;
    padding: 0;
  }

  .cta-product-img {
    width: 100%;
    max-width: 320px;
    transform: none;
    filter: drop-shadow(0 20px 40px rgba(28, 33, 40, 0.15));
  }

  .cta-product-img:hover {
    transform: none;
    filter: drop-shadow(0 20px 40px rgba(28, 33, 40, 0.15));
  }

  .order-details {
    display: none;
  }

  .cta-mobile-micro {
    display: block;
    font-size: 13px;
    color: var(--color-muted);
    margin-top: 12px;
  }

  .cta-block-image {
    justify-content: flex-start;
  }

  /* Text optimization */
  .cta-block .h2 {
    text-wrap: balance;
  }

  .cta-block .body-copy {
    text-wrap: pretty;
  }
}


/* ─── RESPONSIVE: 600px ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cards-row.condition-cards {
    grid-template-columns: 1fr;
  }
}


/* ─── RESPONSIVE: 480px ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cta-block-content .cta-group {
    align-items: stretch;
  }

  .cta-block-content .cta-group .btn-primary {
    width: 100%;
    justify-content: center;
  }
}