/* /future-of-rcm: the page-only parts. Everything shared (hero, section heads,
   glass cards, buttons, CTA band) comes from site.css.
   Sections: hero + film, the story (stacking steps), the practice manager's night
   shift (a scroll-driven timeline), the core care team, the comparison, AI and data
   (the page's one dark panel), the numbers card. */

/* Page tokens: the board's few colors that site.css has no role for. */
:root,
[data-theme="light"] {
  --fr-visual-glow: rgba(139, 92, 246, 0.056);
  --fr-coral: #A04A2E;
  --fr-coral-bg: rgba(240, 183, 164, 0.14);
  --fr-coral-border: rgba(224, 150, 124, 0.5);
  --fr-thread: rgba(224, 150, 124, 0.5);
  --fr-window-bg: rgba(255, 255, 255, 0.92);
  --fr-window-border: rgba(21, 14, 32, 0.12);
  --fr-window-shadow: 0 0 60px -10px rgba(139, 92, 246, 0.24);
  --fr-window-bar: linear-gradient(120deg, rgba(139, 92, 246, 0.14), rgba(31, 143, 156, 0.028));
  --fr-window-row: rgba(21, 14, 32, 0.07);
  --fr-window-status: #6B429C;
  --fr-tile-ring: 0 0 0 1px rgba(21, 14, 32, 0.07), 0 8px 24px -14px rgba(46, 24, 84, 0.25);
  --fr-icon-bg: linear-gradient(180deg, rgba(185, 154, 240, 0.12), rgba(185, 154, 240, 0.03));
  --fr-icon-border: rgba(21, 14, 32, 0.12);
  --fr-stop-1: #5B2F99;
  --fr-stop-2: #7E52C8;
  --fr-stop-3: #1F8F9C;
  --fr-lead-bg: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(139, 92, 246, 0.168), rgba(139, 92, 246, 0) 70%), #FAF8FE;
  --fr-lead-border: rgba(107, 66, 156, 0.2);
  --fr-lead-shadow: 0 0 90px -20px rgba(139, 92, 246, 0.28), 0 22px 44px -28px rgba(76, 40, 130, 0.28);
  --fr-link: linear-gradient(90deg, rgba(185, 154, 240, 0.12), rgba(155, 123, 223, 0.55), rgba(185, 154, 240, 0.12));
  --fr-link-glow: 0 0 16px rgba(185, 154, 240, 0.3);
  --fr-link-dot: 0 0 0 1px rgba(107, 66, 156, 0.18), 0 0 14px rgba(155, 123, 223, 0.6);
  --fr-col-head: rgba(139, 92, 246, 0.09);
  --fr-col: rgba(139, 92, 246, 0.053);
  --fr-teal: #127A86;
  --fr-data-bg: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(31, 143, 156, 0.08), rgba(31, 143, 156, 0) 70%), #FAF8FE;
  --fr-data-border: rgba(31, 143, 156, 0.25);
  --fr-data-icon-bg: rgba(31, 143, 156, 0.07);
  --fr-data-icon-border: rgba(31, 143, 156, 0.27);
  --fr-data-icon: #1F8F9C;
  --fr-result-bg: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0) 70%), #FAF8FE;
  --fr-result-bg-soft: radial-gradient(ellipse 55% 120% at 100% 0%, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0) 70%);
  --fr-film-shadow: 0 50px 100px -40px rgba(46, 24, 84, 0.42), 0 0 110px -30px rgba(139, 92, 246, 0.3);
  --fr-film-border: rgba(21, 14, 32, 0.1);
  --fr-moon-opacity: 0.42;
}

