.product-tour {
  width: min(100% - 2rem, 64rem);
  margin: clamp(2.5rem, 7vw, 5rem) auto 0;
}

.tour-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #ffffff28;
  padding-bottom: 1rem;
}

.tour-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 750;
  line-height: 1.1;
}

.device-switch:not([hidden]) {
  display: inline-flex;
  gap: .25rem;
  align-items: center;
  border: 1px solid #ffffff35;
  border-radius: 999px;
  padding: .2rem;
  background: #101722;
}

.device-switch button {
  border: 0;
  background: transparent;
  cursor: pointer;
  min-height: 2.75rem;
  min-width: 5rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  color: #e3e7ef;
  font-weight: 650;
}

.device-switch button:hover { background: #ffffff1a; }
.device-switch button[aria-pressed="true"] { background: #fff; color: #111827; }
.device-switch button:focus-visible,
.screenshot-features a:focus-visible { outline: 2px solid #b7c5ff; outline-offset: 3px; }

.device-gallery { margin-top: 1.35rem; }
.device-gallery + .device-gallery:not([hidden]) { margin-top: 2.8rem; }
.device-gallery[hidden] { display: none; }
.device-gallery h3 {
  margin-bottom: 1rem;
  font-weight: 650;
  color: #d7deea;
  font-size: 1.1rem;
}

.screenshot-features {
  display: grid;
  gap: clamp(4rem, 8vw, 6rem);
}
.product-tour > .screenshot-features { margin-top: 2rem; }

.screenshot-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 3rem);
}

.screenshot-feature a {
  display: block;
  width: min(100%, 20rem);
  flex: none;
  border-radius: .5rem;
  overflow: hidden;
  background: #222a3c;
  box-shadow: 0 .55rem 1.5rem #0005;
}

#ipad-tour .screenshot-feature a { width: min(100%, 27rem); }
.screenshot-feature img { display: block; width: 100%; height: auto; }
.feature-description { width: 100%; }
.feature-description :is(h3, h4) { margin: 0 0 .5rem; font-size: 1.5rem; font-weight: 650; line-height: 1.25; }
.feature-description p { margin: 0; color: #d1d5db; }

@media (min-width: 48rem) {
  .screenshot-feature { flex-direction: row; }
  .screenshot-feature:nth-child(even) { flex-direction: row-reverse; }
  .screenshot-feature a { max-width: 45%; }
  .feature-description { width: 50%; }
}
