/* ══════════════════════════════════════════════════════════════════════════
   MEDBUS — PRODUCT (SPECIALTY) PAGE LAYOUT
   Loaded after medbus-specialty.css, which still supplies the per-specialty
   tone (--sp, --sp-soft, --sp-ring) and the hero widget cards.

     01  Page frame, shared type and pieces
     02  Hero — copy, sample dashboard, doctor, floating widgets
     03  Trust figures
     04  Overview — answer card, needs, capabilities strip
     05  Why
     06  Features
     07  Patient journey
     08  Outcomes as steps
     09  Other specialties
     10  Benefits · photo · security
     11  FAQ
     12  Motion
     13  Responsive
     14  Reduced motion

   Motion is deliberately cheap: transform and opacity only, looping motion
   gated on [data-drift].is-visible (set only while the hero is on screen),
   and everything off under prefers-reduced-motion.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 01 · PAGE FRAME, SHARED PIECES ────────────────────────────────────── */
.mpx {
  --mpx-card: 0 1px 2px rgba(11, 34, 56, .04), 0 8px 28px rgba(9, 106, 201, .07);
  --mpx-card-hover: 0 2px 4px rgba(11, 34, 56, .05), 0 18px 40px rgba(9, 106, 201, .13);
  --mpx-r: 18px;
  background:
    radial-gradient(60rem 38rem at 100% 0%, rgba(9, 106, 201, .07), transparent 60%),
    linear-gradient(180deg, #f5f9ff 0%, #fbfdff 28%, #f6faff 62%, #fbfdff 100%);
}

.mpx-section { padding-block: clamp(2.25rem, 4.5vw, 3.75rem); }
.mpx-section--tight { padding-block: clamp(1rem, 2vw, 1.5rem); }
.mpx-anchor { scroll-margin-top: 88px; }

.mpx-eyebrow {
  display: inline-block;
  margin-bottom: .6rem;
  font-family: var(--mb-font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sp);
}
.mpx-eyebrow--flat { margin-bottom: .1rem; font-size: .75rem; }

.mpx-h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--mb-ink);
  margin-bottom: .8rem;
}
.mpx-h2 span { color: var(--sp); }
.mpx-h2--md { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem); }
.mpx-h2--sm { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); margin-bottom: .25rem; }
.mpx-h3 { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); line-height: 1.3; color: var(--mb-ink); }
.mpx-lede { font-size: clamp(.95rem, .92rem + .15vw, 1.03rem); line-height: 1.72; color: var(--mb-muted); }
.mpx-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mb-muted);
}
.mpx-center { display: flex; justify-content: center; margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }

.mpx-btn { border-radius: 10px; }
.mpx-btn svg { transition: transform .25s var(--mb-ease); }
.mpx-btn:hover svg { transform: translateX(3px); }
.mpx-btn--sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .875rem; }
.mpx-btn--ghost { background: #fff; color: var(--mb-blue); border-color: rgba(9, 106, 201, .28); }
.mpx-btn--ghost:hover { border-color: var(--mb-blue); color: var(--mb-blue); box-shadow: var(--mpx-card); }

.mpx-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--mb-blue);
  text-decoration: none;
  white-space: nowrap;
}
.mpx-link svg { transition: transform .25s var(--mb-ease); }
.mpx-link:hover svg { transform: translateX(3px); }
.mpx-link--inline { display: inline; white-space: normal; }

.mpx-iconbox {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--sp-soft);
  color: var(--sp);
  transition: background-color .25s var(--mb-ease), color .25s var(--mb-ease), transform .25s var(--mb-ease);
}
.mpx-iconbox svg { width: 20px; height: 20px; }
.mpx-iconbox--sm { width: 34px; height: 34px; border-radius: 10px; }
.mpx-iconbox--sm svg { width: 17px; height: 17px; }
.mpx-iconbox--green { background: var(--sp-soft); color: var(--sp); }

