/* =========================================================
   MEBC Billing LLC — "Midnight Mint"
   Poster hero, heavy type, high contrast, chunky panels.
   One stylesheet, no build step, no external requests.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* This site is light-only by design. color-scheme keeps form controls,
     scrollbars, and other UA widgets light even on a dark-mode device. */
  color-scheme: light;

  /* Brand */
  --mint-900: #04120d;
  --mint-800: #03301f;
  --mint-700: #03593f;
  --mint-600: #04795a;
  --mint-500: #06a578;
  --mint-400: #0bbd88;
  --mint-300: #2ff0ab;
  --mint-200: #7fc9a8;
  --mint-100: #d3efe1;
  --mint-050: #e4f4ec;
  --turq-900: #031a1d;
  --turq-800: #044a50;
  --turq-700: #065e66;
  --turq-600: #08767f;
  --turq-500: #0e9aa7;
  --turq-400: #14b8c4;
  --turq-300: #40e0d0;
  --turq-200: #8fe3e3;
  --turq-100: #d2f4f4;
  --turq-050: #e9f9f9;
  --clay-500: #b8451f;
  --clay-100: #fbe2d8;

  /* Semantic — light */
  --bg: #f3faf6;
  --bg-alt: var(--mint-050);
  --surface: #ffffff;
  --surface-2: var(--mint-100);
  --text: #06231a;
  --text-muted: #3f6357;
  --border: #bde3d0;
  --border-strong: var(--mint-200);
  --accent: var(--mint-600);
  --accent-hover: var(--mint-700);
  --accent-contrast: #ffffff;
  /* Turquoise is the second brand colour: green for actions (buttons, links),
     turquoise for labels, numbers, icons, and markers. --turq-600 and darker
     pass 4.5:1 on white; --turq-300/400 are for dark panels only. */
  --accent-2: var(--turq-600);
  --accent-2-hover: var(--turq-700);
  --accent-2-soft: var(--turq-100);
  --accent-2-bright: var(--turq-300);
  --accent-2-line: var(--turq-400);
  --accent-2-ink: var(--turq-900);
  --grad-brand: linear-gradient(135deg, var(--mint-600), var(--turq-600));
  --grad-brand-hover: linear-gradient(135deg, var(--mint-700), var(--turq-700));
  --grad-tint: linear-gradient(135deg, var(--mint-050), var(--turq-050));
  --grad-tint-strong: linear-gradient(135deg, var(--mint-100), var(--turq-100));
  --highlight: var(--clay-500);
  --highlight-soft: var(--clay-100);
  --shadow: 0 2px 0 rgba(6, 35, 26, .10);
  --shadow-lg: 0 4px 0 rgba(6, 35, 26, .12), 0 20px 40px rgba(6, 35, 26, .12);

  /* Type */
  --font-head: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Space */
  --wrap: 1280px;
  --wrap-narrow: 820px;
  --radius: 18px;
  --radius-lg: 28px;
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* Shape & weight */
  --pill: 999px;
  --border-w: 2px;
  --head-weight: 800;
  --head-spacing: -0.035em;
  --head-transform: none;
  --art-filter: saturate(1.18) contrast(1.04);

  /* Closing call-to-action band */
  --cta-from: var(--mint-700);
  --cta-to: var(--mint-500);
  --cta-btn-text: var(--mint-700);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sticky nav is ~92px; keep hash targets visible below it */
  scroll-padding-top: 6.75rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  line-height: 1.18;
  letter-spacing: var(--head-spacing);
  text-transform: var(--head-transform);
  margin: 0 0 .5em;
  color: var(--text);
}