[data-theme="dark"],
.fr-trust__panel {
  --fr-visual-glow: rgba(139, 92, 246, 0.14);
  --fr-coral: #F6C9B8;
  --fr-coral-bg: rgba(240, 183, 164, 0.1);
  --fr-coral-border: rgba(240, 183, 164, 0.4);
  --fr-thread: rgba(240, 183, 164, 0.4);
  --fr-window-bg: rgba(14, 10, 22, 0.85);
  --fr-window-border: rgba(233, 221, 251, 0.2);
  --fr-window-shadow: 0 0 60px -10px rgba(139, 92, 246, 0.6);
  --fr-window-bar: linear-gradient(120deg, rgba(139, 92, 246, 0.35), rgba(143, 233, 242, 0.08));
  --fr-window-row: rgba(255, 255, 255, 0.06);
  --fr-window-status: #E9DDFF;
  --fr-tile-ring: none;
  --fr-icon-bg: linear-gradient(180deg, rgba(185, 154, 240, 0.2), rgba(185, 154, 240, 0.05));
  --fr-icon-border: rgba(233, 221, 251, 0.18);
  --fr-stop-1: #F1E8FF;
  --fr-stop-2: #C3A2F4;
  --fr-stop-3: #8FE9F2;
  --fr-lead-bg: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(139, 92, 246, 0.42), rgba(139, 92, 246, 0) 70%), #120C1D;
  --fr-lead-border: rgba(233, 221, 251, 0.3);
  --fr-lead-shadow: 0 0 90px -20px rgba(139, 92, 246, 0.7);
  --fr-link: linear-gradient(90deg, rgba(185, 154, 240, 0.2), rgba(185, 154, 240, 0.8), rgba(185, 154, 240, 0.2));
  --fr-link-glow: 0 0 16px rgba(185, 154, 240, 0.6);
  --fr-link-dot: 0 0 14px #D5BEFA;
  --fr-col-head: rgba(139, 92, 246, 0.12);
  --fr-col: rgba(139, 92, 246, 0.07);
  --fr-teal: #BDF3F8;
  --fr-data-bg: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(143, 233, 242, 0.16), rgba(143, 233, 242, 0) 70%), #0C0A14;
  --fr-data-border: rgba(143, 233, 242, 0.22);
  --fr-data-icon-bg: rgba(143, 233, 242, 0.1);
  --fr-data-icon-border: rgba(143, 233, 242, 0.3);
  --fr-data-icon: #BDF3F8;
  --fr-result-bg: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0) 70%), #120C1D;
  --fr-result-bg-soft: radial-gradient(ellipse 55% 120% at 100% 0%, rgba(139, 92, 246, 0.34), rgba(139, 92, 246, 0) 70%);
  --fr-film-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 110px -30px rgba(139, 92, 246, 0.6);
  --fr-film-border: rgba(255, 255, 255, 0.14);
  --fr-moon-opacity: 0.34;
}

.fr-mono--cyan { color: var(--cyan); }

/* Hero + film ------------------------------------------------------------------ */

.fr-hero {
  --display-size: clamp(46px, 27.4px + 5.4vw, 104px);
  padding: clamp(48px, 20px + 5.3vw, 96px) 0 var(--section-top);
}
.fr-hero .page-hero__inner { gap: 26px; }
.fr-hero .display .accent { font-size: 1.173em; letter-spacing: -0.02em; }
.fr-hero .lead { max-width: 660px; font-size: clamp(17px, 15.4px + 0.42vw, 19px); text-wrap: balance; }
.fr-hero > .fx-glow {
  left: 50%;
  top: -120px;
  width: 1500px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow-strong), var(--glow-mid) 50%, transparent 72%);
}
.fr-hero > .fx-beam { left: calc(50% - 420px); top: -200px; height: 1400px; transform: rotate(28deg); filter: blur(28px); }
.fr-hero > .fr-hero__beam-2 {
  left: calc(50% + 330px);
  width: 90px;
  transform: rotate(-26deg);
  background: linear-gradient(180deg, transparent, rgba(143, 233, 242, 0.12) 45%, transparent);
  animation-delay: -3.5s;
}
[data-theme="light"] .fr-hero > .fr-hero__beam-2 { background: linear-gradient(180deg, transparent, rgba(31, 143, 156, 0.06) 45%, transparent); }
.fr-hero > .fx-fade { height: 360px; }

