/* /services: the page-only parts. The hero frame, eyebrow, buttons, quote band,
   CTA band and footer come from site.css.

   Contents
     1. Page tokens (the drawn screens follow the theme; the audit sheet and
        the member card are islands and do not)
     2. Hero orbit
     3. The six-service index (a strip on desktop, a chip row on phones)
     4. Service rows (copy, check list, the stage around each vignette)
     5. Vignettes: shared screen parts, then one block per service
     6. Quote bands, membership, close */

/* 1. Page tokens ------------------------------------------------------------- */

:root,
[data-theme="light"] {
  --svc-section-glow: rgba(107, 66, 156, 0.12);
  --svc-stage-glow: rgba(126, 72, 214, 0.168);
  --svc-stage-glow-2: rgba(126, 72, 214, 0.016);
  --svc-stage-fill: rgba(139, 92, 246, 0.006);
  --svc-art-shadow: drop-shadow(0 18px 28px rgba(139, 92, 246, 0.2));
  --svc-screen-bg: rgba(255, 255, 255, 0.9);
  --svc-screen-border: rgba(21, 14, 32, 0.095);
  --svc-screen-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 34px 70px -26px rgba(46, 24, 84, 0.18);
  --svc-screen-line: rgba(21, 14, 32, 0.07);
  --svc-screen-foot: rgba(21, 14, 32, 0.016);
  --svc-ghost-1: rgba(21, 14, 32, 0.02);
  --svc-ghost-2: rgba(21, 14, 32, 0.032);
  --svc-avatar-ink: #6B429C;
  --svc-warn: #A04A2E;
  --svc-warn-bg: rgba(245, 180, 110, 0.16);
  --svc-step-ink: #FFFFFF;
  --svc-step-line: rgba(31, 143, 156, 0.28);
  --svc-cyan-tint: rgba(31, 143, 156, 0.098);
  --svc-cyan-glow: rgba(31, 143, 156, 0.35);
  --svc-cyan-soft: rgba(31, 143, 156, 0.05);
  --svc-paper-shadow: 0 50px 80px -30px rgba(46, 24, 84, 0.17), 0 0 0 1px rgba(21, 14, 32, 0.15);
  --svc-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B429C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  /* hero orbit */
  --svc-orbit-glow: rgba(139, 92, 246, 0.168);
  --svc-ring: rgba(21, 14, 32, 0.09);
  --svc-ring-2: rgba(126, 82, 200, 0.2);
  --svc-spoke: rgba(126, 82, 200, 0.42);
  --svc-tile-bg: #FFFFFF;
  --svc-tile-border: rgba(21, 14, 32, 0.123);
  --svc-tile-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 26px 50px -20px rgba(46, 24, 84, 0.17);
  --svc-tile-art: drop-shadow(0 10px 18px rgba(139, 92, 246, 0.2));
  --svc-core-shadow: 0 0 0 8px rgba(139, 92, 246, 0.048), 0 0 60px rgba(139, 92, 246, 0.3), 0 20px 40px -12px rgba(46, 24, 84, 0.14);
  --svc-orb-shadow: 0 0 24px rgba(31, 143, 156, 0.21), 0 0 60px rgba(139, 92, 246, 0.22);
  /* software layers */
  --svc-plate-bg-k: 0.75;
  --svc-plate-line: 107 66 156;
  --svc-plate-line-k: 0.6;
  --svc-plate-top-border: rgba(21, 14, 32, 0.15);
  --svc-plate-top-glow: rgba(139, 92, 246, 0.3);
  --svc-tick: rgba(21, 14, 32, 0.1);
  --svc-tick-strong: rgba(107, 66, 156, 0.45);
  --svc-beam: linear-gradient(180deg, rgba(139, 92, 246, 0.27), rgba(31, 143, 156, 0));
  --svc-nadia: #127A86;
  /* membership */
  --svc-member-bg: #FAF8FE;
  --svc-member-border: rgba(21, 14, 32, 0.15);
  --svc-member-glow: rgba(139, 92, 246, 0.144);
  --svc-member-cyan: rgba(31, 143, 156, 0.042);
  --svc-halo: rgba(139, 92, 246, 0.2);
  --svc-back-card: #FFFFFF;
  --svc-back-border: rgba(21, 14, 32, 0.15);
  --svc-back-shadow: 0 1px 2px rgba(21, 14, 32, 0.04), 0 22px 44px -28px rgba(76, 40, 130, 0.28);
  --svc-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 30px 60px -20px rgba(46, 24, 84, 0.35), 0 0 60px -10px rgba(155, 114, 230, 0.45);
}

