/* Anasayfa kampanya popup — baskı vitrini (tek kampanya, geniş) */

body.pf-km-popup-open {
  overflow: hidden;
}

.pf-km-popup {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.65rem, env(safe-area-inset-top)) 0.85rem max(0.65rem, env(safe-area-inset-bottom));
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.pf-km-popup[hidden] {
  display: none !important;
}

.pf-km-popup:not(.is-visible),
.pf-km-popup:not(.is-visible) * {
  pointer-events: none !important;
}

.pf-km-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pf-km-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.pf-km-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(74rem, calc(100vw - 1.7rem));
  max-width: 100%;
  max-height: min(92vh, 46rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-x: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  background: #0e1014;
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-km-popup.is-visible .pf-km-popup__dialog {
  transform: none;
}

.pf-km-popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(14, 16, 20, 0.72);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.pf-km-popup__close:hover,
.pf-km-popup__close:focus-visible {
  background: rgba(var(--pf-brand-rgb), 0.9);
  border-color: transparent;
  transform: scale(1.04);
}

.pf-km-popup__close svg {
  width: 1.05rem;
  height: 1.05rem;
}

.pf-km-popup__title--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pf-km-popup__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pf-km-popup .pf-km-popup-show,
.pf-km-popup .pf-km-print-show {
  min-height: 0;
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 2vw, 1.35rem);
}

.pf-km-popup .pf-km-print-show__copy,
.pf-km-popup .pf-km-print-show__list {
  max-width: 100%;
  min-width: 0;
}

.pf-km-popup .pf-km-print-show__bg,
.pf-km-popup .pf-km-print-show__veil {
  border-radius: 0;
}

.pf-km-popup .pf-km-popup-show__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.pf-km-popup .pf-km-print-show__title {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.pf-km-popup .pf-km-print-show__stage {
  min-height: clamp(18rem, 36vw, 26rem);
  max-width: 100%;
  overflow: hidden;
}

.pf-km-popup .pf-km-print-show__viewport {
  height: clamp(18rem, 36vw, 26rem);
  max-width: 100%;
  overflow: hidden;
}

.pf-km-popup .pf-km-print-show__slide img {
  width: min(100%, 36rem);
  max-width: 100%;
}

.pf-km-popup .pf-km-popup-show__inner,
.pf-km-popup .pf-km-print-show__inner {
  max-width: 100%;
  min-width: 0;
}

.pf-km-popup__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.15rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.72);
}

