/* Olvia home: pinned hero stage, the "What we handle" drawer, the lower sections and the footer.
   Tokens come from index.html (--bg #F4F5F8, --ink #111318, --blue #2F50ED). Per-frame motion is transform / opacity only. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button { font: inherit; color: inherit; }
.ps-h:focus { outline: none; }
.ps-h:focus-visible { outline: 2px solid var(--blue); outline-offset: 8px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* One reveal for everything: fade + small rise on the shared spring (gentle overshoot, settle). */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .2s ease, transform .3s ease; }
.in .rv, .rv.in {
  opacity: 1; transform: none;
  transition: opacity .5s ease calc(var(--d, 0) * 80ms), transform var(--spring-ms, .8s) var(--spring, cubic-bezier(.3, 1.4, .55, 1)) calc(var(--d, 0) * 80ms);
}

/* ---------- Step content ---------- */
.ps-h { margin: 0; font-weight: 400; display: grid; gap: 18px; justify-items: start; }
.ps-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ps-num { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.ps-ico { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(17, 19, 24, .5); border-radius: 6px; color: var(--ink); }
.ps-ico svg, .d-tab-ico svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round; }
.ps-title { display: block; font-size: clamp(28px, 2.9vw, 40px); line-height: 1.1; letter-spacing: -.018em; text-wrap: balance; max-width: 21ch; }
.ps-text { margin: 20px 0 0; font-size: 16.5px; line-height: 1.6; color: #2b2e36; max-width: 44ch; }
.ps-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; line-height: 1.2; padding: 8px 13px 8px 11px; border-radius: 999px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(17, 19, 24, .09); }
.ps-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, var(--blue)); }

/* ---------- Pinned stage ---------- */
/* The stage pins at the top of the viewport and runs up under the transparent header (its content starts below the
   header), so the ring is never cut by a hard edge: what passes under the header fades into the page colour. */
.pin-track { position: relative; margin-top: calc(-1 * var(--head-h, 72px)); }
.pin-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
@supports (height: 100svh) { .pin-stage { height: 100svh; } }
.pin-col { position: relative; padding-top: var(--head-h, 72px); }
.pin-col.animating { will-change: transform; }

/* ---------- The drawer from under the ring ---------- */
/* It lives inside the hero, painted before (under) the ring canvas. .d-top (tab bar + close) is a sibling of the card with
   z-index 3, so it sits above the canvas and stays clickable right under the ring; card and tab bar move together. */
.pull { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 16px; border-radius: 999px; border: 1px solid rgba(17, 19, 24, .16); background: rgba(244, 245, 248, .86); font-size: 14px; line-height: 1.2; cursor: pointer; transition: opacity .3s ease; animation: pull-in .9s ease 2.6s backwards; }
@keyframes pull-in { from { opacity: 0; transform: translate(-50%, 6px); } }
.pull svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pull:hover { border-color: rgba(17, 19, 24, .4); }
.d-open .pull { opacity: 0; pointer-events: none; }
/* While the drawer is open the headline steps back (on tall screens it would otherwise peek in, cut, above the ring). */
.hero-text { transition: opacity .45s ease, transform .6s ease; }
.d-open .hero-text { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.drawer { position: absolute; left: 0; right: 0; top: calc(var(--hh) - var(--lip, 270px)); height: calc(var(--lip, 270px) + var(--dh, 0px)); overflow: hidden; pointer-events: none; visibility: hidden; }
.drawer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--top-off, 24px); pointer-events: none; background: linear-gradient(var(--bg), rgba(244, 245, 248, 0)); }
.d-open .drawer { visibility: visible; }
/* Layers, bottom to top: the card background (.d-card, its top band runs under the ring's front row), the ring canvas,
   then the tab bar (.d-top) and the step content (.d-body), both z-index 3. All three move together (transforms). */
