/* ==========================================================================
   SevaCare — marketing site
   One story, top to bottom: why it exists → every role → the journey → the
   difference → the real product → the modules → time → trust → vision → demo.
   No stock photography anywhere: the only imagery is real product screens
   inside device frames, plus composed CSS/SVG illustration.
   ========================================================================== */

:root {
  /* One bezel material for every device frame: brushed light alloy with a
     hairline, so a screenshot sits in a thin premium edge rather than a thick
     black block. */
  --bezel: linear-gradient(155deg, #FFFFFF 0%, #ECEEF8 52%, #DCDFEF 100%);
  --bezel-line: inset 0 0 0 1px rgba(16, 20, 60, .12);
  --screen-line: 0 0 0 1px rgba(16, 20, 60, .14);

  /* The laptop is the one device a visitor must recognise instantly as "this is
     the desktop app". Against a light page four pale bezels read as four floating
     screenshots, so the laptop gets a soft charcoal frame — graphite rather than
     pure black, which would punch a hole in the light design. */
  --bezel-dark: linear-gradient(155deg, #454A63 0%, #32364B 52%, #262939 100%);
  --bezel-dark-line: inset 0 0 0 1px rgba(255, 255, 255, .14);
  --screen-line-dark: 0 0 0 1px rgba(255, 255, 255, .16);

  --brand: #4F46C8;
  --brand-2: #6E63F0;
  --azure: #2E6BFF;
  --brand-ink: #241F76;
  --mint: #0FA97C;
  --mint-2: #52C499;
  --amber: #E8912A;

  --ink: #0B0E29;
  --ink-2: #242A52;
  --muted: #5C6284;
  --muted-2: #8A90AC;

  --bg: #FFFFFF;
  --bg-soft: #F7F8FD;
  --bg-tint: #EDF0FE;
  --line: rgba(16, 20, 60, 0.08);
  --line-2: rgba(16, 20, 60, 0.15);

  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(14, 18, 55, 0.05), 0 6px 18px rgba(14, 18, 55, 0.05);
  --shadow: 0 12px 34px rgba(14, 18, 55, 0.09);
  --shadow-lg: 0 34px 76px rgba(14, 18, 55, 0.18);
  --maxw: 1200px;
  --nav-h: 74px;

  /* One motion vocabulary for the whole page: --ease-out for arrivals,
     --ease-spring for anything that should feel physical (a card lifting, a
     token landing), --ease-io for state that moves both ways. */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.42, .5, 1);
  --ease-io: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.62;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--ink);
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
/* height:auto is load-bearing: without it the HTML height attribute becomes the
   layout height and every screenshot box stretches to hundreds of empty pixels. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 44px, var(--maxw));
  margin-inline: auto;
}

.text-gradient {
  background: linear-gradient(102deg, var(--brand) 0%, var(--azure) 52%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Scroll progress ─────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--azure) 55%, var(--mint));
  z-index: 80; border-radius: 0 3px 3px 0;
  transition: width .1s linear;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { padding: 16px 30px; font-size: 15.5px; }
.btn--primary {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--azure) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(46, 107, 255, .30);
}
.btn--primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .65s ease;
}
.btn--primary:hover { box-shadow: 0 16px 38px rgba(46, 107, 255, .40); transform: translateY(-2px); }
.btn--primary:hover::after { transform: translateX(130%); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--light { background: #fff; color: var(--brand-ink); box-shadow: 0 10px 26px rgba(9, 12, 40, .18); }
.btn--light:hover { transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn--outline-light:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(14, 18, 55, .06);
  background: rgba(255, 255, 255, .86);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--nav-h);
}
.nav__brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.nav__logo-slot {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--mint-2));
  overflow: hidden; flex: none;
}
.nav__logo-slot img { width: 100%; height: 100%; object-fit: cover; }
.nav__logo-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: #fff; font-weight: 800; font-size: 20px;
}
.nav__wordmark { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -.03em; }
.nav__tagline { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted-2); letter-spacing: .01em; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { position: relative; font-size: 14.5px; font-weight: 550; color: var(--muted); padding-bottom: 3px; transition: color .2s ease; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--mint)); transition: right .28s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--brand); }
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }
.nav__burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 9px; flex-direction: column; justify-content: space-between;
}
.nav__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav__mobile {
  display: none; flex-direction: column; gap: 4px; padding: 8px 22px 22px;
  border-top: 1px solid var(--line); background: #fff;
}
.nav__mobile.open { display: flex; }
.nav__mobile a { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 14px; border-bottom: 0; }

/* ── Section furniture ───────────────────────────────────────────────────── */
.section { padding: 120px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 84px 0; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
.section__head { max-width: 780px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(31px, 4.1vw, 50px); margin-bottom: 18px; }
.section__head p { color: var(--muted); font-size: 17.5px; max-width: 60ch; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 4px rgba(15, 169, 124, .16);
}

.lead { color: var(--muted); font-size: 17.5px; }

/* A module that exists in the plan but not yet in the product says so. */
.tag-soon {
  margin-left: 9px; font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--amber); vertical-align: 2px;
}

/* ── Icons ───────────────────────────────────────────────────────────────── */
.ico {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  color: var(--brand);
}
.pill .ico { width: 17px; height: 17px; }
.hero__trust .ico { width: 16px; height: 16px; color: var(--mint); }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.72); color: var(--brand-ink);
  font-size: 13px; font-weight: 650; border: 1px solid rgba(79,70,200,.16);
  backdrop-filter: blur(8px);
}

/* ── Hyper frames: glass cards with a living gradient border ─────────────
   One shared hover language for every card on the page — a soft glass fill,
   a gradient border that wakes up under the cursor, a cursor-tracked glow
   (--mx/--my set by script.js) and a lift. */
