/* =====================================================================
   VEKTOR SPACES — CRO & Lead Generation Styles  (cro.css)
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* Stat bar                                                             */
/* ------------------------------------------------------------------ */

.cro-stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  margin: 28px 0;
  padding: 18px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 33, 36, 0.08);
  box-shadow: 0 12px 32px -16px rgba(32, 33, 36, 0.12);
}

.cro-stat-bar--wizard {
  margin: 0 auto 28px;
  max-width: 860px;
}

.cro-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
  border-right: 1px solid rgba(32, 33, 36, 0.1);
}
.cro-stat:last-child { border-right: 0; }

.cro-stat strong {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink, #202124);
  line-height: 1;
}

.cro-stat span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .cro-stat-bar { gap: 12px 0; }
  .cro-stat {
    flex: 1 1 45%;
    border-right: 0;
    border-bottom: 1px solid rgba(32,33,36,0.08);
    padding: 8px 0;
  }
  .cro-stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ------------------------------------------------------------------ */
/* Logo strip                                                           */
/* ------------------------------------------------------------------ */

.cro-logos {
  margin: 20px 0;
  text-align: center;
  overflow: hidden;
}

.cro-logos__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 14px;
}

.cro-logos__track {
  overflow: hidden;
}

.cro-logos__inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: cro-marquee 18s linear infinite;
}

