/* Video controls and responsive rules. */
/* The features video plays by itself (muted, looping) where the phone mock-up was.
   Browsers only autoplay muted video, so the button under it turns the sound on. */
.demo {
  justify-self: center;
  position: relative;
  width: min(300px, 78vw);
  margin: 0;
}

.demo video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  background: var(--ground);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

/* The hero video's own buttons (page.js): play / pause, and play with
   sound. Side by side under the video; they wrap on very narrow screens. */
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.vbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}

.vbtn:hover { background: rgba(255, 255, 255, .18); }

.vbtn svg { width: 18px; height: 18px; flex: none; }
.vbtn[hidden] { display: none; }

/* Play / pause shows the icon of what a tap does. */
.vbtn .i-play { display: none; }
.vbtn.is-paused .i-play { display: block; }
.vbtn.is-paused .i-pause { display: none; }

/* ------------------------------------------------------------- mobile */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 48px; }
  .phone { order: 2; width: min(270px, 74vw); }
  .demo { order: 2; width: min(270px, 74vw); }
  .does { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  :root { font-size: 16px; }
  .btn { width: 100%; }
  .btn-secondary { margin-inline-start: 0; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring::before { animation: none; opacity: .8; }
}
