#features { scroll-margin-top: 72px; }
.checklist-fallback { font-size: .9rem; margin-block-start: .75em; }
.film-thumb {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#app-features .inside-copy { padding-top: clamp(15px, 1.35vw, 21px); }
.film-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: clamp(10px, 1.15vw, 16px);
  color: #fff;
  text-decoration: none;
}
.film-open:focus-visible {
  outline: 3px solid #2767a6;
  outline-offset: -4px;
}
.film-cue {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  box-sizing: border-box;
  border: 1px solid rgb(39 54 69 / 14%);
  border-radius: 50%;
  color: #4a5968;
  background: rgb(255 255 255 / 92%);
}
.film-cue svg { display: block; }
@media (hover:hover) {
  .film-open:hover .film-cue {
    color: #1e3345;
    border-color: #aebbc4;
    background: #fff;
  }
}
html:has(.film-viewer[open]) { overflow: hidden; }
.film-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  margin: 0;
  padding: 0;
  color: #fafcff;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
.film-viewer[open] { display: grid; place-items: center; }
.film-viewer::backdrop { background: rgb(8 14 22 / 94%); }
.film-sheet {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title tools" "media media";
  align-items: center;
  width: min(1120px, calc(100vw - 56px), calc((100dvh - 80px) * 1.333333));
  margin: auto;
}
.film-header { display: contents; }
.film-viewer h2 {
  grid-area: title;
  margin: 0;
  padding: 4px 12px 4px 0;
  color: inherit;
  font: 560 clamp(19px, 1.8vw, 27px)/1.15 var(--site-display);
  letter-spacing: -.038em;
}
.film-tools, .film-browse { display: flex; align-items: center; }
.film-tools {
  grid-area: tools;
  margin-inline-end: 52px;
  gap: 12px;
  min-height: 56px;
}
.film-browse { gap: 1px; }
.film-browse [data-film-count] {
  color: #d8e1ea;
  font: 500 .82rem/1 var(--site-font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.film-sheet button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: #f0f5fb;
  font: 550 .875rem/1 var(--site-font);
  cursor: pointer;
}
.film-sheet button:hover, .film-sheet button:focus-visible { background: rgb(255 255 255 / 13%); }
.film-sheet button:focus-visible { outline: 2px solid #d5e9ff; outline-offset: -2px; }
.film-sheet button:disabled { opacity: .4; cursor: default; }
.film-sheet .film-dismiss {
  grid-area: tools;
  justify-self: end;
  background: rgb(255 255 255 / 11%);
  width: 44px;
  height: 44px;
}
.film-sheet button svg { flex: none; }
.film-frame {
  grid-area: media;
  display: grid;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #111c29;
  box-shadow: 0 18px 60px #0005;
}
.film-frame video, .film-frame .film-gif { display: block; width: 100%; height: 100%; object-fit: contain; }
.film-frame .film-error { align-self: center; text-align: center; padding: 1rem; color: #fff; }
.film-viewer [hidden] { display: none !important; }
@media (max-width: 700px) and (orientation: portrait) {
  .film-sheet {
    width: calc(100vw - 16px);
    grid-template-areas: "title close" "media media" "tools tools";
    row-gap: 6px;
  }
  .film-viewer h2 { padding-left: 8px; font-size: clamp(19px, 5vw, 25px); }
  .film-sheet .film-dismiss { grid-area: close; }
  .film-tools { margin: 0; padding: 0 4px; justify-content: space-between; min-height: 44px; }
  .film-frame { border-radius: 6px; }
}
@media (max-height: 530px) and (orientation: landscape) {
  .film-sheet { width: min(calc(100vw - 20px), calc((100dvh - 52px) * 1.333333)); }
  .film-viewer h2 { font-size: 1rem; }
  .film-tools { min-height: 48px; gap: 0; margin-right: 43px; }
  .film-sheet [data-film-replay] span { display: none; }
  .film-frame { border-radius: 5px; }
}
@media (prefers-reduced-motion: no-preference) {
  .film-viewer[open] .film-sheet { animation: film-appear .18s ease-out; }
  @keyframes film-appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
.film-viewer::backdrop {
  background: rgb(8 14 22 / 95%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.film-frame { position: relative; }
.film-frame::after {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: #6387ad;
  content: "";
  width: var(--film-progress, 0%);
  pointer-events: none;
}
.film-sheet [data-film-replay] { min-width: 82px; }
.film-sheet [data-film-replay]:is([data-state="play"], [data-state="pause"]) svg { display: none; }
.film-sheet [data-film-replay][data-state="pause"]::before {
  content: "";
  width: 10px;
  height: 13px;
  border-inline: 3px solid currentColor;
  box-sizing: border-box;
}
.film-sheet [data-film-replay][data-state="play"]::before {
  content: "";
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-left: 10px solid currentColor;
}
.film-sheet [data-film-full] { margin-inline: -6px; }
.film-frame video:not([controls]) { cursor: pointer; }
@media (max-height: 530px) and (orientation: landscape) {
  .film-sheet [data-film-replay] { min-width: 44px; }
}

.film-heading-copy { grid-area: title; min-width: 0; }
.film-heading-copy [data-checklist-browse] {
  padding: 0 2px;
  min-height: 27px;
  color: #cfdaea;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 4px;
  font-size: .84rem;
}
.app-preview .preview-picker {
  margin-inline-start: auto;
  min-height: 40px;
  max-width: 58%;
  padding: 0 .4rem;
  border: 1px solid #cbd5dd;
  border-radius: 6px;
  background: white;
  color: #24384b;
  font: 500 1rem/1.2 var(--site-font);
}
.app-preview .preview-picker[hidden] { display: none; }
.preview-image-area picture { display: contents; }
@media (max-width: 700px) and (orientation: portrait) {
  .film-heading-copy [data-checklist-browse] { margin-left: 8px; }
}

/* Keep the handset and its controls together as the viewport changes. */
.phone-demo .film-sheet {
  width: min(calc(100vw - 16px), max(300px, calc((100dvh - 128px) * .5)));
  grid-template-areas: "title close" "media media" "tools tools";
  row-gap: 4px;
}
.phone-demo .film-sheet .film-dismiss { grid-area: close; }
.phone-demo .film-tools {
  justify-content: space-between;
  margin: 0;
  min-height: 44px;
}
.phone-demo .film-frame {
  width: min(100%, calc((100dvh - 128px) * .5));
  justify-self: center;
  aspect-ratio: 1 / 2;
  background: #eff3f7;
}
@media (max-height: 530px) and (orientation: landscape) {
  .phone-demo .film-sheet {
    width: min(560px, calc(100vw - 20px));
    grid-template-areas: "title tools" "media media";
    row-gap: 0;
  }
  .phone-demo .film-tools { margin-right: 48px; }
  .phone-demo .film-sheet .film-dismiss { grid-area: tools; }
  .phone-demo .film-frame { width: min(100%, calc((100dvh - 72px) * .5)); }
}

.preview-image-area:has(picture[data-screen]) {
  --handset-height: min(calc(100dvh - 128px), calc((100vw - 42px) * 2.08375), 920px);
  width: min(500px, calc(100vw - 24px));
  height: calc(var(--handset-height) + 24px);
  background: #eff3f7;
}
.preview-image-area picture[data-screen] {
  position: relative;
  display: block;
  height: var(--handset-height);
  aspect-ratio: 800 / 1667;
}
.preview-image-area picture[data-screen]::before,
.preview-image-area picture[data-screen]::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.preview-image-area picture[data-screen]::before {
  inset: 1.77% 3.92% 1.88%;
  border-radius: 13% / 6%;
  background: #0e2d55 url("../../../assets/flow/digital-status.webp") center top / 100% 6.29% no-repeat;
}
.preview-image-area picture[data-screen] img {
  position: absolute;
  top: 7.83%;
  left: 3.92%;
  width: 92.16%;
  height: 90.29%;
  border-radius: 0 0 13% 13% / 0 0 6.5% 6.5%;
  object-fit: fill;
}
.preview-image-area picture[data-screen]::after {
  inset: 0;
  background: url("../../../assets/flow/digital-frame.webp") center / 100% 100% no-repeat;
}