@keyframes cro-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.cro-logo-item {
  display: inline-flex;
  align-items: center;
  padding: 10px 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  white-space: nowrap;
  border-right: 1px solid rgba(32, 33, 36, 0.08);
  transition: color 0.25s;
}
.cro-logo-item:hover { color: var(--ink, #202124); }

/* ------------------------------------------------------------------ */
/* Testimonials                                                         */
/* ------------------------------------------------------------------ */

.cro-testimonials {
  margin: 32px 0;
}

.cro-testimonials--compact {
  margin: 16px 0 0;
}

.cro-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cro-testimonials--compact .cro-testimonials__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .cro-testimonials__grid { grid-template-columns: 1fr; }
  .cro-testimonials--compact .cro-testimonials__grid { grid-template-columns: 1fr; }
}

.cro-testimonial {
  margin: 0;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 33, 36, 0.07);
  box-shadow: 0 18px 44px -24px rgba(32, 33, 36, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cro-testimonial:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px -20px rgba(32, 33, 36, 0.18);
}

.cro-testimonial__stars {
  font-size: 13px;
  color: var(--gold, #f4c657);
  letter-spacing: 1px;
}

.cro-testimonial__quote {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
  flex: 1;
}

.cro-testimonial__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(32, 33, 36, 0.06);
  padding-top: 12px;
  margin-top: auto;
}

.cro-testimonial__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-gradient, linear-gradient(135deg, #f4c657, #f0a82a));
  color: #17191c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  flex: 0 0 auto;
}

.cro-testimonial__author {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink, #202124);
}

.cro-testimonial__meta {
  display: block;
  font-size: 11.5px;
  color: #6b7280;
  margin-top: 1px;
}

/* ------------------------------------------------------------------ */
/* WhatsApp + Callback FAB                                              */
/* ------------------------------------------------------------------ */

.cro-fab-wrap {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cro-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 32px -8px rgba(32, 33, 36, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.cro-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -8px rgba(32, 33, 36, 0.28);
}

.cro-fab svg { flex: 0 0 22px; width: 22px; height: 22px; }

.cro-fab--wa {
  background: #25d366;
  color: #fff;
}
.cro-fab--wa:hover { color: #fff; }

.cro-fab--cb {
  background: var(--ink, #202124);
  color: #fff;
  font-size: 13px;
  padding: 12px 18px;
}
.cro-fab--cb:hover { color: #fff; }

/* On mobile WhatsApp is primary (full-width pill at bottom) */
@media (max-width: 899px) {
  .cro-fab-wrap {
    bottom: 16px;
    right: 16px;
    left: 16px;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
  }
  .cro-fab--wa {
    flex: 1;
    justify-content: center;
    font-size: 15px;
    padding: 16px 22px;
  }
  .cro-fab--cb {
    flex: 0 0 auto;
    border-radius: 50%;
    padding: 14px;
    font-size: 0; /* icon only */
  }
  .cro-fab--cb .cro-fab__label { display: none; }
}

.cro-fab__label { pointer-events: none; }

/* ------------------------------------------------------------------ */
/* Exit-intent modal                                                    */
/* ------------------------------------------------------------------ */

.cro-exit-modal,
.cro-magnet-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cro-exit-modal.is-visible,
.cro-magnet-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cro-exit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.55);
  backdrop-filter: blur(4px);
}

.cro-exit-card {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: calc(100% - 32px);
  padding: 36px 32px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #fbfaf6);
  border: 1px solid rgba(32, 33, 36, 0.08);
  box-shadow: 0 40px 80px -20px rgba(32, 33, 36, 0.25);
  text-align: center;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cro-exit-modal.is-visible .cro-exit-card,
.cro-magnet-modal.is-visible .cro-exit-card {
  transform: scale(1) translateY(0);
}

.cro-exit-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.cro-exit-close:hover { color: var(--ink, #202124); background: rgba(32,33,36,0.06); }

.cro-exit-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 14px;
}

.cro-exit-title {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.025em;
  color: var(--ink, #202124);
}

.cro-exit-body {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #5f6368;
}

.cro-exit-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  color: #6b7280;
}
.cro-exit-proof span:first-child { color: var(--gold, #f4c657); font-size: 14px; }

.cro-exit-cta {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--gold-gradient, linear-gradient(135deg, #f4c657, #f0a82a));
  color: #17191c;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.22s;
  text-align: center;
}
.cro-exit-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(244, 198, 87, 0.7);
  filter: brightness(1.04);
}

.cro-exit-dismiss {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: color 0.2s;
}
.cro-exit-dismiss:hover { color: #5f6368; }

/* ------------------------------------------------------------------ */
/* Lead magnet form within modal                                        */
/* ------------------------------------------------------------------ */

.cro-magnet-form {
  display: grid;
  gap: 10px;
  text-align: left;
  margin-bottom: 10px;
}

.cro-magnet-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(32, 33, 36, 0.14);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.cro-magnet-input:focus {
  border-color: rgba(216, 184, 89, 0.85);
  box-shadow: 0 0 0 4px rgba(216, 184, 89, 0.16);
}

.cro-magnet-msg {
  font-size: 13px;
  min-height: 16px;
  color: #5f6368;
}

/* ------------------------------------------------------------------ */
/* Blog sticky CTA bar                                                  */
/* ------------------------------------------------------------------ */

.cro-blog-cta {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--ink, #202124);
  color: #fff;
  box-shadow: 0 -8px 32px rgba(32, 33, 36, 0.18);
  transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cro-blog-cta.is-visible { bottom: 0; }

.cro-blog-cta__text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
}

.cro-blog-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold-gradient, linear-gradient(135deg, #f4c657, #f0a82a));
  color: #17191c;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: filter 0.22s, transform 0.22s;
}
.cro-blog-cta__btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

.cro-blog-cta__close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  flex: 0 0 auto;
  transition: color 0.2s;
}
.cro-blog-cta__close:hover { color: #fff; }

@media (max-width: 600px) {
  .cro-blog-cta {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .cro-blog-cta__text { font-size: 13px; }
  .cro-blog-cta__btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* Project page sticky CTA                                              */
/* ------------------------------------------------------------------ */

.cro-project-cta {
  position: fixed;
  bottom: -80px;
  right: 24px;
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 22px;
  border-radius: 999px;
  background: var(--ink, #202124);
  color: #fff;
  box-shadow: 0 12px 36px -8px rgba(32, 33, 36, 0.35);
  transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.cro-project-cta.is-visible { bottom: 28px; }

.cro-project-cta__text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.cro-project-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--gold-gradient, linear-gradient(135deg, #f4c657, #f0a82a));
  color: #17191c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: filter 0.22s;
}
.cro-project-cta__btn:hover { filter: brightness(1.06); }

@media (max-width: 899px) {
  /* Project CTA hidden on mobile — FAB serves this role */
  .cro-project-cta { display: none; }
}

/* ------------------------------------------------------------------ */
/* Mobile header phone button                                           */
/* ------------------------------------------------------------------ */

.cro-header-phone {
  display: none;
}

@media (max-width: 899px) {
  .cro-header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.12);
    color: #15803d;
    text-decoration: none;
    margin-right: 4px;
    transition: background 0.2s;
    flex: 0 0 auto;
  }
  .cro-header-phone:hover { background: rgba(37, 211, 102, 0.2); }
  .cro-header-phone svg { width: 18px; height: 18px; }
}

/* ------------------------------------------------------------------ */
/* Form inline validation                                               */
/* ------------------------------------------------------------------ */

.cro-field-err {
  display: block;
  font-size: 12px;
  color: #b91c1c;
  margin-top: 4px;
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: rgba(185, 28, 28, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1) !important;
}

/* ------------------------------------------------------------------ */
/* Privacy reassurance                                                  */
/* ------------------------------------------------------------------ */

.cro-privacy {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin-top: 10px;
}

.cro-privacy svg { flex: 0 0 13px; margin-top: 1px; }
.cro-privacy a { color: inherit; text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Wizard skip link                                                     */
/* ------------------------------------------------------------------ */

.cro-wizard-skip {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
}

.cro-wizard-skip__link {
  color: #4285f4;
  text-decoration: none;
  font-weight: 600;
}
.cro-wizard-skip__link:hover { text-decoration: underline; }
