/* 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);
}

/* Section padding comes from site-refinements (.flat-spacing rhythm) */

.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;
  /* Match Standard / featured plan brand gradient (#211247 → #432691) */
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(188, 40, 245, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 0% 100%, rgba(117, 85, 245, 0.14) 0%, transparent 52%),
    var(--ff-brand-gradient, linear-gradient(180deg, #211247 0%, #432691 100%)) !important;
  background-color: #432691 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 24px 56px -24px rgba(19, 7, 45, 0.42) !important;
}

.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,
.frameflow-light.home-page .ff-pricing-custom__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.88) !important;
  background: none !important;
  background-image: none !important;
}

/* Non-featured plans: clean white cards */
.frameflow-light .ff-pricing-plan:not(.ff-pricing-plan--featured),
.frameflow-light.home-page .ff-pricing-plan:not(.ff-pricing-plan--featured) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(67, 38, 145, 0.12) !important;
}

.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 + secondary CTAs — white on purple, near-black text */
.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,
.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,
.frameflow-light .ff-pricing-custom__actions .tf-btn,
.frameflow-light .ff-pricing-custom__actions .tf-btn-2 {
  justify-content: center;
  width: 100%;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: #0a0a0a !important;
  -webkit-text-fill-color: #0a0a0a !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid #ffffff !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,
.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,
.frameflow-light .ff-pricing-custom__actions .tf-btn:hover,
.frameflow-light .ff-pricing-custom__actions .tf-btn-2:hover {
  color: #0a0a0a !important;
  -webkit-text-fill-color: #0a0a0a !important;
  background: #f4f4f5 !important;
  background-color: #f4f4f5 !important;
  background-image: none !important;
  border-color: #f4f4f5 !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(18, 10, 48, 0.4) !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%;
  }
}

/* Category cards (no price) — /pricing/ quote-based layout */
.frameflow-light .ff-pricing-plan__desc:last-of-type {
  margin-bottom: 0;
}

.frameflow-light .ff-pricing-plan .ff-pricing-plan__cta:last-child {
  margin-bottom: 0;
}

/* Category cards — accent bar + corner glow + unique gradient per category
   (same premium pattern as the Contact page's quick-contact cards) */
.frameflow-light .ff-pricing-plan {
  padding-top: 34px;
}