h1 { font-size: clamp(2.35rem, 5.4vw, 3.8rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.05; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

img, svg { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: .75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section:has(.cta-band) {
  padding-block: clamp(1.25rem, 3.5vw, 2.25rem);
}
.section-alt { background: var(--grad-tint); }
.center { text-align: center; }
.lede {
  font-size: clamp(1.1rem, 1.55vw, 1.33rem);
  line-height: 1.58;
  color: var(--text-muted);
  max-width: 62ch;
}
.center .lede { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 .9rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* On a page with the poster hero, the nav floats over the artwork */
body:has(.hero) .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  transition: background .2s ease, border-color .2s ease;
}
/* With JS, the floating header stays pinned and picks up the standard
   header background once the page scrolls (see main.js). */
body:has(.hero) .site-header.is-floating { position: fixed; }
body:has(.hero) .site-header.is-floating.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 92px;
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; letter-spacing: -.015em; }
.brand-tag { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }

/* The links and the CTA sit together in one pill, so the nav stays anchored
   when it floats over the hero photograph. */
@media (min-width: 861px) {
  .nav-links {
    gap: .25rem;
    padding: .4rem .45rem;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    border-radius: var(--pill);
    box-shadow: var(--shadow);
  }
}
.nav-links a {
  display: block;
  padding: .62rem 1rem;
  border-radius: var(--pill);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.04rem;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--accent-2-soft); color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; background: var(--grad-tint-strong); }

/* The CTA in the nav is a button first, a nav link second. */
.nav-links a.btn-primary,
.nav-links a.btn-primary[aria-current="page"] {
  background: var(--grad-brand);
  color: var(--accent-contrast);
  font-weight: 600;
}
.nav-links a.btn-primary:hover { background: var(--grad-brand-hover); color: var(--accent-contrast); }
@media (min-width: 861px) {
  .nav-links a.btn-primary { padding: .68rem 1.35rem; font-size: 1.02rem; }
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: var(--border-w) solid var(--border-strong);
  border-radius: 11px;
  padding: .65rem .8rem;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 25px; height: 25px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    inset: 92px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: .8rem 1.25rem 1.4rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: .75rem .9rem; border-radius: 10px; }
  .nav-links .btn { text-align: center; margin-top: .4rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--grad-brand); color: var(--accent-contrast); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--grad-brand-hover); color: var(--accent-contrast); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--accent-2-soft); border-color: var(--accent-2); color: var(--text); }

.btn-lg { padding: .95rem 1.9rem; font-size: 1.03rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }

/* Consultation CTA confetti burst (see main.js) */
.btn-confetti { position: relative; overflow: visible; }

.btn-confetti-particle {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--size, 7px);
  height: var(--size, 7px);
  margin: calc(var(--size, 7px) / -2) 0 0 calc(var(--size, 7px) / -2);
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  will-change: transform, opacity;
  animation: btn-confetti-burst var(--dur, 720ms) cubic-bezier(.22, .61, .36, 1) forwards;
}

.btn-confetti-particle--circle { border-radius: 50%; }
.btn-confetti-particle--square { border-radius: 2px; }

.btn-confetti-particle--triangle {
  width: 0;
  height: 0;
  margin: 0;
  background: transparent !important;
  border-left: calc(var(--size, 7px) / 2) solid transparent;
  border-right: calc(var(--size, 7px) / 2) solid transparent;
  border-bottom: var(--size, 7px) solid var(--color, var(--mint-400));
}

@keyframes btn-confetti-burst {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--tx), var(--ty), 0) rotate(var(--rot)) scale(.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-confetti-particle { display: none !important; }
}

/* ---------- Hero ---------- */
/* Poster hero — the photograph runs full-bleed behind the headline, with a
   gradient scrim keeping the type readable over it. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(86vh, 44rem);
  padding-block: clamp(7rem, 14vw, 10rem) clamp(3rem, 6vw, 4.5rem);
  background: var(--grad-tint-strong);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
/* grid columns default to a min-content floor; this keeps wide children from
   stretching the hero past the viewport */
.hero-grid > * { min-width: 0; }
.hero h1 {
  margin-bottom: .55rem;
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  max-width: 16ch;
}
.hero .lede { margin-bottom: 1.7rem; max-width: 44ch; }

/* The photo starts where the text column ends, so neither person is ever
   under the headline or under the scrim. */
.hero-art {
  position: absolute;
  inset: 0 0 0 47%;
  z-index: -2;
  margin: 0;
  /* a short fade on the photo's own left edge — enough to avoid a hard seam,
     narrow enough that it never reaches the therapist */
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%);
}
.hero-art img,
.hero-art picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 90% 40%; /* the pair sit in the right half of the photo; keeps the therapist clear of the fade */
}
/* Scrim — holds the text column at full contrast and softens the top edge
   where the nav floats over the photo. Kept at 90deg so the fade stays
   vertical and can't reveal a diagonal edge. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      var(--bg) 50%,
      color-mix(in srgb, var(--bg) 45%, transparent) 57%,
      transparent 63%
    ),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 22%);
}

/* The illustrations are fixed-colour SVGs; this nudges them into key */
.photo-card img, .step-art img { filter: var(--art-filter); }

