/* Shared device frames for DMP product mockups.
   iPhone (393x852 pt screen, Dynamic Island) and a macOS Safari window.
   Fonts: in headless Chrome on macOS only `system-ui` / BlinkMacSystemFont resolve to San Francisco. */

:root {
  --sf: system-ui, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: transparent; }
body { font-family: var(--sf); -webkit-font-smoothing: antialiased; color: #000; }
svg { display: block; }

/* The stage leaves room for the drop shadow; render.py trims the transparent margin. */
.stage { position: absolute; left: 0; top: 0; padding: 24px 30px 70px; }

/* ---------- iPhone (Pro, straight-on) ---------- */
.iphone {
  position: relative;
  width: 421px; height: 880px;             /* 393x852 screen + 14 px per side */
  border-radius: 69px;
  padding: 3px;                            /* titanium band */
  background: linear-gradient(150deg, #6d6d71 0%, #3a3a3d 18%, #242426 45%, #2c2c2f 70%, #5e5e62 100%);
  box-shadow:
    0 1px 1px rgba(0,0,0,.35),
    0 26px 44px -18px rgba(0,0,0,.42),
    0 14px 24px -14px rgba(0,0,0,.30);
}
.iphone::before {                          /* thin highlight on the band edge */
  content: ""; position: absolute; inset: 0; border-radius: 69px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), inset 0 1px 0 rgba(255,255,255,.18);
  pointer-events: none;
}
.iphone .bezel {
  position: relative; width: 100%; height: 100%;
  border-radius: 66px; background: #030303; padding: 11px;
}
.iphone .screen {
  position: relative; width: 393px; height: 852px;
  border-radius: 55px; overflow: hidden; background: #fff;
  isolation: isolate;
}
.iphone .hw { position: absolute; width: 3px; background: linear-gradient(90deg, #2a2a2c, #58585c 60%, #3a3a3c); }
.iphone .hw.l { left: -2px; border-radius: 2px 0 0 2px; }
.iphone .hw.r { right: -2px; border-radius: 0 2px 2px 0; background: linear-gradient(270deg, #2a2a2c, #58585c 60%, #3a3a3c); }
.iphone .hw.action { top: 150px; height: 32px; }
.iphone .hw.volup  { top: 216px; height: 62px; }
.iphone .hw.voldn  { top: 292px; height: 62px; }
.iphone .hw.power  { top: 252px; height: 100px; }

.island {
  position: absolute; z-index: 60; top: 11px; left: 50%;
  width: 126px; height: 37px; margin-left: -63px;
  border-radius: 19px; background: #000;
}
.island::after {                           /* faint front-camera lens */
  content: ""; position: absolute; right: 22px; top: 12px; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #232a3d 0 18%, #0b0d14 45%, #050507 70%);
  opacity: .9;
}

/* Status bar */
.sb { position: absolute; z-index: 55; top: 0; left: 0; right: 0; height: 54px; pointer-events: none; }
.sb .time {
  position: absolute; left: 0; width: 133px; top: 18px; text-align: center;
  font: 600 17px/22px var(--sf); letter-spacing: -.4px;
}
.sb .icons { position: absolute; left: 260px; right: 0; top: 23px; display: flex; justify-content: center; align-items: center; gap: 5.5px; padding-left: 2px; }
.sb.light { color: #fff; }
.sb.dark { color: #000; }

.home-ind {
  position: absolute; z-index: 60; bottom: 8px; left: 50%;
  width: 139px; height: 5px; margin-left: -69.5px; border-radius: 3px; background: #000;
}
.home-ind.light { background: #fff; }

/* ---------- macOS Safari window ---------- */
.mac-window {
  position: relative; overflow: hidden; border-radius: 12px; background: #fff;
  box-shadow:
    0 0 0 .5px rgba(0,0,0,.28),
    0 24px 60px -10px rgba(0,0,0,.30),
    0 8px 22px -6px rgba(0,0,0,.14);
}
.safari-bar {
  position: relative; height: 52px; display: flex; align-items: center;
  background: #f6f6f6; border-bottom: 1px solid #dcdcdc;
  font-family: var(--sf);
}
.traffic { display: flex; gap: 8px; padding-left: 20px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.traffic i:nth-child(1) { background: #ff5f57; box-shadow: inset 0 0 0 .5px #e2463f; }
.traffic i:nth-child(2) { background: #febc2e; box-shadow: inset 0 0 0 .5px #e1a116; }
.traffic i:nth-child(3) { background: #28c840; box-shadow: inset 0 0 0 .5px #14ae2c; }
.safari-bar .tb-icon { color: #6e6e73; display: flex; align-items: center; }
.safari-bar .addr {
  position: absolute; left: 50%; top: 9px; transform: translateX(-50%);
  width: 520px; height: 34px; border-radius: 9px; background: #e9e9e9;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font: 400 13.5px var(--sf); color: #1d1d1f; letter-spacing: -.1px;
}
.safari-bar .addr .lock { color: #6e6e73; }
.safari-bar .right { position: absolute; right: 16px; top: 0; height: 52px; display: flex; align-items: center; gap: 20px; color: #6e6e73; }