.d-card, .d-top, .d-body { position: absolute; left: 0; right: 0; margin-inline: auto; width: min(1200px, calc(100% - 48px)); transform: translate3d(0, -2000px, 0); }
.drawer.animating .d-card, .drawer.animating .d-top, .drawer.animating .d-body { will-change: transform; }
.d-card { top: var(--top-off, 34px); height: var(--card-h, 600px); pointer-events: none; border-radius: 28px; border: 1px solid rgba(17, 19, 24, .07); background: linear-gradient(180deg, rgba(227, 235, 255, .96), rgba(255, 255, 255, .97) 150px, #fff); box-shadow: 0 30px 70px -48px rgba(11, 20, 64, .4); }
.d-body { z-index: 3; top: calc(var(--top-off, 34px) + var(--body-top, 150px)); padding: 0 44px 36px; pointer-events: auto; }
.d-top { z-index: 3; top: calc(var(--top-off, 34px) + var(--pad-top, 80px)); padding-inline: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: auto; opacity: 0; }
.d-bar { position: relative; min-width: 0; padding-bottom: 8px; }
.d-tabs { position: relative; display: inline-flex; max-width: 100%; padding: 3px; border-radius: 12px; background: rgba(236, 239, 245, .92); box-shadow: inset 0 0 0 1px rgba(17, 19, 24, .04); }
.d-ind { position: absolute; top: 3px; bottom: 3px; left: 0; width: 100px; transform-origin: 0 50%; border-radius: 9px; background: #fff; box-shadow: 0 2px 10px rgba(11, 20, 64, .1); }
.d-ind.animating { will-change: transform; }
.d-tab { position: relative; z-index: 1; display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border: 0; border-radius: 9px; background: none; cursor: pointer; font-size: 14px; line-height: 1.2; color: var(--muted); white-space: nowrap; transition: color .25s ease; }
.d-tab:hover, .d-tab[aria-selected="true"] { color: var(--ink); }
.d-tab-ico { display: inline-grid; }
.d-tab-num { display: none; font-size: 12.5px; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--muted); }
/* Scroll progress: a thin line under the tab bar, filling through the active tab as its segment is scrolled. */
.d-prog { position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(17, 19, 24, .07); }
.d-prog i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #2F50ED, #6981F2 30%, #1F74DE 55%, #79B0EE 78%, #4FB6D6); transform-origin: 0 50%; transform: scaleX(0); }
/* Previous / next step: icon-only round buttons at the right of the tab bar row. */
.d-nav { display: flex; gap: 8px; flex: none; }
.d-arrow { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(17, 19, 24, .16); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s ease, opacity .2s ease; }
.d-arrow svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.d-arrow:hover:not(:disabled) { border-color: rgba(17, 19, 24, .45); }
.d-arrow:disabled { opacity: .35; cursor: default; }
.d-stack { position: relative; display: grid; }
.d-panel { grid-area: 1 / 1; align-self: start; visibility: hidden; opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.d-panel.in { visibility: visible; opacity: 1; transform: none; transition: opacity .4s ease .06s, transform var(--spring-ms, .7s) var(--spring, ease) .06s, visibility 0s; }
.d-panel.out { visibility: visible; opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease; }
.d-pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); column-gap: 64px; align-items: start; }
/* Every step must fit the stage without any inner scrolling. js/process.js steps down through these levels until the
   tallest step fits: fit-1 tightens spacing (and scales the demo on wide screens), fit-2 also drops the points line,
   fit-3 (phones) sets the title and paragraph a little tighter. Phones never scale the demo: its text stays >= 12 px. */
.drawer.fit-1 .ps-h { gap: 12px; }
.drawer.fit-1 .ps-text { margin-top: 10px; }
.drawer.fit-1 .ps-points { margin-top: 10px; }
.drawer.fit-1 .d-pin { row-gap: 12px; }
.drawer.fit-2 .ps-points { display: none; }
@media (min-width: 761px) {
  .drawer.fit-1 .d-demo .dm { zoom: .88; }
  .drawer.fit-2 .d-demo .dm { zoom: .8; }
}
@media (max-width: 1100px) { .d-body { padding-inline: 32px; } .d-top { padding-inline: 32px; } .d-pin { column-gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); } .d-tab { padding-inline: 12px; } }
@media (max-width: 860px) { .d-tab-ico { display: none; } .d-tab { padding-inline: 12px; } }
@media (max-width: 760px) {
  .d-card, .d-top, .d-body { width: calc(100% - 20px); }
  .d-card { border-radius: 22px; }
  .d-body { padding: 0 16px 14px; }
  .d-top { padding-inline: 16px; }
  .d-top { gap: 8px; }
  .d-nav { gap: 6px; }
  /* Phones: the steps are a sideways-scrolling strip of labelled tabs (44 px targets); vertical swipes still scroll the
     page (no vertical overflow here). The active tab is scrolled into view by js/process.js. */
  .d-bar { flex: 1 1 auto; padding-bottom: 7px; }
  .d-tabs { display: flex; width: 100%; padding: 3px; border-radius: 11px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
  .d-tabs::-webkit-scrollbar { display: none; }
  .d-tabs.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .d-tabs.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
  .d-tabs.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
  .d-ind { border-radius: 8px; }
  .d-tab { gap: 6px; padding: 0 13px; font-size: 14px; scroll-snap-align: center; }
  .d-tab-num { display: inline; }
  .d-pin { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  /* Balance: the stack is as tall as the tallest step. Every panel fills it; the text keeps the top (the title has one
     position for all steps) and the mockup is centred in the space left under the text. */
  .d-panel { align-self: stretch; display: grid; }
  .d-pin { grid-template-rows: auto minmax(0, 1fr); }
  .d-pin > .d-demo { align-self: center; }
  /* The active tab already says "03 Insurance": the kicker stays for screen readers only. */
  .d-panel .ps-kicker { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* Points become one quiet line instead of pills. */
  .ps-points { gap: 4px 14px; }
  .ps-points li { padding: 0; border: 0; background: none; font-size: 12.5px; color: var(--muted); gap: 6px; }
  .ps-points li::before { width: 5px; height: 5px; }
  .pull { bottom: 16px; }
  /* Phones: compact step content so a whole step fits the pinned stage. */
  .ps-title { font-size: 24px; line-height: 1.12; }
  .ps-text { margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
  .ps-points { margin-top: 10px; }
  .drawer.fit-3 .ps-title { font-size: 22px; }
  .drawer.fit-3 .ps-text { font-size: 14px; line-height: 1.45; }
  /* fit-3 also sets the mockup a little tighter (spacing only; text stays >= 12 px) */
  .drawer.fit-3 .d-pin { row-gap: 10px; }
  .drawer.fit-3 .dm { padding: 10px; }
  .drawer.fit-3 .dm-body { gap: 8px; }
  .drawer.fit-3 .dm-card { gap: 7px; padding-block: 8px; }
}
/* Narrow and short (e.g. 320 x 640): the authorization status pill wraps under its title there, so the terms pill
   goes, keeping Insurance as tall as the other steps and the whole step on screen. */
@media (max-width: 360px) { .drawer.fit-3 .dm-ins .dm-terms { display: none; } }

/* ---------- Lower sections: How we work · Patient data · closing call to action ----------
   Same visual language as the hero and the steps: frosted glass in the ring's blues, concept-UI cards, Olvia blue.
   Each loop is a CSS animation on transform / opacity only. It exists only while its visual is in view (.live, set by
   js/process.js), so it starts from its first frame each time you arrive and costs nothing off screen. The base styles
   are each loop's first frame; under reduced motion the visuals show their last (complete) frame, still. */
.sec-head { display: grid; gap: 14px; justify-items: start; }
.sec-h { margin: 0; font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.sec-h span { display: block; }
.sec-h em { display: block; font-style: normal; color: var(--blue); }
.values, .data, .cta { position: relative; z-index: 2; background: var(--bg); scroll-margin-top: var(--head-h, 72px); content-visibility: auto; }

/* How we work: headline over three frosted glass cards, each with a small looping concept visual. */
.values { padding: 120px 0 112px; contain-intrinsic-size: auto 760px; }
.values::before { content: ""; position: absolute; inset: 30% 0 0; pointer-events: none; z-index: -1;
  background: radial-gradient(40% 50% at 18% 60%, rgba(105, 129, 242, .16), transparent 70%), radial-gradient(38% 46% at 52% 72%, rgba(121, 176, 238, .2), transparent 70%), radial-gradient(36% 44% at 86% 58%, rgba(124, 211, 238, .16), transparent 70%); }
.values-cards { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.glass { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 8px; align-content: start; padding: 22px 24px 26px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .58)); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(47, 80, 237, .06), 0 34px 64px -44px rgba(11, 20, 64, .38); }
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(110% 70% at 100% 0%, rgba(121, 176, 238, .26), transparent 62%), radial-gradient(90% 60% at 0% 100%, rgba(166, 232, 216, .2), transparent 62%); }
.glass > b { font-weight: 600; font-size: 18px; line-height: 1.3; margin-top: 6px; }
.glass > span { font-size: 16px; line-height: 1.5; color: var(--muted); }
.vis { position: relative; height: 112px; margin: -4px -4px 8px; border-radius: 16px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(17, 19, 24, .06); overflow: hidden; }
.vis svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
/* 1 · referral to first visit: the marker glides along a path whose end keeps coming closer */
.vs-line { position: absolute; left: 24px; right: 24px; top: 66px; height: 2px; border-radius: 2px; background: rgba(17, 19, 24, .08); }
.vs-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #2F50ED, #79B0EE); transform-origin: left; transform: scaleX(0); }
.vs-run { position: absolute; left: 24px; right: 24px; top: 61px; height: 12px; opacity: 0; }
.vs-dot { position: absolute; left: -6px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.5px solid var(--blue); box-shadow: 0 0 0 6px rgba(47, 80, 237, .12); }
.vs-node { position: absolute; top: 32px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.vs-a { left: 24px; }
.vs-end { position: absolute; left: 24px; right: 24px; top: 0; bottom: 0; opacity: 0; }
.vs-b { right: 0; display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.vs-b svg { width: 12px; height: 12px; stroke-width: 1.8; color: var(--blue); opacity: 0; transform: scale(.4); }
.vs-end::after { content: ""; position: absolute; right: -5px; top: 62px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.live .vs-fill { animation: vs-fill 6s cubic-bezier(.45, 0, .25, 1) infinite; }
.live .vs-run { animation: vs-run 6s cubic-bezier(.45, 0, .25, 1) infinite; }
.live .vs-end { animation: vs-end 6s cubic-bezier(.45, 0, .25, 1) infinite; }
.live .vs-b svg { animation: vs-tick 6s ease infinite; }
@keyframes vs-end { 0% { transform: translateX(0); opacity: 0; } 6%, 10% { transform: translateX(0); opacity: 1; } 70%, 92% { transform: translateX(-38%); opacity: 1; } 100% { transform: translateX(-38%); opacity: 0; } }
@keyframes vs-run { 0%, 8% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 70%, 92% { transform: translateX(62%); opacity: 1; } 100% { transform: translateX(62%); opacity: 0; } }
@keyframes vs-fill { 0%, 10% { transform: scaleX(0); opacity: 1; } 70%, 92% { transform: scaleX(.62); opacity: 1; } 100% { transform: scaleX(.62); opacity: 0; } }
@keyframes vs-tick { 0%, 68% { opacity: 0; transform: scale(.4); } 76%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
/* 2 · claim status: the track fills Submitted -> Accepted -> Paid */
.vp-line { position: absolute; left: calc(16.67% + 4px); right: calc(16.67% + 4px); top: 46px; height: 2px; border-radius: 2px; background: rgba(17, 19, 24, .08); }
.vp-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.vp-node { position: absolute; top: 37px; width: 33.33%; display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.vp-1 { left: 0; } .vp-2 { left: 33.33%; } .vp-3 { left: 66.66%; }
.vp-node i { position: relative; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1.5px solid rgba(17, 19, 24, .2); }
.vp-node svg { position: absolute; inset: -1.5px; width: 20px; height: 20px; padding: 4.5px; border-radius: 50%; background: var(--blue); color: #fff; stroke-width: 2; opacity: 0; transform: scale(.4); }
.live .vp-fill { animation: vp-fill 6s cubic-bezier(.45, 0, .25, 1) infinite; }
.live .vp-1 svg { animation: vp-n1 6s ease infinite; }
.live .vp-2 svg { animation: vp-n2 6s ease infinite; }
.live .vp-3 svg { animation: vp-n3 6s ease infinite; }
@keyframes vp-fill { 0%, 14% { transform: scaleX(0); opacity: 1; } 40% { transform: scaleX(.5); } 66%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes vp-n1 { 0%, 6% { transform: scale(.4); opacity: 0; } 12%, 92% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes vp-n2 { 0%, 38% { transform: scale(.4); opacity: 0; } 44%, 92% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes vp-n3 { 0%, 64% { transform: scale(.4); opacity: 0; } 72%, 92% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
/* 3 · documents fold into one checked card */
.vd-chip, .vd-card { position: absolute; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 10px; background: #fff; border: 1px solid rgba(17, 19, 24, .1); box-shadow: 0 10px 22px -16px rgba(11, 20, 64, .4); }
.vd-chip svg, .vd-card > svg { width: 14px; height: 14px; stroke-width: 1.3; color: var(--blue); }
.vd-chip i, .vd-card i { display: block; width: 46px; height: 6px; border-radius: 3px; background: rgba(17, 19, 24, .1); }
.vd-chip { top: 39px; left: 50%; margin-left: -44px; }
.vd-1 { transform: translate(-82%, -28%) rotate(-6deg); }
.vd-2 { transform: translate(0, -46%) rotate(3deg); }
.vd-3 { transform: translate(82%, 22%) rotate(7deg); }
.vd-card { top: 33px; left: 50%; margin-left: -62px; height: 46px; padding: 0 12px; border-color: rgba(47, 80, 237, .3); box-shadow: 0 16px 30px -18px rgba(47, 80, 237, .5); opacity: 0; transform: scale(.6); }
.vd-card i { width: 54px; }
.vd-card b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.vd-card b svg { width: 12px; height: 12px; stroke-width: 2; }
.live .vd-1 { animation: vd-1 6s cubic-bezier(.45, 0, .25, 1) infinite; }
.live .vd-2 { animation: vd-2 6s cubic-bezier(.45, 0, .25, 1) infinite; }
.live .vd-3 { animation: vd-3 6s cubic-bezier(.45, 0, .25, 1) infinite; }
.live .vd-card { animation: vd-card 6s cubic-bezier(.3, 1.4, .55, 1) infinite; }
@keyframes vd-1 { 0% { transform: translate(-82%, -28%) rotate(-6deg); opacity: 0; } 6%, 12% { transform: translate(-82%, -28%) rotate(-6deg); opacity: 1; } 52% { transform: none; opacity: 1; } 58%, 100% { transform: scale(.8); opacity: 0; } }
@keyframes vd-2 { 0% { transform: translate(0, -46%) rotate(3deg); opacity: 0; } 6%, 16% { transform: translate(0, -46%) rotate(3deg); opacity: 1; } 52% { transform: none; opacity: 1; } 58%, 100% { transform: scale(.8); opacity: 0; } }
@keyframes vd-3 { 0% { transform: translate(82%, 22%) rotate(7deg); opacity: 0; } 6%, 20% { transform: translate(82%, 22%) rotate(7deg); opacity: 1; } 52% { transform: none; opacity: 1; } 58%, 100% { transform: scale(.8); opacity: 0; } }
@keyframes vd-card { 0%, 52% { transform: scale(.6); opacity: 0; } 62%, 92% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }

/* Patient data: the words on one side, a concept access log on the other (its rows are written in turn). */
.data { padding: 40px 0 112px; contain-intrinsic-size: auto 640px; }
.data-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 7vw, 112px); align-items: center; }
.data-text { display: grid; gap: 14px; justify-items: start; }
.data-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.data-points li { display: grid; gap: 2px; padding-left: 18px; position: relative; }
.data-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(47, 80, 237, .12); }
.data-points b { font-weight: 600; font-size: 17px; }
.data-points span { font-size: 16px; line-height: 1.5; color: var(--muted); }
.log { position: relative; isolation: isolate; overflow: hidden; padding: 22px; border-radius: 24px; display: grid; gap: 14px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(121, 176, 238, .26), transparent 58%), radial-gradient(90% 80% at 0% 100%, rgba(105, 129, 242, .12), transparent 60%), linear-gradient(170deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .62));
  border: 1px solid rgba(17, 19, 24, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 60px -44px rgba(11, 20, 64, .4); }
.log-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.log-h svg { width: 16px; height: 16px; stroke-width: 1.4; color: var(--blue); fill: none; stroke: currentColor; stroke-linejoin: round; }
.log-h b { font-weight: 500; }
.log-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.log-live i { width: 7px; height: 7px; border-radius: 50%; background: #3DBE8B; }
.log-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* each row sits on a faint empty slot, so the card keeps its shape while the rows are written in */
.log-rows li { position: relative; min-height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .45); border: 1px dashed rgba(17, 19, 24, .1); font-size: 14px; }
.log-rows li > span:first-child { margin-left: 14px; }
.log-rows li::before { content: ""; position: absolute; inset: -1px; z-index: 0; border-radius: inherit; background: #fff; border: 1px solid rgba(17, 19, 24, .08); box-shadow: 0 10px 24px -18px rgba(11, 20, 64, .35); }
.log-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-right: 14px; }
.log-rows li::before, .log-rows li > * { opacity: 0; }
.log-rows li > * { position: relative; z-index: 1; }
.lr-k { font-weight: 500; white-space: nowrap; }
.lr-v { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-t { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lr-ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #E8EDFF; color: #1E3CC8; }
.lr-ok svg { width: 12px; height: 12px; stroke-width: 2; fill: none; stroke: currentColor; }
.live .log-live i { animation: log-live 1.6s ease-in-out infinite; }
/* one 8 s cycle for the whole log: rows are written one after another, stay, and clear together */
.live .log-rows .lr-1::before, .live .log-rows .lr-1 > * { animation: log-r1 8s ease infinite; }
.live .log-rows .lr-2::before, .live .log-rows .lr-2 > * { animation: log-r2 8s ease infinite; }
.live .log-rows .lr-3::before, .live .log-rows .lr-3 > * { animation: log-r3 8s ease infinite; }
.live .log-rows .lr-4::before, .live .log-rows .lr-4 > * { animation: log-r4 8s ease infinite; }
@keyframes log-live { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes log-r1 { 0%, 4% { opacity: 0; transform: translateY(8px); } 10%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes log-r2 { 0%, 17% { opacity: 0; transform: translateY(8px); } 23%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes log-r3 { 0%, 30% { opacity: 0; transform: translateY(8px); } 36%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes log-r4 { 0%, 43% { opacity: 0; transform: translateY(8px); } 49%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }

/* Closing call to action: a soft blue glass panel with a little grain and frosted glass slabs drifting at its edges. */
.cta { padding: 24px 0 112px; contain-intrinsic-size: auto 560px; }
.cta-panel { --cta-radius: 36px; position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center; gap: 32px; min-height: 420px; padding: 88px 40px; border-radius: var(--cta-radius); text-align: center;
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 40px 80px -56px rgba(11, 20, 64, .24); }
/* Clip every decorative layer together; keep the panel's outer shadow outside this clip. */
.cta-art { position: absolute; inset: 0; z-index: -1; isolation: isolate; pointer-events: none; overflow: hidden; border-radius: inherit; clip-path: inset(0 round var(--cta-radius));
  background: radial-gradient(70% 90% at 15% 10%, rgba(255, 255, 255, .85), transparent 60%), radial-gradient(60% 80% at 90% 100%, rgba(166, 232, 216, .55), transparent 65%), linear-gradient(135deg, #EAF0FF 0%, #D6E2FF 38%, #C3D5FA 66%, #CBE6F4 100%);
}
.cta-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: soft-light; border-radius: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.cta-slab { position: absolute; pointer-events: none; overflow: visible; filter: blur(var(--bl, 0px)) drop-shadow(0 20px 24px rgba(47, 80, 237, .16)); }
.cs-1 { left: -46px; top: -30px; width: 230px; height: 150px; transform: rotate(-14deg); }
.cs-2 { right: -40px; top: 38px; width: 170px; height: 112px; transform: rotate(12deg); --bl: 10px; }
.cs-3 { left: 9%; bottom: -70px; width: 200px; height: 130px; transform: rotate(8deg); --bl: 14px; }
.cs-4 { right: 7%; bottom: -54px; width: 190px; height: 124px; transform: rotate(-10deg); }
.live .cs-1 { animation: cs-1 18s ease-in-out infinite alternate; }
.live .cs-2 { animation: cs-2 22s ease-in-out infinite alternate; }
.live .cs-3 { animation: cs-3 20s ease-in-out infinite alternate; }
.live .cs-4 { animation: cs-4 16s ease-in-out infinite alternate; }
@keyframes cs-1 { to { transform: translate(34px, 20px) rotate(-8deg); } }
@keyframes cs-2 { to { transform: translate(-30px, 26px) rotate(18deg); } }
@keyframes cs-3 { to { transform: translate(44px, -16px) rotate(2deg); } }
@keyframes cs-4 { to { transform: translate(-28px, -22px) rotate(-4deg); } }
.cta-h { margin: 0; max-width: 18ch; font-weight: 400; font-size: clamp(34px, 5vw, 64px); line-height: 1.06; letter-spacing: -.022em; color: var(--ink); text-wrap: balance; }
.cta .cta-btn { font-size: 17px; padding: 16px 26px; border-radius: 14px; gap: 10px; box-shadow: 0 18px 34px -18px rgba(11, 20, 64, .6); transition: transform .3s var(--spring, ease), box-shadow .3s ease; }
.cta .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 40px -18px rgba(11, 20, 64, .6); }
.cta .cta-btn svg { width: 13px; height: 13px; }

@media (max-width: 860px) {
  .values-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 520px; }
  .data-grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
}
@media (max-width: 640px) {
  .values { padding: 80px 0 72px; }
  .values-cards { margin-top: 36px; }
  .glass { padding: 18px 18px 22px; border-radius: 20px; }
  .glass > b { font-size: 17px; }
  .glass > span { font-size: 15px; }
  .data { padding: 24px 0 72px; }
  .data-points b { font-size: 16px; }
  .data-points span { font-size: 15px; }
  .log { padding: 16px; border-radius: 20px; }
  .log-rows li { gap: 10px; padding-right: 12px; font-size: 13.5px; }
  .log-rows li > span:first-child { margin-left: 12px; }
  .cta { padding: 8px 0 72px; }
  .cta-panel { --cta-radius: 28px; min-height: 360px; padding: 64px 22px; gap: 26px; }
  .cs-1 { width: 150px; height: 100px; left: -52px; }
  .cs-2 { width: 110px; height: 76px; right: -44px; }
  .cs-3 { width: 140px; height: 92px; bottom: -56px; }
  .cs-4 { width: 130px; height: 86px; bottom: -44px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta .cta-btn { transition: none; }
  /* the still state is the complete frame of each loop */
  .vs-end, .vs-run { opacity: 1; } .vs-end { transform: translateX(-38%); } .vs-run { transform: translateX(62%); } .vs-fill { transform: scaleX(.62); } .vs-b svg { opacity: 1; transform: none; }
  .vp-fill { transform: scaleX(1); } .vp-node svg { opacity: 1; transform: none; }
  .vd-chip { opacity: 0; } .vd-card { transform: none; opacity: 1; }
  .log-rows li::before, .log-rows li > * { opacity: 1; }
}

/* ---------- Footer: logo left; "Privacy · ©" together on the right (under the logo, left-aligned, on phones) ---------- */
.foot { position: relative; z-index: 2; padding: 40px 0 48px; scroll-margin-top: var(--head-h, 72px); content-visibility: auto; contain-intrinsic-size: auto 140px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--muted); padding-top: 32px; background: linear-gradient(var(--rule), var(--rule)) center top / calc(100% - 2 * var(--pad)) 1px no-repeat; }
.foot-brand { display: inline-flex; align-items: center; gap: 14px; }
.foot img { display: block; height: 22px; width: auto; }
.foot p { margin: 0; }
.foot-r { margin-left: auto; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 10px; font-size: 13px; color: #686F7E; letter-spacing: .01em; }
.foot-r a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.foot-r a:hover { color: var(--ink); }
.foot-sep { color: #A3A8B4; }
@media (max-width: 640px) {
  .foot .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .foot-r { margin-left: 0; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .rv, .in .rv, .rv.in, .d-panel, .d-panel.in, .d-panel.out, .pull, .hero-text { transition: none !important; animation: none !important; }
}
