/* =========================================================================
   BeWell Innovations — enhancement layer (2026 refresh proposal)
   Loaded AFTER main.css. Adds motion, the client-logo cycler, new page
   components (solutions, customers, ROI calculator) and small polish.
   Uses only the design tokens already defined in main.css.
   ========================================================================= */

:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ink-soft: #9aa7b0;           /* muted second line of two-tone headings */
  --glow-1: rgba(46, 178, 157, .28);
  --glow-2: rgba(109, 201, 186, .22);
  --glow-3: rgba(173, 219, 80, .14);
  /* product colours (2027 line-up); the darker shade is for text and icons */
  --c-kiosk: #1f68ad;         --c-kiosk-bg: #e4eff9;
  --c-communication: #08796e; --c-communication-bg: #e0f3f0;
  --c-monitoring: #b54a26;    --c-monitoring-bg: #fbe9e2;
  --c-command: #6243b0;       --c-command-bg: #eee8fa;
  --c-clinic: #a8325f;        --c-clinic-bg: #fbe7ef;
  --c-consult: #4e5c66;       --c-consult-bg: #e9edf0;
}

/* ---------- typography polish ------------------------------------------ */
h1, h2, .display { letter-spacing: -0.02em; }
h1, h2, h3 { text-wrap: balance; }  /* no orphan word on a heading's last line */
/* intros, card text and call-to-action bands: even lines, so no short last line like "your staff." */
.lead, .section-head p, .tier-head p, .price-full, .uc-note, .page-hero p, .cta-band p, .deal p, .pain p,
.price-short, .pl-text, .split-copy p, .metric-label { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }  /* and no single word alone on the last line of a paragraph */
.display { font-size: clamp(40px, 5.4vw, 72px); font-weight: 500; line-height: 1.05; }
/* the second half of a two-tone headline: dark teal, readable (5.3:1) */
.tone, .tone-brand { color: var(--primary-dark); }
.lead .tone, .lead .tone-brand { color: inherit; }  /* a headline reused inside a sentence */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary-dark); margin-bottom: 16px;
}
/* the brand mark: two "rounded i" bars, one at 40% opacity */
.eyebrow::before {
  content: ""; width: 12px; height: 16px; flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M0 11A5 5 0 0 1 5 6V11A5 5 0 0 1 0 16Z' fill='%232eb29d' fill-opacity='.4'/%3E%3Cpath d='M7 5A5 5 0 0 1 12 0V11A5 5 0 0 1 7 16Z' fill='%232eb29d'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lead { font-size: 20px; color: var(--neutral-600); line-height: 1.55; }

/* pill chip, e.g. "certified medical device" badge */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: 999px; background: var(--neutral-50); color: var(--neutral-800);
  font-size: var(--fs-xs); font-weight: 500; white-space: nowrap;
}
.chip--brand { background: var(--primary-light); color: var(--primary-dark); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary-dark);
  margin-top: 16px;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease-out); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header: logo | centered nav | CTA -------------------------- */
/* --leaf is the brand shape: two opposite corners fully rounded
   (same as the hero bars). Flip to "0 22px" to mirror it. */
:root { --leaf: 22px 0; --leaf-sm: 16px 0; }
.site-header {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(47, 52, 64, .06);
}
@media (min-width: 1201px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .header-inner .logo { justify-self: start; }
  .primary-nav { grid-column: 2 / 4; display: grid; grid-template-columns: subgrid; align-items: center; gap: 24px; }
  .nav-links {
    position: relative; gap: 2px; padding: 5px;
    background: rgba(255, 255, 255, .62); border: 1px solid rgba(47, 52, 64, .08);
    border-radius: var(--leaf);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px rgba(47, 52, 64, .06);
  }
  .nav-links > li { position: relative; z-index: 1; }
  .nav-links > li > a {
    display: block; padding: 9px 20px; border-radius: var(--leaf-sm);
    font-size: var(--fs-small); transition: color .25s ease;
  }
  .nav-links > li > a:hover, .nav-links > li > a[aria-current="page"] { text-decoration: none; color: var(--primary-dark); }
  .nav-links > li > a[aria-current="page"], .nav-trigger[data-current] { font-weight: 600; }
  /* hovering (or tabbing to, or opening) another item: dark teal text with a teal underline, never the pill */
  .nav-links > li > a:not([aria-current="page"]):hover, .nav-links > li > a:not([aria-current="page"]):focus-visible,
  .nav-links .nav-trigger:not([data-current]):hover, .nav-links .nav-trigger:not([data-current]):focus-visible,
  .nav-links .nav-trigger:not([data-current])[aria-expanded="true"] {
    color: var(--primary-dark); text-decoration: underline; text-decoration-color: var(--primary);
    text-decoration-thickness: 2px; text-underline-offset: 6px;
  }
  /* sliding leaf-shaped highlight, positioned by enhance.js */
  .nav-links .nav-indicator { display: block;
    position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0;
    border-radius: var(--leaf-sm); background: var(--primary-light);
    opacity: 0; transition: transform .45s var(--ease-out), opacity .25s ease;
    pointer-events: none;
  }
  .nav-links .nav-indicator.is-on { opacity: 1; }
  .nav-cta { justify-self: end; }
}
.nav-links > li > a[aria-current="page"] { color: var(--primary-dark); }
.nav-indicator { display: none; }