.hyper-frame {
  position: relative;
  isolation: isolate;
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease;
}
.hyper-frame::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(79,70,200,.55), rgba(46,107,255,.4) 45%, rgba(15,169,124,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .38; transition: opacity .32s ease; pointer-events: none;
}
.hyper-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(170px 140px at var(--mx, 50%) var(--my, 0%), rgba(46,107,255,.20), transparent 72%);
  opacity: 0; transition: opacity .32s ease;
}
.hyper-frame:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.hyper-frame:hover::before { opacity: 1; }
.hyper-frame:hover::after { opacity: 1; }
.band-ink .hyper-frame { background: rgba(255,255,255,.05); }
.band-ink .hyper-frame::before { background: linear-gradient(135deg, rgba(173,166,255,.65), rgba(15,169,124,.5)); opacity: .28; }
.band-ink .hyper-frame:hover::before { opacity: .9; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 84px 0 96px;
  background:
    radial-gradient(1100px 640px at 80% -10%, rgba(46, 107, 255, .18), transparent 62%),
    radial-gradient(900px 540px at 4% 6%, rgba(15, 169, 124, .12), transparent 60%),
    linear-gradient(180deg, #FCFCFF 0%, #F4F6FE 100%);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(79, 70, 200, .09) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 28%, #000 18%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 28%, #000 18%, transparent 78%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  gap: 52px; align-items: center;
}
.hero h1 {
  font-size: clamp(35px, 3.9vw, 53px);
  line-height: 1.08;
  margin: 22px 0 22px;
  font-weight: 750;
}
.hero__sub { color: var(--muted); font-size: 17.5px; max-width: 36em; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }

/* Returning users — hospital staff, doctors, pharmacists — arrive here daily and
   want the app, not the pitch. The sticky nav carries the primary "Sign in"; this
   is the quiet second door so they never have to hunt for it on the hero. */
.hero__signin {
  margin: 0 0 26px;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
}
.hero__signin a {
  color: var(--brand);
  font-weight: 650;
  border-bottom: 1px solid rgba(79, 70, 200, .3);
  transition: border-color .2s ease;
}
.hero__signin a:hover { border-bottom-color: var(--brand); }

.hero__trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
}
.hero__trust li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.8px; font-weight: 600; color: var(--muted);
}

/* ── Device stage (real screenshots in real frames) ──────────────────────── */
.stage { position: relative; aspect-ratio: 10 / 9; }

/* The devices sit almost edge to edge, so wires routed between their centres
   would be hidden behind the frames. They are drawn over the stage instead,
   thin and low-contrast, so they read as light connecting the screens.
   Coordinates are percentages of the stage (preserveAspectRatio="none") and
   must be recomputed whenever a .dev--* size or offset changes. */
.stage__wires {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 6; pointer-events: none; overflow: visible;
}
.stage__wires path {
  fill: none;
  stroke: rgba(120, 150, 255, .55);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 1.4 2.6;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(46, 107, 255, .5));
  animation: wire-flow 1.9s linear infinite;
}
.stage__wires circle {
  fill: #fff; stroke: rgba(46, 107, 255, .9); stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(46, 107, 255, .6));
}
@keyframes wire-flow { to { stroke-dashoffset: -4; } }

.dev { margin: 0; position: absolute; animation: dev-float 6.5s ease-in-out infinite; }
.dev img { display: block; width: 100%; height: auto; }
.dev:hover { z-index: 9; }
@keyframes dev-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Every device's inner "screen" element gets the hover pop — kept off .dev
   itself so it never fights the floating keyframe animation for `transform`. */
.tv__body, .laptop__screen, .tablet__body, .phone__body {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.dev:hover .tv__body, .dev:hover .laptop__screen, .dev:hover .tablet__body, .dev:hover .phone__body {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg), 0 22px 46px rgba(46,107,255,.36);
}

