/*
 * sleep-test.css - the Sleep Test page (/sleep-apnea-test) only.
 *
 * Self-contained on purpose. The site's utility stylesheet is generated by a
 * Tailwind build step, so a page that leant on new utilities would render
 * unstyled until someone re-ran that build. Everything here is plain CSS under
 * a .slp- prefix, loaded only on this page via the layout's pageCss hook, so
 * the page is correct on a fresh checkout and costs other pages nothing.
 *
 * Palette follows the existing CarePulse tokens (brand #00B0C0 / deep #00919B /
 * navy #0F4C5C / mist #BAEBF2) with a midnight ground added for the nocturnal
 * sections. No new brand colours.
 *
 * Contents
 *   1  tokens + primitives      6  equipment
 *   2  layout + typography      7  timeline / compare / picker
 *   3  buttons + links          8  report
 *   4  hero                     9  availability / pricing / faq
 *   5  body diagram + quiz     10  legal, sticky, motion, print
 */

.slp-page {
  --slp-night: #070c18;
  --slp-night-2: #0d1526;
  --slp-night-3: #16233d;
  --slp-ivory: #fbf8f3;
  --slp-light: #f8fcfd;
  --slp-brand: #00b0c0;
  --slp-deep: #00919b;
  --slp-navy: #0f4c5c;
  --slp-mist: #baebf2;
  --slp-ink: #334155;
  --slp-ink-soft: #64748b;
  --slp-line: #e2eef1;
  --slp-on-night: #e8eef7;
  --slp-on-night-soft: #97a7c0;

  /* Surfaces for the dark sections.
   *
   * These replace a set of rgba(255,255,255,.03-.06) overlays. On a #070c18
   * ground those composited to 1.05-1.13:1 - every card, panel, chip and
   * button was, measurably, not there. Text was always legible (8-16:1), so a
   * dark band read as sentences floating in a void with no structure.
   *
   * Same navy/mist hue the page already used; only the lightness moved.
   *   surface-1  1.56:1  card and panel fill - present, still calm
   *   surface-2  2.37:1  raised / selected state
   *   edge       3.04:1  decorative borders
   *   edge-strong 4.23:1 borders of things you can click (WCAG 1.4.11 wants 3:1)
   */
  --slp-surface-1: #233354;
  --slp-surface-2: #374d83;
  --slp-edge: #4c626c;
  --slp-edge-strong: #5f7983;
  --slp-warn: #f0b45e;
  --slp-pulse: #a78bfa;   /* third chart series only - 6.24:1 on the panel */

  /* Per-signal accent. Set inline from the admin row on each card, panel,
     waveform and hotspot; this is the fallback if one is ever missing. */
  --slp-accent: #22d3e4;
  --slp-at: 50%;          /* event position along the timeline, set per caption */
  --slp-d: 0s;            /* per-spark animation delay, set per particle */
  --slp-alert: #e4695a;
  --slp-r-lg: 22px;
  --slp-r-md: 16px;
  --slp-r-sm: 12px;
  --slp-fs-h1: clamp(2rem, 5vw, 3.6rem);   /* sized so line two stays whole in a 34rem column */
  --slp-fs-h2: clamp(1.55rem, 4.4vw, 2.6rem);
  --slp-fs-h3: clamp(1.15rem, 2.6vw, 1.5rem);
  --slp-fs-lead: clamp(1rem, 2.3vw, 1.125rem);
  --slp-pad: clamp(3rem, 8vw, 6rem);
}

/* `hidden` has to win over every display rule below it. Controls that only work
   with JavaScript ship hidden and are revealed by the script that drives them
   (see data-slp-jsonly in the view), and a class like .slp-chiprow{display:flex}
   would otherwise out-specify the UA's [hidden] rule and show a dead control. */
.slp-page [hidden] { display: none !important; }

/* ─── 1. Primitives ────────────────────────────────────────────────────── */

.slp-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.slp-page :focus-visible {
  outline: 3px solid var(--slp-brand);
  outline-offset: 3px;
  border-radius: 6px;
}
.slp-sec-dark :focus-visible,
.slp-hero :focus-visible { outline-color: var(--slp-mist); }

/* ─── 2. Layout + typography ───────────────────────────────────────────── */

.slp-wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.slp-wrap-narrow { max-width: 54rem; }
/* The hero and the signal explorer are full compositions rather than columns of
   prose, and at 74rem every label in them wrapped or ellipsised. */
.slp-wrap-wide { max-width: 88rem; }

.slp-sec { padding-block: var(--slp-pad); }
.slp-sec-tight { padding-block: clamp(2.25rem, 6vw, 4rem); }
.slp-sec-light { background: var(--slp-light); color: var(--slp-ink); }
.slp-sec-ivory { background: var(--slp-ivory); color: var(--slp-ink); }

/* Ivory (#fbf8f3) and light (#f8fcfd) are both a hair off white, so alternating
   them alone left nine sections reading as one continuous slab. The palette is
   right - what was missing is an edge. A hairline in the existing line colour
   marks where one pale section ends and the next begins; between two dark
   sections, or where a dark one meets a pale one, the tonal jump already does
   that job, so the rule is suppressed to avoid a seam floating in the dark. */
.slp-sec-light + .slp-sec-light,
.slp-sec-light + .slp-sec-ivory,
.slp-sec-ivory + .slp-sec-light,
.slp-sec-ivory + .slp-sec-ivory,
.slp-sec-light + .slp-legal,
.slp-sec-ivory + .slp-legal { border-top: 1px solid var(--slp-line); }
.slp-sec-dark {
  background:
    radial-gradient(60rem 30rem at 80% -10%, rgba(0, 176, 192, .14), transparent 65%),
    radial-gradient(48rem 26rem at -10% 110%, rgba(15, 76, 92, .35), transparent 70%),
    var(--slp-night);
  color: var(--slp-on-night);
}

.slp-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.slp-head-center { margin-inline: auto; text-align: center; }
.slp-center { text-align: center; }

/* The eyebrow doubles as the section's anchor mark: a short accent rule ahead
   of it gives every band a visible starting point, which is what stops one
   pale section from bleeding into the next. */
.slp-eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .7rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--slp-deep);
}
.slp-eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .55;
}
.slp-head-center .slp-eyebrow { justify-content: center; }
.slp-eyebrow-dark { color: var(--slp-mist); }