/* the reveal sits on the wrapper and the tilt on the frame (both set a transform) */
.fr-film-wrap { width: 100%; }
.fr-film {
  width: 100%;
  margin-top: 44px;
  border-radius: 26px;
  border-color: var(--fr-film-border);
  box-shadow: var(--fr-film-shadow);
  background: #EFEAF7;
}
.fr-film video { background: #EFEAF7; }
.fr-film__play {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4px + 2.6vw, 40px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 999px;
  background: #1C1026;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 20px 50px rgba(28, 16, 38, 0.45);
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease-out), background-color 0.2s;
}
.fr-film__play:hover { background: #2A1838; transform: translateX(-50%) translateY(-2px); }
.fr-film__play:focus-visible { outline-offset: 4px; border-radius: 999px; }
.fr-film__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #1C1026;
}
.fr-film__play-icon .icon { width: 18px; height: 18px; margin-left: 2px; }
.fr-film__time {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
}
@media (max-width: 767px) {
  .fr-hero .lead { font-size: 16.5px; }
  .fr-film { margin-top: 10px; border-radius: 18px; box-shadow: 0 24px 50px -28px rgba(46, 24, 84, 0.45), 0 0 60px -30px rgba(139, 92, 246, 0.5); }
  .fr-film__play { bottom: 12px; gap: 9px; height: 40px; padding: 0 14px 0 5px; font-size: 13.5px; }
  .fr-film__play-icon { width: 30px; height: 30px; }
  .fr-film__play-icon .icon { width: 13px; height: 13px; }
  .fr-film__time { display: none; }
}

/* The story: three steps, stacking (site.css "Stacking steps") ---------------------- */

/* the hero's bottom padding is this section's top spacing (it keeps room for the film's shadow) */
.fr-story { padding-top: 0; }
.fr-step { display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; }
.fr-step__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, var(--fr-visual-glow), transparent 70%);
  border-bottom: 1px solid var(--hair);
}
.fr-step__body { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 30px; }
.fr-step__title { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -0.025em; color: var(--text-1); }
.fr-step__body p { font-size: 15px; line-height: 1.6; color: var(--text-3); text-wrap: pretty; }
.fr-step .mono { letter-spacing: 0.14em; }

/* Step 1: the scattered tools */
.fr-scatter { position: relative; width: 304px; height: 236px; margin-top: -24px; }
.fr-scatter__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.fr-scatter__lines path { stroke: var(--fr-thread); stroke-width: 1.2; stroke-dasharray: 3 4; }
.fr-tool {
  position: absolute;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--fill-2);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  font-size: 12.5px;
  white-space: nowrap;
  transform: rotate(var(--r, 0deg));
}
[data-theme="light"] .fr-tool { background: #FFFFFF; box-shadow: 0 4px 12px -6px rgba(46, 24, 84, 0.2); }
.fr-scatter__tag {
  position: absolute;
  left: 50%;
  bottom: -30px;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--fr-coral-bg);
  border: 1px solid var(--fr-coral-border);
  color: var(--fr-coral);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* Step 2: one stack, Nadia working */
.fr-stack {
  width: 250px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--fr-window-bg);
  border: 1px solid var(--fr-window-border);
  box-shadow: var(--fr-window-shadow);
}
.fr-stack__bar { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; background: var(--fr-window-bar); }
.fr-stack__bar .logo-wordmark { height: 12px; }
.fr-stack__status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fr-window-status); }
.fr-stack__status .orb { width: 12px; height: 12px; }
.fr-stack__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 12px;
  border-top: 1px solid var(--fr-window-row);
  font-size: 12.5px;
  color: var(--text-soft);
}
.fr-stack__list li:first-child { border-top: 0; }
.fr-stack__list .icon { width: 14px; height: 14px; color: var(--cyan); }

