.devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap;
}

.device-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.device-wrap.journey-buttons {
  position: absolute;
  right: 0px;
  z-index: 1;
}

.label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  text-align: center;
}

.phone {
  width: 90px;
  height: 178px;
  background: #1e2330;
  border-radius: 18px;
  padding: 10px 6px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  box-sizing: border-box;
}
.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 6px;
  background: #0d1117;
  border-radius: 3px;
  z-index: 2;
}
.phone::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: #3a4049;
  border-radius: 2px;
}
.phone .screen {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}


.ipad {
  height: 180px;
  width: 240px;
  background: #1e2330;
  border-radius: 16px;
  padding: 12px 8px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  box-sizing: border-box;
}
.ipad::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4049;
}
.ipad .screen {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.ipad .screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.monitor {
  width: 340px;
  height: 220px;
  background: #1e2330;
  border-radius: 10px;
  padding: 10px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  position: relative;
}
.monitor::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a4049;
}
.monitor .screen {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.monitor .screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.stand-neck {
  width: 20px;
  height: 20px;
  background: #c8cdd4;
}
.stand-base {
  width: 100px;
  height: 8px;
  background: #c8cdd4;
  border-radius: 0 0 6px 6px;
}

@media (max-width: 820px) {
  .devices {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ipad {
    width: 200px;
    height: 150px;
  }

  .device-wrap:has(.desktop) {
    display: none;
  }
}

@media (max-width: 560px) {
  .devices {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .phone {
    width: 110px;
    height: 218px;
    border-radius: 22px;
  }

  .ipad {
    width: min(90vw, 320px);
    height: 180px;
  }

  .monitor {
    width: min(90vw, 300px);
    height: 180px;
  }

  .stand-base {
    width: 80px;
  }

  .label {
    font-size: 14px;
  }
}

/* Very small phones (~380px) */
@media (max-width: 380px) {
  .phone   { width: 90px;  height: 178px; }
  .ipad    { width: 88vw;  height: 150px; }
  .monitor { width: 88vw;  height: 160px; }
}