/* Below desktop widths there isn't room to lay type beside a photograph, so
   the hero stops being a poster: the image becomes a banner above the
   headline. The poster treatment applies from 1500px up. */
@media (max-width: 1499px) {
  .hero {
    min-height: 0;
    background: var(--bg);
    padding-block: 6.5rem 2.5rem;
  }
  .hero::after { display: none; }
  .hero-art {
    position: relative;
    inset: auto;
    order: -1;
    margin-bottom: 1.9rem;
    border-radius: var(--radius);
    overflow: hidden;
    mask-image: none;
  }
  /* white fade up from the bottom — clear of the faces */
  .hero-art::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      to top,
      #fff 0%,
      rgba(255, 255, 255, 0.55) 35%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  .hero-art img,
  .hero-art picture {
    height: clamp(180px, 46vw, 260px);
    object-position: 60% 20%; /* the therapist's face sits high in the frame */
  }
}

/* Metric strip — the numbers that are actually true, on hairline rules */
.metrics {
  display: grid;
  /* minmax(0, 1fr) — never let the track minimum push the column wider than the screen */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
  margin: 2rem 0 0;
  padding: 1.15rem 0;
  border-top: var(--border-w) solid var(--turq-200);
  border-bottom: var(--border-w) solid var(--turq-200);
  list-style: none;
  max-width: 34rem; /* keeps the strip inside the text column, clear of the photo */
}
.metrics .num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: var(--head-weight);
  line-height: 1.05;
  letter-spacing: var(--head-spacing);
  color: var(--accent);
}
.metrics li:nth-child(even) .num { color: var(--accent-2); }
.metrics .label {
  display: block;
  margin-top: .3rem;
  font-size: .82rem;
  line-height: 1.35;
  color: var(--text-muted);
}
@media (min-width: 560px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-top: 1.8rem;
  padding: 0;
  list-style: none;
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--pill);
  padding: .4rem .95rem;
  font-size: .87rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}
.trust-strip li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2-line);
  flex: none;
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.35rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Service offerings keep the featured first card; problem points do not use cards */
@media (min-width: 900px) {
  .service-cards { grid-template-columns: 1.5fr 1fr 1fr; }
  .service-cards > *:first-child {
    background: var(--grad-tint-strong);
    padding: 2.1rem;
  }
  .service-cards > *:first-child h3 { font-size: 1.6rem; }
}

.card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-muted); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-2-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--accent-2);
}
.card-icon svg { width: 24px; height: 24px; }

/* Problem points — dark strip, big type, easy to scan */
.pain-list {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 10% 0%, color-mix(in srgb, var(--mint-500) 35%, transparent), transparent 55%),
    radial-gradient(100% 100% at 100% 100%, color-mix(in srgb, var(--turq-400) 45%, transparent), transparent 65%),
    linear-gradient(145deg, var(--mint-800), var(--turq-800) 55%, var(--turq-700));
  box-shadow: var(--shadow-lg);
  color: #fff;
}
@media (min-width: 820px) {
  .pain-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pain-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.6rem 1.5rem 1.75rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: background .25s ease;
}
.pain-item:last-child { border-bottom: 0; }
@media (min-width: 820px) {
  .pain-item {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 2.1rem 1.75rem 2.2rem;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, .12);
  }
  .pain-item:last-child { border-right: 0; }
}
.pain-item:hover {
  background: color-mix(in srgb, #fff 7%, transparent);
}
.pain-num {
  display: block;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: var(--head-weight);
  letter-spacing: -.04em;
  line-height: .9;
  color: var(--accent-2-bright);
}
.pain-copy h3 {
  margin: 0 0 .45rem;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.2;
}
.pain-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  max-width: 28ch;
  font-size: 1rem;
  line-height: 1.5;
}

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card .price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
  margin: .3rem 0 .15rem;
}
.price-card .price small {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.price-card ul { margin: 1.15rem 0 1.6rem; }
.price-card .btn { margin-top: auto; }
.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .price-card.featured { transform: scale(1.03); } }

