.home-refresh .hero-showcase {
  --hero-reflection: .34;
  --hero-halo: rgb(113 225 170 / 13%);
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  padding: 4px 7px 46px;
}

:root[data-site-theme="light"] .hero-showcase {
  --hero-reflection: .19;
  --hero-halo: rgb(54 135 94 / 10%);
}

.hero-device {
  position: relative;
}

.hero-device::before {
  content: "";
  position: absolute;
  inset: -9% -6%;
  background: radial-gradient(ellipse, var(--hero-halo) 34%, transparent 72%);
  pointer-events: none;
}

.home-workspace.hero-showcase .screenshot {
  position: relative;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--mint) 24%, var(--line));
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 18px 52px rgb(0 0 0 / 24%), 0 3px 12px rgb(0 0 0 / 12%);
}

.hero-showcase picture,
.hero-showcase img {
  display: block;
}

.hero-reflection {
  position: absolute;
  inset: calc(100% + 5px) 1px auto;
  height: 49px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  opacity: var(--hero-reflection);
  mask-image: linear-gradient(to bottom, black 0%, transparent 91%);
  pointer-events: none;
}

.hero-reflection picture {
  transform: scaleY(-1);
}

@media (max-width: 700px) {
  .home-refresh .hero-showcase { padding: 1px 2px 25px; }
  .hero-reflection { height: 27px; }
}

.hero-showcase [hidden] {
  display: none;
}

.home-workspace.hero-showcase {
  padding-bottom: 0;
}

.home-workspace.hero-showcase .screenshot,
.hero-showcase .hero-reflection picture {
  aspect-ratio: 1400 / 850;
}

.hero-showcase .screenshot picture {
  width: 100%;
  height: 100%;
}

.hero-showcase .screenshot img,
.hero-showcase .hero-reflection img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-workspace.hero-showcase .hero-caption {
  position: relative;
  display: flex;
  gap: 12px 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: start;
  margin-top: 27px;
  padding: 0 2px;
  border: 0;
  font: inherit;
}

.hero-caption-copy {
  flex: 1 1 15rem;
  min-height: 4.7rem;
}

.hero-caption-copy a {
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .22em;
}

.hero-caption-copy a:hover {
  text-decoration-color: var(--mint);
}

.hero-caption-copy p {
  margin: 5px 0 0;
  font-size: .875rem;
  line-height: 1.45;
}

.hero-controls,
.hero-positions {
  display: flex;
  align-items: center;
}

.hero-controls {
  gap: 8px;
  flex-wrap: wrap;
}

.hero-positions button,
.hero-playback {
  cursor: pointer;
  min-width: 32px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
}

.hero-positions button {
  display: grid;
  place-items: center;
  padding: 0;
}

.hero-positions button::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.hero-positions button[aria-current="true"]::before {
  width: 17px;
  border-color: var(--mint);
  border-radius: 99px;
  background: var(--mint);
}

.hero-playback {
  padding: 0 9px;
  border-color: var(--line);
  font: inherit;
  font-size: .875rem;
}

.hero-positions button:hover,
.hero-playback:hover {
  background: var(--surface);
}

.hero-showcase :is(button, a):focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .home-workspace.hero-showcase .hero-caption { margin-top: 19px; }
  .hero-caption-copy { flex-basis: 100%; min-height: 0; }
}