/* ---------- footer: four link columns --------------------------------- */
.footer-links { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 900px) { .footer-links { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 640px) { .footer-links { grid-template-columns: 1fr; } }

/* ---------- buttons: soft lift ----------------------------------------- */
.btn { transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .25s var(--ease-out), box-shadow .25s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(8, 121, 110, .25); }
.btn-dark { background: var(--neutral-800); color: #fff; }
.btn-dark:hover { background: var(--primary-dark); }

/* ---------- page gradient (Nimble-style, in BeWell colours) ------------ */
/* One soft mesh gradient at the top of every page, fading into white.
   The header is transparent over it until the page scrolls. */
body { position: relative; isolation: isolate; overflow-x: clip; }
body::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; top: 0; height: min(1150px, 130vh);
  background:
    radial-gradient(42% 52% at 12% 6%,  rgba(46, 178, 157, .38), transparent 70%),
    radial-gradient(40% 48% at 88% 4%,  rgba(109, 201, 186, .45), transparent 70%),
    radial-gradient(34% 40% at 66% 34%, rgba(173, 219, 80, .26), transparent 70%),
    radial-gradient(30% 36% at 34% 38%, rgba(8, 121, 110, .16), transparent 70%),
    radial-gradient(26% 30% at 96% 44%, rgba(191, 154, 216, .16), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
}
body.page-prose::before { opacity: .55; height: 700px; }
.glow { position: relative; }   /* kept as a hook; the gradient now lives on body */
.hero { overflow: clip; }

/* hero entrance: brand shapes grow up, photo settles in */
html.js .hero-shape { transform-origin: bottom; animation: shape-grow 1.2s var(--ease-out) both; }
html.js .hero-shape-2 { animation-delay: .15s; }
html.js .hero-photo { animation: photo-in 1.2s var(--ease-out) .1s both; }
@keyframes shape-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes photo-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- scroll reveal ---------------------------------------------- */
/* Hidden only when JS is running, so content never disappears without it. */
html.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal="scale"] { transform: scale(.96); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- hover lift on cards ---------------------------------------- */
.carepath, .case-card, .product-card, .tool .tool-media, .logo-box {
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.carepath:hover, .case-card:hover, .product-card:hover, .logo-box:hover {
  transform: translateY(-4px); box-shadow: 0 14px 50px rgba(47, 52, 64, .14);
}
.tool:hover .tool-media { transform: translateY(-4px); }
.tool-media img { transition: transform .8s var(--ease-out); }
.tool:hover .tool-media img { transform: scale(1.03); }

/* ======================================================================
   CLIENT LOGO CYCLER — five slots, each rotating through several logos
   ====================================================================== */
.clients { padding-block: 56px 16px; }
.clients-title { text-align: center; font-size: var(--fs-small); color: var(--neutral-600); margin-bottom: 28px; }
.clients-title strong { color: var(--neutral-800); font-weight: 600; }
/* the logo strip links to the customer stories: the line underlines in BeWell teal when it is pointed at or focused */
.clients-link { display: block; color: inherit; text-decoration: none; border-radius: 16px; }
.clients-link:hover, .clients-link:focus-visible { text-decoration: none; }
.clients-link:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 6px; }
.clients-link .clients-title { transition: color .2s ease; }
.clients-link:hover .clients-title, .clients-link:focus-visible .clients-title { color: var(--primary-dark); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.clients-link:hover .lc-slot img.is-active, .clients-link:focus-visible .lc-slot img.is-active { filter: none; opacity: 1; }
.logo-cycler {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gutter);
  max-width: var(--content-narrow); margin-inline: auto;
}
.lc-slot { position: relative; height: 64px; overflow: hidden; }
.lc-slot img {
  position: absolute; inset: 0; margin: auto; max-width: 80%; max-height: 48px; width: auto; height: auto;
  object-fit: contain; filter: grayscale(1); opacity: 0;
  transform: translateY(60%); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .3s ease;
}
.lc-slot img.is-active { opacity: .75; transform: none; }
.lc-slot img.is-leaving { opacity: 0; transform: translateY(-60%); }
.lc-slot:hover img.is-active { filter: none; opacity: 1; }
/* no-JS fallback: show the first logo of each slot */
html:not(.js) .lc-slot img:first-child { opacity: .75; transform: none; }

/* ======================================================================
   PAGE HERO (sub-pages)
   ====================================================================== */
.page-hero { padding-block: 72px 64px; }
.page-hero .display { max-width: 22ch; margin-bottom: 24px; }
.page-hero .display--wide { max-width: none; }
.page-hero .lead { max-width: 60ch; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* segmented sub-navigation (sticky under header) */
.subnav {
  position: sticky; top: 98px; z-index: 50; padding-block: 12px;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(8px);
}
.subnav-list {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--neutral-50);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
/* the white bar behind the pills shows once the sub-navigation sticks under the header (is-stuck, enhance.js) */
html.js .subnav:not(.is-stuck) { background: transparent; backdrop-filter: none; }
.subnav-list::-webkit-scrollbar { display: none; }
.subnav-list a {
  display: block; padding: 10px 20px; border-radius: 999px; font-size: var(--fs-small); font-weight: 500;
  white-space: nowrap; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.subnav-list a:hover { text-decoration: none; color: var(--primary-dark); }
.subnav-list a.is-active { background: #fff; color: var(--primary-dark); box-shadow: 0 2px 10px rgba(47, 52, 64, .08); }

/* ======================================================================
   SOLUTIONS
   ====================================================================== */
.product-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.product-card {
  display: flex; flex-direction: column; border-radius: var(--radius); background: var(--neutral-50); overflow: hidden; color: inherit;
}
.product-card:hover { text-decoration: none; }
.product-card-media {
  aspect-ratio: 4 / 3; background: var(--neutral-50); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; transition: transform .8s var(--ease-out); }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-body { padding: 28px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.product-card-body .chip { align-self: flex-start; margin-bottom: 16px; }
.product-card h2, .product-card h3 { font-size: var(--fs-h4); font-weight: 600; margin-bottom: 8px; }
.product-card p { font-size: var(--fs-small); color: var(--neutral-600); }
.product-card .link-arrow { margin-top: auto; padding-top: 20px; }

.product { padding-block: var(--vgap); scroll-margin-top: 170px; }
.product + .product { border-top: 1px solid rgba(47, 52, 64, .1); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split--flip > :first-child { order: 2; }
.split-media {
  border-radius: var(--radius); background: var(--neutral-50); overflow: hidden;
  aspect-ratio: 5 / 4; display: flex; align-items: center; justify-content: center; position: relative;
}
.split-media img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }
.split-media--tint { background: var(--primary-light); }
.split-copy h2 { margin-bottom: 20px; }
.split-copy h2.h2-two { font-size: clamp(28px, 3.1vw, 44px); } /* two lines of about 30 characters in the narrow column */
.split-copy .lead { margin-bottom: 28px; }

.checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 32px; }
.checks li { position: relative; padding-left: 34px; color: var(--neutral-600); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308796e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks strong { color: var(--neutral-800); font-weight: 600; }

/* numbered steps with a line that draws itself on reveal */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin-top: 64px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; z-index: 0; top: 23px; left: 24px; right: 24px; height: 2px; background: var(--primary-light);
}
.steps::after {
  content: ""; position: absolute; z-index: 0; top: 23px; left: 24px; right: 24px; height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .2s;
}
html:not(.js) .steps::after, .steps.is-in::after { transform: scaleX(1); }
.step { position: relative; z-index: 1; } /* above the line, also while a step fades in (it is its own stacking context then) */
.step-num {
  counter-increment: step; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--primary-medium);
  color: var(--primary-dark); font-weight: 600; margin-bottom: 16px; position: relative; z-index: 1;
}
.step-num::before { content: counter(step); }
.step h3, .step h4 { font-size: var(--fs-h5); font-weight: 600; margin-bottom: 8px; }
.step p { font-size: var(--fs-small); color: var(--neutral-600); }

/* spec / fact table */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 64px; }
.spec { border-radius: var(--radius); background: var(--neutral-50); padding: 28px 32px; }
.spec h3, .spec h4 { font-size: var(--fs-small); font-weight: 600; color: var(--neutral-800); margin-bottom: 12px; }
.spec ul { display: grid; gap: 6px; }
.spec li { font-size: var(--fs-small); }

/* feature icon grid (re-uses main.css .feature) in a lighter, borderless variant */
.features--plain { background: none; padding: 0; margin-top: 64px; }

/* ======================================================================
   BIG NUMBERS / METRICS
   ====================================================================== */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.metric { border-top: 2px solid var(--primary); padding-top: 20px; }
.metric-num { display: block; font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.02em; color: var(--neutral-800); line-height: 1.1; }
.metric-label { display: block; font-size: var(--fs-small); color: var(--neutral-600); margin-top: 6px; }
/* /about: the three figures as one soft panel, centred, with thin dividers */
.metrics--panel { grid-template-columns: repeat(3, 1fr); gap: 0; padding: 44px 24px; border-radius: var(--radius); background: linear-gradient(160deg, var(--primary-light) 0%, var(--neutral-50) 70%); }
.metrics--panel .metric { border-top: 0; padding: 4px 24px; text-align: center; }
.metrics--panel .metric + .metric { border-left: 1px solid rgba(47, 52, 64, .12); }
.metrics--panel .metric-num { font-weight: 600; color: var(--primary-dark); }
.metrics--panel .metric-label { margin-top: 10px; }
@media (max-width: 640px) {
  .metrics--panel { grid-template-columns: 1fr; padding: 28px 16px; }
  .metrics--panel .metric { padding: 20px 8px; }
  .metrics--panel .metric + .metric { border-left: 0; border-top: 1px solid rgba(47, 52, 64, .12); }
}

/* ======================================================================
   CUSTOMER STORIES
   ====================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(47, 52, 64, .2);
  background: #fff; font: inherit; font-size: var(--fs-small); font-weight: 500; color: var(--neutral-800); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter:hover { border-color: var(--primary); color: var(--primary-dark); }
.filter[aria-pressed="true"] { background: var(--neutral-800); border-color: var(--neutral-800); color: #fff; }

/* Story cards (storyCard in build.js): the hospital's photo in full colour with its logo on a white plate,
   and under it the proof, always visible: the outcome, the organisation and department, the product.
   The whole card is one link. Surfaces are separated by a tone step, never a shadow. */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.case-card {
  position: relative; display: flex; border-radius: var(--radius); overflow: hidden;
  background: var(--neutral-50); color: inherit; min-height: 100%;
}
.case-card:hover { text-decoration: none; }
.case-card[hidden] { display: none; }
.case-body { padding: 28px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.case-more { font-size: var(--fs-small); font-weight: 600; color: var(--neutral-600); }
.case-more.link-arrow { color: var(--neutral-800); }
.case-card:hover .link-arrow::after { transform: translateX(4px); }

.case-card--story { flex-direction: column; }
.case-card--story:hover, .case-card--next:hover { transform: none; box-shadow: none; }
.case-card--next:focus-visible { outline: 3px solid var(--pc, var(--primary-dark)); outline-offset: 4px; }
.cs-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cs-link:focus-visible { outline: 0; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px var(--neutral-800); }
.cs-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
/* the photos sit back at half strength so the grid is calmer; a hovered or focused card comes to full colour */
.cs-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform .9s var(--ease-out), opacity .35s ease; }
.case-card--story:hover .cs-photo, .case-card--story:focus-within .cs-photo { opacity: 1; }
.case-card--story:hover .cs-photo { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .cs-photo { transition: none; } .case-card--story:hover .cs-photo { transform: none; } }
/* the logo on a flat white plate, in the middle of the photo, with the product and the department under it */
.cs-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.cs-logo { display: flex; align-items: center; justify-content: center; height: 64px; max-width: 80%; padding: 12px 20px; border-radius: 14px; background: #fff; }
.cs-logo img { display: block; width: auto; height: 100%; max-width: 200px; object-fit: contain; }
.cs-logo--tall { height: 92px; padding: 12px 22px; }
.cs-badge { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); white-space: nowrap; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--neutral-800); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.3; }
.cs-badge .ic { width: 18px; height: 18px; flex: none; color: var(--primary-medium); }
.cs-badge--link { z-index: 2; color: #fff; text-decoration: none; transition: background-color .2s ease; }
.cs-badge--link:hover { background: #000; color: #fff; text-decoration: none; }
.cs-badge--link .cs-badge-out { width: 14px; height: 14px; color: #fff; opacity: .75; }
.cs-badge--link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--neutral-800); }
.confetti-layer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2147483000; }
.cs-logo .case-wordmark { font-size: 18px; font-weight: 600; color: var(--neutral-800); }
.cs-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cs-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--neutral-800); font-size: 14px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.cs-pill-ic { display: grid; place-items: center; flex: none; width: 18px; height: 18px; color: var(--pc, var(--primary-dark)); }
.cs-pill-ic .ic { width: 18px; height: 18px; }

/* "Your story next?": fills what is left of the last row (--span of 3 columns, --span-2 of 2) */
.case-card--next { grid-column: span var(--span, 3); background: var(--primary-light); }
.case-card--next h3 { margin-bottom: 10px; font-size: var(--fs-h4); }
.case-card--next p { font-size: var(--fs-small); color: var(--neutral-800); max-width: 46ch; }
.case-card--next .case-more { margin-top: auto; padding-top: 20px; }

/* ---- story preview (storyPreview in build.js, opened by enhance.js) ---- */
html.has-preview { overflow: hidden; }
.story-preview {
  padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  width: min(1080px, calc(100vw - 64px)); max-width: none;
  height: min(800px, calc(100dvh - 48px)); max-height: none;
  background: #fff; color: var(--neutral-800);
}
.story-preview::backdrop { background: rgba(47, 52, 64, .7); }
.sp-panel { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.sp-media { position: relative; background: #d9dde2; min-height: 0; }
.sp-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-body { display: flex; flex-direction: column; gap: 22px; min-height: 0; overflow-y: auto; padding: 40px 48px 32px; }
.sp-close {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--neutral-50); color: var(--neutral-800); cursor: pointer;
  transition: background-color .2s ease;
}
.sp-close:hover { background: #e4e8ec; }
.sp-close:focus-visible { outline: 3px solid var(--pc, var(--primary-dark)); outline-offset: 2px; }
.sp-close .ic { width: 22px; height: 22px; }
.sp-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 56px; }
.sp-head .cs-pills { justify-content: flex-start; }
.sp-head .cs-pill { background: var(--neutral-50); }
.sp-org { font-size: var(--fs-h4); letter-spacing: -0.01em; margin: 6px 0 0; }
.sp-place { margin: -8px 0 0; font-size: 16px; color: var(--neutral-600); }
/* the leading quote: a flat panel in the product's own tint, with a large quotation mark */
.sp-summary { margin: 0; font-size: 18px; line-height: 1.5; }
.sp-quote { margin: 0; padding: 26px 30px 26px; border-radius: 20px; background: var(--pc-bg, var(--primary-light)); }
.sp-quote-mark { display: block; width: 30px; height: 22px; margin-bottom: 14px; color: var(--pc, var(--primary-dark)); }
.sp-quote blockquote { margin: 0; }
.sp-quote p { margin: 0; font-size: clamp(24px, 2vw, 28px); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.sp-quote figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; font-size: 16px; line-height: 1.4; color: var(--neutral-600); }
.sp-quote figcaption b { color: var(--neutral-800); font-weight: 600; }
.sp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0; }
.sp-facts dt { font-size: 14px; color: var(--neutral-600); }
.sp-facts dd { margin: 2px 0 0; font-size: 16px; line-height: 1.4; }
/* the way to the full story stays in view while the preview scrolls */
.sp-actions { position: sticky; bottom: -32px; margin: auto -48px -32px; padding: 14px 48px 24px; background: #fff; }
/* the photo travels from the card into the dialog (View Transitions); otherwise a short fade */
::view-transition-group(story-photo) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
::view-transition-old(story-photo), ::view-transition-new(story-photo) { height: 100%; width: 100%; object-fit: cover; overflow: clip; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
@media (prefers-reduced-motion: no-preference) {
  .story-preview.is-fading[open] { animation: preview-in .22s ease-out; }
  .story-preview.is-fading[open]::backdrop { animation: preview-in .22s ease-out; }
}
@keyframes preview-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 860px) {
  /* phone and small tablet: full screen, photo on top and the content below */
  .story-preview { width: 100%; height: 100%; max-height: 100dvh; border-radius: 0; margin: 0; }
  .sp-panel { display: block; overflow-y: auto; }
  .sp-media { aspect-ratio: 3 / 2; }
  .sp-body { overflow: visible; gap: 24px; padding: 28px 20px 40px; }
  .sp-quote { padding: 26px 22px 24px; }
  .sp-close { background: #fff; }
  .sp-actions { bottom: 0; margin: 8px -20px -40px; padding: 16px 20px 24px; }
  .sp-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .sp-facts { grid-template-columns: 1fr; }
}

.case-cover { position: relative; background: var(--cover, var(--primary-light)); overflow: hidden; min-height: 320px; }
.case-cover img.case-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.case-card:hover .case-cover img.case-photo { transform: scale(1.04); }

/* the stories strip on product and use-case pages: its head is a standard .section-head */
.story-strip { padding-top: 0; }
.story-strip .section-head { margin-bottom: 40px; }
.story-strip .section-head .link-arrow { margin: 0; }

/* quote wall */
.quotes { columns: 3; column-gap: var(--gutter); }
.quote-card {
  break-inside: avoid; margin: 0 0 var(--gutter); border-radius: var(--radius); padding: 32px;
  background: var(--neutral-50);
}
.quote-card blockquote { margin: 0 0 24px; font-size: var(--fs-small); line-height: 1.6; color: var(--neutral-800); }
.quote-card blockquote::before { content: "“"; display: block; font-size: 56px; line-height: .8; color: var(--primary); margin-bottom: 4px; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-card figcaption b { display: block; font-size: var(--fs-small); font-weight: 600; }
.quote-card figcaption span { display: block; font-size: var(--fs-xs); color: var(--neutral-600); }

/* case detail page */
.case-hero-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.case-hero-cover img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }
.case-layout { display: grid; grid-template-columns: 300px 1fr; gap: 80px; align-items: start; }
.case-facts { position: sticky; top: 130px; border-radius: var(--radius); background: var(--neutral-50); padding: 28px; display: grid; gap: 18px; }
.case-facts dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--neutral-600); }
.case-facts dd { margin: 2px 0 0; font-size: var(--fs-small); }
.case-content h2 { font-size: var(--fs-h3); margin: 56px 0 16px; }
.case-content h2:first-child { margin-top: 0; }
.case-figure { margin: 36px 0 40px; }
.case-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.case-figure figcaption { margin-top: 12px; font-size: var(--fs-xs); line-height: 1.5; color: var(--neutral-600); }
.case-content p { color: var(--neutral-600); margin-bottom: 16px; }
.pullquote {
  margin: 48px 0; padding: 40px 48px; border-radius: var(--radius); background: var(--primary-light);
  font-size: 22px; line-height: 1.5; font-style: italic;
}
.pullquote footer { margin-top: 20px; font-style: normal; font-size: var(--fs-small); color: var(--neutral-600); }
.pullquote footer b { color: var(--neutral-800); }
/* the quoted person's portrait (hook_avatar) next to their name */
.quote-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pullquote footer.has-avatar { display: flex; align-items: center; gap: 14px; }
.sp-quote figcaption.has-avatar { flex-direction: row; align-items: center; gap: 14px; }
.sp-who { display: flex; flex-direction: column; gap: 2px; }

/* ======================================================================
   CTA BAND (dark, with glow)
   ====================================================================== */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--radius) * 1.5); background: var(--neutral-800); color: #fff;
  padding: 72px 64px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(50% 90% at 100% 0%, rgba(46, 178, 157, .45), transparent 70%),
    radial-gradient(40% 80% at 80% 100%, rgba(109, 201, 186, .25), transparent 70%);
}
.cta-band h2 { font-size: var(--fs-h3); margin-bottom: 12px; }
.cta-band p { color: #cfd6db; max-width: 56ch; }
.cta-band .eyebrow { color: var(--primary-medium); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ======================================================================
   ROI CALCULATOR
   ====================================================================== */
.roi { display: grid; grid-template-columns: 1fr 460px; gap: 48px; align-items: start; }
.roi-inputs { display: grid; gap: 12px; }
.roi-group { border-radius: var(--radius); background: var(--neutral-50); padding: 28px 32px; }
.roi-group h3 { font-size: var(--fs-h5); font-weight: 600; margin-bottom: 4px; }
.roi-group > p { font-size: var(--fs-xs); color: var(--neutral-600); margin-bottom: 20px; }
.roi-field { display: grid; grid-template-columns: 1fr 120px; gap: 8px 16px; align-items: center; padding-block: 12px; }
.roi-field + .roi-field { border-top: 1px solid rgba(47, 52, 64, .08); }
.roi-field label { font-size: var(--fs-small); font-weight: 500; }
.roi-field small { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--neutral-600); margin-top: -4px; }
.roi-num {
  display: flex; align-items: center; height: 40px; border: 1px solid #cdd6db; border-radius: 12px; background: #fff; padding: 0 12px;
}
.roi-num:focus-within { outline: 2px solid var(--primary); border-color: var(--primary); }
.roi-num input { width: 100%; border: 0; outline: 0; font: inherit; font-size: var(--fs-small); text-align: right; background: none; color: var(--neutral-800); -moz-appearance: textfield; }
.roi-num input::-webkit-outer-spin-button, .roi-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.roi-num span { font-size: var(--fs-xs); color: var(--neutral-600); margin-left: 6px; white-space: nowrap; }
.roi-field input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--primary); height: 20px; margin: 0; cursor: pointer; }

/* Always positioned: the card is the containing block of its ::before. When it was
   `static` on phones, only the scroll-reveal transform held the ::before in; once
   the reveal ended it covered the whole page and blocked every tap on the inputs. */
.roi-result {
  position: relative; border-radius: calc(var(--radius) * 1.25); background: var(--neutral-800); color: #fff;
  padding: 36px; overflow: hidden; isolation: isolate;
}
@media (min-width: 1201px) { .roi-result { position: sticky; top: 122px; } } /* beside the inputs */
.roi-result::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 100% 0%, rgba(46, 178, 157, .45), transparent 70%);
}
.roi-result .eyebrow { color: var(--primary-medium); }
/* hidden campaign pages (/medical/campaign/*): the hero holds the title, so the ROI
   calculator's own heading is not repeated, and the calculator follows the hero closely */
