/* =============================================================================
   Phones only. Every page loads this file with media="(max-width:820px)", so a
   desktop or laptop browser never applies a single rule from it: the desktop
   design stays exactly as it is. (821px and up is the desktop layout.)
   Rules for phones:
   - ordinary scrolling: no snapping to full-screen sections, no sideways rows
   - nothing moves by itself: no marquee, no auto-advancing slides or tabs
   - one even rhythm: 16px side gutter, 56px between sections, 24px inside cards
   - pictures keep their own aspect ratio (no stretching, no cropping of text)
   ============================================================================= */

:root{ --m-gap:28px; --m-card:20px; --m-radius:20px; }

/* ---------- 1. Plain scrolling: no deck, no snap, no full-height sections ---------- */
html.deck, html.deck.deck--loose{ scroll-snap-type:none !important; }
.deck .slide,
.deck .slide--flow{
  min-height:0 !important;
  scroll-snap-align:none !important;
  scroll-snap-stop:normal !important;
  justify-content:flex-start !important;
}
.deck .slide,
.deck .slide.section,
.deck .slide.section--tight,
.deck .slide.trust,
.deck .slide.phead{ padding-block:var(--m-gap) !important; }
/* the first section clears the fixed header */
.deck main > .slide:first-child{ padding-top:calc(var(--hdr-h) + 8px) !important; }
.deck main > .slide:last-child{ padding-bottom:calc(var(--m-gap) + 16px) !important; }
.deckrail, .scrollcue{ display:none !important; }

/* nothing moves on its own */
.trust__row--marquee{ animation:none !important; transform:none !important; }

/* ---------- 2. Home hero: a still phone layout ---------- */
.herostage, .herofig > .heroctl, .heroctl{ display:none !important; }
.herofig--product{ display:flex; flex-direction:column; }
.herofig--product .herofig__body{ order:1; padding:28px 20px 8px; }
.herofig--product .mhero{ order:2; padding-bottom:30px; }
.herofig--product > .herofig__contact{ order:1; margin:2px 0 0; padding:0 20px 8px; opacity:.9; }
.herofig--product .herotab{ order:3; }
.herofig__body h1{ font-size:clamp(2.1rem, 10vw, 2.6rem); line-height:1.05; letter-spacing:-.02em; }
.herofig__lede{ font-size:1rem; line-height:1.6; margin-top:14px; }
.herofig__actions{ display:grid; grid-template-columns:1fr; gap:10px; margin-top:22px; }
.herofig__actions .btn{ width:100%; justify-content:center; min-height:48px; }
.herofig__contact{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px 14px; margin-top:16px; padding:0; }
.herofig__contact li{ list-style:none; }
.herofig__contact li + li::before{ display:none; }
.herofig__contact a{ font-size:.9rem; white-space:nowrap; }

