/* One upright device keeps the product itself at the center of the hero. */
.hero .hero-art.hero-showcase {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  overflow: visible;
}

.feature-preview {
  --device-width: 286px;
  width: min(100%, 420px);
  position: relative;
  text-align: center;
}

.showcase-device {
  position: relative;
  width: min(var(--device-width), 100%);
  padding: 9px;
  margin-inline: auto;
  border: 3px solid #9c9b95;
  border-radius: 43px;
  background: #1c1d1b;
  box-shadow: 0 0 0 1px #edece5, inset 0 0 0 1px #41423d,
    0 28px 46px -20px #34372e50, 0 7px 13px -8px #36383045;
  isolation: isolate;
}

.showcase-device::before,
.showcase-device::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #72736c, #c4c4ba);
}

.showcase-device::before {
  height: 58px;
  right: -5px;
  top: 120px;
}

.showcase-device::after {
  height: 35px;
  left: -5px;
  top: 108px;
  box-shadow: 0 43px 0 #aaa99f;
}

.showcase-screen {
  width: 100%;
  aspect-ratio: 1170 / 2532;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #f4eedd;
  /* Keep transformed layers inside rounded corners in Safari. */
  isolation: isolate;
  transform: translateZ(0);
}

.device-camera {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 62px;
  height: 17px;
  border-radius: 20px;
  background: #171816;
  pointer-events: none;
}

.device-camera::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27303a;
  box-shadow: inset 0 0 0 1px #373e43;
}

.showcase-track {
  position: absolute;
  inset: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
}

.feature-preview[data-enhanced] .showcase-track {
  transition: transform 720ms cubic-bezier(.32, .05, .18, 1);
}

.feature-preview .showcase-track.is-jumping {
  transition: none;
}

.showcase-slide {
  flex: 0 0 100%;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.feature-preview:not([data-enhanced]) .showcase-slide:not(:first-child) {
  display: none;
}

.showcase-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
  object-position: top center;
}

.showcase-caption {
  width: min(var(--device-width), 100%);
  margin: 21px auto 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 13px;
}

.showcase-title {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0;
}

.showcase-count {
  color: #767467;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 4px auto 0;
  min-height: 44px;
}

.showcase-dots {
  display: flex;
  align-items: center;
}

.showcase-dot {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 30px;
  height: 44px;
  display: grid;
  place-items: center;
}

.showcase-dot span {
  width: 6px;
  height: 6px;
  border-radius: 20px;
  background: #b4b0a3;
  transition: background .2s, width .2s;
}

.showcase-dot[aria-pressed="true"] span {
  width: 19px;
  background: var(--wine);
}

.showcase-dot:hover span {
  background: var(--wine);
}

.showcase-playback {
  appearance: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  min-width: 66px;
  min-height: 44px;
  padding: 5px 0 5px 15px;
  color: #665c55;
  font-size: .875rem;
}

.showcase-playback:hover {
  color: var(--wine);
}

.showcase-playback:disabled {
  color: #757165;
}

.showcase-note {
  color: #78766a;
  font-size: .75rem;
  line-height: 1.6;
  margin: 3px 0 0;
}

.showcase-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 1500px) {
  .feature-preview { --device-width: 300px; }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .feature-preview { --device-width: 258px; }
  .hero .hero-art.hero-showcase { padding-inline: 6px; }
}

@media (max-width: 760px) {
  .hero .hero-art.hero-showcase {
    padding: 4px 8px 10px;
    margin: 0;
  }
  .feature-preview { --device-width: 280px; }
  .showcase-caption { margin-top: 20px; }
}

@media (max-width: 370px) {
  .feature-preview { --device-width: 256px; }
  .hero .hero-art.hero-showcase { padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-preview[data-enhanced] .showcase-track,
  .showcase-dot span { transition: none; }
}
