/* Device frames for product screenshots on the marketing site (homepage and
   /features/<module>). Markup comes from templates/macros/_device.html.

   Window: a browser-style title bar with the three traffic-light dots above
   a desktop capture.

   Phone: a bezel around a 390x844 screen. The top 54 units are an iOS-style
   status bar (time, signal, wifi, battery, with the island drawn inside it),
   so the island never sits over app content. The screenshot below it is
   captured at 390x790 (scripts/marketing_screenshot.py --mobile), which makes
   status bar plus capture exactly the phone's 390:844 screen. */

.device-window {
  background: var(--surface-1, #fff);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.device-window-bar {
  display: flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 12px;
  background: var(--surface-2, #f3f3f1);
  border-bottom: 1px solid var(--border-soft, rgba(14, 26, 43, 0.08));
}
.device-window-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.device-window-bar i:nth-child(1) { background: #ff5f57; }
.device-window-bar i:nth-child(2) { background: #ffbd2e; }
.device-window-bar i:nth-child(3) { background: #28c840; }
.device-window > img {
  display: block; width: 100%; height: auto;
  max-width: none; margin: 0; border: 0; border-radius: 0; background: transparent;
}

.device-phone {
  width: 100%; max-width: 264px; margin: 0 auto;
  background: var(--ink-900, #0e1a2b);
  border: 1px solid var(--ink-700, #2a3546);
  border-radius: 40px;
  padding: 9px;
  box-shadow: var(--shadow-2);
}
.device-phone-screen {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: 31px;
  overflow: hidden;
  background: #fff;
  display: flex; flex-direction: column;
}
.device-status { display: block; width: 100%; height: auto; flex: none; color: #0e1a2b; background: #fff; }
.device-phone-screen > img {
  display: block; width: 100%; flex: 1 1 auto; min-height: 0;
  object-fit: cover; object-position: top center;
  max-width: none; margin: 0; border: 0; border-radius: 0; background: transparent;
}
