/* Homepage only. Real app screenshots with local, presentation-only navigation. */
body[data-bdr-page="home"] .hero .product-figure.bdr-phone-preview {
  padding: 20px 20px 18px;
}
.bdr-phone-preview .bdr-preview-kicker {
  margin: 0 0 14px;
  color: #52647c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}
body[data-bdr-page="home"] .bdr-phone-preview > .phone-frame {
  width: clamp(236px, 18vw, 270px);
  max-width: 100%;
  aspect-ratio: 1 / 2.18;
}
.bdr-phone-preview .bdr-preview-screen {
  position: absolute;
  inset: 5px;
  width: auto;
  height: auto;
  max-width: none;
  aspect-ratio: auto;
  transform: none;
  border-radius: 12% / 5.5%;
  background: #f7f8fa;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  outline-offset: 5px;
}
.bdr-phone-preview .bdr-preview-screen:active { cursor: grabbing; }
.bdr-phone-preview .bdr-preview-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.bdr-phone-preview [hidden] { display: none !important; }
.bdr-phone-preview .bdr-preview-canvas {
  position: relative;
  width: 100%;
  flex: none;
  line-height: 0;
}
.bdr-phone-preview .bdr-preview-canvas img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.bdr-phone-preview .bdr-preview-menu {
  position: absolute;
  inset: 87.1% 0 auto;
  height: 7.6%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
/* These two source captures omit the OS bars and are shorter. Keep their
   content at its original aspect ratio; anchor the screenshot's own menu to
   the screen bottom instead of vertically centering the whole short image. */
.bdr-phone-preview .bdr-preview-canvas--cropped {
  height: 100%;
  align-self: stretch;
  --preview-menu-ratio: 1290 / 219;
  --preview-menu-cut: 9.151692%;
}
.bdr-phone-preview [data-preview-panel="reports"] .bdr-preview-canvas--cropped {
  --preview-menu-image: url("/assets/raporlarim.jpeg");
}
.bdr-phone-preview [data-preview-panel="emergency"] .bdr-preview-canvas--cropped {
  --preview-menu-image: url("/assets/acil-durum.jpeg");
  --preview-menu-ratio: 1290 / 222;
  --preview-menu-cut: 9.234609%;
}
.bdr-phone-preview .bdr-preview-body {
  position: relative;
  width: 100%;
  clip-path: inset(0 0 var(--preview-menu-cut));
}
.bdr-phone-preview .bdr-preview-canvas--cropped::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  aspect-ratio: var(--preview-menu-ratio);
  background-image: var(--preview-menu-image);
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
}
.bdr-phone-preview .bdr-preview-canvas--cropped .bdr-preview-menu {
  top: auto;
  bottom: 0;
  height: auto;
  aspect-ratio: var(--preview-menu-ratio);
  z-index: 1;
}
.bdr-phone-preview .bdr-preview-hotspot {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  color: #174a90;
  -webkit-tap-highlight-color: transparent;
}
.bdr-phone-preview .bdr-preview-hotspot:hover,
.bdr-phone-preview .bdr-preview-hotspot:focus-visible {
  background: #245ca812;
  box-shadow: inset 0 0 0 2px #245ca8;
}
.bdr-phone-preview .bdr-preview-action {
  position: absolute;
}
.bdr-phone-preview .bdr-preview-action--create {
  left: 4.6%; top: 79%; width: 90.8%; height: 6.3%; border-radius: 30px;
}
.bdr-phone-preview .bdr-preview-action--summary {
  left: 7.5%; top: 45.8%; width: 27%; height: 9.7%; border-radius: 10px;
}
.bdr-phone-preview .bdr-preview-action--back {
  left: 3%; top: 10.2%; width: 13%; height: 5.4%;
}
body[data-bdr-page="home"] .bdr-phone-preview figcaption { margin-top: 15px; }
.bdr-phone-preview .bdr-preview-description {
  max-width: 35em;
  min-height: 3em;
  margin: 0 auto;
  color: #52647c;
  line-height: 1.5;
}
.bdr-phone-preview .bdr-preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 410px;
  margin: 13px auto 0;
}
.bdr-phone-preview .bdr-preview-tab {
  padding: 8px 5px;
  min-height: 40px;
  border: 1px solid #d4dfec;
  border-radius: 8px;
  background: #fff;
  color: #425a78;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}
.bdr-phone-preview .bdr-preview-tab[aria-selected="true"] {
  background: #17365b;
  border-color: #17365b;
  color: #fff;
}
.bdr-phone-preview .bdr-preview-tab:hover:not([aria-selected="true"]) {
  border-color: #245ca8;
  background: #edf4ff;
}
.bdr-phone-preview .bdr-preview-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 11px;
}
.bdr-phone-preview .bdr-preview-arrow {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ced9e9;
  border-radius: 50%;
  background: #fff;
  color: #17365b;
  cursor: pointer;
  font-size: 18px;
}
.bdr-phone-preview .bdr-preview-arrow:hover { background: #e8f0fb; }
.bdr-phone-preview .bdr-preview-count {
  min-width: 42px;
  color: #63738a;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.bdr-phone-preview .bdr-preview-help {
  margin: 10px auto 0;
  max-width: 36em;
  color: #63738a;
  font-size: 11px;
  line-height: 1.5;
}
.bdr-phone-preview :focus-visible { outline: 3px solid #477ac0; outline-offset: 3px; }
.bdr-phone-preview .bdr-preview-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  body[data-bdr-page="home"] .bdr-phone-preview > .phone-frame { width: 260px; }
  .bdr-phone-preview .bdr-preview-tab { min-height: 44px; font-size: 12px; }
  .bdr-phone-preview .bdr-preview-desktop-help { display: none; }
}
@media (max-width: 390px) {
  body[data-bdr-page="home"] .hero .product-figure.bdr-phone-preview { padding-inline: 12px; }
  .bdr-phone-preview .bdr-preview-tab { font-size: 11px; }
}