[data-theme="dark"] {
  --svc-section-glow: rgba(107, 66, 156, 0.3);
  --svc-stage-glow: rgba(126, 72, 214, 0.42);
  --svc-stage-glow-2: rgba(126, 72, 214, 0.04);
  --svc-stage-fill: rgba(255, 255, 255, 0.02);
  --svc-art-shadow: drop-shadow(0 18px 28px rgba(139, 92, 246, 0.5));
  --svc-screen-bg: rgba(16, 11, 26, 0.88);
  --svc-screen-border: rgba(255, 255, 255, 0.1);
  --svc-screen-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 34px 70px -26px rgba(0, 0, 0, 0.9);
  --svc-screen-line: rgba(255, 255, 255, 0.06);
  --svc-screen-foot: rgba(255, 255, 255, 0.02);
  --svc-ghost-1: rgba(255, 255, 255, 0.025);
  --svc-ghost-2: rgba(255, 255, 255, 0.04);
  --svc-avatar-ink: #E9DDFF;
  --svc-warn: #F5C08A;
  --svc-warn-bg: rgba(245, 180, 110, 0.14);
  --svc-step-ink: #0B0712;
  --svc-step-line: rgba(143, 233, 242, 0.4);
  --svc-cyan-tint: rgba(143, 233, 242, 0.14);
  --svc-cyan-glow: #8FE9F2;
  --svc-cyan-soft: rgba(143, 233, 242, 0.14);
  --svc-paper-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.3);
  --svc-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D5BEFA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --svc-orbit-glow: rgba(139, 92, 246, 0.42);
  --svc-ring: rgba(255, 255, 255, 0.09);
  --svc-ring-2: rgba(205, 181, 244, 0.2);
  --svc-spoke: rgba(205, 181, 244, 0.42);
  --svc-tile-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)), #150E21;
  --svc-tile-border: rgba(255, 255, 255, 0.13);
  --svc-tile-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 26px 50px -20px rgba(0, 0, 0, 0.85);
  --svc-tile-art: drop-shadow(0 10px 18px rgba(139, 92, 246, 0.5));
  --svc-core-shadow: 0 0 0 8px rgba(139, 92, 246, 0.12), 0 0 60px rgba(139, 92, 246, 0.75), 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  --svc-orb-shadow: 0 0 24px rgba(164, 230, 236, 0.6), 0 0 60px rgba(139, 92, 246, 0.55);
  --svc-plate-bg-k: 1;
  --svc-plate-line: 205 181 244;
  --svc-plate-line-k: 1;
  --svc-plate-top-border: rgba(233, 221, 251, 0.75);
  --svc-plate-top-glow: rgba(139, 92, 246, 0.75);
  --svc-tick: rgba(233, 221, 251, 0.22);
  --svc-tick-strong: rgba(233, 221, 251, 0.5);
  --svc-beam: linear-gradient(180deg, rgba(236, 252, 255, 0.9), rgba(160, 236, 248, 0));
  --svc-nadia: #BDF3F8;
  --svc-member-bg: #0E0A16;
  --svc-member-border: rgba(233, 221, 251, 0.22);
  --svc-member-glow: rgba(139, 92, 246, 0.36);
  --svc-member-cyan: rgba(143, 233, 242, 0.12);
  --svc-halo: rgba(139, 92, 246, 0.5);
  --svc-back-card: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  --svc-back-border: rgba(255, 255, 255, 0.16);
  --svc-back-shadow: none;
  --svc-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 60px -10px rgba(155, 114, 230, 0.7);
}