/* Waiting-room queue board */
.dev--tv { top: 0; right: 0; width: 70%; z-index: 2; }
.tv__body {
  background: var(--bezel); border-radius: 12px; padding: 5px 5px 13px;
  box-shadow: var(--shadow-lg), var(--bezel-line);
}
.tv__body img, .tv__body .mock { border-radius: 6px; box-shadow: var(--screen-line); }
.tv__stand {
  width: 15%; height: 14px; margin: 0 auto;
  background: linear-gradient(180deg, #E4E7F3, #C9CDE1);
}
.tv__foot {
  width: 30%; height: 6px; margin: 0 auto; border-radius: 6px;
  background: linear-gradient(180deg, #D5D9E9, #B9BED6);
}

/* Admin laptop */
.dev--laptop { left: 0; bottom: 10%; width: 52%; z-index: 3; animation-delay: .5s; }
.laptop__screen {
  background: var(--bezel-dark); border-radius: 11px 11px 3px 3px; padding: 6px 6px 11px;
  box-shadow: var(--shadow-lg), var(--bezel-dark-line);
}
.laptop__screen img, .laptop__screen .mock { border-radius: 5px; box-shadow: var(--screen-line-dark); }
.laptop__base {
  height: 12px; border-radius: 0 0 13px 13px;
  background: linear-gradient(180deg, #454A63, #262939);
  position: relative;
}
.laptop__base::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; width: 15%; height: 4px; border-radius: 0 0 5px 5px; background: rgba(255,255,255,.20);
}

/* Doctor / reception tablet */
.dev--tablet { right: 14%; bottom: 0; width: 28%; z-index: 4; animation-delay: 1s; }
.tablet__body {
  background: var(--bezel); border-radius: 13px; padding: 6px;
  box-shadow: var(--shadow-lg), var(--bezel-line);
}
.tablet__body img, .tablet__body .mock { border-radius: 8px; box-shadow: var(--screen-line); }

/* Patient phone, and the walk-in phone in front of the laptop */
.dev--phone { right: 0; bottom: 3%; width: 13%; z-index: 5; animation-delay: 1.5s; }
.dev--phone2 { left: 1.5%; top: 6%; width: 10.5%; z-index: 6; animation-delay: 2s; }
.phone__body {
  background: var(--bezel); border-radius: 20px; padding: 4px;
  box-shadow: var(--shadow-lg), var(--bezel-line);
  position: relative;
}
.phone__body::before {
  content: ''; position: absolute; top: 1.5px; left: 50%; transform: translateX(-50%);
  width: 26%; height: 2px; border-radius: 2px; background: rgba(16,20,60,.22); z-index: 3;
}
.phone__body img, .phone__body .mock { border-radius: 17px; box-shadow: var(--screen-line); }

.dev__tag {
  position: absolute; z-index: 7;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  background: rgba(255,255,255,.9); color: var(--brand-ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; box-shadow: var(--shadow-sm); white-space: nowrap;
  backdrop-filter: blur(6px);
}
.dev__tag--tv { top: 3%; left: 12.5%; }
.dev__tag--laptop { left: 0; bottom: 52%; }
.dev__tag--pos { left: 56%; top: 56%; }

/* ── Signal strip ────────────────────────────────────────────────────────── */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  padding: 40px 0;
}
.trust__inner {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  text-align: center;
}
.trust__item { padding: 6px 12px; position: relative; }
.trust__item + .trust__item::before {
  content: ''; position: absolute; left: -9px; top: 12%; bottom: 12%; width: 1px;
  background: var(--line);
}
.trust__item strong {
  display: block; font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -.03em; line-height: 1.1;
  background: linear-gradient(135deg, var(--brand) 0%, var(--azure) 55%, var(--mint) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trust__item span { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ── Dark band ───────────────────────────────────────────────────────────── */
.band-ink {
  background:
    radial-gradient(900px 460px at 12% 0%, rgba(46,107,255,.34), transparent 62%),
    radial-gradient(760px 420px at 92% 100%, rgba(15,169,124,.26), transparent 64%),
    #0C0F30;
  color: rgba(255,255,255,.74);
}
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .section__head p, .band-ink .lead { color: rgba(255,255,255,.72); }
.band-ink .eyebrow { color: #ADA6FF; }

/* ── Why SevaCare exists ─────────────────────────────────────────────────── */
.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pain { border-radius: var(--radius-lg); padding: 26px 24px; }
.pain__icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); margin-bottom: 16px;
}
.pain__icon .ico { color: #ADA6FF; }
.pain h3 { font-size: 16.5px; margin-bottom: 9px; }
.pain p { font-size: 14px; color: rgba(255,255,255,.66); }

.resolve {
  margin: 52px auto 0; max-width: 22em; text-align: center;
  font-family: 'Sora', sans-serif; font-weight: 700; color: #fff;
  font-size: clamp(21px, 2.6vw, 30px); line-height: 1.32; letter-spacing: -.025em;
}

/* ── One platform. Every role. ───────────────────────────────────────────── */
.orbit { position: relative; width: min(100%, 640px); margin: 8px auto 0; aspect-ratio: 1; }
.orbit__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__ring {
  fill: none; stroke: rgba(79,70,200,.3); stroke-width: 1.1;
  stroke-dasharray: 1.4 2.2; vector-effect: non-scaling-stroke;
  transform-origin: 50px 50px; animation: orbit-spin 90s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orbit__spokes line {
  stroke: rgba(46,107,255,.55); stroke-width: 1.5;
  stroke-dasharray: 1.5 2.5; vector-effect: non-scaling-stroke;
  animation: wire-flow 2.2s linear infinite;
}
.orbit__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 152px; height: 152px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 2px;
  background: linear-gradient(150deg, var(--brand), var(--azure) 60%, var(--mint));
  color: #fff; box-shadow: 0 24px 60px rgba(46,107,255,.38);
  z-index: 2;
}
.orbit__core strong { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.orbit__core span { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.82); letter-spacing: .04em; }
.orbit__core-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff; margin: 0 auto 6px;
  box-shadow: 0 0 0 5px rgba(255,255,255,.28); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(255,255,255,0); } }

.onode {
  position: absolute; transform: translate(-50%, -50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.82); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(10px);
  font-size: 13.5px; font-weight: 650; color: var(--ink);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.onode:hover { box-shadow: var(--shadow); border-color: rgba(46,107,255,.42); transform: translate(-50%, -50%) scale(1.06); }
.onode .ico { width: 18px; height: 18px; }
.onode em {
  font-style: normal; margin-left: 7px; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--amber);
}
.onode--1 { left: 50%;   top: 12%; }
.onode--2 { left: 76.9%; top: 23.1%; }
.onode--3 { left: 88%;   top: 50%; }
.onode--4 { left: 76.9%; top: 76.9%; }
.onode--5 { left: 50%;   top: 88%; }
.onode--6 { left: 23.1%; top: 76.9%; }
.onode--7 { left: 12%;   top: 50%; }
.onode--8 { left: 23.1%; top: 23.1%; }

/* Same story, readable on a phone */
.flowlist { display: none; }
.flowlist li {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink);
  position: relative;
}
.flowlist li em {
  font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--amber);
}
.flowlist li:not(:last-child)::after {
  content: '↓'; position: absolute; left: 50%; bottom: -19px; transform: translateX(-50%);
  color: var(--muted-2); font-size: 13px;
}

/* Six roles, six outcomes, as an even 3 x 2. */
.rolecards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: 60px;
}
.rolecard { border-radius: var(--radius-lg); padding: 26px 24px; }
.rolecard__icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(79,70,200,.12), rgba(15,169,124,.14));
  margin-bottom: 16px;
}
.rolecard h3 { font-size: 17px; margin-bottom: 8px; }
.rolecard p { font-size: 14.2px; color: var(--muted); }