.badge {
  display: inline-block;
  background: var(--highlight-soft);
  color: var(--highlight);
  border-radius: var(--pill);
  padding: .22rem .7rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Checklists */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.85rem; color: var(--text-muted); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 1.1rem;
  height: .6rem;
  border-left: 2.5px solid var(--turq-500);
  border-bottom: 2.5px solid var(--turq-500);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.center .check-list {
  text-align: left;
  max-width: 42ch;
  margin-inline: auto;
}

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.step {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem 1.5rem 4.6rem;
  box-shadow: var(--shadow);
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 1.5rem;
  top: 1.45rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-2-bright);
  color: var(--accent-2-ink);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--text-muted); margin-bottom: 0; }

/* Flow variant — four steps across, numbers threaded on one line */
@media (min-width: 880px) {
  .steps-flow {
    position: relative;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    text-align: center;
  }
  /* the connecting line, drawn behind the numbers */
  .steps-flow::before {
    content: "";
    position: absolute;
    top: 3.6rem;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--mint-400), var(--turq-300));
    z-index: 0;
  }
  /* borderless, so the connecting line reads as one continuous thread */
  .steps-flow > .step {
    position: relative;
    z-index: 1;
    padding: 5.1rem 1.3rem 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .steps-flow > .step::before {
    top: 2.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    box-shadow: 0 0 0 5px var(--bg-alt);
  }
  .steps-flow > .step p { text-wrap: pretty; }
}

/* Compact variant for sidebars */
.steps-mini { gap: .7rem; }
.step-mini { padding: .95rem 1.1rem .95rem 3.8rem; box-shadow: none; }
.step-mini::before { left: 1.1rem; top: 1rem; width: 1.9rem; height: 1.9rem; font-size: .98rem; }
.step-mini h3 { font-size: 1.02rem; margin-bottom: .1rem; }
.step-mini p { font-size: .9rem; }

/* Credentialing step blocks with artwork */
.step-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  margin-bottom: 1.4rem;
}
.step-block:nth-child(even) .step-art { order: -1; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.35rem;
  border-radius: 50%;
  background: var(--accent-2-soft);
  color: var(--accent-2);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .85rem;
}
.step-art img {
  border-radius: var(--radius);
  border: var(--border-w) solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
@media (max-width: 800px) {
  .step-block { grid-template-columns: 1fr; }
  .step-block:nth-child(even) .step-art { order: 0; }
}

/* ---------- Photo cards (illustrations) ---------- */
.photo-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-card img { width: 100%; }
.photo-card figcaption {
  padding: 1rem 1.25rem 1.25rem;
  font-size: .95rem;
  color: var(--text-muted);
}
.photo-card figcaption strong { display: block; color: var(--text); font-weight: 600; margin-bottom: .15rem; }

/* ---------- Split / about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.pull-quote {
  border-left: 3px solid var(--accent-2);
  padding: .25rem 0 .25rem 1.4rem;
  margin: 1.75rem 0;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
  color: var(--text);
}

/* ---------- Payer / software chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.chips li {
  background: var(--surface);
  border: var(--border-w) solid var(--border-strong);
  border-radius: 10px;
  padding: .55rem 1rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
}

/* Continuous horizontal logo bar */
.logo-marquee-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.logo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-block: .35rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* Second (reverse) row only exists for the mobile two-row layout. */
.logo-marquee-reverse {
  display: none;
}
.logo-marquee-reverse .logo-marquee-track {
  animation-direction: reverse;
  /* Start mid-cycle so row 2 shows different logos than row 1 at t=0
     (reverse direction otherwise begins at -100% = same clone boundary). */
  animation-delay: calc(var(--marquee-duration) * -0.5);
}
@media (max-width: 640px) {
  .logo-marquee-stack {
    gap: .6rem;
  }
  .logo-marquee-reverse {
    display: block;
  }
}
.logo-marquee-track {
  --marquee-duration: 55s;
  display: flex;
  width: max-content;
  will-change: transform;
  animation: logo-marquee-scroll var(--marquee-duration) linear infinite;
}
.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}
.logo-marquee-set {
  display: flex;
  flex: none;
  align-items: center;
  gap: .94rem;
  margin: 0;
  padding: 0;
  padding-inline-end: .94rem;
  list-style: none;
}
.logo-marquee-set li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 7.81rem;
  padding: 1.38rem 2.19rem;
  background: #fff;
  border: var(--border-w) solid var(--turq-200);
  border-radius: 20px;
}
.logo-marquee-set img {
  display: block;
  height: 4.81rem;
  width: auto;
  max-width: 18.75rem;
  object-fit: contain;
}
@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--marquee-set-width, 50%))); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
  .logo-marquee { overflow-x: auto; }
}

