/* SEO Rank Pro — welcome promo popup */

body.mkt-promo-open {
  overflow: hidden;
}

.mkt-promo-root {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mkt-promo-root.is-open {
  opacity: 1;
  visibility: visible;
}
.mkt-promo-root[hidden] {
  display: none !important;
}

.mkt-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mkt-promo-dialog {
  position: relative;
  width: min(100%, 920px);
  max-height: calc(100vh - 32px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow:
    0 32px 80px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: visible;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mkt-promo-root.is-open .mkt-promo-dialog {
  transform: scale(1) translateY(0);
}

.mkt-promo-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.15),
    0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mkt-promo-close i {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  display: block;
  pointer-events: none;
}
.mkt-promo-close:hover {
  transform: scale(1.08);
  background: #1e293b;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.2),
    0 14px 36px rgba(0, 0, 0, 0.5);
}
.mkt-promo-close:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.mkt-promo-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #ffffff;
}

.mkt-promo-left {
  padding: 36px 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mkt-promo-logo {
  margin-bottom: 28px;
}
.mkt-promo-logo .mkt-brand-logo {
  height: 38px;
  max-width: 200px;
}

.mkt-promo-title {
  font-family: var(--mkt-serif);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.mkt-promo-title span {
  color: #2563eb;
}

.mkt-promo-sub {
  font-size: 15px;
  line-height: 1.65;
  color: #64748b;
  margin-bottom: 22px;
  max-width: 340px;
}

.mkt-promo-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.mkt-promo-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.mkt-promo-perks i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #2563eb;
  background: #eff6ff;
  flex-shrink: 0;
}

.mkt-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #0e7490 0%, #0369a1 100%);
  box-shadow: 0 10px 28px rgba(3, 105, 161, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mkt-promo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(3, 105, 161, 0.45);
  color: #ffffff;
}
.mkt-promo-cta i {
  font-size: 13px;
  transition: transform 0.2s;
}
.mkt-promo-cta:hover i { transform: translateX(3px); }

/* Right visual panel */
.mkt-promo-right {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  min-height: 320px;
}
.mkt-promo-right-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 42%, #2563eb 42%, #1d4ed8 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}
.mkt-promo-skyline {
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 0;
  height: 120px;
  opacity: 0.15;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath fill='%230f172a' d='M0 80V50 L30 45 L50 55 L80 40 L110 52 L140 35 L170 48 L200 30 L230 45 L260 38 L290 50 L320 42 L350 55 L400 40 V80Z'/%3E%3C/svg%3E") bottom center / cover no-repeat;
  pointer-events: none;
}

.mkt-promo-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 3;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
  border: 4px solid #ffffff;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  animation: mkt-promo-pulse 2.8s ease-in-out infinite;
}
@keyframes mkt-promo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.mkt-promo-badge-top {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}
.mkt-promo-badge strong {
  font-family: var(--mkt-serif);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  margin: 2px 0;
}
.mkt-promo-badge-off {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}
.mkt-promo-badge-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 4px;
  line-height: 1.2;
  max-width: 90px;
}
.mkt-promo-badge-stars {
  margin-top: 4px;
  font-size: 7px;
  color: #fde68a;
  display: flex;
  gap: 2px;
}

.mkt-promo-devices {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
}

.mkt-promo-laptop {
  position: relative;
  width: 72%;
  max-width: 320px;
  transform: translateX(-8%);
}
.mkt-promo-laptop-screen {
  border: 3px solid #1e293b;
  border-radius: 10px 10px 0 0;
  background: #0f172a;
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}
.mkt-promo-laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mkt-promo-laptop-base {
  height: 10px;
  margin: 0 8%;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mkt-promo-phone {
  position: absolute;
  right: 8%;
  bottom: 18%;
  width: 22%;
  min-width: 72px;
  max-width: 100px;
  border: 3px solid #1e293b;
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.mkt-promo-phone-screen {
  aspect-ratio: 9/16;
  overflow: hidden;
}
.mkt-promo-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer trust bar */
.mkt-promo-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}
.mkt-promo-foot-item {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-align: center;
}
.mkt-promo-foot-item i {
  color: #2563eb;
  font-size: 14px;
}
.mkt-promo-foot-div {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .mkt-promo-root {
    padding: 12px;
    align-items: flex-end;
  }
  .mkt-promo-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 16px 16px 14px 14px;
  }
  .mkt-promo-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #e2e8f0;
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.95),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
  .mkt-promo-close:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
  }
  .mkt-promo-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mkt-promo-right {
    min-height: 220px;
    order: -1;
  }
  .mkt-promo-right-bg {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
    background: linear-gradient(160deg, #3b82f6 0%, #1d4ed8 100%);
  }
  .mkt-promo-left {
    padding: 24px 22px 20px;
  }
  .mkt-promo-logo { margin-bottom: 16px; }
  .mkt-promo-sub { max-width: none; font-size: 14px; }
  .mkt-promo-perks { margin-bottom: 20px; }
  .mkt-promo-cta {
    width: 100%;
    justify-content: center;
  }
  .mkt-promo-badge {
    width: 96px;
    height: 96px;
    top: 16px;
    right: 16px;
  }
  .mkt-promo-badge strong { font-size: 26px; }
  .mkt-promo-laptop {
    width: 65%;
    transform: translateX(-12%);
  }
  .mkt-promo-phone {
    right: 12%;
    bottom: 12%;
    width: 26%;
    max-width: 80px;
  }
  .mkt-promo-foot {
    flex-direction: column;
    gap: 0;
    padding: 12px 16px;
  }
  .mkt-promo-foot-div { display: none; }
  .mkt-promo-foot-item {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
  }
  .mkt-promo-foot-item:last-child { border-bottom: none; }
}

@media (max-width: 400px) {
  .mkt-promo-title { font-size: 1.35rem; }
  .mkt-promo-right { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-promo-badge { animation: none; }
  .mkt-promo-dialog,
  .mkt-promo-root { transition: none; }
}
