/* ===========================================================================
   What we built: a short film of the app, and its five main screens in the
   tab bar's order.

   The film is made in tools/paira-film/ (a page filmed frame by frame), so
   the motion, the 3D phones and the type are exact. It plays once when it
   comes into view and holds on its last frame, the logo, with a way to play
   it again.
   =========================================================================== */

.paira-intro { display: grid; gap: var(--sp-rest, 3rem); }
.paira-intro > .merlin-report-lede p { max-width: 52ch; }

.paira-intro-film {
  position: relative; margin: 0;
  border-radius: 1.25rem; overflow: hidden;
  background: #0b0b0f;
  box-shadow: 0 30px 70px rgba(19, 19, 19, .22);
}
.paira-intro-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.paira-film-replay {
  position: absolute; right: 1.1rem; bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(11, 11, 15, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #f4f1ea; font: 600 .82rem/1 var(--font-body, "Instrument Sans", sans-serif);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, opacity .4s ease;
}
.paira-film-replay span { font-size: 1rem; }
.paira-film-replay:hover { background: rgba(96, 92, 255, .55); border-color: rgba(166, 160, 255, .6); }
.paira-film-replay:focus-visible { outline: 2px solid #a6a0ff; outline-offset: 3px; }
.paira-film-replay[hidden] { display: none; }

.paira-intro-areas-label {
  margin: 0 0 var(--sp-tight, 1.4rem);
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--merlin-muted, #6d6258);
}
/* Top-aligned, so every phone starts on one line and the captions, which
   run to different lengths, hang below them instead of pushing them up. */
.paira-intro-grid { align-items: start; }
.paira-intro-grid figcaption b {
  display: block; margin-bottom: .2rem;
  color: var(--ink, #2b241e); font-size: .86rem; font-weight: 600;
}
.paira-intro-grid figcaption { line-height: 1.45; }

@media (max-width: 760px) {
  .paira-intro-film { border-radius: .9rem; }
  .paira-film-replay { right: .6rem; bottom: .6rem; padding: .45rem .8rem; }
  /* Five in a row is too small on a phone; they scroll sideways instead. */
  .paira-intro-grid {
    display: grid; grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: 42%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem;
  }
  .paira-intro-grid figure { scroll-snap-align: start; }
}