/* Step 3: the result, drawn as small white product tiles */
.fr-result { display: flex; flex-direction: column; gap: 8px; width: 270px; }
.fr-result__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fr-result__tile,
.fr-result__bars { border-radius: 14px; background: #FFFFFF; box-shadow: var(--fr-tile-ring); }
.fr-result__tile { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.fr-result__label { font-size: 11px; color: #6E6578; }
.fr-result__value { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: #1C1526; }
.fr-result__delta { font-size: 10.5px; color: #1F7A4D; }
.fr-result__bars { display: flex; align-items: flex-end; gap: 5px; height: 92px; padding: 12px; }
.fr-result__bars span { flex: 1; height: var(--h); border-radius: 3px; background: #D8C8F2; }
.fr-result__bars .is-now { background: linear-gradient(180deg, #A57BE0, #6B429C); }

@media (min-width: 768px) {
  .fr-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fr-step__visual { height: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--hair); }
  .fr-step__body { justify-content: center; padding: 32px; }
}
@media (min-width: 1024px) {
  .fr-step__visual { min-height: 340px; }
  .fr-step__body { gap: 12px; max-width: 520px; padding: 48px 56px; }
  .fr-step__title { font-size: 28px; line-height: 1.15; }
  .fr-step__body p { font-size: 16px; }
}
@media (max-width: 767px) {
  .fr-step__visual { height: 280px; }
  .fr-step__body { padding: 22px 22px 26px; }
  .fr-step__title { font-size: 20px; }
}
@media (max-width: 359px) {
  .fr-scatter { transform: scale(0.9); }
}

/* The practice manager: Nadia's night shift ------------------------------------------
   One night, 6 PM to 7 AM, on a time axis: moment cards stand on stems at their times and
   the clock counts what got done, ending at the practice manager's morning view.
   Default (no script, reduced motion, ?shots=1): the final state, every card lit, 7:00 AM.
   Desktop with motion: the stage sticks for 1.5 screens and the scroll drives --p (0 to 1):
   the clock, the scrubber and the lit cards (js/future-of-rcm.js). Below 1024 it is a
   vertical timeline whose cards light as they enter. */

.fr-night { --p: 1; position: relative; }
.fr-night__stage { position: relative; isolation: isolate; }
.fr-night__glow {
  position: absolute;
  inset: 4% -6% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-strong), var(--glow-mid) 55%, transparent 78%);
  opacity: 0.8;
  pointer-events: none;
}
/* the lilac orb, blown up into the night's light source */
.fr-night__moon {
  position: absolute;
  right: 4%;
  top: 6%;
  z-index: -1;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--orb);
  filter: blur(80px);
  opacity: var(--fr-moon-opacity);
  pointer-events: none;
}
.fr-night__grain {
  z-index: -1;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
}

.fr-night__board { position: relative; display: flex; flex-direction: column; gap: 26px; max-width: 520px; margin: 0 auto; }
.fr-night__span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-1);
}
.fr-night__span .orb { width: 12px; height: 12px; }
.fr-night__span-time { color: var(--text-4); }

/* the moments: a rail with a dot per card (phone and tablet) */
.fr-night__moments { position: relative; display: flex; flex-direction: column; gap: 18px; padding-left: 30px; }
.fr-night__moments::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--accent-fill), color-mix(in srgb, var(--accent-fill) 30%, transparent));
}
.fr-night__moment { position: relative; }
.fr-night__stem {
  position: absolute;
  left: -29px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-fill);
  box-shadow: 0 0 0 4px var(--ground), 0 0 0 7px var(--accent-tint), 0 0 18px var(--glow-strong);
  transition: background-color 0.5s, box-shadow 0.5s;
}

