/* /billing (Medico Billing): the page-only parts. Shared pieces (nav, display,
   section heads, stats, glass cards, video frame, footer) come from site.css.
   Sections: hero (orb, headline, the claim run live), the four promises, the life
   of a claim, built for biologics, ask Nadia, the film and the demo (#access).
   The Nadia note and the film's play button are product islands: the same colors
   in both themes. */

/* Page tokens -------------------------------------------------------------- */

:root,
[data-theme="light"] {
  --bill-well-bg: rgba(255, 255, 255, 0.62);
  --bill-well-border: rgba(21, 14, 32, 0.075);
  --bill-chip-bg: rgba(21, 14, 32, 0.048);
  --bill-tint-bg: linear-gradient(180deg, rgba(185, 154, 240, 0.09), rgba(139, 92, 246, 0.01)), #FCFAFF;
  --bill-tint-border: rgba(107, 66, 156, 0.18);
  --bill-cyan-bg: linear-gradient(180deg, rgba(31, 143, 156, 0.06), rgba(139, 92, 246, 0.01)), #FBFDFE;
  --bill-cyan-border: rgba(31, 143, 156, 0.25);
  --bill-warn: #A04A2E;
  --bill-warn-dot: #E08A6E;
  --bill-ok: #6B429C;
  --bill-ok-dot: #9B7BDF;
  --bill-ring-a: rgba(107, 66, 156, 0.21);
  --bill-ring-a-glow: rgba(185, 154, 240, 0.1);
  --bill-ring-b: rgba(31, 143, 156, 0.315);
  --bill-star-a: #FFFFFF;
  --bill-star-a-glow: #B99AF0;
  --bill-star-b: #26A3B2;
  --bill-star-b-glow: rgba(31, 143, 156, 0.35);
  --bill-tag-new-bg: rgba(205, 181, 244, 0.2);
  --bill-tag-new: #2A2138;
  --bill-beam-a: rgba(31, 143, 156, 0.035);
  --bill-beam-b: rgba(31, 143, 156, 0.05);
  --bill-beam-c: rgba(205, 181, 244, 0.16);
  --bill-note-shadow: 0 30px 60px -24px rgba(46, 24, 84, 0.38), 0 0 0 1px rgba(21, 14, 32, 0.06);
  --bill-note-glow: rgba(139, 92, 246, 0.18);
  --bill-track: linear-gradient(90deg, rgba(139, 92, 246, 0.06), rgba(185, 154, 240, 0.42), rgba(139, 92, 246, 0.06));
  --bill-knob-ring: 0 0 0 1px rgba(107, 66, 156, 0.25), 0 0 12px rgba(185, 154, 240, 0.8);
  --bill-bar: rgba(21, 14, 32, 0.07);
  --bill-bar-lilac: rgba(185, 154, 240, 0.3);
  --bill-bar-lilac-2: rgba(185, 154, 240, 0.4);
  --bill-bar-glow: 0 0 24px rgba(31, 143, 156, 0.2);
  --bill-section-glow: rgba(107, 66, 156, 0.14);
  --bill-ask-glow: rgba(126, 72, 214, 0.18);
  --bill-chat-ring: linear-gradient(160deg, rgba(205, 181, 244, 0.45), rgba(139, 92, 246, 0.04) 45%, rgba(31, 143, 156, 0.22));
  --bill-chat-bg: rgba(255, 255, 255, 0.92);
  --bill-chat-shadow: 0 40px 100px -30px rgba(46, 24, 84, 0.2);
  --bill-bubble-bg: rgba(21, 14, 32, 0.045);
  --bill-bubble-border: rgba(21, 14, 32, 0.09);
  --bill-orb-glow: 0 0 16px rgba(31, 143, 156, 0.2);
  --bill-access-glow: rgba(126, 72, 214, 0.24);
  --bill-access-glow-mid: rgba(126, 72, 214, 0.05);
  --bill-film-ring: linear-gradient(135deg, rgba(205, 181, 244, 0.5), rgba(139, 92, 246, 0.04) 38%, rgba(139, 92, 246, 0.04) 62%, rgba(31, 143, 156, 0.3));
  --bill-film-bezel: #FFFFFF;
  --bill-film-shadow: 0 50px 140px -40px rgba(139, 92, 246, 0.32), 0 1px 2px rgba(21, 14, 32, 0.05);
  --bill-demo-ring: linear-gradient(90deg, rgba(205, 181, 244, 0.6), rgba(139, 92, 246, 0.08), rgba(31, 143, 156, 0.35));
  --bill-demo-bg: #FFFFFF;
  --bill-demo-shadow: 0 18px 40px -22px rgba(46, 24, 84, 0.3);
  --bill-run-bg: rgba(255, 255, 255, 0.78);
  --bill-run-ring: linear-gradient(160deg, rgba(185, 154, 240, 0.8), rgba(139, 92, 246, 0.1) 38%, rgba(139, 92, 246, 0.08) 68%, rgba(31, 143, 156, 0.34));
  --bill-run-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(76, 40, 130, 0.05), 0 24px 48px -22px rgba(76, 40, 130, 0.24), 0 70px 120px -40px rgba(126, 72, 214, 0.34);
  --bill-run-glow: rgba(139, 92, 246, 0.24);
  --bill-run-glow-2: rgba(31, 143, 156, 0.1);
  --bill-run-chip-bg: rgba(255, 255, 255, 0.88);
  --bill-run-chip-shadow: 0 1px 2px rgba(76, 40, 130, 0.06), 0 18px 36px -14px rgba(107, 66, 156, 0.4);
  --bill-run-nadia-bg: linear-gradient(90deg, rgba(185, 154, 240, 0.17), rgba(185, 154, 240, 0.04));
  --bill-run-nadia-border: rgba(107, 66, 156, 0.13);
  --bill-run-pulse: rgba(139, 92, 246, 0.42);
  --bill-run-spine-end: rgba(185, 154, 240, 0.35);
}

