.hero-demo-carousel {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  --hero-phone-render-width: min(307px, calc(100% - 112px));
  --hero-mobile-top-space: 56px;
}

.hero-demo-carousel:focus-visible {
  outline: 2px solid rgba(255, 20, 147, 0.48);
  outline-offset: 8px;
}

.hero-demo-viewport {
  position: relative;
  width: 100%;
  min-height: 1px;
}

.hero-demo-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 0;
  transform-origin: 50% 50%;
}

.hero-demo-panel.is-active { z-index: 2; }
.hero-demo-panel:not(.is-active) { z-index: 3; }
.hero-demo-panel:not(.is-active) > .macbook-demo,
.hero-demo-panel:not(.is-active) > .android-demo,
.hero-demo-carousel[data-demo-transitioning] .macbook-demo {
  pointer-events: none;
}
.hero-demo-panel:not(.is-active) .demo-interaction-cue { visibility: hidden; }

.hero-demo-preview-hit {
  position: absolute;
  z-index: 10;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  border-radius: 32px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero-demo-preview-hit[hidden] { display: none; }
.hero-demo-preview-hit,
.hero-demo-preview-hit:hover,
.hero-demo-preview-hit:active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hero-demo-preview-hit:focus-visible { outline: 8px solid var(--pink); outline-offset: 10px; }
.hero-demo-preview-hit:disabled { cursor: default; }

.hero-demo-selector {
  position: relative;
  z-index: 8;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin-top: 10px;
}

.hero-demo-selector-control {
  display: grid;
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hero-demo-selector-control:hover:not(:disabled),
.hero-demo-selector-control:focus-visible,
.hero-demo-selector-control:active:not(:disabled) {
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  transform: none;
}

.hero-demo-selector-control:focus-visible {
  outline: none;
}

.hero-demo-selector-control:disabled {
  opacity: 1;
  cursor: wait;
}

.hero-demo-selector-icon,
.hero-demo-selector-cycle {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  pointer-events: none;
}

.hero-demo-selector-icon {
  width: 30px;
  height: 30px;
  opacity: 0.7;
  filter: drop-shadow(0 0 0 rgba(255, 20, 147, 0));
  transform: scale(1);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    filter 220ms ease,
    transform 260ms cubic-bezier(0.2, 0.9, 0.24, 1.34);
  will-change: filter, transform;
}

.hero-demo-selector-cycle {
  width: 27px;
  height: 27px;
  opacity: 0.54;
}

.hero-demo-selector-control[aria-pressed="true"] .hero-demo-selector-icon {
  opacity: 1;
  filter: brightness(0) invert(1)
    drop-shadow(0 0 5px rgba(255, 20, 147, 0.95))
    drop-shadow(0 0 13px rgba(255, 20, 147, 0.66));
  transform: scale(1.5);
  animation: hero-demo-active-halo 1.55s ease-in-out infinite;
}

.hero-demo-selector-control:focus-visible .hero-demo-selector-icon {
  opacity: 1;
  filter: brightness(0) invert(1)
    drop-shadow(0 0 5px rgba(255, 20, 147, 0.96))
    drop-shadow(0 0 13px rgba(255, 20, 147, 0.7));
}

@media (hover: hover) and (pointer: fine) {
  .hero-demo-selector-control:not([aria-pressed="true"]):hover .hero-demo-selector-icon {
    opacity: 1;
    filter: brightness(0) invert(1)
      drop-shadow(0 0 5px rgba(255, 20, 147, 0.96))
      drop-shadow(0 0 13px rgba(255, 20, 147, 0.7));
    transform: scale(1.16);
  }

  .hero-demo-selector-control[aria-pressed="true"]:hover .hero-demo-selector-icon {
    transform: scale(1.56);
  }
}

.hero-demo-selector-control:active .hero-demo-selector-icon,
.hero-demo-selector-control[aria-pressed="true"]:active .hero-demo-selector-icon {
  opacity: 1;
  filter: brightness(0) invert(1)
    drop-shadow(0 0 4px rgba(255, 20, 147, 0.92))
    drop-shadow(0 0 9px rgba(255, 20, 147, 0.62));
  transform: scale(0.84);
  animation: none;
  transition-duration: 70ms;
}

.hero-demo-panel-mobile {
  display: grid;
  place-items: center;
  padding: 24px 0 8px;
}

.android-demo {
  position: relative;
  isolation: isolate;
  width: var(--hero-phone-render-width);
  aspect-ratio: 307 / 640;
  filter: drop-shadow(0 24px 32px rgba(57, 44, 35, 0.28));
}

.android-demo-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.android-demo-back {
  z-index: 0;
}

.android-demo-screen {
  position: absolute;
  inset: 2.1875% 4.56026%;
  z-index: 1;
  overflow: hidden;
  border-radius: 8.5% / 4.2%;
}

.android-demo-video {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: 200%;
  height: auto;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.android-demo-video.is-active.is-presented {
  opacity: 1;
}

.android-demo-front {
  z-index: 2;
}

@keyframes hero-demo-active-halo {
  0%,
  100% {
    opacity: 0.72;
    filter: brightness(0) invert(1)
      drop-shadow(0 0 2px rgba(255, 20, 147, 0.54))
      drop-shadow(0 0 7px rgba(255, 20, 147, 0.32));
  }

  8% {
    opacity: 1;
    filter: brightness(0) invert(1)
      drop-shadow(0 0 8px rgba(255, 20, 147, 1))
      drop-shadow(0 0 20px rgba(255, 20, 147, 0.96))
      drop-shadow(0 0 34px rgba(255, 20, 147, 0.78));
  }

  16% {
    opacity: 0.84;
    filter: brightness(0) invert(1)
      drop-shadow(0 0 4px rgba(255, 20, 147, 0.86))
      drop-shadow(0 0 12px rgba(255, 20, 147, 0.66))
      drop-shadow(0 0 21px rgba(255, 20, 147, 0.44));
  }

  28% {
    opacity: 1;
    filter: brightness(0) invert(1)
      drop-shadow(0 0 9px rgba(255, 20, 147, 1))
      drop-shadow(0 0 24px rgba(255, 20, 147, 0.98))
      drop-shadow(0 0 40px rgba(255, 20, 147, 0.82));
  }

  42% {
    opacity: 0.68;
    filter: brightness(0) invert(1)
      drop-shadow(0 0 3px rgba(255, 20, 147, 0.58))
      drop-shadow(0 0 9px rgba(255, 20, 147, 0.34));
  }
}
/* Original Wallpets framing, with Walltank's portrait recording and ocean palette. */
.hero-demo-carousel .android-demo-video{inset:0;width:100%;height:100%;object-fit:contain;transform:none;opacity:1;background:#031d2c}
.hero-demo-carousel .demo-caption{margin:0 8% 12px}
.hero-demo-carousel .hero-demo-selector-icon,.hero-demo-carousel .hero-demo-selector-cycle{filter:brightness(0) invert(1)}
.hero-demo-selector-control[aria-pressed="true"]{filter:drop-shadow(0 0 5px #ff1493)}
.hero-demo-selector-control:focus-visible{outline:2px solid var(--pink);outline-offset:4px}
.hero-demo-carousel:not([data-demo-ready]) .hero-demo-panel{position:relative}
.hero-demo-carousel:not([data-demo-ready]) .hero-demo-panel-mobile{display:none}
@media(max-width:580px){.hero-demo-carousel{--hero-phone-render-width:min(307px,calc(100% - 64px))}}
@media(max-width:640px){
  .hero{display:flex;flex-direction:column;padding-bottom:32px;reading-flow:flex-visual}
  .hero > .hero-demo{order:-1;margin:0 -5vw 24px}
  .hero > .hero-copy{margin:0 auto}
  .hero-demo-carousel{--hero-mobile-top-space:0px}
}
@media(prefers-reduced-motion:reduce){.hero-demo-selector-icon{animation:none!important;transition:none!important}}
/* Keep the original phone's hardware/status strip; the app recording owns the screen UI. */
.hero-demo-carousel .android-demo-front{clip-path:inset(0 0 95.5% 0)}
