/* ---------- Client flow ---------- */
.flow-section { background: linear-gradient(#fff, var(--bg-soft)); }
.flow { --i: 0; position: relative; }
.flow-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 100%; padding: 0 .25rem; border: 0; background: none; font: inherit; cursor: pointer; text-align: center; color: var(--muted); }
.flow-dot {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: .5rem; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); color: var(--muted);
  transition: background-color .35s, border-color .35s, color .35s, transform .35s, box-shadow .35s;
}
.flow-dot .icon { width: 26px; height: 26px; }
.flow-name { font-weight: 700; color: var(--ink-2); line-height: 1.25; }
.flow-when { font-size: .82rem; }
.flow-node.is-done .flow-dot { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.flow-node[aria-selected="true"] .flow-dot { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 8px rgba(31, 79, 209, .14), 0 10px 24px rgba(31, 79, 209, .35); }
.flow-node[aria-selected="true"] .flow-name { color: var(--ink); }
.flow-node:hover .flow-dot { border-color: var(--brand); }
.flow-node:focus-visible { outline: none; }
.flow-node:focus-visible .flow-dot { outline: 3px solid var(--brand); outline-offset: 4px; }

/* The track runs behind the circles, from the centre of the first to the centre of the last. */
.flow-track { position: absolute; z-index: 0; top: 31px; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); height: 3px; border-radius: 3px; background: var(--line); }
.flow-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--i) / (var(--n) - 1) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--brand)); transition: width .9s cubic-bezier(.65, 0, .35, 1); }
.flow-pulse { position: absolute; top: 50%; left: calc(var(--i) / (var(--n) - 1) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); transition: left .9s cubic-bezier(.65, 0, .35, 1); }
@media (prefers-reduced-motion: no-preference) {
  .flow-pulse { animation: flow-ping 1.6s ease-out infinite; }
  .flow.is-playing .flow-panel.is-active::after { animation: flow-timer var(--dur, 5s) linear forwards; }
  .js .flow-panel.is-active { animation: flow-in .45s ease both; }
}
@keyframes flow-ping { 0% { box-shadow: 0 0 0 0 rgba(242, 180, 22, .55); } 100% { box-shadow: 0 0 0 16px rgba(242, 180, 22, 0); } }
@keyframes flow-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flow-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.flow-panels { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 1rem; }
.flow-panel { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.flow-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.js .flow-panels { display: block; }
.js .flow-panel { display: none; }
.js .flow-panel.is-active { display: block; }
.flow-panel-title { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.25rem; font: 700 1.35rem/1.2 var(--font-display); color: var(--ink); }
.flow-panel-title span { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 .5rem; border-radius: 99px; background: var(--ink); color: var(--accent); font-size: .85rem; }
.flow-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.flow-col { padding: 1rem 1.1rem; border-radius: 12px; background: var(--bg-soft); }
.flow-col p:last-child { margin: 0; color: var(--ink-2); }
.flow-col.is-result { background: #e9f8ef; }
.flow-label { margin: 0 0 .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flow-col.is-result .flow-label { color: #138a43; }
.flow-controls { display: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.js .flow-controls { display: flex; }
.flow-play { min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: 500 .95rem var(--font); cursor: pointer; }
.flow-play:hover { border-color: var(--ink); }
.flow-play .when-paused, .flow-play[aria-pressed="false"] .when-playing { display: none; }
.flow-play[aria-pressed="false"] .when-paused { display: inline; }

@media (max-width: 860px) {
  .flow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.25rem; }
  .flow-track { display: none; }
  .flow-dot { width: 52px; height: 52px; }
  .flow-dot .icon { width: 22px; height: 22px; }
  .flow-cols { grid-template-columns: 1fr; gap: .6rem; }
}
@media (max-width: 420px) {
  .flow-name { font-size: .92rem; }
  .flow-when { display: none; }
  .flow-controls .btn { width: 100%; }
}

/* ---------- New services + free health check banner ---------- */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 99px; background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.card > .badge { position: absolute; top: 1.4rem; right: 1.4rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--brand); }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--brand); font-size: .95rem; }
.checkup { position: relative; z-index: 2; margin-top: calc(-1 * clamp(36px, 5vw, 60px)); }
.checkup-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px); background: var(--ink); color: #c7d2e3; border-radius: 20px; box-shadow: var(--shadow-lg); }
.checkup-inner h2 { color: #fff; font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin: 0 0 .25rem; }
.checkup-inner p { margin: 0; }
.checkup-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(242, 180, 22, .15); color: var(--accent); flex: none; }
.checkup-icon .icon { width: 26px; height: 26px; }
.checkup-text { display: flex; align-items: center; gap: 1rem; flex: 1 1 420px; }
@media (max-width: 600px) { .checkup-inner .btn { width: 100%; } .checkup-text { align-items: flex-start; } }
