/* Hero: iPad Learning Hub, then two iPhones in a shared slide. */
.uni-hero--devices .uni-hero__media {
  align-self: center;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.uni-hero--devices .uni-hero__frame {
  width: 100%;
  max-width: 680px;
  height: auto;
  aspect-ratio: 1 / 1.12;
  overflow: visible;
}
.uni-hero--devices .uni-hero__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 76px;
}
.uni-hero--devices .hero-tablet { width: 100%; }
.uni-hero--devices .hero-device-screen {
  overflow: hidden;
  border-radius: clamp(10px, 1.3vw, 18px);
  background: #e7eef5;
}
.uni-hero--devices .hero-device-screen img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.hero-phone-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
}
.hero-phone {
  position: relative;
  flex: 0 1 42%;
  min-width: 0;
  --phone-bezel: clamp(6px, .65vw, 9px);
  --phone-radius: clamp(22px, 2.8vw, 38px);
  padding: var(--phone-bezel);
  border: 1px solid #65686e;
  border-radius: var(--phone-radius);
  background: #08090b;
  box-shadow: 0 2px 0 #71757c inset, 0 -2px 0 #181a1e inset,
    0 16px 28px -12px rgba(5, 12, 25, .55), 0 3px 6px rgba(5, 12, 25, .3);
}
.hero-phone:first-child { transform: translateY(-12px); }
.hero-phone:last-child { transform: translateY(12px); }
.hero-phone::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 18%;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #2d3036;
}
.hero-phone::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 26%;
  width: 3px;
  height: 12%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #303238, #797b81);
}
.uni-hero--devices .hero-phone .hero-device-screen { border-radius: calc(var(--phone-radius) - var(--phone-bezel) - 1px); }
.uni-hero--devices .uni-hero__slider-button {
  top: auto;
  bottom: 4px;
  opacity: 1;
  transform: none;
  width: 40px;
  height: 40px;
}
.uni-hero--devices .uni-hero__slider-button--prev { left: calc(50% - 106px); }
.uni-hero--devices .uni-hero__slider-button--next { left: calc(50% + 66px); right: auto; }
.uni-hero--devices .uni-hero__slider-dots {
  left: 50%;
  right: auto;
  bottom: 2px;
  transform: translateX(-50%);
  gap: 0;
}
.uni-hero--devices .uni-hero__slider-dot,
.uni-hero--devices .uni-hero__slider-dot.is-active {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  background: transparent;
}
.uni-hero--devices .uni-hero__slider-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(238, 241, 255, .38);
  transition: width 180ms ease;
}
.uni-hero--devices .uni-hero__slider-dot.is-active::before { width: 22px; background: #a48fff; }
.uni-hero--devices .uni-hero__slider-button:focus-visible,
.uni-hero--devices .uni-hero__slider-dot:focus-visible { outline: 2px solid #a48fff; outline-offset: 3px; }
@media (max-width: 1060px) {
  .uni-hero--devices .uni-hero__media { max-width: 620px; margin-inline: auto; }
  .uni-hero--devices .uni-hero__frame { max-width: none; }
}
@media (max-width: 720px) {
  .uni-hero--devices .uni-hero__media {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 28px;
  }
  .uni-hero--devices .uni-hero__slide { padding: 20px 6px 66px; }
  .hero-phone-pair { gap: 14px; }
  .hero-phone { flex-basis: 43%; }
  .hero-phone:first-child { transform: translateY(-8px); }
  .hero-phone:last-child { transform: translateY(8px); }
  .uni-hero--devices .hero-tablet { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .uni-hero--devices .uni-hero__slide,
  .uni-hero--devices .uni-hero__slider-dot::before { transition: none; }
}

/* Browser chrome occupies screen space; the screenshot keeps its original scale. */
.uni-hero--devices .hero-phone .hero-device-screen { aspect-ratio: 1178 / 2553; }
.hero-phone-browser {
  display: flex;
  align-items: center;
  gap: 5px;
  height: clamp(22px, 2.5vw, 30px);
  padding: 4px 6px;
  border-bottom: 1px solid #dce1e7;
  background: linear-gradient(#f4f5f7, #eceef2);
  color: #38414e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(6px, .65vw, 8px);
  line-height: 1;
}
.hero-phone-browser__reader { font-size: 9px; letter-spacing: -.8px; }
.hero-phone-browser__address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 4px;
  border-radius: 5px;
  background: #dfe3e9;
}
.hero-phone-browser__address span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-phone-browser__address svg { width: 8px; height: 8px; flex: 0 0 auto; }
.hero-phone-browser__menu { font-size: 11px; letter-spacing: -1px; }