/* The check mark used by step dots and "Filled in clinic" (a mask: it takes the color under it). */
.step-dot::after,
.filled__dot::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 2. Hero orbit ---------------------------------------------------------------- */

.svc-hero .page-hero__text .lead { max-width: 560px; }
.nowrap { white-space: nowrap; }

/* Six service tiles around the Medico mark. Drawn on a 460 x 480 plan in
   container units, so it scales as one piece. */
.svc-orbit {
  position: relative;
  justify-self: center;
  width: min(460px, 100%);
  aspect-ratio: 460 / 480;
  container-type: inline-size;
}
.svc-orbit__glow {
  position: absolute;
  left: 0;
  top: 2.08%;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--svc-orbit-glow), transparent 72%);
  animation: mx-breathe 6s ease-in-out infinite;
}
.svc-orbit__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-orbit__ring { stroke: var(--svc-ring); stroke-width: 1; }
.svc-orbit__ring--inner { stroke: var(--svc-ring-2); }
.svc-orbit__spokes line { stroke: var(--svc-spoke); stroke-width: 1; stroke-dasharray: 2 5; stroke-linecap: round; }
.svc-orbit__nodes circle { fill: var(--cyan-fill); }
.svc-orbit__core {
  position: absolute;
  left: 40.87%;
  top: 41.25%;
  width: 18.26cqw;
  height: 18.26cqw;
  border-radius: 5.65cqw;
  box-shadow: var(--svc-core-shadow);
}
.svc-orbit__core img { width: 100%; height: 100%; }
.svc-orbit__tile {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23.48cqw;
  height: 23.48cqw;
  border-radius: 6.52cqw;
  background: var(--svc-tile-bg);
  border: 1px solid var(--svc-tile-border);
  box-shadow: var(--svc-tile-shadow);
}
.svc-orbit__tile img { width: 72%; height: auto; filter: var(--svc-tile-art); }
.svc-orbit__tile--1 { left: 38.26%; top: 2.5%; }
.svc-orbit__tile--2 { left: 71.09%; top: 20.63%; }
.svc-orbit__tile--3 { left: 71.09%; top: 56.88%; }
.svc-orbit__tile--4 { left: 38.26%; top: 75%; }
.svc-orbit__tile--5 { left: 5.43%; top: 56.88%; }
.svc-orbit__tile--6 { left: 5.43%; top: 20.63%; }
.svc-orb {
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orb);
  box-shadow: var(--svc-orb-shadow);
}

@media (max-width: 1023px) {
  .svc-orbit { width: min(400px, 100%); }
}
@media (max-width: 767px) {
  .svc-hero .page-hero__inner { gap: 40px; }
  .svc-orbit { width: min(330px, 92%); margin-bottom: -12px; }
}

/* 3. The six-service index ------------------------------------------------------ */

.svc-nav {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.svc-nav a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px 26px;
  border-right: 1px solid var(--hair);
  color: var(--text-1);
  transition: background-color 0.25s;
}
.svc-nav a:last-child { border-right: 0; }
.svc-nav a:hover { background: var(--fill-1); }
.svc-nav__num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.svc-nav__num::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--text-4);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s var(--ease-out), background-color 0.25s;
}
.svc-nav a:hover .svc-nav__num::after { background: var(--accent); transform: translateY(2px); }
.svc-nav__label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

/* Tablet: three by two. */
@media (min-width: 768px) and (max-width: 1023px) {
  .svc-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-nav a:nth-child(3n) { border-right: 0; }
  .svc-nav a:nth-child(-n + 3) { border-bottom: 1px solid var(--hair); }
}

