/* Interactive product demonstrations, using captures of the native App. */
.phone-screen iframe,
.device-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* Measured opening of the shared 606 × 1252 phone bezel. */
.phone-screen,
.device-screen {
  inset: 1.6% 4.125% 1.6% 3.96%;
  border-radius: 16% / 7.4%;
  overflow: hidden;
  background: #000;
}

.hero {
  min-height: 900px;
}
.hero-content,
.product-stage {
  min-width: 0;
}
.product-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 845px;
}
.product-stage .phone-shell {
  position: relative;
  inset: auto;
  width: 350px;
  max-width: 100%;
  transform: none;
  flex: none;
}
.try-controls {
  width: min(350px, 100%);
  margin-top: 24px;
  text-align: center;
}
.try-controls > div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.try-controls button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 7px;
  background: #202020;
  color: #ccc;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.try-controls button[aria-pressed="true"] {
  color: #e06a3c;
}
.try-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.try-controls p {
  margin: 12px auto 0;
  color: #aaa;
  font-size: 11px;
  line-height: 1.8;
}

.flow-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin: 8px 0 30px;
  padding: 0;
  list-style: none;
}
.flow-overview li {
  padding: 12px 0;
}
.flow-overview a {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  min-height: 44px;
  color: #fff;
}
.flow-overview a > span {
  color: #f2a07e;
  font-size: 15px;
}
.flow-overview strong {
  font-size: 21px;
}
.flow-overview p {
  margin: 9px 0 0 23px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
}
.flow-overview a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.capture-caption {
  max-width: 320px;
  margin: 18px auto 0;
  color: #aaa;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}
.shot-record {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
}
.shot-record .device-shot {
  width: 270px;
  height: auto;
  flex: none;
}
.workflow-section,
.feature-spotlight,
#try-app,
#library {
  scroll-margin-top: 90px;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .product-stage {
    width: 100%;
    min-height: 805px;
    margin: 25px auto 0;
  }
  .product-stage .phone-shell {
    width: min(330px, 100%);
  }
  .try-controls {
    width: min(330px, 100%);
    margin-top: 22px;
  }
  .flow-overview {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .flow-overview li {
    padding: 8px 0;
  }
  .flow-overview p {
    margin-top: 0;
  }
  .shot-record .device-shot {
    width: 260px;
  }
  .hero-trust {
    flex-wrap: wrap;
  }
}

/* Match the same restrained switch styling across each product example. */
.section-demo-controls {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}
.section-demo-controls button {
  font: inherit;
  font-size: 12px;
  min-height: 44px;
  padding: 9px 13px;
  border: 0;
  border-radius: 7px;
  background: #202020;
  color: #ccc;
  cursor: pointer;
}
.section-demo-controls button[aria-pressed="true"] {
  color: #e06a3c;
}
.section-demo-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.shot-compare {
  height: auto;
  display: flex;
  flex-direction: column;
}
.shot-compare .device-shot {
  width: 240px;
  height: auto;
  flex: none;
}
.section-demo-controls + .capture-caption {
  margin-top: 12px;
}
@media (max-width: 760px) {
  .try-controls button {
    font-size: 12px;
    padding: 10px 11px;
  }
  .shot-compare .device-shot {
    width: 230px;
  }
}

/* Keep section entrance motion within narrow screens. */
@media (max-width: 760px) {
  .motion-ready [data-reveal="spotlight"].is-reveal-pending:not(.feature-spotlight-reverse) .spotlight-shot,
  .motion-ready [data-reveal="spotlight"].is-reveal-pending.feature-spotlight-reverse .spotlight-shot,
  .motion-ready [data-reveal="library"].is-reveal-pending .library-shot {
    transform: translateY(18px);
  }
}

/* Reserve the tallest caption so changing examples never shifts the layout. */
.try-controls p,
.capture-caption {
  display: grid;
}
.try-controls p > span,
.capture-caption > span {
  grid-area: 1 / 1;
}
.try-controls p > span[hidden],
.capture-caption > span[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}
.try-controls button,
.section-demo-controls button {
  transition: color 180ms ease-out, background-color 180ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .try-controls button,
  .section-demo-controls button { transition: none; }
}
