.devices { background: var(--landing-bg); }
.devices__intro { max-width: 820px; margin-inline: auto; text-align: center; }
.devices__intro .lead { margin-inline: auto; text-wrap: pretty; }
.devices__stage { position: relative; container-type: inline-size; width: 100%; max-width: 1120px; aspect-ratio: 1120 / 1050; margin: 64px auto 0; isolation: isolate; }
.device { position: absolute; margin: 0; }
.device:focus-within { z-index: 5; }
.device__body { position: relative; border: 1px solid #919191; }
.device__display { overflow: hidden; background: #f6f8fb; }
.device__screen { position: relative; display: block; background: #f6f8fb; }
.device__screen img { display: block; width: 100%; height: auto; object-fit: contain; }
.device__screen:focus-visible { outline: 3px solid var(--color-brand); outline-offset: -3px; }
.device__caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.device--macbook { z-index: 1; top: 0; left: 3%; width: 94%; }
.device--macbook .device__body { width: 91%; margin-inline: auto; padding: .85cqw; border-radius: 1.9cqw 1.9cqw .7cqw .7cqw; background: #171717; box-shadow: inset 0 0 0 .16cqw #c5c5c5, 0 2.4cqw 4cqw -2.6cqw rgb(0 0 0 / 24%); }
.device--macbook .device__display { border-radius: .9cqw .9cqw .25cqw .25cqw; }
.device--macbook .device__camera { position: absolute; z-index: 2; top: .3cqw; left: 46%; width: 8%; height: 1.3cqw; border-radius: 0 0 .6cqw .6cqw; background: #171717; }
.device--macbook .device__camera::after { content: ""; position: absolute; top: .35cqw; left: calc(50% - .2cqw); width: .4cqw; height: .4cqw; border-radius: 50%; background: #343434; box-shadow: inset 0 0 0 .1cqw #111; }
.device__browser { position: relative; display: flex; justify-content: center; align-items: center; height: 2.5cqw; border-bottom: 1px solid #e3e3e3; color: #777; background: #f5f5f5; font-size: .8cqw; line-height: 1; }
.device__browser-dots { position: absolute; left: 1cqw; display: flex; gap: .4cqw; }
.device__browser-dots i { width: .55cqw; height: .55cqw; border-radius: 50%; background: #ed6a5e; }
.device__browser-dots i:nth-child(2) { background: #f4bd50; }
.device__browser-dots i:nth-child(3) { background: #61c454; }
.device__address { width: 42%; padding: .4cqw; border-radius: .35cqw; text-align: center; background: #eaeaea; }
.device__base { position: relative; height: 2.6cqw; margin-top: -.2cqw; border: 1px solid #a7a7a7; border-radius: .2cqw .2cqw 3.4cqw 3.4cqw / .2cqw .2cqw 1.3cqw 1.3cqw; background: linear-gradient(#eee, #d1d1d1 42%, #aaa 76%, #d8d8d8); box-shadow: 0 1.1cqw 1.8cqw -1cqw rgb(0 0 0 / 22%); }
.device__base::before { content: ""; position: absolute; top: -1px; left: 40%; width: 20%; height: .8cqw; border-radius: 0 0 .8cqw .8cqw; background: #bdbdbd; box-shadow: inset 0 -.15cqw .2cqw #f2f2f2; }

.device--ipad { z-index: 2; top: 31%; left: 31%; width: 38%; }
.device--ipad .device__body { padding: .25cqw; border-radius: 2.8cqw; background: linear-gradient(135deg, #f3f3f3, #b7b7b7 45%, #e5e5e5); box-shadow: inset 0 0 0 .1cqw #f6f6f6, 0 2cqw 4cqw -1.8cqw rgb(0 0 0 / 24%); }
.device--ipad .device__screen { overflow: hidden; border: 1cqw solid #181818; border-radius: 2.45cqw; }
.device--ipad .device__camera { position: absolute; z-index: 2; top: 49%; left: .55cqw; width: .4cqw; height: .4cqw; border-radius: 50%; background: #333; box-shadow: inset 0 0 0 .1cqw #111; }

.device--iphone { z-index: 3; bottom: 0; left: 40.5%; width: 19%; }
.device--iphone .device__body { padding: .35cqw; border-radius: 3.2cqw; background: linear-gradient(125deg, #f0f0f0, #a1a1a1 25%, #e5e5e5 65%, #999); box-shadow: inset 0 0 0 .12cqw #fafafa, 0 2cqw 3cqw -1.4cqw rgb(0 0 0 / 28%); }
.device--iphone .device__body::before, .device--iphone .device__body::after { content: ""; position: absolute; width: .25cqw; border-radius: .2cqw; background: #a6a6a6; }
.device--iphone .device__body::before { left: -.17cqw; top: 19%; height: 13%; }
.device--iphone .device__body::after { right: -.17cqw; top: 25%; height: 9%; }
.device--iphone .device__display { border: .3cqw solid #151515; border-radius: 2.8cqw; }
.device__status { display: flex; align-items: center; justify-content: space-between; position: relative; height: 3.2cqw; padding: .2cqw 1.2cqw 0; color: #222; background: #f6f8fb; font-size: .8cqw; font-weight: 800; }
.device__status svg { width: 2.4cqw; height: .9cqw; }
.device__island { position: absolute; top: .7cqw; left: 34%; width: 32%; height: 1.35cqw; border-radius: 2cqw; background: #111; }
.device__island::after { content: ""; position: absolute; top: 30%; right: 10%; width: .45cqw; height: .45cqw; border-radius: 50%; background: #333; }
.device__home { display: grid; place-items: center; height: 1.6cqw; background: #f6f8fb; }
.device__home::after { content: ""; width: 34%; height: .25cqw; border-radius: 1cqw; background: #222; }

@media (max-width: 600px) {
  .devices__intro .lead { font-size: 16px; }
  .devices__stage { aspect-ratio: 2 / 3; margin-top: 40px; }
  .device--macbook { left: 0; width: 100%; }
  .device--ipad { top: 35%; left: 7%; width: 55%; }
  .device--ipad .device__body { padding: .35cqw; border-radius: 4cqw; }
  .device--ipad .device__screen { border-width: 1.45cqw; border-radius: 3.5cqw; }
  .device--ipad .device__camera { left: .8cqw; width: .6cqw; height: .6cqw; }
  .device--iphone { left: 61%; width: 32%; }
  .device--iphone .device__body { padding: .55cqw; border-radius: 5.2cqw; }
  .device--iphone .device__display { border-width: .5cqw; border-radius: 4.6cqw; }
  .device__status { height: 5.3cqw; padding-inline: 2cqw; font-size: 1.4cqw; }
  .device__status svg { width: 4cqw; height: 1.6cqw; }
  .device__island { top: 1.2cqw; height: 2.2cqw; }
  .device__island::after { width: .7cqw; height: .7cqw; }
  .device__home { height: 2.7cqw; }
  .device__home::after { height: .45cqw; }
}