.fr-night__card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon time" "icon text" "icon status";
  gap: 2px 14px;
  padding: 14px 18px 15px 14px;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow), 0 22px 44px -26px var(--glow-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: opacity 0.6s var(--ease-out), translate 0.7s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
}
.fr-night__card time { grid-area: time; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-4); }
.fr-night__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border-radius: 12px;
  background: var(--accent-tint);
  border: 1px solid var(--border);
  color: var(--accent);
}
.fr-night__icon svg { width: 19px; height: 19px; }
.fr-night__text { grid-area: text; display: flex; flex-direction: column; gap: 2px; }
.fr-night__text strong { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text-1); }
.fr-night__text span { font-size: 13.5px; line-height: 1.4; color: var(--text-3); }
.fr-night__status {
  grid-area: status;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 12.5px;
  font-style: normal;
  color: var(--accent);
}
.fr-night__status::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* the number card: September's margin in the serif, lit with the brand gradient */
.fr-night__card--accent,
.fr-night__card--chat { display: flex; flex-direction: column; gap: 6px; }
.fr-night__head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; font-size: 13px; color: var(--text-3); }
.fr-night__head time { flex: none; }
.fr-night__card--accent { gap: 2px; padding: 15px 20px 16px; background: var(--feature-bg); border-color: var(--feature-border); }
.fr-night__big {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fr-night__up { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--success); }
.fr-night__up svg { width: 13px; height: 13px; }

/* the morning view: the practice manager asks, Nadia answers */
.fr-night__card--chat { gap: 10px; padding: 14px 16px 16px; }
.fr-night__card--chat .fr-night__head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.fr-night__me {
  align-self: flex-end;
  max-width: 92%;
  padding: 9px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--accent-tint);
  border: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-1);
}
.fr-night__ai { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.fr-night__ai .orb { width: 22px; height: 22px; margin-top: 1px; }
.fr-night__ai b { font-weight: 600; color: var(--text-1); }

/* the clock: where the night ends */
.fr-night__clock { display: flex; flex-direction: column; gap: 6px; padding-left: 30px; }
.fr-night__time {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--text-1);
}
.fr-night__time small { font-size: 0.4em; font-weight: 500; letter-spacing: -0.01em; color: var(--text-3); }
.fr-night__count { font-size: 15px; color: var(--text-3); }
.fr-night__count b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-1); }
.fr-night__axis { display: none; }

/* not yet lit: a ghost of the card, waiting for its time */
.fr-night.is-live .fr-night__moment:not(.is-lit) .fr-night__card { opacity: 0.38; translate: 0 10px; box-shadow: none; }
.fr-night.is-live .fr-night__moment:not(.is-lit) .fr-night__stem { background: var(--border-strong); box-shadow: 0 0 0 4px var(--ground); }
.fr-night.is-live .fr-night__moment.is-now .fr-night__card {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--glass-shadow), 0 0 0 4px var(--accent-tint), 0 26px 50px -24px var(--glow-strong);
}

@media (max-width: 767px) {
  .fr-night__moon { width: 220px; height: 220px; filter: blur(60px); }
  .fr-night__time { font-size: 56px; }
}

/* Desktop: the night on a time axis ---------------------------------------------------- */

