/* "Films": korte, herhalende animaties die laten zien hoe PDF Stack werkt. Alleen CSS:
   tabs met radioknoppen, alles schaalt mee met de breedte (cqw), elke film heeft één duur (--dur)
   en alle onderdelen lopen op dezelfde klok. Bij prefers-reduced-motion staat alles stil. */

.films { max-width: 1060px; margin: 0 auto; }
.films__radio { position: absolute; opacity: 0; pointer-events: none; }
.films__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.films__tabs label {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
  height: 46px; padding: 0 20px 0 8px; border-radius: 999px; border: 1px solid #2A2E36;
  color: #B9BFCA; font-weight: 600; font-size: .95rem; transition: background .18s, color .18s, border-color .18s;
}
.films__tabs label:hover { border-color: #4A505C; color: #fff; }
.films__tabs label > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #23262E; font-size: .82rem; }
.films__tabs em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(107,228,191,.14); color: var(--mint); }
#film-sign:checked ~ .films__tabs label[for="film-sign"],
#film-edit:checked ~ .films__tabs label[for="film-edit"],
#film-send:checked ~ .films__tabs label[for="film-send"] { background: #fff; border-color: #fff; color: var(--ink); }
#film-sign:checked ~ .films__tabs label[for="film-sign"] > span,
#film-edit:checked ~ .films__tabs label[for="film-edit"] > span,
#film-send:checked ~ .films__tabs label[for="film-send"] > span { background: var(--red); color: #fff; }
#film-sign:focus-visible ~ .films__tabs label[for="film-sign"],
#film-edit:focus-visible ~ .films__tabs label[for="film-edit"],
#film-send:focus-visible ~ .films__tabs label[for="film-send"] { outline: 2.5px solid var(--mint); outline-offset: 3px; }

.film { display: none; margin: 0; container-type: inline-size; }
#film-sign:checked ~ .films__stage .film--sign,
#film-edit:checked ~ .films__stage .film--edit,
#film-send:checked ~ .films__stage .film--send { display: block; }
.film--sign { --dur: 10s; }
.film--edit { --dur: 9s; }
.film--send { --dur: 14s; }

