/* "For home health agencies" (service cards) and "Questions". Both stay readable without JavaScript or motion.
   Service cards use the How-we-work glass card (.glass / .vis in process.css) with their own small looping visual;
   the loops run only while the cards are in view (.live, js/process.js and js/service.js). Also used by the service pages. */
.explore, .faq { position: relative; z-index: 2; background: var(--bg); scroll-margin-top: 90px; }
.explore { padding: 96px 0 104px; }
.explore::before { content: ""; position: absolute; inset: 34% 0 0; pointer-events: none; z-index: -1;
  background: radial-gradient(40% 50% at 18% 60%, rgba(105, 129, 242, .14), transparent 70%), radial-gradient(38% 46% at 52% 72%, rgba(121, 176, 238, .18), transparent 70%), radial-gradient(36% 44% at 86% 58%, rgba(124, 211, 238, .14), transparent 70%); }
.explore-intro { max-width: 62ch; margin-top: 6px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.service-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 52px 0 0; padding: 0; list-style: none; }

/* One card = one link (the title's link covers the whole card). */
.sl-card { gap: 10px; padding-bottom: 24px; transition: box-shadow .3s ease, transform .45s var(--spring, ease); }
.sl-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(47, 80, 237, .1), 0 40px 70px -44px rgba(11, 20, 64, .45); }
.sl-h { margin: 6px 0 0; font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -.005em; text-wrap: balance; }
.sl-h a { color: var(--ink); text-decoration: none; }
.sl-h a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.sl-h a:focus-visible { outline: none; }
.sl-card:has(.sl-h a:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.sl-card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.sl-card .learn-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; color: var(--blue); }
.sl-arrow { width: 12px; height: 12px; transition: transform .35s var(--spring, ease); }
.sl-card:hover .sl-arrow { transform: translateX(3px); }
.sl-card .vis { height: 124px; }

