/* Android hardware frame around real, unmodified cabinet captures. */
.android-phone {
  position: relative;
  box-sizing: border-box;
  padding: 6px !important;
  border: 1px solid #6d7076;
  border-radius: 26px !important;
  background: #24262b;
  overflow: visible !important;
  box-shadow: inset 0 0 0 1px #101216, 0 18px 35px -19px #24213466;
}
.android-display {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #f7f8fa;
  isolation: isolate;
}
.android-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 21px;
  padding: 0 11px;
  color: #292b32;
  font: 650 8px/1 system-ui, sans-serif;
  letter-spacing: .02em;
}
.android-camera {
  position: absolute;
  top: 5px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #11151c;
  box-shadow: inset 0 0 0 2px #303744;
}
.android-phone .android-display > img {
  display: block;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  height: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: top;
  aspect-ratio: auto;
}
.android-nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 0 0 24px;
  font: 400 13px/1 system-ui, sans-serif;
  color: #6d717b;
  background: #f7f8fa;
}
.android-side-key {
  position: absolute;
  right: -3px;
  top: 23%;
  width: 3px;
  height: 27px;
  border-radius: 0 2px 2px 0;
  background: #44474e;
  box-shadow: 0 48px #44474e;
}
/* Separate device columns keep the dashboard navigation unobstructed. */
.device-stage {
  display: grid;
  grid-template-columns: clamp(150px, 19vw, 202px) minmax(0, 1fr);
  grid-template-rows: auto 12px;
  align-items: end;
  column-gap: clamp(20px, 3vw, 36px);
  height: auto;
  perspective: none;
}
.device-stage .desktop-device {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  height: auto;
  width: 100%;
  transform: none;
  animation: none;
}
.device-stage .desktop-device > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero-phone.android-phone {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 1 / 3;
  width: 100%;
  height: auto;
  aspect-ratio: 202 / 460;
  transform: none;
  animation: none;
}
.device-stage .device-base {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  height: 12px;
}
@media(max-width:700px) {
  .device-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 8px auto; }
  .device-stage .desktop-device { grid-column: 1; }
  .device-stage .device-base { grid-column: 1; height: 8px; }
  .hero-phone.android-phone { grid-column: 1; grid-row: 3; width: 190px; margin: 28px auto 0; }
}
.day-phone.android-phone { height: 410px; }
.feature .salary-screen.android-phone { width: 210px; height: 455px; margin-bottom: 24px; }
@media(min-width:701px) { .feature .feature-screen { height: 455px; } }

/* Shared baseline: the phone leans against the laptop's outer left edge.
   The truck emerges to the left, outside the actual dashboard screenshot. */
.device-stage{--phone-width:clamp(82px,15vw,180px);--forecourt:clamp(138px,28vw,330px);grid-template-columns:var(--forecourt) minmax(0,1fr);column-gap:0;padding-bottom:0;isolation:isolate}
.device-stage::before{inset:auto 0 -28px;height:75px;border-radius:50%;background:radial-gradient(ellipse,#d8d3e955,transparent 70%);z-index:-1}
.device-stage .desktop-device{z-index:2}
.device-stage .device-base{z-index:3}
.hero-phone.android-phone{position:absolute;left:calc(var(--forecourt) - var(--phone-width) - 16px);bottom:0;top:auto;width:var(--phone-width);margin:0;z-index:4;transform:rotate(3deg);transform-origin:bottom right}
.hero-truck{position:absolute;left:-16px;bottom:-17px;width:clamp(160px,25vw,290px);z-index:1;pointer-events:none}
.hero-truck>img{display:block;width:100%;height:auto}
@keyframes truck-arrive{from{opacity:0;transform:translateX(70px)}25%{opacity:1}to{opacity:1;transform:translateX(0)}}
.hero-truck.is-arriving{animation:truck-arrive 1.6s cubic-bezier(.2,.65,.2,1) both}
@media(max-width:700px){
 .device-stage{grid-template-rows:auto 8px;min-height:205px;margin-top:35px}
 .device-stage .desktop-device{grid-column:2;grid-row:1;align-self:end}
 .device-stage .device-base{grid-column:2;grid-row:2}
 .hero-phone.android-phone{grid-column:auto;grid-row:auto;aspect-ratio:202/460;padding:3px!important;border-radius:14px!important;left:calc(var(--forecourt) - var(--phone-width) - 8px)}
 .hero-phone .android-display{border-radius:10px}
 .hero-phone .android-status{flex-basis:10px;font-size:4px;padding-inline:5px}
 .hero-phone .android-camera{width:4px;height:4px;top:3px;left:calc(50% - 2px)}
 .hero-phone .android-nav{flex-basis:11px;font-size:7px}
 .hero-phone .android-side-key{height:14px;box-shadow:0 22px #44474e}
 .hero-truck{left:-16px;bottom:-10px;width:145px}
}
@media(prefers-reduced-motion:reduce){.hero-truck.is-arriving{animation:none}}
