/* ==========================================================================
   Use-case pages (workflows we automate): eligibility first, then prior
   authorization, claims and denials. Layered on site.css. Graphite and
   yellow only; yellow marks what the workflow read or measured.
   ========================================================================== */

.uc-k { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }


/* ---- Hero ---- */
.uc-hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.uc-h1 { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.02; letter-spacing: -.035em; max-width: 16ch; margin-top: 18px; }
.uc-hero .lead { max-width: 44ch; }
@media (max-width: 1000px) { .uc-hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Hero animation ---- */
.uc-demo { min-width: 0; }
.uc-demo-card { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 rgba(21, 24, 26, .08); }
.uc-demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.uc-demo-head strong { font-size: 14px; font-weight: 650; }
.uc-stages { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.uc-stages li { position: relative; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border: 1px solid var(--line); color: var(--faint); transition: background 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease); }
.uc-stages li + li::before { content: "→"; position: absolute; left: -15px; top: 50%; transform: translateY(-50%); color: var(--faint); letter-spacing: 0; }
.uc-stages li.on { color: var(--ink); border-color: var(--line-strong); }
.uc-stages li.act { background: var(--yellow); border-color: var(--ink); color: #15181A; }

.uc-demo-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.uc-queue { padding: 14px; border-right: 1px solid var(--line); }
.uc-queue ul { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.uc-q { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color 240ms var(--ease), background 240ms var(--ease), opacity 360ms var(--ease), transform 360ms var(--ease); }
.uc-q.pre { opacity: 0; transform: translateY(6px); }
.uc-q.act { border-color: var(--ink); background: var(--yellow-soft); }
.uc-q-name { font-size: 14px; font-weight: 650; }
.uc-q-meta { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; color: var(--muted); }
.uc-q-st { justify-self: start; margin-top: 6px; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10.5px; letter-spacing: .04em; padding: 2px 6px; border: 1px solid var(--line-strong); color: var(--muted); }
.uc-q-st.run { border-style: dashed; border-color: var(--ink); color: var(--ink); }
.uc-q-st.ok { border-color: var(--ink); color: var(--ink); }
.uc-q-st.ok::before { content: "✓ "; }
.uc-q-st.review { background: var(--yellow); border-color: var(--ink); color: #15181A; }

.uc-check { padding: 14px; min-width: 0; }
.uc-sent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: 10px; }
.uc-sent dt, .uc-fields dt { font-size: 11px; color: var(--muted); }
.uc-sent dd { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 12px; margin-top: 2px; }
.uc-link { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 14px; }
.uc-l { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10.5px; color: var(--faint); text-align: center; padding-bottom: 4px; border-bottom: 2px solid var(--line); transition: color 240ms var(--ease), border-color 240ms var(--ease); }
.uc-l.on { color: var(--ink); border-color: var(--yellow); }
.uc-payer { font-size: 12px; font-weight: 650; padding: 6px 9px; border: 1.5px solid var(--ink); white-space: nowrap; }
.uc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.uc-fields > div { padding: 8px 10px; border: 1px solid var(--line); }
.uc-fields dd { font-family: var(--f-display); font-stretch: 106%; font-size: 15px; font-weight: 680; margin-top: 2px; opacity: .18; transition: opacity 300ms var(--ease); }
.uc-fields > div.on dd { opacity: 1; }
.uc-fields > div.on dd span { background-image: linear-gradient(transparent 58%, rgba(242, 194, 48, .85) 58% 92%, transparent 92%); }
:root[data-theme="dark"] .uc-fields > div.on dd span { background-image: none; box-shadow: inset 0 -2px 0 var(--yellow); }
.uc-fields > div.na dd { font-family: var(--f-body); font-stretch: 100%; font-size: 13px; font-weight: 500; color: var(--muted); }
.uc-out { margin-top: 12px; padding: 10px 12px; font-size: 13px; background: var(--panel); color: var(--panel-ink); opacity: .2; transition: opacity 300ms var(--ease), background 240ms var(--ease), color 240ms var(--ease); }
.uc-out.on { opacity: 1; }
.uc-out.flag { background: var(--yellow); color: #15181A; }

.uc-demo-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-top: 12px; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10.5px; color: var(--muted); }
.uc-controls { display: inline-flex; gap: 6px; }
.uc-btn { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; }
.uc-btn:hover { border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .uc-controls { display: none; } }
@media (max-width: 560px) {
  .uc-demo-body { grid-template-columns: minmax(0, 1fr); }
  .uc-queue { border-right: 0; border-bottom: 1px solid var(--line); }
  .uc-demo-head { display: grid; }
  .uc-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .uc-stages li { text-align: center; padding: 4px 3px; font-size: 9.5px; letter-spacing: .03em; }
  .uc-stages li + li::before { display: none; }
}

/* ---- Client proof ---- */
.uc-proof { padding-block: var(--sec-y); }
.uc-proof-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.uc-proof .h2 { margin-top: 16px; }
.uc-proof .lead { margin-top: 16px; }
.uc-proof-links { margin-top: 22px; }
.uc-proof-data { border: 1px solid var(--line); padding: clamp(20px, 2.4vw, 28px); }
.uc-metrics { display: grid; gap: 18px; margin-top: 16px; }
.uc-metrics div { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.uc-metrics strong { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.03em; color: var(--yellow); }
.uc-metrics span { font-size: 14px; color: var(--muted); }
.uc-proof-note { margin-top: 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.uc-proof-more { margin-top: clamp(28px, 3vw, 40px); padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.uc-proof-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 900px) { .uc-proof-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- What we automate: four connected stage cards ----
   Big stage name, one-line purpose, tasks always visible. The yellow marker sweeps across the stage name
   on hover, and once, stage by stage, when the section scrolls into view (usecase.mjs). */
.uc-stagegrid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.uc-stage { position: relative; display: flex; flex-direction: column; padding: 20px 20px 22px; background: var(--surface); border: 1.5px solid var(--ink); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.uc-stage + .uc-stage::before { content: "→"; position: absolute; top: 50%; left: -16px; transform: translateY(-50%); width: 14px; text-align: center; font-size: 15px; color: var(--ink); }
.uc-stage:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }
.uc-stage-n { display: flex; flex-direction: column; gap: 10px; }
.uc-num { align-self: flex-start; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11.5px; font-weight: 600; padding: 2px 6px; background: var(--yellow); color: #15181A; }
.uc-name { align-self: flex-start; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; letter-spacing: -.035em; padding-inline: .1em; margin-inline: -.1em; background-image: var(--marker); background-repeat: no-repeat; background-position: 0 60%; background-size: 0% 100%; transition: background-size 380ms var(--ease), color 200ms var(--ease); }
.uc-stage:hover .uc-name, .uc-stage.lit .uc-name { background-size: 100% 100%; color: #15181A; }
.uc-purpose { margin-top: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.uc-stage ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.uc-stage li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.uc-stage li::before { content: "✓"; position: absolute; left: 0; top: 0; font-size: 12px; font-weight: 700; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .uc-stage, .uc-name { transition: none; } .uc-stage:hover { transform: none; } }
@media (max-width: 1100px) {
  .uc-stagegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-stage:nth-child(3)::before { display: none; }
}
@media (max-width: 600px) {
  .uc-stagegrid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .uc-stage + .uc-stage::before { display: block; top: -19px; left: 50%; transform: translateX(-50%) rotate(90deg); }
  .uc-stage:nth-child(3)::before { display: block; }
}
.uc-scope { margin-top: clamp(28px, 3vw, 40px); padding-left: 16px; border-left: 3px solid var(--yellow); font-family: var(--f-display); font-stretch: 112%; font-weight: 650; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.35; max-width: 62ch; }
.uc-fine { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 72ch; }

/* ---- Is it a good fit? One panel: the signs on the left, what decides the return on the right. ---- */
.uc-fit-h { margin-top: 14px; max-width: 30ch; }
.uc-fit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-top: 28px; background: var(--surface); border: 1.5px solid var(--ink); }
.uc-checks { list-style: none; padding: 8px 28px; display: flex; flex-direction: column; justify-content: center; }
.uc-checks li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.uc-checks li:last-child { border-bottom: 0; }
.uc-checks li::before { content: "✓"; position: absolute; left: 0; top: 16px; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--yellow); color: #15181A; border: 1px solid var(--ink); }
.uc-roi { padding: 24px 28px; border-left: 1px solid var(--line); background: var(--surface-2); }
.uc-roi ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.uc-roi li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.4; }
.uc-roi li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--ink); }
.uc-roi p { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.uc-roi .btn-text { margin-top: 12px; }
@media (max-width: 900px) { .uc-fit { grid-template-columns: minmax(0, 1fr); } .uc-roi { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .uc-checks, .uc-roi { padding-inline: 18px; } .uc-checks li { font-size: 16px; } }

/* ---- How it fits in: a living scene. Three small windows (your EHR, the automation's run log, the payer
   portal or clearinghouse) with labelled packets travelling between them and a staff review queue below.
   Driven by usecase-eligibility.mjs; the HTML holds the finished state for reduced motion. ---- */
.uc-scene { margin: 0; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) 96px minmax(0, 1fr) 96px minmax(0, .9fr); grid-template-areas: "ehr w1 bot w2 pay" ". . w3 . ." ". . tray . ."; align-items: start; }
.sc-win { background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 rgba(21, 24, 26, .08); min-width: 0; }
.sc-ehr { grid-area: ehr; } .sc-bot { grid-area: bot; } .sc-pay { grid-area: pay; }
.sc-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1.5px solid var(--ink); background: var(--surface-2); }
.sc-bar i { width: 7px; height: 7px; border: 1px solid var(--ink); }
.sc-bar span { margin-left: 6px; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-body { padding: 10px 12px 12px; }

/* EHR schedule */
.sc-row { display: grid; grid-template-columns: 40px minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 13px; transition: background 260ms var(--ease); }
.sc-row:last-child { border-bottom: 0; }
.sc-head { padding-top: 2px; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sc-head .sc-p { font-size: inherit; }
.sc-t, .sc-p { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; color: var(--muted); }
.sc-n { font-weight: 650; }
.sc-st { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; color: var(--faint); }
.sc-row.act { background: var(--yellow-soft); }
.sc-st.run { color: var(--ink); }
.sc-st.ok { color: var(--ink); font-weight: 600; }
.sc-st.ok b { font-weight: 600; padding: 0 3px; background: var(--yellow); color: #15181A; }
.sc-row[data-r] { min-height: 54px; }
.sc-st small { display: block; white-space: nowrap; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.sc-st.review { justify-self: start; padding: 1px 5px; background: var(--yellow); color: #15181A; border: 1px solid var(--ink); font-weight: 600; }

/* Automation run log (dark) */
.sc-bot { background: var(--panel); color: var(--panel-ink); border-color: var(--panel); box-shadow: 8px 8px 0 var(--yellow); }
.sc-bot .sc-bar { background: #0E1112; border-color: var(--panel-line); }
.sc-bot .sc-bar i { border-color: var(--panel-muted); }
.sc-rules { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 12px 0; }
.sc-rules span { width: 100%; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.sc-rules em { font-style: normal; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10.5px; padding: 2px 6px; border: 1px solid var(--panel-line); color: var(--panel-ink); }
.sc-log { list-style: none; margin: 0; padding: 10px 12px 14px; display: grid; gap: 5px; min-height: 176px; align-content: start; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11.5px; line-height: 1.35; color: var(--panel-ink); }
.sc-log li { position: relative; padding-left: 12px; animation: sc-in 260ms var(--ease) both; }
.sc-log li::before { content: "›"; position: absolute; left: 0; color: var(--panel-muted); }
.sc-log li.ok { color: #7FD1A8; }
.sc-log li.flag { color: var(--yellow); }
.sc-log li.cur::after { content: ""; display: inline-block; width: 7px; height: 12px; margin-left: 4px; vertical-align: -2px; background: var(--yellow); animation: sc-blink 900ms steps(1) infinite; }
@keyframes sc-in { from { opacity: 0; transform: translateY(3px); } }
@keyframes sc-blink { 50% { opacity: 0; } }

/* Payer portal / clearinghouse */
.sc-pay { grid-area: pay; }
.sc-form { display: grid; gap: 8px; }
.sc-form label { display: grid; gap: 2px; }
.sc-form label span { font-size: 10.5px; color: var(--muted); }
.sc-form b { display: block; height: 28px; overflow: hidden; white-space: nowrap; line-height: 18px; padding: 4px 8px; border: 1px solid var(--line-strong); background: var(--bg); font-family: var(--f-mono); font-stretch: 87.5%; font-size: 12px; font-weight: 500; }
.sc-form b.typing::after { content: ""; display: inline-block; width: 1px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: sc-blink 700ms steps(1) infinite; }
.sc-submit { justify-self: start; margin-top: 2px; padding: 5px 10px; font-size: 12px; font-weight: 650; background: var(--ink); color: var(--bg); border: 1.5px solid var(--ink); transition: transform 120ms var(--ease), background 160ms var(--ease); }
.sc-submit.press { transform: translateY(2px); background: var(--yellow); color: #15181A; }
.sc-resp { margin-top: 10px; padding: 8px 10px; border: 1.5px solid var(--ink); opacity: .15; transition: opacity 300ms var(--ease); }
.sc-resp.on { opacity: 1; }
.sc-resp-k { display: block; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sc-resp strong { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; }
.sc-resp.bad strong { color: var(--fail); }

/* Wires and travelling packets */
.sc-wire { position: relative; align-self: center; height: 2px; margin-top: 40px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); }
.sc-w1 { grid-area: w1; } .sc-w2 { grid-area: w2; }
.sc-w3 { grid-area: w3; justify-self: center; width: 2px; height: 56px; margin: 8px 0; background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 10px); }
.sc-pk { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); padding: 3px 7px; white-space: nowrap; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10.5px; font-weight: 600; background: var(--yellow); color: #15181A; border: 1.5px solid var(--ink); opacity: 0; pointer-events: none; }
.sc-pk.go.fwd { animation: sc-fwd 900ms var(--ease) both; }
.sc-pk.go.back { animation: sc-back 900ms var(--ease) both; }
.sc-pk.down { left: 50%; top: 0; }
.sc-pk.go.down { animation: sc-down 900ms var(--ease) both; }
@keyframes sc-fwd { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes sc-back { 0% { left: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@keyframes sc-down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Staff review queue */
.sc-tray { grid-area: tray; padding: 12px; border: 1.5px dashed var(--ink); background: transparent; min-height: 104px; }
.sc-card { margin-top: 8px; padding: 9px 11px; background: var(--yellow); color: #15181A; border: 1.5px solid var(--ink); display: grid; gap: 2px; transform: rotate(-1.2deg); opacity: 0; transition: opacity 320ms var(--ease), transform 420ms var(--ease); }
.sc-card.on { opacity: 1; }
.sc-card.in { animation: sc-card 520ms var(--ease) both; }
.sc-card strong { font-size: 13.5px; }
.sc-card span { font-size: 12.5px; line-height: 1.35; }
.sc-empty { margin-top: 18px; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; color: var(--faint); }
.sc-card.on ~ .sc-empty { display: none; }
.sc-card:not(.on) { position: absolute; visibility: hidden; }
.sc-tray { position: relative; }
@keyframes sc-card { from { opacity: 0; transform: translateY(-14px) rotate(-4deg); } to { opacity: 1; transform: rotate(-1.2deg); } }

.uc-care { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 18px; border: 1px solid var(--line-strong); background: var(--bg); }
.uc-care p { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.uc-care strong { color: var(--ink); }
.uc-pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c-pass); box-shadow: 0 0 0 4px rgba(30, 142, 90, .15); }
.uc-scene.paused *, .uc-scene.paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .sc-log li, .sc-card.in { animation: none; } .sc-log li.cur::after, .sc-form b.typing::after { animation: none; } }

@media (max-width: 1100px) {
  .sc-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ehr" "w1" "bot" "w2" "pay" "w3" "tray"; max-width: 560px; margin-inline: auto; }
  .sc-wire { justify-self: center; width: 2px; height: 56px; margin: 8px 0; background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 10px); }
  .sc-pk.fwd, .sc-pk.back { left: 50%; top: 0; }
  .sc-pk.go.fwd { animation-name: sc-down; }
  .sc-pk.go.back { animation-name: sc-up; }
  .sc-log { min-height: 0; }
}
@keyframes sc-up { 0% { top: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }
@media (max-width: 420px) { .sc-row { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.1fr); } .sc-row .sc-p { display: none; } }

/* ---- Shared workflow animations (prior authorization, claims, denials, custom RCM) ----
   Same components as the eligibility page, plus a summary line, a "later payer update" marker,
   a payer message list and a document chip. Sizes are fixed so nothing shifts while they play. */
.uc-sum { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; font-weight: 600; letter-spacing: .02em; opacity: .25; transition: opacity 300ms var(--ease); }
.uc-sum.on { opacity: 1; }
[data-flow="hero"] .uc-q { min-height: 104px; align-content: start; }
[data-flow="hero"] .uc-q-st { max-width: 100%; line-height: 1.4; }
[data-flow="hero"] .uc-sent dd, [data-flow="hero"] .uc-fields dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-flow="hero"] .uc-fields dd, [data-flow="hero"] .uc-fields > div.na dd { font-size: 14px; height: 20px; line-height: 20px; }
[data-flow="hero"] .uc-out { min-height: 58px; display: flex; align-items: center; }
[data-flow="hero"] .uc-l { white-space: nowrap; }
.sc-st small { display: block; }
.sc-st.sub { color: var(--ink); }
.sc-later { display: inline-block; margin-bottom: 8px; padding: 2px 7px; border: 1px dashed var(--ink); font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity 300ms var(--ease); }
.sc-later.on { opacity: 1; }
.sc-msgs { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.sc-msgs li { position: relative; padding: 6px 8px 6px 22px; border: 1px solid var(--line); font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; line-height: 1.35; color: var(--muted); transition: border-color 240ms var(--ease), color 240ms var(--ease); }
.sc-msgs li.act { border-color: var(--ink); color: var(--ink); }
.sc-msgs li.done { color: var(--ink); }
.sc-msgs li.done::before, .sc-msgs li.bad::before { position: absolute; left: 8px; content: "✓"; }
.sc-msgs li.bad { border-style: dashed; border-color: var(--ink); color: var(--ink); }
.sc-msgs li.bad::before { content: "?"; font-weight: 700; }
.sc-doc { display: inline-block; margin: 2px 4px 2px; padding: 4px 8px; border: 1px dashed var(--line-strong); font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10.5px; color: var(--faint); transition: border-color 240ms var(--ease), color 240ms var(--ease); }
.sc-doc.on { border-style: solid; border-color: var(--ink); color: var(--ink); font-weight: 600; }

/* No yellow in the new workflow animations: progress shows through borders, weight and neutral badges. */
.uc-plain .uc-stages li.act { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.uc-plain .uc-q.act { background: var(--surface-2); }
.uc-plain .uc-q-st.review, .uc-plain .sc-st.review { background: var(--surface); border: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; }
.uc-plain .uc-q-st.review::before, .uc-plain .sc-st.review::before { content: "! "; }
.uc-plain .uc-fields > div.on dd span { background-image: none; }
:root[data-theme="dark"] .uc-plain .uc-fields > div.on dd span { box-shadow: none; }
.uc-plain .uc-fields > div.on { border-color: var(--line-strong); }
.uc-plain .uc-fields > div.na { border-color: var(--ink); border-style: dashed; }
.uc-plain .uc-fields > div.na dd { color: var(--ink); font-weight: 650; }
.uc-plain .uc-l.on { border-color: var(--ink); }
.uc-plain .uc-out.flag { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); font-weight: 600; }
.uc-plain .sc-row.act { background: var(--surface-2); }
.uc-plain .sc-st.ok b { padding: 0; background: none; color: inherit; }
.uc-plain .sc-bot { box-shadow: 8px 8px 0 rgba(21, 24, 26, .14); }
.uc-plain .sc-log li.flag { color: #FFFFFF; font-weight: 600; }
.uc-plain .sc-log li.cur::after { background: var(--panel-ink); }
.uc-plain .sc-rules span { color: var(--panel-muted); }
.uc-plain .sc-pk { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.uc-plain .sc-submit.press { background: var(--surface-2); color: var(--ink); }
.uc-plain .sc-card { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); border-left-width: 5px; transform: none; }
.uc-plain .sc-card.in { animation-name: sc-card-plain; }
@keyframes sc-card-plain { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---- Patient data (PHI): what happens to the data, under the systems scene ---- */
.uc-phi { margin-top: clamp(28px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line-strong); }
.uc-phi-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.uc-phi-h { font-family: var(--f-display); font-stretch: 112%; font-weight: 720; font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -.015em; }
.uc-phi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.uc-phi-grid > div { padding: 18px 24px 20px; }
.uc-phi-grid > div + div { border-left: 1px solid var(--line); }
.uc-phi-grid dt { font-weight: 700; font-size: 15px; }
.uc-phi-grid dd { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.uc-phi-links { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .uc-phi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .uc-phi-grid > div:nth-child(3) { border-left: 0; } .uc-phi-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .uc-phi-grid { grid-template-columns: minmax(0, 1fr); } .uc-phi-grid > div + div { border-left: 0; border-top: 1px solid var(--line); } .uc-phi-head, .uc-phi-grid > div, .uc-phi-links { padding-inline: 18px; } }

/* ---- Security page ---- */
.sec-hero .lead { margin-top: 18px; max-width: 62ch; }
.sec-list { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1.5px solid var(--ink); }
.sec-list li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.sec-list li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-stretch: 87.5%; font-size: 12px; color: var(--muted); padding-top: 6px; }
.sec-list h2 { grid-column: 2; font-family: var(--f-display); font-stretch: 112%; font-weight: 720; font-size: clamp(21px, 2vw, 27px); line-height: 1.15; letter-spacing: -.02em; }
.sec-list p { grid-column: 3; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.sec-list p + p { margin-top: -2px; }
.sec-ask { margin-top: 32px; font-size: 16px; color: var(--ink-2); }
@media (max-width: 900px) { .sec-list li { grid-template-columns: 40px minmax(0, 1fr); } .sec-list h2, .sec-list p { grid-column: 2; } }

/* ---- Related workflows: a numbered index in revenue-cycle order, each with its measured result ---- */
.uc-related { padding-block: var(--sec-y); }
.uc-next-h { margin-top: 14px; }
.uc-next { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.uc-next li { border-bottom: 1px solid var(--line-strong); }
.uc-next-row { display: grid; grid-template-columns: 56px minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, .95fr) 24px; gap: 8px 24px; align-items: baseline; padding: 22px 0 20px; color: var(--ink); }
.uc-next-n { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.uc-next-t { justify-self: start; font-family: var(--f-display); font-stretch: 112%; font-weight: 720; font-size: clamp(21px, 2vw, 28px); line-height: 1.12; letter-spacing: -.025em; padding-inline: .12em; margin-inline: -.12em; background-image: var(--marker); background-repeat: no-repeat; background-position: 0 50%; background-size: 0% 100%; transition: background-size 320ms var(--ease); }
.uc-next-d { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.uc-next-p { display: grid; gap: 3px; font-size: 15px; line-height: 1.3; }
.uc-next-p b { font-family: var(--f-display); font-stretch: 112%; font-weight: 780; font-size: 20px; letter-spacing: -.02em; padding-bottom: 1px; box-shadow: inset 0 -3px 0 #F2C230; }
.uc-next-p small { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; color: var(--muted); }
.uc-next .arr { justify-self: end; font-size: 18px; transition: transform var(--t-fast) var(--ease); }
a.uc-next-row:hover .uc-next-t, a.uc-next-row:focus-visible .uc-next-t { background-size: 100% 100%; color: #15181A; }
a.uc-next-row:hover .uc-next-n { color: var(--ink); }
a.uc-next-row:hover .arr { transform: translateX(4px); }
.uc-next .here .uc-next-t, .uc-next .here .uc-next-d { color: var(--muted); }
.uc-here { justify-self: start; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line-strong); color: var(--muted); }
@media (max-width: 1000px) {
  .uc-next-row { grid-template-columns: 40px minmax(0, 1fr) 24px; grid-template-areas: "n t a" ". d ." ". p ."; gap: 8px 14px; }
  .uc-next-n { grid-area: n; } .uc-next-t { grid-area: t; } .uc-next-d { grid-area: d; } .uc-next-p { grid-area: p; margin-top: 4px; } .uc-next .arr { grid-area: a; }
}

/* Rows where the workflow name and its case-study link are separate links (no nested links):
   the name's link covers the row, the case-study link sits above it. */
.uc-next li { position: relative; }
a.uc-next-t::after { content: ""; position: absolute; inset: 0; }
.uc-next-p small a { position: relative; z-index: 1; text-decoration: underline; text-underline-offset: 2px; }
.uc-next-p small a:hover { color: var(--ink); }
.uc-next li:hover a.uc-next-t, a.uc-next-t:focus-visible { background-size: 100% 100%; color: #15181A; }
.uc-next li:hover .uc-next-n { color: var(--ink); }
.uc-next li:hover .arr { transform: translateX(4px); }
.uc-plain .sc-row { grid-template-columns: 52px minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.sc-docs { margin-top: 8px; }
@media (max-width: 420px) { .uc-plain .sc-row { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.1fr); } }

/* ---- Talk to us: the page's contact card, drawn as a paper note (the page's one hard offset shadow) ---- */