.frameflow-light .ff-pricing-plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  border-radius: 0 0 99px 99px;
  background: var(--ff-plan-accent, linear-gradient(90deg, #7555f5, #9b6bff));
  opacity: 0.9;
  z-index: 2;
}

.frameflow-light .ff-pricing-plan::after {
  content: "";
  position: absolute;
  inset: auto -22% -38% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ff-plan-glow, rgba(117, 85, 245, 0.14)) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* This page's category cards should show their icon badge — home-hero.css
   hides .ff-pricing-plan__icon globally for the homepage's Basic/Standard/
   Premium cards, so re-enable it scoped to .ff-pricing-page only. */
.frameflow-light.ff-pricing-page .ff-pricing-plan__icon {
  display: inline-flex !important;
  background-color: transparent;
  background-image: var(--ff-plan-icon-bg, radial-gradient(100% 100% at 30% 8%, rgba(255, 255, 255, 0.24) 0%, transparent 52%), linear-gradient(168deg, #9b7bff 0%, #8a68f5 28%, #7555F5 55%, #5a2bf0 100%));
}

.frameflow-light .ff-pricing-plan--design {
  --ff-plan-accent: linear-gradient(90deg, #7555f5, #9b6bff);
  --ff-plan-glow: rgba(117, 85, 245, 0.16);
  --ff-plan-icon-bg: radial-gradient(100% 100% at 30% 8%, rgba(255, 255, 255, 0.28) 0%, transparent 52%), linear-gradient(150deg, #9b7bff 0%, #7555f5 100%);
}

.frameflow-light .ff-pricing-plan--motion {
  --ff-plan-accent: linear-gradient(90deg, #432692, #7555f5);
  --ff-plan-glow: rgba(67, 38, 146, 0.18);
  --ff-plan-icon-bg: radial-gradient(100% 100% at 30% 8%, rgba(255, 255, 255, 0.24) 0%, transparent 52%), linear-gradient(150deg, #6a4fd6 0%, #432692 100%);
}

.frameflow-light .ff-pricing-plan--video {
  --ff-plan-accent: linear-gradient(90deg, #13072d, #432692);
  --ff-plan-glow: rgba(19, 7, 45, 0.2);
  --ff-plan-icon-bg: radial-gradient(100% 100% at 30% 8%, rgba(255, 255, 255, 0.2) 0%, transparent 52%), linear-gradient(150deg, #432692 0%, #13072d 100%);
}

.frameflow-light .ff-pricing-plan--support {
  --ff-plan-accent: linear-gradient(90deg, #ab05e4, #7555f5);
  --ff-plan-glow: rgba(171, 5, 228, 0.16);
  --ff-plan-icon-bg: radial-gradient(100% 100% at 30% 8%, rgba(255, 255, 255, 0.26) 0%, transparent 52%), linear-gradient(150deg, #c94bf0 0%, #ab05e4 100%);
}

/* Ongoing Creative Support's CTA and checklist ticks match its icon's magenta
   accent instead of the shared dark purple (brand-gradient.css locks the base
   button background with !important, hence the !important here too). */
.frameflow-light.ff-pricing-page .ff-pricing-plan--support .ff-pricing-plan__cta {
  background-color: #ab05e4;
  background-image: linear-gradient(135deg, #c94bf0 0%, #ab05e4 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px -10px rgba(171, 5, 228, 0.45);
}

.frameflow-light.ff-pricing-page .ff-pricing-plan--support .ff-pricing-plan__cta:hover {
  background-image: linear-gradient(135deg, #d968f5 0%, #b81ef0 100%) !important;
  color: #fff !important;
}

.frameflow-light.ff-pricing-page .ff-pricing-plan--support .ff-pricing-plan__list li .icon {
  background: linear-gradient(145deg, #c94bf0 0%, #ab05e4 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(171, 5, 228, 0.3);
}

/* Includes checklist under each category card (scoped to the /pricing/ category
   cards only — index.html's Basic/Standard/Premium cards reuse these same
   .ff-pricing-plan__section classes and must not be affected). */
.frameflow-light.ff-pricing-page .row.ff-pricing-plans .ff-pricing-plan__section {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(85, 66, 176, 0.12);
}

.frameflow-light.ff-pricing-page .ff-pricing-plan--video .ff-pricing-plan__section {
  border-top-color: rgba(19, 7, 45, 0.14);
}

/* What determines your project cost — icon grid */
.frameflow-light .ff-cost-factors {
  margin-top: clamp(56px, 7vw, 80px);
}

.frameflow-light .ff-cost-factors__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.frameflow-light .ff-cost-factors__grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading);
  background: radial-gradient(70% 70% at 0% 0%, rgba(188, 40, 245, 0.08) 0%, transparent 55%), linear-gradient(180deg, var(--white) 0%, #F5F4F8 100%);
  border: 1px solid rgba(117, 85, 245, 0.12);
  box-shadow: 0 10px 26px -18px rgba(42, 27, 110, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.frameflow-light .ff-cost-factors__grid li:hover {
  transform: translateY(-3px);
  border-color: rgba(117, 85, 245, 0.22);
  box-shadow: 0 16px 32px -16px rgba(42, 27, 110, 0.28);
}

.frameflow-light .ff-cost-factors__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--white);
  background-color: #7555F5;
  background-image: radial-gradient(100% 100% at 30% 8%, rgba(255, 255, 255, 0.24) 0%, transparent 52%), linear-gradient(168deg, #9b7bff 0%, #8a68f5 28%, #7555F5 55%, #5a2bf0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 14px rgba(67, 38, 146, 0.2);
}

/* Cycle the four brand hues across the six factor icons for visual rhythm */
.frameflow-light .ff-cost-factors__grid li:nth-child(4n+2) .ff-cost-factors__icon {
  background-color: #432692;
  background-image: radial-gradient(100% 100% at 30% 8%, rgba(255, 255, 255, 0.22) 0%, transparent 52%), linear-gradient(150deg, #6a4fd6 0%, #432692 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px rgba(67, 38, 146, 0.26);
}

.frameflow-light .ff-cost-factors__grid li:nth-child(4n+3) .ff-cost-factors__icon {
  background-color: #ab05e4;
  background-image: radial-gradient(100% 100% at 30% 8%, rgba(255, 255, 255, 0.24) 0%, transparent 52%), linear-gradient(150deg, #c94bf0 0%, #ab05e4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 14px rgba(171, 5, 228, 0.24);
}

.frameflow-light .ff-cost-factors__grid li:nth-child(4n+4) .ff-cost-factors__icon {
  background-color: #13072d;
  background-image: radial-gradient(100% 100% at 30% 8%, rgba(255, 255, 255, 0.18) 0%, transparent 52%), linear-gradient(150deg, #432692 0%, #13072d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 14px rgba(19, 7, 45, 0.3);
}

/* Extra depth glow behind the closing CTA banner */
.frameflow-light .ff-pricing-custom__inner {
  isolation: isolate;
}

.frameflow-light .ff-pricing-custom__inner::after {
  content: "";
  position: absolute;
  top: -35%;
  right: -8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 5, 228, 0.4) 0%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 991px) {
  .frameflow-light .ff-cost-factors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .frameflow-light .ff-cost-factors__grid {
    grid-template-columns: 1fr;
  }
}

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

  .frameflow-light .ff-cost-factors__grid li:hover {
    transform: none;
  }
}