.page-campaign .calc-section { padding-top: 0; }
.page-campaign #roi-calculator > .container > .section-head { display: none; }
/* the gate: locked figures are blurred until the visitor leaves their details (enhance.js) */
.roi-gate { position: relative; }
.roi-result [data-gate] { transition: filter .6s var(--ease-out); }
.roi-result.is-locked [data-gate] { filter: blur(9px); user-select: none; pointer-events: none; }
.roi-unlock {
  position: absolute; left: 0; top: 50%; translate: 0 -50%; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px 11px 16px;
  border: 0; border-radius: 999px; background: #fff; color: var(--neutral-800);
  font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: background .2s, transform .2s var(--ease-out);
}
.roi-unlock:hover { background: var(--primary-light); transform: translateY(-1px); }
.roi-unlock:focus-visible { outline: 3px solid var(--primary-medium); outline-offset: 3px; }
.roi-unlock svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--primary-dark); }
.roi-result:not(.is-locked) .roi-unlock { display: none; }
.report-dialog .rd-unlock, .report-dialog.is-unlock .rd-pdf { display: none; }
.report-dialog.is-unlock .rd-unlock { display: revert; }
.roi-hero-num { font-size: 56px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.roi-hero-label { color: #cfd6db; font-size: var(--fs-small); }
.roi-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.roi-kpis b { display: block; font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.roi-kpis span { display: block; font-size: var(--fs-xs); color: #cfd6db; }
.roi-bars { display: grid; gap: 12px; margin-bottom: 28px; }
.roi-bar { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; font-size: var(--fs-xs); color: #cfd6db; }
.roi-bar-track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.roi-bar-fill { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.roi-bar-fill--value { background: var(--primary); }
.roi-bar-fill--cost { background: #cfd6db; }
.roi-bar b { color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.roi-actions { display: grid; gap: 10px; }
.roi-actions .btn { justify-content: center; width: 100%; }
.roi-note { font-size: var(--fs-xs); color: #9aa7b0; margin-top: 16px; }
.roi-result.is-negative .roi-hero-num { color: #ffb4a8; }

/* RIZIV calculator: one card per care path */
.rz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.rz-head h3 { margin: 0; }
.roi-group { transition: opacity .3s var(--ease-out); }
.roi-group.is-off > p, .roi-group.is-off .roi-field + .roi-field, .roi-group.is-off .rz-rules { opacity: .45; }
/* care paths: the ones you added are shown, the rest wait in the "add" menu */
.rz-tools { display: inline-flex; align-items: center; gap: 8px; }
.rz-remove {
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--neutral-50); color: var(--neutral-600);
  font-size: 20px; line-height: 1; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.rz-remove:hover { background: var(--primary-light); color: var(--primary-dark); }
.rz-remove:focus-visible, .rz-add select:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.rz-remove[hidden], .rz-add[hidden], .roi-bar[hidden] { display: none; }
.rz-add {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  padding: 20px 32px; border-radius: var(--radius); border: 2px dashed var(--primary-medium);
  /* its width comes from the column, never from the select: a select is as wide as its
     longest option, which made the whole calculator wider than a phone screen */
  contain: inline-size;
}
.rz-add label { font-weight: 600; font-size: var(--fs-small); }
.rz-add select {
  min-width: min(260px, 100%); max-width: 100%; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(47, 52, 64, .2);
  background: #fff; color: var(--neutral-800); font: inherit; font-size: var(--fs-small); cursor: pointer;
}
.rz-rules { margin-top: 8px; font-size: var(--fs-xs); color: var(--neutral-600); }
.rz-rules summary { cursor: pointer; font-weight: 600; color: var(--primary-dark); padding: 6px 0; }
.rz-rules li { list-style: disc; margin: 0 0 6px 18px; }
.page-riziv .roi-bar { grid-template-columns: 110px 1fr auto; }

/* calculators: "email me this as a PDF" dialog */
.report-dialog { overscroll-behavior: contain; border: 0; padding: 0; border-radius: calc(var(--radius) * 1.25); width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); color: var(--neutral-800); box-shadow: 0 30px 80px rgba(20, 24, 31, .35); }
.report-dialog::backdrop { background: rgba(20, 24, 31, .55); backdrop-filter: blur(3px); }
.report-dialog[open] { animation: report-in .35s var(--ease-out); }
@keyframes report-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.report-form { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 36px; }
.report-form h2 { font-size: var(--fs-h4, 28px); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.report-intro { color: var(--neutral-600); margin: 0; }
.report-legal { font-size: var(--fs-xs); color: var(--neutral-600); margin: 0; }
.report-form .btn { align-self: flex-start; }
.report-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--neutral-50); font-size: 24px; line-height: 1; cursor: pointer; color: var(--neutral-800); }
.report-close:hover { background: var(--primary-light); }
@media (max-width: 640px) { .report-form { padding: 28px 20px; } }
@media (prefers-reduced-motion: reduce) { .report-dialog[open] { animation: none; } }

.assumptions { margin-top: 48px; border-radius: var(--radius); border: 1px solid rgba(47, 52, 64, .12); }
.assumptions summary { cursor: pointer; padding: 20px 28px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.assumptions summary::-webkit-details-marker { display: none; }
.assumptions summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; transition: transform .3s var(--ease-out); }
.assumptions[open] summary::after { transform: rotate(45deg); }
.assumptions > div { padding: 0 28px 28px; color: var(--neutral-600); font-size: var(--fs-small); }
.assumptions li { list-style: disc; margin: 0 0 8px 20px; }

/* ======================================================================
   CONTENT-NEEDED MARKERS: shown only in a review build (body.is-review,
   `npm run build:review`); staging and production builds hide them.
   ====================================================================== */
body:not(.is-review) .todo { display: none; }
body:not(.is-review) .todo-block::after { content: none; }
.is-review .todo {
  background: #fff4c2; box-shadow: 0 0 0 2px #fff4c2; border-radius: 4px; outline: 1px dashed #d4a800; outline-offset: 2px;
}
.todo-block { position: relative; }
.is-review .todo-block::after {
  content: "CONTENT NEEDED"; position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px;
  background: #fff4c2; color: #7a5b00; border: 1px dashed #d4a800;
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 1200px) {
  .subnav { top: 80px; }
  .split { gap: 48px; }
  .roi { grid-template-columns: 1fr; }
  .case-layout { grid-template-columns: 1fr; gap: 40px; }
  .case-facts { position: static; grid-template-columns: repeat(2, 1fr); }
  .quotes { columns: 2; }
}
@media (max-width: 900px) {
  .logo-cycler { grid-template-columns: repeat(3, 1fr); }
  .logo-cycler .lc-slot:nth-child(n+4) { display: none; }
  .product-cards, .cases { grid-template-columns: 1fr 1fr; }
  .case-card--next { grid-column: span var(--span-2, 2); }
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .specs, .metrics { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 40px; }
}
@media (max-width: 640px) {
  .logo-cycler { grid-template-columns: repeat(2, 1fr); }
  .logo-cycler .lc-slot:nth-child(n+3) { display: none; }
  .page-hero { padding-block: 40px 40px; }
  .product-cards, .cases, .steps, .specs, .metrics { grid-template-columns: 1fr; }
  .case-body { padding: 24px; }
  .case-card--next { grid-column: 1 / -1; }
  .quotes { columns: 1; }
  .roi-group, .roi-result { padding: 24px; }
  .rz-add { padding: 20px 24px; }
  .rz-add select { width: 100%; padding-inline: 14px; }
  .roi-hero-num { font-size: 44px; }
  .cta-band { padding: 36px 24px; }
  .pullquote { padding: 28px; font-size: 19px; }
  .case-facts { grid-template-columns: 1fr; }
  .subnav-list a { padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .glow::before, .cta-band::before { animation: none; }
  html.js .hero-shape, html.js .hero-photo { animation: none; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .lc-slot img { transition: none; }
  .steps::after { transition: none; transform: scaleX(1); }
  .carepath, .case-card, .product-card, .tool .tool-media, .logo-box, .btn { transition: none; }
  .carepath:hover, .case-card:hover, .product-card:hover, .logo-box:hover, .btn-primary:hover { transform: none; }
}

/* homepage: link below the testimonial carousel (on the teal band) */
.testimonial-more { text-align: center; margin-top: 32px; }
.testimonial-more a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hero-copy .chip-row { gap: 12px; }
ol.steps { list-style: none; padding: 0; margin-bottom: 0; }
dl.case-facts { margin: 0; }

/* ROI sliders: slim track filled up to the thumb (--fill set by enhance.js) */
.roi-field input[type="range"] {
  -webkit-appearance: none; appearance: none; background: transparent; height: 22px;
  --fill: 50%;
}
.roi-field input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(to right, var(--primary) 0 var(--fill), #dfe5e8 var(--fill) 100%);
}
.roi-field input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: #dfe5e8; }
.roi-field input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--primary); }
.roi-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary); box-shadow: 0 2px 8px rgba(47, 52, 64, .15);
  transition: transform .2s var(--ease-out);
}
.roi-field input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--primary);
}
.roi-field input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.roi-field input[type="range"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
.roi-actions .btn, .cta-actions .btn { white-space: normal; height: auto; min-height: 48px; padding-block: 10px; text-align: center; line-height: 1.3; }

/* ======================================================================
   CENTERED LAYOUT (Nimble-style)
   ====================================================================== */
.section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--neutral-600); max-width: 64ch; margin-inline: auto; }
.section-head .eyebrow { justify-content: center; }
.page-hero { text-align: center; padding-block: 88px 72px; }
.page-hero .display, .page-hero .lead { margin-inline: auto; }
.page-hero .page-hero-actions { justify-content: center; }
.center-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* two-up grid under a centered heading */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); max-width: var(--content-narrow); margin-inline: auto; }

/* ---------- centered homepage hero + photo stage ---------------------- */
.hero--center { padding-top: 64px; }
.hero-center { max-width: 900px; margin: 0 auto; text-align: center; }
.hero-center .display { font-size: clamp(42px, 6.2vw, 84px); margin-bottom: 24px; }
.hero-center .lead { max-width: 800px; margin: 0 auto 32px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 5px 16px 5px 5px;
  border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(47, 52, 64, .08);
  font-size: var(--fs-xs); font-weight: 500; color: var(--neutral-800);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: box-shadow .3s ease;
}
.hero-pill:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(47, 52, 64, .1); }
.hero-pill .chip { height: 26px; padding: 0 10px; }
.hero-pill::after { content: "→"; transition: transform .25s var(--ease-out); }
.hero-pill:hover::after { transform: translateX(3px); }

.hero-stage {
  position: relative; max-width: 1180px; margin: 64px auto 0; aspect-ratio: 1180 / 500;
  --s: 1; transform: scale(var(--s)); transform-origin: 50% 0; will-change: transform;
}
.hero-stage .hero-shape { top: auto; bottom: 0; width: 6.2%; }
.hero-stage .hero-shape-1 { left: 0; height: 52%; }
.hero-stage .hero-shape-2 { left: 7.4%; height: 76%; }
.hero-frame {
  position: absolute; left: 14.8%; right: 0; top: 0; bottom: 0; overflow: hidden;
  border-radius: 140px 0; background: var(--primary-light);
}
.hero-stage .hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0;
  object-fit: cover; object-position: 55% 30%;
}
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(47, 52, 64, .16); font-size: var(--fs-xs); line-height: 1.35;
}
.float-card b { display: block; font-size: var(--fs-small); font-weight: 600; }
.float-card span { color: var(--neutral-600); }
.float-card i {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px 0; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
}
.float-card i img { width: 20px; height: 20px; }
.float-card--1 { left: 20%; bottom: 10%; }
.float-card--2 { right: 4%; top: 12%; animation-delay: -3.5s; }
.float-card--2 i { background: #ffe1e1; }

/* ======================================================================
   TESTIMONIAL HOOKS — short line + image instead of long quotes
   ====================================================================== */
.hooks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.hook {
  display: flex; flex-direction: column; color: inherit; border-radius: var(--radius);
  background: var(--neutral-50); overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.hook:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 14px 50px rgba(47, 52, 64, .14); }
.hook-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg, var(--primary-light)); overflow: hidden; }
.hook-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.hook-media img.contain { object-fit: contain; padding: 28px; }
.hook:hover .hook-media img { transform: scale(1.05); }
.hook-media .chip { position: absolute; left: 16px; top: 16px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hook-body { padding: 28px; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.hook-line { font-size: 24px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--neutral-800); transition: color .25s ease; }
.hook:hover .hook-line { color: var(--primary-dark); }
.hook-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.hook-person img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.hook-person b { display: block; font-size: var(--fs-small); font-weight: 600; }
.hook-person span span { display: block; font-size: var(--fs-xs); color: var(--neutral-600); }

/* ======================================================================
   GUIDE / ARTICLE LAYOUT (reimbursement guide) with sticky TOC
   ====================================================================== */
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 80px; align-items: start; }
.toc { position: sticky; top: 130px; }
.toc p { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--neutral-600); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--neutral-50); }
.toc li a {
  display: block; padding: 8px 0 8px 18px; margin-left: -2px; border-left: 2px solid transparent;
  font-size: var(--fs-small); color: var(--neutral-600); transition: color .2s ease, border-color .2s ease;
}
.toc li a:hover { text-decoration: none; color: var(--primary-dark); }
.toc li a.is-active { color: var(--primary-dark); border-left-color: var(--primary); font-weight: 500; }
.guide-body > section { scroll-margin-top: 120px; padding-bottom: 64px; }
.guide-body > section + section { border-top: 1px solid rgba(47, 52, 64, .1); padding-top: 64px; }
.guide-body h2 { font-size: var(--fs-h3); margin-bottom: 16px; }
.guide-body h3 { font-size: var(--fs-h5); font-weight: 600; margin: 32px 0 10px; }
.guide-body p { color: var(--neutral-600); margin-bottom: 16px; }
.guide-body .lead { margin-bottom: 24px; }
.guide-body .checks { margin-top: 20px; }

.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.route { border-radius: var(--radius); background: var(--neutral-50); padding: 24px 28px; }
.route h3, .route h4 { font-size: var(--fs-h5); font-weight: 600; margin-bottom: 8px; }
.route p { font-size: var(--fs-small); margin: 0; }
.route .chip { margin-bottom: 14px; }

/* reimbursed pathway rows */
.paths { display: grid; gap: 12px; margin-top: 24px; }
.path-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center;
  border-radius: 20px; padding: 18px 22px; background: var(--neutral-50);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.path-row:hover { border-color: var(--primary-medium); box-shadow: 0 8px 30px rgba(47, 52, 64, .08); }