.mpx-tick { display: inline-grid; flex: none; color: var(--sp); }
.mpx-tick svg { width: 18px; height: 18px; }
.mpx-tick--green { color: var(--sp); }

.mpx-checks { display: grid; gap: .6rem; margin: 1.1rem 0 1.5rem; }
.mpx-checks li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--mb-ink-soft);
}
.mpx-checks .mpx-tick { margin-top: .12rem; }
.mpx-checks--tight { gap: .45rem; margin: .75rem 0 0; }
.mpx-checks--tight li { font-size: .9rem; }
.mpx-checks--small { gap: .45rem; margin: .9rem 0 0; }
.mpx-checks--small li { font-size: .84rem; }

.mpx-rowhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: clamp(2rem, 4vw, 2.75rem) 0 .9rem;
}
.mpx-rowhead--lg { margin-top: 0; margin-bottom: clamp(1rem, 2vw, 1.4rem); }
.mpx-rowhead__meta { font-size: .8125rem; font-weight: 600; color: var(--sp); }
.mpx-rowhead__sub { font-size: .875rem; color: var(--mb-muted); }

/* ── 02 · HERO ─────────────────────────────────────────────────────────── */
.mpx-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: clamp(1rem, 2vw, 1.5rem) 0 0;
  background: linear-gradient(180deg, #eef5ff 0%, #f5f9ff 100%);
  border-bottom: 1px solid #e3edf9;
}
.mpx-blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
}
.mpx-blob--a { width: 34rem; height: 34rem; right: -8rem; top: -10rem; background: radial-gradient(circle, rgba(9, 106, 201, .22), transparent 70%); }
.mpx-blob--b { width: 26rem; height: 26rem; left: -10rem; bottom: -8rem; background: radial-gradient(circle, var(--sp-ring), transparent 70%); }
.mpx-hero .mb-shell { position: relative; z-index: 1; }
.mpx-crumbs { margin-bottom: clamp(1rem, 2.5vw, 1.75rem); }

.mpx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: end;
}
/* The copy keeps its own breathing room; the art column does not, so the
   doctor stands on the hero's bottom edge. */
.mpx-hero__copy { align-self: center; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.mpx-hero__title {
  font-size: clamp(2rem, 1.25rem + 2.9vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -.028em;
  color: var(--mb-ink);
  margin-bottom: 1rem;
}
.mpx-hero__title span { display: block; color: var(--sp); }
.mpx-hero__lede {
  max-width: 36rem;
  font-size: clamp(.97rem, .93rem + .2vw, 1.06rem);
  line-height: 1.72;
  color: var(--mb-muted);
}
.mpx-hero__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: .65rem 1.75rem;
  margin: 1.35rem 0 1.6rem;
}
.mpx-hero__checks li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--mb-ink-soft);
}
.mpx-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.mpx-hero__assure {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 0;
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--mb-muted);
}
.mpx-hero__assure li + li::before { content: "•"; margin: 0 .6rem; color: #b8c6d8; }

/* — Art — */
/* The stage is shaped by the scene itself: --scene-ar (the photograph's own
   aspect ratio), --screen-w and --screen-top come from config/specialty-hero.php,
   and .mpx-hero__art--left / --right put the dashboard window, the zooming
   circle and the second widget in whichever top corner that scene leaves open.
   The photograph is never cropped — it fills the stage exactly. */
.mpx-hero__art {
  position: relative;
  width: 100%;
  aspect-ratio: var(--scene-ar, 1.25);
  max-height: 560px;
  margin-inline: auto;
}

.mpx-hero__scene {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 24px rgba(9, 50, 110, .12));
}
/* A soft ellipse under the scene, so the people stand on something. */
.mpx-hero__ground {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -1%;
  width: 74%;
  height: 7%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(9, 50, 110, .18) 0%, rgba(9, 50, 110, 0) 70%);
}

