/*!
 * Device frames adapted from devices.css v0.2.0 by Yan Zhu (picturepan2)
 * https://github.com/picturepan2/devices.css — MIT License (see devices.LICENSE.txt)
 *
 * Changes for this site: only the iPhone 14 Pro and iPad Pro frames are kept;
 * pixel sizes are expressed in --u so a frame scales from a single width
 * (set --device-w); the iPad is reproportioned to the 13-inch M5 screen;
 * an iPhone home indicator is added.
 */

/* Set --device-w on the frame or any ancestor to size it */
.device-iphone-14-pro {
  --u: calc(var(--device-w, 300px) / 428);
}

.device-ipad-pro {
  --u: calc(var(--device-w, 440px) / 560);
}

.device,
.device::before,
.device::after,
.device *,
.device *::before,
.device *::after {
  box-sizing: border-box;
  display: block;
}

.device {
  position: relative;
  transform: scale(1);
  z-index: 1;
}

.device .device-frame {
  z-index: 1;
}

.device .device-screen {
  background-color: #000;
  background-position: center center;
  background-size: cover;
  object-fit: cover;
  position: relative;
}

.device-iphone-14-pro {
  height: calc(868 * var(--u));
  width: calc(428 * var(--u));
}

.device-iphone-14-pro .device-frame {
  background: #010101;
  border: calc(1 * var(--u)) solid #1b1721;
  border-radius: calc(68 * var(--u));
  box-shadow: inset 0 0 calc(4 * var(--u)) calc(2 * var(--u)) #c0b7cd, inset 0 0 0 calc(6 * var(--u)) #342c3f;
  height: calc(868 * var(--u));
  padding: calc(19 * var(--u));
  width: calc(428 * var(--u));
}

.device-iphone-14-pro .device-screen {
  border-radius: calc(49 * var(--u));
  height: calc(830 * var(--u));
  width: calc(390 * var(--u));
}

.device-iphone-14-pro .device-stripe::after,
.device-iphone-14-pro .device-stripe::before {
  border: solid rgba(1, 1, 1, .25);
  border-width: 0 calc(7 * var(--u));
  content: "";
  height: calc(7 * var(--u));
  left: 0;
  position: absolute;
  width: 100%;
  z-index: 9;
}

.device-iphone-14-pro .device-stripe::after {
  top: calc(85 * var(--u));
}

.device-iphone-14-pro .device-stripe::before {
  bottom: calc(85 * var(--u));
}

.device-iphone-14-pro .device-header {
  background: #010101;
  border-radius: calc(20 * var(--u));
  height: calc(35 * var(--u));
  left: 50%;
  margin-left: calc(-60 * var(--u));
  position: absolute;
  top: calc(29 * var(--u));
  width: calc(120 * var(--u));
}

.device-iphone-14-pro .device-sensors::after,
.device-iphone-14-pro .device-sensors::before {
  content: "";
  position: absolute;
}

.device-iphone-14-pro .device-sensors::after {
  background: #010101;
  border-radius: calc(17 * var(--u));
  height: calc(33 * var(--u));
  left: 50%;
  margin-left: calc(-60 * var(--u));
  top: calc(30 * var(--u));
  width: calc(74 * var(--u));
}