/* ── The journey (horizontal workflow) ───────────────────────────────────── */
.timeline {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  /* Without a matching scroll-padding, snapping to the first card scrolls the
     leading gutter away and step 1 sits flush against the viewport edge. */
  scroll-padding-inline: max(22px, calc((100vw - var(--maxw)) / 2));
  padding-bottom: 12px;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  scrollbar-width: thin;
}
.timeline__track {
  display: flex;
  padding-inline: max(22px, calc((100vw - var(--maxw)) / 2));
  padding-block: 6px 8px;
}
.tl {
  position: relative; flex: none; width: 272px; padding-right: 26px;
  scroll-snap-align: start;
}
.tl::before {
  content: ''; position: absolute; left: 0; right: 0; top: 25px; height: 2px;
  background: linear-gradient(90deg, rgba(79,70,200,.28), rgba(46,107,255,.22));
}
.tl:first-child::before { left: 25px; }
.tl:last-child::before { right: calc(100% - 25px); }
.tl__node {
  position: relative; z-index: 2;
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.tl:hover .tl__node {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(46,107,255,.4); box-shadow: var(--shadow);
}
.tl__step { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.tl h3 { font-size: 18px; margin: 7px 0 8px; }
.tl p { font-size: 14.3px; color: var(--muted); padding-right: 8px; }
.timeline__hint {
  margin-top: 8px; display: flex; justify-content: center;
  font-size: 13px; color: var(--muted-2);
}
.timeline__hint span { display: inline-flex; align-items: center; gap: 8px; }
.timeline__hint .ico { width: 16px; height: 16px; color: var(--mint); }

/* ── The difference ──────────────────────────────────────────────────────── */
.adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.adv__item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .26s var(--ease-spring), box-shadow .26s var(--ease-out), border-color .26s var(--ease-io);
}
.adv__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(46,107,255,.26); }
.adv__item div { display: flex; flex-direction: column; gap: 5px; font-size: 14.5px; color: var(--muted); }
.adv__item strong { font-family: 'Sora', sans-serif; font-size: 16.5px; color: var(--ink); font-weight: 650; letter-spacing: -.02em; }
.adv__mark {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(15,169,124,.12); margin-top: 2px;
}
.adv__mark .ico { width: 15px; height: 15px; color: var(--mint); stroke-width: 2.6; }

/* The old standalone triad line, now the grid's sixth cell. */
.adv__sum {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  border-radius: var(--radius); padding: 22px 24px;
  background: linear-gradient(135deg, var(--brand), var(--azure) 60%, var(--mint) 160%);
  color: #fff; box-shadow: 0 16px 34px rgba(46,107,255,.26);
  font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.28;
}
.adv__sum span:last-child { color: rgba(255,255,255,.82); }

/* ── Product gallery ─────────────────────────────────────────────────────── */
.gallery__tabs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 38px;
}
.gtab {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; color: var(--muted); border: 1px solid var(--line-2);
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.gtab:hover { color: var(--brand); border-color: rgba(46,107,255,.4); }
.gtab.is-active {
  background: linear-gradient(135deg, var(--brand), var(--azure));
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 24px rgba(46,107,255,.28);
}
.gallery__pane {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 44px; align-items: center;
  animation: pane-in .45s cubic-bezier(.2,.8,.2,1);
}
.gallery__pane[hidden] { display: none; }
@keyframes pane-in { from { opacity: 0; transform: translateY(14px); } }
.gallery__note h3 { font-size: clamp(22px, 2.5vw, 30px); margin-bottom: 14px; }
.gallery__note p { color: var(--muted); font-size: 16.5px; }

.frame {
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(46,107,255,.13), rgba(15,169,124,.10));
  padding: 12px;
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.frame:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg), 0 0 54px rgba(46,107,255,.24); }
.frame img { border-radius: 13px; box-shadow: 0 10px 26px rgba(14,18,55,.14); }
/* A portrait sheet at full column width would tower over the copy beside it. */
.frame--sheet { max-width: 340px; margin-inline: auto; }

.media-pair { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: center; }
.media-pair img {
  border-radius: 14px; box-shadow: 0 14px 34px rgba(14,18,55,.16);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.media-pair img:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 22px 46px rgba(46,107,255,.28); }
.media-pair--phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
  width: 100%; max-width: 470px; margin-inline: auto; }
.media-pair--phones img { box-shadow: none; }

/* ── The modules ─────────────────────────────────────────────────────────── */
.feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat__card { border-radius: var(--radius); padding: 24px 22px; }
.feat__icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(79,70,200,.12), rgba(15,169,124,.14));
  margin-bottom: 15px;
}
.feat__card h3 { font-size: 16.5px; margin-bottom: 7px; }
.feat__card p { font-size: 13.8px; color: var(--muted); }

/* ── Designed around time / the live queue centrepiece ──────────────────── */
.time__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
}
.time__copy h2 { font-size: clamp(28px, 3.7vw, 46px); margin-bottom: 20px; }
.time__note {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 15px; color: rgba(255,255,255,.6);
}

.livequeue {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 20px 22px; align-items: end;
}
.lq__tv { grid-column: 1 / -1; }
.lq__phone { grid-column: 1; grid-row: 2; width: min(100%, 140px); justify-self: center; }
.lq__doc { grid-column: 2; grid-row: 2; align-self: end; }
.lq__sync {
  grid-column: 1 / -1; justify-self: center;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.8);
  transition: background .4s var(--ease-io), border-color .4s var(--ease-io);
}
.lq__sync.is-on { background: rgba(15,169,124,.16); border-color: rgba(15,169,124,.5); color: #fff; }
.lq__sync-pip {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint-2); flex: none;
  box-shadow: 0 0 0 4px rgba(15,169,124,.2); animation: pulse 2.2s ease-in-out infinite;
}
/* Kept from the illustration it replaced: a soft halo behind the board. */
.timepiece__glow {
  position: absolute; left: 8%; top: -6%; width: 70%; aspect-ratio: 1;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(46,107,255,.5) 0%, rgba(46,107,255,.18) 45%, transparent 70%);
  filter: blur(14px);
}
.livequeue > *:not(.timepiece__glow) { position: relative; z-index: 1; }