[data-theme="dark"] {
  --bill-well-bg: rgba(0, 0, 0, 0.3);
  --bill-well-border: rgba(255, 255, 255, 0.07);
  --bill-chip-bg: rgba(255, 255, 255, 0.06);
  --bill-tint-bg: linear-gradient(180deg, rgba(185, 154, 240, 0.12), rgba(255, 255, 255, 0.015));
  --bill-tint-border: rgba(205, 181, 244, 0.2);
  --bill-cyan-bg: linear-gradient(180deg, rgba(143, 233, 242, 0.1), rgba(255, 255, 255, 0.015));
  --bill-cyan-border: rgba(143, 233, 242, 0.2);
  --bill-warn: #F5C08A;
  --bill-warn-dot: #F5A45C;
  --bill-ok: #86E3B4;
  --bill-ok-dot: #86E3B4;
  --bill-ring-a: rgba(205, 181, 244, 0.35);
  --bill-ring-a-glow: rgba(185, 154, 240, 0.25);
  --bill-ring-b: rgba(143, 233, 242, 0.35);
  --bill-star-a: #FFFFFF;
  --bill-star-a-glow: #CDB5F4;
  --bill-star-b: #8FE9F2;
  --bill-star-b-glow: #8FE9F2;
  --bill-tag-new-bg: rgba(205, 181, 244, 0.16);
  --bill-tag-new: #E9DEFB;
  --bill-beam-a: rgba(143, 233, 242, 0.24);
  --bill-beam-b: rgba(214, 246, 250, 0.5);
  --bill-beam-c: rgba(205, 181, 244, 0.32);
  --bill-note-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.2);
  --bill-note-glow: rgba(139, 92, 246, 0.45);
  --bill-track: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(185, 154, 240, 0.4), rgba(255, 255, 255, 0.08));
  --bill-knob-ring: 0 0 12px #B99AF0;
  --bill-bar: rgba(255, 255, 255, 0.1);
  --bill-bar-lilac: rgba(185, 154, 240, 0.35);
  --bill-bar-lilac-2: rgba(185, 154, 240, 0.45);
  --bill-bar-glow: 0 0 24px rgba(143, 233, 242, 0.5);
  --bill-section-glow: rgba(107, 66, 156, 0.35);
  --bill-ask-glow: rgba(126, 72, 214, 0.45);
  --bill-chat-ring: linear-gradient(160deg, rgba(205, 181, 244, 0.55), rgba(255, 255, 255, 0.06) 45%, rgba(143, 233, 242, 0.35));
  --bill-chat-bg: rgba(16, 10, 24, 0.88);
  --bill-chat-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  --bill-bubble-bg: rgba(255, 255, 255, 0.06);
  --bill-bubble-border: rgba(255, 255, 255, 0.1);
  --bill-orb-glow: 0 0 16px rgba(143, 227, 238, 0.5);
  --bill-access-glow: rgba(126, 72, 214, 0.6);
  --bill-access-glow-mid: rgba(126, 72, 214, 0.12);
  --bill-film-ring: linear-gradient(135deg, rgba(205, 181, 244, 0.7), rgba(255, 255, 255, 0.06) 38%, rgba(255, 255, 255, 0.06) 62%, rgba(143, 233, 242, 0.6));
  --bill-film-bezel: #0E0916;
  --bill-film-shadow: 0 50px 140px -40px rgba(139, 92, 246, 0.7);
  --bill-demo-ring: linear-gradient(90deg, rgba(205, 181, 244, 0.6), rgba(255, 255, 255, 0.1), rgba(143, 233, 242, 0.5));
  --bill-demo-bg: #0F0A17;
  --bill-demo-shadow: none;
  --bill-run-bg: rgba(24, 16, 37, 0.62);
  --bill-run-ring: linear-gradient(160deg, rgba(205, 181, 244, 0.62), rgba(255, 255, 255, 0.07) 38%, rgba(255, 255, 255, 0.05) 68%, rgba(143, 233, 242, 0.42));
  --bill-run-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 90px -24px rgba(139, 92, 246, 0.42);
  --bill-run-glow: rgba(139, 92, 246, 0.42);
  --bill-run-glow-2: rgba(143, 233, 242, 0.1);
  --bill-run-chip-bg: rgba(32, 22, 48, 0.8);
  --bill-run-chip-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 40px -14px rgba(0, 0, 0, 0.8), 0 0 36px -12px rgba(139, 92, 246, 0.55);
  --bill-run-nadia-bg: linear-gradient(90deg, rgba(185, 154, 240, 0.15), rgba(185, 154, 240, 0.03));
  --bill-run-nadia-border: rgba(205, 181, 244, 0.16);
  --bill-run-pulse: rgba(185, 154, 240, 0.55);
  --bill-run-spine-end: rgba(185, 154, 240, 0.3);
}

/* Hero ---------------------------------------------------------------------- */

/* The hero runs up under the (transparent) sticky nav, so the glow and beams
   pass behind it as on the board. */
