.app-persona--device-showcase,
.app-teaser--device-showcase {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.7vw, 48px);
}

.app-teaser--device-showcase > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  column-gap: clamp(26px, 5vw, 72px);
  align-items: end;
}

.app-teaser--device-showcase > div:first-child > .eyebrow { grid-column: 1 / -1; }
.app-teaser--device-showcase > div:first-child > h2 { grid-row: 2 / 4; }
.app-teaser--device-showcase > div:first-child > p { margin: 0; }
.app-teaser--device-showcase > div:first-child > .actions { margin-top: 16px; }

.app-brand-showcase {
  background: var(--momentum-bg, #050505);
}

.app-brand-showcase > .app-brand-showcase__app {
  padding-block: clamp(32px, 5vw, 68px) clamp(12px, 2vw, 28px);
}

.app-brand-showcase .app-teaser.app-teaser--device-showcase {
  padding: clamp(18px, 3.5vw, 48px);
  border-radius: 12px;
  background: var(--momentum-panel, #17191c);
  color: #fff;
}

.app-brand-showcase .app-teaser.app-teaser--device-showcase > div > .eyebrow { color: #c6d9ff; }
.app-brand-showcase .app-teaser.app-teaser--device-showcase > div > p { color: #d2dae7; }
.app-brand-showcase .app-teaser--device-showcase .actions .button.button--light {
  border: 1px solid #e2e0df;
  background: transparent;
  color: #fff;
}
.app-brand-showcase .app-teaser--device-showcase .actions .button.button--light:hover { background: #fff2; }

#talent { scroll-margin-top: 100px; }
.app-brand-showcase .partner-section { scroll-margin-top: 24px; }

.app-device-showcase {
  min-width: 0;
  margin: 0;
  padding: clamp(12px, 2.4vw, 27px);
  border: 1px solid #45608c59;
  border-radius: 14px;
  background: radial-gradient(ellipse at 30% 100%, #253857 0%, transparent 78%), #111822;
  color: #f4f7fb;
  scroll-margin-top: 24px;
}

.app-brand-showcase .app-device-showcase {
  padding: 0;
  border: 0;
  background: none;
  color: #f4f7fb;
}

.app-device-showcase__hint { display: none; }

.app-device-showcase__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: clamp(9px, 1.6vw, 23px);
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.app-device-showcase__item {
  min-width: 0;
  display: grid;
  gap: 8px;
  text-align: center;
  font-size: .875rem;
  font-weight: 700;
}

.app-device-showcase__item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Keep translucent pixels within the supplied screens white on any backdrop. */
  background: linear-gradient(#fff, #fff) center / 84% 86% no-repeat;
  filter: drop-shadow(0 9px 10px #0006);
}

.app-device-showcase__gallery:focus-visible,
.app-device-preview-link:focus-visible { outline: 2px solid #659aff; outline-offset: 3px; }
.app-device-preview-link { display: inline-block; margin-top: 12px; color: inherit; text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 841px) {
  .app-persona--device-showcase .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .app-persona--device-showcase .step { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-bottom: 6px; }
}

@media (max-width: 840px) {
  .app-teaser--device-showcase > div:first-child { display: block; }
  .app-teaser--device-showcase > div:first-child > p { margin-top: 16px; }
  .app-device-showcase__hint {
    display: block;
    margin: 0 0 10px;
    color: #d2dff1;
    font-size: .875rem;
  }
  .app-device-showcase__gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 12px;
    padding-bottom: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-color: #7f9ec6 #111822;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
  }
  .app-device-showcase__item { scroll-snap-align: start; }
}

@media (min-width: 541px) and (max-width: 840px) {
  .app-device-showcase__gallery { grid-auto-columns: calc((100% - 24px) / 3); }
}

@media (min-width: 761px) {
  .route-grid.route-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
