/* The licensed device image supplies the body, buttons, glass edge and camera. */
.device.device--real {
  padding: 0 !important;
  aspect-ratio: 391 / 800;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.device.device--real::before, .device.device--real::after,
.device--real .device__screen::before { display: none !important; }
.device--real .device__screen {
  position: absolute;
  inset: 1.75% 4.35% 1.75% 4.6%;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border-radius: 12% / 5.5%;
  background: #fff;
  container-type: inline-size;
}
.device--real > .device__frame {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  z-index: 10;
  pointer-events: none;
  user-select: none;
}
html.night .device.device--real { background: transparent !important; box-shadow: none !important; }
.iphone-ui { position: absolute; inset: 0; display: grid; grid-template-rows: 6.93% minmax(0, 1fr) 9.74%; color: #111; background: #fff; font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
.iphone-status { display: flex; align-items: center; justify-content: space-between; position: relative; padding: 0 6.4cqw; color: #000; background: #f5f5f5; font-size: 4.45cqw; font-weight: 600; line-height: 1; }
.iphone-status::after { content: ''; position: absolute; left: 33.5%; right: 33.5%; top: 22%; height: 60%; border-radius: 99px; background: #000; pointer-events: none; }
.iphone-time { font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.iphone-connectivity { display: flex; align-items: center; gap: 1.25cqw; }
.iphone-connectivity svg { display: block; height: 4cqw; flex: none; }
.iphone-signal { width: 5.1cqw; }
.iphone-wifi { width: 5.6cqw; }
.iphone-battery { width: 7.4cqw; }
.iphone-viewport { display: block; position: relative; min-height: 0; overflow: hidden; background: #fff; }
.iphone-viewport > img { display: block; position: absolute; top: 0; left: 0; width: 100%; height: auto; max-width: none; will-change: transform; }
.show__phone.is-live .device__screen { overflow: hidden; }
.show__phone.is-live .iphone-viewport, .iphone-viewport[data-phone-scroll] { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.show__phone.is-live .iphone-viewport::-webkit-scrollbar, .iphone-viewport[data-phone-scroll]::-webkit-scrollbar { display: none; }
.show__phone.is-live .iphone-viewport > img, .iphone-viewport[data-phone-scroll] > img { position: relative; }
.show__phone.is-live .iphone-viewport > img { transform: none !important; transition: none; }
.iphone-toolbar { display: flex; align-items: center; gap: 2cqw; padding: 0 3cqw 4cqw; position: relative; background: #f5f5f5; color: #111; }
.iphone-toolbar::after { content: ''; position: absolute; left: 35%; bottom: 1.1cqw; width: 30%; height: 1.15cqw; background: #111; border-radius: 99px; }
.iphone-control { display: grid; place-items: center; width: 11.2cqw; height: 11.2cqw; flex: none; padding: 0; border: 1px solid #d4d4d4; border-radius: 50%; background: rgb(235 235 235 / .9); color: inherit; text-decoration: none; box-shadow: inset 0 1px 1px rgb(255 255 255 / .9); }
.iphone-control svg { display: block; width: 5.6cqw; height: 5.6cqw; }
.iphone-address { display: flex; align-items: center; flex: 1; min-width: 0; height: 11.2cqw; border: 1px solid #d4d4d4; border-radius: 99px; background: rgb(235 235 235 / .9); box-shadow: inset 0 1px 1px rgb(255 255 255 / .9); }
.iphone-address .iphone-control { width: 9cqw; border: 0; background: none; box-shadow: none; }
.iphone-domain { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; white-space: nowrap; font-size: 4.1cqw; font-weight: 500; letter-spacing: -.02em; }
.iphone-toolbar button, .iphone-toolbar a { cursor: pointer; }
.iphone-options { position: absolute; z-index: 4; bottom: 11%; left: 7%; right: 7%; display: grid; padding: 2cqw; border: 1px solid #dadada; border-radius: 4cqw; background: #f5f5f5; box-shadow: 0 2cqw 8cqw #0003; }
.iphone-options[hidden] { display: none; }
.iphone-options a, .iphone-options button { display: block; border: 0; background: none; color: #111; text-align: left; text-decoration: none; padding: 3.6cqw; font: 400 4.2cqw/1.4 -apple-system, BlinkMacSystemFont, Arial, sans-serif; cursor: pointer; }
.show__phone-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.show__phone-actions .show__live, .show__try {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #dadada;
  border-radius: 99px;
  background: #fff;
  color: #111;
  font: 500 .8125rem/1.2 Archivo, sans-serif;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.show__try { background: #111; color: #fff; border-color: #111; }
.show__try:hover { background: #303030; }
.show__phone-actions .show__live:hover { background: #f2f2f2; }
.show__phone-actions .show__live::before { display: none; }
.show__phone-actions :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
body.phone-preview-open { overflow: hidden; }
.phone-preview {
  padding: 0;
  border: 0;
  margin: auto;
  width: min(780px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  background: #f2f2f2;
  color: #111;
  border-radius: 18px;
  font-family: Archivo, sans-serif;
}
.phone-preview::backdrop { background: rgb(0 0 0 / .78); }
/* Native dialogs sit outside the root's night filter, so they need no counter filter. */
html.night dialog.phone-preview.night-keep { filter: none !important; }
.phone-preview__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid #dadada;
}
.phone-preview__head h2 { margin: 0; font-size: 22px; font-stretch: 112.5%; font-weight: 560; letter-spacing: -.03em; }
.phone-preview__head p { margin: 4px 0 0; font-size: 13px; color: #5c5c5c; }
.phone-preview__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid #dadada; border-radius: 50%; background: #fff; color: #111; font: inherit; line-height: 1; cursor: pointer; }
.phone-preview__close-icon { width: 20px; height: 20px; }
.phone-preview__body { display: grid; justify-items: center; padding: 20px 20px 14px; }
.phone-preview__device { position: relative; width: min(350px, calc((100dvh - 205px) * 391 / 800), calc(100vw - 80px)); flex: none; }
.phone-preview__content { position: relative; min-height: 0; background: white; }
.phone-preview__content iframe { display: block; position: absolute; top: 0; left: 0; border: 0; max-width: none; transform-origin: left top; background: #fff; }
.phone-preview__loading { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; gap: 12px; text-align: center; background: #fff; padding: 30px; font-size: 16px; }
.phone-preview__loading[hidden] { display: none; }
.phone-preview__loading span { margin: auto; width: 22px; height: 22px; border: 2px solid #dadada; border-top-color: #111; border-radius: 50%; animation: phone-loading .8s linear infinite; }
.phone-preview__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding: 0 20px 18px; font-size: 12px; color: #5c5c5c; text-align: center; }
.phone-preview__foot a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #111; font-weight: 500; text-underline-offset: 4px; }
.phone-preview :focus-visible { outline: 2px solid #111; outline-offset: 3px; }
@keyframes phone-loading { to { transform: rotate(360deg); } }
@media (max-width: 960px) {
  .show__stage { padding-bottom: 94px; }
  .show__phone-actions { bottom: 22px; left: 12px; right: 12px; }
  .phone-preview__head { padding: 12px 16px; gap: 12px; }
  .phone-preview__head h2 { font-size: 20px; }
  .phone-preview__head p { font-size: 12px; }
  .phone-preview__body { padding: 14px 16px 8px; }
}
@media (max-height: 550px) {
  .phone-preview { width: calc(100vw - 24px); }
  .phone-preview__device { width: min(250px, calc(100vw - 80px)); }
}
@media (prefers-reduced-motion: reduce) { .phone-preview__loading span { animation: none; } }