.device-iphone-14-pro .device-sensors::before {
  background: radial-gradient(farthest-corner at 20% 20%, #6074bf 0, transparent 40%), radial-gradient(farthest-corner at 80% 80%, #513785 0, #24555e 20%, transparent 50%);
  border-radius: 50%;
  box-shadow: 0 0 calc(1 * var(--u)) calc(1 * var(--u)) rgba(255, 255, 255, .05);
  height: calc(9 * var(--u));
  left: 50%;
  margin-left: calc(36 * var(--u));
  top: calc(42 * var(--u));
  width: calc(9 * var(--u));
}

.device-iphone-14-pro .device-btns {
  background: #1b1721;
  border-radius: calc(2 * var(--u));
  height: calc(32 * var(--u));
  left: calc(-2 * var(--u));
  position: absolute;
  top: calc(115 * var(--u));
  width: calc(3 * var(--u));
}

.device-iphone-14-pro .device-btns::after,
.device-iphone-14-pro .device-btns::before {
  background: #1b1721;
  border-radius: calc(2 * var(--u));
  content: "";
  height: calc(62 * var(--u));
  left: 0;
  position: absolute;
  width: calc(3 * var(--u));
}

.device-iphone-14-pro .device-btns::after {
  top: calc(60 * var(--u));
}

.device-iphone-14-pro .device-btns::before {
  top: calc(140 * var(--u));
}

.device-iphone-14-pro .device-power {
  background: #1b1721;
  border-radius: calc(2 * var(--u));
  height: calc(100 * var(--u));
  position: absolute;
  right: calc(-2 * var(--u));
  top: calc(200 * var(--u));
  width: calc(3 * var(--u));
}

.device-iphone-14-pro .device-home::after,
.device-iphone-14-pro .device-home::before {
  border: solid rgba(1, 1, 1, .25);
  border-width: calc(6 * var(--u)) 0;
  content: "";
  height: calc(6 * var(--u));
  position: absolute;
  width: calc(6 * var(--u));
  z-index: 9;
}

.device-iphone-14-pro .device-home::after {
  right: calc(86 * var(--u));
  top: 0;
}

.device-iphone-14-pro .device-home::before {
  bottom: 0;
  left: calc(86 * var(--u));
}

.device-iphone-14-pro.device-black .device-frame {
  border-color: #5c5956;
  box-shadow: inset 0 0 calc(4 * var(--u)) calc(2 * var(--u)) white, inset 0 0 0 calc(6 * var(--u)) #76726f;
}

.device-iphone-14-pro.device-black .device-btns {
  background: #5c5956;
}

.device-iphone-14-pro.device-black .device-btns::after,
.device-iphone-14-pro.device-black .device-btns::before {
  background: #5c5956;
}

.device-iphone-14-pro.device-black .device-power {
  background: #5c5956;
}

.device-ipad-pro {
  height: calc(778 * var(--u));
  width: calc(560 * var(--u));
}

.device-ipad-pro .device-frame {
  background: #0d0d0d;
  border-radius: calc(36 * var(--u));
  box-shadow: inset 0 0 0 calc(1 * var(--u)) #babdbf, inset 0 0 calc(1 * var(--u)) calc(3 * var(--u)) #e2e3e4;
  height: calc(778 * var(--u));
  padding: calc(27 * var(--u));
  width: calc(560 * var(--u));
}

.device-ipad-pro .device-screen {
  border: calc(2 * var(--u)) solid #121212;
  border-radius: calc(11 * var(--u));
  height: calc(724 * var(--u));
  width: calc(506 * var(--u));
}

.device-ipad-pro .device-btns::after,
.device-ipad-pro .device-btns::before {
  background: #babdbf;
  content: "";
  position: absolute;
}

.device-ipad-pro .device-btns::after {
  height: calc(2 * var(--u));
  right: calc(40 * var(--u));
  top: calc(-2 * var(--u));
  width: calc(36 * var(--u));
}

.device-ipad-pro .device-btns::before {
  box-shadow: 0 calc(37 * var(--u)) #babdbf;
  height: calc(32 * var(--u));
  right: calc(-2 * var(--u));
  top: calc(63 * var(--u));
  width: calc(2 * var(--u));
}

.device-ipad-pro .device-sensors::after,
.device-ipad-pro .device-sensors::before {
  content: "";
  position: absolute;
}

.device-ipad-pro .device-sensors::after {
  background: #1a1a1a;
  border-radius: calc(17 * var(--u));
  box-shadow: calc(-20 * var(--u)) 0 #1a1a1a, calc(70 * var(--u)) 0 #1a1a1a;
  height: calc(10 * var(--u));
  left: 50%;
  margin-left: calc(-30 * var(--u));
  top: calc(12 * var(--u));
  width: calc(10 * var(--u));
}

.device-ipad-pro .device-sensors::before {
  background: radial-gradient(farthest-corner at 20% 20%, #6074bf 0, transparent 40%), radial-gradient(farthest-corner at 80% 80%, #513785 0, #24555e 20%, transparent 50%);
  border-radius: 50%;
  box-shadow: 0 0 calc(1 * var(--u)) calc(1 * var(--u)) rgba(255, 255, 255, .05);
  height: calc(6 * var(--u));
  left: 50%;
  margin-left: calc(-3 * var(--u));
  top: calc(14 * var(--u));
  width: calc(6 * var(--u));
}

.device-ipad-pro.device-spacegray .device-frame {
  box-shadow: inset 0 0 0 calc(1 * var(--u)) #6a6d70, inset 0 0 calc(1 * var(--u)) calc(3 * var(--u)) #83878a;
}

.device-ipad-pro.device-spacegray .device-btns::after,
.device-ipad-pro.device-spacegray .device-btns::before {
  background: #6a6d70;
}

.device-ipad-pro.device-spacegray .device-btns::before {
  box-shadow: 0 calc(37 * var(--u)) #6a6d70;
}

/* ---- Site additions ---- */
.device .device-screen {
  object-fit: cover;
  object-position: top center;
  background-color: #F0F3F5;
}

/* Home indicator (the iPhone screenshots don't include one) */
.device-iphone-14-pro .device-home-bar {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: calc(27 * var(--u));
  width: calc(134 * var(--u));
  height: calc(5 * var(--u));
  margin-left: calc(-67 * var(--u));
  border-radius: calc(3 * var(--u));
  background: #111111;
}

/* iPad Pro 13-inch (M5): 3:4 screen, slim bezels, camera on the long edge */
.device-ipad-pro {
  height: calc(724 * var(--u));
}

.device-ipad-pro .device-frame {
  height: calc(724 * var(--u));
  padding: calc(22 * var(--u));
  border-radius: calc(34 * var(--u));
}

.device-ipad-pro .device-screen {
  width: calc(516 * var(--u));
  height: calc(680 * var(--u));
  border: 0;
  border-radius: calc(14 * var(--u));
}

.device-ipad-pro .device-sensors::after {
  display: none;
}

.device-ipad-pro .device-sensors::before {
  top: 50%;
  left: calc(8 * var(--u));
  margin-left: 0;
  margin-top: calc(-3 * var(--u));
}