/* Phone: one row of chips that scrolls sideways inside its own box. */
@media (max-width: 767px) {
  .svc-nav {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 14px var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  }
  .svc-nav::-webkit-scrollbar { display: none; }
  .svc-nav a {
    flex: none;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--fill-1);
    scroll-snap-align: start;
  }
  .svc-nav a:last-child { border-right: 1px solid var(--border); }
  .svc-nav__num { font-size: 11px; }
  .svc-nav__num::after { display: none; }
  .svc-nav__label { font-size: 14.5px; }
}

/* 4. Service rows ------------------------------------------------------------------ */

/* <section class="svc [svc--flip]" id=".."> text left and the stage right; --flip
   puts the stage left on desktop. Stacked (text, then stage) below 1024. */
.svc {
  position: relative;
  z-index: 2;
  padding-top: var(--section-top);
  overflow-x: clip;
}
.svc__glow {
  position: absolute;
  left: calc(50% - 360px);
  top: -10px;
  width: 1200px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--svc-section-glow), transparent 70%);
  pointer-events: none;
}
.svc--flip .svc__glow { left: calc(50% - 1100px); }

.svc__grid {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .svc__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; }
  .svc--flip .svc__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .svc--flip .svc__visual { order: -1; }
}
@media (min-width: 1200px) {
  .svc__grid { grid-template-columns: minmax(0, 1fr) 600px; gap: 80px; }
  .svc--flip .svc__grid { grid-template-columns: 600px minmax(0, 1fr); }
}

.svc__text { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.svc__index {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.svc__index::after {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.7;
}
.svc__ask {
  max-width: 430px;
  margin-top: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(25px, 21.7px + 0.65vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--accent-2);
  text-wrap: balance;
}
/* the title itself is the shared .h2 */
.svc__title { margin-top: 14px; }
.svc__sub {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--text-4);
}
.svc__product {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text-1);
}
.svc__lead {
  max-width: 440px;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.svc__list {
  width: 100%;
  margin-top: 34px;
  border-bottom: 1px solid var(--line);
}
.svc__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--text-soft);
}
.svc__list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--svc-check) center / 12px no-repeat, var(--accent-tint);
}
.svc__link { margin-top: 30px; font-size: 15px; }

.svc__visual { position: relative; min-width: 0; }
.svc__art {
  position: absolute;
  top: -44px;
  z-index: 3;
  width: 112px;
  height: auto;
  filter: var(--svc-art-shadow);
  pointer-events: none;
  animation: mx-float 9s ease-in-out infinite;
}
.svc__art--right { right: 34px; }
.svc__art--left { left: 34px; }
.svc__art--sm { width: 104px; }
.svc__art--xs { width: 100px; }
.svc__art--xxs { width: 90px; }

/* The stage: a glowing glass frame that holds a vignette. */
.stage {
  --gx: 55%;
  --gy: 45%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at var(--gx) var(--gy), var(--svc-stage-glow), var(--svc-stage-glow-2) 66%),
    var(--svc-stage-fill);
}
.stage > .fx-grain { opacity: calc(var(--grain-opacity) * 0.6); }
.stage > :not(.fx-grain) { position: relative; z-index: 1; }

@media (max-width: 1023px) {
  .svc__grid { gap: 64px; }
  .svc__visual { width: 100%; max-width: 620px; }
}
@media (max-width: 767px) {
  .svc__grid { gap: 56px; }
  .svc__lead { font-size: 16px; }
  .svc__list { margin-top: 28px; }
  .svc__list li { font-size: 15px; gap: 12px; }
  .svc__art { top: -34px; width: 80px; }
  .svc__art--right { right: 16px; }
  .svc__art--left { left: 16px; }
  .svc__art--sm { width: 76px; }
  .svc__art--xs { width: 72px; }
  .svc__art--xxs { width: 66px; }
  .stage { border-radius: 22px; }
}

/* 5. Vignettes ----------------------------------------------------------------------- */

