/* Equipment overlays share the right edge of the software screen. */
.hero-software-first{justify-content:flex-start}
.hero-visual-stack{
  --screen-top:68px;
  --screen-left:-3%;
  --screen-width:104%;
  --sensor-overlay-width:196px;
  --sensor-photo-height:104px;
  --module-overlay-width:160px;
  --module-photo-height:86px;
  position:relative;display:flow-root;width:100%;margin:0;isolation:isolate;
}
/* The software frame, image, toolbar and caption keep their original v5 styles. */
.hero-hardware-previews{position:absolute;top:var(--screen-top);left:var(--screen-left);bottom:0;width:var(--screen-width);display:block;align-self:auto;gap:0;z-index:3;pointer-events:none}
.hero-hardware-preview{
  position:absolute;right:-20px;display:block;min-height:0;grid-template-columns:none;
  padding:10px;border-radius:12px;pointer-events:auto;cursor:zoom-in;
  background:#17304ef2;border-color:#86a7cc7a;box-shadow:0 16px 32px #02091766,inset 0 1px #e1efff1a;
}
.hero-hardware-sensor{top:-38px;bottom:auto;width:var(--sensor-overlay-width)}
.hero-hardware-module{top:auto;bottom:44px;width:var(--module-overlay-width)}
.hero-hardware-preview .hero-hardware-photo{width:100%;height:auto;padding:10px;border-radius:8px;background:linear-gradient(135deg,#f0f5fb,#d5e2f2)}
.hero-hardware-sensor .hero-hardware-photo{height:var(--sensor-photo-height)}
.hero-hardware-module .hero-hardware-photo{height:var(--module-photo-height)}
.hero-hardware-photo>img,.hero-hardware-photo>picture>img{width:100%;height:100%;object-fit:contain}
.hero-hardware-preview>span:nth-of-type(2){display:block;margin:9px 1px 0}
.hero-hardware-preview strong{font-size:11px;line-height:1.4}
.hero-hardware-preview small{font-size:9px;line-height:1.5;margin-top:3px}
.hero-hardware-preview>.icon{position:absolute;top:15px;right:15px;display:block;width:14px;height:14px;padding:2px;border-radius:4px;background:#294a74;color:#e9f4ff}
@media(max-width:1180px){
  .hero-visual-stack{--screen-top:62px;--sensor-overlay-width:178px;--sensor-photo-height:94px;--module-overlay-width:146px;--module-photo-height:78px}
  .hero-hardware-preview{right:-16px}
  .hero-hardware-sensor{top:-34px}
}
@media(max-width:1020px){
  .hero-visual-stack{--screen-top:70px;--screen-left:-4%;--screen-width:105%;--sensor-overlay-width:158px;--sensor-photo-height:85px;--module-overlay-width:130px;--module-photo-height:70px}
  .hero-hardware-preview{right:-9px;padding:9px}
  .hero-hardware-preview .hero-hardware-photo{padding:8px}
  .hero-hardware-sensor{top:-30px}
}
@media(max-width:720px){
  .hero-visual-stack{display:flex;flex-direction:column;gap:12px}
  .hero-product-screen{width:100%;margin:0;transform:none;order:1}
  .hero-hardware-previews{position:relative;inset:auto;top:auto;left:auto;bottom:auto;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px;pointer-events:auto;order:2}
  .hero-hardware-preview{position:relative;right:auto;top:auto;bottom:auto;width:auto;display:grid;grid-template-columns:55px 1fr;align-items:center;gap:10px;min-height:83px;padding:11px;border-radius:10px}
  .hero-hardware-sensor,.hero-hardware-module{top:auto;bottom:auto;width:auto}
  .hero-hardware-preview .hero-hardware-photo{width:55px;height:59px;padding:6px}
  .hero-hardware-sensor .hero-hardware-photo,.hero-hardware-module .hero-hardware-photo{height:59px}
  .hero-hardware-preview>span:nth-of-type(2){margin:0}
  .hero-hardware-preview strong{font-size:10px}.hero-hardware-preview small{font-size:9px}
  .hero-hardware-preview>.icon{top:13px;right:13px;width:13px;height:13px}
}
@media(max-width:390px){
  .hero-hardware-previews{gap:9px}
  .hero-hardware-preview{grid-template-columns:42px 1fr;gap:8px;padding:9px;min-height:0}
  .hero-hardware-preview .hero-hardware-photo{width:42px;height:53px;padding:4px}
  .hero-hardware-sensor .hero-hardware-photo,.hero-hardware-module .hero-hardware-photo{height:53px}
  .hero-hardware-preview strong{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.hero-hardware-preview{transition:none}.hero-hardware-preview:hover{transform:none}}
