/* Custom Quote banner — contrast fixes + visual polish (load after home-colors.css) */
/* Currency toggle styles live in pricing-currency.css */

.frameflow-light .ff-pricing-custom {
  margin-top: clamp(36px, 5vw, 48px);
}

/* Tighten space between custom-quote band and FAQ */
.frameflow-light.home-page .section-pricing.ff-pricing-dark.flat-spacing {
  padding-bottom: clamp(28px, 3.5vw, 40px) !important;
}

.frameflow-light.home-page .section-pricing + .section-faqs.flat-spacing,
.frameflow-light.home-page .section-faqs.flat-spacing {
  padding-top: clamp(28px, 3.5vw, 40px) !important;
}

.frameflow-light.home-page .section-faqs .heading-section.mb-64 {
  margin-bottom: clamp(28px, 3.5vw, 40px) !important;
}

.frameflow-light .ff-pricing-custom__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(188, 40, 245, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 0% 100%, rgba(117, 85, 245, 0.22) 0%, transparent 52%),
    linear-gradient(155deg, #432692 0%, #5a3fc4 38%, #7555f5 72%, #3d2e8a 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 24px 56px -24px rgba(30, 21, 80, 0.42);
}

.frameflow-light .ff-pricing-custom__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.55;
  pointer-events: none;
}

.frameflow-light .ff-pricing-custom__inner > * {
  position: relative;
  z-index: 1;
}

/* Override demo-restore icon hide + home-colors h3 override */
.frameflow-light.home-page .ff-pricing-custom__icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(60px, 8vw, 72px);
  height: clamp(60px, 8vw, 72px);
  border-radius: 22px;
  font-size: clamp(24px, 3vw, 28px);
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.06),
    0 16px 32px -14px rgba(18, 10, 48, 0.45);
}

.frameflow-light.home-page .ff-pricing-custom__icon::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 48%);
  pointer-events: none;
}

.frameflow-light .ff-pricing-custom__icon {
  position: relative;
}

.frameflow-light.home-page .ff-pricing-custom__title,
.frameflow-light.home-page .ff-pricing-custom h2.ff-pricing-custom__title {
  color: #fff !important;
}

.frameflow-light .ff-pricing-custom__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 245, 64, 0.92);
}

.frameflow-light .ff-pricing-custom__content {
  min-width: 0;
}

.frameflow-light .ff-pricing-custom__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.frameflow-light .ff-pricing-custom__desc {
  margin: 0 0 18px;
  max-width: 640px;
  font-size: clamp(14px, 1.6vw, 15px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

/* Feature chips */
.frameflow-light .ff-pricing-custom__tags,
.frameflow-light .ff-pricing-custom__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.frameflow-light .ff-pricing-custom__tag,
.frameflow-light .ff-pricing-custom__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.frameflow-light .ff-pricing-custom__tag-icon,
.frameflow-light .ff-pricing-custom__list li .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.frameflow-light .ff-pricing-custom__list li .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.frameflow-light .ff-pricing-custom__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  min-width: min(220px, 100%);
}

/* Primary CTA — solid white on purple (fixes home-colors purple-on-purple) */
.frameflow-light.home-page .ff-pricing-custom__actions .ff-pricing-custom__btn.tf-btn,
.frameflow-light .ff-pricing-custom__actions .ff-pricing-custom__btn.tf-btn {
  justify-content: center;
  width: 100%;
  padding: 14px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: #1e1550 !important;
  -webkit-text-fill-color: #1e1550 !important;
  background: #fff !important;
  border: 1px solid #fff !important;
  box-shadow: 0 10px 28px -12px rgba(18, 10, 48, 0.35) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.frameflow-light.home-page .ff-pricing-custom__actions .ff-pricing-custom__btn.tf-btn:hover,
.frameflow-light .ff-pricing-custom__actions .ff-pricing-custom__btn.tf-btn:hover {
  color: #432692 !important;
  -webkit-text-fill-color: #432692 !important;
  background: #f8f6ff !important;
  border-color: #f8f6ff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(18, 10, 48, 0.4) !important;
}

/* Secondary CTA — solid white on purple (same as primary for contrast) */
.frameflow-light.home-page .ff-pricing-custom__actions .ff-pricing-custom__btn--ghost,
.frameflow-light.home-page .ff-pricing-custom__actions .ff-pricing-custom__btn.tf-btn-2,
.frameflow-light .ff-pricing-custom__actions .ff-pricing-custom__btn--ghost,
.frameflow-light .ff-pricing-custom__actions .ff-pricing-custom__btn.tf-btn-2 {
  justify-content: center;
  width: 100%;
  padding: 13px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: #1e1550 !important;
  -webkit-text-fill-color: #1e1550 !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  border: 1px solid #fff !important;
  box-shadow: 0 10px 28px -12px rgba(18, 10, 48, 0.35) !important;
}

.frameflow-light.home-page .ff-pricing-custom__actions .ff-pricing-custom__btn--ghost:hover,
.frameflow-light.home-page .ff-pricing-custom__actions .ff-pricing-custom__btn.tf-btn-2:hover,
.frameflow-light .ff-pricing-custom__actions .ff-pricing-custom__btn--ghost:hover,
.frameflow-light .ff-pricing-custom__actions .ff-pricing-custom__btn.tf-btn-2:hover {
  color: #432692 !important;
  -webkit-text-fill-color: #432692 !important;
  background: #f8f6ff !important;
  background-color: #f8f6ff !important;
  background-image: none !important;
  border-color: #f8f6ff !important;
}

.frameflow-light .ff-pricing-disclaimer {
  margin-top: clamp(20px, 3vw, 28px);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ff-ink-muted, var(--secondary));
}

@media (max-width: 991px) {
  .frameflow-light .ff-pricing-custom__inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .frameflow-light .ff-pricing-custom__actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
  }

  .frameflow-light .ff-pricing-custom__actions .ff-pricing-custom__btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
  }
}

@media (max-width: 575px) {
  .frameflow-light .ff-pricing-custom__inner {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .frameflow-light .ff-pricing-custom__actions {
    flex-direction: column;
  }

  .frameflow-light .ff-pricing-custom__actions .ff-pricing-custom__btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frameflow-light .ff-pricing-custom__actions .ff-pricing-custom__btn.tf-btn:hover {
    transform: none;
  }
}
