/* The iOS 26 device frame — bezel, dynamic island, status bar, home indicator.
 * Ported from the design's ios-frame.jsx starter, which is deliberately raw
 * (hex and px by design): these are Apple's chrome measurements, not Organic
 * tokens, so they stay literal here and nowhere else in the app.
 */

.ios-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: #e7dfd0;
}

.ios-device {
  width: 402px;
  height: 874px;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  background: #f2f2f7;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.12);
  font-family: -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ios-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}

.ios-statusbar-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}

.ios-statusbar {
  display: flex;
  gap: 154px;
  align-items: center;
  justify-content: center;
  padding: 21px 24px 19px;
  width: 100%;
  position: relative;
  z-index: 20;
  color: #000;
}

.ios-statusbar-slot {
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-statusbar-time {
  padding-top: 1.5px;
  font-family: -apple-system, "SF Pro", system-ui;
  font-weight: 590;
  font-size: 17px;
  line-height: 22px;
}

.ios-statusbar-icons {
  gap: 7px;
  padding-top: 1px;
  padding-right: 1px;
}

.ios-body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* The one scrolling surface: a screen, the tab bar sticking to its bottom,
   and the toast floating over both. */
.ios-scroll {
  flex: 1;
  overflow: auto;
  scrollbar-width: none;
}
.ios-scroll::-webkit-scrollbar { width: 0; height: 0; }

.ios-home-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 8px;
  pointer-events: none;
}

.ios-home-indicator span {
  width: 139px;
  height: 5px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.25);
}

/* On a real handset there is no bezel to draw: run edge to edge. */
@media (max-width: 470px), (max-height: 900px) and (max-width: 470px) {
  .ios-stage { padding: 0; min-height: 100dvh; }
  .ios-device {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}