.slp-h1 {
  margin: 0 0 1rem;
  font-family: Poppins, system-ui, sans-serif;
  font-size: var(--slp-fs-h1);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
  color: #fff;
}
.slp-h1 span { display: block; }
.slp-h1-b { color: var(--slp-mist); }
.slp-h1-stop { font-style: normal; color: var(--slp-mist); }
@supports (-webkit-background-clip: text) {
  .slp-h1-b {
    background: linear-gradient(92deg, #35c8dd 0%, var(--slp-mist) 60%, #d9f4fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.slp-h2 {
  margin: 0 0 .85rem;
  font-family: Poppins, system-ui, sans-serif;
  font-size: var(--slp-fs-h2);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--slp-navy);
}
.slp-h2-dark { color: #fff; }
.slp-h2-quiet { font-size: clamp(1.35rem, 3.6vw, 2.1rem); text-align: center; margin-bottom: 2rem; }
.slp-h2-soft { color: var(--slp-deep); }
.slp-h2-soft-dark { color: var(--slp-mist); }
@supports (-webkit-background-clip: text) {
  .slp-sec-dark .slp-h2-soft-dark {
    background: linear-gradient(92deg, #35c8dd 0%, var(--slp-mist) 70%, #d9f4fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.slp-h3 {
  margin: 2.5rem 0 .5rem;
  font-family: Poppins, system-ui, sans-serif;
  font-size: var(--slp-fs-h3);
  font-weight: 600;
  color: var(--slp-navy);
}
.slp-h3-dark { color: #fff; }

.slp-lead {
  margin: 0;
  font-size: var(--slp-fs-lead);
  line-height: 1.65;
  color: var(--slp-ink-soft);
  max-width: 42rem;
}
.slp-lead-dark { color: var(--slp-on-night-soft); }
.slp-head-center .slp-lead { margin-inline: auto; }

.slp-hint { margin: 0 0 1rem; font-size: .875rem; color: var(--slp-ink-soft); }
.slp-note { font-size: .9rem; line-height: 1.6; color: var(--slp-ink-soft); }
.slp-note-dark { color: var(--slp-on-night-soft); }
.slp-fineprint { margin: .75rem 0 0; font-size: .78rem; line-height: 1.55; color: var(--slp-ink-soft); }
.slp-sec-dark .slp-fineprint { color: var(--slp-on-night-soft); }

.slp-term {
  margin: .15rem 0 .6rem;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--slp-deep);
}
.slp-sec-dark .slp-term { color: var(--slp-mist); }

/* Illustrative-data label. Never omitted: it is what keeps a decorative
   waveform from reading as somebody's actual recording. */
.slp-illus {
  margin: .8rem 0 0;
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--slp-on-night-soft);
}
.slp-illus::before { content: "\2022  "; }
.slp-sec-ivory .slp-illus, .slp-sec-light .slp-illus { color: var(--slp-ink-soft); }
.slp-illus-block { margin-top: 1.5rem; max-width: 42rem; }

.slp-crumbs { background: var(--slp-night); padding: .85rem 0 0; }
.slp-crumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; font-size: .8rem; color: var(--slp-on-night-soft); }
.slp-crumbs li + li::before { content: "/"; margin-right: .45rem; opacity: .55; }
.slp-crumbs a { color: var(--slp-mist); text-decoration: none; }
.slp-crumbs a:hover { text-decoration: underline; }

/* ─── 3. Buttons + links ───────────────────────────────────────────────── */

.slp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;                       /* comfortably over the 44px target */
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--slp-r-sm);
  font-size: .95rem; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.slp-btn:active { transform: translateY(1px); }
.slp-btn-wide { width: 100%; }

.slp-btn-primary { background: var(--slp-brand); color: #04222b; }
.slp-btn-primary:hover { background: var(--slp-mist); }

.slp-btn-ghost { background: var(--slp-surface-1); border-color: var(--slp-edge-strong); color: #fff; }
.slp-btn-ghost:hover { background: var(--slp-surface-2); }

.slp-btn-outline { background: #fff; border-color: var(--slp-line); color: var(--slp-navy); }
.slp-btn-outline:hover { border-color: var(--slp-brand); color: var(--slp-deep); }

.slp-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.slp-cta-center { justify-content: center; }
.slp-cta-row .slp-btn { flex: 1 1 13rem; }

.slp-link {
  display: inline-block;
  margin-top: .6rem;
  color: var(--slp-deep);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.slp-sec-dark .slp-link, .slp-card-dark .slp-link { color: var(--slp-mist); }
.slp-link:hover { opacity: .8; }

.slp-trustline { margin: 1.1rem 0 0; font-size: .85rem; color: var(--slp-on-night-soft); }
.slp-sec-light .slp-trustline, .slp-sec-ivory .slp-trustline { color: var(--slp-ink-soft); }
.slp-contactline { margin: 1rem 0 0; display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }

/* ─── 4. Hero ──────────────────────────────────────────────────────────── */

.slp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70rem 34rem at 78% -18%, rgba(0, 176, 192, .2), transparent 62%),
    radial-gradient(52rem 30rem at 0% 108%, rgba(15, 76, 92, .5), transparent 70%),
    linear-gradient(180deg, var(--slp-night) 0%, var(--slp-night-2) 100%);
  padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem);
  color: var(--slp-on-night);
}

/* A very cheap starfield: two repeating radial gradients, no images, no JS. */
.slp-hero-sky {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(1.2px 1.2px at 68% 14%, rgba(186, 235, 242, .5), transparent 60%),
    radial-gradient(1.6px 1.6px at 42% 62%, rgba(255, 255, 255, .32), transparent 60%),
    radial-gradient(1.2px 1.2px at 86% 48%, rgba(255, 255, 255, .38), transparent 60%),
    radial-gradient(1.3px 1.3px at 25% 82%, rgba(186, 235, 242, .34), transparent 60%);
  pointer-events: none;
}

.slp-hero-ridge {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: clamp(6rem, 14vw, 12rem);
  pointer-events: none;
}
.slp-hero-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); position: relative; }
.slp-hero-copy { min-width: 0; }

/* Shared inline-icon sizing for every glyph in the hero. */
.slp-i { width: 1.15rem; height: 1.15rem; display: block; flex: 0 0 auto; }
.slp-i-lg { width: 1.6rem; height: 1.6rem; }

/* Badge pill ------------------------------------------------------------ */
.slp-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.5rem;
  padding: .5rem 1.1rem;
  border: 1px solid var(--slp-edge);
  border-radius: 999px;
  background: var(--slp-surface-1);
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slp-on-night);
}
.slp-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--slp-brand);
  box-shadow: 0 0 0 4px rgba(0, 176, 192, .18);
}
.slp-badge-sep { width: 1px; height: 1rem; background: var(--slp-edge); }
.slp-badge-region { color: var(--slp-on-night-soft); font-weight: 500; }