.mpx-screen {
  position: absolute;
  z-index: 1;
  top: var(--screen-top, 2%);
  width: var(--screen-w, 50%);
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe9f7;
  box-shadow: 0 28px 60px rgba(9, 50, 110, .16), 0 6px 16px rgba(9, 50, 110, .07);
}
.mpx-hero__art--left  .mpx-screen { left: 0; }
.mpx-hero__art--right .mpx-screen { right: 0; }
.mpx-screen__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 10px;
  background: #f3f7fd;
  border-bottom: 1px solid #e3edf9;
}
.mpx-screen__bar i { width: 7px; height: 7px; border-radius: 50%; background: #d3deec; }
.mpx-screen__bar i:nth-child(1) { background: #ff8f87; }
.mpx-screen__bar i:nth-child(2) { background: #ffcd5e; }
.mpx-screen__bar i:nth-child(3) { background: #5fd38a; }
.mpx-screen__bar b { flex: 0 1 42%; height: 9px; margin-left: 12px; border-radius: 5px; background: #fff; border: 1px solid #e3edf9; }
.mpx-screen img { display: block; width: 100%; height: auto; }

/* The zooming circle sits on the window's outer top corner, beneath everything. */
.mpx-hero__pulse {
  position: absolute;
  z-index: 0;
  top: var(--screen-top, 2%);
  width: clamp(160px, 19vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--sp-soft) 45%, var(--sp-ring) 100%);
  pointer-events: none;
}
.mpx-hero__art--left  .mpx-hero__pulse { left: 0; translate: -42% -42%; }
.mpx-hero__art--right .mpx-hero__pulse { right: 0; translate: 42% -42%; }
.mpx-hero__pulse i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--sp-ring);
  opacity: 0;
}
.is-visible .mpx-hero__pulse { animation: mpx-zoom 4.5s ease-in-out infinite; }
.is-visible .mpx-hero__pulse i { animation: mpx-ripple 4.5s ease-out infinite; }
.is-visible .mpx-hero__pulse i:nth-child(2) { animation-delay: 2.25s; }
@keyframes mpx-zoom   { 0%, 100% { transform: scale(.88); } 50% { transform: scale(1.08); } }
@keyframes mpx-ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* The specialty widgets, restyled as floating app cards: one below the
   dashboard window, one at the opposite bottom corner, both clear of the scene. */
.mpx-float { position: absolute; z-index: 4; width: clamp(180px, 14vw, 216px); box-shadow: 0 16px 36px rgba(9, 50, 110, .18); }
.mpx-hero__art--left  .mpx-float--1 { right: -3%; bottom: 10%; }
.mpx-hero__art--left  .mpx-float--2 { left: -4%; top: calc(var(--screen-top, 2%) + var(--screen-h, 32%) + 4%); }
.mpx-hero__art--right .mpx-float--1 { left: -3%; bottom: 10%; }
.mpx-hero__art--right .mpx-float--2 { right: -4%; top: calc(var(--screen-top, 2%) + var(--screen-h, 32%) + 4%); }

/* ── 03 · TRUST FIGURES ────────────────────────────────────────────────── */
.mpx-stats-wrap { position: relative; z-index: 2; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.mpx-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: clamp(.4rem, 1vw, .6rem);
  border-radius: var(--mpx-r);
  background: #fff;
  border: 1px solid var(--mb-line);
  box-shadow: var(--mpx-card);
}
.mpx-stats > li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: clamp(.8rem, 1.8vw, 1.15rem) clamp(.9rem, 2vw, 1.5rem);
}
.mpx-stats > li + li { border-left: 1px solid var(--mb-line); }
.mpx-stats__ico {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--sp-soft);
  color: var(--sp);
}
.mpx-stats__ico svg { width: 21px; height: 21px; }
.mpx-stats b {
  display: block;
  font-family: var(--mb-font-head);
  font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--mb-ink);
}
.mpx-stats span span { display: block; font-size: .8rem; color: var(--mb-muted); }