.path-row .carepath-icon { margin: 0; width: 52px; height: 52px; }
.path-row .carepath-icon img { width: 36px; height: 36px; }
.path-row h3, .path-row h4 { font-size: var(--fs-h5); font-weight: 600; margin: 0; }          /* the same sizes as the funding routes above: title, text, link */
.path-row p { font-size: var(--fs-small); margin: 4px 0 0; }
.chip--link { text-decoration: none; transition: background .15s, color .15s; }
.chip--link::after { content: "\2197"; margin-left: 5px; font-size: 12px; }
.chip--link:hover, .chip--link:focus-visible { background: var(--primary-dark, #0f6e63); color: #fff; }
.path-row .chip { justify-self: end; }

/* numbered timeline (vertical) */
.vsteps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: vs; }
.vsteps li { position: relative; padding: 0 0 28px 64px; counter-increment: vs; }
.vsteps li::before {
  content: counter(vs, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 14px 0; background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 600;
}
.vsteps li::after { content: ""; position: absolute; left: 21px; top: 52px; bottom: 6px; width: 2px; background: var(--primary-light); }
.vsteps li:last-child::after { display: none; }
.vsteps h3, .vsteps h4 { font-size: var(--fs-h5); font-weight: 600; margin-bottom: 4px; padding-top: 8px; }
.vsteps p { font-size: var(--fs-small); margin: 0; }

/* FAQ accordion */
.faq { display: grid; gap: 10px; max-width: 880px; margin-inline: auto; }
.faq details { border-radius: 18px; background: var(--neutral-50); transition: background-color .25s ease; }
.faq details[open] { background: var(--primary-light); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 24px; font-weight: 600; font-size: var(--fs-small);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 24px 20px; font-size: var(--fs-small); color: var(--neutral-600); margin: 0; }

/* ======================================================================
   CERTIFICATIONS / TRUST
   ====================================================================== */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.badge-card {
  border-radius: var(--radius); background: var(--neutral-50); padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.badge-card:hover { transform: translateY(-4px); box-shadow: 0 14px 50px rgba(47, 52, 64, .14); }
.badge-mark {
  width: 56px; height: 56px; border-radius: 18px 0; background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; letter-spacing: .02em;
  margin-bottom: 8px; text-align: center; line-height: 1.1;
}
.badge-card h3 { font-size: var(--fs-h5); font-weight: 600; }
.badge-card p { font-size: var(--fs-small); color: var(--neutral-600); }
.badge-card .chip { align-self: flex-start; margin-top: auto; }
.chip--progress { background: #fff1d6; color: #8a5a00; }

.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc-row {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px;
  background: var(--neutral-50); color: inherit;
  transition: background-color .25s ease;
}
.doc-row:hover { text-decoration: none; border-color: var(--primary-medium); box-shadow: 0 8px 30px rgba(47, 52, 64, .08); }
.doc-row i { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px 0; background: var(--neutral-50); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 600; color: var(--neutral-600); }
.doc-row b { display: block; font-size: var(--fs-small); font-weight: 600; }
.doc-row span { font-size: var(--fs-xs); color: var(--neutral-600); }
.doc-row em { margin-left: auto; font-style: normal; font-size: var(--fs-xs); font-weight: 600; color: var(--primary-dark); white-space: nowrap; }

/* ======================================================================
   ABOUT
   ====================================================================== */
.mission {
  max-width: 980px; margin: 0 auto; text-align: center;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em;
}
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; row-gap: 48px; }   /* eight milestones: two rows of four */
.tl-item::after { content: ""; position: absolute; left: 0; right: -20px; top: 11px; height: 2px; background: var(--primary-light); z-index: 0; }   /* the line to the next milestone */
.tl-item:nth-child(4n)::after { right: 0; }
.tl-item::before { z-index: 1; }
.tl-count { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-size: 13px; font-weight: 600; }
.tl-count--none { visibility: hidden; }   /* keeps the titles level when a milestone has no patient count */
.tl-item { position: relative; padding-top: 40px; }
.tl-item::before {
  content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 24px; border-radius: 12px 0;
  background: var(--primary);
}
.tl-item b { display: block; font-size: var(--fs-h4); font-weight: 500; color: var(--primary-dark); letter-spacing: -0.01em; }
.tl-item h3, .tl-item h4 { font-size: var(--fs-small); font-weight: 600; margin: 6px 0 4px; }
.tl-item p { font-size: var(--fs-xs); color: var(--neutral-600); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.value { border-radius: var(--radius); background: var(--neutral-50); padding: 28px; }
.value h3 { font-size: var(--fs-h5); font-weight: 600; margin: 16px 0 8px; }
.value p { font-size: var(--fs-small); color: var(--neutral-600); }
.value-num { font-size: var(--fs-xs); font-weight: 600; color: var(--primary-dark); letter-spacing: .1em; }

.office { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: stretch; }
.office-card { border-radius: var(--radius); background: var(--neutral-50); padding: 40px; }
.office-card h3 { font-size: var(--fs-h4); font-weight: 600; margin-bottom: 12px; }
.office-card p, .office-card address { color: var(--neutral-600); font-style: normal; margin-bottom: 12px; }

/* ======================================================================
   "TO VERIFY" MARKERS for draft claims (see VERIFY.md): preview builds only.
   ====================================================================== */
.is-review .verify { text-decoration: underline dotted #d98a00; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.is-review .verify[data-verify]::after {
  content: attr(data-verify); font-size: 10px; font-weight: 600; letter-spacing: .02em; vertical-align: super;
  color: #b36b00; margin-left: 2px; display: inline-block;
}

/* ======================================================================
   RESPONSIVE (new components)
   ====================================================================== */
@media (max-width: 1200px) {
  .guide { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px 16px; border-left: 0; }
  .toc li a { padding: 4px 0; border-left: 0; margin: 0; }
  .badges, .values, .team { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .tl-item::after { display: none; }
}
@media (max-width: 900px) {
  .hooks { grid-template-columns: 1fr 1fr; }
  .duo, .routes, .docs, .office { grid-template-columns: 1fr; }
  .hero-stage { aspect-ratio: 4 / 3; }
  .hero-frame { border-radius: 90px 0; }
  .float-card--1 { left: 18%; bottom: 6%; }
}
@media (max-width: 640px) {
  .hooks, .badges, .values, .timeline { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .hero--center { padding-top: 32px; }
  .hero-stage { margin-top: 40px; aspect-ratio: 1 / 1; }
  .hero-frame { left: 17%; border-radius: 64px 0; }
  .hero-stage .hero-shape { width: 7%; }
  .hero-stage .hero-shape-2 { left: 8.5%; }
  .float-card { padding: 8px 12px 8px 8px; }
  .float-card--2 { display: none; }
  .float-card--1 { left: 8%; right: 8%; bottom: 5%; }
  .hook-line { font-size: 21px; }
  .path-row { grid-template-columns: 44px 1fr; }
  .path-row .chip { grid-column: 2; justify-self: start; }
  .path-row .carepath-icon { width: 44px; height: 44px; }
  .doc-row em { display: none; }
  .section-head { margin-bottom: 36px; }
  .page-hero { padding-block: 48px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stage { transform: none; }
  .nav-indicator { transition: none; }
}
.hero-center .display .tone-brand { display: block; }
.subnav .container { display: flex; justify-content: center; }
.page-customers .filters { justify-content: center; }
@media (max-width: 640px) { .hero-center .display { font-size: 38px; } .hero-center .lead, .page-hero .lead { font-size: 18px; } }
.office > * { min-width: 0; }
.office-card .link-arrow { overflow-wrap: anywhere; }
@media (max-width: 640px) { .office-card { padding: 28px; } }

/* generated story pages */
.case-content ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; color: var(--neutral-600); }
.case-content li { margin-bottom: 6px; }
.case-content a, .article-body a:not(.btn) { color: var(--primary-dark); text-decoration: underline; }
.article-body { font-size: 19px; }
.article-meta { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(47, 52, 64, .1); font-size: var(--fs-small); }

/* brand mark on dark panels: lighter bars instead of the old halo */
.cta-band .eyebrow::before, .roi-result .eyebrow::before { filter: brightness(1.35); }

/* kiosk detail gallery + wide in-context shot (solutions, ROI) */
.kiosk-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin-top: 64px; }
.kiosk-gallery figure { margin: 0; }
.kiosk-gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--neutral-50);
  transition: transform .8s var(--ease-out);
}
.kiosk-gallery figure:hover img { transform: scale(1.03); }
.kiosk-gallery figcaption { margin-top: 14px; font-size: var(--fs-small); color: var(--neutral-600); }
.kiosk-gallery figcaption b { display: block; color: var(--neutral-800); font-weight: 600; margin-bottom: 2px; }
.wide-shot { margin: 64px 0 0; }
.wide-shot img { width: 100%; aspect-ratio: 1600 / 650; object-fit: cover; border-radius: 120px 0; }
.wide-shot figcaption { margin-top: 16px; text-align: center; font-size: var(--fs-small); color: var(--neutral-600); }
@media (max-width: 900px) { .kiosk-gallery { grid-template-columns: 1fr 1fr; } .wide-shot img { border-radius: 64px 0; } }
@media (max-width: 640px) { .wide-shot img { aspect-ratio: 4 / 3; border-radius: 48px 0; } }

/* client logos in full colour (were greyscale) */
.lc-slot img { filter: none; }
.lc-slot img.is-active, html:not(.js) .lc-slot img:first-child { opacity: 1; }

/* story page photo with credit line */
.case-hero-photo { position: relative; margin: 0; aspect-ratio: 21 / 9; }
.case-hero-photo img { width: 100%; height: 100%; object-fit: cover; padding: 0; }
.photo-credit {
  position: absolute; right: 16px; bottom: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(47, 52, 64, .55); color: #fff; font-size: 13px; line-height: 1.4;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.photo-credit a { color: #fff; text-decoration: underline; }

/* ---------- navigation: Product, Calculators, Resources, language switcher -
   Markup: renderNav() in build.js. Behaviour: main.js ("menus"). Desktop
   (>1200px): panels drop down under the nav pill, on click or hover. Mobile:
   full-height menu, each item an accordion, switcher + CTA pinned at the bottom. */
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font: inherit; font-size: var(--fs-body); font-weight: 500; color: var(--neutral-800); cursor: pointer;
}
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--primary-dark); }
.nav-trigger[data-current] { color: var(--primary-dark); }
.nav-chev { width: 12px; height: 12px; flex: none; transition: transform .25s var(--ease-out); }
.nav-trigger[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
.nav-trigger:focus-visible, .nav-link:focus-visible, .nav-panel a:focus-visible, .lang-switch a:focus-visible {
  outline: 2px solid var(--primary-dark); outline-offset: 2px; border-radius: 8px;
}
.nav-end { display: flex; align-items: center; gap: 20px; }

/* panel content (shared by desktop and mobile) */
.mega-group-title { margin: 0 0 10px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; color: var(--primary-dark); }
.mega-list, .mega-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-link {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px;
  color: var(--neutral-800); text-decoration: none; transition: background-color .15s ease;
}
.mega-link:hover, .mega-link[aria-current] { background: var(--primary-light); text-decoration: none; color: var(--neutral-800); }
.mega-link b { font-size: var(--fs-small); font-weight: 600; display: block; }
.mega-link span { font-size: var(--fs-xs); color: var(--neutral-600); line-height: 1.4; display: block; }
.mega-pill {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: -14px; padding: 11px 20px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark);
  font-size: var(--fs-small); font-weight: 600; text-decoration: none; transition: background-color .15s ease;
}
.mega-pill:hover, .mega-pill[aria-current] { background: var(--primary-medium); color: var(--neutral-800); text-decoration: none; }
.mega-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
/* "By product" and "By use case" share one row layout: the same icon tile, gap and vertical centring */
.mega-link.mega-product, .mega-link.mega-uc { flex-direction: row; align-items: center; gap: 14px; padding-block: 10px; }
.mega-product-icon { background: var(--pc-bg); color: var(--pc); }
.mega-product > span:last-child { color: var(--neutral-800); font-size: inherit; }
/* Solutions ▾: "By product" and "By use case" (two columns of five, an icon each) */
.mega-solutions { display: grid; gap: 20px 40px; }
.mega-solutions .mega-group { display: flex; flex-direction: column; padding: 20px 20px; border-radius: 20px; }
/* "By use case" sits on a teal tint; the tiles and the hover turn white on it */
.mega-group--uc { background: var(--primary-light); }
.mega-group--uc .mega-link .mega-uc-icon { background: #fff; }
.mega-group--uc .mega-link:hover, .mega-group--uc .mega-link[aria-current] { background: #fff; }
.mega-group--uc .mega-link:hover .mega-uc-icon, .mega-group--uc .mega-link[aria-current] .mega-uc-icon { background: var(--primary-light); }
.mega-solutions .mega-group > ul { flex: 1; }
.mega-solutions .mega-list > li { display: flex; }   /* the link fills its row, so the icon is centred in the row and the hover covers it */
.mega-solutions .mega-list > li > .mega-link { flex: 1; }
.mega-solutions .mega-products { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; } /* five rows of one height, level with the use cases */
.mega-link b > span { display: inline; font-size: inherit; color: inherit; }
/* "Coming soon 2027" next to an announced product (PRODUCTS.soon) */
.soon-badge, .mega-link .soon-badge {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  background: #fff1d6; color: #8a5a00; font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
/* the five use cases are spread over the height of the product column, so both columns end on the same line */
.mega-ucs { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(5, 1fr); grid-auto-flow: column; gap: 2px 32px; } /* two equal columns, as wide as the longest label; a link reaches 12px past its column on each side, so 32px leaves 8px between two hovered rows */
/* .mega-link span would turn these into plain blocks, hence the longer selector */
.mega-link .mega-uc-icon, .mega-link .mega-product-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.mega-link .mega-uc-icon { background: var(--primary-light); color: var(--primary-dark); }
.mega-uc-icon .ic, .mega-product-icon .ic { width: 22px; height: 22px; }
.mega-link:hover .mega-uc-icon, .mega-link:hover .mega-product-icon, .mega-link[aria-current] .mega-uc-icon, .mega-link[aria-current] .mega-product-icon { background: #fff; }
/* "Build your care flow" and "Compare packages and pricing" under the products */
.mega-more { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--neutral-50); font-size: var(--fs-xs); }
.mega-more .link-arrow { margin: 0; }

/* language switcher: EN · NL · FR */
.lang-switch { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; font-size: var(--fs-xs); font-weight: 600; }
.lang-switch li + li::before { content: "·"; color: var(--neutral-400); margin: 0 6px; }
.lang-switch a { color: var(--neutral-600); padding: 6px 2px; text-decoration: none; }
.lang-switch a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 4px; }
.lang-switch a[aria-current] { color: var(--primary-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* legal pages in NL/FR: the English text with a translated notice */
.lang-notice { padding: 12px 16px; border-radius: 12px; background: var(--primary-light); color: var(--primary-dark); font-weight: 500; }

@media (min-width: 1201px) {
  .nav-links .nav-item.has-panel { position: static; }
  .nav-links .nav-trigger { position: relative; z-index: 1; } /* above the sliding highlight */
  .nav-link, .nav-trigger { display: inline-flex; align-items: center; padding: 9px 20px; border-radius: var(--leaf-sm); font-size: var(--fs-small); }
  .nav-links .nav-link { display: block; }
  .nav-panel {
    position: absolute; top: calc(100% + 14px); left: 50%; z-index: 120;
    background: #fff; border: 1px solid rgba(47, 52, 64, .08); border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(47, 52, 64, .16); padding: 28px 32px;
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .25s var(--ease-out), visibility 0s linear .25s;
  }
  /* an invisible bridge, so the pointer can travel from the trigger to the panel */
  .nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .nav-item.is-open > .nav-panel,
  html:not(.js) .nav-item.has-panel:hover > .nav-panel,
  html:not(.js) .nav-item.has-panel:focus-within > .nav-panel {
    opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
  }
  .mega-list { width: 320px; }
  .mega-list.mega-products { width: 640px; }
  .mega-solutions { grid-template-columns: 372px max-content; gap: 20px 8px; }
  #menu-solutions { padding: 12px 12px 18px; }   /* the groups carry their own padding (the use cases a tinted card) */
  #menu-solutions .mega-more { margin-inline: 24px; }
  .mega-solutions .mega-list, .mega-solutions .mega-list.mega-products { width: auto; }
  .mega-groups { display: grid; }
  .mega-groups--resources { grid-template-columns: repeat(2, minmax(160px, auto)); gap: 32px; }
  .nav-panel--small { width: max-content; max-width: calc(100vw - 48px); }
  .nav-end { justify-self: end; }
  .header-inner { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); } /* never squeeze the logo */
}
/* desktop, just above the hamburger breakpoint: five menu items (longer in
   NL/FR) plus the switcher and CTA need a tighter header */
@media (min-width: 1201px) and (max-width: 1400px) {
  .site-header .container { padding-inline: 32px; }
  .header-inner, .header-inner .primary-nav { gap: 16px; }
  .header-inner .logo img { height: 40px; }
  .nav-links .nav-link, .nav-links .nav-trigger, .nav-links > li > a { padding: 9px 13px; }
  .nav-end { gap: 14px; }
}

@media (max-width: 1200px) {
  .primary-nav {
    inset: 80px 0 0 0; height: calc(100vh - 80px); height: calc(100dvh - 80px); max-height: none; overscroll-behavior: contain;
    display: flex; flex-direction: column; padding: 8px var(--margin) 0;
    visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
  }
  .primary-nav.is-open { visibility: visible; transition-delay: 0s; }
  .nav-links { flex: 1 0 auto; }
  .nav-links > li { border-bottom: 1px solid var(--neutral-50); }
  .nav-links > li > a.nav-link { border-bottom: 0; }
  .nav-trigger { width: 100%; justify-content: space-between; padding: 14px 0; text-align: left; }
  .nav-panel { display: none; padding: 0 0 16px; }
  .nav-item.is-open > .nav-panel { display: block; }
  .mega-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  .mega-link { margin: 0; padding: 10px 8px; }
  .mega-more { margin: 4px 8px 0; padding-top: 0; border-top: 0; }
  .mega-products { grid-template-columns: minmax(0, 1fr); }
  .nav-end {
    position: sticky; bottom: 0; margin: 0 calc(var(--margin) * -1); padding: 16px var(--margin);
    background: #fff; border-top: 1px solid var(--neutral-50);
    flex-direction: column; align-items: stretch; gap: 12px;
  }
  .nav-end .lang-switch { justify-content: center; font-size: var(--fs-small); }
  .nav-end .nav-cta { margin-top: 0; }
}
@media (max-width: 640px) {
  .mega-groups { grid-template-columns: 1fr; }
  .mega-ucs { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-panel, .nav-chev { transition: none; }
}

/* ---------- reimbursement: guide + calculator on one page --------------- */
.guide-narrow { max-width: calc(var(--content-narrow) + 2 * var(--margin)); }
.guide-section { scroll-margin-top: 50px; } /* + html scroll-padding-top: clears header and sub-nav */
.guide-section .routes, .guide-section .paths { margin-top: 24px; }
.path-row .path-calc { margin: 8px 0 0; font-size: var(--fs-small); }
.path-row { min-height: 124px; }   /* rows without a Calculate link are as tall as those with one */
/* the intro of each guide section is laid out like .section-head: centred, 16px under the heading,
   the same text size and colour, and the section-head gap before the content */
.guide-section h2 { text-align: center; text-wrap: balance; margin-bottom: 16px; }
.guide-section > .container > p { text-align: center; text-wrap: balance; max-width: 64ch; margin: 0 auto 56px; font-size: var(--fs-body); color: var(--neutral-600); }
.guide-section > .container > p:last-child { margin-bottom: 0; }
.guide-section .routes, .guide-section .paths, .guide-section .checks, .guide-section .vsteps { margin-top: 0; }
.guide-section .checks { margin-bottom: 0; }   /* every section ends the same distance above the next one (the section padding) */
.guide-section h2 + .faq { margin-top: 40px; }
@media (max-width: 640px) { .guide-section > .container > p { margin-bottom: 36px; } .guide-section h2 + .faq { margin-top: 20px; } }
/* transparent, so the site's gradient shows through; the white cards get a soft edge instead */
.calc-section { background: transparent; scroll-margin-top: 50px; padding-bottom: 56px; }
.calc-section .roi-group { background: #fff; box-shadow: 0 0 0 1px rgba(47, 52, 64, .08), 0 12px 32px rgba(47, 52, 64, .06); }
.calc-section .assumptions { background: #fff; }
.calc-section .roi-group:target, .calc-section .roi-group.is-target { box-shadow: 0 0 0 3px var(--primary-medium); }
.roi-group { scroll-margin-top: 60px; }
@media (min-width: 1201px) { .page-guide .roi-result { top: 170px; } } /* below the header and the sticky sub-nav */

/* ---------- products: the list, prices and product pages -----------------
   Every product has a colour (--c-<id> / --c-<id>-bg in :root, darker shades
   for text contrast); components read it through --pc / --pc-bg, set inline
   by build.js (PRODUCTS) or the page. */
.ic { width: 24px; height: 24px; flex: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* one row per product (productList() in build.js): the homepage list and the
   "works with" rows on a product page. A colour block on the left, no icons. */
.pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pl > li { display: flex; }
.pl-row { flex: 1; }
@media (min-width: 901px) { .pl { grid-auto-rows: 1fr; } } /* every row as tall as the tallest */
.pl-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) minmax(0, .85fr) 28px;
  gap: 32px; align-items: center; padding: 30px 32px; border-radius: var(--radius); overflow: hidden;
  background: var(--neutral-50); color: var(--neutral-800); text-decoration: none; transition: background-color .2s ease;
}
.pl-row::after { content: "\2192"; font-size: 24px; line-height: 1; color: var(--pc); transition: transform .25s var(--ease-out); }
.pl-row:hover { background: var(--pc-bg); color: var(--neutral-800); text-decoration: none; }
.pl-row:hover::after { transform: translateX(4px); }
.pl-row:focus-visible { outline: 2px solid var(--pc); outline-offset: 3px; }
.pl-head { display: flex; align-items: center; gap: 18px; }
.pl-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--pc-bg); color: var(--pc); flex: none; transition: background-color .2s ease; }
.pl-icon .ic { width: 28px; height: 28px; }
.pl-row:hover .pl-icon { background: #fff; }
.pl-name { margin: 0; font-size: var(--fs-h4); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.pl-for { margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--pc); }
.pl-text { font-size: var(--fs-small); line-height: 1.55; color: var(--neutral-600); }
.pl-price { font-size: var(--fs-xs); color: var(--neutral-600); }
.pl-price b { font-variant-numeric: tabular-nums; display: block; font-size: var(--fs-h4); font-weight: 600; line-height: 1.2; color: var(--neutral-800); }
@media (max-width: 900px) {
  .pl-row { grid-template-columns: minmax(0, 1fr) 24px; gap: 10px 16px; padding: 24px; }
  .pl-row::after { grid-column: 2; grid-row: 1; }
  .pl-text, .pl-price { grid-column: 1 / -1; }
}

/* product page hero: the promise on the left, the price on the right */
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: center; text-align: left; }
.product-hero .display { margin-inline: 0; max-width: none; font-size: clamp(36px, 4vw, 56px); }
.product-hero .lead { margin-inline: 0; }
.product-hero .page-hero-actions { justify-content: flex-start; }
@media (max-width: 960px) {
  .product-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .product-hero .price-box { max-width: 440px; }
}

/* prices */
.price-box {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: #fff;
}
.price-label { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--neutral-600); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; }
.price b { font-variant-numeric: tabular-nums; font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; color: var(--neutral-800); }
.price span { font-size: var(--fs-small); color: var(--neutral-600); }
.price-extra { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--pc-bg); font-size: var(--fs-xs); line-height: 1.45; color: var(--neutral-800); }
.price-vat { margin: 0; font-size: 13px; color: var(--neutral-600); }
.price-box .btn { margin-top: 6px; justify-content: center; }
.price-box .link-arrow { margin-top: 2px; align-self: center; font-size: var(--fs-xs); }

/* /pricing: one row per product. The name and who it is for, what is included,
   and a white buying panel with the price: a field of the product's own colour. */
.price-list { display: grid; gap: 12px; }
@media (min-width: 1001px) { .price-list { grid-auto-rows: 1fr; } } /* every row as tall as the tallest */
.price-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, .8fr); gap: 24px 36px; align-items: stretch;
  padding: 24px 24px 24px 36px; border-radius: var(--radius); background: var(--pc-bg); scroll-margin-top: 120px;
}
.pr-id { display: flex; flex-direction: column; align-items: flex-start; }
.price-row h2 { margin: 0; font-size: clamp(22px, 1.9vw, 27px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--neutral-800); }
.price-row .brand-label { display: block; width: fit-content; margin: 8px 0 0; padding: 3px 10px; background: #fff; font-size: var(--fs-xs); }
.pr-for { margin: 8px 0 0; max-width: 26ch; font-size: var(--fs-small); font-weight: 600; line-height: 1.35; color: var(--pc); }
.pr-links { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pr-links .link-arrow { margin: 0; color: var(--pc); }
.pr-incl { display: flex; flex-direction: column; gap: 8px; }
.pr-incl .price-label { margin: 0; font-size: var(--fs-xs); }
.pr-incl .price-includes { gap: 6px; font-size: var(--fs-small); line-height: 1.4; color: var(--neutral-800); }
.pr-incl .price-includes li { padding-left: 26px; }
.pr-incl .price-includes li::before { top: 6px; width: 11px; }
.price-row .price-includes a { text-decoration-color: color-mix(in srgb, var(--pc) 35%, transparent); }
.price-row .price-includes a:hover { text-decoration-color: var(--pc); }
.pr-incl .price-extra { margin-top: 4px; padding: 10px 14px; background: #fff; font-size: var(--fs-xs); }
.pr-buy {
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center; align-items: center; gap: 0 14px; padding: 14px 20px; text-align: center;
  border-radius: 16px; background: #fff;
}
/* the price: "From" small on top, the amount big, "per X per Y" small below */
.price-row .price { flex-direction: column; align-items: center; gap: 0; flex: 1 0 100%; }
.pr-buy .price-actions { flex: 1 0 100%; } /* the billing note and "unlimited" share a line when they fit */
.price-row .price b { font-size: clamp(30px, 2.5vw, 36px); letter-spacing: -.02em; }
.price-row .price > span { font-size: var(--fs-xs); }
/* "On request" is words, not a figure: set smaller than the amounts */
.price-row#command .price b { font-size: clamp(22px, 1.9vw, 26px); letter-spacing: -.01em; }
.price-row .price-bill { margin: 2px 0 0; font-size: var(--fs-xs); text-align: center; }
.price-row .price-unlimited { margin-top: 2px; font-size: var(--fs-xs); }
.pr-buy .price-actions { width: 100%; margin-top: 0; padding-top: 8px; gap: 2px; }
.pr-buy .btn { padding-block: 8px; }
.price-row .price { line-height: 1.25; }
.price-row .price b { line-height: 1.05; }
.pr-buy .price-bill + .price-actions, .pr-buy .price-unlimited + .price-actions { margin-top: 0; }
.price-short { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--neutral-600); }
.price-includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-small); }
.price-includes li { position: relative; padding-left: 24px; }
.price-includes li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 6px;
  border-left: 2px solid var(--pc); border-bottom: 2px solid var(--pc); transform: rotate(-45deg);
}
.price-includes a { color: inherit; text-decoration: underline; text-decoration-color: var(--pc-bg); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.price-includes a:hover { text-decoration-color: var(--pc); }
.price-actions { margin-top: auto; padding-top: 12px; display: grid; gap: 4px; justify-items: center; }
.price-actions .btn { width: 100%; justify-content: center; }
.price-actions .link-arrow { margin-top: 8px; font-size: var(--fs-xs); color: var(--pc); }
.price-full { text-align: center; max-width: 780px; margin: 40px auto 0; color: var(--neutral-600); }
.price-full .link-arrow { margin-top: 8px; }
@media (max-width: 1000px) {
  .price-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 24px 22px; gap: 20px 28px; }
  .pr-incl { grid-column: 1 / -1; order: 3; }
  .pr-links { margin-top: 0; }
}
@media (max-width: 640px) {
  .price-row { grid-template-columns: minmax(0, 1fr); padding: 22px 16px 16px; }
  .pr-incl { grid-column: auto; }
  .pr-buy { order: 2; }
  .pr-incl { order: 3; }
}
.price-from { font-size: var(--fs-small); color: var(--neutral-600); }
.price b span { font-size: inherit; color: inherit; } /* the monthly and yearly amounts */