/* Hero buttons ---------------------------------------------------------- */
.slp-btn-hero {
  gap: .85rem;
  padding: .85rem 1.25rem;
  min-height: 62px;
  text-align: left;
  justify-content: flex-start;
}
.slp-btn-ico { display: grid; place-items: center; flex: 0 0 auto; }
.slp-btn-txt { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.slp-btn-txt strong { font-size: .98rem; font-weight: 700; line-height: 1.25; }
.slp-btn-txt em { font-style: normal; font-size: .8rem; font-weight: 500; opacity: .8; line-height: 1.25; }
/* On the outline button the two lines are one label, not a label and a note. */
.slp-btn-ghost .slp-btn-txt em { font-size: .98rem; font-weight: 700; opacity: 1; }
.slp-btn-arrow { margin-left: auto; display: grid; place-items: center; transition: transform .18s ease; }
.slp-btn-hero:hover .slp-btn-arrow { transform: translateX(3px); }

/* Assurance strip ------------------------------------------------------- */
.slp-assure {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 1.6rem 0 0;
  padding: .35rem;
  border: 1px solid var(--slp-edge);
  border-radius: var(--slp-r-md);
  background: var(--slp-surface-1);
}
.slp-assure li {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .85rem;
  min-width: 0;
}
.slp-assure-ico {
  display: grid; place-items: center; flex: 0 0 auto;
  color: var(--slp-brand);
}
.slp-assure-txt { display: flex; flex-direction: column; min-width: 0; }
.slp-assure-txt strong { font-size: .88rem; font-weight: 600; color: #fff; line-height: 1.3; }
.slp-assure-txt em { font-style: normal; font-size: .76rem; color: var(--slp-on-night-soft); line-height: 1.35; text-wrap: balance; }

.slp-proof {
  display: flex; align-items: center; gap: .55rem;
  margin: 1rem 0 0;
  font-size: .85rem;
  color: var(--slp-on-night-soft);
}
.slp-proof .slp-i { color: var(--slp-mist); }

@media (min-width: 34rem) {
  .slp-assure { grid-template-columns: repeat(3, 1fr); }
  /* Dividers rather than gaps, so the strip reads as one object. */
  .slp-assure li + li { border-left: 1px solid var(--slp-edge); }
}

/* The night panel ------------------------------------------------------- */
.slp-night { margin: 0; min-width: 0; }
.slp-night-card {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--slp-edge);
  border-radius: var(--slp-r-lg);
  background: linear-gradient(180deg, #1b2743, #131c30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 24px 60px -30px rgba(0, 0, 0, .9);
}

.slp-night-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.1rem;
}
.slp-night-title {
  margin: 0;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slp-on-night);
}
.slp-stamp {
  flex: 0 0 auto;
  padding: .45rem .75rem;
  border: 1px solid var(--slp-edge);
  border-radius: var(--slp-r-sm);
  background: var(--slp-surface-1);
  text-align: right;
}
.slp-stamp strong {
  display: flex; align-items: center; gap: .4rem;
  font-size: .92rem; font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums;
}
.slp-stamp em { font-style: normal; font-size: .7rem; color: var(--slp-on-night-soft); }
.slp-stamp-moon { width: .95rem; height: .95rem; color: var(--slp-mist); }

.slp-night-body { display: grid; gap: 1rem; }