.bill-hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + clamp(36px, 20px + 3.5vw, 70px)) 0 clamp(16px, 8px + 1.2vw, 28px);
}
.bill-hero__glow {
  position: absolute;
  left: 50%;
  top: 60px;
  z-index: 0;
  width: 1600px;
  height: 1200px;
  margin-left: -800px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), var(--glow-mid) 55%, transparent 75%);
  pointer-events: none;
}
.bill-hero__beam {
  position: absolute;
  top: -300px;
  z-index: 0;
  height: 1700px;
  mix-blend-mode: var(--beam-blend);
  pointer-events: none;
}
.bill-hero__beam--a {
  left: calc(50% - 600px);
  width: 130px;
  transform: rotate(-30deg);
  background: linear-gradient(180deg, transparent, var(--bill-beam-a) 50%, transparent);
  filter: blur(32px);
  animation: mx-breathe 8s ease-in-out infinite;
}
.bill-hero__beam--b {
  left: calc(50% - 430px);
  width: 14px;
  transform: rotate(-30deg);
  background: linear-gradient(180deg, transparent, var(--bill-beam-b) 50%, transparent);
  filter: blur(3px);
}
.bill-hero__beam--c {
  left: calc(50% + 460px);
  width: 150px;
  transform: rotate(30deg);
  background: linear-gradient(180deg, transparent, var(--bill-beam-c) 50%, transparent);
  filter: blur(34px);
  animation: mx-breathe 7s ease-in-out -3s infinite;
}
[data-theme="dark"] .bill-hero__beam { mix-blend-mode: screen; }
.bill-hero > .fx-grain {
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.bill-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

/* The orb with its two orbits. */
.bill-orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  height: 150px;
}
.bill-orb__ring { position: absolute; border-radius: 50%; }
.bill-orb__ring--a { width: 360px; height: 96px; border: 1px solid var(--bill-ring-a); transform: rotate(-12deg); box-shadow: 0 0 24px var(--bill-ring-a-glow); }
.bill-orb__ring--b { width: 280px; height: 64px; border: 1px solid var(--bill-ring-b); transform: rotate(16deg); }
.bill-orb__star { position: absolute; border-radius: 50%; }
.bill-orb__star--a { left: 30px; top: 84px; width: 8px; height: 8px; background: var(--bill-star-a); box-shadow: 0 0 14px var(--bill-star-a-glow); }
[data-theme="light"] .bill-orb__star--a { background: #B99AF0; box-shadow: 0 0 10px rgba(185, 154, 240, 0.7); }
.bill-orb__star--b { right: 54px; top: 40px; width: 6px; height: 6px; background: var(--bill-star-b); box-shadow: 0 0 12px var(--bill-star-b-glow); }
.bill-orb__ball {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFFFFF 0%, #D8FAFC 10%, #93E6EF 28%, #A583EA 56%, #5B3190 82%, #2A1745 100%);
  box-shadow: 0 0 70px rgba(143, 227, 238, 0.45), 0 0 160px rgba(139, 92, 246, 0.55), inset -12px -16px 34px rgba(20, 8, 40, 0.55);
  animation: mx-glow 6s ease-in-out infinite;
}
[data-theme="light"] .bill-orb__ball { box-shadow: 0 0 60px rgba(143, 227, 238, 0.35), 0 0 120px rgba(139, 92, 246, 0.3), inset -12px -16px 34px rgba(20, 8, 40, 0.5); }

@media (max-width: 767px) {
  .bill-orb { margin: -14px 0 -10px; transform: scale(0.8); }
}

/* "NEW | Medico Billing, with Nadia" */
.bill-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  background: var(--fill-2);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
}
.bill-tag__new {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bill-tag-new-bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bill-tag-new);
}

.bill-hero__title {
  --display-size: clamp(50px, 9.17vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.058em;
  text-wrap: wrap;
}
.bill-hero__title .accent { font-size: 1.106em; letter-spacing: -0.02em; }
.bill-hero__lead { max-width: 660px; font-size: clamp(16.5px, 15px + 0.3vw, 19px); }
.bill-hero__actions { margin-top: 6px; }
@media (min-width: 768px) {
  .bill-hero__actions .btn--lg { --btn-h: 56px; --btn-fs: 16px; }
  .bill-hero__actions .btn--primary { --btn-px: 28px; }
}

/* "Watch the film" with its round play icon and the running time. */
.bill-watch.btn--glass { gap: 12px; padding: 0 22px 0 8px; font-weight: 500; }
.bill-watch__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fill-3);
}
.bill-watch__icon .icon { width: 13px; height: 13px; }
.bill-watch__time { font-family: var(--font-mono); font-size: 12.5px; font-weight: 400; color: var(--text-4); }

/* The claim, run live ------------------------------------------------------------ */

/* Lily Chen's claim as one glass card on the hero's glow: her name, the amount and a
   status that flips as the claim's working resolves step by step down a thin spine
   (js/billing.js). Three facts from the claim break out past the card's edges; below
   1160 they tuck under it. Without the script, under reduced motion and under
   ?shots=1 the card shows its final state: every step done, Paid. While it plays
   only opacity and transforms change, so nothing moves the layout. */
.bill-run {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(40px, 22px + 2.6vw, 64px);
  margin-bottom: clamp(36px, 20px + 3vw, 72px);
}
.bill-run__glow {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 0;
  width: min(1100px, 150%);
  height: 640px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 32% 58%, var(--bill-run-glow-2), transparent 70%),
    radial-gradient(closest-side, var(--bill-run-glow), transparent 72%);
  pointer-events: none;
}

.bill-run__card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 22px 26px 14px;
  border-radius: 26px;
  background: var(--bill-run-bg);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: var(--bill-run-shadow);
  text-align: left;
}
/* The ring: a gradient hairline, lilac at the top left, cyan at the bottom right. */
.bill-run__card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--bill-run-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Head: who, the payer, the status and the amount. */
.bill-run__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.bill-run__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px var(--feature-border);
  font-family: var(--font-product);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.bill-run__who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bill-run__name { font-family: var(--font-product); font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--text-1); }