/* Shared screen parts (theme-following: dark glass in dark, white in light). */
.screen {
  overflow: hidden;
  border-radius: 18px;
  background: var(--svc-screen-bg);
  border: 1px solid var(--svc-screen-border);
  box-shadow: var(--svc-screen-shadow);
}
.screen__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--svc-screen-line);
}
.screen__title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.screen__kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
  white-space: nowrap;
}
.screen__row {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 62px;
  padding: 0 18px;
}
.screen__row + .screen__row { border-top: 1px solid var(--svc-screen-line); }
.screen__row--tall { height: 64px; padding: 0 20px; }
.screen__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
}
.screen__who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.screen__name { font-size: 14px; font-weight: 500; color: var(--text-1); }
.screen__name--lg { font-size: 15px; font-weight: 600; }
.screen__meta { font-size: 12px; color: var(--text-4); }
.screen__person .screen__meta { font-size: 12.5px; }
.screen__person {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
}
.screen__person > :last-child { margin-left: auto; }
.screen__person--rule { border-bottom: 1px solid var(--svc-screen-line); }
.screen__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--svc-avatar-ink);
  font-size: 12.5px;
  font-weight: 600;
}
.screen__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 20px;
  border-top: 1px solid var(--svc-screen-line);
  background: var(--svc-screen-foot);
  font-size: 12.5px;
  color: var(--text-4);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-left: auto;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tag--ok { background: var(--success-bg); color: var(--success); }
.tag--warn { background: var(--svc-warn-bg); color: var(--svc-warn); }

.step-dot {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan-fill);
}
.step-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--svc-step-ink);
}

/* 01 Biologics: benefit investigations, then the prior authorization. */
.stage--bio {
  --gx: 60%;
  --gy: 38%;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 48px 40px;
}
.screen--bi { width: min(410px, 100%); }
.screen--pa {
  align-self: flex-end;
  width: min(328px, 88%);
  padding: 18px;
}
.screen--pa__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--svc-screen-line);
}
.screen--pa__head > span:first-child { display: flex; flex-direction: column; gap: 5px; }
.screen--pa__head .screen__meta { font-size: 12.5px; }
.screen--pa__drug { font-size: 15px; font-weight: 600; color: var(--text-1); }
.steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  padding-bottom: 14px;
  font-size: 13.5px;
  color: var(--text-1);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10.5px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--svc-step-line);
}
.steps > li > span:not(.step-dot) { padding-top: 2px; }
.steps .screen__meta { font-size: 13.5px; }
.steps__done > span:nth-child(2) { font-weight: 600; }

/* 02 Billing: one claim on a stack of claims, checked, filed and paid. */
.stage--billing {
  --gx: 40%;
  --gy: 40%;
  min-height: 524px;
  padding: 96px 50px 50px;
}
.claim { position: relative; }
.claim > .screen { position: relative; }
.claim__ghost {
  position: absolute;
  top: -16px;
  left: 18px;
  right: 18px;
  height: 60px;
  border-radius: 18px;
  background: var(--svc-ghost-2);
  border: 1px solid var(--line);
}
.claim__ghost--back { top: -32px; left: 36px; right: 36px; background: var(--svc-ghost-1); }
.claim__amount { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-1); }
.claim__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-top: 1px solid var(--svc-screen-line);
  font-size: 13.5px;
  color: var(--text-soft);
}
.claim__row--head {
  height: 32px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}
.claim__code { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-2); }
.claim__money { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-1); text-align: right; }
.claim__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-3);
}
.claim__total .claim__money { font-size: 14px; font-weight: 600; }
.claim__track {
  display: flex;
  align-items: center;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--svc-screen-line);
  background: var(--svc-screen-foot);
}
.claim__step { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.claim__step .step-dot { width: 24px; height: 24px; }
.claim__step .step-dot::after { inset: 5px; }
.claim__step b { display: block; font-size: 13px; font-weight: 600; color: var(--text-1); }
.claim__step small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--text-4); }
.claim__line {
  flex: 1;
  height: 1px;
  margin: 0 12px;
  background: linear-gradient(90deg, var(--cyan-fill), var(--svc-step-line));
}