/* Signal picker --------------------------------------------------------- */
.slp-sigpicks { display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slp-sigpick {
  display: flex; align-items: center; gap: .6rem;
  min-height: 56px;
  padding: .6rem .7rem;
  border: 1px solid var(--slp-edge);
  border-radius: var(--slp-r-sm);
  background: var(--slp-surface-1);
  color: var(--slp-on-night);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.slp-sigpick:hover { border-color: var(--slp-edge-strong); }
.slp-sigpick.is-on {
  border-color: var(--slp-accent);
  background: var(--slp-surface-2);
  box-shadow: 0 0 18px -6px var(--slp-accent);
}
.slp-sigpick-ico { display: grid; place-items: center; flex: 0 0 auto; color: #93a3dd; }
.slp-sigpick.is-on .slp-sigpick-ico { color: var(--slp-accent); }
.slp-sigpick-txt { display: flex; flex-direction: column; min-width: 0; }
.slp-sigpick-txt strong { font-size: .84rem; font-weight: 600; color: #fff; line-height: 1.25; }
.slp-sigpick-txt em {
  font-style: normal; font-size: .7rem; color: var(--slp-on-night-soft); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* The state dot is a second, non-colour cue for the selected card. */
.slp-sigpick-dot {
  margin-left: auto; flex: 0 0 auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--slp-edge-strong);
}
.slp-sigpick.is-on { border-color: var(--slp-accent); }
.slp-sigpick.is-on .slp-sigpick-dot { background: var(--slp-accent); box-shadow: 0 0 0 3px rgba(0, 176, 192, .25); }

/* Charts ---------------------------------------------------------------- */
.slp-charts { min-width: 0; display: grid; gap: .55rem; position: relative; }
.slp-charts-ghost {
  position: absolute; top: -1.5rem; right: -.5rem;
  width: min(58%, 20rem); height: auto;
  pointer-events: none;
  z-index: 0;
}
.slp-chart, .slp-axis { position: relative; z-index: 1; }
.slp-chart { min-width: 0; transition: opacity .2s ease; }
.slp-chart-key {
  display: flex; align-items: baseline; gap: .4rem;
  margin: 0 0 .25rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.slp-chart-key em { font-style: normal; font-weight: 500; color: var(--slp-on-night-soft); letter-spacing: .04em; }
.slp-chart-plot { position: relative; padding-left: 2.1rem; }
.slp-chart-svg { display: block; width: 100%; height: auto; }

.slp-chart-ticks { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0 auto 0 0; width: 2.1rem; }
.slp-chart-ticks li {
  position: absolute; right: .35rem;
  transform: translateY(-50%);
  font-size: .6rem; font-variant-numeric: tabular-nums;
  color: var(--slp-on-night-soft);
}

.slp-grid { stroke: #2b3a57; stroke-width: 1; }
.slp-mark { stroke: var(--slp-edge-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.slp-chart-airflow { color: var(--slp-brand); }
.slp-chart-oxygen  { color: var(--slp-warn); }
.slp-chart-pulse   { color: var(--slp-pulse); }
.slp-chart-airflow .slp-trace  { stroke: var(--slp-brand); }
.slp-chart-airflow .slp-markdot { fill: var(--slp-brand); }
.slp-chart-airflow .slp-chart-key > span { color: var(--slp-brand); }
.slp-chart-oxygen  .slp-trace  { stroke: var(--slp-warn); }
.slp-chart-oxygen  .slp-markdot { fill: var(--slp-warn); }
.slp-chart-oxygen  .slp-chart-key > span { color: var(--slp-warn); }
.slp-chart-pulse   .slp-trace  { stroke: var(--slp-pulse); }
.slp-chart-pulse   .slp-markdot { fill: var(--slp-pulse); }
.slp-chart-pulse   .slp-chart-key > span { color: var(--slp-pulse); }
.slp-markdot { stroke: #131c30; stroke-width: 2; }
/* A soft ring behind each marker dot, as in the design. */
.slp-markglow { fill: currentColor; opacity: .28; }

/* Selecting a signal dims the traces it does not describe. Opacity only -
   nothing is hidden, and a screen reader sees no change. */
.slp-charts.is-filtered .slp-chart { opacity: .35; }
.slp-charts.is-filtered .slp-chart.is-focus { opacity: 1; }

.slp-axis li.is-mark { color: #fff; font-weight: 700; }
.slp-axis {
  list-style: none; margin: .15rem 0 0; padding: 0 0 0 2.1rem;
  display: flex; justify-content: space-between;
  font-size: .68rem; color: var(--slp-on-night-soft);
  font-variant-numeric: tabular-nums;
}

/* Timeline chips -------------------------------------------------------- */
.slp-beats {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: .35rem;
  display: grid;
  gap: 0;
  border: 1px solid var(--slp-edge);
  border-radius: var(--slp-r-md);
  background: var(--slp-surface-1);
}
.slp-beat {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .1rem .55rem;
  padding: .6rem .7rem;
  border-radius: 10px;
  font-size: .8rem;
  transition: background-color .35s ease;
}
.slp-beat-dot {
  grid-row: 1; grid-column: 1;
  align-self: center;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--slp-edge-strong);
  transition: background-color .35s ease, box-shadow .35s ease;
}
/* Tone follows the chip's own story - stable, irregular, oxygen falling,
   resumed - so the row reads as a sequence even before the cycler runs.
   Never the only cue: every chip carries its time and its words. */
.slp-beat-calm  .slp-beat-dot { background: var(--slp-brand); }
.slp-beat-watch .slp-beat-dot { background: var(--slp-warn); }
.slp-beat-alert .slp-beat-dot { background: var(--slp-alert); }
.slp-beat-time {
  grid-row: 1; grid-column: 2;
  font-variant-numeric: tabular-nums; font-weight: 700; color: #fff;
}
.slp-beat-text { grid-row: 2; grid-column: 2; color: var(--slp-on-night-soft); line-height: 1.35; text-wrap: balance; }
.slp-beat { border: 1px solid transparent; }
.slp-beat.is-live { background: var(--slp-surface-2); border-color: var(--slp-brand); }
.slp-beat.is-live .slp-beat-dot { box-shadow: 0 0 0 3px rgba(0, 176, 192, .25); }
.slp-beat.is-live .slp-beat-text { color: var(--slp-on-night); }

.slp-night-foot {
  display: flex; align-items: center; gap: .5rem;
  margin: .9rem 0 0;
  font-size: .74rem;
  color: var(--slp-on-night-soft);
}
.slp-night-foot .slp-i { width: 1rem; height: 1rem; }

/* Feature bar under the hero -------------------------------------------- */
.slp-herofeat {
  list-style: none;
  display: grid; gap: 0;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: .35rem;
  border: 1px solid var(--slp-edge);
  border-radius: var(--slp-r-md);
  background: var(--slp-surface-1);
  position: relative;
}
.slp-herofeat li {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem .9rem;
  min-width: 0;
}
.slp-herofeat-ico {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--slp-edge-strong);
  background: var(--slp-surface-2);
  color: var(--slp-mist);
}
.slp-herofeat-txt { display: flex; flex-direction: column; min-width: 0; }
.slp-herofeat-txt strong { font-size: .86rem; font-weight: 600; color: #fff; line-height: 1.3; text-wrap: balance; }
.slp-herofeat-txt em { font-style: normal; font-size: .75rem; color: var(--slp-on-night-soft); line-height: 1.35; }

/* Very narrow phones: the panel title and the time stamp stop competing for
   one row and stack instead. */
@media (max-width: 26rem) {
  .slp-night-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .slp-stamp { text-align: left; }
  .slp-sigpicks { grid-template-columns: 1fr; }
}
@media (min-width: 40rem) {
  .slp-herofeat { grid-template-columns: repeat(2, 1fr); }
  .slp-beats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 52rem) {
  .slp-night-body { grid-template-columns: 14.5rem 1fr; align-items: start; }
  .slp-sigpicks { grid-template-columns: 1fr; }
  .slp-beats { grid-template-columns: repeat(4, 1fr); }
  .slp-beat { grid-template-columns: auto 1fr; }
}
@media (min-width: 62rem) {
  .slp-hero-grid { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); align-items: center; }
  .slp-herofeat { grid-template-columns: repeat(5, 1fr); }
  .slp-herofeat li + li,
  .slp-beats .slp-beat + .slp-beat { position: relative; }
  .slp-herofeat li + li::before {
    content: ""; position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 1px; background: var(--slp-edge);
  }
}
@media (min-width: 76rem) {
  .slp-hero-grid { grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); }
}

/* ─── 5. Signal explorer ───────────────────────────────────────────────── */

/* Header: copy on the left, the whole signal grid on the right. */
.slp-night-top { display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.slp-night-intro { min-width: 0; }
.slp-night-intro .slp-h2 { margin-bottom: 1rem; }
.slp-night-pick { min-width: 0; }

.slp-sigcards { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Each card carries its signal's accent in --slp-accent, set inline from the
   admin row, so a new signal needs no new rule. */
.slp-sigcard {
  display: flex; align-items: center; gap: .7rem;
  min-height: 64px;
  padding: .7rem 1.1rem .7rem .95rem;
  border: 1px solid var(--slp-edge);
  border-radius: 999px;               /* stadium pill, as designed */
  background: var(--slp-surface-1);
  color: var(--slp-on-night);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.slp-sigcard:hover { border-color: var(--slp-edge-strong); transform: translateY(-1px); }
.slp-sigcard[aria-selected="true"] {
  border-color: var(--slp-accent);
  background: var(--slp-surface-2);
  box-shadow: 0 0 0 1px var(--slp-accent), 0 0 22px -6px var(--slp-accent);
}
@supports (background: color-mix(in srgb, red 10%, blue)) {
  .slp-sigcard[aria-selected="true"] {
    background: color-mix(in srgb, var(--slp-accent) 13%, var(--slp-surface-1));
  }
}
.slp-sigcard-ico {
  display: grid; place-items: center; flex: 0 0 auto;
  color: var(--slp-accent);
}
.slp-sigcard-txt { display: flex; flex-direction: column; min-width: 0; }
.slp-sigcard-txt strong {
  font-size: clamp(.8rem, 1vw, .9rem); font-weight: 600; color: #fff; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slp-sigcard-txt em {
  font-style: normal; font-size: .74rem; color: var(--slp-on-night-soft); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.slp-night-hint {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.1rem 0 0;
  font-size: .82rem; color: var(--slp-on-night-soft);
}
.slp-night-hint-rule { flex: 1 1 auto; height: 1px; background: var(--slp-edge); }
.slp-night-hint-txt { display: inline-flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.slp-night-hint-txt .slp-i { color: var(--slp-mist); }

/* Main row: figure on the left, detail panel on the right. */
.slp-night-main { display: grid; gap: clamp(1.5rem, 3vw, 2rem); align-items: start; }
.slp-figure { min-width: 0; }

.slp-nightfeat { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.slp-figure-card {
  position: relative;
  border: 1px solid var(--slp-edge);
  border-radius: var(--slp-r-lg);
  background: linear-gradient(180deg, #101a2e, #070c18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.slp-figure-img,
.slp-body-svg { display: block; width: 100%; height: auto; }
/* Inside the card the figure is the card, so it drops the standalone framing
   it carries elsewhere. */
.slp-figure-card .slp-body-svg { max-width: none; border: 0; border-radius: 0; background: none; }

.slp-dot-halo { fill: var(--slp-accent); fill-opacity: .18; transition: fill-opacity .25s ease; }
.slp-dot-core { fill: var(--slp-accent); transition: fill .25s ease; }
.slp-dot.is-on .slp-dot-halo { fill-opacity: .45; }
.slp-dot.is-on .slp-dot-core { fill: #fff; }

.slp-enlarge {
  position: absolute; top: .9rem; right: .9rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 40px;
  padding: .5rem .85rem;
  border: 1px solid var(--slp-edge-strong);
  border-radius: 12px;
  background: rgba(7, 12, 24, .72);
  backdrop-filter: blur(6px);
  color: var(--slp-on-night);
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
}
.slp-enlarge:hover { border-color: var(--slp-mist); color: #fff; }
.slp-enlarge .slp-i { width: 1rem; height: 1rem; }

/* Waveform strip, overlaid on the foot of the figure. */
.slp-waves { position: relative; margin: -6.5rem .9rem .9rem; }
.slp-wavebox {
  padding: .85rem 1rem 1.05rem;
  border: 1px solid var(--slp-edge);
  border-radius: var(--slp-r-md);
  background: linear-gradient(180deg, rgba(9, 16, 31, .82), rgba(6, 10, 20, .94));
  backdrop-filter: blur(6px);
}
.slp-wavebox + .slp-wavebox { margin-top: .6rem; }
.slp-wavebox-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.slp-wavebox-key {
  margin: 0;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slp-accent);
}
.slp-wavebox-dur {
  display: inline-flex; align-items: center; gap: .35rem;
  float: right;                       /* sits over the tail of the trace */
  position: relative; z-index: 1;
  margin: .35rem 0 -1.3rem;
  font-size: .68rem; color: var(--slp-on-night-soft);
  font-variant-numeric: tabular-nums;
}
.slp-wavebox-dur .slp-i { width: .85rem; height: .85rem; }

.slp-wavesvg { display: block; width: 100%; height: 58px; }
.slp-wavepath { stroke: var(--slp-accent); }

/* The trace draws itself in once, left to right. Purely decorative, so it is
   dropped entirely under reduced-motion. */
.slp-js .slp-wavebox.is-on .slp-wavepath {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: slp-draw 1.5s ease-out forwards;
}
@keyframes slp-draw { to { stroke-dashoffset: 0; } }

.slp-js .slp-breath { animation: slp-breathe 5s ease-in-out infinite; transform-origin: 400px 196px; }
@keyframes slp-breathe {
  0%, 100% { opacity: .75; transform: scale(.98); }
  50%      { opacity: 1;   transform: scale(1.02); }
}
.slp-js .slp-spark { animation: slp-drift 3.6s ease-in-out infinite; animation-delay: var(--slp-d, 0s); }
@keyframes slp-drift {
  0%   { opacity: 0; transform: translateX(-14px); }
  35%  { opacity: .9; }
  100% { opacity: 0; transform: translateX(26px); }
}

.slp-events {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem .75rem;
  margin: .7rem 0 0; padding: 0;
}
.slp-event { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.slp-event-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; }
.slp-event-txt {
  font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Wide enough for four captions: the list becomes the timeline itself. Each
   dot sits at --slp-at along a rule, over the part of the trace it describes,
   with its caption centred underneath. */
@media (min-width: 34rem) {
  .slp-events {
    display: block;
    position: relative;
    margin-top: 1.1rem;
    padding-top: 1.05rem;
  }
  .slp-events::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0;
    height: 2px; border-radius: 2px;
    background: var(--slp-edge-strong);
    opacity: .5;
  }
  .slp-event {
    position: absolute; top: 0;
    left: var(--slp-at, 50%);
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .55rem;
    max-width: 8.5rem;
  }
  .slp-event-dot {
    width: 10px; height: 10px;
    margin-top: -4px;
    box-shadow: 0 0 0 3px rgba(6, 10, 20, .9);
  }
  .slp-event-txt { white-space: normal; text-align: center; overflow: visible; line-height: 1.3; text-wrap: balance; }
  /* The row is absolutely positioned, so the box needs its own floor. */
  .slp-events { min-height: 3.1rem; }
}
/* Tone tracks the arc the captions describe, and each still has its own words. */
.slp-event-calm  .slp-event-dot { background: var(--slp-brand); }
.slp-event-calm  .slp-event-txt { color: var(--slp-brand); }
.slp-event-watch .slp-event-dot { background: var(--slp-warn); }
.slp-event-watch .slp-event-txt { color: var(--slp-warn); }
.slp-event-alert .slp-event-dot { background: var(--slp-alert); }
.slp-event-alert .slp-event-txt { color: var(--slp-alert); }

/* Detail panel. */
.slp-signals { min-width: 0; }
.slp-panel {
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--slp-edge);
  border-radius: var(--slp-r-lg);
  background: var(--slp-surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.slp-panel + .slp-panel { margin-top: .75rem; }
.slp-panel-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.slp-panel-ico {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 3.6rem; height: 3.6rem;
  border-radius: 50%;
  border: 1.5px solid var(--slp-accent);
  background: rgba(0, 0, 0, .3);
  color: var(--slp-accent);
  box-shadow: 0 0 22px -8px var(--slp-accent);
}
.slp-panel-ico .slp-i { width: 1.8rem; height: 1.8rem; }
.slp-panel-title {
  margin: 0;
  font-family: Poppins, system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem); font-weight: 600; letter-spacing: -.01em; color: #fff;
}
.slp-panel-head .slp-term { margin: .2rem 0 0; letter-spacing: .16em; font-size: .8rem; color: var(--slp-accent); }
.slp-panel-body { margin: 0 0 .9rem; font-size: 1rem; line-height: 1.75; color: var(--slp-on-night); }
.slp-panel-body:last-child { margin-bottom: 0; }

.slp-panel-sec { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--slp-edge); }
.slp-panel-label {
  display: flex; align-items: center; gap: .5rem;
  margin: 0 0 .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slp-mist);
}
.slp-panel-label .slp-i { width: 1rem; height: 1rem; }

/* Enlarged view. */
.slp-zoom {
  width: min(64rem, 94vw);
  max-width: none;
  padding: 0;
  border: 1px solid var(--slp-edge);
  border-radius: var(--slp-r-lg);
  background: var(--slp-night-2);
  color: var(--slp-on-night);
  overflow: visible;
}
.slp-zoom::backdrop { background: rgba(3, 6, 14, .82); }
.slp-zoom-inner { position: relative; padding: clamp(1rem, 3vw, 1.75rem); }
.slp-zoom-stage svg, .slp-zoom-stage img { display: block; width: 100%; height: auto; border-radius: var(--slp-r-md); }
.slp-zoom-close {
  position: absolute; top: -1rem; right: -1rem; z-index: 2;
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--slp-edge-strong);
  border-radius: 50%;
  background: var(--slp-surface-2);
  color: #fff;
  cursor: pointer;
}
.slp-zoom-close:hover { border-color: var(--slp-mist); }

@media (min-width: 34rem) {
  .slp-events { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 56rem) {
  .slp-sigcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slp-night-main { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}
@media (min-width: 72rem) {
  .slp-night-top { grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); align-items: start; }
}

/* ─── Quiz ─────────────────────────────────────────────────────────────── */

.slp-quiz {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--slp-line);
  border-radius: var(--slp-r-lg);
  background: #fff;
  box-shadow: 0 18px 44px -34px rgba(15, 76, 92, .55);
}
.slp-quiz-intro { text-align: center; }
.slp-quiz-intro .slp-btn { max-width: 24rem; margin-inline: auto; }

/* The questions, always on the page: the whole assessment for anyone without
   scripting, and what a crawler indexes. Collapsed so it does not compete with
   the stepper. */
.slp-quiz-peek { margin-top: 1.25rem; }
.slp-quiz-peek > summary { font-size: .92rem; }
.slp-quiz-static { margin: 0; padding-left: 1.25rem; display: grid; gap: .85rem; }
.slp-quiz-static li { line-height: 1.55; }
.slp-quiz-static strong { display: block; color: var(--slp-navy); }
.slp-quiz-static span { font-size: .875rem; color: var(--slp-ink-soft); }

.slp-q-bar {
  display: flex; align-items: center; gap: .85rem;
  margin-bottom: 1.5rem;
  font-size: .82rem; color: var(--slp-ink-soft);
}
.slp-q-track { flex: 1; height: 6px; border-radius: 999px; background: var(--slp-line); overflow: hidden; }
.slp-q-fill { display: block; height: 100%; border-radius: 999px; background: var(--slp-brand); transition: width .3s ease; }
.slp-q-count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--slp-navy); }

.slp-q-title {
  margin: 0 0 .5rem;
  font-family: Poppins, system-ui, sans-serif;
  font-size: clamp(1.2rem, 3.2vw, 1.6rem);
  font-weight: 600; line-height: 1.25;
  color: var(--slp-navy);
}
.slp-q-help { margin: 0 0 1.35rem; font-size: .9rem; line-height: 1.6; color: var(--slp-ink-soft); }

.slp-q-opts { display: grid; gap: .6rem; }
.slp-opt {
  display: flex; align-items: center; gap: .8rem;
  min-height: 56px;
  width: 100%;
  padding: .9rem 1.1rem;
  border: 1.5px solid var(--slp-line);
  border-radius: var(--slp-r-md);
  background: #fff;
  color: var(--slp-navy);
  font-size: 1rem; font-weight: 600; text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.slp-opt:hover { border-color: var(--slp-brand); background: #f2fbfc; }
.slp-opt:active { transform: translateY(1px); }
.slp-opt-key {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--slp-line);
  font-size: .78rem; font-weight: 700; color: var(--slp-navy);
}
.slp-opt-unsure { font-weight: 500; color: var(--slp-ink-soft); }

.slp-q-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; }
.slp-textbtn {
  min-height: 44px; padding: .5rem .75rem;
  border: 0; border-radius: var(--slp-r-sm);
  background: none; color: var(--slp-ink-soft);
  font-size: .9rem; font-weight: 600; cursor: pointer;
}
.slp-textbtn:hover { color: var(--slp-navy); }
.slp-textbtn[hidden] { display: none; }

/* Inline BMI helper - runs entirely in the browser, stores nothing. */
.slp-aid { margin: 0 0 1.25rem; padding: .9rem 1rem; border: 1px dashed var(--slp-line); border-radius: var(--slp-r-md); background: var(--slp-light); }
.slp-aid-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.slp-aid label { display: grid; gap: .25rem; font-size: .8rem; color: var(--slp-ink-soft); }
.slp-aid input {
  min-height: 44px; width: 7.5rem; padding: .5rem .7rem;
  border: 1px solid var(--slp-line); border-radius: 10px;
  font-size: 1rem; color: var(--slp-navy); background: #fff;
}
.slp-aid-out { margin: .6rem 0 0; font-size: .85rem; font-weight: 600; color: var(--slp-navy); min-height: 1.2em; }

/* Result */
.slp-result-band {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem; margin-bottom: 1rem;
  border-radius: 999px;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
/* Colour is never the only cue: each band carries its own text label. */
.slp-band-calm  { background: #e6f7f9; color: #05606a; }
.slp-band-watch { background: #fdf1de; color: #8a5a10; }
.slp-band-alert { background: #fdeae7; color: #96271a; }
.slp-band-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

.slp-score { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 1rem; }
.slp-score-num { font-family: Poppins, system-ui, sans-serif; font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--slp-navy); font-variant-numeric: tabular-nums; }
.slp-score-max { font-size: .95rem; color: var(--slp-ink-soft); }
.slp-result-body { margin: 0 0 1.1rem; font-size: var(--slp-fs-lead); line-height: 1.65; color: var(--slp-ink); }
.slp-recap { margin: 0 0 1.1rem; padding: .9rem 1.05rem; border-left: 3px solid var(--slp-brand); background: var(--slp-light); border-radius: 0 var(--slp-r-sm) var(--slp-r-sm) 0; }
.slp-recap p { margin: 0 0 .5rem; line-height: 1.6; }
.slp-recap p:last-child { margin-bottom: 0; font-size: .9rem; color: var(--slp-ink-soft); }

.slp-disclaimer {
  margin: 1.5rem 0 0; padding-top: 1.25rem;
  border-top: 1px solid var(--slp-line);
  font-size: .82rem; line-height: 1.6; color: var(--slp-ink-soft);
}

/* ─── Chain + symptoms ─────────────────────────────────────────────────── */

.slp-chain {
  list-style: none; margin: 0 0 clamp(2rem, 5vw, 3rem); padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
}
.slp-chain-step {
  display: inline-flex; align-items: center;
  padding: .5rem 1rem;
  border: 1px solid var(--slp-line); border-radius: 999px;
  background: #fff;
  font-size: .875rem; font-weight: 600; color: var(--slp-navy);
}
.slp-chain-step + .slp-chain-step::before {
  content: ""; flex: 0 0 auto;
  width: 14px; height: 8px; margin: 0 .8rem 0 -.55rem;
  background: var(--slp-brand);
  clip-path: polygon(0 30%, 60% 30%, 60% 0, 100% 50%, 60% 100%, 60% 70%, 0 70%);
  opacity: .55;
}

.slp-sym-grid { display: grid; gap: .7rem; }
.slp-sym {
  border: 1px solid var(--slp-line);
  border-radius: var(--slp-r-md);
  background: #fff;
  overflow: hidden;
}
.slp-sym > summary,
.slp-qa > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-weight: 600; color: var(--slp-navy);
  list-style: none;
}
.slp-sym > summary::-webkit-details-marker,
.slp-qa > summary::-webkit-details-marker { display: none; }
.slp-sym-chev {
  flex: 0 0 auto; width: 11px; height: 11px;
  border-right: 2px solid var(--slp-deep); border-bottom: 2px solid var(--slp-deep);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s ease;
}
.slp-sym[open] .slp-sym-chev, .slp-qa[open] .slp-sym-chev { transform: rotate(225deg) translate(-2px, -2px); }
.slp-sym-body, .slp-qa-body { padding: 0 1.1rem 1.15rem; }
.slp-sym-body p, .slp-qa-body p { margin: 0 0 .6rem; line-height: 1.65; }
.slp-sym-body p:last-child, .slp-qa-body p:last-child { margin-bottom: 0; }
.slp-sym-note { font-size: .875rem; color: var(--slp-ink-soft); }

/* align-items:start, or opening one card stretches its row-mate into a tall
   empty box beside it. */
@media (min-width: 40rem) { .slp-sym-grid { grid-template-columns: repeat(2, 1fr); align-items: start; } }

/* ─── Partner ──────────────────────────────────────────────────────────── */

.slp-talk { display: grid; gap: 1rem; margin-bottom: 2rem; }
.slp-bubble {
  margin: 0; padding: 1.25rem 1.4rem;
  border-radius: var(--slp-r-lg);
  border: 1px solid var(--slp-edge);
  background: var(--slp-surface-1);
}
.slp-bubble p { margin: 0 0 .6rem; font-family: Poppins, system-ui, sans-serif; font-size: clamp(1.1rem, 3vw, 1.45rem); line-height: 1.35; color: #fff; }
.slp-bubble p::before { content: "\201C"; }
.slp-bubble p::after { content: "\201D"; }
.slp-bubble cite { font-style: normal; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slp-mist); }
.slp-bubble-them { background: var(--slp-surface-2); border-color: var(--slp-edge-strong); }
@media (min-width: 44rem) {
  .slp-talk { grid-template-columns: 1fr 1fr; align-items: start; }
  .slp-bubble-them { margin-top: 2rem; }
}

/* ─── Cards ────────────────────────────────────────────────────────────── */

.slp-cards { display: grid; gap: 1rem; }
.slp-card {
  padding: 1.4rem;
  border: 1px solid var(--slp-line);
  border-radius: var(--slp-r-md);
  background: #fff;
}
.slp-card p { margin: 0; line-height: 1.65; color: var(--slp-ink); }
.slp-card-title { margin: 0 0 .3rem; font-family: Poppins, system-ui, sans-serif; font-size: 1.08rem; font-weight: 600; color: var(--slp-navy); }
.slp-card-dark {
  border-color: var(--slp-edge);
  background: var(--slp-surface-1);
}
.slp-card-dark .slp-card-title { color: #fff; }
.slp-card-dark p { color: var(--slp-on-night); }
.slp-card-step { position: relative; padding-top: 2.6rem; }
.slp-step-badge {
  position: absolute; top: 1.2rem; left: 1.4rem;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--slp-mist); color: var(--slp-navy);
  font-size: .78rem; font-weight: 700;
}
@media (min-width: 44rem) { .slp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  .slp-cards { grid-template-columns: repeat(3, 1fr); }
  .slp-cards-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ─── 6. Equipment ─────────────────────────────────────────────────────── */

.slp-equip-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.slp-equip-figure { min-width: 0; }
.slp-equip-stage {
  position: relative;
  border: 1px solid var(--slp-line);
  border-radius: var(--slp-r-lg);
  background: #fff;
  overflow: hidden;
}
.slp-equip-img { display: block; width: 100%; height: auto; }
.slp-equip-ph {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(45deg, #f4fafb 0 12px, #eef6f8 12px 24px);
}
/* Fills the frame exactly, so the schematic's coordinate space and the
   hotspots' percentage positions describe the same box. */
.slp-equip-ph svg { display: block; width: 100%; height: 100%; }

.slp-hot {
  position: absolute;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  display: grid; place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--slp-deep);
  color: #fff;
  font-size: .8rem; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(15, 76, 92, .6);
  transition: transform .18s ease, background-color .18s ease;
}
.slp-hot:hover, .slp-hot.is-on { background: var(--slp-brand); transform: scale(1.15); }

.slp-equip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; counter-reset: none; }
.slp-equip-item {
  display: flex; gap: .9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--slp-line);
  border-radius: var(--slp-r-md);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.slp-equip-item.is-on { border-color: var(--slp-brand); box-shadow: 0 10px 26px -20px rgba(0, 145, 155, .8); }
.slp-equip-num {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--slp-mist); color: var(--slp-navy);
  font-size: .78rem; font-weight: 700;
}
.slp-equip-title { margin: 0 0 .2rem; font-size: 1rem; font-weight: 600; color: var(--slp-navy); }
.slp-equip-item p { margin: 0; line-height: 1.6; font-size: .92rem; color: var(--slp-ink); }
@media (min-width: 60rem) { .slp-equip-grid { grid-template-columns: 1.05fr .95fr; align-items: start; } }

/* ─── 7. Timeline / compare / picker ───────────────────────────────────── */

.slp-timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.5rem; }
.slp-timeline::before {
  content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--slp-brand), rgba(0, 176, 192, .12));
}
.slp-tl-item { position: relative; display: flex; gap: 1.1rem; }
.slp-tl-num {
  position: relative; z-index: 1;
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--slp-brand);
  background: var(--slp-ivory);
  font-size: .8rem; font-weight: 700; color: var(--slp-deep);
  font-variant-numeric: tabular-nums;
}
.slp-tl-title { margin: .4rem 0 .3rem; font-family: Poppins, system-ui, sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--slp-navy); }
.slp-tl-body p { margin: 0; line-height: 1.65; max-width: 40rem; }

.slp-compare { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.slp-comp { padding: 1.6rem; border: 1px solid var(--slp-line); border-radius: var(--slp-r-lg); background: #fff; }
.slp-comp-home { border-color: rgba(0, 176, 192, .38); box-shadow: 0 16px 40px -34px rgba(0, 145, 155, .9); }
.slp-comp-title { margin: 0 0 .2rem; font-family: Poppins, system-ui, sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--slp-navy); }
.slp-comp-sub { margin: 0 0 1rem; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--slp-deep); }
@media (min-width: 48rem) { .slp-compare { grid-template-columns: 1fr 1fr; } }

.slp-ticks, .slp-crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.slp-ticks li, .slp-crosses li { position: relative; padding-left: 1.75rem; line-height: 1.6; }
.slp-ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--slp-deep); border-bottom: 2px solid var(--slp-deep);
  transform: rotate(-45deg);
}
.slp-crosses li { color: var(--slp-ink-soft); }
.slp-crosses li::before {
  content: "\00D7"; position: absolute; left: .15rem; top: -.05em;
  font-size: 1.05rem; line-height: 1.6; color: var(--slp-ink-soft);
}

.slp-picker { margin-bottom: 2rem; }
.slp-picker-stage:empty { display: none; }
.slp-pick-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--slp-edge);
  border-radius: var(--slp-r-lg);
  background: var(--slp-surface-1);
}
.slp-pick-q { margin: 0 0 1.1rem; font-family: Poppins, system-ui, sans-serif; font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 600; color: #fff; }
.slp-pick-opts { display: grid; gap: .55rem; }
.slp-pick-opt {
  min-height: 52px; width: 100%;
  padding: .85rem 1.1rem;
  border: 1.5px solid var(--slp-edge-strong);
  border-radius: var(--slp-r-md);
  background: var(--slp-surface-1);
  color: #fff;
  font-size: .98rem; font-weight: 600; text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.slp-pick-opt:hover { border-color: var(--slp-mist); background: var(--slp-surface-2); }
.slp-pick-result-label { margin: 0 0 .35rem; font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--slp-mist); }
.slp-cards-dark { margin-top: 1rem; }
.slp-card-dark.is-picked { border-color: var(--slp-mist); background: rgba(0, 176, 192, .14); }
.slp-picked-flag {
  display: inline-block; margin-bottom: .5rem;
  padding: .2rem .6rem; border-radius: 999px;
  background: var(--slp-mist); color: #04222b;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* ─── 8. Report ────────────────────────────────────────────────────────── */

.slp-report {
  margin: 0 0 2rem;
  padding: clamp(1.1rem, 3.5vw, 1.9rem);
  border: 1px solid var(--slp-line);
  border-radius: var(--slp-r-lg);
  background: #fff;
  box-shadow: 0 20px 48px -40px rgba(15, 76, 92, .8);
}
.slp-report-badge {
  display: inline-block; margin-bottom: 1.25rem;
  padding: .35rem .85rem; border-radius: 999px;
  background: #fdf1de; color: #8a5a10;
  font-size: .76rem; font-weight: 700; letter-spacing: .04em;
}
.slp-report-rows { display: grid; gap: .9rem; margin-bottom: 1.5rem; }
.slp-rrow { display: grid; gap: .35rem; align-items: center; }
.slp-rlabel { display: flex; align-items: baseline; gap: .5rem; }
.slp-rlabel span { font-size: .85rem; font-weight: 600; color: var(--slp-navy); }
.slp-rlabel em { font-style: normal; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--slp-ink-soft); }
.slp-rchart { display: block; width: 100%; height: 54px; background: var(--slp-light); border-radius: 10px; }
@media (min-width: 44rem) {
  .slp-rrow { grid-template-columns: 9.5rem 1fr; gap: 1rem; }
  .slp-rlabel { flex-direction: column; gap: .1rem; }
}

/* min-height reserves the tallest definition's box, so picking a term swaps the
   text in place instead of shoving the AHI block below it down the page. */
.slp-termout { margin-top: 1rem; min-height: 7.5rem; }
.slp-deflist { margin: 0; display: grid; gap: .75rem; }
.slp-deflist dt { font-weight: 700; color: var(--slp-navy); }
.slp-deflist dd { margin: .2rem 0 0; line-height: 1.6; color: var(--slp-ink); }
.slp-termout.is-live { padding: 1rem 1.15rem; border: 1px solid var(--slp-line); border-radius: var(--slp-r-md); background: var(--slp-light); }

.slp-ahi { max-width: 44rem; }
.slp-ahi p { line-height: 1.7; }

/* ─── 9. Availability / pricing / faq ──────────────────────────────────── */

.slp-avail {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--slp-line);
  border-radius: var(--slp-r-lg);
  background: #fff;
}
.slp-field { display: block; margin-bottom: 1.25rem; }
.slp-field-label { display: block; margin-bottom: .4rem; font-size: .85rem; font-weight: 600; color: var(--slp-navy); }
.slp-select {
  width: 100%; min-height: 52px;
  padding: .7rem 1rem;
  border: 1.5px solid var(--slp-line); border-radius: var(--slp-r-md);
  background: #fff; color: var(--slp-navy);
  font-size: 1rem;
}
.slp-avail-out { display: grid; gap: .8rem; align-content: start; min-height: 9rem; }
.slp-avail-card { padding: 1.1rem 1.25rem; border: 1px solid var(--slp-line); border-radius: var(--slp-r-md); background: var(--slp-light); }
.slp-avail-city { margin: 0 0 .6rem; font-family: Poppins, system-ui, sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--slp-navy); }
.slp-avail-facts { margin: 0 0 .6rem; display: grid; gap: .5rem; }
.slp-avail-facts > div { display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.slp-avail-facts dt { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--slp-ink-soft); min-width: 8.5rem; }
.slp-avail-facts dd { margin: 0; font-weight: 600; color: var(--slp-navy); }
.slp-avail .slp-btn { margin-top: 1.25rem; }
.slp-avail-status { margin: 0 0 .8rem; font-size: .9rem; font-weight: 600; color: var(--slp-deep); }

.slp-prices { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.slp-price {
  display: flex; flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--slp-line); border-radius: var(--slp-r-lg);
  background: #fff;
}
.slp-price-name { margin: 0 0 .4rem; font-family: Poppins, system-ui, sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--slp-navy); }
.slp-price-amount { margin: 0 0 1rem; font-family: Poppins, system-ui, sans-serif; font-size: clamp(1.6rem, 4.5vw, 2.15rem); font-weight: 600; line-height: 1.1; color: var(--slp-deep); }
.slp-price-h { margin: 1.1rem 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slp-navy); }
.slp-price-h-muted { color: var(--slp-ink-soft); }
.slp-price .slp-btn { margin-top: auto; }
.slp-price .slp-ticks { margin-bottom: .25rem; }
/* auto-fit stretched a lone plan across the full 74rem container, which read as
   a banner rather than a price card. auto-fill + a max on the track keeps one
   plan card-sized and still lays two or three out side by side. */