/* ── 04 · OVERVIEW ─────────────────────────────────────────────────────── */
.mpx-about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.4rem, 3.2vw, 2.4rem);
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--mb-line);
  box-shadow: var(--mpx-card);
}
.mpx-about__main { position: relative; padding-left: clamp(0rem, 1.2vw, 1rem); border-left: 3px solid var(--sp-soft); }
.mpx-about__text { margin: .2rem 0 1.25rem; font-size: 1rem; line-height: 1.72; color: var(--mb-ink-soft); }
.mpx-about__aside .mpx-label { margin-bottom: .7rem; }
.mpx-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.mpx-modules li {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--mb-line);
  box-shadow: 0 1px 2px rgba(11, 34, 56, .04);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mb-ink);
  transition: transform .25s var(--mb-ease), box-shadow .25s var(--mb-ease), border-color .25s var(--mb-ease);
}
.mpx-modules li:hover { transform: translateY(-2px); border-color: var(--sp-ring); box-shadow: var(--mpx-card); }
.mpx-modules .mpx-iconbox { width: 34px; height: 34px; border-radius: 10px; }
.mpx-modules .mpx-iconbox svg { width: 17px; height: 17px; }

.mpx-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.mpx-types li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem .9rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--mb-line);
  box-shadow: 0 1px 2px rgba(11, 34, 56, .04);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mb-ink);
  transition: transform .25s var(--mb-ease), box-shadow .25s var(--mb-ease), border-color .25s var(--mb-ease);
}
.mpx-types li:hover { transform: translateY(-3px); border-color: var(--sp-ring); box-shadow: var(--mpx-card-hover); }
.mpx-types li:hover .mpx-iconbox { background: var(--sp); color: #fff; }

.mpx-strip {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  padding: clamp(1.25rem, 2.8vw, 1.9rem);
  border-radius: 20px;
  background: linear-gradient(135deg, #eaf3ff 0%, #f4f8ff 100%);
  border: 1px solid #dce9fb;
}
.mpx-strip__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: 1.1rem; }
.mpx-strip__head p { font-size: .875rem; color: var(--mb-muted); }
.mpx-strip__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; }
.mpx-strip__list li { display: flex; align-items: center; gap: .8rem; font-size: .9rem; font-weight: 600; line-height: 1.4; color: var(--mb-ink); }
.mpx-strip__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--sp);
  box-shadow: 0 4px 14px rgba(9, 106, 201, .12);
  transition: transform .3s var(--mb-ease);
}
.mpx-strip__ico svg { width: 22px; height: 22px; }
.mpx-strip__list li:hover .mpx-strip__ico { transform: scale(1.08) rotate(-6deg); }

/* ── 05 · WHY ──────────────────────────────────────────────────────────── */
.mpx-why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}
.mpx-why__media { position: relative; padding: 0 0 1.5rem clamp(0rem, 3vw, 2.5rem); }
.mpx-why__frame {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 24px 50px rgba(9, 50, 110, .14);
}
.mpx-why__frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--mb-ease); }
.mpx-why__media:hover .mpx-why__frame img { transform: scale(1.04); }
.mpx-why__card {
  position: absolute;
  left: 0;
  bottom: 8%;
  display: grid;
  gap: .6rem;
  max-width: 15rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--mb-line);
  box-shadow: 0 18px 40px rgba(9, 50, 110, .16);
  font-size: .95rem;
  line-height: 1.4;
  color: var(--mb-ink);
}
.mpx-why__cardico {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--sp);
  color: #fff;
}
.mpx-why__cardico svg { width: 20px; height: 20px; }
/* A slow drift that starts only once the section has scrolled into view. */
.mpx-why__media.is-in .mpx-why__card { animation: mpx-cardfloat 9s var(--mb-ease) 1s infinite; }
@keyframes mpx-cardfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.mpx-why__dots {
  position: absolute;
  z-index: -1;
  right: -1.25rem;
  top: 1.5rem;
  width: 7rem;
  height: 7rem;
  background-image: radial-gradient(var(--sp-ring) 2px, transparent 2.5px);
  background-size: 14px 14px;
}

