/* BridgeMD homepage, what the team stops doing by hand (templates/home/_features.html). Loaded after company.css.
   Five jobs in the order a patient meets them, one row each: a motion scene beside a small stage label, one outcome title and one
   sentence. Rows alternate sides. Nothing sits in a card; the scene is the picture. One column on phones. */
body.cx-page .cx-ft-sec { padding: clamp(72px, 10vw, 128px) 0; background: #fff; }
body.cx-page .cx-ft-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
body.pub-marketing.cx-page .cx-ft-head .cx-h2 { margin: 0; font-weight: 700; }
body.cx-page .cx-ft-head p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text); }
body.cx-page .cx-ft-head a { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-weight: 600; color: var(--accent); text-decoration: none; }
body.cx-page .cx-ft-head a:hover { color: var(--accent-d); }
body.cx-page .cx-ft-head a .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s ease; }
body.cx-page .cx-ft-head a:hover .ico { transform: translateX(3px); }

body.cx-page .cx-ft-grid { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 84px); margin: 0; padding: 0; list-style: none; }
body.cx-page .cx-ft { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; min-width: 0; scroll-margin-top: 120px; }
body.cx-page .cx-ft:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
body.cx-page .cx-ft:nth-child(even) .cx-ft-media { order: 2; }
body.cx-page .cx-ft { position: relative; }
body.cx-page .cx-ft > i { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: hidden; scroll-margin-top: 120px; }
body.cx-page .cx-ft-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 28px; background: #f3f7fd;
  box-shadow: 0 1px 2px rgba(10, 30, 70, .05), 0 34px 64px -38px rgba(10, 30, 70, .42); }
