/* Home 1: Claim journey. eServMD navy and blue, doctor portrait, scroll-driven steps. */
:root {
  --navy: #2c4964;
  --footer: #2c537a;
  --blue: #2B7FAB;
  --button: #265e90;
  --red: #cd1e34;
  --page: #f3f9ff;
  --mist: #e2e9ed;
  --ink: #2c4964;
  --muted: #444444;
  --line: rgba(44, 73, 100, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
body { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--page); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }

.eyebrow { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; color: var(--navy); }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 26px; border-radius: 10px; font-weight: 600; color: #fff; background: var(--button); box-shadow: 0 16px 30px -18px rgba(38, 94, 144, .9); transition: transform .3s var(--ease), box-shadow .3s, background-color .3s; }
.btn i { transition: transform .3s var(--ease); }
.btn:hover { background: var(--blue); transform: translateY(-3px); box-shadow: 0 22px 34px -18px rgba(38, 94, 144, .95); }
.btn:hover i { transform: translateX(5px); }

/* Header */
.site-header { padding: 16px 0; }
.site-header.is-scrolled { padding: 10px 0; background: rgba(243, 249, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.main-nav { font-size: 15px; font-weight: 500; }
.main-nav > ul > li > a { transition: color .2s; }
.main-nav a:hover { color: var(--blue); }
.sub { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 50px -24px rgba(44, 73, 100, .45); }
.sub a { border-radius: 8px; }
.sub a:hover { background: var(--page); }
.header-cta { display: inline-flex; gap: 8px; padding: 9px 16px; border-radius: 8px; font-weight: 600; color: #fff; background: var(--button); transition: background-color .25s; }
.main-nav a.header-cta:hover { color: #fff; background: var(--blue); }

/* Hero */
.hero { padding: 104px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; font-size: clamp(40px, 4.5vw, 62px); line-height: 1.08; color: var(--ink); }
.word { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }
.word > span { display: inline-block; animation: word-up .9s var(--ease) calc(.1s + var(--i) * .05s) backwards; }
.load { animation: rise .9s var(--ease) calc(.15s + var(--i) * .08s) backwards; }
@keyframes word-up { from { transform: translateY(110%); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.hero-lead { max-width: 480px; font-size: 19px; color: var(--muted); }
.promise { margin-top: 22px; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.promise span { padding: 0 4px 2px; background: linear-gradient(rgba(43, 127, 171, .26), rgba(43, 127, 171, .26)) 0 88% / 100% 34% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: marker 1s var(--ease) 1.2s backwards; }
@keyframes marker { from { background-size: 0 34%; } }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.hero-cta > span { max-width: 170px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
/* Trust bar: Google, Trustpilot and BBB as equal-height badge cards */
.hero-trust { margin-top: 34px; }
.trust-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trust-label i { font-size: 15px; color: var(--blue); }
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-badge { display: grid; place-items: center; height: 84px; padding: 12px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 30px -24px rgba(44, 73, 100, .55); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.trust-badge img { width: auto; height: 50px; }
.trust-badge-bbb { padding: 8px 14px; }
.trust-badge-bbb img { height: 66px; }
a.trust-badge:hover { transform: translateY(-4px); border-color: rgba(43, 127, 171, .4); box-shadow: 0 24px 36px -24px rgba(44, 73, 100, .6); }

/* Hero art: a blue stage that wipes open, then the doctor, then the points */
.stage { position: relative; aspect-ratio: 62 / 66; border-radius: 26px; background: linear-gradient(160deg, var(--footer), var(--blue)); animation: wipe 1.1s var(--ease) .1s backwards; }
@keyframes wipe { from { clip-path: inset(100% 0 0 0 round 26px); } to { clip-path: inset(0 0 0 0 round 26px); } }
.ring { position: absolute; left: 50%; bottom: 8%; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; transform: translateX(-50%); animation: breathe 6s ease-in-out infinite; }
.ring-one { width: 62%; }
.ring-two { width: 88%; border-color: rgba(255, 255, 255, .18); animation-delay: -3s; }
@keyframes breathe { 50% { transform: translateX(-50%) scale(1.06); opacity: .55; } }

.stat { position: absolute; inset: 4.5% 5% auto; display: flex; align-items: center; gap: 18px; color: #fff; animation: rise .9s var(--ease) .5s backwards; }
.stat strong { flex: none; font-family: var(--serif); font-size: clamp(52px, 6vw, 86px); font-weight: 500; line-height: 1; letter-spacing: -.03em; color: #fff; }
.stat sup { font-size: .5em; font-weight: 500; vertical-align: top; position: relative; top: .1em; line-height: 1; }
.stat p { font-size: clamp(14px, 1.2vw, 16.5px); font-weight: 500; line-height: 1.4; }

.doctor { position: absolute; bottom: 0; right: -3%; width: 62%; animation: doctor-in 1.2s var(--ease) .35s backwards; }
@keyframes doctor-in { from { opacity: 0; transform: translateY(44px); } }

/* Points: one frosted panel over the bottom of the stage, a 2x2 checklist */
/* Desktop: the points stacked in a column on the left, doctor on the right */
.points-card { position: absolute; left: 4%; bottom: 7%; width: 42%; padding: 22px 22px 24px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 20px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 50px -30px rgba(15, 30, 48, .85); animation: point-in .9s var(--ease) .9s backwards; }
@keyframes point-in { from { opacity: 0; transform: translateY(26px) scale(.96); } }
.points-title { margin-bottom: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.points { display: grid; grid-template-columns: 1fr; gap: 0; }
.points .point + .point { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.point { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: clamp(15px, 1.25vw, 17.5px); font-weight: 600; line-height: 1.25; color: var(--ink); animation: rise .7s var(--ease) calc(1.1s + var(--i) * .12s) backwards; }
.point-mark { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; color: #fff; background: linear-gradient(140deg, var(--blue), var(--navy)); box-shadow: 0 0 0 0 rgba(43, 127, 171, .45); transition: box-shadow .5s var(--ease), transform .4s var(--ease); }
.point.is-active .point-mark { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(43, 127, 171, .22); }

/* How it works */
.how { --p: 1; padding: 100px 0 110px; border-radius: 36px 36px 0 0; color: #fff; background: var(--navy); }
.how .eyebrow { color: var(--mist); }
.how .btn { color: var(--navy); background: #fff; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .6); }
.how .btn:hover { background: var(--mist); }
.how-head { max-width: 680px; margin-bottom: 64px; }
.how-head h2 { margin: 14px 0 16px; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.06; }
.how-head > p:last-child { font-size: 19px; color: rgba(255, 255, 255, .76); }
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }

/* Ticket: follows the scroll and fills in as the steps pass */
.ticket { position: sticky; top: 104px; z-index: 5; padding: 28px; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 40px 60px -36px rgba(0, 0, 0, .7); }
.ticket-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ticket-top b { font-weight: 500; color: var(--ink); }
.ticket-now { margin: 16px 0 20px; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.15; }
.ticket-rows { border-top: 1px dashed var(--line); }
.ticket-rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-weight: 500; transition: color .35s; }
.ticket-rows i { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; font-size: 14px; color: #fff; background: var(--navy); transition: background-color .35s, transform .45s var(--ease), color .35s; }
.ticket-bar { height: 6px; margin-top: 20px; border-radius: 99px; overflow: hidden; background: rgba(44, 73, 100, .12); }
.ticket-bar span { display: block; height: 100%; border-radius: inherit; background: var(--blue); transform: scaleX(var(--p)); transform-origin: left; }
.stamp { position: absolute; right: 22px; bottom: 44px; padding: 4px 16px; border: 3px solid var(--red); border-radius: 9px; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--red); background: #fff; transform: rotate(-7deg); }

.is-live .ticket-rows li { color: var(--muted); }
.is-live .ticket-rows i { color: transparent; background: rgba(44, 73, 100, .12); transform: scale(.82); }
.is-live .ticket-rows li.is-active, .is-live .ticket-rows li.is-done { color: var(--ink); }
.is-live .ticket-rows li.is-active i { background: var(--blue); transform: none; box-shadow: 0 0 0 5px rgba(43, 127, 171, .25); }
.is-live .ticket-rows li.is-done i { color: #fff; background: var(--navy); transform: none; }
.is-live.is-paid .ticket-rows li.is-active i { color: #fff; }
.is-live .stamp { opacity: 0; transform: rotate(-7deg) scale(1.2); transition: opacity .15s, transform .15s; }
.is-live.is-paid .stamp { opacity: 1; animation: stamp .55s var(--ease) .25s backwards; transform: rotate(-7deg); }
@keyframes stamp { from { opacity: 0; transform: rotate(4deg) scale(2.4); } 60% { opacity: 1; transform: rotate(-9deg) scale(.94); } }

/* Steps: a rail fills as you scroll, and each node lights up as it is reached */
.steps { position: relative; }
.rail { display: none; position: absolute; left: 27px; top: 44px; width: 2px; background: rgba(255, 255, 255, .16); }
.rail::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleY(var(--p)); transform-origin: top; }
.is-live .rail { display: block; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 26px; align-items: start; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-top: 16px; border-radius: 50%; font-size: 23px; color: var(--navy); background: #fff; transition: background-color .4s, color .4s, transform .5s var(--ease), box-shadow .5s; }
.step-card { min-height: 244px; padding: 28px 32px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; background: rgba(255, 255, 255, .06); transition: opacity .45s, transform .6s var(--ease), background-color .45s, border-color .45s; }
.step-num { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.step h3 { margin: 10px 0 10px; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.12; }
.step p { max-width: 520px; color: rgba(255, 255, 255, .78); }

.is-live .node { color: rgba(255, 255, 255, .8); background: var(--footer); }
.is-live .step.is-done .node { color: #fff; background: var(--blue); }
.is-live .step.is-active .node { color: var(--navy); background: #fff; transform: scale(1.12); animation: node-pulse 2.2s ease-out infinite; }
@keyframes node-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 100% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); } }
.is-live .step-card { opacity: .42; transform: translateX(14px); }
.is-live .step.is-done .step-card { opacity: .72; transform: none; }
.is-live .step.is-active .step-card { opacity: 1; transform: none; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); }
.how-cta { margin-top: 56px; text-align: center; }

/* Footer */
.site-footer { padding: 72px 0 28px; font-size: 15px; color: rgba(255, 255, 255, .76); background: var(--footer); border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer .logo img { padding: 8px 12px; border-radius: 10px; background: #fff; height: 62px; }
.site-footer h3 { font-size: 19px; color: #fff; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-social a { color: #fff; background: rgba(255, 255, 255, .12); }
.footer-social a:hover { color: var(--navy); background: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }

@media (max-width: 1040px) {
  .main-nav { background: var(--page); box-shadow: 0 20px 30px -20px rgba(44, 73, 100, .4); }
  .hero { padding: 92px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }

  /* Stage stacks: stat, doctor, then the points as a grid */
  .stage { aspect-ratio: auto; display: flex; flex-direction: column; padding: 24px 20px 20px; overflow: hidden; }
  .stat { position: static; }
  .doctor { position: static; order: 1; width: min(76%, 420px); margin: 12px auto 0; border-radius: 0; }
  .points-card { order: 2; position: relative; inset: auto; width: auto; margin-top: -40px; }
  .ring { bottom: 34%; }

  .how { padding: 72px 0 80px; border-radius: 26px 26px 0 0; }
  .how-head { margin-bottom: 36px; }
  .how-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Ticket becomes a compact bar pinned under the header */
  .ticket { top: 72px; padding: 14px 16px; border-radius: 14px; }
  .ticket-now { margin: 4px 0 10px; font-size: 20px; }
  .ticket-rows { display: none; }
  .ticket-bar { margin-top: 0; }
  .stamp { right: 12px; top: 32px; bottom: auto; padding: 1px 10px; border-width: 2px; font-size: 18px; }
  .step-card { min-height: 0; }
}
@media (max-width: 620px) {
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-cta > span { max-width: none; }
  .stat { gap: 12px; }
  .points { grid-template-columns: 1fr; gap: 10px; }
  .point { font-size: 15.5px; }
  .trust-badge { height: 70px; padding: 10px 16px; }
  .trust-badge img { height: 40px; }
  .trust-badge-bbb img { height: 54px; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .node { width: 44px; height: 44px; font-size: 18px; }
  .rail { left: 21px; top: 38px; }
  .step-card { padding: 20px; }
  .is-live .step-card { transform: none; }
  .how-cta .btn { width: 100%; justify-content: center; }
}

/* Services: 4 x 2 card grid */
.srv { padding: 110px 0 120px; }
.srv-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 52px; }
.srv-head h2 { margin-top: 14px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; }
.srv-head > p { font-size: 18px; color: var(--muted); }

.srv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.srv-card { position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.srv-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--blue), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.srv-card:hover { transform: translateY(-6px); border-color: rgba(43, 127, 171, .35); box-shadow: 0 30px 50px -30px rgba(44, 73, 100, .5); }
.srv-card:hover::before { transform: scaleX(1); }

.srv-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-size: 24px; color: var(--blue); background: rgba(43, 127, 171, .1); transition: color .35s, background .35s, transform .5s var(--ease); }
.srv-card:hover .srv-icon { color: #fff; background: linear-gradient(140deg, var(--blue), var(--button)); transform: rotate(-8deg) scale(1.06); }
.srv-num { position: absolute; top: 26px; right: 24px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; color: rgba(44, 73, 100, .4); }
.srv-card h3 { margin: 22px 0 10px; font-size: 21px; line-height: 1.2; }
.srv-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.srv-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; font-size: 14.5px; font-weight: 600; color: var(--blue); }
.srv-more i { transition: transform .35s var(--ease); }
.srv-card:hover .srv-more i { transform: translate(3px, -3px); }

@media (max-width: 1040px) {
  .srv { padding: 80px 0 90px; }
  .srv-head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .srv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .srv-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Shared bits for the lower homepage sections */
.btn.btn-light { color: var(--navy); background: #fff; box-shadow: none; }
.btn.btn-light:hover { color: #fff; background: var(--blue); }

/* EHR / PM platforms: logo marquee */
.ehr { padding: 20px 0 100px; }
.ehr-head { margin-bottom: 30px; text-align: center; }
.ehr-head h2 { margin-top: 12px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; }
.ehr .logo-item { width: 200px; height: 88px; margin: 0 8px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ehr .logo-item img { max-height: 44px; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.ehr .logo-item:hover img { filter: none; opacity: 1; }

/* Who we serve */
.serve { padding: 0 0 110px; }
.serve-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.serve-card { position: relative; display: flex; flex-direction: column; padding: 30px 26px 24px; border-radius: 22px; color: #fff; background: linear-gradient(160deg, var(--footer), var(--blue)); overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s; }
.serve-card::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 180px; height: 180px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; transition: transform .6s var(--ease); }
.serve-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(44, 73, 100, .8); }
.serve-card:hover::after { transform: scale(1.35); }
.serve-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-size: 24px; background: rgba(255, 255, 255, .16); }
.serve-card h3 { margin: 22px 0 10px; font-size: 22px; line-height: 1.2; }
.serve-card p { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.serve-card .srv-more { color: #fff; }
.serve-card:hover .srv-more i { transform: translate(3px, -3px); }

/* Why choose us: navy band */
.why { padding: 100px 0; border-radius: 36px; color: #fff; background: var(--navy); }
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.why-head { position: sticky; top: 110px; }
.why .eyebrow { color: var(--mist); }
.why-head h2 { margin: 14px 0 16px; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.08; }
.why-head > p { margin-bottom: 30px; font-size: 18px; color: rgba(255, 255, 255, .75); }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-list li { display: flex; gap: 16px; padding: 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: rgba(255, 255, 255, .05); transition: background-color .3s, border-color .3s; }
.why-list li:hover { border-color: rgba(143, 208, 240, .45); background: rgba(255, 255, 255, .09); }
.why-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; font-size: 20px; color: var(--navy); background: #8fd0f0; }
.why-list h3 { font-size: 19px; line-height: 1.25; }
.why-list p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .72); }

/* Specialties: chips */
.spec { padding: 110px 0 100px; }
.spec-list { display: flex; flex-wrap: wrap; gap: 12px; }
.spec-list a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 99px; font-size: 16px; font-weight: 500; background: #fff; transition: border-color .3s, color .3s, transform .3s var(--ease); }
.spec-list a i { color: var(--blue); }
.spec-list a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.spec-list a.spec-all { border-color: transparent; color: #fff; background: var(--button); }
.spec-list a.spec-all i { color: #fff; }
.spec-list a.spec-all:hover { color: #fff; background: var(--blue); }

/* Testimonials: scroll-snap slider */
.voices { padding: 0 0 110px; }
.voices-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.voices-head h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
.voices-nav { display: flex; gap: 10px; }
.voices-nav button { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; color: var(--navy); background: #fff; cursor: pointer; transition: color .25s, background-color .25s, border-color .25s; }
.voices-nav button:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.voices-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.voices-track::-webkit-scrollbar { display: none; }
.voice { position: relative; display: flex; flex-direction: column; margin: 0; padding: 32px 30px 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; scroll-snap-align: start; }
.voice-mark { font-size: 44px; line-height: 1; color: var(--blue); opacity: .35; }
.voice blockquote { flex: 1; margin: 8px 0 24px; }
.voice blockquote p { font-size: 16.5px; line-height: 1.6; }
.voice figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.voice-avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; background: linear-gradient(140deg, var(--blue), var(--navy)); }
.voice figcaption strong { display: block; font-size: 16px; }
.voice figcaption small { display: block; font-size: 14px; color: var(--muted); }
.voices-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; color: var(--button); }
.voices-all:hover { color: var(--blue); }

/* Free evaluation: closing form */
.eval { padding: 0 0 110px; }
.eval-box { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding: 56px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, var(--button), var(--blue)); }
.eval .eyebrow { color: rgba(255, 255, 255, .8); }
.eval-copy h2 { margin: 14px 0 14px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
.eval-copy > p { font-size: 18px; color: rgba(255, 255, 255, .85); }
.eval-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; }
.eval-phone:hover { text-decoration: underline; }
.eval .s-form { padding: 28px; border-radius: 20px; color: var(--ink); background: #fff; }
.eval .s-form-fields { grid-template-columns: 1fr; gap: 12px; }
.eval .s-form input { padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--page); outline: none; transition: border-color .2s, box-shadow .2s; }
.eval .s-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 127, 171, .15); }
.eval .s-form-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; border: 0; border-radius: 10px; font-weight: 600; color: #fff; background: var(--button); cursor: pointer; transition: background-color .25s; }
.eval .s-form-submit:hover { background: var(--navy); }
.eval .s-form-error, .eval .s-form .mb-3 .text-danger { color: var(--red); }

@media (max-width: 1040px) {
  .ehr { padding-bottom: 72px; }
  .serve { padding-bottom: 80px; }
  .serve-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { padding: 72px 0; border-radius: 26px; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-head { position: static; }
  .spec { padding: 80px 0 72px; }
  .voices { padding-bottom: 80px; }
  .voices-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .eval { padding-bottom: 80px; }
  .eval-box { grid-template-columns: 1fr; padding: 40px 32px; }
}
@media (max-width: 620px) {
  .serve-grid, .why-list { grid-template-columns: 1fr; }
  .why-list li { padding: 20px; }
  .why-head .btn { width: 100%; justify-content: center; }
  .spec-list a { padding: 10px 14px; font-size: 15px; }
  .voices-track { grid-auto-columns: 88%; gap: 14px; }
  .voice { padding: 26px 22px 22px; }
  .eval-box { padding: 32px 20px; border-radius: 24px; }
  .eval .s-form { padding: 20px; }
}