/* Static billing-system logo row (three-up circular cards, matches .venn-circle-card) */
.systems-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}
.systems-logos li {
  flex: 0 0 auto;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 4px solid var(--accent-2-line);
  box-shadow: var(--shadow-lg);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.systems-logos li:hover {
  transform: scale(1.05);
  border-color: var(--turq-500);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
.systems-logos img {
  display: block;
  height: 3.75rem;
  width: 100%;
  max-width: 9rem;
  object-fit: contain;
}
.systems-logo-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  color: var(--text-muted);
}
@media (max-width: 800px) {
  .systems-logos {
    flex-direction: column;
    gap: 1.5rem;
  }
  .systems-logos li {
    width: 14rem;
    height: 14rem;
  }
}
@media (max-width: 640px) {
  .systems-logos img { height: 3.25rem; max-width: 8rem; }
  .systems-logo-name { font-size: 1.05rem; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.1rem; }
.stat {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat .num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--accent);
}
.stat:nth-child(even) .num { color: var(--accent-2); }
.stat .label { font-size: .9rem; color: var(--text-muted); margin-top: .45rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
@media (min-width: 820px) { .faq { grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem; } }
.faq details {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--accent-2);
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { margin-bottom: .7rem; }
.faq p { color: var(--text-muted); }

/* Homepage only — circular FAQ bubbles in a ring */
.faq-bubbles {
  --faq-r: clamp(8.75rem, 32vw, 13.25rem);
  position: relative;
  display: block;
  width: min(42rem, 94vw);
  aspect-ratio: 1;
  max-width: 42rem;
  margin-inline: auto;
  grid-template-columns: none;
  overflow: visible;
}
.faq-bubbles .faq-slot {
  --a: -90deg;
  position: absolute;
  left: calc(50% + (var(--faq-r) * cos(var(--a))));
  top: calc(50% + (var(--faq-r) * sin(var(--a))));
  width: 13.5rem;
  height: 13.5rem;
  margin: 0;
  transform: translate(-50%, -50%);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.faq-bubbles details {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13.5rem;
  height: 13.5rem;
  padding: 1.25rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition:
    width .32s cubic-bezier(.22, 1, .36, 1),
    height .32s cubic-bezier(.22, 1, .36, 1),
    padding .32s cubic-bezier(.22, 1, .36, 1),
    box-shadow .25s ease;
  z-index: 1;
}
.faq-bubbles .faq-slot:nth-child(odd) details { border-color: var(--turq-200); }
.faq-bubbles .faq-slot:has(details.is-open) { z-index: 5; }
.faq-bubbles details.is-open {
  width: min(25.5rem, 78vw);
  height: min(25.5rem, 78vw);
  padding: 2.35rem 2.25rem 2rem;
  z-index: 5;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--mint-800) 14%, transparent);
}
/* Keep answer in the layout while animating; UA hide would snap */
.faq-bubbles details:not([open]) > .faq-a { display: none; }
.faq-bubbles summary {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  justify-content: center;
  gap: 0;
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: -.01em;
  text-wrap: balance;
  color: var(--text);
  opacity: 1;
  transition:
    opacity .55s ease,
    font-size .28s ease,
    margin .28s ease,
    height .28s ease;
}
.faq-bubbles summary::after { display: none; }
.faq-bubbles details.is-open summary {
  height: auto;
  flex: none;
  margin-bottom: .85rem;
  font-size: 1.2rem;
  line-height: 1.25;
}
.faq-bubbles .faq-a {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  text-align: center;
  opacity: 0;
  transform: translateY(.25rem);
  transition: opacity .65s ease .05s, transform .45s ease .05s;
}
.faq-bubbles details.is-open:not(.is-animating) .faq-a {
  opacity: 1;
  transform: translateY(0);
}
/* Quick fade-out into the blank beat; fade-in uses the slower transitions above */
.faq-bubbles details.is-animating summary,
.faq-bubbles details.is-animating .faq-a {
  opacity: 0 !important;
  transition: opacity .06s ease;
}
.faq-bubbles .faq-a p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}
@media (max-width: 520px) {
  .faq-bubbles {
    --faq-r: clamp(7.25rem, 32vw, 10.25rem);
    width: min(28rem, 96vw);
  }
  .faq-bubbles .faq-slot,
  .faq-bubbles details {
    width: 11.25rem;
    height: 11.25rem;
  }
  .faq-bubbles details { padding: .95rem; }
  .faq-bubbles details.is-open {
    width: min(21.5rem, 86vw);
    height: min(21.5rem, 86vw);
  }
  .faq-bubbles summary { font-size: .88rem; }
  .faq-bubbles details.is-open summary { font-size: 1.05rem; }
  .faq-bubbles .faq-a p { font-size: .98rem; }
}