body.cx-page .cx-ft-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
body.cx-page .cx-ft-stage { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
body.pub-marketing.cx-page .cx-ft h3 { margin: 0; font-family: var(--f-disp); font-size: clamp(30px, 3.3vw, 44px); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; color: var(--ink); text-wrap: balance; }
body.cx-page .cx-ft-copy > p:not(.cx-ft-stage) { margin: 18px 0 0; max-width: 40ch; font-size: 19px; line-height: 1.55; color: var(--text); }
body.cx-page .cx-ft-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 17px; font-weight: 600; color: var(--accent); text-decoration: none; }
body.cx-page .cx-ft-link:hover { color: var(--accent-d); }
body.cx-page .cx-ft-link .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s ease; }
body.cx-page .cx-ft-link:hover .ico { transform: translateX(3px); }
body.cx-page .cx-ft-note { margin: 56px 0 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) {
  body.cx-page .cx-ft, body.cx-page .cx-ft:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body.cx-page .cx-ft:nth-child(even) .cx-ft-media { order: 0; }
  body.cx-page .cx-ft-grid { gap: 72px; }
}
@media (max-width: 640px) { body.cx-page .cx-ft-head p { font-size: 16.5px; } body.cx-page .cx-ft-copy > p:not(.cx-ft-stage) { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {
  body.cx-page .cx-ft-head a .ico, body.cx-page .cx-ft-link .ico { transition: none; }
}

/* The per-patient schedule tile: a still card, centred in the 4:3 media box. */
body.cx-page .cx-sched { display: flex; align-items: center; justify-content: center; padding: 6%; box-sizing: border-box; overflow: visible; }  /* visible: the 4:3 box grows when the card is taller (phones) */
body.cx-page .cx-sched-card { width: 100%; max-width: 520px; padding: 20px 22px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(10, 20, 40, .05), 0 14px 32px -18px rgba(16, 42, 92, .3); box-sizing: border-box; text-align: left; }
body.cx-page .cx-sched-head { display: flex; align-items: center; gap: 12px; }
body.cx-page .cx-sched-av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: #e3ebf8; color: #22407a; font-size: 13px; font-weight: 700; }
body.cx-page .cx-sched-head b { display: block; font-size: 16px; color: var(--ink); }
body.cx-page .cx-sched-head small { display: block; font-size: 13px; color: var(--muted); }
body.cx-page .cx-sched-rows { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
body.cx-page .cx-sched-rows li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
body.cx-page .cx-sched-rows i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #9db3d6; box-sizing: border-box; }
body.cx-page .cx-sched-rows li.is-done i { border-color: #1f7a4d; background: #1f7a4d; }
body.cx-page .cx-sched-rows small { display: block; font-size: 12.5px; font-weight: 600; color: var(--accent); }
body.cx-page .cx-sched-rows b { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--ink); }
body.cx-page .cx-sched-rows em { font-style: normal; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: #eef3fb; color: #22407a; }
body.cx-page .cx-sched-rows li.is-done em { background: #e7f4ec; color: #1f6b44; }
body.cx-page .cx-sched-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  body.cx-page .cx-sched { padding: 4%; }
  body.cx-page .cx-sched-card { padding: 14px 14px 12px; }
  body.cx-page .cx-sched-rows { gap: 8px; margin-top: 12px; }
  body.cx-page .cx-sched-rows b { font-size: 13px; }
  body.cx-page .cx-sched-rows em { padding: 3px 8px; font-size: 11.5px; }
}

/* The records flow on the first, full-width card (templates/home/_features.html). One sheet, three screens on a 12 s loop:
   pick a health system, allow sharing, records received. It runs only while .is-on (company.features.js). */
body.cx-page .cx-recflow { display: flex; align-items: center; justify-content: center; }
/* Drawn at one design size (400 x 430) and scaled to the card by company.features.js (--rf-s), so the panel reads the
   same on a phone as on a wide screen. */
body.cx-page .rf-sheet { position: relative; flex: none; width: 400px; height: 430px; transform: scale(var(--rf-s, 1)); transform-origin: center; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(10, 20, 40, .05), 0 18px 40px -22px rgba(16, 42, 92, .35); overflow: hidden; font-size: 14px; color: var(--ink); }
body.cx-page .rf-screen { position: absolute; inset: 0; padding: 22px 20px; opacity: 0; }
body.cx-page .rf-s3 { opacity: 1; }
body.cx-page .rf-t { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
body.cx-page .rf-sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
body.cx-page .rf-search { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 13.5px; }
body.cx-page .rf-search svg, body.cx-page .rf-chev svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.cx-page .rf-list, body.cx-page .rf-checks, body.cx-page .rf-recs { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
body.cx-page .rf-sys { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
body.cx-page .rf-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 24px; }
body.cx-page .rf-logo img { max-width: 52px; max-height: 18px; width: auto; height: auto; }
body.cx-page .rf-mono { font-size: 12px; font-weight: 800; color: #5f6c83; letter-spacing: .02em; }
body.cx-page .rf-name { flex: 1; display: grid; }
body.cx-page .rf-name b { font-size: 14px; font-weight: 600; }
body.cx-page .rf-name small { font-size: 12px; color: var(--muted); }
body.cx-page .rf-chev { color: #9aa8bd; }
body.cx-page .rf-checks li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; }
body.cx-page .rf-box, body.cx-page .rf-done { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; border-radius: 5px; background: var(--accent); }
body.cx-page .rf-done { width: 20px; height: 20px; border-radius: 50%; background: #1f7a4d; }
body.cx-page .rf-box svg, body.cx-page .rf-done svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
body.cx-page .rf-allow { position: absolute; left: 20px; right: 20px; bottom: 22px; display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 11px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14.5px; }
body.cx-page .rf-recs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
body.cx-page .rf-recs span { display: grid; font-size: 14px; font-weight: 500; }
body.cx-page .rf-recs small { font-size: 11.5px; font-weight: 600; color: var(--accent); }
body.cx-page .rf-recs em { flex: none; padding: 3px 9px; border-radius: 999px; background: #e7f4ec; color: #1f6b44; font-size: 12px; font-style: normal; font-weight: 600; }
body.cx-page .rf-result { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 14px; font-weight: 700; color: var(--ink); }
body.cx-page .rf-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; opacity: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
body.cx-page .rf-cursor svg { width: 22px; height: 22px; fill: #0b1424; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }

/* The loop: screen 1 0-4 s, screen 2 4-8 s, screen 3 8-12 s; the cursor taps Epic at 2.6 s and Allow at 6.6 s. */
body.cx-page .cx-recflow.is-on .rf-s1 { animation: rfS1 9.2s linear infinite; }
body.cx-page .cx-recflow.is-on .rf-s2 { animation: rfS2 9.2s linear infinite; }
body.cx-page .cx-recflow.is-on .rf-s3 { animation: rfS3 9.2s linear infinite; }
body.cx-page .cx-recflow.is-on .rf-sys.is-pick { animation: rfPick 9.2s linear infinite; }
body.cx-page .cx-recflow.is-on .rf-allow { animation: rfAllow 9.2s linear infinite; }
body.cx-page .cx-recflow.is-on .rf-recs li, body.cx-page .cx-recflow.is-on .rf-result { animation: rfIn 9.2s linear infinite; }
body.cx-page .cx-recflow.is-on .rf-recs li:nth-child(2) { animation-name: rfIn2; }
body.cx-page .cx-recflow.is-on .rf-recs li:nth-child(3) { animation-name: rfIn3; }
body.cx-page .cx-recflow.is-on .rf-result { animation-name: rfIn4; }
body.cx-page .cx-recflow.is-on .rf-cursor { animation: rfCur 9.2s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes rfS1 { 0%, 31% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes rfS2 { 0%, 31% { opacity: 0; } 34%, 64% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes rfS3 { 0%, 64% { opacity: 0; } 67%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rfPick { 0%, 20% { border-color: var(--line); background: #fff; } 22%, 34% { border-color: var(--accent); background: #eef4fd; } 36%, 100% { border-color: var(--line); background: #fff; } }
@keyframes rfAllow { 0%, 54% { filter: none; transform: none; } 55%, 57% { filter: brightness(.88); transform: scale(.98); } 59%, 100% { filter: none; transform: none; } }
@keyframes rfIn { 0%, 68% { opacity: 0; transform: translateY(6px); } 71%, 100% { opacity: 1; transform: none; } }
@keyframes rfIn2 { 0%, 71% { opacity: 0; transform: translateY(6px); } 74%, 100% { opacity: 1; transform: none; } }
@keyframes rfIn3 { 0%, 74% { opacity: 0; transform: translateY(6px); } 77%, 100% { opacity: 1; transform: none; } }
@keyframes rfIn4 { 0%, 78% { opacity: 0; transform: translateY(6px); } 82%, 100% { opacity: 1; transform: none; } }
@keyframes rfCur { 0% { opacity: 0; left: 70%; top: 92%; } 6% { opacity: 1; left: 70%; top: 92%; }
  20% { left: 62%; top: 34%; } 22% { left: 62%; top: 35%; } 24% { left: 62%; top: 34%; }
  40% { left: 62%; top: 60%; } 54% { left: 50%; top: 88%; } 56% { left: 50%; top: 89%; } 58% { left: 50%; top: 88%; }
  64% { opacity: 1; left: 50%; top: 88%; } 67%, 100% { opacity: 0; left: 50%; top: 88%; } }
@media (prefers-reduced-motion: reduce) {
  body.cx-page .cx-recflow .rf-screen, body.cx-page .cx-recflow .rf-recs li, body.cx-page .cx-recflow .rf-result, body.cx-page .cx-recflow .rf-cursor { animation: none !important; }
}