/* Small UI parts shared by the visuals */
.vis .vx-row, .vis .vi-src, .vis .vi-case { position: absolute; display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid rgba(17, 19, 24, .09); box-shadow: 0 10px 22px -16px rgba(11, 20, 64, .4); font-size: 12.5px; color: var(--ink); white-space: nowrap; }
/* scoped to the service cards, at zero specificity: the How-we-work cards share .vis and keep their own icon sizes */
:where(.sl-card .vis) svg { width: 14px; height: 14px; flex: none; stroke-width: 1.3; color: var(--blue); }
.vx-row { left: 14px; right: 14px; height: 40px; padding: 0 8px 0 12px; border-radius: 12px; }
.vx-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vx-t em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); margin-left: 4px; }
.vx-st { margin-left: auto; display: grid; }
.vx-p { grid-area: 1 / 1; justify-self: end; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-style: normal; background: rgba(17, 19, 24, .05); color: var(--muted); opacity: 0; }
.vx-p svg { width: 11px; height: 11px; stroke-width: 1.7; color: currentColor; }
.vx-p.ok { background: #E8EDFF; color: #1E3CC8; }
.vx-p.warn { background: #FFF3E2; color: #8A5A12; }
.vx-p.soft { background: #EEF2FF; color: #3D57C9; }
.vx-dots { display: inline-flex; gap: 2px; margin-right: 1px; }
.vx-dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.live .vx-dots i { animation: vx-dot 1s ease-in-out infinite; }
.vx-dots i:nth-child(2) { animation-delay: .15s; } .vx-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes vx-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* 1 · Intake: fax, email and portal documents flow into one referral; its three checks tick, then it is ready */
.vi-src { left: 14px; height: 28px; padding: 0 10px 0 8px; border-radius: 9px; color: var(--muted); }
.vi-src svg { width: 13px; height: 13px; }
.vi-1 { top: 12px; } .vi-2 { top: 47px; } .vi-3 { top: 82px; }
.vi-case { right: 14px; top: 16px; width: 150px; height: 92px; padding: 10px 12px; border-radius: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
.vi-h { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.vi-ticks { display: flex; gap: 6px; }
.vi-ticks i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(17, 19, 24, .18); background: #fff; }
.vi-ticks svg { width: 10px; height: 10px; stroke-width: 2; color: #fff; opacity: 0; }
.vi-ok { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: #E8EDFF; color: #1E3CC8; font-size: 12px; opacity: 0; }
.vi-ok svg { width: 11px; height: 11px; stroke-width: 1.7; color: currentColor; }
.live .vi-1 { animation: vi-src1 7s cubic-bezier(.45, 0, .25, 1) infinite; }
.live .vi-2 { animation: vi-src2 7s cubic-bezier(.45, 0, .25, 1) infinite; }
.live .vi-3 { animation: vi-src3 7s cubic-bezier(.45, 0, .25, 1) infinite; }
.live .vi-t1 { animation: vi-t1 7s ease infinite; } .live .vi-t1 svg { animation: vi-tk1 7s ease infinite; }
.live .vi-t2 { animation: vi-t2 7s ease infinite; } .live .vi-t2 svg { animation: vi-tk2 7s ease infinite; }
.live .vi-t3 { animation: vi-t3 7s ease infinite; } .live .vi-t3 svg { animation: vi-tk3 7s ease infinite; }
.live .vi-ok { animation: vi-ok 7s cubic-bezier(.3, 1.4, .55, 1) infinite; }
@keyframes vi-src1 { 0%, 8% { transform: none; opacity: 1; } 20% { transform: translateX(56px); opacity: 0; } 21% { transform: none; opacity: 0; } 25%, 90% { transform: none; opacity: .4; } 100% { opacity: 1; } }
@keyframes vi-src2 { 0%, 22% { transform: none; opacity: 1; } 34% { transform: translateX(56px); opacity: 0; } 35% { transform: none; opacity: 0; } 39%, 90% { transform: none; opacity: .4; } 100% { opacity: 1; } }
@keyframes vi-src3 { 0%, 36% { transform: none; opacity: 1; } 48% { transform: translateX(56px); opacity: 0; } 49% { transform: none; opacity: 0; } 53%, 90% { transform: none; opacity: .4; } 100% { opacity: 1; } }
@keyframes vi-t1 { 0%, 19% { background: #fff; border-color: rgba(17, 19, 24, .18); } 22%, 92% { background: var(--blue); border-color: var(--blue); } 100% { background: #fff; border-color: rgba(17, 19, 24, .18); } }
@keyframes vi-t2 { 0%, 33% { background: #fff; border-color: rgba(17, 19, 24, .18); } 36%, 92% { background: var(--blue); border-color: var(--blue); } 100% { background: #fff; border-color: rgba(17, 19, 24, .18); } }
@keyframes vi-t3 { 0%, 47% { background: #fff; border-color: rgba(17, 19, 24, .18); } 50%, 92% { background: var(--blue); border-color: var(--blue); } 100% { background: #fff; border-color: rgba(17, 19, 24, .18); } }
@keyframes vi-tk1 { 0%, 19% { opacity: 0; } 23%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vi-tk2 { 0%, 33% { opacity: 0; } 37%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vi-tk3 { 0%, 47% { opacity: 0; } 51%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vi-ok { 0%, 56% { opacity: 0; transform: translateY(5px) scale(.94); } 62%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 2 · Insurance: eligibility is checked and active, then the authorization goes from pending to approved */
.vc-r1 { top: 18px; } .vc-r2 { top: 66px; }
.live .vc-r2 { animation: vx-arrive 7s cubic-bezier(.3, 1.4, .55, 1) infinite; }
.vis-cover .vc-r2 { opacity: .35; }
.live .vc-a1 { animation: vc-a1 7s ease infinite; } .live .vc-a2 { animation: vc-a2 7s cubic-bezier(.3, 1.4, .55, 1) infinite; }
.live .vc-b1 { animation: vc-b1 7s ease infinite; } .live .vc-b2 { animation: vc-b2 7s cubic-bezier(.3, 1.4, .55, 1) infinite; }
@keyframes vx-arrive { 0%, 32% { opacity: .35; transform: translateY(4px); } 38%, 92% { opacity: 1; transform: none; } 100% { opacity: .35; } }
@keyframes vc-a1 { 0%, 3% { opacity: 0; } 6%, 26% { opacity: 1; } 29%, 100% { opacity: 0; } }
@keyframes vc-a2 { 0%, 27% { opacity: 0; transform: translateY(5px) scale(.94); } 32%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes vc-b1 { 0%, 36% { opacity: 0; } 40%, 62% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes vc-b2 { 0%, 63% { opacity: 0; transform: translateY(5px) scale(.94); } 68%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 3 · Billing: a denied claim is corrected and paid, then the payment is posted and reconciled */
.vb-r1 { top: 18px; } .vb-r2 { top: 66px; }
.vis-claim .vb-r2 { opacity: .35; }
.live .vb-r2 { animation: vb-arrive 7s cubic-bezier(.3, 1.4, .55, 1) infinite; }
.live .vb-a1 { animation: vb-a1 7s ease infinite; } .live .vb-a2 { animation: vb-a2 7s ease infinite; } .live .vb-a3 { animation: vb-a3 7s cubic-bezier(.3, 1.4, .55, 1) infinite; }
.live .vb-b1 { animation: vb-b1 7s cubic-bezier(.3, 1.4, .55, 1) infinite; }
@keyframes vb-arrive { 0%, 54% { opacity: .35; transform: translateY(4px); } 60%, 92% { opacity: 1; transform: none; } 100% { opacity: .35; } }
@keyframes vb-a1 { 0%, 3% { opacity: 0; } 6%, 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes vb-a2 { 0%, 23% { opacity: 0; } 27%, 42% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes vb-a3 { 0%, 43% { opacity: 0; transform: translateY(5px) scale(.94); } 48%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes vb-b1 { 0%, 66% { opacity: 0; transform: translateY(5px) scale(.94); } 72%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Without motion (or before the cards are in view on a reduced-motion device): the finished state. */
@media (prefers-reduced-motion: reduce) {
  .vis-intake .vi-src { opacity: .45; }
  .vis-intake .vi-ticks i { background: var(--blue); border-color: var(--blue); }
  .vis-intake .vi-ticks svg, .vis-intake .vi-ok { opacity: 1; }
  .vc-a2, .vc-b2, .vb-a3, .vb-b1 { opacity: 1; }
  .vis-cover .vc-r2, .vis-claim .vb-r2 { opacity: 1; }
  .sl-card, .sl-arrow { transition: none; }
}

/* ---------- Questions ---------- */
.faq { padding: 40px 0 112px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { display: grid; gap: 14px; justify-items: start; position: sticky; top: calc(var(--head-h, 72px) + 24px); }
.faq-more { margin-top: 8px; font-size: 16px; color: var(--muted); }
.faq-more a { color: var(--blue); text-underline-offset: 3px; }
.faq-list { display: grid; gap: 12px; }
.qa { position: relative; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .56)); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(17, 19, 24, .05), 0 18px 40px -36px rgba(11, 20, 64, .35); transition: box-shadow .35s ease, background-color .35s ease; }
.qa.is-open, .no-js .qa[open] { background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .74)); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(47, 80, 237, .08), 0 34px 64px -44px rgba(11, 20, 64, .4); }
.qa summary { display: flex; align-items: center; gap: 20px; padding: 22px 22px 22px 26px; cursor: pointer; list-style: none; border-radius: inherit; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.qa-q { flex: 1; font-size: 19px; line-height: 1.4; }
.qa-x { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(17, 19, 24, .05); transition: background-color .3s ease, transform .5s var(--spring, cubic-bezier(.3, 1.4, .55, 1)); }
.qa-x::before, .qa-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; border-radius: 1px; background: var(--ink); transition: background-color .3s ease; }
.qa-x::after { transform: rotate(90deg); }
.qa summary:hover .qa-x { background: rgba(17, 19, 24, .09); }
.qa.is-open .qa-x, .no-js .qa[open] .qa-x { transform: rotate(135deg); background: var(--blue); }
.qa.is-open .qa-x::before, .qa.is-open .qa-x::after, .no-js .qa[open] .qa-x::before, .no-js .qa[open] .qa-x::after { background: #fff; }
.qa-a { overflow: hidden; }
.qa-in { display: grid; gap: 20px; padding: 0 26px 26px; }
.qa-in p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.qa-in a { color: var(--blue); text-underline-offset: 3px; }
.qa-demo { max-width: 560px; }
.qa-demo .dm { min-height: 0; }

@media (max-width: 1000px) {
  .service-links { grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 560px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .faq-head { position: static; }
}
@media (max-width: 640px) {
  .explore { padding: 64px 0 72px; }
  .service-links { margin-top: 36px; }
  .faq { padding: 16px 0 72px; }
  .qa { border-radius: 18px; }
  .qa summary { padding: 18px 16px 18px 20px; gap: 14px; }
  .qa-q { font-size: 17px; }
  .qa-in { padding: 0 16px 18px 20px; gap: 16px; }
  .qa-in p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .qa, .qa-x, .qa-x::before, .qa-x::after { transition: none; } }
