/* BilanX Health: Lablet page (lablet.html). Loads after base.css. */

/* ---------- intro ---------- */
.page-hero { padding-block: clamp(56px, 9vw, 112px) clamp(56px, 8vw, 96px); }
.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 5.3vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.page-hero p { max-width: 44ch; margin: 24px 0 0; font-size: 1.15rem; color: rgba(255, 255, 255, .86); }

/* Measure -> View -> Understand: the first step is a pill, later steps follow an arrow. */
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 500;
}
.flow li { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; }
.flow li + li { padding-left: 0; border: 0; }
.flow li + li::before {
  content: "→";
  content: "→" / "";   /* decorative: hidden from screen readers where supported */
  margin-right: 12px;
  color: var(--signal);
}

/* ---------- steps: copy and figure swap sides on even steps ---------- */
.step { padding-block: clamp(56px, 8vw, 104px); }
.step:nth-of-type(odd) { background: var(--soft); }
.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  column-gap: clamp(16px, 2vw, 28px);
}
.copy { grid-column: 1 / span 5; }
.copy h2 { margin: 18px 0 .45em; }
.copy p { max-width: 40ch; font-size: 1.12rem; color: var(--muted); }
.n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--violet);
  border-radius: 50%;
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 500;
  color: var(--violet);
}

.fig {
  grid-column: 7 / -1;
  margin: 0;
  padding: clamp(12px, 2vw, 24px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.fig svg { width: 100%; height: auto; }
.fig text { font-family: var(--sans); font-size: 14px; fill: var(--muted); }
.fig .b { font-weight: 600; fill: var(--ink); }
.fig .big-num { font-family: var(--display); font-size: 44px; }
.fig figcaption { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

.step:nth-of-type(even) .copy { grid-column: 8 / -1; grid-row: 1; }
.step:nth-of-type(even) .fig { grid-column: 1 / span 6; grid-row: 1; background: var(--soft); }

/* ---------- contact ---------- */
.close { padding-block: clamp(56px, 8vw, 96px); background: var(--tint); }
.close h2 { max-width: 22ch; margin: 0 0 .45em; }

@media (max-width: 900px) {
  .copy,
  .fig,
  .step:nth-of-type(even) .copy,
  .step:nth-of-type(even) .fig { grid-column: 1 / -1; grid-row: auto; }
  .fig { margin-top: 32px; }
}