/* 03 Dispensing: a visit's prescriptions, filled in clinic. */
.stage--dispensing {
  min-height: 420px;
  padding: 76px 60px;
}
.filled {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
}
.filled__dot {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--svc-cyan-tint);
}
.filled__dot::after { content: ""; position: absolute; inset: 3px; background: currentColor; }

/* 04 Audits: the printed audit sheet (an island: the same paper in both themes). */
.stage--audit {
  --gx: 50%;
  --gy: 50%;
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: 50px 40px 40px;
}
.stage .audit {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(430px, 100%);
  padding: 28px 28px 22px;
  border-radius: 12px;
  box-shadow: var(--svc-paper-shadow);
  transform: rotate(-2.5deg);
}
.audit__top { display: flex; align-items: center; justify-content: space-between; }
.audit__top img { width: auto; height: 13px; }
.audit__kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--island-muted);
}
.audit__practice { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.audit__name { font-family: var(--font-product); font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; color: var(--island-ink); }
.audit__when { font-size: 12.5px; color: var(--island-text); }
.audit__table { display: flex; flex-direction: column; font-size: 13px; color: var(--island-ink); }
.audit__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 42px;
  border-bottom: 1px solid var(--island-line);
}
.audit__row:last-child { border-bottom-color: var(--island-line-strong); }
.audit__row--head { height: 30px; border-bottom-color: var(--island-line-strong); font-size: 11px; color: var(--island-muted); }
.audit__status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.audit__status--done { background: #E4F3EA; color: #23694A; }
.audit__status--review { background: #FBF0DC; color: #8A5A12; }
.audit__status--next { background: #F0EAF8; color: var(--island-accent); }
.audit__foot { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--island-muted); }

/* 05 Practice management: a provider's credentialing. */
.stage--practice {
  min-height: 450px;
  padding: 70px 60px;
}
.meters { display: flex; flex-direction: column; gap: 20px; padding: 24px 20px 26px; }
.meter { display: flex; flex-direction: column; gap: 9px; }
.meter__label { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-soft); }
.meter__state { font-weight: 600; color: var(--accent-2); }
.meter__state--ok { color: var(--success); }
.meter__bar { display: block; height: 7px; border-radius: 999px; background: var(--fill-3); }
.meter__bar > span {
  display: block;
  width: 86%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6B429C, #B99AF0);
}
.meter__bar--full > span { width: 100%; }
.meter__bar--most > span { width: 72%; }
.meter__bar--cyan > span { background: linear-gradient(90deg, #6B429C, #8FE9F2); }
.tracking { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); }
.tracking__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-fill);
  box-shadow: 0 0 10px var(--svc-cyan-glow);
}

/* 06 Software: six modules stacked into one system, Nadia on top.
   Drawn on a 400 x 420 plan; --u is one plan unit. */
