/* Device frames, drawn in CSS. Every screen inside one is a real capture of
   the app; the frames are generic hardware, not anyone's marketing art.
   Usage: <figure class="dev phone"><div class="scr"><img …></div></figure> */

.dev {
  --metal-1: #2a2a2e;
  --metal-2: #0d0d10;
  --edge: rgba(255, 255, 255, .14);
  position: relative;
  margin: 0;
  box-sizing: border-box;
  background: linear-gradient(145deg, var(--metal-1), var(--metal-2) 60%);
  box-shadow:
    0 0 0 1px var(--edge) inset,
    0 1px 0 rgba(255, 255, 255, .08) inset,
    0 30px 60px -20px rgba(10, 10, 20, .45),
    0 12px 24px -12px rgba(10, 10, 20, .3);
}
.dev .scr {
  position: relative;
  overflow: hidden;
  background: #000;
  height: 100%;
}
.dev .scr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.dev .scr::after { /* a faint glass sheen, never over the content's contrast */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 38%);
}

/* iPhone 6.9" — capture 1320 × 2868 */
.phone {
  aspect-ratio: 1320 / 2868;
  padding: 3.2%;
  border-radius: 15% / 7%;
}
.phone .scr { border-radius: 12.4% / 5.8%; }

/* iPad 13" — capture 2064 × 2752 */
.tablet {
  aspect-ratio: 2064 / 2752;
  padding: 2.6%;
  border-radius: 5.2% / 3.9%;
}
.tablet .scr { border-radius: 3% / 2.25%; }

/* iPhone Duo closed — capture 1398 × 2034 */
.duo-closed {
  aspect-ratio: 1398 / 2034;
  padding: 3.4%;
  border-radius: 13% / 9%;
}
.duo-closed .scr { border-radius: 10% / 6.9%; }

/* iPhone Duo open — capture 1902 × 1338, two pages and a hinge */
.duo-open {
  aspect-ratio: 1902 / 1338;
  padding: 2.4%;
  border-radius: 7% / 10%;
}
.duo-open .scr { border-radius: 5% / 7%; }
.duo-open .scr::before,
.fold-open .scr::before { /* the crease */
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 14px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .10) 45%, rgba(255, 255, 255, .12) 50%, rgba(0, 0, 0, .10) 55%, rgba(0, 0, 0, 0));
}

/* Pixel Fold cover — capture 1080 × 2364 */
.fold-cover {
  aspect-ratio: 1080 / 2364;
  padding: 3.6%;
  border-radius: 12% / 5.6%;
}
.fold-cover .scr { border-radius: 8.5% / 3.9%; }

/* Pixel Fold open — capture 2048 × 2152 */
.fold-open {
  aspect-ratio: 2048 / 2152;
  padding: 2.4%;
  border-radius: 5% / 4.8%;
}
.fold-open .scr { border-radius: 3% / 2.9%; }

/* Mac — a window on a desktop, inside a laptop lid. Capture 1100 × 760 pt */
.mac {
  --lid: 1.6;
  aspect-ratio: 16 / 10.4;
  padding: 2.2% 2.2% 3.2%;
  border-radius: 3.4% / 5.2%;
}
.mac .scr {
  display: grid;
  place-items: center;
  border-radius: 1.4% / 2.2%;
  background:
    radial-gradient(120% 90% at 20% 10%, #6f86b8 0%, rgba(111, 134, 184, 0) 60%),
    radial-gradient(90% 80% at 85% 90%, #d59a7a 0%, rgba(213, 154, 122, 0) 60%),
    linear-gradient(160deg, #3c4a6b, #1d2233);
}
.mac .win {
  width: 88%;
  border-radius: 10px;
  overflow: hidden;
  background: #FAF9F6;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .35), 0 18px 40px -10px rgba(0, 0, 0, .55);
}
.mac .bar {
  display: flex;
  gap: 6px;
  align-items: center;
  height: clamp(14px, 2.2vw, 26px);
  padding: 0 1.4%;
  background: #ECEAE6;
  border-bottom: 1px solid #DEDBD5;
}
.mac .bar i { width: clamp(6px, .8vw, 11px); aspect-ratio: 1; border-radius: 50%; background: #FF5F57; }
.mac .bar i + i { background: #FEBC2E; }
.mac .bar i + i + i { background: #28C840; }
.mac .win img { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 760; }
.mac::after { /* the base below the lid */
  content: "";
  position: absolute;
  left: -7%;
  right: -7%;
  bottom: -3.4%;
  height: 3.6%;
  border-radius: 0 0 40% 40% / 0 0 100% 100%;
  background: linear-gradient(#c9cbd1, #8c8f97);
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .45);
}
.mac::before { /* the notch where the lid opens */
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -3.4%;
  width: 14%;
  height: 1.4%;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #7d8088;
}
@media (prefers-color-scheme: dark) {
  .mac .win { background: #0A0A0B; }
  .mac .bar { background: #222226; border-bottom-color: #2e2e33; }
  .mac::after { background: linear-gradient(#55575e, #2c2d32); }
  .mac::before { background: #25262b; }
}

/* Status chip that sits on a device */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .3em .7em;
  border-radius: 99px;
  font: 600 .75rem/1.2 system-ui, -apple-system, sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
}
.chip::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
.chip.live { background: #DCFCE7; color: #14532D; }
.chip.soon { background: #ECE9E2; color: #44403C; }
@media (prefers-color-scheme: dark) {
  .chip.live { background: #0F2E1C; color: #86EFAC; }
  .chip.soon { background: #26262A; color: #D6D3D1; }
}