/* ── 06 · FEATURES ─────────────────────────────────────────────────────── */
.mpx-panel {
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--mb-line);
  box-shadow: var(--mpx-card);
}
.mpx-panel .mb-head { margin-bottom: clamp(1.25rem, 2.5vw, 1.9rem); }
.mpx-feats { display: grid; gap: clamp(.75rem, 1.4vw, 1rem); }
.mpx-feats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mpx-feats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mpx-feat {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--mb-line);
  transition: transform .28s var(--mb-ease), box-shadow .28s var(--mb-ease), border-color .28s var(--mb-ease);
}
.mpx-feat h3 { font-size: .95rem; line-height: 1.35; color: var(--mb-ink); margin-bottom: .25rem; }
.mpx-feat p { font-size: .8438rem; line-height: 1.55; color: var(--mb-muted); }
.mpx-feat:hover { transform: translateY(-3px); border-color: var(--sp-ring); box-shadow: var(--mpx-card-hover); }
.mpx-feat:hover .mpx-iconbox { background: var(--sp); color: #fff; transform: rotate(-6deg); }

/* ── 07 · PATIENT JOURNEY ──────────────────────────────────────────────── */
.mpx-flow {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 22px;
  background: linear-gradient(135deg, #eaf3ff 0%, #f5f9ff 100%);
  border: 1px solid #dce9fb;
}
.mpx-flow__head { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: clamp(1.1rem, 2.4vw, 1.6rem); text-align: left; }
.mpx-flow__head .mpx-iconbox { background: var(--sp); color: #fff; }
.mpx-flow__head .mpx-iconbox svg { width: 18px; height: 18px; }
.mpx-flow__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.mpx-flow__steps li { position: relative; display: flex; align-items: flex-start; gap: .75rem; }
/* The arrow between steps, drawn on the step so it vanishes when the row wraps. */
.mpx-flow__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  right: calc(-1 * clamp(1.5rem, 3vw, 2.5rem) + .35rem);
  width: clamp(.8rem, 1.6vw, 1.5rem);
  height: 10px;
  background:
    linear-gradient(var(--sp-ring), var(--sp-ring)) left center / calc(100% - 5px) 2px no-repeat,
    conic-gradient(from -135deg at 100% 50%, var(--sp) 90deg, transparent 0) right center / 6px 10px no-repeat;
  opacity: .8;
}
.mpx-flow__ico {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--sp);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .8), 0 8px 18px var(--sp-ring);
}
.mpx-flow__ico svg { width: 20px; height: 20px; }
.mpx-flow__steps h3 { font-size: .92rem; color: var(--mb-ink); margin-bottom: .15rem; }
.mpx-flow__steps p { font-size: .8rem; line-height: 1.5; color: var(--mb-muted); }

/* ── 08 · OUTCOMES AS STEPS ────────────────────────────────────────────── */
.mpx-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.1rem);
  margin-top: clamp(1.25rem, 2.5vw, 1.9rem);
}
.mpx-steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1.05rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--mb-line);
  box-shadow: var(--mpx-card);
  transition: transform .28s var(--mb-ease), box-shadow .28s var(--mb-ease);
}
.mpx-steps li:hover { transform: translateY(-3px); box-shadow: var(--mpx-card-hover); }
.mpx-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: calc(-1 * clamp(.75rem, 1.6vw, 1.1rem));
  width: clamp(.75rem, 1.6vw, 1.1rem);
  border-top: 2px dashed var(--sp-ring);
}
.mpx-steps__n {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--sp-ring);
  background: var(--sp-soft);
  font-family: var(--mb-font-head);
  font-weight: 700;
  color: var(--sp);
}
.mpx-steps h3 { font-size: .95rem; color: var(--mb-ink); margin-bottom: .2rem; }
.mpx-steps p { font-size: .8125rem; line-height: 1.5; color: var(--mb-muted); }