.stage--software {
  --gx: 34%;
  --gy: 30%;
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 20px 24px;
}
.stage__cyan {
  position: absolute !important;
  right: -140px;
  bottom: -180px;
  width: 560px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--svc-cyan-soft), transparent 70%);
}
.layers {
  --u: calc(100cqw / 400);
  position: relative;
  width: min(456px, 100%);
  aspect-ratio: 400 / 420;
  container-type: inline-size;
}
.layers__plate {
  --a: 0.1;
  --b: 0.26;
  --i: 0;
  position: absolute;
  left: calc(var(--u) * 56);
  top: calc(var(--u) * (52 + 38 * var(--i)));
  width: calc(var(--u) * 152);
  height: calc(var(--u) * 152);
  border-radius: calc(var(--u) * 20);
  background: rgb(139 92 246 / calc(var(--a) * var(--svc-plate-bg-k)));
  border: 1px solid rgb(var(--svc-plate-line) / calc(var(--b) * var(--svc-plate-line-k)));
  transform: rotateX(60deg) rotateZ(45deg);
}
.layers__plate:nth-child(1) { --i: 5; --a: 0.1; --b: 0.26; }
.layers__plate:nth-child(2) { --i: 4; --a: 0.135; --b: 0.33; }
.layers__plate:nth-child(3) { --i: 3; --a: 0.17; --b: 0.4; }
.layers__plate:nth-child(4) { --i: 2; --a: 0.205; --b: 0.47; }
.layers__plate:nth-child(5) { --i: 1; --a: 0.24; --b: 0.54; }
.layers__plate--top {
  background: linear-gradient(135deg, rgba(186, 150, 245, 0.95), rgba(107, 66, 156, 0.95));
  border-color: var(--svc-plate-top-border);
  box-shadow: 0 0 36px var(--svc-plate-top-glow), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.layers__label {
  --i: 0;
  position: absolute;
  left: calc(var(--u) * 244);
  top: calc(var(--u) * (118 + 38 * var(--i)));
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
  font-size: 13.5px;
  line-height: 20px;
  color: var(--text-label);
  white-space: nowrap;
}
.layers__label::before {
  content: "";
  width: calc(var(--u) * 22);
  height: 1px;
  background: var(--svc-tick);
}
.layers__label:nth-child(7) { --i: 5; }
.layers__label:nth-child(8) { --i: 4; }
.layers__label:nth-child(9) { --i: 3; }
.layers__label:nth-child(10) { --i: 2; }
.layers__label:nth-child(11) { --i: 1; }
.layers__label--top { font-weight: 600; color: var(--text-1); }
.layers__label--top::before { background: var(--svc-tick-strong); }
.layers__beam {
  position: absolute;
  left: calc(var(--u) * 131);
  top: calc(var(--u) * 70);
  width: 2px;
  height: calc(var(--u) * 50);
  background: var(--svc-beam);
}
.layers__orb {
  position: absolute;
  left: calc(var(--u) * 113);
  top: calc(var(--u) * 32);
  width: calc(var(--u) * 38);
  height: calc(var(--u) * 38);
  border-radius: 50%;
  background: var(--orb);
  box-shadow: var(--svc-orb-shadow);
}
.layers__nadia {
  position: absolute;
  left: calc(var(--u) * 162);
  top: calc(var(--u) * 40);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: calc(var(--u) * 22);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--svc-nadia);
}

/* Narrower stages: same pictures, tighter frames. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .stage--bio { padding: 44px 28px; }
  .stage--billing { padding: 90px 30px 44px; }
  .stage--dispensing,
  .stage--practice { padding: 70px 34px; }
}
@media (max-width: 767px) {
  .stage--bio { min-height: 0; padding: 52px 14px 18px; gap: 14px; }
  .screen--pa { width: min(328px, 92%); }
  .stage--billing { min-height: 0; padding: 70px 14px 22px; }
  .claim__ghost { left: 12px; right: 12px; }
  .claim__ghost--back { left: 24px; right: 24px; }
  .claim__row { grid-template-columns: 72px minmax(0, 1fr) auto; column-gap: 8px; padding: 0 16px; font-size: 13px; }
  .screen__person { padding: 16px; gap: 11px; }
  .claim__total { padding: 0 16px; }
  .claim__track { padding: 14px 14px 16px; }
  .claim__step { gap: 7px; }
  .claim__line { margin: 0 8px; }
  .stage--dispensing { min-height: 0; padding: 60px 14px 22px; }
  .screen__row--tall { padding: 0 14px; gap: 11px; }
  .stage--audit { min-height: 0; padding: 64px 22px 40px; }
  .stage .audit { padding: 22px 20px 18px; gap: 16px; }
  .stage--practice { min-height: 0; padding: 60px 14px 22px; }
  .meters { padding: 20px 16px 22px; }
  .screen__foot { padding: 0 16px; }
  .stage--software { min-height: 0; padding: 22px 8px 0; }
  .stage__cyan { right: -200px; bottom: -220px; }
}
@media (max-width: 479px) {
  .filled__text { display: none; }
  .filled__dot { width: 24px; height: 24px; }
  .filled__dot::after { inset: 5px; }
  .claim__step b { font-size: 12.5px; }
  .claim__step small { font-size: 11px; }
  .claim__row { font-size: 12.5px; }
  .claim__row .claim__money,
  .claim__row .claim__code { font-size: 12px; }
  .layers__label { font-size: 12px; }
  .layers__label::before { width: calc(var(--u) * 14); }
  .layers__nadia { font-size: 10px; }
  .stage--practice .screen__kicker { display: none; }
}

/* 6. Quote bands, membership, close -------------------------------------------------------- */