/* the Well@Home name next to a product name (PRODUCTS.brand) */
.brand-label {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  background: var(--pc-bg, var(--primary-light)); color: var(--pc, var(--primary-dark));
  font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .01em; white-space: nowrap;
}

/* Monthly / Yearly: both amounts are in the page, html[data-billing] picks one
   (enhance.js). Without JavaScript the yearly prices show and the switch hides. */
html[data-billing="monthly"] .bill-y, html:not([data-billing="monthly"]) .bill-m { display: none; }
html:not(.js) .bill-switch { display: none; }
.bill-switch {
  display: inline-flex; gap: 4px; padding: 4px; margin-top: 28px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(47, 52, 64, .1);
}
.bill-switch button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border: 0; border-radius: 999px;
  background: none; font: inherit; font-size: var(--fs-small); font-weight: 600; color: var(--neutral-600); cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.bill-switch button:hover { color: var(--neutral-800); }
.bill-switch button[aria-pressed="true"] { background: var(--primary-dark); color: #fff; }
.bill-switch button:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.bill-save { padding: 2px 8px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-size: 12px; }
.price-box .bill-switch { margin: 0 0 6px; align-self: flex-start; background: var(--neutral-50); box-shadow: none; }
.price-box .bill-switch button { padding: 7px 14px; font-size: var(--fs-xs); }
.price-bill { margin: -4px 0 0; font-size: 13px; color: var(--neutral-600); }
.price-unlimited { position: relative; margin: 0; padding-left: 20px; font-size: 13px; font-weight: 600; color: var(--pc, var(--primary-dark)); }
.price-unlimited::before { content: ""; position: absolute; left: 2px; top: 4px; width: 10px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .bill-switch button { transition: none; } }

/* Patient Communication packages (tierCards() in build.js) */
.tier-head { text-align: center; margin: 0 auto 36px; max-width: 900px; }
.tier-head h2 { margin-bottom: 10px; }
@media (min-width: 700px) { .tier-head h2 { text-wrap: nowrap; } } /* the Well@Home label stays on the title's line */
.tier-head .brand-label { --pc: var(--c-communication); --pc-bg: var(--c-communication-bg); }
.tier-head p { color: var(--neutral-600); margin: 0; }
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px 28px;
  border-radius: var(--radius); background: var(--neutral-50); scroll-margin-top: 120px;
}
.tier h3 { margin: 0; font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.tier .price { flex-direction: column; align-items: flex-start; gap: 0; }
.tier .price b { font-size: 52px; }
.tier .price > span { font-size: var(--fs-small); }
.tier .btn { justify-content: center; margin: 10px 0 6px; }
.tier .price-label { margin-top: 12px; }
.tier .price-includes { font-size: var(--fs-small); }
/* the recommended package keeps the same light grey; the "Most popular" pill marks it */
.tier-badge {
  position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px;
  background: var(--neutral-800); color: #fff; font-size: var(--fs-xs); font-weight: 600; /* the dark slate of the footer and contact band */
}
@media (max-width: 1000px) { .tier-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }

/* every package feature side by side, folded away */
.tier-compare { margin-top: 24px; border-radius: var(--radius); background: var(--neutral-50); }
.tier-compare summary {
  display: flex; justify-content: center; align-items: center; gap: 8px; padding: 18px 24px;
  font-weight: 600; cursor: pointer; list-style: none; color: var(--pc);
}
.tier-compare summary::-webkit-details-marker { display: none; }
.tier-compare summary:focus-visible { outline: 2px solid var(--pc); outline-offset: 2px; border-radius: var(--radius); }
.tier-compare[open] summary .nav-chev { transform: rotate(180deg); }
.table-scroll { overflow-x: auto; padding: 0 24px 24px; }
.tier-compare table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: var(--fs-small); }
.tier-compare th, .tier-compare td { padding: 12px 10px; border-top: 1px solid rgba(47, 52, 64, .08); text-align: center; }
.tier-compare thead th { border-top: 0; font-weight: 600; }
.tier-compare tbody th { text-align: left; font-weight: 500; }
.tier-compare td.yes { color: var(--pc); font-weight: 700; }
.tier-compare td.no { color: var(--neutral-400); }