/* ── 09 · OTHER SPECIALTIES ────────────────────────────────────────────── */
.mpx-carousel { margin-top: 0; }
.mpx-carousel .mb-clinic {
  border-radius: 16px;
  border: 1px solid var(--mb-line);
  box-shadow: var(--mpx-card);
  background: #fff;
}
.mpx-carousel .mb-clinic__media img { aspect-ratio: 4 / 3; }
.mpx-carousel .mb-clinic__body { padding: .8rem .95rem 1rem; }
.mpx-carousel .mb-clinic__name { font-size: .95rem; }
.mpx-carousel .mb-clinic__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .8rem;
}
.mpx-carousel .mb-carousel__btn { background: #fff; box-shadow: var(--mpx-card); }

.mpx-related { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: clamp(1rem, 2vw, 1.4rem); }
.mpx-related__label { margin-right: .25rem; font-size: .8125rem; font-weight: 700; color: var(--mb-ink); }
.mpx-related a {
  padding: .38rem .8rem;
  border-radius: var(--mb-r-pill);
  border: 1px solid var(--mb-line);
  background: #fff;
  font-size: .8rem;
  color: var(--mb-ink-soft);
  text-decoration: none;
  transition: border-color .2s var(--mb-ease), color .2s var(--mb-ease), background-color .2s var(--mb-ease);
}
.mpx-related a:hover, .mpx-related a:focus-visible { border-color: var(--sp); color: var(--sp); background: var(--sp-soft); }

/* ── 10 · BENEFITS · PHOTO · SECURITY ──────────────────────────────────── */
.mpx-care {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .82fr) minmax(0, .96fr);
  gap: clamp(1rem, 2.4vw, 1.75rem);
  align-items: stretch;
}
.mpx-care--solo { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }

.mpx-tabs {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin: .9rem 0 .35rem;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--mb-line);
  box-shadow: 0 1px 2px rgba(11, 34, 56, .05);
}
.mpx-tabs[hidden] { display: none; }
/* The sliding highlight behind the selected tab. */
.mpx-tabs::before {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 9px;
  background: var(--mb-blue);
  box-shadow: 0 6px 14px rgba(9, 106, 201, .3);
  transform: translateX(calc(var(--tab, 0) * 100%));
  transition: transform .35s var(--mb-ease);
}
.mpx-tabs button {
  position: relative;
  z-index: 1;
  padding: .55rem 1.1rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: .8438rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--mb-ink-soft);
  cursor: pointer;
  transition: color .25s var(--mb-ease);
}
.mpx-tabs button[aria-selected="true"] { color: #fff; }
.mpx-tabs button:focus-visible { outline: 2px solid var(--mb-blue); outline-offset: 2px; border-radius: 8px; }
.mpx-tabpanel { margin-top: .9rem; animation: mpx-fade .4s var(--mb-ease); }
.mpx-tabpanel__title { font-size: .95rem; color: var(--mb-ink); }
.mpx-tabpanel__title span { display: block; margin-top: .1rem; font-size: .8125rem; font-weight: 500; color: var(--mb-muted); }

.mpx-care__photo { position: relative; margin: 0; }
.mpx-care__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 22px;
  border: 6px solid #fff;
  box-shadow: 0 22px 46px rgba(9, 50, 110, .14);
}
.mpx-care__badge {
  position: absolute;
  left: -.9rem;
  bottom: 1.5rem;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--sp);
  color: #fff;
  box-shadow: 0 12px 26px var(--sp-ring);
}
.mpx-care__badge svg { width: 26px; height: 26px; }