.svc-quote {
  position: relative;
  z-index: 2;
  padding-top: var(--section-top);
}
/* The one change of key: the first member quote on the dark panel. */
.svc-quote.panel-ink {
  margin-top: var(--section-top);
  padding: clamp(64px, 40px + 4.4vw, 104px) 0;
}
.svc-quote .person > span:last-child { display: block; }

.svc-member__card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--svc-member-border);
  background:
    radial-gradient(ellipse 70% 100% at 0% 0%, var(--svc-member-glow), transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 100%, var(--svc-member-cyan), transparent 70%),
    var(--svc-member-bg);
}
.svc-member__card > .fx-grain { opacity: calc(var(--grain-opacity) * 0.7); }
.svc-member__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: clamp(32px, 20px + 2.6vw, 60px);
}
.svc-member__lead { max-width: 470px; font-size: 16.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.svc-member__text .btn { margin-top: 6px; }
.svc-member__art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.svc-member__art > * { position: absolute; }
.svc-member__halo {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--svc-halo), transparent 70%);
}
.svc-member__back {
  width: 302px;
  height: 190px;
  border-radius: 20px;
  background: var(--svc-back-card);
  border: 1px solid var(--svc-back-border);
  box-shadow: var(--svc-back-shadow);
  transform: translate(34px, -45px) rotate(10deg);
}
.member-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 314px;
  height: 197px;
  padding: 22px 22px 20px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #2A1745 0%, #5B3190 38%, #9B72E6 68%, #8FE3EE 100%);
  box-shadow: var(--svc-card-shadow);
  transform: rotate(-7deg);
  transition: transform 0.5s var(--ease-out);
}
.svc-member__art:hover .member-card { transform: rotate(-5deg) translateY(-4px); }
.member-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.32) 44%, rgba(255, 255, 255, 0) 58%);
}
.member-card > :not(.member-card__shine) { position: relative; }
.member-card__top { display: flex; align-items: center; justify-content: space-between; }
.member-card__top img { width: auto; height: 13px; }
.member-card__top span,
.member-card__tier {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.member-card__chip {
  width: 40px;
  height: 29px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.member-card__bottom { display: flex; flex-direction: column; gap: 3px; }
.member-card__name { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: #FFFFFF; }
.member-card__tier { letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.78); }

@media (min-width: 1024px) {
  .svc-member__card { grid-template-columns: minmax(0, 1fr) 460px; }
  .svc-member__text { padding-right: 0; }
}
@media (max-width: 1023px) {
  .svc-member__art { min-height: 300px; margin-top: -24px; }
}
@media (max-width: 767px) {
  .svc-member__art { min-height: 250px; margin-top: -28px; }
  .svc-member__halo { width: 300px; height: 300px; }
  .svc-member__back { width: 252px; height: 158px; transform: translate(26px, -36px) rotate(10deg); }
  .member-card { width: 262px; height: 165px; padding: 18px 18px 16px; border-radius: 17px; }
  .member-card__name { font-size: 15.5px; }
  .member-card__top img { height: 11px; }
  .member-card__top span,
  .member-card__tier { font-size: 9.5px; }
  .member-card__chip { width: 34px; height: 25px; }
}
