/* ==========================================================================
   Page compositions.
   Only layout that is specific to one page lives here. Anything reused twice
   belongs in components.css.
   ========================================================================== */

/* ---------- Page header band (every page except home) -------------------- */

.page-head {
  background: var(--gradient-fade-teal);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) clamp(var(--space-10), 4vw, var(--space-16));
  border-bottom: var(--border-width) solid var(--border-color-subtle);
}

/* Matched to .hero__title, not to the base h1: an interior page headline is the
   same kind of thing as the home page headline and should not outrank it. Size
   is the only override, so weight, tracking, leading and balance keep coming
   from the base h1..h6 rule and the two stay in step if that rule moves. */
.page-head__title { font-size: var(--text-3xl); }
.page-head__lead { margin-top: var(--space-5); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  list-style: none;
  padding: 0;
}

.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--text-subtle); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-brand); }

/* ---------- Home --------------------------------------------------------- */

.home-scan-list {
  columns: 2;
  column-gap: var(--space-8);
  list-style: none;
  padding: 0;
}

@media (min-width: 700px) { .home-scan-list { columns: 3; } }

.home-scan-list li {
  break-inside: avoid;
  padding-block: var(--space-2);
  border-bottom: var(--border-width) solid var(--border-color-subtle);
  font-size: var(--text-sm);
  color: var(--text-body);
}

.cta-band {
  background: var(--gradient-brand-vivid);
  color: color-mix(in srgb, var(--white) 88%, transparent);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  text-align: center;
}

.cta-band h2 { color: var(--white); font-weight: var(--weight-light); }
.cta-band p { max-width: 46ch; margin-inline: auto; margin-top: var(--space-4); }
.cta-band .cluster { margin-top: var(--space-8); }

/* ---------- Why early detection ------------------------------------------ */


/* Cancer detail: the stage-by-stage breakdown table plus share-of-cases. */
.stage-detail {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .stage-detail { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.share-bar {
  display: flex;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-100);
}

.share-bar__segment {
  display: grid;
  place-items: center;
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  color: var(--white);
  min-width: 0;
  overflow: hidden;
}

.share-bar__segment--localized { background: var(--signal-early); }
.share-bar__segment--regional { background: var(--signal-mid); color: var(--ink-950); }
.share-bar__segment--distant { background: var(--signal-late); }
.share-bar__segment--unstaged { background: var(--ink-400); }

/* ---------- Locations ---------------------------------------------------- */

.locations-layout {
  display: grid;
  gap: clamp(var(--space-8), 4vw, var(--space-12));
  grid-template-columns: 1fr;
  align-items: start;
}



.locations-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.location-detail__map-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.location-detail__facts {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  padding: var(--space-6);
  background: var(--color-surface-sunken);
  border-radius: var(--radius-lg);
}

.fact__label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.fact__value { font-size: var(--text-base); color: var(--text-heading); }

/* ---------- Get started (funnel) ----------------------------------------- */

.funnel-layout {
  display: grid;
  gap: clamp(var(--space-8), 4vw, var(--space-12));
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1000px) {
  .funnel-layout { grid-template-columns: 1.35fr 0.65fr; }
  .funnel-aside { position: sticky; top: calc(var(--header-height) + var(--space-6)); }
}

.funnel-aside__price {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-tighter);
  line-height: 1;
  color: var(--text-heading);
}

/* ---------- Thank you ---------------------------------------------------- */

.confirmation {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

.confirmation__seal {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-circle);
  display: grid;
  place-items: center;
  background: var(--color-brand-subtle);
  color: var(--color-brand);
}

.confirmation__seal svg { width: 2.25rem; height: 2.25rem; }

.next-steps {
  text-align: left;
  counter-reset: nextstep;
  list-style: none;
  padding: 0;
  margin-top: var(--space-10);
}

.next-steps li {
  counter-increment: nextstep;
  position: relative;
  padding-left: var(--space-12);
  padding-block: var(--space-4);
  border-bottom: var(--border-width) solid var(--border-color-subtle);
}

.next-steps li::before {
  content: counter(nextstep);
  position: absolute;
  left: 0;
  top: var(--space-4);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-circle);
  background: var(--color-brand-subtle);
  color: var(--color-brand);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

/* ---------- Legal / prose pages ------------------------------------------ */

.prose { max-width: var(--container-prose); }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-12); margin-bottom: var(--space-4); }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-8); margin-bottom: var(--space-3); font-family: var(--font-body); font-weight: var(--weight-semibold); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose > :first-child { margin-top: 0; }

.prose__updated {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  padding-bottom: var(--space-6);
  border-bottom: var(--border-width) solid var(--border-color-subtle);
  margin-bottom: var(--space-8);
}

/* ---------- Error pages -------------------------------------------------- */

.error-page {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(var(--space-16), 12vh, var(--space-32));
}

.error-page__code {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-light);
  color: var(--color-brand-muted);
  line-height: 1;
}

.error-page__title { margin-top: var(--space-4); }
.error-page__body { margin-top: var(--space-4); color: var(--text-muted); max-width: 42ch; margin-inline: auto; }
.error-page .cluster { margin-top: var(--space-8); justify-content: center; }