.bill-run__payer { font-size: 13.5px; line-height: 1.3; color: var(--text-3); }
.bill-run__sum { display: flex; align-items: center; gap: 14px; }
.bill-run__amount {
  font-family: var(--font-product);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
  white-space: nowrap;
}

/* The status pill: Checking, then Filed, then Paid, each rolling up into the same cell. */
.bill-run__status {
  display: grid;
  height: 28px;
  overflow: hidden;
  border-radius: 999px;
}
.bill-run__state {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s var(--ease-out), transform 0.5s var(--ease-out);
}
.bill-run__state i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.bill-run__state--checking { background: var(--fill-3); color: var(--text-2); }
.bill-run__state--checking i { background: transparent; border: 1.5px solid currentColor; border-top-color: transparent; animation: mx-spin 0.9s linear infinite; }
.bill-run__state--filed { background: var(--accent-tint); color: var(--accent); }
.bill-run__state--paid { background: var(--success-bg); color: var(--success); opacity: 1; transform: none; }
.js .bill-run:not([data-run="done"]) .bill-run__state--paid { opacity: 0; transform: translateY(100%); }
.js .bill-run:not([data-run="done"]) .bill-run__state--checking { opacity: 1; transform: none; }
.js .bill-run[data-status="filed"]:not([data-run="done"]) .bill-run__state--checking { opacity: 0; transform: translateY(-100%); }
.js .bill-run[data-status="filed"]:not([data-run="done"]) .bill-run__state--filed { opacity: 1; transform: none; }
.bill-run[data-run="done"] .bill-run__state--checking,
.bill-run[data-run="done"] .bill-run__state--filed { transform: translateY(-100%); }

/* The working: one row per step, a mark on the spine, the step, its fact, its date. */
.bill-run__steps { margin: 0; padding: 0; list-style: none; }
.bill-run__step {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: start;
  margin: 0 -12px;
  padding: 11px 12px;
  border-radius: 14px;
  transition: background-color 0.4s;
}
/* The spine between two marks, and its lilac fill once the step above is done. */
.bill-run__step:not(:last-child)::before,
.bill-run__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22.5px;
  top: 37px;
  bottom: -8px;
  width: 1px;
  background: var(--line);
}
.bill-run__step:not(:last-child)::after {
  background: linear-gradient(180deg, var(--accent-fill), var(--bill-run-spine-end));
  transform-origin: top;
  transition: transform 0.45s var(--ease-out);
}
.bill-run__mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.bill-run__mark svg { width: 13px; height: 13px; transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.bill-run__mark .orb { width: 22px; height: 22px; transition: opacity 0.3s, filter 0.3s, transform 0.4s var(--ease-out); }
.bill-run__text { font-size: 14.5px; line-height: 24px; color: var(--text-3); text-wrap: pretty; }
.bill-run__text strong { margin-right: 4px; font-weight: 600; color: var(--text-1); transition: color 0.3s; }
.bill-run__text > span { transition: opacity 0.35s; }
.bill-run__time {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
  color: var(--text-4);
  white-space: nowrap;
  transition: opacity 0.35s;
}

/* Nadia's step: lit lilac, with her orb on the spine. */
.bill-run__step--nadia {
  margin-block: 4px;
  background: var(--bill-run-nadia-bg);
  box-shadow: inset 0 0 0 1px var(--bill-run-nadia-border);
}
.bill-run__step--nadia::before,
.bill-run__step--nadia::after { bottom: -12px; }
.bill-run__step--nadia .bill-run__mark { background: none; }
.bill-run__step--nadia b { font-weight: 600; color: var(--accent); }

/* Paid in full: the purple mark with its halo, and a lilac wash on the row. */
.bill-run__step--paid { background: linear-gradient(90deg, var(--accent-tint), transparent 75%); }
.bill-run__step--paid .bill-run__mark {
  background: var(--btn-primary-bg);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px var(--accent-tint), 0 6px 16px -4px var(--bill-run-pulse);
}
.bill-run__step--paid .bill-run__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--bill-run-pulse);
  opacity: 0;
}
.bill-run__step--paid.is-landed .bill-run__mark::after { animation: bill-run-pulse 1.3s var(--ease-out) 2; }
.bill-run__step--paid.is-landed { animation: bill-run-wash 1.6s var(--ease-out); }
@keyframes bill-run-pulse {
  0% { opacity: 1; box-shadow: 0 0 0 0 var(--bill-run-pulse); }
  100% { opacity: 0; box-shadow: 0 0 0 18px transparent; }
}
@keyframes bill-run-wash {
  0% { background-color: transparent; }
  25% { background-color: var(--accent-tint); }
  100% { background-color: transparent; }
}