@media (min-width: 1024px) {
  .fr-night__moon { right: auto; left: calc(4% + var(--p) * 62%); top: 2%; width: 420px; height: 420px; filter: blur(100px); }
  .fr-night__board { display: block; width: 100%; max-width: none; height: 680px; }
  .fr-night__span { position: absolute; left: 0; top: 10px; }
  .fr-night__clock { position: absolute; right: 0; top: 0; align-items: flex-end; gap: 10px; padding: 0; }
  .fr-night__time { font-size: 104px; }
  .fr-night__count { font-size: 16px; }

  /* the axis line sits 64 px above the board's foot; every moment stands on it */
  .fr-night__moments { position: absolute; left: 0; right: 0; bottom: 64px; display: block; height: 0; padding: 0; }
  .fr-night__moments::before { display: none; }
  .fr-night__moment { position: absolute; left: calc(var(--t) * 100%); bottom: 0; width: 0; height: 0; }
  .fr-night__stem {
    left: -1px;
    top: auto;
    bottom: 0;
    width: 2px;
    height: var(--lift);
    border-radius: 1px;
    background: linear-gradient(0deg, var(--accent-fill), color-mix(in srgb, var(--accent-fill) 25%, transparent));
    box-shadow: none;
    transform-origin: 50% 100%;
    transition: background-color 0.4s, opacity 0.5s;
  }
  .fr-night__stem::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: var(--accent-fill);
    box-shadow: 0 0 0 3px var(--ground), 0 0 14px var(--glow-strong);
  }
  .fr-night__card { position: absolute; left: -10px; bottom: var(--lift); width: max-content; white-space: nowrap; }
  .fr-night__moment--end .fr-night__card { left: auto; right: -1px; }
  .fr-night__card--chat { width: 340px; white-space: normal; }
  /* the drafted or routed line moves up beside the time, so a card stays three lines tall */
  .fr-night__card { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "icon time status" "icon text text"; column-gap: 14px; }
  .fr-night__status { justify-content: flex-end; margin: 0 0 0 10px; font-size: 12px; }
  .fr-night__status::before { display: none; }

  .fr-night__axis { position: absolute; left: 0; right: 0; bottom: 0; display: block; height: 64px; }
  .fr-night__track { position: absolute; left: 0; right: 0; top: -1px; height: 2px; border-radius: 1px; background: var(--border-strong); }
  .fr-night__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc(var(--p) * 100%);
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent-fill) 20%, transparent), var(--accent-fill));
    box-shadow: 0 0 14px var(--glow-strong);
  }
  .fr-night__head-dot {
    position: absolute;
    left: calc(var(--p) * 100%);
    top: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--accent-tint), transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-fill) 35%, transparent), 0 0 30px var(--glow-strong);
  }
  .fr-night__head-dot .orb { width: 16px; height: 16px; }
  .fr-night__hours span {
    position: absolute;
    left: calc(var(--t) * 100%);
    top: 18px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: var(--text-4);
    transform: translateX(-50%);
  }
  .fr-night__hours span:first-child { transform: none; }
  .fr-night__hours span:last-child { transform: translateX(-100%); color: var(--accent); }

  /* not yet lit, on the axis: the stem stays a faint thread */
  .fr-night.is-live .fr-night__moment:not(.is-lit) .fr-night__stem { background: var(--border-strong); opacity: 0.6; box-shadow: none; }
  .fr-night.is-live .fr-night__moment:not(.is-lit) .fr-night__stem::after { background: var(--border-strong); box-shadow: 0 0 0 3px var(--ground); }
}
/* 1024 to 1199: the same board, drawn at 85% so the cards keep their spacing */
@media (min-width: 1024px) and (max-width: 1199px) {
  .fr-night__board { zoom: 0.85; }
}
/* the stage sticks while the scroll plays the night (not under reduced motion or ?shots=1) */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  /* the stage's top padding clears the header once it sticks, so it starts that much higher */
  html.js:not([data-shots]) .fr-night { height: 250vh; margin-top: calc(-1 * var(--nav-h)); }
  html.js:not([data-shots]) .fr-night__stage {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    padding: var(--nav-h) 0 24px;
  }
  html.js:not([data-shots]) .fr-pm .section-head { position: relative; z-index: 1; }
}

