/* The patient app, under the customer's name. Home's brand film in its frame,
   and under it the five things a patient does in the app, lighting one after
   another and staying lit, as ADHD does it. One component for Home and
   Medical Cannabis; the heading and the sentence are each page's own.

   It sits on navy or on cream: the frame's border and shadow follow. */
.patient { padding-top: var(--sec-top, clamp(72px, 12vh, 150px)); padding-bottom: var(--sec-bot, clamp(64px, 10vh, 130px)); }
.patient-in { max-width: var(--maxw, 1240px); margin: 0 auto; padding-inline: var(--pad-x, 26px); }
.patient .head { margin-bottom: clamp(30px, 5vh, 56px); }
.patient .head h2 { margin: 0 0 14px; font-weight: 800; font-size: clamp(32px, 4.2vw, 58px); letter-spacing: -0.035em; line-height: 1.0; max-width: 16ch; text-wrap: balance; }
.patient .head p { margin: 0; font-size: 16.5px; font-weight: 300; max-width: 48ch; }
.on-navy .patient .head p, .patient.on-navy .head p { color: rgb(245 247 250 / 0.76); }
.on-cream .patient .head p, .patient.on-cream .head p { color: var(--on-cream-q, #556070); }
.patient .film { position: relative; border-radius: 18px; overflow: hidden; max-width: 1100px; aspect-ratio: 16 / 9; background: #0a0c18;
                 border: 1px solid rgb(245 247 250 / 0.12); box-shadow: 0 34px 80px rgb(0 0 0 / 0.5); }
.on-cream .patient .film, .patient.on-cream .film { border-color: #e3e7ee; box-shadow: 0 30px 70px rgb(25 28 43 / 0.22); }
.patient .film video, .patient .film .fp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.patient .film .fp { transition: opacity .5s ease; }
.patient .film.playing .fp { opacity: 0; }
.patient .filmnote { margin: 12px 0 0; font-size: 13px; display: none; opacity: .7; }
.patient .filmnote.on { display: block; }
@media (prefers-reduced-motion: reduce) { .patient .film video { display: none; } .patient .film .fp { opacity: 1 !important; } }
/* the five, lighting in turn and staying lit */
.patient .five { margin: clamp(30px, 5vh, 58px) 0 0; display: flex; flex-wrap: wrap; gap: .14em clamp(14px, 2.4vw, 32px); }
.patient .five span { position: relative; font-weight: 800; letter-spacing: -.055em; line-height: 1.14; font-size: clamp(30px, 4.6vw, 66px); color: rgb(128 132 160 / 0.35); transition: color .5s ease; }
.on-cream .patient .five span, .patient.on-cream .five span { color: rgb(25 28 43 / 0.22); }
.patient .five span i { position: absolute; left: 0; right: .2em; bottom: -.06em; height: .05em; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.patient .five span.on i { transform: none; }
.patient .five span:nth-child(1).on { color: #7076b6; }
.patient .five span:nth-child(2).on { color: #8f93c6; }
.patient .five span:nth-child(3).on { color: #aaadd1; }
.patient .five span:nth-child(4).on { color: #cbcde2; }
.patient .five span:nth-child(5).on { color: var(--on-navy, #f5f7fa); }
.on-cream .patient .five span:nth-child(5).on, .patient.on-cream .five span:nth-child(5).on { color: var(--ink, #191c2b); }
.on-cream .patient .five span:nth-child(4).on, .patient.on-cream .five span:nth-child(4).on { color: #5a5fa7; }
html:not(.js) .patient .five span { color: var(--violet-soft, #aaadd1); } html:not(.js) .patient .five span i { transform: none; }
@media (prefers-reduced-motion: reduce) { .patient .five span i { transform: none; } }

/* the hand-off flyer: the third of the five, standing in for it while it
   travels into the payments heading. Font and size are copied from the word
   by the move; the colour and the underline follow the word's lit state. */
.pay-fly { position: absolute; margin: 0; white-space: nowrap; pointer-events: none; z-index: 5; font-weight: 800; transition: color .5s ease; }
.pay-fly b { font-weight: inherit; }
.pay-fly i { position: absolute; left: 0; right: .2em; bottom: -.06em; height: .05em; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.pay-fly.on i { transform: none; }
.pay-fly.landed i { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .five .tx-from { display: inline; visibility: visible; } .pay-fly { display: none; } }