/* Before and while it plays (the script marks each step working, then done). */
.js .bill-run:not([data-run="done"]) .bill-run__step:not([data-state="done"])::after { transform: scaleY(0); }
.js .bill-run:not([data-run="done"]) .bill-run__step:not([data-state]) .bill-run__mark { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.js .bill-run:not([data-run="done"]) .bill-run__step:not([data-state="done"]) .bill-run__mark svg { opacity: 0; transform: scale(0.4); }
.js .bill-run:not([data-run="done"]) .bill-run__step:not([data-state]) .bill-run__mark .orb { opacity: 0.35; filter: grayscale(1); transform: scale(0.7); }
.js .bill-run:not([data-run="done"]) .bill-run__step:not([data-state]) strong { color: var(--text-4); }
.js .bill-run:not([data-run="done"]) .bill-run__step:not([data-state]) .bill-run__text > span,
.js .bill-run:not([data-run="done"]) .bill-run__step:not([data-state="done"]) .bill-run__time { opacity: 0; }
.js .bill-run:not([data-run="done"]) .bill-run__step[data-state="working"] .bill-run__text > span { opacity: 0.45; }
.js .bill-run:not([data-run="done"]) .bill-run__step--nadia:not([data-state]),
.js .bill-run:not([data-run="done"]) .bill-run__step--paid:not([data-state]) { background: transparent; box-shadow: none; }
.js .bill-run:not([data-run="done"]) .bill-run__step--paid:not([data-state="done"]) .bill-run__mark { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
/* Working: a lilac arc turns around the mark. */
.bill-run__step[data-state="working"] .bill-run__mark { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent-tint); }
.bill-run__step[data-state="working"] .bill-run__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  animation: mx-spin 0.7s linear infinite;
}
.bill-run__step--nadia[data-state="working"] .bill-run__mark .orb { opacity: 1; filter: none; transform: scale(0.82); animation: mx-glow 1.2s ease-in-out infinite; }
.bill-run__step--paid[data-state="working"] .bill-run__mark { box-shadow: inset 0 0 0 1.5px var(--accent-tint); }

/* The facts that break out of the card. */
.bill-run__chips { margin: 0; padding: 0; list-style: none; }
.bill-run__chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 9px 9px;
  border-radius: 16px;
  background: var(--bill-run-chip-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--border);
  box-shadow: var(--bill-run-chip-shadow);
  text-align: left;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  animation: bill-run-bob 7s ease-in-out infinite;
}
.bill-run__chip--visit { animation-delay: -2.4s; }
.bill-run__chip--drug { animation-delay: -4.6s; }
@keyframes bill-run-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.bill-run__chip-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
}
.bill-run__chip-icon svg { width: 18px; height: 18px; }
.bill-run__code {
  display: flex;
  flex: none;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  border-radius: 11px;
  background: var(--fill-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-1);
}
.bill-run__code b { font-weight: 600; color: var(--accent); transition: opacity 0.4s; }
.bill-run__chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bill-run__chip-text strong { font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--text-1); white-space: nowrap; }
.bill-run__chip-text span { font-size: 12.5px; line-height: 1.3; color: var(--text-3); white-space: nowrap; }
.bill-run__chip--visit .bill-run__chip-text span,
.bill-run__chip--drug .bill-run__chip-text span { font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.js .bill-run:not([data-run="done"]) .bill-run__chip:not(.is-on) { opacity: 0; transform: translateY(10px) scale(0.96); }
.js .bill-run:not([data-run="done"]) .bill-run__chip--visit:not(.is-fixed) b { opacity: 0; }
.bill-run__chip--visit.is-fixed b { animation: bill-run-pop 0.9s var(--ease-out); }
@keyframes bill-run-pop {
  0% { opacity: 0; }
  35% { opacity: 1; text-shadow: 0 0 14px var(--bill-run-pulse); }
  100% { opacity: 1; text-shadow: none; }
}

/* Wide: the card is 720 and the facts sit across its edges. */
@media (min-width: 1160px) {
  .bill-run__chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  .bill-run__chip { position: absolute; }
  .bill-run__chip--auth { left: calc(50% + 340px); top: 104px; }
  .bill-run__chip--visit { right: calc(50% + 342px); top: 214px; }
  .bill-run__chip--drug { left: calc(50% + 290px); top: 400px; }
}
/* Narrower: the facts tuck in under the card. */
@media (max-width: 1159px) {
  .bill-run__chips {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: min(720px, 100%);
    margin-top: 16px;
  }
}
@media (max-width: 767px) {
  .bill-run { margin-top: 36px; }
  .bill-run__card { padding: 18px 16px 8px; border-radius: 22px; }
  .bill-run__head { grid-template-columns: auto minmax(0, 1fr); row-gap: 14px; padding-bottom: 16px; }
  .bill-run__avatar { width: 40px; height: 40px; font-size: 14px; }
  .bill-run__name { font-size: 18px; }
  .bill-run__payer { font-size: 13px; }
  .bill-run__sum { grid-column: 1 / -1; justify-content: space-between; flex-direction: row-reverse; }
  .bill-run__amount { font-size: 26px; }
  .bill-run__step { column-gap: 12px; margin: 0 -8px; padding: 10px 8px; }
  .bill-run__step:not(:last-child)::before,
  .bill-run__step:not(:last-child)::after { left: 18.5px; top: 36px; }
  .bill-run__text { font-size: 14px; line-height: 22px; }
  .bill-run__text strong { display: block; margin-right: 0; }
  .bill-run__text > span { display: block; }
  .bill-run__time { font-size: 11.5px; line-height: 22px; }
  .bill-run__chips { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; }
  .bill-run__chip { animation: none; }
}

/* The four promises ----------------------------------------------------------- */

/* One promise per cell, each value on one line: one column on phones, two on
   tablets, four from 1024 (the "Weeks ahead" cell is the widest). Values align
   to the cell tops. */
.bill-stats { grid-template-columns: minmax(0, 1fr); }
.bill-stats .stat { justify-content: flex-start; padding: 24px 20px; border-right: 0; border-bottom: 1px solid var(--hair); }
.bill-stats .stat:last-child { border-bottom: 0; }
/* One column on phones: out-rank the shared 2x2 rule that drops the last two stats' dividers. */
@media (max-width: 767px) {
  .stats.bill-stats > .stat:not(:last-child):not(.stat--lead) { border-bottom: 1px solid var(--hair); }
}
.bill-stats .stat__value { font-size: clamp(40px, 30px + 1.8vw, 56px); white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1023px) {
  .bill-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bill-stats .stat { padding: 30px 28px; }
  .bill-stats .stat:nth-child(2n + 1) { border-right: 1px solid var(--hair); }
  .bill-stats .stat:nth-child(2n) { border-right: 0; }
  .bill-stats .stat:nth-child(n + 3) { border-bottom: 0; }
}
@media (min-width: 1024px) {
  .bill-stats { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 0.75fr) minmax(0, 1fr); }
  .bill-stats .stat { padding: 34px 22px; border-bottom: 0; border-right: 1px solid var(--hair); }
  .bill-stats .stat:last-child { border-right: 0; }
  .bill-stats .stat__value { font-size: clamp(44px, 18px + 2.6vw, 56px); }
}
@media (min-width: 1200px) {
  .bill-stats .stat { padding: 34px 28px; }
}