/* ── Live mock-ups ────────────────────────────────────────────────────────
   The device screens are query containers, so one set of markup is legible in a
   74px phone and a 430px board: every size inside a .mock is in `em`, and the
   root font-size is a percentage of the screen's own width (cqw). */
/* Only frames that hold a mock become query containers: `container-type` implies
   inline-size containment, which zeroes an element's intrinsic width — the
   gallery's phones take their width from the <img> inside and collapsed to 14px. */
.tv__body:has(> .mock), .laptop__screen:has(> .mock),
.tablet__body:has(> .mock), .phone__body:has(> .mock),
.lq__doc { container-type: inline-size; }

.mock {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  font-family: 'Inter', sans-serif; color: #fff;
  line-height: 1.35; letter-spacing: 0;
}
.mock__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6em; padding: .75em 1em;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex: none;
}
.mock__brand { display: inline-flex; align-items: center; gap: .5em; font-size: .82em; font-weight: 650; }
.mock__brand i {
  width: 1.45em; height: 1.45em; border-radius: .42em; flex: none;
  display: grid; place-items: center; font-style: normal; font-size: .8em; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--mint-2));
}
.mock__live {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .72em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.mock__pip {
  width: .5em; height: .5em; border-radius: 50%; background: var(--mint-2); flex: none;
  box-shadow: 0 0 0 .22em rgba(15,169,124,.25);
  animation: pulse 2.2s ease-in-out infinite;
}

/* A number that changes should land, not blink. */
@keyframes q-land {
  0%   { transform: translateY(.5em); opacity: 0; filter: blur(2px); }
  100% { transform: none; opacity: 1; filter: none; }
}
.is-land { animation: q-land .5s var(--ease-out); display: inline-block; }

/* Waiting-room board */
.mock--board {
  aspect-ratio: 16 / 10;
  font-size: 4cqw;
  background: linear-gradient(155deg, #4E45C6 0%, #5A50DE 45%, #6E63F0 100%);
  border-radius: .35em;
}
.board__hero { flex: 1; display: grid; place-content: center; text-align: center; padding: .4em; }
.board__label {
  font-size: .74em; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.board__num {
  font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -.04em;
  font-size: 3.05em; line-height: 1.02; margin: .04em 0;
}
.board__meta { font-size: .76em; color: rgba(255,255,255,.72); }
.board__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; padding: 0 1em; flex: none; }
.board__tile {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16);
  border-radius: .5em; padding: .45em .3em; text-align: center;
}
.board__tile b { display: block; font-family: 'Sora', sans-serif; font-size: 1.05em; font-weight: 750; }
.board__tile span { display: block; font-size: .62em; color: rgba(255,255,255,.74); }
.board__prog {
  height: .3em; margin: .6em 1em .45em; border-radius: 999px; flex: none;
  background: rgba(255,255,255,.2); overflow: hidden;
}
.board__prog i {
  display: block; height: 100%; width: var(--p, 38%); border-radius: inherit;
  background: linear-gradient(90deg, #fff, var(--mint-2));
  transition: width 1s var(--ease-out);
}
.board__foot { font-size: .66em; color: rgba(255,255,255,.7); text-align: center; padding: 0 1em .9em; flex: none; }

/* Admin dashboard */
.mock--admin {
  aspect-ratio: 16 / 10;
  font-size: 4.7cqw;
  background: linear-gradient(170deg, #FBFBFF, #EFF1FE);
  color: var(--ink); border-radius: .3em;
}
.mock--admin .mock__bar { border-bottom-color: rgba(16,20,60,.08); }
.mock--admin .mock__live { color: var(--muted); }
.adm__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45em; padding: .7em .8em 0; flex: none; }
.adm__tile {
  background: #fff; border: 1px solid var(--line); border-radius: .5em;
  padding: .45em .4em; text-align: center;
}
.adm__tile b {
  display: block; font-family: 'Sora', sans-serif; font-size: 1.02em; font-weight: 750;
  letter-spacing: -.02em; color: var(--brand);
}
.adm__tile span { display: block; font-size: .58em; font-weight: 600; color: var(--muted); }
.adm__chart {
  flex: 1; display: flex; align-items: flex-end; gap: .35em;
  padding: .7em .9em .5em; min-height: 0;
}
.adm__chart i {
  flex: 1; height: var(--h, 50%); border-radius: .18em .18em 0 0;
  background: linear-gradient(180deg, rgba(79,70,200,.75), rgba(46,107,255,.35));
  transition: height .9s var(--ease-spring);
}
.adm__chart i.is-now { background: linear-gradient(180deg, var(--azure), var(--mint)); }
.adm__rows { display: grid; gap: .3em; padding: 0 .9em .8em; flex: none; }
.adm__row { display: grid; grid-template-columns: 4.6em 1fr; align-items: center; gap: .5em; }
.adm__row span { font-size: .6em; font-weight: 600; color: var(--muted); }
.adm__row i {
  height: .32em; border-radius: 999px; width: var(--p, 50%);
  background: linear-gradient(90deg, var(--brand), var(--azure));
}

/* Doctor's queue */
.mock--doctor {
  aspect-ratio: 4 / 3;
  font-size: 5.2cqw;
  background: linear-gradient(170deg, #FBFBFF, #F1F3FE);
  color: var(--ink); border-radius: .3em;
}
.mock--doctor .mock__bar { border-bottom-color: rgba(16,20,60,.08); }
.mock--doctor .mock__live { color: var(--muted); }
.mock--flat { aspect-ratio: auto; font-size: 4.4cqw; border-radius: 1em; box-shadow: var(--shadow-lg); }
.dq { list-style: none; margin: 0; padding: .55em .7em; display: grid; gap: .4em; align-content: start; flex: 1; }
.dq__row {
  display: grid; grid-template-columns: 1.9em 1fr auto; align-items: center; gap: .55em;
  background: #fff; border: 1px solid var(--line); border-radius: .55em;
  padding: .42em .55em;
}
.dq__tok {
  width: 1.9em; height: 1.9em; border-radius: .4em; display: grid; place-items: center;
  font-family: 'Sora', sans-serif; font-size: .78em; font-weight: 750;
  background: var(--bg-tint); color: var(--brand);
}
.dq__who { display: flex; flex-direction: column; min-width: 0; }
.dq__who b { font-size: .74em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dq__who em { font-style: normal; font-size: .62em; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dq__state { font-size: .6em; font-weight: 700; color: var(--muted-2); white-space: nowrap; }
.dq__row.is-current {
  border-color: rgba(46,107,255,.45);
  background: linear-gradient(120deg, #fff, var(--bg-tint));
  box-shadow: 0 .3em .8em rgba(46,107,255,.16);
}
.dq__row.is-current .dq__tok { background: linear-gradient(135deg, var(--brand), var(--azure)); color: #fff; }
.dq__row.is-current .dq__state { color: var(--mint); }
@keyframes dq-in  { from { opacity: 0; transform: translateY(.9em) scale(.97); } }
@keyframes dq-out { to { opacity: 0; transform: translateY(-1.1em) scale(.96); } }
.dq__row.is-in { animation: dq-in .42s var(--ease-spring); }
.dq__row.is-out { animation: dq-out .34s var(--ease-io) forwards; }

/* Patient token ticket */
.mock--ticket {
  aspect-ratio: 414 / 896;
  font-size: 9.4cqw;
  background: linear-gradient(165deg, #4E45C6, #2E6BFF 60%, #1FA98B);
  border-radius: .9em;
  align-items: center; justify-content: center; text-align: center; gap: .12em;
  padding: .8em .5em;
}
.mock--ticket-lg { font-size: 7.2cqw; }
.tk__brand {
  width: 2em; height: 2em; border-radius: .6em; display: grid; place-items: center;
  background: rgba(255,255,255,.2); margin-bottom: .45em;
}
.tk__brand i { font-style: normal; font-size: 1em; font-weight: 800; }
.tk__label {
  font-size: .68em; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.tk__num { font-family: 'Sora', sans-serif; font-size: 3.2em; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.tk__now { font-size: .8em; color: rgba(255,255,255,.84); margin-top: .3em; }
.tk__now b { font-weight: 750; color: #fff; }
/* Swapped by class rather than rewritten, so the live element survives. */
.tk__turn { display: none; font-weight: 750; color: #fff; }
.mock--ticket.is-turn .tk__wait { display: none; }
.mock--ticket.is-turn .tk__turn { display: inline; }
.tk__eta {
  display: inline-flex; align-items: center; gap: .4em; margin-top: .7em;
  padding: .34em .7em; border-radius: 999px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.28);
  font-size: .76em; font-weight: 700;
}
.mock--ticket.is-turn { background: linear-gradient(165deg, #0FA97C, #12B57F 55%, #2E6BFF); }

/* Walk-in scan */
.mock--scan {
  aspect-ratio: 414 / 896;
  font-size: 9.4cqw;
  background: linear-gradient(170deg, #12162F, #1B2050);
  border-radius: .9em;
  align-items: center; justify-content: center; gap: .6em; padding: .8em .5em;
}
.scan__label { font-size: .7em; font-weight: 650; color: rgba(255,255,255,.7); }
.scan__qr {
  width: 4.5em; height: 4.5em; flex: none;
  border-radius: .3em;
  box-shadow: 0 0 0 .18em rgba(255,255,255,.14), 0 .25em .6em rgba(4,6,24,.4);
  shape-rendering: crispEdges; /* whole modules, never a half-pixel smear */
}
.scan__msg {
  font-size: .74em; font-weight: 700; padding: .3em .6em; border-radius: 999px;
  background: rgba(15,169,124,.24); border: 1px solid rgba(15,169,124,.5);
}
.scan__msg b { font-family: 'Sora', sans-serif; }
@keyframes scan-pop { 0% { transform: scale(.88); opacity: .4; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.mock--scan.is-pop .scan__msg { animation: scan-pop .55s var(--ease-spring); }

/* The nudge that actually reaches the patient, sized for the page not the phone */
.stage__toast {
  position: absolute; right: 0; bottom: 31%; z-index: 8;
  display: flex; align-items: center; gap: 9px;
  max-width: 50%;
  padding: 10px 15px; border-radius: 14px 14px 4px 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 38px rgba(14,18,55,.22), 0 0 0 1px rgba(16,20,60,.05);
  font-size: 11.8px; font-weight: 650; color: var(--ink); line-height: 1.35;
  opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-spring);
}
.stage__toast.is-on { opacity: 1; transform: none; }
.stage__toast-pip {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none;
  box-shadow: 0 0 0 4px rgba(15,169,124,.18);
}

/* ── Enterprise ready ────────────────────────────────────────────────────── */
.ent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ent__item {
  display: flex; gap: 15px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}
.ent__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(46,107,255,.26); }
.ent__item span { display: flex; flex-direction: column; font-size: 13.8px; color: var(--muted); }
.ent__item strong { font-size: 15px; color: var(--ink); font-weight: 700; margin-bottom: 2px; }

/* ── Why hospitals choose it ─────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 11px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  transition: border-color .24s ease, transform .24s ease, box-shadow .24s ease;
}
.chip:hover { border-color: rgba(46,107,255,.4); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ── Languages ───────────────────────────────────────────────────────────── */
.langs {
  margin: 56px auto 0; max-width: 900px; text-align: center;
  border-radius: var(--radius-lg); padding: 32px 30px;
}
.langs__label {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 22px;
}
.langs__row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px;
}
.lang { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lang b {
  font-family: 'Sora', 'Inter', sans-serif; font-weight: 600;
  font-size: clamp(19px, 2.1vw, 25px); letter-spacing: -.02em; color: var(--ink);
  line-height: 1.35;
}
.lang em {
  font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted-2);
}
.langs__note {
  margin-top: 24px; font-size: 14.5px; color: var(--muted);
  max-width: 56ch; margin-inline: auto;
}

/* ── Vision ──────────────────────────────────────────────────────────────── */
.vision {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(46,107,255,.13), transparent 62%),
    radial-gradient(800px 460px at 84% 100%, rgba(15,169,124,.13), transparent 62%),
    #fff;
}
.vision__inner { max-width: 860px; margin-inline: auto; text-align: center; }
.vision__head { font-size: clamp(29px, 3.9vw, 48px); margin-bottom: 26px; }
.vision__body { color: var(--muted); font-size: 18px; max-width: 60ch; margin-inline: auto; }
.vision__words {
  margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px;
  font-family: 'Sora', sans-serif; font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(19px, 2.3vw, 27px); color: var(--ink-2);
}
.vision__close {
  margin-top: 30px; font-family: 'Sora', sans-serif; font-weight: 750;
  font-size: clamp(24px, 3.2vw, 38px); letter-spacing: -.03em; color: var(--ink);
}

/* ── CTA + contact ───────────────────────────────────────────────────────── */
.cta {
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--brand) 0%, var(--azure) 55%, var(--mint) 145%);
  color: #fff; padding: 56px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 44px; align-items: center;
  box-shadow: 0 34px 74px rgba(46,107,255,.32);
}
.cta h2 { color: #fff; font-size: clamp(27px, 3.3vw, 40px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.88); font-size: 16.5px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta__contact { display: grid; gap: 12px; }

.contact-pill {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px; padding: 15px 20px;
  font-size: 15px; font-weight: 650; color: #fff;
  backdrop-filter: blur(10px);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.contact-pill__icon {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.18);
}
.contact-pill__icon .ico { color: #fff; width: 18px; height: 18px; }
a.contact-pill:hover { transform: translateY(-3px); background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
.contact-pill--static { cursor: default; }

/* ── About ───────────────────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.team-card { border-radius: var(--radius-lg); padding: 32px; }
.team-card__photo {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand), var(--mint-2)); position: relative;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__fallback {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 26px;
}
.team-card h3 { font-size: 19.5px; }
.team-card__role {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand); margin: 7px 0 12px;
}
.team-card__bio { font-size: 14.8px; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: #090C24; color: rgba(255,255,255,.62); padding: 68px 0 36px; }
.footer__inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 11px; }
.footer__brand .nav__wordmark { color: #fff; }
.footer__creed {
  font-family: 'Sora', sans-serif; font-weight: 700; color: #fff;
  font-size: clamp(20px, 2.6vw, 28px); line-height: 1.3; letter-spacing: -.025em;
  margin-top: 6px;
}
.footer__tag { font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.78); }
.footer__tag--dim { font-weight: 500; color: rgba(255,255,255,.48); margin-top: -12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; font-size: 14px; }
.footer__links a:hover { color: #fff; }
.footer__note { font-size: 12.5px; color: rgba(255,255,255,.38); max-width: 660px; }
.footer__copy { font-size: 13px; color: rgba(255,255,255,.42); }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 13px; padding: 9px 16px;
  color: #fff; opacity: .82; transition: opacity .2s ease, border-color .2s ease;
}
.store-badge:hover { opacity: 1; border-color: rgba(255,255,255,.4); }
.store-badge span { display: flex; flex-direction: column; font-size: 14px; font-weight: 650; line-height: 1.2; }
.store-badge small { font-size: 10px; font-weight: 500; opacity: .72; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.72);
  transition: color .2s ease, border-color .2s ease;
}
.social-icons a:hover { border-color: #fff; color: #fff; }

/* ── Sequenced storytelling ───────────────────────────────────────────────
   The ecosystem and the journey are walked one node at a time by script.js
   (only while the section is on screen), so the page shows flow rather than
   describing it. Both are pure class swaps — no layout is animated. */
.onode.is-live {
  transform: translate(-50%, -50%) scale(1.07);
  border-color: rgba(46,107,255,.55);
  box-shadow: 0 14px 34px rgba(46,107,255,.26), 0 0 0 4px rgba(46,107,255,.09);
}
.onode.is-live .ico { color: var(--azure); }
.onode.was-live { border-color: rgba(46,107,255,.28); }
.orbit__spokes line { transition: stroke .5s var(--ease-io), stroke-width .5s var(--ease-io); }
.orbit__spokes line.is-live {
  stroke: rgba(46,107,255,.95); stroke-width: 2.2; stroke-dasharray: none;
}
.orbit__core.is-beat .orbit__core-dot { animation: pulse .9s var(--ease-out); }

.tl__node .ico { transition: color .4s var(--ease-io), transform .45s var(--ease-spring); }
.tl.is-live .tl__node {
  border-color: rgba(46,107,255,.5);
  box-shadow: 0 10px 26px rgba(46,107,255,.22), 0 0 0 4px rgba(46,107,255,.08);
  transform: translateY(-4px);
}
.tl.is-live .tl__node .ico { color: var(--azure); transform: scale(1.08); }
.tl.is-live .tl__step { color: var(--azure); }
.tl.is-done::before { background: linear-gradient(90deg, rgba(46,107,255,.65), rgba(15,169,124,.5)); }

/* ── Card micro-interactions ──────────────────────────────────────────────
   Every card answers the cursor: the frame lifts (.hyper-frame), and the icon
   inside leans forward a little. Transform-only, so it costs nothing. */
.feat__icon, .rolecard__icon, .pain__icon, .promise__icon,
.secure__icon, .ent__item .ico, .adv__mark, .contact-pill__icon {
  transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease-out);
}
.feat__card:hover .feat__icon,
.rolecard:hover .rolecard__icon,
.pain:hover .pain__icon {
  transform: translateY(-3px) scale(1.08) rotate(-4deg);
  box-shadow: 0 10px 22px rgba(46,107,255,.18);
}
.ent__item:hover .ico, .adv__item:hover .adv__mark { transform: scale(1.12) rotate(-4deg); }
.feat__card h3, .rolecard h3 { transition: color .3s var(--ease-io); }
.feat__card:hover h3, .rolecard:hover h3 { color: var(--brand); }
.chip:hover, .lang:hover b { transition: color .3s var(--ease-io); }
.gtab { will-change: transform; }
.gtab:hover { transform: translateY(-2px); }
.tl:hover .tl__node .ico { transform: scale(1.06); }

/* The eyebrow rule draws itself in as its section arrives. */
.section__head .eyebrow::after {
  content: ''; width: 0; height: 2px; border-radius: 2px; margin-left: 4px;
  background: linear-gradient(90deg, var(--brand), transparent);
  transition: width .9s .15s var(--ease-out);
}
.reveal.in .eyebrow::after, .section__head.in .eyebrow::after { width: 34px; }

/* ── Reveal on scroll ────────────────────────────────────────────────────── */
/* The entrance uses the independent `translate` property, not `transform`.
   `.reveal--stagger.in > *` and `.hyper-frame:hover` have identical specificity,
   so when both wrote `transform` the later one won and no staggered card could
   lift under the cursor. As separate properties they compose instead. */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .65s ease, translate .65s var(--ease-out); }
.reveal.in { opacity: 1; translate: none; }
/* A staggered container animates its children instead of itself. */
.reveal--stagger { opacity: 1; translate: none; }
.reveal--stagger > * { opacity: 0; translate: 0 18px; transition: opacity .55s ease, translate .55s var(--ease-out); }
.reveal--stagger.in > * { opacity: 1; translate: none; }
.reveal--stagger.in > *:nth-child(1)  { transition-delay: .02s; }
.reveal--stagger.in > *:nth-child(2)  { transition-delay: .06s; }
.reveal--stagger.in > *:nth-child(3)  { transition-delay: .10s; }
.reveal--stagger.in > *:nth-child(4)  { transition-delay: .14s; }
.reveal--stagger.in > *:nth-child(5)  { transition-delay: .18s; }
.reveal--stagger.in > *:nth-child(6)  { transition-delay: .22s; }
.reveal--stagger.in > *:nth-child(7)  { transition-delay: .26s; }
.reveal--stagger.in > *:nth-child(8)  { transition-delay: .30s; }
.reveal--stagger.in > *:nth-child(9)  { transition-delay: .34s; }
.reveal--stagger.in > *:nth-child(10) { transition-delay: .38s; }
.reveal--stagger.in > *:nth-child(11) { transition-delay: .42s; }
.reveal--stagger.in > *:nth-child(12) { transition-delay: .46s; }
.reveal--stagger.in > *:nth-child(13) { transition-delay: .50s; }
.reveal--stagger.in > *:nth-child(14) { transition-delay: .54s; }
.reveal--stagger.in > *:nth-child(15) { transition-delay: .58s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--stagger > * { opacity: 1; translate: none; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .dev, .orbit__ring, .orbit__spokes line, .stage__wires path, .orbit__core-dot,
  .gallery__pane, .mock__pip, .lq__sync-pip, .is-land, .dq__row.is-in,
  .dq__row.is-out, .mock--scan.is-pop .scan__msg { animation: none; }
  .board__prog i, .adm__chart i, .stage__toast, .onode, .tl__node,
  .feat__icon, .rolecard__icon, .pain__icon { transition: none; }
  .stage__toast { opacity: 1; transform: none; }
  .section__head .eyebrow::after { display: none; }
  .hyper-frame, .hyper-frame::before, .hyper-frame::after { transition: none; }
  .hyper-frame:hover { transform: none; }
  .scroll-progress { display: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1150px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 13.8px; }
  .nav__tagline { display: none; }
}

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .pains, .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__pane { grid-template-columns: 1fr; gap: 30px; }
  .trust__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .trust__item:nth-child(3)::before { display: none; }
  .cta { grid-template-columns: 1fr; padding: 42px 34px; gap: 32px; }
  .adv, .ent, .rolecards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .time__inner { grid-template-columns: 1fr; gap: 48px; }
  /* width:100% is load-bearing: `margin-inline:auto` on a grid item cancels
     stretch, so without it the grid shrinks to fit-content (209px, not 560). */
  .livequeue { width: 100%; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 900px) {
  /* The orbit needs room the phone does not have — same eight roles, as a flow */
  .orbit { display: none; }
  .flowlist {
    display: grid; gap: 26px; list-style: none; padding: 0;
    max-width: 420px; margin: 0 auto;
  }
  .rolecards { margin-top: 48px; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .section { padding: 84px 0; }
  .section--tight { padding: 64px 0; }
  .section__head { margin-bottom: 40px; }
  .team-grid { grid-template-columns: 1fr; }

  /* Devices unstack into a readable column */
  .stage { aspect-ratio: auto; display: grid; gap: 18px; }
  .dev { position: static !important; width: 100% !important; }
  .dev--phone, .dev--phone2 { width: 46% !important; margin-inline: auto; }
  .dev--tablet { width: 78% !important; margin-inline: auto; }
  .dev__tag { display: none; }
  .stage__wires { display: none; }
  .stage__toast { position: static; max-width: none; opacity: 1; transform: none; margin-top: 4px; }
}

@media (max-width: 560px) {
  .hero { padding: 60px 0 76px; }
  .pains, .feat, .adv, .ent, .rolecards { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-pair { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .cta__actions .btn { width: 100%; }
  .cta { padding: 34px 24px; }
  .tl { width: 240px; }
  .gtab { font-size: 13px; padding: 9px 15px; }
  .livequeue { grid-template-columns: 1fr; }
  .lq__phone, .lq__doc { grid-column: 1; grid-row: auto; }
  .lq__phone { width: min(60%, 140px); }
  .mock--flat { font-size: 6cqw; }
  .langs { padding: 26px 20px; }
  .langs__row { gap: 14px 22px; }
}
