/* ============================================================
   TSB HealthCare — shared design system (v6 "Digital Front Door")
   ============================================================ */
@font-face {
  font-family: "Hanken";
  src: url(/assets/fonts/hanken.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0a2740;
  --navy-2: #0c3450;
  --ink: #112a3a;
  --ink-soft: #4b6373;
  --muted: #7f96a4;
  --paper: #f2f7f9;
  --card: #ffffff;
  --line: #e3edf1;
  --line-2: #d4e2e8;
  --cyan: #26a9cc;
  --cyan-bright: #4ccbe8;
  --teal: #178099;
  --teal-deep: #0f5f74;
  --teal-soft: #e6f4f8;
  --grad: linear-gradient(135deg, #2bb0d2, #157a99);
  --hero-bg: radial-gradient(130% 120% at 80% -10%, #14566e 0%, #0c3450 46%, #082036 100%);
  --shadow: 0 30px 60px -30px rgba(8,32,54,0.35);
  --shadow-card: 0 18px 44px -24px rgba(8,32,54,0.22);
  --r: 16px; --r-lg: 24px;
  --f: "Hanken", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--card); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--cyan); color: #062033; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.narrow { max-width: 860px; }
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-sm { padding: clamp(44px, 6vw, 72px) 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal); }
.center { text-align: center; }
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f); font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 10px; cursor: pointer; border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 24px -12px rgba(21,122,153,0.8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(21,122,153,0.85); }
.btn-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-light:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-soft); }
.tlink { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--teal); }
.tlink svg { transition: transform .25s var(--ease); }
.tlink:hover svg { transform: translateX(3px); }
:focus-visible { outline: 2.5px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 60; transition: background .3s, box-shadow .3s; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav .brand img { height: 26px; width: auto; filter: brightness(0) invert(1); transition: filter .3s; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 550; color: rgba(255,255,255,0.84); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav.scrolled { background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line), var(--shadow-card); }
.nav.scrolled .brand img { filter: none; }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover { color: var(--teal); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #fff; }
.nav.scrolled .nav-toggle { color: var(--ink); }
@media (max-width: 900px) {
  .nav-links { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; box-shadow: var(--shadow-card); padding: 8px 0; display: none; }
  .nav-links a { color: var(--ink) !important; padding: 14px 26px; font-size: 16px; }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* hero (dark) */
.hero { position: relative; background: var(--hero-bg); color: #fff; margin-top: -74px; padding: 104px 0 clamp(64px, 9vw, 108px); overflow: hidden; }
.hero.tall { padding-bottom: clamp(120px, 15vw, 200px); }
.hero::before { content: ""; position: absolute; top: -20%; right: -5%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(76,203,232,0.20), transparent 62%); filter: blur(10px); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 48px; align-items: center; }
.hero-grid.solo { grid-template-columns: 1fr; max-width: 780px; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
.hero .pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #cdeaf3; background: rgba(76,203,232,0.12); border: 1px solid rgba(76,203,232,0.25); padding: 7px 14px; border-radius: 999px; }
.hero .pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-bright); box-shadow: 0 0 10px var(--cyan-bright); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 820; letter-spacing: -0.035em; margin: 20px 0 0; color: #fff; }
.hero h1 .ac { color: var(--cyan-bright); }
.hero .lede { font-size: clamp(16px, 1.9vw, 19px); color: #b9d2dd; margin-top: 20px; max-width: 46ch; }
.hero .lede b { color: #eaf5f8; font-weight: 600; }
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 30px; display: flex; align-items: center; gap: 14px; }
.hero-note .avs { display: flex; }
.hero-note .avs span { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #0f4157; margin-left: -13px; background-size: cover; background-position: center; box-shadow: 0 6px 14px rgba(0,0,0,0.35); }
.hero-note .avs span:first-child { margin-left: 0; }
.hero-note p { font-size: 14px; color: #a7c3cf; }
.hero-note p b { color: #eaf5f8; font-weight: 650; }
.crumbs { position: relative; font-size: 13px; color: #9fc0cd; margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #6f93a2; margin: 0 7px; }

/* hero media: photo frame */
.hero-photo { position: relative; }
.hero-photo .frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.1); }
.hero-photo .frame img { width: 100%; aspect-ratio: 5 / 4.3; object-fit: cover; }
.hero-badge { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 11px; }
.hero-badge .bi { width: 34px; height: 34px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.hero-badge .bt { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.hero-badge .bv { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.hero-badge.b1 { top: 24px; left: -22px; }
.hero-badge.b2 { bottom: 28px; right: -20px; }
@media (max-width: 520px) { .hero-badge { display: none; } }

/* phone mockup (home) */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone { position: relative; width: 300px; max-width: 82vw; background: #0a2033; border-radius: 44px; padding: 12px; box-shadow: 0 50px 90px -34px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.08); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 46%; height: 22px; background: #0a2033; border-radius: 0 0 14px 14px; z-index: 3; }
.screen { background: #fff; border-radius: 34px; padding: 26px 20px 22px; color: var(--ink); }
.screen .sh { display: flex; align-items: center; gap: 8px; }
.screen .sh .logo-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.screen .sh b { font-size: 14.5px; font-weight: 750; }
.screen h4 { font-size: 19px; font-weight: 800; margin-top: 16px; letter-spacing: -0.02em; }
.screen .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.day { text-align: center; padding: 9px 2px; border-radius: 11px; border: 1px solid var(--line); }
.day .dn { font-size: 9.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.day .dd { font-size: 15px; font-weight: 750; margin-top: 3px; }
.day.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 16px -8px rgba(21,122,153,0.7); }
.day.on .dn { color: rgba(255,255,255,0.85); }
.slot-l { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 9px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot { text-align: center; padding: 11px; border-radius: 11px; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 650; color: var(--ink-soft); }
.slot.on { border-color: var(--cyan); color: var(--teal); background: var(--teal-soft); }
.screen .cont { margin-top: 16px; width: 100%; padding: 13px; border: none; border-radius: 12px; background: var(--grad); color: #fff; font-family: var(--f); font-weight: 750; font-size: 14.5px; cursor: pointer; }
.phone .badge { position: absolute; z-index: 4; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 10px 13px; display: flex; align-items: center; gap: 9px; }
.phone .badge .bi { width: 30px; height: 30px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.phone .badge .bt { font-size: 10px; color: var(--muted); font-weight: 600; }
.phone .badge .bv { font-size: 14px; font-weight: 800; color: var(--ink); }
.phone .b-top { top: 152px; right: -34px; }
.phone .b-bot { bottom: 60px; left: -40px; }
@media (max-width: 460px) { .phone .badge { display: none; } }

/* stats card */
.stats-card { position: relative; z-index: 10; margin: -70px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 32px clamp(20px, 3vw, 40px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.stats-card.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .stats-card, .stats-card.four { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; } }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
@media (max-width: 860px) { .stat + .stat::before { display: none; } }
.stat .v { font-size: clamp(28px, 3.2vw, 36px); font-weight: 820; letter-spacing: -0.03em; color: var(--teal); line-height: 1; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 550; }

/* section head */
.shead { max-width: 640px; }
.shead.center { margin: 0 auto; }
.shead h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 820; letter-spacing: -0.03em; margin-top: 12px; }
.shead .lede { color: var(--ink-soft); font-size: 17px; margin-top: 16px; }

/* split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 68px); align-items: center; }
.split + .split { margin-top: clamp(52px, 7vw, 92px); }
.split.rev .split-media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } .split.rev .split-media { order: 0; } }
.split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.split h3 { font-size: clamp(23px, 3vw, 32px); font-weight: 810; letter-spacing: -0.03em; margin-top: 12px; }
.split .lede { color: var(--ink-soft); font-size: 17px; margin-top: 16px; }
.split ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 13px; }
.split li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.split li .ck { flex: none; color: var(--teal); margin-top: 3px; display: grid; place-items: center; }
.split li b { color: var(--ink); font-weight: 650; }
.split .more { margin-top: 24px; }

/* feature grid — flat, hairline-divided panels (no floating boxes / icon bubbles) */
.cards { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.scard { background: var(--card); padding: 34px 32px; transition: background .25s var(--ease); }
.scard:hover { background: var(--paper); }
.scard .ci { color: var(--teal); margin-bottom: 14px; }
.scard .ci svg { width: 30px; height: 30px; }
.scard h3 { font-size: 18px; font-weight: 780; }
.scard p { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }

/* people band */
.care-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .care-grid { grid-template-columns: 1fr 1fr; } .care-grid figure:first-child { grid-column: span 2; } }
@media (max-width: 520px) { .care-grid { grid-template-columns: 1fr; } .care-grid figure:first-child { grid-column: span 1; } }
.care { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.care img { width: 100%; height: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transition: transform .6s var(--ease); }
.care-grid figure:first-child img { aspect-ratio: 5 / 3.6; }
.care:hover img { transform: scale(1.04); }
.care figcaption { position: absolute; inset: auto 0 0 0; padding: 34px 18px 16px; background: linear-gradient(0deg, rgba(9,32,54,0.86), transparent); color: #fff; }
.care figcaption b { display: block; font-weight: 780; font-size: 16px; }
.care figcaption span { font-size: 13px; color: #cfe3ea; }

/* dark band + stats */
.band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: -30% 40% auto -10%; height: 300px; background: radial-gradient(circle, rgba(76,203,232,0.14), transparent 68%); }
.band .shead { position: relative; }
.band .shead h2, .band h2 { color: #fff; }
.band .eyebrow { color: var(--cyan-bright); }
.band-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(38px, 5vw, 52px); }
@media (max-width: 780px) { .band-stats { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; } }
.bstat { text-align: center; }
.bstat .v { font-size: clamp(32px, 4.4vw, 50px); font-weight: 850; letter-spacing: -0.035em; color: #fff; line-height: 1; }
.bstat .v em { font-style: normal; color: var(--cyan-bright); }
.bstat .l { color: #9dbccb; font-size: 14px; margin-top: 12px; max-width: 20ch; margin-inline: auto; }

/* prose (compare/pricing) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 40px 0 0; }
.prose h3 { font-size: 20px; margin: 30px 0 0; }
.prose p { color: var(--ink-soft); margin-top: 14px; }
.prose ul { color: var(--ink-soft); margin-top: 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* comparison table */
.ctable { width: 100%; border-collapse: collapse; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ctable th, .ctable td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.ctable thead th { background: var(--paper); font-weight: 750; color: var(--ink); }
.ctable thead th.tsb { color: var(--teal); }
.ctable td.yes { color: var(--teal); font-weight: 700; }
.ctable td.no { color: var(--muted); }
/* Third state: the capability exists but is partial, add-on, or not the
   vendor's focus. A binary yes/no table on a competitor page reads as marketing
   and invites factual challenges; this lets the comparison stay accurate. */
.ctable td.part { color: var(--ink-soft); font-weight: 650; }
.ctable tbody tr:last-child td { border-bottom: none; }
.ctable td:first-child { font-weight: 650; color: var(--ink); }
/* Section divider rows inside a long comparison table. */
.ctable tr.grp td { background: var(--paper); font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal-deep); padding: 11px 18px; }
.tbl-scroll { overflow-x: auto; }
.tbl-note { color: var(--muted); font-size: 13px; margin-top: 16px; line-height: 1.6; }
/* Balanced "where each tool fits" panels — the honest-framing block that sits
   under each comparison table. */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.fit { border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; background: var(--card); }
.fit.tsb { border-color: var(--cyan); background: var(--teal-soft); }
.fit h3 { font-size: 17px; margin-bottom: 12px; }
.fit ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.fit li + li { margin-top: 7px; }
@media (max-width: 780px) { .fit-grid { grid-template-columns: 1fr; } }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.plan.featured { border-color: var(--teal); box-shadow: var(--shadow-card); position: relative; }
.plan.featured::after { content: "Most popular"; position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; color: var(--teal); background: var(--teal-soft); padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; font-weight: 800; }
.plan .price { font-size: 36px; font-weight: 850; letter-spacing: -0.03em; margin-top: 12px; }
.plan .price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .desc { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.plan li svg { color: var(--teal); flex: none; margin-top: 2px; }
.plan .btn { width: 100%; justify-content: center; }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 40px auto 0; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; transition: border-color .2s, background .2s; }
details.faq[open] { border-color: var(--line-2); background: #fbfdfe; }
details.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 750; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chev { flex: none; color: var(--teal); transition: transform .25s var(--ease); }
details.faq[open] summary .chev { transform: rotate(45deg); }
details.faq .fa { padding: 0 0 20px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }

/* related */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }
.rcard { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; }
.rcard:hover { border-color: var(--teal); background: var(--paper); }
.rcard b { font-size: 16px; font-weight: 750; color: var(--ink); }
.rcard span { font-size: 13.5px; color: var(--muted); display: block; margin-top: 4px; }
.rcard .arw { flex: none; color: var(--teal); }

/* cta band */
.cta-band { position: relative; }
.cta-card { background: var(--navy); border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-card::after { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 320px; background: radial-gradient(50% 60% at 50% 0, rgba(76,203,232,0.18), transparent 70%); }
.cta-card h2 { position: relative; color: #fff; font-size: clamp(28px, 4.2vw, 46px); font-weight: 850; letter-spacing: -0.03em; }
.cta-card p { position: relative; color: #b7d2dd; font-size: 18px; margin: 16px auto 0; max-width: 52ch; }
.cta-card .btns { position: relative; margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* trusted logos */
.trusted { padding: clamp(44px,6vw,68px) 0; border-top: 1px solid var(--line); text-align: center; }
.trusted .t { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin-bottom: 26px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 44px; }
.logo-row img { height: 32px; width: auto; filter: grayscale(1); opacity: 0.62; transition: filter .3s, opacity .3s; }
.logo-row img:hover { filter: none; opacity: 1; }
.logo-row .more { font-size: 14px; color: var(--muted); font-weight: 600; }
@media (max-width: 520px) { .logo-row img { height: 24px; } }

/* footer */
footer.site { background: var(--navy); color: #cfe0e8; padding: 60px 0 34px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 780px) { .foot { grid-template-columns: 1fr 1fr; gap: 28px; } }
.foot .brand img { height: 26px; filter: brightness(0) invert(1); }
.foot .brand p { color: #8fb0bf; font-size: 14px; margin-top: 14px; max-width: 32ch; }
.foot h5 { color: #fff; font-size: 13px; font-weight: 700; margin: 0 0 14px; }
.foot a { display: block; color: #a9c4cf; font-size: 14px; padding: 4px 0; transition: color .2s; }
.foot a:hover { color: var(--cyan-bright); }
.foot-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #7fa0af; font-size: 13px; }

/* scaling / canada map (home) */
.scale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .scale-grid { grid-template-columns: 1fr; gap: 34px; } }
.scale-grid h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 820; letter-spacing: -0.03em; margin-top: 12px; }
.scale-grid p { color: var(--ink-soft); font-size: 17px; margin-top: 16px; max-width: 42ch; }
.scale-grid .more { margin-top: 24px; }
.map { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); background: linear-gradient(160deg, #f6fafb, #eaf3f6); border: 1px solid var(--line); overflow: hidden; }
.map .dots { position: absolute; inset: 0; background-image: radial-gradient(var(--line-2) 1.4px, transparent 1.4px); background-size: 20px 20px; opacity: 0.7; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pin { fill: var(--teal); }
.map .pin.hq { fill: var(--cyan); }
.map .route { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 3 6; fill: none; opacity: 0.7; }
.map .lbl { position: absolute; font-size: 11px; font-weight: 700; color: var(--teal-deep); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; box-shadow: var(--shadow-card); transform: translate(-50%, -140%); white-space: nowrap; }
.map .lbl.hq { color: #fff; background: var(--teal); border-color: var(--teal); }
.pulse { animation: pulse 2.2s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* home solutions split */
.sol-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .sol-grid { grid-template-columns: 1fr; gap: 30px; } }
.sol-grid h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 820; letter-spacing: -0.03em; margin-top: 14px; }
.sol-grid .lede { color: var(--ink-soft); font-size: 17px; margin-top: 16px; max-width: 42ch; }
.sol-grid .more { margin-top: 22px; }

/* ============ video + interactivity ============ */
/* hero ambient canvas */
.hero-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { z-index: 2; }

/* video section */
.video-sec .vwrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); cursor: pointer; max-width: 940px; margin-inline: auto; }
.video-sec .vwrap img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.video-sec .vwrap:hover img { transform: scale(1.03); }
.video-sec .vwrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,40,64,0.5), rgba(10,40,64,0.08)); }
.play-btn { position: absolute; inset: 0; margin: auto; width: 86px; height: 86px; border-radius: 50%; background: rgba(255,255,255,0.94); color: var(--teal); display: grid; place-items: center; z-index: 2; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.vwrap:hover .play-btn { transform: scale(1.08); }
.play-btn::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); animation: ripple2 2.6s var(--ease) infinite; }
@keyframes ripple2 { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.28); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .play-btn::before { animation: none; } }
.vlabel { position: absolute; left: 24px; bottom: 20px; z-index: 2; color: #fff; font-weight: 700; font-size: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }

/* lightbox */
.vlight { position: fixed; inset: 0; z-index: 200; background: rgba(6,24,40,0.86); backdrop-filter: blur(6px); display: none; place-items: center; padding: 24px; }
.vlight.open { display: grid; animation: vfade .25s ease; }
@keyframes vfade { from { opacity: 0; } to { opacity: 1; } }
.vlight .vbox { position: relative; width: min(980px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.vlight video { width: 100%; height: 100%; display: block; }
.vlight .vclose { position: absolute; top: -44px; right: 0; background: none; border: none; color: #fff; cursor: pointer; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.vlight .vclose:hover { color: var(--cyan-bright); }

/* count-up uses tabular figures to avoid width jitter */
.stat .v, .bstat .v { font-variant-numeric: tabular-nums; }

/* ============ flow diagrams ============ */
.flowchart { position: relative; margin-top: 48px; }
.flow-line { position: absolute; top: 34px; left: 0; width: 100%; height: 4px; overflow: visible; z-index: 0; }
@media (max-width: 820px) { .flow-line { display: none; } }
.flow-base { stroke: var(--line-2); stroke-width: 3; }
.flow-pulse { stroke: var(--cyan-bright); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 26 340; animation: dashmove 3.2s linear infinite; }
@keyframes dashmove { from { stroke-dashoffset: 366; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .flow-pulse { animation: none; opacity: .35; } }
.flow-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--n, 7), 1fr); gap: 8px; }
@media (max-width: 820px) { .flow-steps { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
@media (max-width: 480px) { .flow-steps { grid-template-columns: 1fr; } }
.fstep { text-align: center; }
.fstep .fn { width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); display: grid; place-items: center; color: var(--teal); margin: 0 auto 14px; transition: transform .3s var(--ease); }
.fstep:hover .fn { transform: translateY(-3px) scale(1.05); }
.fstep .sn { font-size: 11px; color: var(--cyan); font-weight: 700; letter-spacing: .08em; }
.fstep h4 { font-size: 15px; font-weight: 750; margin: 3px 0 5px; }
.fstep p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 820px) { .fstep { text-align: left; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; } .fstep .fn { width: 52px; height: 52px; margin: 0; } .fstep .ft { grid-column: 2; } }

/* queue merge diagram */
.qflow { max-width: 780px; margin: 44px auto 0; }
.qflow svg { width: 100%; height: auto; display: block; }
.q-node { fill: var(--card); stroke: var(--line-2); stroke-width: 1.5; }
.q-engine { fill: var(--teal); }
.q-title { fill: var(--ink); font-family: var(--f); font-weight: 750; font-size: 15px; }
.q-title.w { fill: #fff; }
.q-code { fill: var(--muted); font-family: var(--f); font-weight: 600; font-size: 12px; }
.q-code.w { fill: #bfe6ef; }
.q-path { stroke: var(--line-2); stroke-width: 2.5; fill: none; }
.q-pulse { stroke: var(--cyan); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-dasharray: 12 150; animation: dashmove2 2.4s linear infinite; }
@keyframes dashmove2 { from { stroke-dashoffset: 162; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .q-pulse { animation: none; opacity: .4; } }

/* ============ ROI calculator ============ */
.roi { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .roi { grid-template-columns: 1fr; } }
.roi-inputs { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.roi-inputs h3 { font-size: 16px; font-weight: 750; letter-spacing: .01em; }
.roi-inputs .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rfield { margin-top: 22px; }
.rfield .rtop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.rfield label { font-size: 14px; font-weight: 600; color: var(--ink); }
.rfield .rout { font-family: var(--f); font-weight: 800; font-size: 17px; color: var(--teal); font-variant-numeric: tabular-nums; }
.rfield input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--teal) var(--fill,50%), var(--line-2) var(--fill,50%)); outline-offset: 4px; }
.rfield input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); box-shadow: var(--shadow-card); cursor: pointer; }
.rfield input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); cursor: pointer; }
.roi-results { position: relative; background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 32px; overflow: hidden; }
.roi-results::before { content: ""; position: absolute; inset: -30% -10% auto -10%; height: 260px; background: radial-gradient(circle, rgba(76,203,232,0.18), transparent 68%); }
.roi-results .rhead { position: relative; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-bright); }
.rgrid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
@media (max-width: 520px) { .rgrid { grid-template-columns: 1fr; gap: 20px; } }
.rcell .rv { font-size: clamp(26px, 4vw, 34px); font-weight: 850; letter-spacing: -0.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.rcell .rl { font-size: 12.5px; color: #9dbccb; margin-top: 8px; }
.rvalue { position: relative; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rvalue .rl { font-size: 14px; color: #bcd6dd; font-weight: 600; }
.rvalue .rbig { font-size: clamp(34px, 5vw, 48px); font-weight: 850; letter-spacing: -0.035em; color: var(--cyan-bright); font-variant-numeric: tabular-nums; }
.rnote { position: relative; font-size: 12px; color: #7fa0af; margin-top: 18px; }
.roi-capture { margin-top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; }
@media (max-width: 760px) { .roi-capture { grid-template-columns: 1fr; gap: 18px; } }
.roi-capture h3 { font-size: 22px; font-weight: 820; letter-spacing: -0.02em; }
.roi-capture p { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
.rform { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rform .full { grid-column: 1 / -1; }
.rform input, .rform select { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font-family: var(--f); font-size: 15px; background: #fff; color: var(--ink); }
.rform input:focus, .rform select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.rform .btn { grid-column: 1 / -1; justify-content: center; }
.rform .note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); text-align: center; }
.rform-ok { display: none; text-align: center; padding: 10px; }
.rform-ok.show { display: block; }
.rform-ok .ok { width: 54px; height: 54px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin: 0 auto 14px; }
.rform-ok h4 { font-size: 19px; font-weight: 780; }
.rform-ok p { color: var(--ink-soft); margin-top: 8px; }

/* ============ sticky CTA bar ============ */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; transform: translateY(130%); transition: transform .45s var(--ease); pointer-events: none; }
.sticky-cta.show { transform: none; pointer-events: auto; }
.sticky-in { max-width: 1120px; margin: 0 16px 16px; background: var(--navy); color: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 13px 16px 13px 20px; display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
@media (min-width: 1152px) { .sticky-in { margin-inline: auto; } }
.sticky-in .stext { font-weight: 700; font-size: 15px; }
.sticky-in .stext span { color: #9dbccb; font-weight: 500; display: block; font-size: 13px; margin-top: 1px; }
.sticky-in .sbtns { display: flex; gap: 10px; align-items: center; }
.sticky-in .btn { padding: 10px 16px; }
.sticky-in .sclose { background: none; border: none; color: #8fb0bf; cursor: pointer; padding: 6px; display: grid; place-items: center; }
.sticky-in .sclose:hover { color: #fff; }
@media (max-width: 620px) { .sticky-in .stext span { display: none; } .sticky-in { padding: 10px 10px 10px 16px; gap: 10px; } .sticky-in .btn { padding: 9px 12px; font-size: 13.5px; } }

/* ============ book-a-demo form ============ */
.bform-wrap { max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-card); }
.bprog { font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: .06em; text-transform: uppercase; }
.bstep .bgroup { margin-top: 22px; }
.blabel { display: block; font-weight: 700; font-size: 15.5px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f); font-size: 14px; font-weight: 600; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-soft); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.sel { background: var(--teal); border-color: var(--teal); color: #fff; }
.bgroup.err .blabel { color: #c85a3c; }
.bnav { margin-top: 26px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.brow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (max-width: 520px) { .brow2 { grid-template-columns: 1fr; } }
.bform-wrap input, .bform-wrap textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font-family: var(--f); font-size: 15px; background: #fff; color: var(--ink); }
.bform-wrap input:focus, .bform-wrap textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.bhint { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.bok { display: none; text-align: center; padding: 18px; }
.bok.show { display: block; }
.bok .ok { width: 60px; height: 60px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin: 0 auto 16px; }
.bok h3 { font-size: 23px; font-weight: 820; }
.bok p { color: var(--ink-soft); margin-top: 10px; }

/* ============ hero background video ============ */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.55; }
.hero.has-video::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,30,50,0.94) 0%, rgba(7,30,50,0.78) 44%, rgba(7,30,50,0.5) 100%),
              radial-gradient(120% 120% at 82% -10%, rgba(20,86,110,0.45), transparent 60%); }
.hero.has-video .hero-fx { display: none; }
@media (max-width: 620px) { .hero.has-video::after { background: linear-gradient(180deg, rgba(7,30,50,0.85), rgba(7,30,50,0.92)); } }

/* ============ hero background image (nurses) + phone image ============ */
.hero-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; z-index: 0; opacity: 0.6; }
.hero.has-image::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,30,50,0.95) 0%, rgba(7,30,50,0.8) 42%, rgba(7,30,50,0.45) 100%),
              radial-gradient(120% 120% at 82% -10%, rgba(20,86,110,0.4), transparent 60%); }
.hero.has-image .hero-fx { display: none; }
@media (max-width: 620px) { .hero.has-image::after { background: linear-gradient(180deg, rgba(7,30,50,0.86), rgba(7,30,50,0.93)); } }
.hero-phoneimg { display: flex; justify-content: center; }
.hero-phoneimg img { width: 100%; max-width: 360px; height: auto; filter: drop-shadow(0 34px 54px rgba(0,0,0,0.45)); }
@media (max-width: 940px) { .hero-phoneimg img { max-width: 300px; } }

/* ============ hero: LabOnlineBooking app window ============ */
.app-win { width: 100%; max-width: 470px; margin-inline: auto; background: #fff; border-radius: 22px; box-shadow: 0 44px 90px -34px rgba(0,0,0,0.6); overflow: hidden; color: var(--ink); }
.aw-top { background: var(--grad); color: #fff; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; }
.aw-brand { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.aw-brand .aw-mark { width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,0.2); display: grid; place-items: center; }
.aw-steps { display: flex; gap: 12px; font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 600; }
.aw-steps .on { color: #fff; }
@media (max-width: 400px) { .aw-steps { display: none; } }
.aw-body { padding: 22px 22px 24px; }
.aw-body h4 { font-size: 19px; font-weight: 820; letter-spacing: -0.02em; }
.aw-l { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 16px 0 8px; }
.aw-select { border: 1.5px solid var(--line-2); border-radius: 11px; padding: 12px 14px; font-weight: 650; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.aw-select svg { color: var(--muted); }
.aw-loc { margin-top: 14px; display: flex; align-items: center; gap: 12px; background: var(--teal-soft); border-radius: 12px; padding: 11px 14px; }
.aw-loc .aw-pin { width: 34px; height: 34px; border-radius: 9px; background: #fff; color: var(--teal); display: grid; place-items: center; flex: none; }
.aw-loc b { font-size: 14.5px; display: block; }
.aw-loc .sub { font-size: 12.5px; color: var(--teal); font-weight: 600; }
.aw-loc a { margin-left: auto; color: var(--teal); font-weight: 700; font-size: 13px; }
.aw-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.aw-day { text-align: center; padding: 9px 2px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 750; }
.aw-day .d { font-size: 9.5px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 2px; }
.aw-day.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 16px -8px rgba(21,122,153,0.7); }
.aw-day.on .d { color: rgba(255,255,255,0.85); }
.aw-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.aw-slot { text-align: center; padding: 10px 2px; border-radius: 10px; border: 1.5px solid var(--line-2); font-size: 13px; font-weight: 650; color: var(--ink-soft); }
.aw-slot.on { background: var(--teal-soft); border-color: var(--cyan); color: var(--teal); }
.aw-check { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.aw-check .bx { width: 20px; height: 20px; border-radius: 6px; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; }
.aw-cta { width: 100%; margin-top: 18px; padding: 14px; border: none; border-radius: 12px; background: var(--grad); color: #fff; font-family: var(--f); font-weight: 800; font-size: 15px; cursor: pointer; }

/* ============ Solutions mega-menu ============ */
.nav-item { position: relative; display: flex; align-items: center; }
.mega-toggle { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; font-family: var(--f); font-size: 15px; font-weight: 550; color: rgba(255,255,255,0.84); padding: 0; transition: color .2s; }
.mega-toggle:hover { color: #fff; }
.nav.scrolled .mega-toggle { color: var(--ink-soft); }
.nav.scrolled .mega-toggle:hover { color: var(--teal); }
.mega-toggle svg { transition: transform .25s var(--ease); }
.nav-item:hover .mega-toggle svg, .nav-item.open .mega-toggle svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px); width: 540px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 70; }
.nav-item:hover .mega, .nav-item:focus-within .mega, .nav-item.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-t { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 10px 8px; }
.mega a { display: block; padding: 8px 10px; border-radius: 9px; color: var(--ink); transition: background .15s, color .15s; }
.mega a:hover { background: var(--paper); color: var(--teal); }
.mega a b { display: block; font-weight: 650; font-size: 14.5px; }
.mega a span { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .nav-item { display: block; }
  .mega-toggle { color: var(--ink) !important; padding: 14px 26px; font-size: 16px; width: 100%; justify-content: space-between; }
  .mega { position: static; transform: none !important; opacity: 1; visibility: visible; width: auto; box-shadow: none; border: none; border-radius: 0; padding: 0 26px 10px; grid-template-columns: 1fr; gap: 4px; display: none; }
  .nav-item.open .mega { display: grid; }
  .mega-t { padding: 8px 10px 2px; }
}

/* ============ solutions hub grid ============ */
.solgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 14px; margin-top: 40px; }
.solcard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: border-color .2s, background .2s, transform .3s var(--ease); }
.solcard:hover { border-color: var(--teal); background: var(--paper); transform: translateY(-3px); }
.solcard .ci { color: var(--teal); margin-bottom: 12px; }
.solcard .ci svg { width: 28px; height: 28px; }
.solcard h3 { font-size: 17.5px; font-weight: 750; }
.solcard p { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.solcard .go { margin-top: 12px; color: var(--teal); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 4px; padding: 12px 10px 2px; color: var(--teal); font-weight: 700; font-size: 14px; }
.mega-all:hover { color: var(--teal-deep) !important; background: none !important; }

/* ============ testimonials + case study ============ */
.case { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 16px; }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; } }
.case-quote { padding: clamp(28px, 4vw, 44px); }
.case-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); background: var(--teal-soft); padding: 5px 12px; border-radius: 999px; }
.case-quote blockquote { margin: 18px 0 0; font-size: clamp(19px, 2.5vw, 26px); font-weight: 750; letter-spacing: -.02em; line-height: 1.28; color: var(--ink); }
.case-by { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.case-av { width: 46px; height: 46px; border-radius: 50%; background: var(--teal-soft); border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); font-size: 10px; flex: none; }
.case-by b { font-size: 15px; display: block; color: var(--ink); }
.case-by span { font-size: 13px; color: var(--muted); }
.case-stats { background: var(--navy); color: #fff; padding: clamp(26px, 4vw, 38px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.case-stats .cs .v { font-size: clamp(28px, 3.4vw, 34px); font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.case-stats .cs .v em { font-style: normal; color: var(--cyan-bright); }
.case-stats .cs .l { color: #9dbccb; font-size: 13.5px; margin-top: 5px; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .tgrid { grid-template-columns: 1fr; } }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.tcard blockquote { margin: 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }
.tcard .tby { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.tcard .tav { width: 38px; height: 38px; border-radius: 50%; background: var(--teal-soft); border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); font-size: 10px; flex: none; }
.tcard .tby b { font-size: 14px; display: block; color: var(--ink); }
.tcard .tby span { font-size: 12px; color: var(--muted); }

/* ============ animated slot queue engine ============ */
.qeng { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; width: 100%; max-width: 480px; margin-inline: auto; color: var(--ink); }
.qeng-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.qeng-top b { font-size: 15px; font-weight: 800; }
.qeng-live { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.qeng-live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: qblink 1.4s ease-in-out infinite; }
@keyframes qblink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .qeng-live .d { animation: none; } }
.qeng-cols { font-size: 10px; color: var(--muted); display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 6px; text-align: center; font-weight: 600; }
.qeng-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.qslot { aspect-ratio: 1 / 1; border-radius: 7px; background: #eef3f5; transition: background .35s var(--ease); }
.qslot.booked { background: var(--teal); }
.qslot.reserved { background: #0f5f74; }
.qslot.walkin { background: var(--cyan); }
.qslot.pop { animation: qpop .45s var(--ease); }
@keyframes qpop { 0% { transform: scale(.3); opacity: .2; } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.qeng-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; text-align: center; }
.qeng-stats .qs { background: var(--paper); border-radius: 10px; padding: 12px 6px; }
.qeng-stats .qs .v { font-size: clamp(18px, 2.4vw, 22px); font-weight: 850; color: var(--teal); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qeng-stats .qs .l { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.qeng-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: 11px; color: var(--ink-soft); }
.qeng-legend span { display: inline-flex; align-items: center; gap: 6px; }
.qeng-legend i { width: 11px; height: 11px; border-radius: 3px; }

/* ============ scale slider (org structures) ============ */
.scale-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: clamp(26px, 4vw, 44px); max-width: 880px; margin: 44px auto 0; }
.scale-viz { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 220px; }
.sv-node { background: var(--card); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 14.5px; color: var(--ink); box-shadow: var(--shadow-card); text-align: center; }
.sv-hub { background: var(--grad); color: #fff; border-color: transparent; }
.sv-gov { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-deep); transition: background .2s; }
.sv-line { width: 2px; height: 20px; background: var(--line-2); }
.sv-leaves { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sv-leaf { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; font-size: 13px; font-weight: 600; color: var(--ink-soft); animation: leafin .4s var(--ease); }
@keyframes leafin { from { opacity: 0; transform: translateY(6px) scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sv-leaf { animation: none; } }
.scale-ctl { margin-top: 30px; }
.scale-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--teal) var(--fill, 25%), var(--line-2) var(--fill, 25%)); outline: none; cursor: pointer; }
.scale-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); box-shadow: var(--shadow-card); cursor: pointer; }
.scale-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); cursor: pointer; }
.scale-ticks { display: flex; justify-content: space-between; margin-top: 12px; gap: 4px; }
.scale-ticks span { font-size: 11.5px; color: var(--muted); font-weight: 600; flex: 1; text-align: center; cursor: pointer; transition: color .2s; }
.scale-ticks span:first-child { text-align: left; }
.scale-ticks span:last-child { text-align: right; }
.scale-ticks span.on { color: var(--teal); }
@media (max-width: 640px) { .scale-ticks span { font-size: 10px; } }
.scale-text { text-align: center; margin-top: 26px; }
.scale-text .st-name { font-size: clamp(20px, 2.6vw, 26px); font-weight: 820; letter-spacing: -.02em; }
.scale-text .st-badge { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--teal); background: var(--teal-soft); padding: 4px 12px; border-radius: 999px; }
.scale-text .st-desc { color: var(--ink-soft); font-size: 15.5px; margin-top: 12px; max-width: 52ch; margin-inline: auto; }

.scale-stats { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.scale-stats .ss { background: var(--paper); border-radius: 12px; padding: 14px 22px; text-align: center; min-width: 120px; }
.scale-stats .ss .v { font-size: 22px; font-weight: 850; color: var(--teal); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.scale-stats .ss .l { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ---- certifications & compliance band ---- */
.certsec.paper{background:var(--paper)}
.cert-badges{
  margin-top:40px;display:grid;grid-template-columns:repeat(4,1fr);
  gap:1px;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;
}
.cbadge{
  position:relative;display:flex;align-items:center;gap:14px;
  padding:22px 20px;background:#fff;
}
.certsec.paper .cbadge{background:var(--paper)}
.cb-ic{display:inline-flex;color:var(--teal);flex:0 0 auto}
.cb-ic svg{width:22px;height:22px}
.cb-h{font-weight:700;font-size:15px;letter-spacing:-.01em;color:var(--ink)}
.cb-s{font-size:12.5px;color:var(--muted);margin-top:2px}
.cbadge.is-todo{opacity:.62}
.cbadge.is-todo .cb-ic{color:var(--muted)}
.cb-tag{
  position:absolute;top:12px;right:12px;font-size:10px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted);border:1px dashed var(--line);
  border-radius:20px;padding:2px 8px;background:#fff;
}
.cert-note{text-align:center;color:var(--muted);font-size:13px;margin-top:22px}
.cert-note .tlink{font-size:13px;white-space:nowrap}
@media(max-width:860px){.cert-badges{grid-template-columns:repeat(2,1fr)}}
@media(max-width:460px){.cert-badges{grid-template-columns:1fr}}

/* ---- secondary case-study cards ---- */
.csgrid{margin-top:44px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.cscard{
  display:flex;flex-direction:column;gap:10px;padding:26px 24px;
  background:#fff;border:1px solid var(--line);border-radius:16px;
  text-decoration:none;color:var(--ink);transition:transform .2s var(--ease),box-shadow .2s var(--ease),border-color .2s var(--ease);
}
.cscard:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(10,39,64,.09);border-color:var(--teal-soft)}
.cs-tag{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--teal)}
.cs-h{font-weight:750;font-size:17px;line-height:1.3;letter-spacing:-.01em}
.cscard p{color:var(--muted);font-size:14px;line-height:1.55;margin:0}
.cs-more{margin-top:auto;font-size:13px;font-weight:650;color:var(--muted)}
@media(max-width:860px){.csgrid{grid-template-columns:1fr}}