/* The life of a claim ----------------------------------------------------------- */

.bill-steps { display: grid; gap: 14px; }
.bill-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  border-radius: var(--radius-tile);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
}
.bill-step--tint { background: var(--bill-tint-bg); border-color: var(--bill-tint-border); }
.bill-step--cyan { background: var(--bill-cyan-bg); border-color: var(--bill-cyan-border); }
.bill-step__num { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); }
.bill-step--tint .bill-step__num { color: var(--accent); }
.bill-step--cyan .bill-step__num { color: var(--cyan); }
.bill-step__well {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  height: 110px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bill-well-bg);
  border: 1px solid var(--bill-well-border);
}
.bill-step__well--center { align-items: center; }
.bill-step--tint .bill-step__well,
.bill-step--cyan .bill-step__well { gap: 9px; padding-inline: 16px; }
.bill-step__well--mono { gap: 7px !important; font-family: var(--font-mono); font-size: 11.5px; }
.bill-step__text { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.bill-step h3 { font-size: 21px; font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; color: var(--text-1); }
.bill-step p { font-size: 14px; line-height: 1.6; color: var(--text-3); text-wrap: pretty; }
.bill-step--tint p,
.bill-step--cyan p { color: var(--text-2); }

.bill-file {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--bill-chip-bg);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
}
.bill-grouped { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-1); }
.bill-grouped svg { width: 14px; height: 14px; color: var(--accent); }
.bill-flag,
.bill-track { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.35; }
.bill-flag i,
.bill-track i { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.bill-flag--warn { color: var(--bill-warn); }
.bill-flag--warn i { background: var(--bill-warn-dot); }
.bill-flag--note { color: var(--accent-2); }
.bill-flag--note i { background: var(--accent-fill); }
.bill-track { color: var(--text-3); }
.bill-track i { border: 1.5px solid var(--accent); opacity: 0.8; }
.bill-track.is-done { color: var(--text-soft); }
.bill-track.is-done i { border: 0; background: var(--bill-ok-dot); opacity: 1; }
.bill-file-btn {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--btn-primary-bg);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--btn-primary-shadow);
}
.bill-sum { display: flex; justify-content: space-between; gap: 8px; color: var(--text-3); }
.bill-sum.is-strong { color: var(--text-soft); }

@media (min-width: 600px) and (max-width: 767px) {
  /* Rows: the words left, the little screen right. */
  .bill-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    grid-template-rows: auto 1fr;
    column-gap: 28px;
    row-gap: 10px;
    padding: 24px;
  }
  .bill-step__num { grid-column: 1; grid-row: 1; }
  .bill-step__text { grid-column: 1; grid-row: 2; margin-top: 0; gap: 8px; }
  .bill-step__well { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 599px) {
  .bill-step { padding: 20px 18px; gap: 10px; }
  .bill-step__well { height: auto; min-height: 96px; }
  .bill-step h3 { font-size: 20px; }
  .bill-step__text { gap: 6px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  /* Three steps, then two. */
  .bill-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bill-step { grid-column: span 2; }
  .bill-step:nth-child(n + 4) { grid-column: span 3; }
}
@media (min-width: 1200px) {
  .bill-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Built for biologics --------------------------------------------------------- */

.bill-hard > .container { position: relative; z-index: 1; }
.bill-hard__glow {
  position: absolute;
  right: -300px;
  top: 200px;
  z-index: 0;
  width: 1000px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--bill-section-glow), transparent 70%);
  pointer-events: none;
}

.bill-bento { display: grid; gap: 16px; }
.bill-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 340px;
  padding: clamp(26px, 20px + 1vw, 34px);
}
.bill-card--tint { background: var(--bill-tint-bg); border-color: var(--bill-tint-border); }
.bill-card--cyan { background: var(--bill-cyan-bg); border-color: var(--bill-cyan-border); }
.bill-card__text { display: flex; flex-direction: column; gap: 14px; }
.bill-card h3 { font-size: clamp(23px, 20px + 0.45vw, 26px); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; color: var(--text-1); }
.bill-card p { font-size: 14.5px; line-height: 1.6; color: var(--text-3); text-wrap: pretty; }
.bill-card--tint p,
.bill-card--cyan p { color: var(--text-2); }
.bill-card--doses h3 { font-size: clamp(23px, 20px + 0.55vw, 28px); }
.bill-card > :last-child:not(.bill-card__text) { margin-top: auto; }
@media (max-width: 767px) {
  .bill-card { min-height: 0; gap: 28px; }
}

/* A small drawn screen inside a card. */
.bill-well {
  border-radius: 14px;
  background: var(--bill-well-bg);
  border: 1px solid var(--bill-well-border);
}

