/* ==========================================================================
   Lantern — Page-level compositions
   ========================================================================== */

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) var(--section-y);
  overflow: hidden;
}
.hero::before { /* warm lantern glow */
  content: '';
  position: absolute;
  inset: -20% 0 auto 0;
  height: 60%;
  background: var(--glow);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  gap: var(--space-3xl);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 58rem) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero__copy { display: grid; gap: var(--space-lg); justify-items: start; }
.hero h1 { max-width: 15ch; }
.hero__lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: var(--leading-snug);
  max-width: 40ch;
}
.hero__media {
  display: grid;
  place-items: center;
  position: relative;
}
.hero__media::before { /* warm ember halo behind the phones */
  content: '';
  position: absolute;
  width: min(30rem, 90%);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 45%, rgba(255,201,120,0.55), rgba(245,158,46,0.10) 45%, transparent 68%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}
.hero__phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero__phones .phone:nth-child(1) {
  --_w: 12.5rem;
  transform: translateY(1.6rem) rotate(-6deg);
  z-index: 1;
}
.hero__phones .phone:nth-child(2) {
  --_w: 16rem;
  z-index: 2;
  margin-inline: -3rem;
}
.hero__phones .phone:nth-child(3) {
  --_w: 12.5rem;
  transform: translateY(1.6rem) rotate(6deg);
  z-index: 1;
}
@media (max-width: 40rem) {
  .hero__phones .phone:nth-child(1),
  .hero__phones .phone:nth-child(3) { display: none; }
  .hero__phones .phone:nth-child(2) { margin-inline: 0; }
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  align-items: center;
  color: var(--ink-faint);
  font-size: var(--step--1);
}
.trust-row .badge { background: var(--surface); }

/* ---- Stat band ---------------------------------------------------------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--space-xl);
  text-align: center;
}
.stat { display: grid; gap: 0.35rem; }
.stat__num {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: var(--step-4);
  color: var(--teal-800);
  line-height: 1;
}
.stat__label { color: var(--ink-soft); font-size: var(--step-0); }

/* ---- Page header (interior routes) ------------------------------------- */
.page-header {
  padding-block: clamp(2.5rem, 7vw, 5rem) var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: -30% 0 auto 0;
  height: 70%;
  background: var(--glow);
  opacity: 0.6;
  pointer-events: none;
}
.page-header__inner { position: relative; display: grid; gap: var(--space-md); max-width: 48rem; }
.page-header h1 { font-size: var(--step-4); }
.page-header p { font-size: var(--step-1); color: var(--ink-soft); line-height: var(--leading-snug); max-width: 46ch; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  font-size: var(--step--1); color: var(--ink-faint);
}
.breadcrumbs a { color: var(--ink-faint); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { opacity: 0.5; }

/* ---- Conditions index --------------------------------------------------- */
.condition-group { margin-top: var(--space-2xl); }
.condition-group__head {
  display: flex; align-items: baseline; gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--hairline);
}
.condition-group__head h2 { font-size: var(--step-2); }
.condition-group__count { color: var(--ink-faint); font-size: var(--step-0); }

.condition-list {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.condition-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.condition-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber-300);
  text-decoration: none;
  color: inherit;
}
.condition-tile__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--step-0);
}
.condition-tile__arrow { color: var(--teal-500); flex: none; }

/* ---- Content-injection placeholder (visible only when a page has no md) - */
.injection-note {
  border: 1px dashed var(--note-border);
  background: var(--note-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: #5c451a;
}
.injection-note code {
  background: rgba(0,0,0,0.05);
  color: #4a3712;
}

/* ---- Steps -------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--space-lg); }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
}
.step__num {
  counter-increment: step;
  width: 2.5rem; height: 2.5rem;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-800);
  color: #fff;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
}
.step__num::before { content: counter(step); }
.step h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.step p { color: var(--ink-soft); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(150deg, var(--teal-800), var(--teal-900));
  color: #eaf1f2;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  display: grid;
  gap: var(--space-lg);
  justify-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 40rem; height: 40rem;
  top: -60%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(239,171,74,0.25), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; max-width: 20ch; position: relative; }
.cta-band p { color: #b9cace; max-width: 44ch; position: relative; }
.cta-band .btn-row { position: relative; justify-content: center; }

/* ---- Contact grid ------------------------------------------------------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

/* ---- Home: "how it works" numbered steps ------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  margin-top: var(--space-2xl);
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: var(--radius-pill);
  background: var(--teal-600, #16333f);
  color: #fff;
  font-weight: var(--weight-bold, 700);
  font-size: var(--step-0);
}
.step h3 { font-size: var(--step-1); }
.step p { color: var(--ink-soft); font-size: var(--step--1); line-height: var(--leading-normal); }

/* ---- Digital tests: grouped tile grid ---------------------------------- */
.test-group { margin-top: var(--space-2xl); }
.test-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  margin-top: var(--space-md);
}
.test-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 0.4rem);
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.test-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-300, #8fb3bb);
}
.test-tile__title { font-weight: var(--weight-bold, 700); font-size: var(--step-0); color: var(--ink); }
.test-tile__desc { color: var(--ink-soft); font-size: var(--step--1); line-height: var(--leading-normal); flex: 1; }