/* the phone mock-up: a real ClinicPro screen in a phone, the exchanges under it */
.mhero{ display:block; position:relative; padding:18px 20px 26px; }
.mhero__device{
  position:relative; width:min(66vw, 240px); margin:0 auto;
  aspect-ratio:9 / 18.5;
  padding:9px; border-radius:36px;
  background:linear-gradient(160deg,#2a3a36,#0d1715);
  box-shadow:0 0 0 1.5px rgba(255,255,255,.14) inset, 0 24px 48px rgba(0,0,0,.38);
}
.mhero__screen{
  position:relative; width:100%; height:100%; overflow:hidden; border-radius:28px;
  background:#f6f8f7; display:flex; flex-direction:column;
}
.mhero__notch{ position:absolute; top:7px; left:50%; width:30%; height:16px; transform:translateX(-50%); border-radius:10px; background:#0d1715; z-index:2; }
.mhero__appbar{
  display:flex; align-items:center; justify-content:space-between; gap:6px;
  padding:30px 12px 9px; background:#fff; border-bottom:1px solid #e6ece9;
  font:700 .8rem/1 var(--display); color:#1b2b27;
}
.mhero__live{ display:inline-flex; align-items:center; gap:5px; font:600 .62rem/1 var(--sans); color:#14804a; background:#e6f6ec; padding:4px 7px; border-radius:99px; }
.mhero__live i{ width:6px; height:6px; border-radius:50%; background:#14804a; }
.mhero__screen img{ display:block; width:100%; height:auto; aspect-ratio:492 / 602; object-fit:cover; object-position:top left; }
.mhero__toast{
  position:absolute; left:10px; right:10px; bottom:12px;
  display:flex; align-items:center; gap:8px;
  padding:9px 10px; border-radius:12px; background:#fff; color:#1b2b27;
  box-shadow:0 8px 20px rgba(0,0,0,.16); font:600 .66rem/1.25 var(--sans);
}
.mhero__toast b{ display:grid; place-items:center; flex:none; width:22px; height:22px; border-radius:7px; background:#e6f6ec; color:#14804a; font-size:.8rem; }
.mhero__cap{ margin:16px auto 0; text-align:center; font:600 .9rem/1.4 var(--sans); color:rgba(255,255,255,.86); }
.mhero__chips{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:14px 0 0; padding:0; }
.mhero__chips li{
  list-style:none; display:inline-flex; align-items:center; gap:6px;
  padding:7px 12px; border-radius:99px; font:700 .72rem/1 var(--sans); letter-spacing:.04em;
  color:#e9f5ee; background:rgba(255,255,255,.08); box-shadow:0 0 0 1px rgba(255,255,255,.16) inset;
}
.mhero__chips li i{ width:7px; height:7px; border-radius:50%; background:#5fd28d; }

/* regulators tab under the hero card: centred, even */
.herofig--product .herotab{ align-self:stretch; max-width:none; margin:0; border-radius:0 0 var(--m-radius) var(--m-radius); padding:14px 16px; }
.herotab__lbl{ text-align:center; }
.herotab__logos{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px 18px; }

/* ---------- 3. Client logos: three clinics side by side, changing every few seconds ----------
   site.js marks the three on show (.is-shown) and fades the row to the next three (owner's choice). */
.trust--inhero{ padding-top:20px !important; }
.trust--inhero .trust__label{ text-align:center; }
.trust--inhero .trust__marquee{ overflow:hidden !important; contain:none; }
.trust--inhero .trust__marquee::before, .trust--inhero .trust__marquee::after{ display:none !important; }
.trust--inhero .trust__row,
.trust--inhero .trust__row--marquee{
  display:grid !important; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px;
  width:100% !important; margin:8px 0 0 !important; min-height:0;
}
html .trust--inhero .trust__row--marquee,
html.no-motion .trust--inhero .trust__row--marquee{ transition:opacity .4s ease !important; }
.trust--inhero .trust__row--marquee.is-fading{ opacity:0; }
.trust--inhero .trust__row--img li.cl,
.trust--inhero .trust__row--img li.cl--wide{ display:none !important; }
.trust--inhero .trust__row--img li.cl.is-shown:not([data-copy]){
  display:flex !important; flex-direction:column; align-items:center; justify-content:flex-start;
  gap:8px; min-width:0; min-height:96px; text-align:center;
}
/* every mark sits in the same 80x42 box, centred, at the size site.js works out from its own aspect ratio */
.trust--inhero .trust__row--img li.cl.is-shown .cl__mark{
  display:flex !important; align-items:center; justify-content:center; position:relative;
  width:80px !important; height:42px !important; max-width:none !important; flex:none; margin-inline:auto;
}
.trust--inhero .trust__row--img li.cl.is-shown .cl__mark img{
  position:static; width:var(--m-w, 44px) !important; height:var(--m-h, 34px) !important;
  max-width:80px !important; max-height:42px; object-fit:contain; aspect-ratio:auto !important;
}
.trust--inhero .trust__row--img li.cl.is-shown .cl__mark img.logo-color{ position:absolute; inset:0; margin:auto; }
/* names: one size for every clinic, centred, wrapping evenly under the mark */
.trust--inhero .trust__row--img li.cl.is-shown .cl__name{ align-items:center; white-space:normal; gap:3px; max-width:100%; }
.trust--inhero .trust__row--img li.cl.is-shown .cl__ar{ align-self:center; font-size:11px; line-height:1.35; }
.trust--inhero .trust__row--img li.cl.is-shown .cl__en{ font-size:7.4px !important; letter-spacing:.05em !important; line-height:1.3; }
@media (prefers-reduced-motion:reduce){ .trust--inhero .trust__row--marquee{ transition:none !important; } }

/* ---------- 4. Sections: even rhythm, no oversized gaps ---------- */
.wrap, .wrap--wide{ padding-inline:var(--gutter, 16px); }
.section h2, .section--tight h2{ font-size:clamp(1.7rem, 7.4vw, 2.1rem); line-height:1.12; }
.card{ padding:var(--m-card); border-radius:var(--m-radius); }
img{ max-width:100%; }
.grid, .grid-2, .grid-3, .grid-4{ gap:12px; }

/* ClinicPro modules: two compact columns instead of eight tall cards */
.modgrid{ grid-template-columns:1fr 1fr !important; }
.modgrid .card[data-mod]{ padding:16px 14px; }
.modgrid .card[data-mod] h3{ font-size:1rem; line-height:1.2; margin-top:10px; }
.modgrid .card[data-mod] p{ font-size:.82rem; line-height:1.45; margin-top:6px; }
.modgrid .mshow{ display:none !important; }

/* ---------- 5. Who we serve: facility tabs wrap into a grid (no sideways row) ---------- */
.ind__tabs{
  display:grid !important; grid-template-columns:1fr 1fr; gap:8px !important;
  overflow:visible !important; padding-bottom:0 !important;
}
.ind__tabs button{
  width:100%; justify-content:flex-start; text-align:start; white-space:normal;
  min-height:44px; padding:10px 12px; font-size:.86rem; line-height:1.2; border-radius:14px;
}

/* ---------- 6. Centred text blocks (owner's choice for phones) ---------- */
/* headings, paragraphs and buttons centre; check-lists stay left-aligned inside a centred block so the ticks line up */
.herofig__body, .cpabout__copy, .split__body, .sec-head, .section > .wrap > header, .section--tight > .wrap > header,
.cta, .cta__body, .ind__head, .phead__body, .cpintro__body{ text-align:center; }
.herofig__body .eyebrow, .split__body .eyebrow{ justify-content:center; }
.herofig__lede, .cpabout__copy p, .split__body p{ margin-inline:auto; }
.cpabout__pill{ margin-inline:auto; }
.cpabout__actions, .herofig__actions{ justify-content:center; }
.cpabout__actions{ display:grid; grid-template-columns:1fr; gap:10px; }
.cpabout__actions .btn, .split__body .btn{ width:100%; justify-content:center; min-height:48px; }
.split__list{ width:fit-content; max-width:100%; margin-inline:auto; text-align:start; }
.split__body .linkarw{ justify-content:center; }

/* ---------- 7. Fixes found while checking ---------- */
/* the desktop tab's cut-out corners do not belong to the phone layout: the card has four equal rounded corners
   and the regulators panel is its footer, clipped by the same curve (no square corner, no second radius) */
.herofig--product .herotab::before, .herofig--product .herotab::after{ display:none !important; }
.herofig--product{ border-radius:26px !important; overflow:hidden; isolation:isolate; }
.herofig--product .herotab{ border-radius:0 !important; width:100%; box-shadow:none; }
/* the phone mock-up is as tall as its screen: no empty white area under the picture */
.mhero__device{ width:min(58vw, 216px); aspect-ratio:auto; }
.mhero__screen{ height:auto; }
.mhero__toast{ bottom:10px; }
/* Contact: centred heading; the contact lines stay a neat table, centred as a block */
.cx__side > .cx__eyebrow, .cx__side > .cx__h, .cx__side > .cx__lede{ text-align:center; margin-inline:auto; }
.cx__side > .cx__lines{ width:fit-content; max-width:100%; margin-inline:auto; }
/* Who we serve: centred heading above the facility grid */
.ind__side > .ind__eyebrow, .ind__side > h1{ text-align:center; }
/* the reminder card sits below the chart, not over its bars */
.mhero__screen{ padding-bottom:56px; background:#fff; }
/* section headings with a picture beside them on desktop */
.compliance-hero, .assure__copy{ text-align:center; }
.compliance-hero .lede, .assure__copy p{ margin-inline:auto; }

/* ---------- 8. Footer and floating buttons ---------- */
.ftr{ padding-block:28px 24px; }

/* phones: the contact tab is a desktop/tablet design; the numbers sit under the buttons */
.herofig--product .herotab--contact{ display:none !important; }