/* Every fix says why: the words, and Nadia's note tilted on a glow. */
.bill-card--why { overflow: hidden; padding: 0; gap: 0; }
.bill-card--why .bill-card__text { padding: clamp(26px, 18px + 1.4vw, 38px); }
.bill-card--why h3 { font-size: clamp(25px, 21px + 0.65vw, 30px); }
.bill-card--why p { font-size: 15px; }
.bill-why {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px 40px;
}
.bill-why__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--bill-note-glow), transparent 70%);
}
.bill-note {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(330px, 100%);
  padding: 18px;
  border-radius: 18px;
  background: #FBFAFD;
  color: #1C1526;
  box-shadow: var(--bill-note-shadow);
  transform: rotate(-2deg);
}
.bill-note__head { display: flex; align-items: center; gap: 8px; }
.bill-note__orb {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #F2FDFE 0%, #A4E6EC 24%, #A08AE8 60%, #6B429C 100%);
}
.bill-note__head b { font-size: 13px; font-weight: 600; }
.bill-note__head span { margin-left: auto; font-size: 11.5px; color: var(--island-muted); }
.bill-note__title { font-size: 14px; font-weight: 600; }
.bill-card .bill-note p { font-size: 12.5px; line-height: 1.5; color: #6E6578; }
.bill-note__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #ECE5F3;
}
.bill-note__pa { padding: 3px 7px; border-radius: 6px; background: #F1ECF7; font-family: var(--font-mono); font-size: 11.5px; color: #4A2A7A; }
.bill-note__undo { display: flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid #E1D6EE; font-size: 12px; color: #4D4359; }

/* Doses: the dose, an arrow, the vials drawn. */
.bill-doses { display: flex; flex-direction: column; gap: 8px; }
.bill-doses__dose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bill-well-bg);
  border: 1px solid var(--bill-well-border);
  font-size: 13px;
  color: var(--text-1);
}
.bill-doses__dose span { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.bill-doses__arrow { width: 16px; height: 16px; align-self: center; color: var(--accent); }
.bill-doses__vials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bill-vial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(185, 154, 240, 0.12);
  border: 1px solid var(--bill-tint-border);
  font-size: 13px;
  color: var(--text-1);
}
.bill-vial span { font-family: var(--font-mono); font-size: 11px; color: var(--accent-2); }
.bill-vial--cyan { background: rgba(31, 143, 156, 0.07); border-color: var(--bill-cyan-border); }
.bill-vial--cyan span { color: var(--cyan); }
[data-theme="dark"] .bill-vial { background: rgba(185, 154, 240, 0.14); border-color: rgba(205, 181, 244, 0.25); }
[data-theme="dark"] .bill-vial--cyan { background: rgba(143, 233, 242, 0.1); border-color: rgba(143, 233, 242, 0.25); }

/* Prices: the code, the charge, and where it sits among peers. */
.bill-price { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.bill-price__line { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; color: var(--text-1); }
.bill-price__track { position: relative; height: 6px; border-radius: 999px; background: var(--bill-track); }
.bill-price__track i { position: absolute; left: 58%; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; box-shadow: var(--bill-knob-ring); }
.bill-price small { font-size: 12px; color: var(--text-3); }

/* Coverage: three rows of answers. */
.bill-cover { display: flex; flex-direction: column; padding: 6px 16px; }
.bill-cover span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
}
.bill-cover span:last-child { border-bottom: 0; }
.bill-cover b { font-weight: 600; }
.bill-cover .is-ok { color: var(--bill-ok); }
.bill-cover .is-warn { color: var(--bill-warn); }

/* Your practice sees everything: the bars. */
.bill-bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding: 0 4px; }
.bill-bars i { flex: 1; height: 38%; border-radius: 6px 6px 2px 2px; background: var(--bill-bar); }
.bill-bars i:nth-child(2) { height: 52%; }
.bill-bars i:nth-child(3) { height: 46%; }
.bill-bars i:nth-child(4) { height: 66%; background: var(--bill-bar-lilac); }
.bill-bars i:nth-child(5) { height: 58%; background: var(--bill-bar-lilac-2); }
.bill-bars i:nth-child(6) { height: 80%; background: linear-gradient(180deg, #8FE9F2, #B99AF0); }
.bill-bars i:nth-child(7) { height: 100%; background: linear-gradient(180deg, #8FE9F2, #B99AF0); box-shadow: var(--bill-bar-glow); }

@media (min-width: 768px) {
  .bill-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bill-card--why { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); min-height: 360px; }
  .bill-why { padding: 30px 30px 30px 0; }
}
@media (min-width: 1024px) {
  .bill-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bill-card--why { grid-column: span 2; height: 400px; }
  .bill-card--doses { height: 400px; }
  .bill-card { min-height: 360px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .bill-card--why { grid-template-columns: minmax(0, 1fr) 330px; }
  .bill-why { padding-right: 24px; }
  .bill-note { width: 300px; }
}

/* Ask Nadia ---------------------------------------------------------------- */

/* A dark panel (site.css .panel-ink) in both themes, so the chat takes its dark colors here too. */
.bill-ask {
  --bill-ask-glow: rgba(126, 72, 214, 0.45);
  --bill-chat-ring: linear-gradient(160deg, rgba(205, 181, 244, 0.55), rgba(255, 255, 255, 0.06) 45%, rgba(143, 233, 242, 0.35));
  --bill-chat-bg: rgba(16, 10, 24, 0.88);
  --bill-chat-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  --bill-bubble-bg: rgba(255, 255, 255, 0.06);
  --bill-bubble-border: rgba(255, 255, 255, 0.1);
  --bill-orb-glow: 0 0 16px rgba(143, 227, 238, 0.5);
  margin-top: var(--section-top);
  padding: clamp(64px, 40px + 5vw, 112px) 0;
}
.bill-ask__glow {
  position: absolute;
  left: calc(50% - 20px);
  top: 40px;
  z-index: 0;
  width: 900px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--bill-ask-glow), transparent 70%);
  pointer-events: none;
}
.bill-ask__grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.bill-ask__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.bill-ask__text .body-lg { max-width: 460px; }

.bill-chat {
  position: relative;
  padding: 1px;
  border-radius: var(--radius-card);
  background: var(--bill-chat-ring);
  box-shadow: var(--bill-chat-shadow);
}
.bill-chat__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(16px, 10px + 1.4vw, 26px);
  border-radius: calc(var(--radius-card) - 1px);
  background: var(--bill-chat-bg);
}
.bill-msg {
  padding: 14px 16px;
  border-radius: 4px 18px 18px 18px;
  background: var(--bill-bubble-bg);
  border: 1px solid var(--bill-bubble-border);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-soft);
}
div.bill-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bill-msg--me {
  align-self: flex-end;
  max-width: 380px;
  padding: 12px 16px;
  border: 0;
  border-radius: 18px 18px 4px 18px;
  background: #6B429C;
  line-height: 1.5;
  color: #FFFFFF;
}
.bill-msg-row { display: flex; align-items: flex-start; gap: 12px; }
.bill-msg__orb {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orb);
  box-shadow: var(--bill-orb-glow);
}
.bill-msg__action {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #120B1A;
  font-size: 13px;
  font-weight: 600;
}
[data-theme="light"] .bill-msg__action { box-shadow: 0 0 0 1px rgba(21, 14, 32, 0.08), 0 2px 6px -2px rgba(46, 24, 84, 0.15); }
.bill-chat__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin-top: 4px;
  padding: 0 8px 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--fill-1);
  font-size: 14px;
  color: var(--text-4);
}
.bill-chat__input span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--fill-3);
  color: var(--text-1);
}
.bill-chat__input svg { width: 15px; height: 15px; }

