/* "What Ledger does for you": the step-by-step app recordings in the phone (flows.js). The phone, its place and the
   white callout come from .pshot/.pph/.pcall in ledger.css; this adds the screen layers, the tap ripple and the dots. */
.pshot.fl .pph .pscr { aspect-ratio: 600 / 1304; isolation: isolate; }
.pshot.fl .fl-st { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform .8s cubic-bezier(.45,.05,.25,1); }
/* No zoom (owner, 28 Nov): the whole screen always shows, at its real size. */
.pshot.fl .fl-st.z { transform: none; }
.pshot.fl .pph img.fl-l { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transform: none; transform-origin: 50% 50%; opacity: 1; filter: none;
  transition: transform .55s cubic-bezier(.32,.72,0,1), opacity .4s ease, filter .55s ease; }
/* Where a new screen starts. */
.pshot.fl .pph img.fl-l.fr { transform: translateX(100%); transition: none; }
.pshot.fl .pph img.fl-l.fb { transform: translateY(100%); transition: none; }
.pshot.fl .pph img.fl-l.fs { transform: translateY(28%); opacity: 0; transition: none; }
.pshot.fl .pph img.fl-l.ff { opacity: 0; transition: none; }
.pshot.fl .pph img.fl-l.cur { box-shadow: -8px 0 24px -12px rgba(16,34,30,.35); }
/* Where the old screen goes. */
.pshot.fl .pph img.fl-l.tl { transform: translateX(-28%); filter: brightness(.82); }
.pshot.fl .pph img.fl-l.dim { filter: brightness(.86); }
.pshot.fl .pph img.fl-l.tu { transform: translateY(-28%); opacity: 0; }
.pshot.fl .pph img.fl-l.td { transform: translateY(100%); }
/* The tap: a green press and a ring that opens out. */
.fl-tap { position: absolute; z-index: 5; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; pointer-events: none;
  background: rgba(62,154,110,.32); box-shadow: 0 0 0 2px rgba(62,154,110,.95); opacity: 0; transform: scale(.4); }
.fl-tap.go { animation: fltap .75s ease-out; }
@keyframes fltap { 0% { opacity: 0; transform: scale(.35); } 25% { opacity: 1; transform: scale(.85); } 45% { opacity: 1; transform: scale(.75); } 100% { opacity: 0; transform: scale(1.7); } }
/* The caption changes with each step. */
.pshot.fl .pcall { min-width: 150px; }
.fl-cap { display: block; }
.fl-cap.swap { animation: flcap .45s cubic-bezier(.3,1.3,.5,1); }
@keyframes flcap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Step dots under the phone. */
.fl-dots { position: absolute; left: 58%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 2px; opacity: 0; transition: opacity .3s ease .4s; }
.pshot.in .fl-dots { opacity: 1; }
.fl-dots i { display: block; width: 18px; height: 18px; cursor: pointer; position: relative; }
.fl-dots i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 4px; background: var(--heat2); opacity: .55; transition: width .3s ease, margin .3s ease, background .3s ease, opacity .3s ease; }
.fl-dots i.on::after { width: 18px; margin-left: -9px; background: var(--heat3); opacity: 1; }
@media (max-width: 900px) { .fl-dots { left: 60%; bottom: 4px; } }
@media (prefers-reduced-motion: reduce) {
  .pshot.fl .fl-st, .pshot.fl .pph img.fl-l { transition: none; }
  .pshot.fl .fl-st.z { transform: none; }
  .fl-tap.go, .fl-cap.swap { animation: none; }
}