.film__in {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px;
  background: #0E1014; border: 1px solid #2A2E36; color: #E8EAEF; font-size: 1.4cqw;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03);
}
/* Zachte overgang aan het eind van elke herhaling. */
.film__in::after { content: ""; position: absolute; inset: 0; z-index: 60; background: #0E1014; opacity: 0; pointer-events: none; animation: f-fade var(--dur) infinite; }
@keyframes f-fade { 0% { opacity: 1; } 3%, 95% { opacity: 0; } 100% { opacity: 1; } }

.film__prog { display: block; height: 3px; margin-top: 16px; border-radius: 3px; background: #23262E; overflow: hidden; }
.film__prog::before { content: ""; display: block; height: 100%; background: var(--mint); transform-origin: left; animation: f-prog var(--dur) linear infinite; }
@keyframes f-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.film figcaption { margin: 18px auto 0; max-width: 46em; text-align: center; color: #A9AFBA; font-size: 1.02rem; }
.film figcaption b { color: #fff; }

/* ---------- Gedeelde onderdelen van het app-venster ---------- */
.fw-bar { position: absolute; left: 0; right: 0; top: 0; height: 8%; display: flex; align-items: center; gap: 1.6cqw; padding: 0 1.8cqw; background: #15171C; border-bottom: 1px solid #262A33; color: #C5CAD3; font-size: 1.2cqw; font-weight: 500; }
.film .dots { gap: .6cqw; }
.film .dots i { width: .9cqw; height: .9cqw; }
.fw-tools { position: absolute; left: 0; right: 0; top: 8%; height: 10%; background: #15171C; border-bottom: 1px solid #262A33; }
.fw-btn { position: absolute; top: 10%; height: 6%; display: flex; align-items: center; justify-content: center; border-radius: .8cqw; font-size: 1.2cqw; font-weight: 500; color: #B9BFCA; }
.fs-b1, .fe-b1 { left: 2.5%; width: 9%; }
.fs-b2 { left: 12.5%; width: 16%; }
.fs-b3 { left: 29.5%; width: 12%; }
.fw-page { position: absolute; background: #fff; color: #22252B; border-radius: .3cqw .3cqw 0 0; box-shadow: 0 2cqw 5cqw rgba(0,0,0,.5); }
.pg-kicker { font-size: .9cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8A8F98; }
.pg-h { margin-top: .5cqw; font-size: 2.2cqw; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.pg-t { margin-top: 1.3cqw; font-size: 1.3cqw; line-height: 1.7; }
.pg-t--muted { color: #6B6F78; }
.pg-l { display: block; height: .5cqw; margin-top: 1cqw; background: #E3E5E9; border-radius: 2px; }
.pg-l.w60 { width: 60%; } .pg-l.w70 { width: 70%; } .pg-l.w80 { width: 80%; } .pg-l.w90 { width: 90%; }
.film svg path { fill: none; stroke: #1A3B8F; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.f-cursor { position: absolute; z-index: 40; width: 2.6cqw; height: 2.6cqw; transform-origin: 8% 8%; filter: drop-shadow(0 .3cqw .5cqw rgba(0,0,0,.45)); animation-duration: var(--dur); animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.film .f-cursor path { fill: #fff; stroke: #111; stroke-width: 1.4; }
.f-toast { position: absolute; z-index: 30; left: 50%; bottom: 6%; padding: 1cqw 2cqw; border-radius: 999px; background: #fff; color: #16181D; font-size: 1.3cqw; font-weight: 600; white-space: nowrap; box-shadow: 0 1.5cqw 4cqw rgba(0,0,0,.45); opacity: 0; transform: translateX(-50%); }
.f-toast::first-letter { color: #1E7A4F; }
.fe-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; background: #16181D; vertical-align: text-bottom; visibility: hidden; }
@keyframes f-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ================= Film 1: handtekening zetten (14 s) =================
   Zoals in de app: paneel Handtekeningen, ontgrendelen met Windows Hello, toets 1,
   handtekening zweeft mee met de muis, klikken, Ctrl+S, vergrendelen, verzegeld. */
.film--sign { --dur: 14s; }
.fs-page { left: 5%; width: 57%; top: 22%; bottom: 0; padding: 3cqw 4cqw; }
.fs-landlord { position: absolute; left: 10%; top: 75%; width: 20%; height: 10%; }
.fs-landlord svg, .fs-ghost svg, .fs-placed svg, .fs-card svg { display: block; width: 100%; height: 100%; }
.fs-line { position: absolute; top: 86%; height: 1.5px; background: #C9CDD4; }
.fs-line--1 { left: 9%; width: 22%; }
.fs-line--2 { left: 35%; width: 22%; }
.fs-cap { position: absolute; top: 87.5%; font-size: 1cqw; color: #8A8F98; }
.fs-cap--1 { left: 9%; }
.fs-cap--2 { left: 35%; }
.fs-placed { position: absolute; left: 35%; top: 75%; width: 22%; height: 10%; opacity: 0; animation: fs-placed var(--dur) infinite; }
.fs-banner { position: absolute; left: 5%; width: 57%; top: 18%; height: 4%; display: flex; align-items: center; justify-content: center; background: #1E2A26; color: var(--mint); font-size: 1.05cqw; font-weight: 600; opacity: 0; animation: fs-banner var(--dur) infinite; }

/* paneel rechts */
.fs-panel { position: absolute; left: 66%; right: 0; top: 18%; bottom: 0; padding: 1.6cqw 1.8cqw; background: #15171C; border-left: 1px solid #262A33; transform: translateX(105%); animation: fs-panel var(--dur) infinite; }
.fs-panel__h { font-size: 1.45cqw; font-weight: 700; color: #fff; }
.fs-locked, .fs-open { position: absolute; left: 1.8cqw; right: 1.8cqw; top: 5cqw; }
.fs-locked { text-align: center; padding-top: 2.4cqw; animation: fs-locked var(--dur) infinite; }
.fs-lockicon { display: inline-grid; place-items: center; width: 5cqw; height: 5cqw; border-radius: 50%; background: #23262E; font-size: 2.2cqw; }
.fs-locked p { margin-top: 1.4cqw; font-size: 1.05cqw; line-height: 1.5; color: #9AA1AE; }
.fs-unlock { display: inline-block; margin-top: 1.8cqw; padding: .9cqw 2.4cqw; border-radius: 999px; background: var(--mint); color: #0B0B0C; font-size: 1.15cqw; font-weight: 700; animation: fs-unlock var(--dur) infinite; }
.fs-open { opacity: 0; animation: fs-open var(--dur) infinite; }
.fs-hint { font-size: 1cqw; color: #9AA1AE; line-height: 1.45; }
.fs-card { position: relative; margin-top: 1.3cqw; height: 10cqw; background: #fff; border-radius: 1cqw; border: 2px solid transparent; color: #16181D; }
.fs-card--2 { height: 7.5cqw; }
.fs-card b { position: absolute; left: 1cqw; top: 1cqw; display: grid; place-items: center; width: 2cqw; height: 2cqw; border-radius: .5cqw; background: #16181D; color: #fff; font-size: 1cqw; }
.fs-card__name { position: absolute; left: 3.8cqw; top: 1.1cqw; font-size: 1.05cqw; font-weight: 600; }
.fs-card em { position: absolute; right: 1cqw; top: 1.1cqw; font-style: normal; font-size: .95cqw; font-weight: 600; color: #1F9E7A; opacity: 0; animation: fs-armlabel var(--dur) infinite; }
.fs-card svg { position: absolute; left: 12%; bottom: 6%; width: 76%; height: 58%; }
.fs-card--2 svg { height: 50%; }
.fs-card--1 { animation: fs-armcard var(--dur) infinite; }
.fs-new { margin-top: 1.3cqw; padding: .9cqw; border: 1.5px dashed #3A404C; border-radius: 1cqw; text-align: center; font-size: 1.05cqw; color: #B9BFCA; }

/* zweven en plaatsen */
.fs-ghost { position: absolute; z-index: 35; left: 67%; top: 37%; width: 22%; height: 10%; opacity: 0; animation: fs-ghost var(--dur) ease-in-out infinite; }
.fs-pill { position: absolute; z-index: 30; left: 33.5%; bottom: 4%; transform: translateX(-50%); display: flex; align-items: center; gap: 1cqw; padding: .8cqw .8cqw .8cqw 1.6cqw; border-radius: 999px; background: #16181D; color: #fff; font-size: 1.1cqw; font-weight: 500; white-space: nowrap; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.45); opacity: 0; animation: fs-pill var(--dur) infinite; }
.film kbd { display: inline-grid; place-items: center; min-width: 2.6cqw; height: 2.6cqw; padding: 0 .7cqw; border-radius: .6cqw; background: #2A2E36; border-bottom: .25cqw solid #121418; color: #fff; font: 600 1.1cqw Inter, sans-serif; }
.fs-pill kbd { background: #3A404C; border: 0; height: 2.2cqw; font-size: .95cqw; }
.fs-key { position: absolute; z-index: 45; left: 3%; bottom: 7%; display: flex; align-items: center; gap: .6cqw; padding: 1cqw; border-radius: 1.2cqw; background: rgba(255,255,255,.96); color: #16181D; font-weight: 700; font-size: 1.4cqw; box-shadow: 0 1.5cqw 4cqw rgba(0,0,0,.5); opacity: 0; }
.fs-key kbd { min-width: 4cqw; height: 4cqw; font-size: 1.7cqw; background: #fff; color: #16181D; border: 1px solid #D5D8DE; border-bottom: .35cqw solid #B9BEC7; }
.fs-key--1 { animation: fs-key1 var(--dur) infinite; }
.fs-key--s { animation: fs-keys var(--dur) infinite; }

/* Windows Hello */
.fs-dim { position: absolute; inset: 0; z-index: 46; background: #000; opacity: 0; }
.fs-dim--hello { animation: fs-dimhello var(--dur) infinite; }
.fs-dim--seal { animation: fs-dimseal var(--dur) infinite; }
.fs-hello { position: absolute; z-index: 47; left: 33%; top: 26%; width: 34%; height: 46%; padding: 2.2cqw; border-radius: 1.2cqw; background: #202329; border: 1px solid #3A404C; box-shadow: 0 3cqw 6cqw rgba(0,0,0,.6); opacity: 0; animation: fs-hello var(--dur) infinite; }
.fs-hello__t { font-size: 1.15cqw; color: #9AA1AE; font-weight: 600; }
.fs-hello__s { margin-top: 1cqw; font-size: 1.35cqw; color: #fff; font-weight: 600; line-height: 1.35; }
.fs-hello__face, .fs-hello__ok { position: absolute; left: 50%; top: 66%; width: 7cqw; height: 7cqw; margin: -3.5cqw 0 0 -3.5cqw; display: grid; place-items: center; border-radius: 50%; }
.fs-hello__face svg { width: 6cqw; height: 6cqw; }
.film .fs-hello__face path { stroke: #6BB8FF; stroke-width: 2.4; }
.fs-hello__face { animation: fs-face var(--dur) infinite; }
.fs-hello__ok { background: #1F9E7A; color: #fff; font-size: 3.4cqw; font-weight: 800; opacity: 0; transform: scale(.6); animation: fs-ok var(--dur) infinite; }

/* Vergrendelen */
.fs-seal { position: absolute; z-index: 47; left: 26%; top: 26%; width: 48%; height: 46%; padding: 2.4cqw 2.6cqw; border-radius: 1.4cqw; background: #fff; color: #16181D; box-shadow: 0 3cqw 6cqw rgba(0,0,0,.6); opacity: 0; animation: fs-seal var(--dur) infinite; }
.fs-seal__icon { font-size: 2cqw; }
.fs-seal__t { margin-top: .6cqw; font-size: 1.8cqw; font-weight: 700; letter-spacing: -.02em; }
.fs-seal__s { margin-top: .9cqw; font-size: 1.1cqw; line-height: 1.5; color: #62666F; }
.fs-seal__no, .fs-seal__yes { position: absolute; bottom: 2.2cqw; padding: .9cqw 1.6cqw; border-radius: 999px; font-size: 1.1cqw; font-weight: 600; white-space: nowrap; }
.fs-seal__no { right: 19cqw; border: 1px solid #CFCBC3; }
.fs-seal__yes { right: 2.6cqw; background: #16181D; color: #fff; animation: fs-press var(--dur) infinite; }

.fs-b2 { animation: fs-btn var(--dur) infinite; }
.film--edit .fs-b2 { animation: none; }
.film .fs-toast1, .film .fs-toast2 { top: auto; bottom: 4%; left: 33.5%; }
.fs-toast1 { animation: fs-toast1 var(--dur) infinite; }
.fs-toast2 { animation: fs-toast2 var(--dur) infinite; }
.fs-cursor { animation-name: fs-cur; }

@keyframes fs-cur {
  0%        { left: 40%;   top: 60%;   transform: scale(1); }
  7%        { left: 20.5%; top: 13%;   transform: scale(1); }
  8%        { left: 20.5%; top: 13%;   transform: scale(.8); }
  9%        { left: 20.5%; top: 13%;   transform: scale(1); }
  16%       { left: 83%;   top: 55%;   transform: scale(1); }
  17.5%     { left: 83%;   top: 55%;   transform: scale(.8); }
  19%, 33%  { left: 83%;   top: 55%;   transform: scale(1); }
  35%       { left: 78%;   top: 42%;   transform: scale(1); }
  50%       { left: 46%;   top: 80%;   transform: scale(1); }
  51.5%     { left: 46%;   top: 80%;   transform: scale(.8); }
  53%       { left: 46%;   top: 80%;   transform: scale(1); }
  58%       { left: 52%;   top: 72%;   transform: scale(1); }
  66%       { left: 66%;   top: 64%;   transform: scale(1); }
  67.5%     { left: 66%;   top: 64%;   transform: scale(.8); }
  69%       { left: 66%;   top: 64%;   transform: scale(1); }
  78%, 100% { left: 78%;   top: 86%;   transform: scale(1); }
}
@keyframes fs-btn { 0%, 8% { background: transparent; color: #B9BFCA; } 9%, 100% { background: rgba(107,228,191,.16); color: #6BE4BF; } }
@keyframes fs-panel { 0%, 9% { transform: translateX(105%); } 12%, 100% { transform: translateX(0); } }
@keyframes fs-unlock { 0%, 17% { transform: none; filter: none; } 17.5% { transform: scale(.94); filter: brightness(.85); } 19%, 100% { transform: none; filter: none; } }
@keyframes fs-locked { 0%, 29.5% { opacity: 1; } 30.5%, 100% { opacity: 0; } }
@keyframes fs-open { 0%, 30% { opacity: 0; transform: translateY(.6cqw); } 32%, 100% { opacity: 1; transform: none; } }
@keyframes fs-dimhello { 0%, 20% { opacity: 0; } 21.5%, 29% { opacity: .45; } 30.5%, 100% { opacity: 0; } }
@keyframes fs-hello { 0%, 20% { opacity: 0; transform: scale(.96); } 21.5%, 29% { opacity: 1; transform: none; } 30.5%, 100% { opacity: 0; transform: none; } }
@keyframes fs-face { 0%, 21% { opacity: 1; transform: scale(1); } 23% { opacity: 1; transform: scale(1.08); } 25% { opacity: 1; transform: scale(1); } 26%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes fs-ok { 0%, 25.5% { opacity: 0; transform: scale(.6); } 27%, 100% { opacity: 1; transform: scale(1); } }
@keyframes fs-key1 { 0%, 31% { opacity: 0; transform: translateY(1cqw); } 32% { opacity: 1; transform: none; } 33% { opacity: 1; transform: scale(.9); } 34%, 36% { opacity: 1; transform: none; } 38%, 100% { opacity: 0; transform: none; } }
@keyframes fs-armcard { 0%, 33% { border-color: transparent; } 33.5%, 52% { border-color: #1F9E7A; } 53.5%, 100% { border-color: transparent; } }
@keyframes fs-armlabel { 0%, 33% { opacity: 0; } 33.5%, 52% { opacity: 1; } 53.5%, 100% { opacity: 0; } }
@keyframes fs-pill { 0%, 33.5% { opacity: 0; transform: translate(-50%, 1cqw); } 35%, 51.5% { opacity: 1; transform: translate(-50%, 0); } 53.5%, 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes fs-ghost {
  0%, 34.9% { left: 67%; top: 37%; opacity: 0; }
  35%       { left: 67%; top: 37%; opacity: .55; }
  50%       { left: 35%; top: 75%; opacity: .55; }
  51%, 100% { left: 35%; top: 75%; opacity: 0; }
}
@keyframes fs-placed { 0%, 51% { opacity: 0; transform: scale(1.08); } 53%, 100% { opacity: 1; transform: scale(1); } }
@keyframes fs-keys { 0%, 55% { opacity: 0; transform: translateY(1cqw); } 56% { opacity: 1; transform: none; } 57.5% { opacity: 1; transform: scale(.92); } 59%, 61% { opacity: 1; transform: none; } 63%, 100% { opacity: 0; transform: none; } }
@keyframes fs-dimseal { 0%, 61% { opacity: 0; } 62.5%, 69.5% { opacity: .45; } 71%, 100% { opacity: 0; } }
@keyframes fs-seal { 0%, 61% { opacity: 0; transform: scale(.96); } 62.5%, 69.5% { opacity: 1; transform: none; } 71%, 100% { opacity: 0; transform: none; } }
@keyframes fs-press { 0%, 67% { transform: none; filter: none; } 67.5% { transform: scale(.95); filter: brightness(1.4); } 69%, 100% { transform: none; filter: none; } }
@keyframes fs-toast1 { 0%, 71% { opacity: 0; transform: translate(-50%, 1cqw); } 72.5%, 78% { opacity: 1; transform: translate(-50%, 0); } 79%, 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes fs-toast2 { 0%, 79% { opacity: 0; transform: translate(-50%, 1cqw); } 80.5%, 93% { opacity: 1; transform: translate(-50%, 0); } 95%, 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes fs-banner { 0%, 80% { opacity: 0; } 82%, 100% { opacity: 1; } }
@keyframes f-toast-a {
  0%, 54% { opacity: 0; transform: translate(-50%, 1cqw); }
  58%, 90% { opacity: 1; transform: translate(-50%, 0); }
  94%, 100% { opacity: 0; transform: translate(-50%, 0); }
}

/* ================= Film 2: tekst wijzigen (9 s) ================= */
.fe-page { left: 10%; width: 80%; top: 22%; bottom: 0; padding: 4cqw 6cqw; }
.fe-page .pg-t { font-family: "Times New Roman", Times, Georgia, serif; font-size: 2.15cqw; }
.fe-page .pg-h { font-size: 2.8cqw; }
.fe-line { outline: 2px dashed transparent; outline-offset: .8cqw; border-radius: .3cqw; animation: fe-box var(--dur) infinite; }
.fe-anchor { position: relative; display: inline-block; }
.fe-old, .fe-new { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.fe-old { max-width: 3em; animation: fe-old var(--dur) infinite; }
.fe-new { max-width: 0; animation: fe-new var(--dur) infinite; }
.film--edit .fe-caret { animation: fe-caretwin var(--dur) infinite, f-blink .9s steps(1) infinite; }
.fe-cursor { left: 30%; top: 55%; animation-name: fe-cur; }
.fe-b1 { animation: fe-btn var(--dur) infinite; }
.fe-fmt { position: absolute; left: 44%; top: 10%; height: 6%; display: flex; align-items: center; gap: 1.2cqw; padding: 0 1.4cqw; background: #1F232B; border: 1px solid #2E333D; border-radius: .8cqw; font-size: 1.15cqw; color: #D8DCE3; opacity: 0; animation: fe-fmt var(--dur) infinite; }
.fe-fmt b { font-weight: 500; font-family: "Times New Roman", Times, serif; font-size: 1.25cqw; }
.fe-fmt span { color: #9AA1AE; }
.fe-B { font-weight: 800; color: #D8DCE3 !important; }
.fe-I { font-style: italic; font-family: Georgia, serif; color: #D8DCE3 !important; }
.fe-dot { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #16181D; box-shadow: 0 0 0 1px #4A505C; }
.fe-toast { animation: fe-toast var(--dur) infinite; }

@keyframes fe-cur {
  0%       { transform: translate(30cqw, 16cqw) scale(1); }
  17%      { transform: translate(0, 0) scale(1); }
  18.5%    { transform: translate(0, 0) scale(.8); }
  20%      { transform: translate(0, 0) scale(1); }
  21.5%    { transform: translate(0, 0) scale(.8); }
  23%      { transform: translate(0, 0) scale(1); }
  33%, 100% { transform: translate(7cqw, 7cqw) scale(1); }
}
@keyframes fe-old {
  0%, 22%  { max-width: 3em; background: transparent; }
  23.5%, 33% { max-width: 3em; background: rgba(56,132,255,.28); }
  34%, 96% { max-width: 0; background: rgba(56,132,255,.28); }
  97%, 100% { max-width: 3em; background: transparent; }
}
@keyframes fe-new {
  0%, 36%  { max-width: 0; animation-timing-function: steps(4, end); }
  48%, 96% { max-width: 1.9em; }
  97%, 100% { max-width: 0; }
}
@keyframes fe-caretwin { 0%, 33% { visibility: hidden; } 34%, 78% { visibility: visible; } 79%, 100% { visibility: hidden; } }
@keyframes fe-box { 0%, 21% { outline-color: transparent; } 23%, 80% { outline-color: #1F9E7A; } 83%, 100% { outline-color: transparent; } }
@keyframes fe-btn {
  0%, 20% { background: transparent; color: #B9BFCA; }
  22%, 80% { background: rgba(107,228,191,.16); color: #6BE4BF; }
  83%, 100% { background: transparent; color: #B9BFCA; }
}
@keyframes fe-fmt { 0%, 21% { opacity: 0; transform: translateY(-.4cqw); } 24%, 80% { opacity: 1; transform: none; } 83%, 100% { opacity: 0; } }
@keyframes fe-toast {
  0%, 56% { opacity: 0; transform: translate(-50%, 1cqw); }
  60%, 90% { opacity: 1; transform: translate(-50%, 0); }
  94%, 100% { opacity: 0; transform: translate(-50%, 0); }
}

/* ================= Film 3: laten tekenen met PDF Stack Sign (14 s) ================= */
.sd-win { position: absolute; left: 3%; top: 7%; width: 56%; height: 86%; overflow: hidden; background: #15171C; border: 1px solid #2A2E36; border-radius: 1.2cqw; }
.sd-form, .sd-status { position: absolute; left: 6%; right: 6%; top: 15%; bottom: 6%; }
.sd-h { font-size: 2.1cqw; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.sd-file { margin-top: .3cqw; font-size: 1.15cqw; color: #9AA1AE; }
.sd-row { position: relative; display: flex; align-items: center; gap: 1.2cqw; margin-top: 1.5cqw; padding: 1.2cqw 1.4cqw; background: #1F232B; border: 1px solid #2E333D; border-radius: 1cqw; font-size: 1.2cqw; }
.sd-row b { flex: none; display: grid; place-items: center; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: #2E333D; color: #fff; font-size: 1cqw; }
.sd-row--on { border-color: var(--mint); }
.sd-name { min-width: 11cqw; font-weight: 600; color: #fff; }
.sd-mail { display: inline-flex; align-items: center; color: #B9BFCA; }
.sd-type { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 0; animation: sd-type var(--dur) infinite; }
.film--send .sd-caret { background: #fff; animation: sd-caretwin var(--dur) infinite, f-blink .9s steps(1) infinite; }
.sd-send { position: absolute; right: 0; bottom: 0; padding: 1.1cqw 2.6cqw; border-radius: 999px; background: var(--red); color: #fff; font-size: 1.3cqw; font-weight: 700; animation: sd-send var(--dur) infinite; }
.sd-form { animation: sd-form var(--dur) infinite; }
.sd-status { opacity: 0; animation: sd-status var(--dur) infinite; }
.sd-ok { margin-left: auto; font-size: 1.1cqw; font-weight: 600; color: var(--mint); }
.sd-wait { margin-left: auto; padding: .3cqw 1cqw; border-radius: 999px; background: rgba(255,209,48,.14); color: #FFD130; font-size: 1.05cqw; font-weight: 600; animation: sd-wait var(--dur) infinite; }
.sd-ok--late { position: absolute; right: 1.4cqw; opacity: 0; animation: sd-late var(--dur) infinite; }
.sd-seal { margin-top: 2cqw; font-size: 1.2cqw; color: #D8DCE3; opacity: 0; animation: sd-seal var(--dur) infinite; }
.sd-cursor { animation-name: sd-cur; }

.ph { position: absolute; left: 65%; top: 5%; width: 30%; height: 90%; padding: .6cqw; background: #0B0B0C; border: .45cqw solid #2A2E36; border-radius: 3.4cqw; box-shadow: 0 3cqw 6cqw rgba(0,0,0,.6); }
.ph__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 2.8cqw; background: linear-gradient(160deg, #2D3444, #141720); }
.ph-home { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 18%; color: #fff; animation: ph-home var(--dur) infinite; }
.ph-home b { font-size: 5.4cqw; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.ph-home span { font-size: 1.15cqw; color: #C5CAD3; }
.ph-notif { position: absolute; left: 5%; right: 5%; top: 6%; display: flex; gap: 1cqw; align-items: center; padding: 1.2cqw; border-radius: 1.6cqw; background: rgba(255,255,255,.94); color: #16181D; font-size: 1.05cqw; transform: translateY(-160%); animation: ph-notif var(--dur) infinite; }
.ph-notif b { display: block; font-size: 1.1cqw; }
.ph-notif span { color: #62666F; }
.ph-app { flex: none; width: 3cqw; height: 3cqw; border-radius: .8cqw; background: linear-gradient(#C8102E, #C8102E) 22% 25% / 45% 30% no-repeat, #0B0B0C; }
.ph-code { position: absolute; inset: 0; padding: 24% 8% 0; text-align: center; background: #fff; color: #16181D; opacity: 0; animation: ph-code var(--dur) infinite; }
.ph-h { font-size: 1.5cqw; font-weight: 700; }
.ph-digits { display: flex; justify-content: center; align-items: center; width: 90%; height: 5cqw; margin: 3cqw auto 0; border-bottom: 2px solid #E2DED5; font-size: 2.8cqw; font-weight: 700; letter-spacing: .45em; }
.ph-dtype { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; padding-left: .45em; animation: ph-type var(--dur) infinite; }
.ph-btn { position: absolute; left: 8%; right: 8%; bottom: 8%; height: 6.5%; display: grid; place-items: center; border-radius: 999px; background: #0B0B0C; color: #fff; font-size: 1.3cqw; font-weight: 700; }
.ph-btn--go { background: #1F9E7A; }
.ph-doc { position: absolute; inset: 0; background: #E9E7E2; opacity: 0; animation: ph-doc var(--dur) infinite; }
.ph-paper { position: absolute; left: 6%; right: 6%; top: 9%; height: 35%; padding: 1.6cqw 1.4cqw; background: #fff; border-radius: .4cqw; }
.ph-signbox { position: absolute; left: 6%; right: 6%; top: 50%; height: 20%; display: grid; place-items: center; background: #fff; border: 2px dashed var(--red); border-radius: 1cqw; }
.ph-signbox span { font-size: 1.15cqw; font-weight: 600; color: var(--red); animation: ph-signlabel var(--dur) infinite; }
.ph-signbox svg { position: absolute; left: 8%; top: 12%; width: 84%; height: 76%; }
.ph-signbox path { stroke-width: 3.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ph-draw var(--dur) infinite; }
.ph-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw; padding: 0 10%; text-align: center; background: #fff; color: #16181D; opacity: 0; animation: ph-done var(--dur) infinite; }
.ph-check { display: grid; place-items: center; width: 8cqw; height: 8cqw; border-radius: 50%; background: #1F9E7A; color: #fff; font-size: 4cqw; font-weight: 800; animation: ph-check var(--dur) infinite; }
.ph-done b { font-size: 2.2cqw; letter-spacing: -.02em; }
.ph-done span { font-size: 1.1cqw; color: #62666F; }
.ph-tap { position: absolute; z-index: 20; width: 5cqw; height: 5cqw; margin: -2.5cqw 0 0 -2.5cqw; border-radius: 50%; background: rgba(31,158,122,.3); border: 2px solid rgba(31,158,122,.85); opacity: 0; animation: ph-tap var(--dur) infinite; }

@keyframes sd-type { 0%, 4% { max-width: 0; animation-timing-function: steps(15, end); } 17%, 100% { max-width: 15ch; } }
@keyframes sd-caretwin { 0%, 2% { visibility: hidden; } 3%, 19% { visibility: visible; } 20%, 100% { visibility: hidden; } }
@keyframes sd-cur {
  0%, 16%  { left: 34%;   top: 58%; transform: scale(1); }
  21%      { left: 49.5%; top: 85%; transform: scale(1); }
  22.5%    { left: 49.5%; top: 85%; transform: scale(.8); }
  24%      { left: 49.5%; top: 85%; transform: scale(1); }
  34%, 100% { left: 38%;  top: 70%; transform: scale(1); }
}
@keyframes sd-send { 0%, 21.5% { transform: none; filter: none; } 22.5% { transform: scale(.94); filter: brightness(.85); } 24%, 100% { transform: none; filter: none; } }
@keyframes sd-form { 0%, 25% { opacity: 1; visibility: visible; } 27%, 100% { opacity: 0; visibility: hidden; } }
@keyframes sd-status { 0%, 26% { opacity: 0; transform: translateY(.8cqw); } 29%, 100% { opacity: 1; transform: none; } }
@keyframes sd-wait { 0%, 79% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes sd-late { 0%, 80% { opacity: 0; transform: scale(.8); } 82%, 100% { opacity: 1; transform: none; } }
@keyframes sd-seal { 0%, 84% { opacity: 0; transform: translateY(.6cqw); } 87%, 100% { opacity: 1; transform: none; } }

@keyframes ph-home { 0%, 37% { opacity: 1; } 39%, 100% { opacity: 0; } }
@keyframes ph-notif {
  0%, 26% { transform: translateY(-160%); opacity: 1; }
  29%, 35.5% { transform: translateY(0) scale(1); opacity: 1; }
  36.5% { transform: translateY(0) scale(.96); opacity: 1; }
  38.5%, 100% { transform: translateY(0) scale(.96); opacity: 0; }
}
@keyframes ph-code { 0%, 37.5% { opacity: 0; } 39.5%, 52% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes ph-type { 0%, 41% { max-width: 0; animation-timing-function: steps(6, end); } 48%, 100% { max-width: 7.2em; } }
@keyframes ph-doc { 0%, 52% { opacity: 0; } 54%, 82% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes ph-signlabel { 0%, 57% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes ph-draw { 0%, 58% { stroke-dashoffset: 1; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes ph-done { 0%, 82% { opacity: 0; } 85%, 100% { opacity: 1; } }
@keyframes ph-check { 0%, 83% { transform: scale(.5); } 87% { transform: scale(1.08); } 89%, 100% { transform: scale(1); } }
@keyframes ph-tap {
  0%, 35%  { left: 50%; top: 13%;    opacity: 0; transform: scale(.5); }
  36%      { left: 50%; top: 13%;    opacity: 1; transform: scale(1); }
  38%, 49.9% { left: 50%; top: 13%;  opacity: 0; transform: scale(1.4); }
  50%      { left: 50%; top: 88.75%; opacity: 0; transform: scale(.5); }
  51%      { left: 50%; top: 88.75%; opacity: 1; transform: scale(1); }
  53%, 55.9% { left: 50%; top: 88.75%; opacity: 0; transform: scale(1.4); }
  56%      { left: 50%; top: 60%;    opacity: 0; transform: scale(.5); }
  57%      { left: 50%; top: 60%;    opacity: 1; transform: scale(1); }
  59%, 73.9% { left: 50%; top: 60%;  opacity: 0; transform: scale(1.4); }
  74%      { left: 50%; top: 88.75%; opacity: 0; transform: scale(.5); }
  75%      { left: 50%; top: 88.75%; opacity: 1; transform: scale(1); }
  77%, 100% { left: 50%; top: 88.75%; opacity: 0; transform: scale(1.4); }
}

@media (max-width: 720px) {
  .films__tabs { gap: 8px; }
  .films__tabs label { height: 40px; font-size: .86rem; padding-right: 14px; }
  .films__tabs label > span { width: 26px; height: 26px; }
  .film__in { border-radius: 12px; }
  .film figcaption { font-size: .95rem; }
}

/* Meldingen boven in beeld, zodat ze niets op de pagina bedekken. */
.f-toast { bottom: auto; top: 21%; }

/* Echte schermopname (site/films/*.mp4). Staat over de animatie heen; zolang er geen bestand is,
   tekent een lege <video> niets en blijft de animatie zichtbaar. */
.film__video { position: absolute; inset: 0; z-index: 55; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