/* the package deal: on /pricing and every use-case page (dealBanner() in build.js) */
.deal {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: 32px 36px; border-radius: var(--radius); background: var(--primary-light);
}
.deal-mark {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: var(--primary-dark); color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.02em;
}
.deal h2 { margin: 0 0 6px; font-size: var(--fs-h4); }
.deal p { margin: 0; color: var(--neutral-800); }
@media (max-width: 760px) {
  .deal { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 24px; text-align: left; }
  .deal-mark { width: 64px; height: 64px; font-size: 20px; }
  .deal .btn { justify-self: start; }
}

/* ---------- use cases (/solutions/<slug>, useCasePage() in build.js) ------ */
.uc-built { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 28px 0 0; font-size: var(--fs-xs); color: var(--neutral-600); }
.uc-built > span { margin-right: 4px; font-weight: 600; }
.uc-product {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--pc-bg); color: var(--pc); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.uc-product .ic { width: 18px; height: 18px; }
a.uc-product:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the "reimbursed care path" note under a journey: icon, one sentence, one button */
.uc-note { display: flex; align-items: center; gap: 20px; width: fit-content; max-width: min(1100px, 100%); margin: 32px auto 0; padding: 20px 24px; border-radius: var(--radius); background: var(--neutral-50); }
.uc-note-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--primary-light); color: var(--primary-dark); }
.uc-note-ic .ic { width: 24px; height: 24px; }
.uc-note p { flex: 0 1 auto; margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--neutral-800); text-align: left; }
.uc-note .btn { flex: none; white-space: nowrap; }
@media (max-width: 1100px) { .uc-note br { display: none; } } /* two lines on wide screens; flows freely on narrow ones */
@media (max-width: 720px) { .uc-note { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; width: auto; } }
/* "Sound familiar?": the problems a product solves */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.pain { padding: 28px; border-radius: var(--radius); background: var(--neutral-50); }
.pain h3 { margin-bottom: 8px; font-size: var(--fs-h5); font-weight: 600; }
.pain p { margin: 0; font-size: var(--fs-small); color: var(--neutral-600); }
@media (max-width: 900px) { .pains { grid-template-columns: minmax(0, 1fr); } }