@media (min-width: 1024px) {
  .bill-ask__grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 48px; }
}
@media (min-width: 1200px) {
  .bill-ask__grid { grid-template-columns: minmax(0, 1fr) 540px; gap: 60px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .bill-chat { max-width: 600px; }
}
@media (max-width: 767px) {
  .bill-ask__glow { left: -40%; top: auto; bottom: -200px; width: 700px; height: 700px; }
  .bill-msg { padding: 12px 14px; font-size: 14px; }
  .bill-msg--me { max-width: 88%; }
  .bill-msg-row { gap: 10px; }
  .bill-msg__orb { width: 26px; height: 26px; }
}

/* The film and the demo (#access) ---------------------------------------------- */

.bill-access {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: var(--section-top) 0;
}
.bill-access__glow {
  position: absolute;
  left: 50%;
  bottom: -500px;
  z-index: 0;
  width: 1600px;
  height: 1100px;
  margin-left: -800px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--bill-access-glow), var(--bill-access-glow-mid) 55%, transparent 75%);
  pointer-events: none;
}
.bill-access__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 18px + 1.2vw, 34px);
  text-align: center;
}

.bill-film {
  width: min(880px, 100%);
  padding: 1px;
  border-radius: 26px;
  background: var(--bill-film-ring);
  box-shadow: var(--bill-film-shadow);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.bill-film__bezel { padding: 10px; border-radius: 25px; background: var(--bill-film-bezel); }
.bill-film__screen.video-frame { border: 0; border-radius: 17px; box-shadow: none; }
.bill-film__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.bill-film__time {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #4A4255;
}
.bill-film__pill {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px 0 8px;
  border-radius: 999px;
  background: #120B1A;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.bill-film__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #120B1A;
}
.bill-film__icon .icon { width: 13px; height: 13px; }
.bill-film__play:hover .bill-film__pill { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(18, 11, 26, 0.6); }
.bill-film__play:focus-visible { outline-offset: -4px; border-radius: 17px; }

.bill-access__title { margin-top: clamp(12px, 4px + 1.6vw, 36px); }
.bill-access__lead { margin-inline: auto; }

/* The demo form: one email field in a ringed pill. */
.bill-demo { width: min(560px, 100%); margin-top: 6px; }
.bill-demo__pill {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 7px 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--bill-demo-bg), var(--bill-demo-bg)) padding-box, var(--bill-demo-ring) border-box;
  box-shadow: var(--bill-demo-shadow);
  transition: box-shadow 0.2s;
}
.bill-demo__pill:focus-within { box-shadow: var(--bill-demo-shadow), 0 0 0 2px var(--focus); }
.bill-demo__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--text-1);
}
.bill-demo__input::placeholder { color: var(--placeholder); opacity: 1; }
[data-theme="light"] .bill-demo__input::placeholder { color: var(--island-muted); }
.bill-demo__input:focus-visible { outline: none; }
.bill-demo__btn { --btn-h: 48px; --btn-fs: 15px; --arrow: 15px; flex: none; }
@media (max-width: 767px) {
  .bill-film { border-radius: 20px; }
  .bill-film__bezel { padding: 6px; border-radius: 19px; }
  .bill-film__screen.video-frame { border-radius: 14px; }
  .bill-film__play { padding: 10px; gap: 6px; }
  .bill-film__time { display: none; }
  .bill-film__pill { height: 38px; gap: 8px; padding: 0 14px 0 5px; font-size: 13px; }
  .bill-film__icon { width: 28px; height: 28px; }
  .bill-film__icon .icon { width: 11px; height: 11px; }
  .bill-demo__pill { height: 60px; padding: 0 6px 0 20px; gap: 8px; }
  .bill-demo__btn { --btn-px: 16px; --btn-fs: 14.5px; --arrow: 14px; gap: 7px; }
}