.pf-km-popup__cta {
  --pf-km-popup-cta: #0f3d28;
  --pf-km-popup-cta-dark: #0a2a1b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: min(100%, 28rem);
  min-height: 3.15rem;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #145c3a 0%, #0f3d28 55%, #0a2a1b 100%);
  color: #fff;
  font-family: Outfit, "IBM Plex Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-align: center;
  box-shadow:
    0 12px 28px rgba(8, 28, 18, 0.55),
    0 0 0 1px rgba(20, 92, 58, 0.35) inset;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.pf-km-popup__cta:hover,
.pf-km-popup__cta:focus-visible {
  background: linear-gradient(180deg, #0f3d28 0%, #0a2a1b 55%, #061910 100%);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.pf-km-popup__cta-rotator {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 1.45em;
  overflow: hidden;
}

.pf-km-popup__cta-line {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  margin: 0;
  opacity: 0;
  transform: translateY(0.45em);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  white-space: nowrap;
}

.pf-km-popup__cta-line.is-on {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .pf-km-popup__cta-line {
    transition: none;
  }
}

@media (max-width: 900px) {
  .pf-km-popup {
    align-items: stretch;
    padding: 0;
  }

  .pf-km-popup__dialog {
    width: 100%;
    max-height: none;
    height: 100%;
    border-radius: 0;
  }

  .pf-km-popup .pf-km-popup-show {
    padding: 3.25rem 1rem 1rem;
  }

  .pf-km-popup .pf-km-popup-show__inner {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .pf-km-popup .pf-km-print-show__copy {
    display: contents;
  }

  .pf-km-popup .pf-km-print-show__eyebrow {
    order: 1;
    margin: 0;
  }

  .pf-km-popup .pf-km-print-show__title {
    order: 2;
    margin: 0;
    font-size: clamp(1.35rem, 6.5vw, 1.7rem);
  }

  .pf-km-popup .pf-km-print-show__lead {
    order: 3;
    margin: 0;
    max-width: none;
  }

  .pf-km-popup .pf-km-print-show__stage {
    --pf-km-show-panel: rgba(8, 12, 18, 0.55);
    order: 4;
    width: 100%;
    min-height: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
    border-radius: 1rem 1rem 0 0;
    background: var(--pf-km-show-panel);
  }

  .pf-km-popup .pf-km-print-show__viewport {
    height: clamp(14rem, 58vw, 18rem);
    border-radius: 1rem 1rem 0 0;
    background: transparent;
  }

  .pf-km-popup .pf-km-print-show__slide {
    padding: 0.55rem 0.4rem 0.25rem;
  }

  .pf-km-popup .pf-km-print-show__slide img {
    width: 100%;
    max-width: 100%;
  }

  .pf-km-popup .pf-km-print-show__slide figcaption {
    display: none;
  }

  .pf-km-popup .pf-km-print-show__list {
    --pf-km-show-panel: rgba(8, 12, 18, 0.55);
    order: 5;
    width: 100%;
    margin: 0;
    padding: 0.35rem 0.7rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 0;
    border-radius: 0 0 1rem 1rem;
    background: var(--pf-km-show-panel);
    box-sizing: border-box;
  }

  .pf-km-popup .pf-km-print-show__list li {
    width: 100%;
    transform: none !important;
    font-size: 0.88rem;
    padding: 0.6rem 0.7rem;
  }

  .pf-km-popup .pf-km-print-show__list li[data-km-print-sync].is-show {
    transform: none !important;
  }

  .pf-km-popup .pf-km-print-show__list li[data-km-print-sync].is-pop {
    animation: none !important;
  }

  .pf-km-popup__foot {
    justify-content: center;
    padding: 0.85rem 1rem max(0.95rem, env(safe-area-inset-bottom));
  }

  .pf-km-popup__cta {
    width: 100%;
  }
}

/* Anasayfa demo uygulamaları popup — kampanya popup sonrası */
.pf-apps-home-popup {
  z-index: 12010;
}

.pf-apps-home-popup__dialog {
  width: min(34rem, calc(100vw - 1.7rem));
  max-height: min(92vh, 40rem);
  overflow: hidden;
}

.pf-apps-home-popup__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.pf-apps-home-popup__stage {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  padding: 0.85rem 1.1rem 0.9rem;
  touch-action: pan-y;
}

.pf-apps-home-popup__slide {
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
  height: 100%;
}

.pf-apps-home-popup__slide.is-active {
  display: flex;
  animation: pf-apps-home-in 0.35s ease;
}

.pf-apps-home-popup__slide[hidden] {
  display: none !important;
}

@keyframes pf-apps-home-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pf-apps-home-popup__top {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.pf-apps-home-popup__heading {
  flex: 1 1 auto;
  margin: 0;
  padding: 0.5rem 0.8rem;
  font-family: Outfit, "IBM Plex Sans", sans-serif;
  font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: #fff !important;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(var(--pf-brand-rgb), 0.95) 0%, #9e2a27 48%, #151922 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.pf-apps-home-popup__close {
  position: static;
  top: auto;
  right: auto;
  flex: 0 0 auto;
  align-self: stretch;
  width: 2.55rem;
  min-height: 2.55rem;
  height: auto;
  border-radius: 0.75rem;
}

.pf-apps-home-popup__visual {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 12rem;
  overflow: visible;
  margin-bottom: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #080a0e;
  text-decoration: none;
}

.pf-apps-home-popup__visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}

.pf-apps-home-popup__badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  font-family: Outfit, "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
  background: rgba(var(--pf-brand-rgb), 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, 50%);
  pointer-events: none;
  white-space: nowrap;
}

.pf-apps-home-popup__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding-top: 0.2rem;
  flex: 0 0 auto;
}

.pf-apps-home-popup__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-family: Outfit, "IBM Plex Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.pf-apps-home-popup__chips span:nth-child(1) {
  background: linear-gradient(135deg, #ef514c, #c93a36);
  transform: rotate(-1.2deg);
}
.pf-apps-home-popup__chips span:nth-child(2) {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  transform: rotate(1.4deg);
}
.pf-apps-home-popup__chips span:nth-child(3) {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: rotate(-0.7deg);
}
.pf-apps-home-popup__chips span:nth-child(4) {
  background: linear-gradient(135deg, #6366f1, #4338ca);
  transform: rotate(1deg);
}

.pf-apps-home-popup__lead {
  margin: 0;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(244, 245, 247, 0.78) !important;
  flex: 0 0 auto;
}

.pf-apps-home-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.pf-apps-home-popup__pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.55rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, #0f3d28 0%, #0a2a1b 100%);
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(10, 42, 27, 0.35);
}

.pf-apps-home-popup__pricing:hover,
.pf-apps-home-popup__pricing:focus-visible {
  background: linear-gradient(135deg, #145536 0%, #0f3d28 100%);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}

.pf-apps-home-popup__actions-row {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
}

.pf-apps-home-popup__actions-row .pf-btn {
  flex: 1 1 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.pf-apps-home-popup__offer {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(165deg, rgba(36, 44, 58, 0.92) 0%, rgba(21, 25, 34, 0.96) 55%, rgba(14, 16, 20, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}

.pf-apps-home-popup__offer-head {
  margin-bottom: 0.45rem;
}

.pf-apps-home-popup__offer-title {
  margin: 0 0 0.15rem;
  font-family: Outfit, "IBM Plex Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff !important;
}

.pf-apps-home-popup__offer-lead {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(244, 245, 247, 0.72) !important;
}

.pf-apps-home-popup__offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pf-apps-home-popup__offer-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--pf-brand-rgb), 0.35);
  background: rgba(var(--pf-brand-rgb), 0.12);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
}

@media (max-width: 900px) {
  .pf-apps-home-popup {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .pf-apps-home-popup__dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .pf-apps-home-popup__stage {
    min-height: 100%;
    padding:
      max(0.85rem, env(safe-area-inset-top))
      max(0.85rem, env(safe-area-inset-right))
      max(0.85rem, env(safe-area-inset-bottom))
      max(0.85rem, env(safe-area-inset-left));
  }

}

@media (orientation: landscape) and (max-height: 520px) {
  .pf-apps-home-popup__stage {
    padding-top: max(0.55rem, env(safe-area-inset-top));
    padding-bottom: 0.55rem;
  }

  .pf-apps-home-popup__slide.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      "top top"
      "visual chips"
      "visual lead"
      "visual offer"
      "visual actions";
    gap: 0.45rem 0.85rem;
    align-items: center;
  }

  .pf-apps-home-popup__top { grid-area: top; }
  .pf-apps-home-popup__visual { grid-area: visual; }
  .pf-apps-home-popup__chips {
    grid-area: chips;
    padding-top: 0;
    justify-content: flex-start;
  }
  .pf-apps-home-popup__lead {
    grid-area: lead;
    text-align: left;
  }
  .pf-apps-home-popup__offer { grid-area: offer; }
  .pf-apps-home-popup__actions { grid-area: actions; }

  .pf-apps-home-popup__visual {
    align-self: stretch;
    min-height: 0;
  }

  .pf-apps-home-popup__offer {
    padding: 0.55rem 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-apps-home-popup__slide.is-active {
    animation: none;
  }
}
