/* =============================================================================
   CoderMDx — one-page site
   Brand: medical blue #0070C0 (primary) · medical green #1A8A6A (secondary)
   ============================================================================= */
:root {
  --blue: #0070C0;
  --blue-600: #0062A8;
  --blue-700: #00548F;
  --blue-800: #003D6B;
  --blue-50: #EBF5FC;
  --blue-100: #D4EAF8;
  --blue-200: #A9D3F0;
  --sky: #3FA9F5;

  --green: #1A8A6A;
  --green-600: #13704F;
  --green-400: #23A47F;
  --green-300: #58D6A8;
  --green-50: #E7F6F0;
  --green-100: #C9EBDD;

  --navy: #06182E;
  --navy-900: #0A2540;
  --navy-800: #0F3156;

  --ink: #0B1F33;
  --text: #43566B;
  --muted: #6A7C90;
  --line: #E2EAF2;
  --bg: #FFFFFF;
  --bg-soft: #F3F8FC;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, .05), 0 4px 12px -4px rgba(11, 31, 51, .08);
  --shadow: 0 10px 30px -12px rgba(11, 31, 51, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 31, 51, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

/* ---------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); letter-spacing: -.02em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1rem; }
a { color: var(--blue-700); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green-300)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 112, 192, .7); }
.btn-primary:hover { box-shadow: 0 16px 30px -10px rgba(0, 112, 192, .75); }
.btn-accent { background: linear-gradient(135deg, var(--green-400) 0%, var(--green) 100%); color: #fff; box-shadow: 0 10px 24px -10px rgba(26, 138, 106, .8); }
.btn-accent:hover { box-shadow: 0 16px 30px -10px rgba(26, 138, 106, .85); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-800); box-shadow: var(--shadow); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue-200); color: var(--blue-700); box-shadow: var(--shadow-sm); }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .24); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--blue-700); text-decoration: none; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ------------------------------------------------------------------ nav -- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .35s, box-shadow .35s, backdrop-filter .35s; }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 96px; transition: height .35s var(--ease); }
.brand { position: relative; display: block; height: 72px; flex: none; transition: height .35s var(--ease); }
.brand img { height: 72px; width: auto; transition: opacity .35s, height .35s var(--ease); }
.nav.scrolled .nav-inner { height: 78px; }
.nav.scrolled .brand, .nav.scrolled .brand img { height: 58px; }
.brand .brand-color { position: absolute; inset: 0 auto auto 0; opacity: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a {
  position: relative; padding: 8px 11px; border-radius: 10px; color: rgba(255, 255, 255, .82);
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; text-decoration: none; white-space: nowrap; transition: color .2s;
}
.nav-links > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--green-300); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links > a:hover, .nav-links > a.active { color: #fff; }
.nav-links > a:hover::after, .nav-links > a.active::after { transform: scaleX(1); }
.nav-mobile-extra { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: .9rem; padding: 6px 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }

.nav.scrolled, .nav.open { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(11, 31, 51, .3); }
.nav.scrolled .brand-light, .nav.open .brand-light { opacity: 0; }
.nav.scrolled .brand-color, .nav.open .brand-color { opacity: 1; }
.nav.scrolled .nav-links > a, .nav.open .nav-links > a { color: var(--text); }
.nav.scrolled .nav-links > a:hover, .nav.scrolled .nav-links > a.active, .nav.open .nav-links > a:hover { color: var(--blue); }
.nav.scrolled .nav-links > a::after { background: var(--green); }
.nav.scrolled .nav-phone, .nav.open .nav-phone { color: var(--ink); }
.nav.scrolled .btn-outline-light, .nav.open .btn-outline-light { color: var(--blue-700); border-color: var(--blue-100); }
.nav.scrolled .btn-outline-light:hover { background: var(--blue-50); }
.nav.scrolled .nav-toggle, .nav.open .nav-toggle { color: var(--ink); border-color: var(--line); }

/* ----------------------------------------------------------------- hero -- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #B8CCE0; padding: 150px 0 150px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(1200px 600px at 85% 10%, rgba(0, 112, 192, .35), transparent 60%), radial-gradient(900px 500px at 0% 100%, rgba(26, 138, 106, .25), transparent 60%), linear-gradient(180deg, #06182E 0%, #08223F 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #0070C0; top: -160px; left: -120px; }
.b2 { width: 420px; height: 420px; background: #1A8A6A; top: 30%; right: -140px; animation-duration: 22s; animation-delay: -6s; opacity: .45; }
.b3 { width: 360px; height: 360px; background: #3FA9F5; bottom: -180px; left: 38%; animation-duration: 26s; animation-delay: -12s; opacity: .3; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: .45rem .95rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #CFE6F7; font-size: .86rem; font-weight: 500; }
.pulse-dot, .live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green-300); flex: none; }
.pulse-dot::after, .live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; margin: 22px 0 22px; }
.grad-text { background: linear-gradient(90deg, #5CB8FF 0%, #58D6A8 45%, #5CB8FF 90%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
.hero-lead { font-size: 1.15rem; line-height: 1.7; max-width: 560px; color: #B4C8DC; }
.hero-rotator { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #D7E7F5; font-weight: 500; margin: 6px 0 0; }
.hero-rotator > .ico { color: var(--green-300); }
.rotator { position: relative; display: inline-flex; height: 1.6em; overflow: hidden; vertical-align: bottom; color: var(--green-300); font-family: var(--font-head); font-weight: 800; }
.rotator span { display: inline-block; transition: transform .45s var(--ease), opacity .45s var(--ease); }
.rotator span.out { transform: translateY(-110%); opacity: 0; }
.rotator span.in { transform: translateY(110%); opacity: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; color: #C4D6E8; }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks .ico { color: var(--green-300); }

.hero-visual { position: relative; height: 580px; display: flex; align-items: flex-end; justify-content: center; }
.orb { position: absolute; width: 440px; height: 440px; left: 50%; bottom: 46px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 32% 28%, #3FA9F5 0%, #0070C0 42%, #0B4A80 78%); box-shadow: 0 0 120px rgba(0, 112, 192, .55), inset 0 -30px 60px rgba(6, 24, 46, .35); animation: breathe 7s ease-in-out infinite; }
.ring { position: absolute; left: 50%; border-radius: 50%; pointer-events: none; }
.ring.r1 { width: 520px; height: 520px; bottom: 6px; margin-left: -260px; border: 1.5px dashed rgba(255, 255, 255, .22); animation: spin 60s linear infinite; }
.ring.r2 { width: 600px; height: 600px; bottom: -34px; margin-left: -300px; border: 2px solid transparent; border-top-color: rgba(88, 214, 168, .65); border-right-color: rgba(88, 214, 168, .15); animation: spin 14s linear infinite reverse; }
.hero-doctor { position: relative; z-index: 2; height: 560px; width: auto; max-width: none; filter: drop-shadow(0 30px 40px rgba(2, 10, 22, .45)); -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .97); color: var(--ink); font-size: .8rem; line-height: 1.35; box-shadow: 0 24px 50px -16px rgba(2, 12, 27, .55); animation: float 6s ease-in-out infinite; }
.float-card strong { display: block; font-family: var(--font-head); font-size: .92rem; }
.float-card small { color: var(--muted); }
.fc-claim { top: 64px; left: -12px; }
.fc-rate { top: 206px; right: -28px; animation-delay: -2s; }
.fc-codes { bottom: 128px; left: -36px; flex-direction: column; align-items: flex-start; gap: 8px; animation-delay: -4s; }
.fc-pulse { bottom: 46px; right: 2px; background: rgba(6, 24, 46, .8); border: 1px solid rgba(255, 255, 255, .14); color: var(--green-300); backdrop-filter: blur(10px); animation-delay: -1s; }
.fc-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.fc-icon.ok { background: linear-gradient(135deg, var(--green-400), var(--green)); color: #fff; box-shadow: 0 6px 14px -4px rgba(26, 138, 106, .7); }
.fc-head { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; color: var(--blue-700); font-size: .8rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 4px 9px; border-radius: 8px; background: #EEF2F6; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: .75rem; }
.chip.c-blue { background: var(--blue-50); color: var(--blue-700); }
.chip.c-green { background: var(--green-50); color: var(--green-600); }
.rate-ring { width: 48px; height: 48px; transform: rotate(-90deg); flex: none; }
.rate-ring circle { fill: none; stroke-width: 6; }
.rate-ring .track { stroke: #E3EEF7; }
.rate-ring .bar { stroke: url(#g-brand); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2s var(--ease) .6s; }
.is-visible .rate-ring .bar { stroke-dashoffset: 1; }
.mini-ecg { width: 120px; height: 32px; }
.mini-ecg path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; animation: ecgMini 2.6s linear infinite; }
.hero-ecg { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 110px; pointer-events: none; }
.hero-ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ecg-base { stroke: rgba(255, 255, 255, .07); stroke-width: 2; }
.ecg-trace { stroke: url(#g-brand); stroke-width: 2.5; stroke-dasharray: 140 1000; animation: trace 5.5s linear infinite; filter: drop-shadow(0 0 6px rgba(88, 214, 168, .8)); }

/* ------------------------------------------------------------ trust bar -- */
.trust { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.trust-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item > .ico { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.trust-item:nth-child(even) > .ico { background: var(--green-50); color: var(--green); }
.trust-item strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; line-height: 1.25; }
.trust-item span { font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------------------- sections -- */
.section { position: relative; padding: 108px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head.split > div { max-width: 640px; }
.section-head.split > .btn { flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--green-600); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.center .eyebrow::before { display: none; }
.eyebrow.on-dark { color: var(--green-300); }
.eyebrow.small { font-size: .72rem; }
h2 { font-size: clamp(2rem, 3.7vw, 2.95rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 14px 0 16px; }
.lead { font-size: 1.1rem; line-height: 1.7; }
.lead a { font-weight: 600; }

/* ---------------------------------------------------------------- tabs -- */
.tabs { display: grid; grid-template-columns: 290px 1fr; gap: 32px; margin-top: 56px; align-items: start; }
.tab-list { display: flex; flex-direction: column; gap: 6px; }
.tab { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .95rem; text-align: left; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.tab .ico { color: var(--muted); transition: color .25s; }
.tab:hover { background: rgba(255, 255, 255, .7); }
.tab[aria-selected="true"] { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.tab[aria-selected="true"] .ico { color: var(--blue); }
.tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--green); }
.tab-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 38px; box-shadow: var(--shadow); animation: panelIn .5s var(--ease); }
.tab-panel h3 { font-size: 1.65rem; letter-spacing: -.03em; margin: 8px 0 18px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 12px; font-size: .95rem; }
.callout p { margin: 0; }
.callout .ico { margin-top: 3px; }
.callout.problem { background: #FDF2F0; color: #7E2A1C; }
.callout.problem .ico { color: #D4513D; }
.callout.solution { background: var(--green-50); color: #0E5640; }
.callout.solution .ico { color: var(--green); }
.check-grid { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; color: var(--ink); }
.check-grid li { display: flex; align-items: center; gap: 10px; }
.check-grid .ico { color: var(--green); }

/* ---------------------------------------------------------------- cards -- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 112, 192, .09), transparent 45%); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.card:hover::before { opacity: 1; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--blue-50), var(--green-50)); color: var(--blue); margin-bottom: 20px; transition: transform .45s var(--ease); }
.card-icon .ico { width: 24px; height: 24px; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card h3 { font-size: 1.22rem; margin-bottom: 4px; }
.card-sub { font-weight: 600; font-size: .9rem; color: var(--green-600); margin-bottom: 10px; }
.card p { font-size: .96rem; }

.marquee { margin-top: 64px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 8px; margin-right: 14px; padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--ink); white-space: nowrap; }
.marquee-item .ico { color: var(--green); }

/* ------------------------------------------------------- how it works -- */
.section.dark, .chat-section { background: var(--navy); color: #A9BFD4; overflow: hidden; isolation: isolate; }
.section.dark h2, .chat-section h2 { color: #fff; }
.section.dark .lead, .chat-section .lead { color: #A9BFD4; }
.dark-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 15% 0%, rgba(0, 112, 192, .35), transparent 70%), radial-gradient(600px 400px at 90% 100%, rgba(26, 138, 106, .28), transparent 70%); }
.flow-wrap { position: relative; margin-top: 64px; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.flow-line { position: absolute; top: 33px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, rgba(88, 214, 168, .15), rgba(63, 169, 245, .55), rgba(88, 214, 168, .15)); }
.flow-dot { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 0 4px rgba(88, 214, 168, .2), 0 0 18px var(--green-300); animation: travel 6s var(--ease) infinite; }
.flow-step { text-align: center; }
.flow-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 20px; background: #0B2A47; border: 1px solid rgba(88, 214, 168, .35); color: var(--green-300); animation: glow 6s ease-in-out infinite; }
.flow-step:nth-child(2) .flow-icon { animation-delay: 1.5s; }
.flow-step:nth-child(3) .flow-icon { animation-delay: 3s; }
.flow-step:nth-child(4) .flow-icon { animation-delay: 4.5s; }
.flow-icon .ico { width: 28px; height: 28px; }
.flow-step h3 { color: #fff; font-size: 1.18rem; margin-bottom: 8px; }
.flow-step p { color: #9FB6CC; font-size: .95rem; max-width: 260px; margin: 0 auto; }

/* --------------------------------------------------------------- stats -- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.stat { position: relative; padding: 34px 30px; border-right: 1px solid var(--line); transition: background-color .3s; }
.stat:last-child { border-right: 0; }
.stat::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--blue), var(--green-300)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.stat:hover { background: var(--bg-soft); }
.stat:hover::after { transform: scaleX(1); }
.stat .stat-num { font-family: var(--font-head); font-weight: 800; font-size: 3.3rem; line-height: 1; color: var(--ink); letter-spacing: -.04em; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.stat-num sup { font-size: 1.15rem; color: var(--green); margin-left: 3px; vertical-align: super; letter-spacing: 0; }
.stat p:not(.stat-num) { margin: 0; font-size: .93rem; color: var(--muted); }

/* --------------------------------------------------------------- about -- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-media { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; margin: 0 auto; }
.photo { position: absolute; overflow: hidden; border-radius: 24px; border: 6px solid #fff; box-shadow: var(--shadow-lg); animation: float 8s ease-in-out infinite; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.06); }
.p-main { left: 0; top: 7%; width: 52%; aspect-ratio: 1; }
.p-side { right: 0; top: 0; width: 44%; aspect-ratio: 5 / 6; animation-delay: -3s; }
.p-round { left: 30%; bottom: 0; width: 36%; aspect-ratio: 1; border-radius: 50%; animation-delay: -5s; }
.about-badge { position: absolute; right: 2%; bottom: 14%; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-800)); box-shadow: 0 20px 40px -14px rgba(0, 84, 143, .7); animation: float 6s ease-in-out infinite; animation-delay: -2s; }
.about-badge strong { font-family: var(--font-head); font-size: 2.3rem; line-height: 1; }
.about-badge > span { font-size: .8rem; line-height: 1.3; opacity: .9; }
.about-chip { position: absolute; left: 0; bottom: 22%; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--green-600); font-family: var(--font-head); font-weight: 700; font-size: .85rem; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite; animation-delay: -4s; }
.dots { position: absolute; right: -18px; top: 56%; width: 130px; height: 130px; z-index: -1; background: radial-gradient(var(--blue-200) 2px, transparent 2.5px) 0 0 / 16px 16px; opacity: .8; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list li > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-50); color: var(--green); margin-top: 2px; }
.feature-list strong { font-family: var(--font-head); color: var(--ink); }
.feature-list p { margin: 4px 0 0; font-size: .95rem; color: var(--muted); }

/* ------------------------------------------------------------- medendx -- */
.medendx { background: linear-gradient(180deg, #fff 0%, #EEF6FC 100%); overflow: hidden; }
.med-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.med-features { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.med-features li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.med-features li:hover { transform: translateY(-3px); border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.mf-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-50); color: var(--blue); }
.med-features li:nth-child(even) .mf-icon { background: var(--green-50); color: var(--green); }
.med-features strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .9rem; line-height: 1.3; }
.med-features small { color: var(--muted); font-size: .8rem; line-height: 1.4; }

.dash { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(11, 31, 51, .35); margin-bottom: 80px; }
.dash-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dash-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.dash-bar > span:nth-child(2) { background: #FEBC2E; }
.dash-bar > span:nth-child(3) { background: #28C840; }
.dash-bar em { margin-left: 12px; padding: 3px 10px; border-radius: 6px; background: #F2F6FA; color: var(--muted); font-style: normal; font-size: .75rem; }
.dash-body { display: grid; grid-template-columns: 54px 1fr; }
.dash-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; background: var(--navy-900); border-bottom-left-radius: 20px; }
.dash-side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .12); }
.dash-side i.on { background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 112, 192, .25); }
.dash-main { padding: 20px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.kpi small { display: block; color: var(--muted); font-size: .7rem; }
.kpi strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); line-height: 1.3; }
.kpi em { font-style: normal; font-size: .7rem; font-weight: 600; color: var(--green); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 130px; margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: repeating-linear-gradient(0deg, transparent 0 25px, #F0F4F8 25px 26px); }
.chart span { flex: 1; height: 4%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #5CB8FF, var(--blue)); transition: height 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + .2s); }
.chart span:nth-child(3n) { background: linear-gradient(180deg, var(--green-300), var(--green)); }
.dash.is-visible .chart span { height: var(--h); }
.claims { display: grid; gap: 6px; }
.claim-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #F7FAFC; font-size: .78rem; color: var(--text); opacity: 0; transform: translateX(-14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 180ms + 1s); }
.dash.is-visible .claim-row { opacity: 1; transform: none; }
.claim-row code { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.st { font-size: .7rem; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.st.paid { background: var(--green-50); color: var(--green-600); }
.st.sub { background: var(--blue-50); color: var(--blue-700); }
.st.acc { background: #FFF4DE; color: #8A5A00; }
.ai-pop { position: absolute; right: -30px; bottom: -78px; width: 280px; padding: 14px 16px; border-radius: 16px; background: var(--navy-900); color: #fff; border: 1px solid rgba(88, 214, 168, .3); box-shadow: 0 30px 50px -20px rgba(6, 24, 46, .6); animation: float 6s ease-in-out infinite; }
.ai-head { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-300); }
.typer { margin: 8px 0 10px; min-height: 2.8em; font-family: var(--font-head); font-weight: 600; font-size: .92rem; line-height: 1.4; }
.typer::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--green-300); animation: blink 1s steps(1) infinite; }
.ai-foot { display: flex; align-items: center; justify-content: space-between; }
.conf { font-size: .72rem; color: #9FB6CC; }
.dash-note { position: absolute; left: 4px; bottom: -28px; margin: 0; font-size: .72rem; color: var(--muted); }

/* ------------------------------------------------------------ timeline -- */
.timeline { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.timeline li { position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 60px; right: -12px; border-top: 2px dashed #C6D4E2; }
.t-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-900); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .95rem; box-shadow: 0 0 0 6px var(--bg-soft), 0 0 0 7px var(--blue-100); transition: background-color .4s, transform .4s var(--ease); }
.timeline li:hover .t-num { background: var(--blue); transform: scale(1.08); }
.timeline h3 { font-size: 1.12rem; margin: 20px 0 8px; }
.timeline p { font-size: .95rem; margin-bottom: 10px; }
.t-tag { font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--green-600); }

/* -------------------------------------------------------- testimonials -- */
.quotes { margin-top: 52px; overflow: hidden; padding: 8px 0 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.quotes-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.quotes:hover .quotes-track { animation-play-state: paused; }
.quote-card { width: 390px; margin: 0 22px 0 0; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.q-mark { width: 34px; height: 34px; fill: var(--blue-50); stroke: var(--blue-200); stroke-width: 1.5; }
.quote-card blockquote { margin: 14px 0 22px; color: var(--ink); font-size: 1.04rem; line-height: 1.6; flex: 1; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .9rem; flex: none; }
.quote-card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.quote-card small { color: var(--muted); }

/* ------------------------------------------------------------------ faq -- */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: 110px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; transition: border-color .3s, box-shadow .3s; }
.acc-item.open { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.acc-item h3 { margin: 0; }
.acc-btn { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 20px 22px; border: 0; background: none; text-align: left; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.acc-plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); transition: background-color .3s, transform .4s var(--ease); }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--blue); transition: transform .4s var(--ease), background-color .3s; }
.acc-plus::after { transform: rotate(90deg); }
.acc-item.open .acc-plus { background: var(--blue); transform: rotate(180deg); }
.acc-item.open .acc-plus::before, .acc-item.open .acc-plus::after { background: #fff; }
.acc-item.open .acc-plus::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { margin: 0; padding: 0 22px 22px; }

/* ----------------------------------------------------------------- chat -- */
.chat-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.chat-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; color: #C4D6E8; }
.chat-points li { display: flex; align-items: center; gap: 10px; }
.chat-points .ico { color: var(--green-300); }
.chat-points a { color: #fff; font-weight: 600; }
.chatbox { position: relative; display: flex; flex-direction: column; height: 580px; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: #fff; background: linear-gradient(120deg, var(--blue) 0%, var(--blue-700) 60%, #0E6C6A 100%); }
.chat-head strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.chat-head small { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; opacity: .9; }
.chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); flex: none; }
.chat-avatar .ico { width: 22px; height: 22px; }
.chat-reset { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: transform .5s var(--ease), background-color .3s; }
.chat-reset:hover { background: rgba(255, 255, 255, .24); transform: rotate(-180deg); }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #F5F8FB; scroll-behavior: smooth; }
.msg { max-width: 86%; animation: msgIn .35s var(--ease); }
.msg > p, .msg .bubble { margin: 0; padding: 12px 15px; border-radius: 18px; font-size: .95rem; line-height: 1.55; }
.msg.bot { align-self: flex-start; }
.msg.bot > p, .msg.bot .bubble { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; }
.msg.user > p { background: linear-gradient(135deg, var(--blue), var(--blue-700)); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg.error .bubble { background: #FDF2F0; color: #7E2A1C; border-color: #F6D3CC; }
.bubble p { margin: 0 0 .55em; }
.bubble p:last-child, .bubble ul:last-child, .bubble ol:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: .3em 0 .6em; padding-left: 1.2em; }
.bubble li { margin-bottom: .2em; }
.bubble a { color: var(--blue-700); font-weight: 600; word-break: break-word; }
.bubble code { font-size: .85em; padding: 1px 5px; border-radius: 5px; background: var(--blue-50); color: var(--blue-700); }
.typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-200); animation: bounce 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: #F5F8FB; }
.chat-suggest[hidden] { display: none; }
.chat-suggest button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--blue-100); background: #fff; color: var(--blue-700); font-size: .8rem; font-weight: 500; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.chat-suggest button:hover { background: var(--blue-50); transform: translateY(-2px); }
.chat-form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; resize: none; max-height: 120px; padding: 12px 15px; border: 1px solid #D5DFEA; border-radius: 16px; background: #FBFDFF; color: var(--ink); line-height: 1.45; transition: border-color .2s, box-shadow .2s; }
.chat-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 112, 192, .12); }
.chat-send { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--green-400), var(--green)); color: #fff; cursor: pointer; transition: transform .25s var(--ease), opacity .2s; }
.chat-send:hover { transform: scale(1.06) rotate(-8deg); }
.chat-send:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.chat-turnstile:empty { display: none; }
.chat-turnstile { display: flex; justify-content: center; padding: 0 14px 8px; }
.chat-disclaimer { margin: 0; padding: 0 16px 12px; text-align: center; font-size: .72rem; color: var(--muted); background: #fff; }

/* -------------------------------------------------------------- contact -- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-info .lead { margin-bottom: 28px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; color: inherit; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
a.contact-card:hover { transform: translateX(6px); border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.cc-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--blue-50); color: var(--blue); flex: none; }
.contact-card small { display: block; font-size: .78rem; color: var(--muted); }
.contact-card strong { font-family: var(--font-head); color: var(--ink); font-size: 1.02rem; word-break: break-word; }
.cc-arrow { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
a.contact-card:hover .cc-arrow { color: var(--blue); transform: translateX(3px); }
.contact-card.med { background: linear-gradient(120deg, #fff, var(--green-50)); }
.contact-card.med .cc-icon { background: var(--green-50); color: var(--green); }
.contact-form { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); }
.contact-form > h3 { font-size: 1.45rem; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.field label b { color: #C2412D; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #D5DFEA; border-radius: 12px; background: #FBFDFF; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 112, 192, .12); }
.field .err { display: none; margin-top: 6px; font-size: .8rem; color: #C2412D; }
.field.invalid input, .field.invalid textarea { border-color: #D4513D; background: #FFF9F8; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin: 4px 0 14px; min-height: 65px; }
.form-note { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: var(--muted); }
.form-note .ico { margin-top: 3px; color: var(--green); }
.contact-form .btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.contact-form.loading .btn .spinner { display: inline-block; }
.contact-form.loading .btn .ico { display: none; }
.contact-form.loading .btn { pointer-events: none; opacity: .85; }
.form-status { margin: 12px 0 0; font-size: .9rem; text-align: center; min-height: 1.2em; }
.form-status.error { color: #C2412D; }
.form-success { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px; text-align: center; background: #fff; border-radius: var(--radius-lg); animation: panelIn .5s var(--ease); }
.form-success[hidden] { display: none; }
.form-success h3 { font-size: 1.6rem; margin: 18px 0 8px; }
.success-check { width: 84px; height: 84px; }
.success-check circle { fill: var(--green-50); stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s var(--ease) forwards; }
.success-check path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .55s forwards; }

/* ------------------------------------------------------------------ CTA -- */
.cta-band { position: relative; overflow: hidden; padding: 80px 0; color: #fff; background: linear-gradient(115deg, var(--blue-800) 0%, var(--blue) 55%, var(--green) 100%); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: -50%; z-index: -1; background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, .16), transparent 30%), radial-gradient(circle at 75% 40%, rgba(88, 214, 168, .3), transparent 28%); animation: drift 16s ease-in-out infinite alternate; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 1.1rem; }
.cta-band .btn-row { flex: none; }

/* --------------------------------------------------------------- footer -- */
.footer { background: #041222; color: #8EA4BA; padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1.2fr; gap: 32px; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-grid a, .footer-grid span { display: block; margin-bottom: 10px; color: #8EA4BA; text-decoration: none; font-size: .92rem; transition: color .2s, transform .2s; word-break: break-word; }
.footer-grid a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 52px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer-bottom a { color: var(--green-300); text-decoration: none; }

/* ------------------------------------------------------------ chat FAB -- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px 13px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--green-400), var(--green)); color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; box-shadow: 0 16px 34px -12px rgba(26, 138, 106, .85); transition: opacity .35s, transform .35s var(--ease); }
.chat-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--green-300); animation: ring 2.4s ease-out infinite; }
.chat-fab .ico { width: 22px; height: 22px; }
.chat-fab.hide { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; }

/* -------------------------------------------------------------- reveal -- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------- keyframes -- */
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.12); } 100% { transform: translate(-30px, 70px) scale(.95); } }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.04); } }
@keyframes trace { from { stroke-dashoffset: 1140; } to { stroke-dashoffset: 0; } }
@keyframes ecgMini { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes travel { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(88, 214, 168, 0); border-color: rgba(88, 214, 168, .35); } 12% { box-shadow: 0 0 0 8px rgba(88, 214, 168, .12), 0 0 30px rgba(88, 214, 168, .45); border-color: rgba(88, 214, 168, .9); } 30% { box-shadow: 0 0 0 0 rgba(88, 214, 168, 0); border-color: rgba(88, 214, 168, .35); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-6px); opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 1360px) {
  .nav-phone span { display: none; }
}
@media (max-width: 1180px) {
  .fc-rate { right: 0; }
  .fc-codes { left: -8px; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 24px; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -24px rgba(11, 31, 51, .35); max-height: calc(100vh - 96px); overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s, visibility .3s; }
  .nav.open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links > a { padding: 14px 10px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .nav-links > a::after { display: none; }
  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 16px; }
  .nav.open .i-open { display: none; }
  .nav.open .i-close { display: block; }
  .nav-actions { margin-left: auto; }
  .hero { padding: 130px 0 130px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-rotator, .hero-ctas, .hero-checks { justify-content: center; }
  .hero-visual { height: 540px; max-width: 560px; width: 100%; margin: 0 auto; }
  .trust-row { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { width: auto; flex: none; }
  .tab[aria-selected="true"]::before { left: 14px; right: 14px; top: auto; bottom: 0; width: auto; height: 3px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .flow-line { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about, .med-grid, .faq-grid, .chat-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-grid .section-head { position: static; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline li:nth-child(2)::after { display: none; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-band .btn-row { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .dash { max-width: 640px; margin: 0 auto 40px; width: 100%; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .nav-inner { height: 76px; gap: 12px; }
  .nav.scrolled .nav-inner { height: 66px; }
  .nav-links { max-height: calc(100vh - 76px); }
  .brand, .brand img { height: 54px; }
  .nav.scrolled .brand, .nav.scrolled .brand img { height: 46px; }
  .nav-actions .btn { display: none; }
  .nav-phone { padding: 8px; }
  .nav-phone .ico { width: 20px; height: 20px; }
  .hero { padding: 116px 0 120px; }
  .hero-lead { font-size: 1.05rem; }
  .hero-ctas .btn { width: 100%; }
  .hero-checks { flex-direction: column; align-items: center; gap: 8px; }
  .hero-visual { height: 430px; }
  .hero-doctor { height: 420px; }
  .orb { width: 310px; height: 310px; bottom: 36px; }
  .ring.r1 { width: 370px; height: 370px; margin-left: -185px; }
  .ring.r2 { width: 430px; height: 430px; margin-left: -215px; bottom: -20px; }
  .float-card { padding: 9px 12px; gap: 9px; font-size: .72rem; }
  .float-card strong { font-size: .8rem; }
  .fc-claim { top: 22px; left: 0; }
  .fc-rate { top: 150px; right: 0; }
  .fc-codes { bottom: 104px; left: 0; }
  .fc-pulse { bottom: 30px; right: 0; }
  .rate-ring { width: 38px; height: 38px; }
  .mini-ecg { width: 80px; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-item:last-child { grid-column: 1 / -1; }
  .tab-panel { padding: 26px 22px; }
  .check-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .stat { padding: 26px 20px; }
  .stat .stat-num { font-size: 2.5rem; }
  .med-features { grid-template-columns: 1fr; }
  .about-badge { right: 0; bottom: 3%; padding: 10px 14px; gap: 8px; }
  .about-badge strong { font-size: 1.6rem; }
  .about-chip { bottom: 33%; padding: 8px 12px; font-size: .78rem; }
  .kpis { gap: 6px; }
  .kpi { padding: 9px; }
  .kpi strong { font-size: 1.05rem; }
  .ai-pop { position: relative; right: auto; bottom: auto; width: auto; margin: -8px 12px 12px; animation: none; }
  .dash-note { position: static; padding: 0 16px 12px; }
  .dash { margin-bottom: 0; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li::after { display: none; }
  .quote-card { width: 300px; padding: 22px; }
  .chatbox { height: 540px; border-radius: 20px; }
  .msg { max-width: 92%; }
  .contact-form { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chat-fab { padding: 14px; right: 16px; bottom: 16px; }
  .chat-fab span { display: none; }
}

/* ------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track, .quotes-track { animation: none !important; }
  .marquee, .quotes { overflow-x: auto; }
}
