/* coachfilm.css: the scroll film of the real software on the product page (spec 38). Markup: site/section.html, motion: coachfilm.js.
   The section is 840svh high, as long as the five features it replaces (Ali, 2026-11-15: the scrolling has to be slower): five scenes of
   --scene each plus one viewport. The stage is one viewport and sticks. Colours come from the site tokens; the raw values are only inside the
   desk, which is a picture of a computer screen and does not follow the site theme. */

.film { --scene: 148svh; position: relative; height: calc(5 * var(--scene) + 100svh); isolation: isolate; }   /* no background of its own: the lines of the hero run on behind the stage (beats-pages.js dims them here) */
.film-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.film-view { position: absolute; inset: 0; overflow: hidden; perspective: 1700px; perspective-origin: 50% 50%; }

/* ---- the desk: 1440 by 900 css px, tilted and moved by coachfilm.js ---- */
.film-desk { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-style: preserve-3d; transform-origin: 720px 450px; }
.fd-wall { position: absolute; inset: 0; overflow: hidden; border-radius: 22px; background: linear-gradient(180deg, #10224a 0%, #1f3f77 40%, #3f6aa6 66%, #9a7a62 90%);
  box-shadow: 0 0 0 10px #0b0d14, 0 80px 140px rgba(8, 12, 28, .42), 0 24px 48px rgba(8, 12, 28, .3); font-size: 14px; line-height: 20px; color: #1c1c1e; }
.fd-hill { position: absolute; left: 0; right: 0; bottom: 0; }
.fd-h1 { height: 44%; background: #234f7e; clip-path: polygon(0 38%, 14% 22%, 30% 40%, 46% 12%, 62% 34%, 78% 8%, 100% 30%, 100% 100%, 0 100%); }
.fd-h2 { height: 32%; background: #173b62; clip-path: polygon(0 30%, 18% 48%, 36% 16%, 54% 44%, 72% 22%, 88% 46%, 100% 26%, 100% 100%, 0 100%); }
.fd-h3 { height: 18%; background: #0e2742; clip-path: polygon(0 50%, 22% 20%, 44% 56%, 66% 24%, 86% 52%, 100% 34%, 100% 100%, 0 100%); }
.fd-menu { position: absolute; inset: 0 0 auto 0; height: 28px; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: rgba(10, 16, 32, .34); color: #fff; font-size: 12px; }
.fd-menu b { width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: .9; }
.fd-menu i { width: 48px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .5); }
.fd-menu span { flex: 1; }
/* a generic softphone window behind the real windows (no brand, no text) */
.fd-dialer { position: absolute; left: 440px; top: 56px; width: 960px; height: 790px; border-radius: 12px; background: #fff; box-shadow: 0 24px 60px rgba(8, 16, 36, .38); display: flex; flex-direction: column; overflow: hidden; }
.fd-tb { height: 40px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #f5f5f7; border-bottom: 1px solid #e5e5ea; }
.fd-tb i { width: 12px; height: 12px; border-radius: 50%; background: #d1d1d6; }
.fd-tb span { margin-left: 10px; width: 120px; height: 8px; border-radius: 4px; background: #d1d1d6; }
.fd-body { flex: 1; display: grid; grid-template-columns: 240px 1fr 260px; min-height: 0; }
.fd-list { border-right: 1px solid #e5e5ea; padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.fd-list u { height: 32px; border-radius: 8px; background: #f5f5f7; margin-bottom: 8px; }
.fd-list b { height: 44px; border-radius: 8px; background: #f5f5f7; }
.fd-list b.on { background: #eef1fc; }
.fd-call { padding: 80px 24px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fd-av { width: 84px; height: 84px; border-radius: 50%; background: #eef1fc; }
.fd-call u { height: 12px; border-radius: 6px; background: #d1d1d6; }
.fd-call .fd-n1 { width: 150px; height: 16px; background: #aeaeb2; }
.fd-n2 { width: 100px; }
.fd-live { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px; background: #e6f4ea; color: #18794a; font-weight: 500; font-variant-numeric: tabular-nums; }
.fd-live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fd-btns { display: flex; gap: 16px; margin-top: 28px; }
.fd-btns i { width: 48px; height: 48px; border-radius: 50%; background: #ebebef; }
.fd-btns i.hang { background: #d92d20; }
.fd-notes { border-left: 1px solid #e5e5ea; padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.fd-notes u { height: 10px; border-radius: 5px; background: #e5e5ea; }
.fd-notes u.s { width: 60%; }

/* On a wide screen the camera enlarges the desk up to one and a half times. The backdrop is laid out that much larger and scaled back,
   as the windows are (coachfilm.js, ZOOM), so it is not drawn small and then enlarged. */
@media (min-width: 761px) { @supports (zoom: 1.5) { .fd-wall { inset: auto; left: 0; top: 0; width: 1440px; height: 900px; zoom: 1.5; transform: scale(.66667); transform-origin: 0 0; } } }

/* ---- the three windows ---- */
.fw { position: absolute; opacity: 0; visibility: hidden; pointer-events: none; will-change: transform, opacity; }
.fw iframe { display: block; border: 0; background: transparent; }
.fw-overlay { left: 40px; top: 80px; width: 360px; height: 320px; border-radius: 24px; box-shadow: 0 30px 64px rgba(4, 8, 20, .5), 0 3px 10px rgba(4, 8, 20, .4); }
/* the glass: the overlay document is transparent with a translucent fill, so the blur sits on the iframe element itself */
.fw-overlay iframe { width: 360px; height: 100%; border-radius: 24px; -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); }
.fw-win { border-radius: 12px; overflow: hidden; background: var(--papier); box-shadow: 0 36px 80px rgba(4, 8, 20, .5), 0 4px 14px rgba(4, 8, 20, .35); }
.fw-visual { left: 470px; top: 110px; width: 900px; }
.fw-bar { height: 32px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--nevel); border-bottom: 1px solid var(--lijn-zacht); color: var(--grafiet); font-size: 13px; line-height: 1; font-weight: 500; }
.fw-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--lijn-sterk); }
.fw-bar > span { flex: 1; margin-right: 52px; text-align: center; }
.fw-visual iframe { width: 900px; height: 620px; }
.fw-progress { left: 330px; top: 190px; width: 780px; }
.fw-progress iframe { width: 780px; height: 540px; }
.fw-host { overflow: hidden; }   /* coachfilm.js gives it the size of the window; the iframe in it can be laid out larger and scaled back */

/* ---- the captions ----
   Every caption carries its number, so a visitor sees which of the five points the card under it shows (Ali, 2026-11-15: it was not clear
   which point a card belongs to). On a phone a bar of five segments above the title shows where in the row this point stands. */
.film-caps { position: absolute; z-index: 5; left: clamp(24px, 4vw, 64px); top: 50%; transform: translateY(-50%); width: min(340px, 30vw); margin: 0; padding: 20px 22px 20px 20px; list-style: none; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 14px; border-radius: 24px; background: var(--glass-panel-tint); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--glass-line); }
.film-caps { counter-reset: cap; }
.cap-prog { display: none; }
.cap { counter-increment: cap; padding-left: 14px; border-left: 2px solid var(--lijn-zacht); transition: border-color .4s; }
.cap.is-active { border-color: var(--kobalt); }
.cap-title { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--grafiet); opacity: .6; transition: color .4s, opacity .4s; }
.cap.is-active .cap-title { color: var(--inkt); opacity: 1; }
.cap-title { display: flex; align-items: center; gap: 10px; }
.cap-title::before { content: counter(cap); flex: none; display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; font-size: .72em; line-height: 1; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums;
  color: var(--grafiet); box-shadow: inset 0 0 0 1.5px var(--lijn-sterk); transition: background .4s, color .4s, box-shadow .4s; }
.cap.is-active .cap-title::before { background: var(--kobalt); color: #fff; box-shadow: none; }   /* white on the accent, as on the main button */
/* the lines of the other captions are folded away for the eye only: a screen reader reads all five titles with their lines */
.cap-line { margin: 0; max-height: 0; overflow: hidden; opacity: 0; font-size: 1rem; line-height: 1.4; color: var(--grafiet); transition: max-height .5s, margin .5s, opacity .4s; }
.cap.is-active .cap-line { max-height: 8em; margin-top: 8px; opacity: 1; transition-delay: 0s, 0s, .1s; }

/* anchors: one at the end of each scene, so a link lands on the finished scene (coachfilm.js sets the offsets from the section height) */
.film .point-space { position: absolute; left: 0; width: 1px; height: 0; top: calc((var(--r) - .15) * var(--scene) + var(--nav-h) + 8px); pointer-events: none; }
.film .point-space[data-anchor="tips"] { --r: 1; }
.film .point-space[data-anchor="checklist"] { --r: 2; }
.film .point-space[data-anchor="visueel"] { --r: 3; }
.film .point-space[data-anchor="feedback"] { --r: 4; }
.film .point-space[data-anchor="overzicht"] { --r: 5; }

/* ---- phone: captions at the top, the camera stays closer ---- */
@media (max-width: 760px) {
  /* the film holds the page here and a swipe moves one point (coachfilm.js), so the section only needs room to catch the page: one screen of pin */
  .film { --scene: 20svh; }
  /* every window is placed in the card by its own transform, from its top left corner */
  .fw { transform-origin: 0 0; }
  /* the coach window stands on a flat field here: a backdrop blur changes nothing to see and can flash on a phone when the window fades */
  .fw-overlay iframe { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .film-caps { left: 8px; right: 8px; top: calc(var(--nav-h) + 6px); width: auto; transform: none; display: grid; padding: 12px 14px 12px; gap: 0; border-radius: 20px; }
  .cap-prog { grid-area: 1 / 1; display: flex; gap: 6px; margin-bottom: 12px; }
  .cap-prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--lijn-sterk); transition: background .3s; }
  .cap-prog i.is-done { background: color-mix(in srgb, var(--kobalt) 50%, var(--lijn-sterk)); }
  .cap-prog i.is-on { background: var(--kobalt); }
  /* the captions share one place, so they change one after the other: the old one is gone before the new one starts (Ali saw them overlap) */
  .cap { grid-area: 2 / 1; padding-left: 0; border-left: 0; opacity: 0; transform: translateY(10px); transition: opacity .14s linear, transform 0s .14s; }   /* not seen, still read: every caption stays whole for a screen reader */
  .cap.is-active { opacity: 1; transform: none; transition: opacity .3s ease .18s, transform .4s cubic-bezier(.2, .8, .2, 1) .18s; }   /* the new caption rises into place */
  /* while the finger drags, the caption and the card follow it a little (coachfilm.js sets --pull on the stage) */
  .film-caps, .film-view { translate: 0 var(--pull, 0px); }
  .cap-title { opacity: 1; color: var(--inkt); font-size: 1.375rem; letter-spacing: -.025em; }
  .cap-line { max-height: none; opacity: 1; margin-top: 6px; font-size: .9375rem; line-height: 1.35; transition: none; }
  /* the card: one window at a time, straight on, on a calm dark field (coachfilm.js sets the inset under the caption) */
  .film-view { perspective: none; border-radius: 20px; background: #0f1a35; }
  .fd-wall { display: none; }
  .film-desk { transform-style: flat; }
}

/* ---- html.beats-static (reduced motion or no GSAP), or section.film.is-static (coachfilm.js went static on its own, or did not load): nothing is pinned, the stage stands once at step 1, the captions stand under it ---- */
:is(.beats-static .film, .film.is-static) { height: auto; }
:is(.beats-static .film, .film.is-static) .film-stage { position: static; height: auto; overflow: visible; display: flex; flex-direction: column; gap: 24px; padding: 24px 0 clamp(48px, 9vh, 96px); }
:is(.beats-static .film, .film.is-static) .film-view { position: relative; inset: auto; height: clamp(440px, 72svh, 780px); }
:is(.beats-static .film, .film.is-static) .film-caps { position: static; transform: none; width: auto; margin: 0 var(--gutter); max-width: 720px; display: flex; gap: 18px; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
:is(.beats-static .film, .film.is-static) .cap { opacity: 1; transform: none; border-left: 2px solid var(--lijn-zacht); padding-left: 14px; }
:is(.beats-static .film, .film.is-static) .cap-title { color: var(--inkt); opacity: 1; }
:is(.beats-static .film, .film.is-static) .cap-line { max-height: none; margin-top: 8px; opacity: 1; }
:is(.beats-static .film, .film.is-static) .point-space { position: static; display: block; margin: 0; }
@media (max-width: 760px) { :is(.beats-static .film, .film.is-static) { height: auto; } :is(.beats-static .film, .film.is-static) .film-view { height: clamp(420px, 66svh, 640px); margin: 0 8px; } }
