#prairie-phone {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  color: #f2f3f5;
  background: #111214;
}

.prairie-demo-stage {
  display: grid;
  justify-items: center;
  align-items: center;
  min-width: 0;
  padding: 8px 13px;
  perspective: 950px;
  background: radial-gradient(ellipse, #45261d 0, #201816 41%, transparent 71%);
}

.prairie-device {
  position: relative;
  width: min(100%, 282px);
  aspect-ratio: 9 / 18.8;
  transform-style: preserve-3d;
  transform: rotateY(-6deg) rotateX(2deg);
}

.prairie-device-back,
.prairie-device-front {
  position: absolute;
  inset: 0;
  border-radius: 35px;
  background: #242222;
}

.prairie-device-back {
  transform: translateZ(-11px);
  border: 1px solid #63544e;
  box-shadow: 24px 26px 49px #0009;
}

.prairie-device-side {
  position: absolute;
  top: 32px;
  bottom: 32px;
  width: 11px;
  background: linear-gradient(90deg, #4c3e39, #94766b 45%, #363131);
}

.prairie-device-side-left {
  left: 0;
  transform: translateX(-50%) translateZ(-5.5px) rotateY(90deg);
}

.prairie-device-side-right {
  right: 0;
  transform: translateX(50%) translateZ(-5.5px) rotateY(90deg);
}

.prairie-device-front {
  box-sizing: border-box;
  padding: 7px;
  border: 1px solid #ae9284;
  box-shadow: inset 0 0 0 2px #443b37;
}

.prairie-device-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #f5f9f6;
  color: #1c2422;
}

.prairie-device-camera,
.prairie-device-home {
  position: absolute;
  z-index: 1;
  left: 50%;
  border-radius: 20px;
  background: #202322;
  transform: translateX(-50%);
  pointer-events: none;
}

.prairie-device-camera { top: 8px; width: 52px; height: 13px; }
.prairie-device-home { bottom: 7px; width: 72px; height: 3px; }

.prairie-flow-video {
  position: absolute;
  inset: 25px 0 14px;
  width: 100%;
  height: calc(100% - 39px);
  object-fit: cover;
  object-position: top;
  background: #fff;
}

.prairie-motion-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  background: #181818;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  cursor: pointer;
}

.prairie-demo-stage { position: relative; }
.prairie-demo-stage:hover .prairie-motion-toggle,
.prairie-motion-toggle:focus-visible,
.prairie-motion-toggle[aria-label="Play animation"] { opacity: 1; }

.prairie-motion-toggle:focus-visible { outline: 2px solid #ffac87; outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .prairie-device {
    opacity: 0;
    transform: translateY(24px) rotateY(-15deg) rotateX(5deg);
  }

  html.eclipse-home-reveal .prairie-demo-in-view .prairie-device {
    animation: prairie-phone-arrive 780ms cubic-bezier(.22, 1, .36, 1) 180ms both;
  }

  @keyframes prairie-phone-arrive {
    to { opacity: 1; transform: rotateY(-6deg) rotateX(2deg); }
  }
}

@media (min-width: 769px) {
  .page.home .prairie-demo-hero .eclipse-home-intro {
    left: max(var(--grid-margin), 8vw);
    width: min(43vw, 600px);
    top: 50%;
  }

  .page.home .prairie-demo-hero .hero_inner__vEt7Z::before {
    background: linear-gradient(90deg, #000c, #0006 46%, #0004 68%, #0009);
  }

  .page.home .prairie-demo-hero .hero_scroll__jtd6L {
    left: max(var(--grid-margin), 8vw);
  }

  .prairie-demo-hero #prairie-phone {
    position: absolute;
    top: 50%;
    right: max(var(--grid-margin), 11vw);
    width: min(36vw, 480px);
    transform: translateY(-50%);
    background: transparent;
  }

  .prairie-demo-stage {
    width: 100%;
  }

  .prairie-device {
    width: min(100%, 282px, calc((100svh - 145px) * .4787));
  }
}

@media (max-width: 768px) {
  #prairie-phone {
    padding: 30px clamp(16px, 5vw, 36px) 36px;
  }

  .prairie-demo-stage { width: 100%; padding: 5px 4px; }
  .prairie-device { width: min(100%, 252px); }
  .prairie-screen-body h3 { font-size: 22px; }
}