/* ---------- CTA band (radial glow card) ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #03160f, var(--turq-900) 55%, #042a30);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--turq-300) 42%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5.5vw, 3.6rem) clamp(1.4rem, 4vw, 2.5rem);
  text-align: center;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--turq-500) 12%, transparent),
    0 24px 50px rgba(2, 20, 14, .35);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 42%,
    color-mix(in srgb, var(--turq-400) 58%, transparent) 0%,
    color-mix(in srgb, var(--mint-500) 30%, transparent) 30%,
    transparent 60%
  );
  animation: cta-glow-pulse 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-glow-pulse {
  0%, 100% { opacity: .72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band::before { animation: none; opacity: .9; }
}
.cta-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2-bright);
}
.cta-band h2 {
  color: #fff;
  margin-bottom: .7rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
}
.cta-band p {
  color: rgba(255, 255, 255, .88);
  max-width: 48ch;
  margin-inline: auto;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
}
.cta-band .btn-row {
  justify-content: center;
  align-items: center;
  gap: .85rem;
  margin-top: 1.6rem;
}
.cta-band .btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.cta-band .btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}
.cta-band .btn-primary {
  background: linear-gradient(135deg, var(--mint-400), var(--turq-300));
  color: var(--mint-900);
  border-color: transparent;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--turq-300) 40%, transparent),
    0 0 24px color-mix(in srgb, var(--turq-400) 55%, transparent),
    0 8px 20px rgba(2, 20, 14, .35);
}
.cta-band .btn-primary:hover {
  background: linear-gradient(135deg, var(--mint-300), var(--turq-200));
  color: var(--mint-900);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--turq-300) 55%, transparent),
    0 0 32px color-mix(in srgb, var(--turq-300) 65%, transparent),
    0 10px 24px rgba(2, 20, 14, .4);
}
.cta-band .btn-ghost {
  color: #fff;
  background: transparent;
  border-color: color-mix(in srgb, #fff 55%, transparent);
}
.cta-band .btn-ghost:hover {
  background: color-mix(in srgb, #fff 10%, transparent);
  color: #fff;
  border-color: color-mix(in srgb, #fff 75%, transparent);
}
.btn-or {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-inline: .15rem;
}
.cta-band .btn-or { color: rgba(255, 255, 255, .7); }
@media (max-width: 640px) {
  .cta-band .btn-row {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
  }
  .cta-band .btn-or {
    padding-inline: 0;
  }
}

/* ---------- Notice ---------- */
.notice {
  display: flex;
  gap: .9rem;
  background: var(--highlight-soft);
  border: 1px solid color-mix(in srgb, var(--highlight) 35%, transparent);
  border-radius: var(--radius);
  padding: 1.05rem 1.25rem;
  font-size: .95rem;
  color: var(--text);
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--highlight); margin-top: .1rem; }
.notice p { margin: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.field .hint { display: block; font-weight: 400; font-size: .85rem; color: var(--text-muted); margin-top: .1rem; }
.field .req { color: var(--highlight); }
.field-error {
  margin: .35rem 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--highlight);
  line-height: 1.35;
  min-height: calc(.85rem * 1.35);
}
.field-error:empty { visibility: hidden; }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 18%, transparent);
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: .75rem .9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: var(--border-w) solid var(--border-strong);
  border-radius: 10px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