.mpx-care__secure {
  padding: clamp(1.2rem, 2.5vw, 1.6rem);
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--mb-line);
  box-shadow: var(--mpx-card);
}
.mpx-care__secure .mpx-iconbox { margin-bottom: .75rem; }
.mpx-care__secure .mpx-h3 { margin-bottom: .45rem; }
.mpx-care__secure p { font-size: .84rem; line-height: 1.65; color: var(--mb-muted); }

/* ── 11 · FAQ ──────────────────────────────────────────────────────────── */
.mpx-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem clamp(.75rem, 2vw, 1.25rem); align-items: start; }
.mpx-faq__col { display: grid; gap: .75rem; }
.mpx-faq__item {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--mb-line);
  box-shadow: 0 1px 2px rgba(11, 34, 56, .04);
  transition: border-color .25s var(--mb-ease), box-shadow .25s var(--mb-ease);
}
.mpx-faq__item:hover { border-color: var(--sp-ring); }
.mpx-faq__item[open] { border-color: var(--sp-ring); box-shadow: var(--mpx-card); }
.mpx-faq__item summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  list-style: none;
  cursor: pointer;
}
.mpx-faq__item summary::-webkit-details-marker { display: none; }
.mpx-faq__item summary:focus-visible { outline: 2px solid var(--mb-blue); outline-offset: 2px; border-radius: 12px; }
.mpx-faq__ico {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--sp-soft);
  color: var(--sp);
}
.mpx-faq__ico svg { width: 15px; height: 15px; }
.mpx-faq__q { flex: 1; font-size: .9rem; font-weight: 600; line-height: 1.4; color: var(--mb-ink); }
.mpx-faq__sign { position: relative; width: 14px; height: 14px; flex: none; }
.mpx-faq__sign::before, .mpx-faq__sign::after {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 2px;
  border-radius: 2px;
  background: var(--mb-blue);
  transition: transform .3s var(--mb-ease);
}
.mpx-faq__sign::after { transform: rotate(90deg); }
.mpx-faq__item[open] .mpx-faq__sign::after { transform: rotate(0deg); }
.mpx-faq__a {
  padding: 0 1rem 1rem 3.65rem;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--mb-muted);
  animation: mpx-fade .35s var(--mb-ease);
}
.mpx-reviewed { margin-top: 1.4rem; font-size: .8rem; color: var(--mb-muted); text-align: center; }