@media (min-width: 52rem) {
  .slp-prices {
    grid-template-columns: repeat(auto-fill, minmax(19rem, 24rem));
    justify-content: center;
  }
}

.slp-faq-group { display: grid; gap: .6rem; margin-bottom: 2rem; }
.slp-faq-cat { margin: 0 0 .35rem; font-family: Poppins, system-ui, sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--slp-navy); }
.slp-qa { border: 1px solid var(--slp-line); border-radius: var(--slp-r-md); background: #fff; overflow: hidden; }

.slp-device { margin-top: clamp(2rem, 5vw, 3rem); max-width: 46rem; }
.slp-device .slp-h3 { margin-top: 0; }
.slp-privacy { margin: 1.5rem 0; display: grid; gap: .9rem; }
.slp-privacy-row {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--slp-mist);
  background: #fff;
  border-radius: 0 var(--slp-r-sm) var(--slp-r-sm) 0;
}
.slp-privacy dt { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--slp-deep); }
.slp-privacy dd { margin: .35rem 0 0; line-height: 1.65; }
.slp-privacy-foot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; }
.slp-privacy-contact { font-size: .9rem; color: var(--slp-ink-soft); }

.slp-flow { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.slp-flow-step {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1.1rem;
  border: 1px solid var(--slp-edge);
  border-radius: var(--slp-r-md);
  background: var(--slp-surface-1);
  color: var(--slp-on-night);
  font-weight: 600;
}
.slp-flow-i {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--slp-surface-2); color: var(--slp-mist);
  font-size: .78rem; font-weight: 700;
}
/* Seven steps in an auto-fit grid wrapped 5 + 2 with nothing to say they were a
   sequence. Fixed columns wrap evenly, and a connector between cards carries
   the direction the numbers imply. */