::placeholder { color: color-mix(in srgb, var(--text-muted) 70%, transparent); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}
.field-row .field { margin-bottom: 0; }
.field-row:has(.hint) .field > label {
  /* Equal label band when one column has a hint line */
  min-height: 3.1rem;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .field-row:has(.hint) .field > label { min-height: 0; }
}

fieldset { border: 0; margin: 0 0 1.15rem; padding: 0; }
legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .55rem; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .5rem; }
.option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .85rem;
  border: var(--border-w) solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  font-size: .95rem;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.option:hover { border-color: var(--accent); }
.option input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; flex: none; margin: 0; }
.option:has(input:checked) { border-color: var(--accent-2); background: var(--grad-tint-strong); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; font-weight: 600; }
.form-status[data-state="error"] { color: var(--highlight); }
.form-status[data-state="ok"] { color: var(--accent); }

/* ---------- Contact rail ---------- */
/* Sticky sidebar on contact page — both cards stick together below the nav */
@media (min-width: 861px) {
  .contact-sidebar {
    position: sticky;
    top: 6.75rem; /* matches scroll-padding-top / sticky header height */
    align-self: start;
  }
}

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent-2); flex: none; margin-top: .2rem; }
.contact-list .k { font-weight: 600; display: block; }
.contact-list .v { color: var(--text-muted); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--grad-tint);
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
  margin-top: var(--section-y);
  font-size: .93rem;
}
main:has(.cta-band) + .site-footer {
  margin-top: clamp(1rem, 3vw, 1.75rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.site-footer .brand-name { font-size: 1.9rem; }
.site-footer .brand img { width: 52px; height: 52px; }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-2); text-decoration: underline; }
.site-footer p { color: var(--text-muted); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: .87rem;
}

/* ---------- Page header ---------- */
.page-head {
  padding-block: clamp(2.75rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, transparent, var(--bg)),
    linear-gradient(90deg, var(--mint-050), var(--turq-100));
  border-bottom: 1px solid var(--border);
}
.page-head h1 { margin-bottom: .35rem; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
th { font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2.25rem; }
.muted { color: var(--text-muted); }
.small { font-size: .9rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Interlocking 3-Circle Venn Service Cards ---------- */
.venn-service-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}

.venn-circle-card {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--accent-2-line);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.2rem 2rem;
  margin-left: -50px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, z-index 0s;
  position: relative;
  z-index: 1;
}

.venn-circle-card:first-child {
  margin-left: 0;
}

.venn-circle-card.featured {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 12%, var(--surface)),
    color-mix(in srgb, var(--accent-2) 14%, var(--surface))
  );
  border-color: var(--accent);
}

.venn-circle-card:hover {
  z-index: 10;
  transform: scale(1.06);
  border-color: var(--turq-500);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
.venn-circle-card.featured:hover { border-color: var(--accent); }

.venn-circle-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-2) 18%, transparent);
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  color: var(--accent-2);
}
.venn-circle-card.featured .card-icon {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.venn-circle-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.venn-circle-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 26ch;
  margin-bottom: 0.6rem;
}

.venn-circle-card a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.venn-circle-card a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

/* Responsive adjustment for tablet/mobile */
@media (max-width: 960px) {
  .venn-service-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
  .venn-circle-card {
    margin-left: 0 !important;
    width: min(100%, 340px);
    height: 340px;
  }
}

/* ---------- Scroll reveal ----------
   Hidden state requires html.reveal-init (set by JS). Without JS, content
   stays visible. Above-fold items animate in on load after a short paint delay. */
.reveal {
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.reveal-init .reveal:not(.is-visible) {
  opacity: 0;
  translate: 0 1.15rem;
}
.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-init .reveal:not(.is-visible),
  .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
}