.product-subtitle { font-size: var(--fs-h4); font-weight: 600; margin: 72px 0 0; }
.product-subtitle + .steps { margin-top: 28px; }
.kit-visual { display: grid; place-items: center; width: 140px; height: 140px; border-radius: 36px; background: #fff; color: var(--pc); }
.kit-visual .ic { width: 72px; height: 72px; }
.split-media.todo-block { display: grid; place-items: center; align-content: center; gap: 16px; }

/* the business case: both calculators (homepage) */
.calc-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.calc-card {
  display: flex; flex-direction: column; gap: 10px; padding: 36px; border-radius: var(--radius);
  background: var(--pc-bg); color: var(--neutral-800); text-decoration: none; transition: transform .25s var(--ease-out);
}
.calc-card:hover { transform: translateY(-3px); text-decoration: none; color: var(--neutral-800); }
.calc-card:focus-visible { outline: 2px solid var(--pc); outline-offset: 3px; }
.calc-card .eyebrow { margin-bottom: 4px; color: var(--pc); }
.calc-card-title { font-size: var(--fs-h4); font-weight: 600; line-height: 1.2; }
.calc-card-text { color: var(--neutral-600); }
.calc-card .link-arrow { margin-top: auto; padding-top: 8px; color: var(--pc); }
@media (max-width: 760px) {
  .calc-duo { grid-template-columns: minmax(0, 1fr); }
  .calc-card { padding: 28px; }
}

/* feature cards: each expandable, with its own #id (featureCards() in
   build.js; enhance.js opens the one in the URL) */
.fx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 40px; align-items: start; }
.fx-item { border-radius: 16px; background: var(--neutral-50); transition: background-color .2s ease, box-shadow .2s ease; }
.fx-item.is-target { box-shadow: 0 0 0 3px var(--pc, var(--primary-medium)); }
.fx-item summary { display: flex; gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; border-radius: 16px; }
.fx-item summary::-webkit-details-marker { display: none; }
.fx-item:not([open]) summary:hover { background: var(--pc-bg, var(--primary-light)); }
.fx-item summary:focus-visible { outline: 2px solid var(--pc, var(--primary-dark)); outline-offset: 2px; }
.fx-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--pc, var(--primary-dark)); flex: none; }
.fx-item[open] .fx-icon { background: var(--pc-bg, var(--primary-light)); }
.fx-name { flex: 1; min-width: 0; }
.fx-name b { display: block; font-size: var(--fs-body); font-weight: 600; }
.fx-name span { display: block; font-size: var(--fs-small); color: var(--neutral-600); line-height: 1.45; }
.fx-item summary .nav-chev { width: 14px; height: 14px; color: var(--neutral-600); }
.fx-item[open] summary .nav-chev { transform: rotate(180deg); }
.fx-body { padding: 0 22px 22px 72px; font-size: var(--fs-small); line-height: 1.55; }
.fx-body p { margin: 0 0 14px; }
.fx-body .fx-label { font-weight: 600; margin-bottom: 6px; }
.fx-how { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 6px; }
.fx-body .fx-time { padding: 12px 14px; border-radius: 12px; background: var(--pc-bg, var(--primary-light)); color: var(--neutral-800); }
.fx-time span { display: block; font-size: 13px; font-weight: 600; color: var(--pc, var(--primary-dark)); margin-bottom: 2px; }
.fx-soon { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-soon li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.fx-soon .chip { flex: none; }
.fx-list + .specs { margin-top: 48px; }
@media (max-width: 900px) {
  .fx-list { grid-template-columns: minmax(0, 1fr); }
  .product-subtitle { margin-top: 56px; }
}
@media (max-width: 560px) {
  .fx-body { padding: 0 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-item, .fx-item summary .nav-chev, .pl-row, .pl-row::after, .calc-card { transition: none; }
}

/* ---------- security & compliance (homepage, from the shared certification data) */
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.trust-grid li {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 18px; background: var(--neutral-50);
}
.trust-grid b { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; color: var(--neutral-800); }
.trust-grid span { font-size: var(--fs-small); line-height: 1.45; color: var(--neutral-600); }
.trust-grid .trust-more { justify-content: center; background: var(--primary-light); }
.trust-grid li { position: relative; }
/* the whole box is the link to the listing; the arrow shows it leaves the site */
.trust-link { color: inherit; text-decoration: none; }
.trust-link::before { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.trust-link::after { content: " ↗"; font-weight: 400; color: var(--primary-dark); }
.trust-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.trust-link:focus-visible { outline: none; }
.trust-link:focus-visible::before { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.trust-more .link-arrow { margin: 0; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- integrations page ------------------------------------------ */
.int-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.int-chips a { padding: 10px 18px; border-radius: 999px; background: var(--neutral-50); color: var(--neutral-800); font-size: var(--fs-small); font-weight: 500; text-decoration: none; }
.int-chips a:hover, .int-chips a:focus-visible { background: var(--primary-light); color: var(--primary-dark); }
.int-section { scroll-margin-top: 120px; }
.int-section + .int-section { margin-top: 56px; }
.int-section h2 { font-size: var(--fs-h3); margin-bottom: 8px; }
.int-section .feature-muted { margin: 0 0 20px; }
.int-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.int-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px; background: var(--neutral-50); }
.int-logo {
  flex: none; width: 48px; height: 48px; border-radius: 12px; background: #fff; display: grid; place-items: center;
  font-weight: 600; font-size: 14px; color: var(--primary-dark); border: 1px solid rgba(47, 52, 64, .08);
}
/* a card with a company website: the whole card is the link (opens in a new tab) */
.int-card--link { padding: 0; align-items: stretch; transition: background-color .2s ease; }
.int-card--link:hover { background: var(--primary-light); }
.int-card--link > a { display: flex; flex: 1; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px; color: inherit; text-decoration: none; }
.int-card--link > a:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.int-card h3 { font-size: var(--fs-small); font-weight: 600; margin: 0 0 4px; }
.int-card p { font-size: var(--fs-xs); color: var(--neutral-600); margin: 0; }
.int-card .chip { margin-top: 8px; }
.int-directory { margin-top: 56px; }
.logo-boxes + .center-actions { margin-top: 28px; }

/* ---------- small screens: long words (NL/FR) and wide tables ------------ */
body { overflow-wrap: break-word; }
h1, h2, h3, .display { overflow-wrap: break-word; hyphens: auto; }
.badge-card .chip, .fx-soon .chip { white-space: normal; text-align: center; }
.badge-card .badge-note { margin-top: auto; font-size: 13px; line-height: 1.4; font-style: italic; color: var(--neutral-600); }   /* the footnote at the bottom of a card (ISO 27001*) */
.badge-card .chip { height: auto; min-height: 36px; padding-block: 8px; }   /* a status that wraps (ISO 27001-aligned security practices) grows the chip instead of overflowing the card */
.split > *, .fx-name, .pl-row > *, .badges > * { min-width: 0; }
.badges { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.prose table { display: block; max-width: 100%; overflow-x: auto; }

/* Support: a 914px text column, like the cards of the reimbursement guide, instead of the 632px reading width of the legal texts (the container adds 64px padding each side) */
.page-support .prose { max-width: calc(914px + 2 * var(--margin)); }

/* Get the app: a centred page with the two store buttons side by side */
.page-app .prose { max-width: 900px; text-align: center; padding-block: 24px 64px; }
.page-app .prose-title { margin-bottom: 40px; }
.page-app .prose p { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 720px; margin: 0 auto; }
.page-app .prose .btn { width: 100%; justify-content: center; text-align: center; margin: 0; }
@media (max-width: 640px) { .page-app .prose p { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .page-hero .display { font-size: clamp(30px, 8.6vw, 38px); }
  .btn { white-space: normal; text-align: center; }
}

/* ---------- Clinic App (/clinic-app): announced, built on Well@Home ------- */
.page-clinic .page-hero .chip { margin-bottom: 20px; }
.clinic-for { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.clinic-for li { padding: 6px 14px; border-radius: 999px; background: var(--c-clinic-bg); color: var(--c-clinic); font-size: var(--fs-xs); font-weight: 600; }
.clinic-note { margin: 20px auto 0; font-size: var(--fs-xs); color: var(--neutral-600); }

/* how it fits together: two apps on top of the Well@Home platform */
.arch { max-width: 980px; margin: 0 auto; }
.arch-apps { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: stretch; }
.arch-app {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px;
  border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 2px var(--pc-bg);
}
.arch-app h3 { margin: 0; font-size: var(--fs-h5); font-weight: 600; }
.arch-app p { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--pc); }
.arch-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--pc-bg); color: var(--pc); }
.arch-icon .ic { width: 26px; height: 26px; }
.arch-app ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: var(--fs-small); color: var(--neutral-800); }
.arch-app li { position: relative; padding-left: 22px; }
.arch-app li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 2px solid var(--pc); border-bottom: 2px solid var(--pc); transform: rotate(-45deg); }
/* a line down from each app into the platform */
.arch-app::after { content: ""; position: absolute; left: 50%; bottom: -32px; width: 2px; height: 32px; background: var(--pc); opacity: .5; }
.arch-sync { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--pc); font-size: 12px; font-weight: 600; text-align: center; }
.arch-sync svg { width: 40px; height: 24px; }
.arch-base {
  margin-top: 32px; padding: 28px 32px; border-radius: var(--radius);
  background: var(--neutral-800); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; text-align: center;
}
.arch-base h3 { margin: 0 0 4px; font-size: var(--fs-h5); font-weight: 600; color: #fff; }
.arch-base p { margin: 0 auto; max-width: 60ch; font-size: var(--fs-small); color: rgba(255, 255, 255, .78); }
.arch-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.arch-chips li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.arch-chips a { color: #fff; }
@media (max-width: 820px) {
  .arch-apps { grid-template-columns: minmax(0, 1fr); }
  .arch-sync { padding: 12px 0; grid-auto-flow: column; }
  .arch-sync svg { transform: rotate(90deg); }
  .arch-app:first-child::after { display: none; }
}

/* an empty slot refilled (/clinic-app): an agenda where one slot changes state, four steps (enhance.js "rf").
   The step buttons and the progress bar are the ones of the Patient Communication motion graphic (.wf-step). */
.slot { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 10px; font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.slot--free { background: #fff; color: var(--neutral-600); box-shadow: inset 0 0 0 1.5px var(--neutral-400); border: 0; text-decoration: line-through; }
.slot--alert { background: var(--pc-bg); color: var(--pc); }
.slot--booked { background: var(--pc); color: #fff; }
.slot .ic { width: 16px; height: 16px; }
.pains--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pain .arch-icon { margin-bottom: 16px; }
@media (max-width: 1100px) { .pains--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pains--4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Patient Communication: a message from the team to the patient and back ---
   Four steps (data-step 1-4), driven by enhance.js ("wf"): the dashboard (laptop) and
   the patient app (phone) take turns. Screens: static/img/wireframes/. */
.wf { margin: 0 auto; } /* as wide as the rest of the page (.container) */
#in-action { padding-block: 64px; }
#in-action .section-head { margin-bottom: 32px; }
/* dashboard and phone side by side; the one that is not "playing" is dimmed */
.wf-stage { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: center; padding: 4px 0 22px; }
.wf-laptop {
  width: 100%; border-radius: 18px; background: #fff; overflow: hidden;
  border: 1px solid rgba(47, 52, 64, .1); box-shadow: 0 24px 70px rgba(47, 52, 64, .14);
  transform-origin: 30% 60%; transition: opacity .7s ease, transform .7s var(--ease-out), filter .7s ease;
}
.wf-screen { position: relative; aspect-ratio: 2000 / 1250; background: #f3f5f7; overflow: hidden; }
.wf-phone {
  width: 100%; justify-self: center; border-radius: 12% / 5.6%;
  border: 6px solid var(--neutral-800); background: var(--neutral-800); box-shadow: 0 30px 70px rgba(47, 52, 64, .32);
  transform-origin: 70% 80%; transition: opacity .7s ease, transform .7s var(--ease-out), filter .7s ease;
}
.wf-phone-screen { position: relative; aspect-ratio: 780 / 1688; border-radius: calc(12% / 5.6 * 5.6 - 6px); overflow: hidden; background: #f3f5f7; }
.wf-laptop:not(.is-active), .wf-phone:not(.is-active) { opacity: .5; transform: scale(.975); filter: saturate(.7); }
.wf-shot { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; transition: opacity .6s ease; }
.wf-shot.is-on { opacity: 1; }
.wf-shot img { display: block; width: 100%; height: auto; }
/* the ring that points at what happens in this step */
.wf-ring {
  position: absolute; border-radius: 14px; border: 3px solid var(--primary); opacity: 0; transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(46, 178, 157, .22); transition: opacity .4s ease .5s, transform .5s var(--ease-out) .5s;
}
.wf[data-step="1"] .wf-ring[data-for="1"], .wf[data-step="2"] .wf-ring[data-for="2"],
.wf[data-step="3"] .wf-ring[data-for="3"], .wf[data-step="4"] .wf-ring[data-for="4"] { opacity: 1; transform: none; animation: wf-pulse 1.8s ease-in-out 1.2s infinite; }
@keyframes wf-pulse { 50% { box-shadow: 0 0 0 11px rgba(46, 178, 157, .08); } }
/* a notification sliding in at the top of the phone (step 2) */
.wf-toast {
  position: absolute; left: 4%; right: 4%; top: 5%; display: flex; gap: 10px; align-items: center; padding: 9px 11px;
  border-radius: 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px rgba(47, 52, 64, .25);
  transform: translateY(-160%); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s ease;
}
.wf[data-step="2"] .wf-toast { transform: none; opacity: 1; transition-delay: .35s; }
.wf-toast i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--c-communication-bg); color: var(--c-communication); }
.wf-toast .ic { width: 16px; height: 16px; }
.wf-toast span { font-size: clamp(8px, .9vw, 12px); line-height: 1.3; color: var(--neutral-800); }
.wf-toast b { display: block; font-size: clamp(8px, .85vw, 11px); letter-spacing: .02em; color: var(--neutral-600); }
/* the four steps under the picture; the current one fills a thin bar while it plays */
.wf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wf-step {
  position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; padding: 16px 18px 20px;
  border: 0; border-radius: 16px; background: var(--neutral-50); color: var(--neutral-800); text-align: left; font: inherit; cursor: pointer;
  transition: background-color .3s ease, box-shadow .3s ease; overflow: hidden;
}
.wf-step:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--primary-medium); }
.wf-step:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 3px; }
.wf-step[aria-current="true"] { background: var(--pc-bg); box-shadow: inset 0 0 0 1.5px var(--pc); }
.wf-n { display: grid; place-items: center; width: 22px; height: 22px; margin-bottom: 2px; border-radius: 50%; background: #fff; color: var(--pc); font-size: 12px; font-weight: 700; }
.wf-step[aria-current="true"] .wf-n { background: var(--pc); color: #fff; }
/* the same type as the feature cards below (.fx-name) */
.wf-step b { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; }
.wf-step > span:not(.wf-n) { font-size: var(--fs-small); line-height: 1.45; color: var(--neutral-600); }
.wf-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--pc); }
.wf-step[aria-current="true"] .wf-bar { animation: wf-fill var(--wf-ms, 2500ms) linear forwards; }
.wf.is-paused .wf-step[aria-current="true"] .wf-bar { animation-play-state: paused; }
.wf.is-stopped .wf-step[aria-current="true"] .wf-bar { animation: none; width: 100%; } /* "reduce motion": no autoplay */
@keyframes wf-fill { to { width: 100%; } }
@keyframes wf-in { from { opacity: 0; transform: translateY(8px); } }
html:not(.js) .wf-bar { display: none; }
@media (max-width: 1000px) { .wf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .wf-stage { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 20px; } }
@media (max-width: 640px) {
  /* phones: one screen at a time, big enough to read; the dashboard is zoomed to the part that matters */
  .wf-stage { display: block; padding: 0 0 20px; }
  .wf-laptop:not(.is-active), .wf-phone:not(.is-active) { display: none; }
  .wf-laptop.is-active, .wf-phone.is-active { animation: wf-in .5s ease; }
  .wf-laptop { max-width: 520px; margin: 0 auto; border-radius: 14px; }
  .wf-screen { aspect-ratio: 4 / 3; }
  .wf-shot--inbox { transform-origin: 0 0; transform: scale(1.5) translate(-31%, -22%); }
  .wf-shot--alerts { transform-origin: 0 0; transform: scale(1.5) translate(-2%, -52%); }
  .wf-ring[data-for="4"] { width: 64% !important; }
  .wf-phone { width: min(100%, 250px); margin: 0 auto; border-width: 6px; }
  .wf-toast span { font-size: 11px; }
  .wf-toast b { font-size: 10px; }
  .wf-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-laptop, .wf-phone, .wf-shot, .wf-ring, .wf-toast, .wf-step { transition: none; }
  .wf-ring, .wf-step[aria-current="true"] .wf-bar { animation: none; }
  .wf-step[aria-current="true"] .wf-bar { width: 100%; }
}

/* ---------- telemonitoring kit: the box with the devices around it (/remote-monitoring) --- */
.kit-scene { --pc: var(--c-monitoring); }
.kit-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.kit-lines line { stroke: var(--pc); stroke-opacity: .32; stroke-width: 1.5; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.split-media .kit-box {
  position: absolute; left: 50%; top: 50%; width: 38%; height: auto; padding: 0; object-fit: contain;
  transform: translate(-50%, -50%) rotate(-3deg); filter: drop-shadow(0 18px 22px rgba(47, 52, 64, .28));
}
.kit-devices { list-style: none; margin: 0; padding: 0; }
.kit-devices li {
  position: absolute; left: var(--x); top: var(--y); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  transform: translate(-50%, -50%); transition: opacity .5s ease calc(var(--d) * .25s + .2s), transform .6s var(--ease-out) calc(var(--d) * .25s + .2s);
}
html.js .kit-scene:not(.is-in) .kit-devices li { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.kit-chip {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #fff; color: var(--pc);
  box-shadow: 0 8px 20px rgba(47, 52, 64, .12); animation: kit-float 5s ease-in-out infinite; animation-delay: var(--d);
}
.kit-chip .ic { width: 30px; height: 30px; }
.kit-devices b { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--neutral-800); white-space: nowrap; }
@keyframes kit-float { 50% { transform: translateY(-5px); } }
@media (max-width: 640px) {
  .kit-chip { width: 44px; height: 44px; border-radius: 14px; }
  .kit-chip .ic { width: 24px; height: 24px; }
  .kit-devices b { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .kit-chip { animation: none; } .kit-devices li { transition: none; } }

/* two package cards, as on /patient-communication (/remote-monitoring) */
.tier-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-inline: auto; }
@media (max-width: 1000px) { .tier-grid--two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Care Command Center dashboard (commandMock() in build.js) ---------------
   Everything is in em; the root em follows the width of .cc-wrap, so it scales as one picture. */
.cc-split { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cc-wrap { container-type: inline-size; }
.cc-copy h2 { text-wrap: balance; }
.cc-mock {
  font-size: 1.12cqw; line-height: 1.3; color: var(--neutral-800); background: var(--neutral-50);
  border-radius: 18px; border: 1px solid rgba(47, 52, 64, .1); box-shadow: 0 24px 70px rgba(47, 52, 64, .14);
  overflow: hidden; aspect-ratio: 16 / 10.4; position: relative; padding: 1.2em;
}
.cc-mock::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6em; background: linear-gradient(to bottom, rgba(243, 245, 247, 0), var(--neutral-50)); pointer-events: none; }
.cc-mock svg.ic { width: 1.35em; height: 1.35em; flex: none; }
.cc-top { display: flex; align-items: center; gap: 1em; padding: .8em 1.2em; border-radius: 1.4em; background: #fff; }
.cc-top img { height: 2.6em; width: auto; }
.cc-pill { display: inline-flex; align-items: center; gap: .5em; padding: .55em 1.2em; border-radius: 99em; background: var(--neutral-800); color: #fff; font-weight: 600; }
.cc-spacer { flex: 1; }
.cc-search { display: inline-flex; align-items: center; gap: .6em; width: 22em; padding: .6em 1.2em; border-radius: 99em; border: 1px solid rgba(47, 52, 64, .25); color: var(--neutral-600); }
.cc-avatar { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--neutral-800); color: #fff; font-size: .85em; font-weight: 600; }
.cc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .7em; margin: 1em 0; }
.cc-seg { display: inline-flex; padding: .25em; border-radius: 99em; background: #dfe3e8; }
.cc-seg > * { padding: .4em 1.1em; border-radius: 99em; color: var(--neutral-600); }
.cc-seg b { background: var(--neutral-800); color: #fff; font-weight: 600; }
.cc-chip { display: inline-flex; align-items: center; gap: .5em; padding: .5em 1.1em; border-radius: 99em; border: 1px solid rgba(47, 52, 64, .2); background: #fff; }
.cc-chip::after { content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-.1em); }
.cc-chip--on { border-color: var(--neutral-800); font-weight: 600; }
.cc-chip i { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--neutral-800); color: #fff; font-size: .85em; font-style: normal; }
.cc-filters u { color: var(--primary-dark); margin-left: .4em; }
.cc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2em; }
.cc-col { display: grid; gap: .8em; align-content: start; }
.cc-colhead { display: flex; align-items: center; gap: .6em; padding: .75em 1em; border-radius: .9em; color: #fff; font-weight: 600; }
.cc-colhead i { margin-left: .2em; padding: .05em .6em; border-radius: 99em; background: #fff; color: var(--neutral-800); font-size: .85em; font-style: normal; }
.cc-col--open .cc-colhead { background: #b3402a; }
.cc-col--ack .cc-colhead { background: var(--primary-dark); }
.cc-col--closed .cc-colhead { background: var(--c-consult); }
.cc-card { display: grid; gap: .5em; padding: 1em 1.1em; border-radius: .9em; background: #fff; border-left: .3em solid #c8452d; }
.cc-card--high { border-left-color: #e9962b; }
.cc-tags { display: flex; gap: .5em; }
.cc-prio, .cc-src { padding: .1em .7em; border-radius: 99em; font-size: .85em; font-weight: 600; }
.cc-prio { background: #fde1dc; color: #a8321f; }
.cc-card--high .cc-prio { background: #fdebd0; color: #8a5a00; }
.cc-src { border: 1px solid var(--primary-dark); color: var(--primary-dark); }
.cc-name { font-size: 1.15em; font-weight: 600; }
.cc-event { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .5em; margin: 0; color: var(--neutral-600); }
.cc-event i { font-style: normal; color: var(--neutral-400); }
.cc-event i::before { content: "·"; margin-right: .5em; }
.cc-meta { display: flex; gap: 1.6em; margin: .2em 0 0; padding-top: .6em; border-top: 1px solid rgba(47, 52, 64, .1); }
.cc-meta dt { font-size: .8em; color: var(--neutral-600); }
.cc-meta dd { margin: 0; font-weight: 600; }
.cc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .3em; }
.cc-foot u { color: var(--primary-dark); }
.cc-btn { padding: .5em 1.3em; border-radius: 99em; border: 1px solid rgba(47, 52, 64, .3); font-weight: 600; }
.cc-btn--on { background: var(--primary-medium); border-color: var(--primary-medium); }
.cc-custom { display: flex; align-items: flex-start; gap: 12px; margin: 28px 0 0; font-size: var(--fs-small); color: var(--neutral-600); }
.cc-custom b { color: var(--neutral-800); }
.cc-custom-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--c-command-bg); color: var(--c-command); }
.cc-custom-ic .ic { width: 22px; height: 22px; }
/* the picture shrinks with its box: below ~900px wide it keeps two columns and a larger type, so it stays readable */
@container (max-width: 900px) {
  .cc-mock { font-size: clamp(8px, 1.7cqw, 13px); aspect-ratio: auto; max-height: 640px; }
  .cc-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-col--closed, .cc-search, .cc-chip:not(.cc-chip--on) { display: none; }
}
@container (max-width: 520px) { .cc-mock { font-size: clamp(8px, 3.1cqw, 13px); max-height: 620px; } }
@media (max-width: 1000px) { .cc-split { grid-template-columns: minmax(0, 1fr); gap: 32px; } .cc-copy { order: -1; } }

.rf, .jr { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; max-width: 1040px; }
.rf .wf-steps, .jr .wf-steps { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 12px; }
/* the steps: the number beside the text, so the list is as tall as the picture next to it */
.rf .wf-step, .jr .wf-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-content: center; padding: 14px 18px 18px 16px; }
.rf .wf-n, .jr .wf-n { grid-row: 1 / span 4; align-self: start; width: 26px; height: 26px; margin: 2px 0 0; font-size: 13px; }
.rf .wf-step > :not(.wf-n):not(.wf-bar), .jr .wf-step > :not(.wf-n):not(.wf-bar) { grid-column: 2; }
.jr .wf-step > .wf-when { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--pc); }
.rf-stage { display: grid; align-content: center; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--pc-bg); }
.rf-agenda { padding: 18px 20px 12px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(47, 52, 64, .1); }
.rf-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: var(--fs-small); }
.rf-head-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--pc-bg); color: var(--pc); }
.rf-head-ic .ic { width: 18px; height: 18px; }
.rf-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--neutral-200, #e6e9ee); }
.rf-row time { font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--neutral-600); }
.rf-bk { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 5px; align-items: center; }
.rf-bk .rf-av { grid-row: 1 / 3; }
.rf-line { display: block; height: 8px; width: 62%; border-radius: 4px; background: var(--neutral-200, #e6e9ee); }
.rf-line--s { width: 38%; height: 6px; }
.rf-bk.is-struck { opacity: .55; }
.rf-bk.is-struck .rf-line { background: var(--neutral-400); }
.rf-av { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--av, #cfd6de); }
.rf-av--a { --av: #b9d8d0; } .rf-av--b { --av: #f0c9d8; } .rf-av--c { --av: #cdd3f0; } .rf-av--d { --av: #f2dfb3; }
/* the slot: four states stacked, one visible at a time */
.rf-row--slot { position: relative; margin-inline: -8px; padding-inline: 8px; border-radius: 12px; transition: background-color .5s ease; }
.rf-slot { position: relative; min-height: 44px; }
.rf-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s var(--ease-out, ease); pointer-events: none; }
.rf-state--1 .slot--free { text-decoration: none; flex: none; }
.rf[data-step="1"] .rf-state--1, .rf[data-step="2"] .rf-state--2, .rf[data-step="3"] .rf-state--3, .rf[data-step="4"] .rf-state--4 { opacity: 1; transform: none; }
.rf[data-step="2"] .rf-row--slot, .rf[data-step="3"] .rf-row--slot { background: var(--pc-bg); }
.rf[data-step="4"] .rf-row--slot { background: color-mix(in srgb, var(--pc) 10%, #fff); }
/* the patients who get the offer */
.rf-wait { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rf-wait p { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--neutral-600); }
.rf-wait ul { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.rf-p { position: relative; display: block; transition: opacity .5s ease, transform .5s var(--ease-out, ease); }
.rf-p .rf-av { width: 40px; height: 40px; box-shadow: 0 0 0 3px #fff; }
.rf-p s, .rf-p em { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pc); color: #fff; text-decoration: none; font-style: normal; transform: scale(0); transition: transform .4s var(--ease-out, ease); }
.rf-p s .ic, .rf-p em .ic { width: 12px; height: 12px; }
.rf-p em { background: #1f9d6a; }
.rf-p:not(.rf-p--2) { opacity: .45; }
.rf[data-step="2"] .rf-p, .rf[data-step="3"] .rf-p--2, .rf[data-step="4"] .rf-p--2 { opacity: 1; }
.rf[data-step="2"] .rf-p s { transform: scale(1); }
.rf[data-step="3"] .rf-p--2 s, .rf[data-step="4"] .rf-p--2 s { transform: scale(0); }
.rf[data-step="3"] .rf-p--2 em, .rf[data-step="4"] .rf-p--2 em { transform: scale(1); }
.rf[data-step="3"] .rf-p--2, .rf[data-step="4"] .rf-p--2 { transform: translateY(-3px); }
.rf[data-step="3"] .rf-p--1, .rf[data-step="3"] .rf-p--3, .rf[data-step="4"] .rf-p--1, .rf[data-step="4"] .rf-p--3 { opacity: .3; }
@media (max-width: 1000px) { .rf, .jr { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 640px; } }
@media (max-width: 480px) { .rf-stage { padding: 16px; } .rf-agenda { padding-inline: 14px; } .rf-wait { flex-direction: column; align-items: flex-start; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .rf-state, .rf-row--slot, .rf-p, .rf-p s, .rf-p em { transition: none; } }
.rf-state .rf-bk { flex: 1; min-width: 0; }

/* ---------- use-case journey: one product screen per step, next to the steps (enhance.js "rf") --- */
.jr { max-width: 1100px; margin-inline: auto; }
.jr-stage { position: relative; min-height: 460px; border-radius: var(--radius); background: var(--neutral-50); overflow: hidden; }
.jr-scene { position: absolute; inset: 0; display: grid; place-items: center; background: var(--pc-bg); opacity: 0; transition: opacity .6s ease; }
.jr[data-step="1"] .jr-scene[data-for="1"], .jr[data-step="2"] .jr-scene[data-for="2"],
.jr[data-step="3"] .jr-scene[data-for="3"], .jr[data-step="4"] .jr-scene[data-for="4"] { opacity: 1; z-index: 1; }
.jr-badge { position: absolute; z-index: 3; left: 16px; top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jr-where { padding: 5px 12px; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(47, 52, 64, .12); font-size: var(--fs-xs); font-weight: 600; color: var(--neutral-800); }
.jr-badge .uc-product { background: #fff; box-shadow: 0 4px 14px rgba(47, 52, 64, .12); }
.jr-command { width: 94%; max-height: calc(100% - 64px); margin-top: 44px; overflow: hidden; mask-image: linear-gradient(#000 85%, transparent); }
.jr-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jr-phone {
  height: 80%; aspect-ratio: 780 / 1688; margin-top: 28px; overflow: hidden; border: 6px solid var(--neutral-800); border-radius: 12% / 5.6%;
  background: var(--neutral-800); box-shadow: 0 30px 70px rgba(47, 52, 64, .32);
}
.jr-phone img, .jr-laptop-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.jr-laptop { width: min(88%, 500px); margin-top: 44px; overflow: hidden; border: 1px solid rgba(47, 52, 64, .1); border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(47, 52, 64, .16); }
.jr-laptop-screen { aspect-ratio: 2000 / 1507; }
/* a printed ticket with the numbers, lying on the corner of the dashboard (the triage step on /solutions/emergency) */
.jr-scene--triage { place-items: start center; }
.jr-scene--triage .jr-laptop { margin-top: 64px; }
.jr-ticket { position: absolute; z-index: 2; right: 7%; bottom: 7%; width: min(40%, 210px); transform: rotate(3deg); filter: drop-shadow(0 16px 24px rgba(47, 52, 64, .28)); }
.jr-ticket-paper {
  padding: 16px 16px 28px; background: #fff; color: var(--neutral-800); font: 12px/1.35 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}
.jr-ticket-paper b { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.jr-ticket-paper time { display: block; margin: 2px 0 10px; color: var(--neutral-600); }
.jr-ticket-paper dl { margin: 0; padding: 8px 0; border-block: 1px dashed var(--neutral-400); }
.jr-ticket-paper dl div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.jr-ticket-paper dt { color: var(--neutral-600); }
.jr-ticket-paper dd { margin: 0; font-weight: 700; white-space: nowrap; }
.jr-ticket-paper dd small { font-size: 10px; font-weight: 400; }
.jr-ticket-paper p { margin: 8px 0 0; font-size: 10px; color: var(--neutral-600); }
.jr-ticket-bar { display: block; height: 22px; margin-top: 10px; background: repeating-linear-gradient(90deg, var(--neutral-800) 0 2px, transparent 2px 4px, var(--neutral-800) 4px 5px, transparent 5px 8px); }
@media (max-width: 480px) { .jr-ticket { width: min(46%, 170px); right: 5%; bottom: 5%; } .jr-ticket-paper { font-size: 11px; padding: 12px 12px 24px; } }
.jr-scene--kit .kit-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.jr-kit-box { position: absolute; left: 50%; top: 50%; width: 30%; height: auto; transform: translate(-50%, -50%) rotate(-3deg); filter: drop-shadow(0 18px 22px rgba(47, 52, 64, .28)); }
@media (max-width: 1000px) { .jr-stage { min-height: 440px; } }
@media (max-width: 480px) { .jr-stage { min-height: 360px; } .jr-badge { left: 12px; top: 12px; } }
@media (prefers-reduced-motion: reduce) { .jr-scene { transition: none; } }

.case-source { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(47, 52, 64, .12); font-size: var(--fs-small); color: var(--neutral-600); }
.case-source b { color: var(--neutral-800); }

/* ======================================================================
   BEWELL UNITS: the logo and the switch to the other unit (Medical <-> Studio)
   Both headers use it, so it lives here; the rest of Studio is in studio.css.
   ====================================================================== */
.brand { display: flex; align-items: center; min-width: 0; }
/* two icons, one per unit (src/static/icons/units); the current unit is the dark tile,
   as on the gateway. The name shows as a tip on hover and focus. */
.unit-toggle {
  display: flex; gap: 2px; margin-left: 18px; padding-left: 18px;
  border-left: 1px solid rgba(47, 52, 64, .2);
}
.unit-toggle-opt {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  color: #4e5c66; transition: background-color .2s ease, color .2s ease;
}
.unit-toggle-opt .unit-ic { width: 22px; height: 22px; }
.unit-toggle-opt:hover { background: rgba(47, 52, 64, .07); color: var(--primary-dark); text-decoration: none; }
.unit-toggle-opt[aria-current] { background: var(--neutral-800); color: #fff; }
.unit-toggle-opt:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.unit-toggle-tip {
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 5; transform: translate(-50%, -4px);
  padding: 5px 10px; border-radius: 8px; background: var(--neutral-800); color: #fff;
  font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .2s var(--ease-out);
}
/* the name stays readable to screen readers while the tip is hidden */
.unit-toggle-opt:hover .unit-toggle-tip, .unit-toggle-opt:focus-visible .unit-toggle-tip { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 400px) {
  .unit-toggle { margin-left: 12px; padding-left: 12px; }
  .unit-toggle-opt { width: 34px; height: 34px; }
  .brand .logo img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .unit-toggle-opt, .unit-toggle-tip { transition: none; } }

/* ---- Getting started: a slim "book a call" bar above a wide, compact message form (both dark teal) ------- */
.start-card { display: flex; flex-direction: column; gap: 12px; background: var(--primary-light); border-radius: var(--radius); padding: 16px; }
.start-book, .start-write { background: var(--primary-dark); color: #fff; border-radius: 18px; }
.start-book { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 32px; }
.start-book h3, .start-write h3 { color: #fff; font-size: var(--fs-h4); line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.start-book p { color: #fff; margin: 6px 0 0; }
.start-write { padding: 28px 32px; }
.start-write-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.start-mail { margin: 0; font-size: var(--fs-small); color: #fff; }
.start-mail a, .start-write .checkbox a { color: #fff; text-decoration: underline; }
/* buttons on the dark bars: "Book a call" is the main action (white); "Send message" is teal; each inverts when pointed at */
/* both actions are the same size */
.start-book .btn, .start-write .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 212px; }
.start-book .btn .ic, .start-write .btn .ic { width: 22px; height: 22px; flex: none; }
/* both actions share one look: white on the dark teal, turning teal when pointed at */
.start-book .btn, .start-write .btn { background: #fff; color: var(--primary-dark); }
.start-book .btn:hover, .start-book .btn:focus-visible, .start-write .btn:hover:not(:disabled), .start-write .btn:focus-visible { background: var(--primary-medium); color: var(--neutral-800); }
.start-write .btn:disabled { opacity: .7; cursor: default; }
.start-book .btn:focus-visible, .start-write .btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.start-write .contact-form { gap: 14px; }
.sw-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; }
.sw-left { display: flex; flex-direction: column; gap: 14px; }
.sw-message { min-height: 0; }
.sw-message textarea { flex: 1; min-height: 96px; }
.start-write .form-row { gap: 14px; }
.start-write .field { gap: 6px; }
.start-write .field label { color: #fff; font-size: var(--fs-small); font-weight: 500; }
.start-write .field input { height: 44px; padding: 0 14px; }
.start-write .field textarea { padding: 10px 14px; resize: none; }
.start-write .field input:focus-visible, .start-write .field textarea:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.start-write .field [aria-invalid="true"] { border-color: #ffb4a8; }
.start-write .field-error { color: #ffe1dc; }
.sw-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 28px; }
.sw-foot .checkbox { grid-column: 1; grid-row: 1; }
.sw-foot .field-error { grid-column: 1; grid-row: 2; margin: 0; }
.sw-foot .btn { grid-column: 2; grid-row: 1 / span 2; }
.start-write .checkbox { gap: 10px; color: #fff; font-size: var(--fs-xs); line-height: 1.45; }
.start-write .checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary-medium); }
.start-write .form-status.is-ok { color: #fff; font-weight: 600; }
.start-write .form-status.is-error { color: #ffe1dc; font-weight: 600; }

/* the calendar pop-up: the same dialog look as the calculators' report dialog */
.calendly-dialog { overscroll-behavior: contain; border: 0; padding: 0; overflow: hidden; border-radius: calc(var(--radius) * 1.25); width: min(1140px, calc(100vw - 32px)); height: min(700px, calc(100vh - 32px)); height: min(700px, calc(100dvh - 32px)); color: var(--neutral-800); background: #fff; box-shadow: 0 30px 80px rgba(20, 24, 31, .35); }
.calendly-dialog::backdrop { background: rgba(20, 24, 31, .55); backdrop-filter: blur(3px); }
.calendly-dialog[open] { display: flex; flex-direction: column; animation: report-in .35s var(--ease-out); }
.calendly-head { position: relative; flex: none; display: flex; align-items: center; min-height: 68px; padding: 0 76px 0 28px; }
.calendly-head h2 { margin: 0; font-size: var(--fs-h5); font-weight: 600; letter-spacing: -.01em; }
.calendly-head .report-close { top: 14px; right: 16px; }
.calendly-body { position: relative; flex: 1; min-height: 0; }
/* shown until Calendly has painted over it */
.calendly-body::before { content: attr(data-loading); position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 68px; color: var(--neutral-600); font-size: var(--fs-small); }
.calendly-body iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 1000px) {
  .start-book { grid-template-columns: minmax(0, 1fr); }
  .start-book .btn { justify-self: stretch; }
  .start-book .btn, .start-write .btn { width: 100%; }
  .sw-fields { grid-template-columns: minmax(0, 1fr); }
  .sw-message textarea { min-height: 112px; }
  .sw-foot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .sw-foot .btn { margin-top: 8px; }
}
@media (max-width: 600px) {
  .start-card { padding: 12px; gap: 12px; }
  .start-book, .start-write { padding: 24px 20px; }
  .start-book .btn { justify-self: stretch; justify-content: center; }
  .start-write .form-row { grid-template-columns: minmax(0, 1fr); }
  .calendly-head { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) { .calendly-dialog[open] { animation: none; } }

/* ---- unit notice: "You're back on the BeWell Medical site" (main.js "leaving BeWell Studio through the footer") ----
   A small dark pill under the header that fades in, stays a few seconds and fades out by itself. A click closes it early. */
.unit-toast {
  position: fixed; top: 112px; left: 50%; z-index: 120; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 12px 20px 12px 16px; border-radius: 999px;
  background: var(--neutral-800); color: #fff; font-size: var(--fs-small); font-weight: 500; line-height: 1.3; cursor: pointer;
  box-shadow: 0 14px 32px rgba(47, 52, 64, .28); opacity: 0; translate: -50% -10px;
}
.unit-toast::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-medium); }
.unit-toast.is-in { opacity: 1; translate: -50% 0; }
@media (prefers-reduced-motion: no-preference) {
  .unit-toast { transition: opacity .35s ease, translate .5s var(--ease-out); }
}
@media (max-width: 900px) { .unit-toast { top: 92px; } }