@media (min-width: 40rem) {
  .slp-flow { grid-template-columns: repeat(2, 1fr); column-gap: 1.75rem; }
  .slp-flow-step { position: relative; }
  .slp-flow-step:not(:last-child)::after {
    content: "";
    position: absolute; top: 50%; right: -1.35rem;
    width: .95rem; height: 2px;
    background: var(--slp-mist);
    opacity: .35;
  }
  .slp-flow-step:nth-child(2n)::after { display: none; }
}
@media (min-width: 64rem) {
  .slp-flow { grid-template-columns: repeat(4, 1fr); }
  .slp-flow-step:nth-child(2n)::after { display: block; }
  .slp-flow-step:nth-child(4n)::after { display: none; }
}

/* ─── 10. Legal, sticky, motion, print ─────────────────────────────────── */

.slp-final { padding-block: clamp(3.5rem, 9vw, 7rem); }

.slp-legal { background: #eef4f6; color: var(--slp-ink-soft); padding-block: clamp(2rem, 5vw, 3rem); }
.slp-legal-h { margin: 0 0 .6rem; font-size: .95rem; font-weight: 700; color: var(--slp-navy); }
.slp-legal p { margin: 0 0 .6rem; font-size: .85rem; line-height: 1.7; max-width: 52rem; }

/* Sits above the app's own bottom tab bar (.bnav, phones only) so it never
   covers the nav or the iOS home indicator. */
.slp-sticky {
  position: fixed; left: 0; right: 0; z-index: 39;
  bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
  padding: .6rem clamp(1rem, 4vw, 1.5rem);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--slp-line);
}
.slp-sticky[hidden] { display: none; }
@media (min-width: 768px) { .slp-sticky { display: none !important; } }

/* Scroll reveal. Written so the visible state is the default and the hidden
   state is only applied when scripting is on - if the observer never fires,
   content is still there. */
.slp-js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.slp-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .slp-page *, .slp-page *::before, .slp-page *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .slp-js [data-reveal] { opacity: 1; transform: none; }
  .slp-beat { opacity: 1; }
}

@media print {
  .slp-sticky, .slp-chiprow, .slp-hot { display: none !important; }
  .slp-sec-dark, .slp-hero { background: #fff !important; color: #000 !important; }
  /* The gradient lines fill their glyphs from a background; on paper that
     background is stripped, so the fill must come back too or they print blank. */
  .slp-h1, .slp-h2-dark, .slp-h1-b, .slp-h2-soft-dark {
    color: #000 !important;
    background: none !important;
    -webkit-text-fill-color: #000 !important;
  }
  .slp-sym[open], .slp-qa { break-inside: avoid; }
}