/* ── 12 · MOTION ───────────────────────────────────────────────────────── */
@keyframes mpx-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes mpx-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes mpx-pop  { 0% { opacity: 0; transform: translateY(14px) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes mpx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes mpx-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-3rem, 2rem) scale(1.08); } }
@keyframes mpx-ring { 0% { box-shadow: 0 0 0 0 var(--sp-ring); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }

/* Hero entrance — once, on load, staggered by --d. */
.mpx-in { animation: mpx-rise .7s var(--mb-ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
/* The scene is the page's largest image, so it never animates its opacity —
   it lifts into place instead, and is visible from the first paint. */
.mpx-hero__scene { animation: mpx-lift 1s var(--mb-ease) .1s both; }
@keyframes mpx-lift { from { transform: translateY(20px); } to { transform: none; } }
.mpx-hero__ground { animation: mpx-fade 1s var(--mb-ease) .7s both; }
.mpx-float { animation: mpx-pop .6s var(--mb-ease) both; }
.mpx-float--1 { animation-delay: .75s; }
.mpx-float--2 { animation-delay: .95s; }

/* Looping motion — only while the hero is on screen. `translate` is used for
   the float so it composes with the entrance `transform` instead of fighting it. */
.is-visible .mpx-screen { animation: mpx-rise .7s var(--mb-ease) .18s both, mpx-float 8s var(--mb-ease) 1.2s infinite; }
.is-visible .mpx-float--1 { animation: mpx-pop .6s var(--mb-ease) .75s both, mpx-float 6s var(--mb-ease) 1.5s infinite; }
.is-visible .mpx-float--2 { animation: mpx-pop .6s var(--mb-ease) .95s both, mpx-float 6.8s var(--mb-ease) 2s infinite; }
.is-visible .mpx-blob--a { animation: mpx-drift 16s ease-in-out infinite; }
.is-visible .mpx-blob--b { animation: mpx-drift 19s ease-in-out -6s infinite reverse; }

/* Section motion rides on the existing reveal: each element fades up as it
   enters (medbus-home.js adds .is-in once). */
.mpx-flow__steps li.is-in .mpx-flow__ico { animation: mpx-ring 1.2s var(--mb-ease) .3s 2; }
.mpx-steps li.is-in .mpx-steps__n { animation: mpx-ring 1.2s var(--mb-ease) .25s 1; }

/* ── 13 · RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .mpx-feats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mpx-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mpx-care { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mpx-care__photo { grid-row: span 2; order: -1; }
}

@media (max-width: 980px) {
  .mpx-hero__grid,
  .mpx-about,
  .mpx-why { grid-template-columns: minmax(0, 1fr); }
  .mpx-hero__art { max-width: 42rem; max-height: 460px; margin: 0 auto; }
  .mpx-hero__copy { padding-bottom: .5rem; }
  .mpx-feats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mpx-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mpx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mpx-stats > li:nth-child(3) { border-left: 0; }
  .mpx-stats > li:nth-child(n + 3) { border-top: 1px solid var(--mb-line); }
  .mpx-flow__steps,
  .mpx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mpx-flow__steps li::after,
  .mpx-steps li::after { display: none; }
  .mpx-why__media { max-width: 36rem; }
  .mpx-anchor { scroll-margin-top: 80px; }
}

@media (max-width: 760px) {
  .mpx-care { grid-template-columns: minmax(0, 1fr); }
  .mpx-care__photo { grid-row: auto; order: 0; }
  .mpx-care__photo img { min-height: 0; aspect-ratio: 4 / 3.4; }
  .mpx-faq { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .mpx-hero__checks { grid-template-columns: minmax(0, 1fr); }
  .mpx-hero__cta .mb-btn { flex: 1 1 100%; }
  /* On a phone the window shrinks into the scene's open corner. */
  .mpx-hero__art { max-height: 360px; }
  .mpx-screen { width: 58%; border-radius: 9px; }
  .mpx-screen__bar { height: 14px; }
  .mpx-hero__pulse { width: 140px; }
  .mpx-float { width: 172px; }
  /* `scale` composes with the float animation's translate. */
  .mpx-hero__art--left .mpx-float--1,
  .mpx-hero__art--right .mpx-float--1 { left: 0; right: auto; bottom: 2%; scale: .72; transform-origin: bottom left; }
  .mpx-float--2 { display: none; }
  .mpx-feats--3, .mpx-feats--4,
  .mpx-types,
  .mpx-modules,
  .mpx-flow__steps,
  .mpx-steps { grid-template-columns: minmax(0, 1fr); }
  .mpx-why__card { position: relative; left: auto; bottom: auto; max-width: none; margin: -2.5rem 1rem 0; }
  /* The dot grid hangs 1.25rem off the photo's edge — past the screen on a phone. */
  .mpx-why__dots { right: 0; }
  .mpx-flow__head { justify-content: flex-start; }
  .mpx-faq__a { padding-left: 1rem; }
  .mpx-tabs { display: grid; width: 100%; }
  .mpx-tabs button { padding-inline: .5rem; }
}

/* ── 14 · REDUCED MOTION ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .mpx *, .mpx *::before, .mpx *::after { animation: none !important; transition-duration: .01ms !important; }
  .mpx-types li:hover, .mpx-feat:hover, .mpx-steps li:hover, .mpx-modules li:hover,
  .mpx-why__media:hover .mpx-why__frame img { transform: none; }
  .mpx-why__media.is-in .mpx-why__card { translate: 0 0; }
}