/* The four captions under the night */
.fr-pm__points { display: grid; gap: 22px 28px; margin-top: 52px; }
.fr-pm__points li { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--border-strong); }
.fr-pm__points strong { font-size: 16px; font-weight: 600; color: var(--text-1); }
.fr-pm__points span { font-size: 14.5px; line-height: 1.55; color: var(--text-3); }
@media (min-width: 768px) {
  .fr-pm__points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .fr-pm__points { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The core care team ------------------------------------------------------------- */

.fr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fr-stop-1 { stop-color: var(--fr-stop-1); }
.fr-stop-2 { stop-color: var(--fr-stop-2); }
.fr-stop-3 { stop-color: var(--fr-stop-3); }
.fr-team__row { display: flex; flex-direction: column; align-items: center; }
.fr-role {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 460px;
  padding: 28px;
  border-radius: 26px;
}
.fr-role p { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.fr-role__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--fr-icon-bg);
  border: 1px solid var(--fr-icon-border);
}
.fr-role__icon svg { width: 30px; height: 30px; }
.fr-role__title { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; color: var(--text-1); }
.fr-role__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fr-role__tags li {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--fill-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12.5px;
  white-space: nowrap;
}
.fr-role--lead {
  padding: 34px;
  background: var(--fr-lead-bg);
  border: 1px solid var(--fr-lead-border);
  box-shadow: var(--fr-lead-shadow);
}
.fr-role--lead .fr-role__title { font-size: 26px; }
.fr-link {
  position: relative;
  z-index: 1;
  flex: none;
  width: 2px;
  height: 44px;
  background: var(--fr-link);
  box-shadow: var(--fr-link-glow);
}
.fr-link span {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: var(--fr-link-dot);
  transform: translate(-50%, -50%);
}
@media (max-width: 1023px) {
  .fr-link { background: linear-gradient(180deg, transparent, rgba(155, 123, 223, 0.6), transparent); }
  [data-theme="dark"] .fr-link { background: linear-gradient(180deg, rgba(185, 154, 240, 0.2), rgba(185, 154, 240, 0.8), rgba(185, 154, 240, 0.2)); }
}
@media (min-width: 1024px) {
  .fr-team__row { flex-direction: row; align-items: center; }
  .fr-role { width: auto; max-width: none; flex: 330 1 0; min-width: 0; }
  .fr-role--lead { flex-grow: 420; }
  .fr-link { flex: 1 1 32px; min-width: 20px; width: auto; height: 2px; margin: 0 -2px; }
}
@media (max-width: 767px) {
  .fr-role { padding: 24px; }
  .fr-role--lead { padding: 28px 24px; }
}

/* Separate tools, or one system ----------------------------------------------------- */

.fr-table-wrap { overflow: hidden; border-radius: 26px; }
.fr-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.fr-table thead td { width: 240px; }
.fr-table th,
.fr-table td { padding: 22px 28px; text-align: left; vertical-align: middle; }
.fr-table thead td,
.fr-table thead th { padding-top: 26px; padding-bottom: 26px; }
.fr-table__today {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}
.fr-table__medico { background: var(--fr-col-head); border-radius: 22px 22px 0 0; }
.fr-table__medico .logo-wordmark { height: 14px; }
.fr-table tbody tr { border-top: 1px solid var(--hair); }
.fr-table tbody th { font-size: 15px; font-weight: 600; color: var(--text-1); }
.fr-table tbody td { font-size: 15px; line-height: 1.45; color: var(--text-3); }
.fr-table tbody td::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 12px;
  vertical-align: -3px;
  background: var(--text-4);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fr-table tbody td:last-child { background: var(--fr-col); color: var(--text-1); }
.fr-table tbody td:last-child::before {
  width: 14px;
  height: 14px;
  margin-right: 14px;
  vertical-align: -2px;
  background: var(--cyan);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
@media (min-width: 768px) {
  /* the marker hangs left of the text, so a wrapped line lines up with the first */
  .fr-table tbody td { position: relative; padding-left: 56px; }
  .fr-table tbody td::before { position: absolute; left: 28px; top: 50%; margin: -8px 0 0; }
  .fr-table tbody td:last-child::before { margin-top: -7px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .fr-table th,
  .fr-table td { padding: 20px 22px; }
  .fr-table tbody td { padding-left: 48px; }
  .fr-table tbody td::before { left: 22px; }
  .fr-table thead td { width: 180px; }
}
/* phone: each row is the label, then today and Medico side by side */
@media (max-width: 767px) {
  .fr-table-wrap { border-radius: 22px; }
  .fr-table,
  .fr-table thead,
  .fr-table tbody { display: block; }
  .fr-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fr-table thead td { display: none; }
  .fr-table th,
  .fr-table td { width: auto; padding: 14px 16px; }
  .fr-table thead th { padding-top: 18px; padding-bottom: 18px; }
  .fr-table__today { font-size: 11px; }
  .fr-table__medico { border-radius: 0; }
  .fr-table__medico .logo-wordmark { height: 12px; }
  .fr-table tbody th { grid-column: 1 / -1; width: auto; padding: 18px 16px 0; font-size: 15px; }
  .fr-table tbody td { padding: 10px 16px 18px; font-size: 14px; }
  .fr-table tbody td:last-child { background: none; }
  .fr-table tbody td { display: flex; gap: 10px; }
  .fr-table tbody td::before { margin: 2px 0 0; flex: none; }
  .fr-table tbody td:last-child::before { margin: 3px 0 0; }
  .fr-table tbody tr { position: relative; }
  .fr-table tbody tr::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    right: 0;
    z-index: -1;
    background: var(--fr-col);
  }
  .fr-table tbody { position: relative; z-index: 0; }
}

/* What AI does, and your data: the short version (technology carries the full one), on the
   page's one dark panel (site.css "Dark panel"; the page tokens switch to dark inside it) ------- */

.fr-trust__panel { padding-block: clamp(20px, 4px + 4.4vw, 76px); }
.fr-trust__grid { display: grid; gap: 16px; }
@media (min-width: 1200px) {
  .fr-trust__panel > .container { width: min(var(--container), 100% - 152px); }
}
.fr-ai,
.fr-data { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: clamp(26px, 16px + 2vw, 40px); border-radius: 26px; }
.fr-trust__title {
  font-size: clamp(27px, 22.6px + 0.9vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-1);
}
.fr-trust__title .accent { font-size: 1.118em; letter-spacing: -0.01em; }
.fr-ai .link-arrow { min-height: 44px; margin-top: auto; font-size: 15px; }

.fr-data {
  position: relative;
  overflow: hidden;
  background: var(--fr-data-bg);
  border: 1px solid var(--fr-data-border);
}
.fr-data__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--fr-data-icon-bg);
  border: 1px solid var(--fr-data-icon-border);
  color: var(--fr-data-icon);
}
.fr-data__icon svg { width: 26px; height: 26px; }
.fr-data .accent { color: var(--fr-teal); }
.fr-data__line { max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
@media (min-width: 1024px) {
  .fr-trust__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

/* See your numbers: one CTA card (the practice gets its own numbers from our team) ------------ */

.fr-calc {
  position: relative;
  display: grid;
  gap: 28px;
  overflow: hidden;
  padding: clamp(28px, 14px + 2.8vw, 52px);
  border-radius: 28px;
  background: var(--fr-result-bg-soft), var(--glass-bg);
}
.fr-calc__intro { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.fr-calc__title {
  font-size: clamp(28px, 22px + 1.2vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-1);
  text-wrap: balance;
}
.fr-calc__title .accent { font-size: 1.12em; letter-spacing: -0.01em; }
.fr-calc__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fr-calc__call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: var(--text-3); transition: color 0.2s; }
.fr-calc__call:hover { color: var(--text-1); }
.fr-calc__call .icon { width: 16px; height: 16px; color: var(--accent); }
@media (min-width: 900px) {
  .fr-calc { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
  .fr-calc__actions { align-items: center; }
}
@media (max-width: 767px) {
  .fr-calc { border-radius: 22px; }
  .fr-calc__actions { align-items: stretch; }
  .fr-calc__actions .btn { width: 100%; }
  .fr-calc__call { justify-content: center; }
}

/* The close ------------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .cta-band .actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
}
