/*
 * FormVault Category Hero Strip — v2
 * Enqueued only on formvault_category archive pages.
 */

*, *::before, *::after { box-sizing: border-box; }

/* ── Hero section ────────────────────────────────────────────────────────── */
.bfp-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 60%, #6366f1 100%);
  border-radius: 20px;
  box-shadow: 0 20px 50px -15px rgba(30, 58, 138, .45);
  overflow: hidden;
  position: relative;
  margin-bottom: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Decorative glow — top right */
.bfp-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, .18) 0%, transparent 70%);
  pointer-events: none;
}

/* Decorative glow — bottom left */
.bfp-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -100px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(99, 102, 241, .4) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Inner layout ────────────────────────────────────────────────────────── */
.bfp-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 32px;
}

/* ── Left content ────────────────────────────────────────────────────────── */
.bfp-hero__content {
  flex: 1;
  min-width: 0;
}

/* Eyebrow pill */
.bfp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 10px;
}

.bfp-hero__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .3);
  flex-shrink: 0;
}

/* Headline */
.bfp-hero__title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0 0 10px;
}

.bfp-hero__accent {
  background: linear-gradient(90deg, #fcd34d, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Body */
.bfp-hero__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  line-height: 1.5;
  max-width: 560px;
  margin: 0 0 14px;
}

/* Free note */
.bfp-hero__free-note {
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  margin: 16px 0 0;
  letter-spacing: 0.2px;
}

/* Stats row */
.bfp-hero__stats {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.bfp-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bfp-hero__stat-val {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.bfp-hero__stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .7);
}

.bfp-hero__stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, .2);
  flex-shrink: 0;
}

/* ── Pricing card ────────────────────────────────────────────────────────── */
.bfp-hero__card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .98);
  border-radius: 14px;
  padding: 18px 20px;
  min-width: 220px;
  text-align: center;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bfp-hero__card-badge {
  display: inline-block;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 4px;
}

.bfp-hero__price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  gap: 2px;
}

.bfp-hero__price-currency {
  font-size: 18px;
  color: #0f172a;
  font-weight: 800;
  margin-top: 8px;
}

.bfp-hero__price-val {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -1px;
  line-height: 1;
}

.bfp-hero__price-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bfp-hero__price-meta {
  flex-direction: column;
  gap: 6px;
}

.bfp-hero__orig-price {
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through;
}

.bfp-hero__orig-label {
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: #94a3b8;
}

.bfp-hero__save {
  display: inline-block;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #15803d);
  padding: 8px 20px;
  border-radius: 30px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.5);
  animation: fv-pulse-save 2s ease-in-out infinite;
}

@keyframes fv-pulse-save {
  0%, 100% { transform: scale(1);   box-shadow: 0 4px 16px rgba(22,163,74,0.5); }
  50%       { transform: scale(1.06); box-shadow: 0 6px 24px rgba(22,163,74,0.7); }
}

.bfp-hero__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .5);
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  line-height: 1.2;
}

.bfp-hero__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(37, 99, 235, .6);
  color: #ffffff !important;
}

.bfp-hero__features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  color: #64748b;
  flex-wrap: wrap;
}

/* Price + was on same line */
.bfp-hero__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

/* Free note + bundle pill row */
.bfp-hero__notes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.bfp-hero__free-note {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, .9);
  font-weight: 500;
}

.bfp-hero__bundle-pill {
  display: inline-block;
  padding: 6px 16px;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.bfp-hero__bundle-pill:hover {
  background: #f0f6ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ── Filter buttons (toolbar below hero) ─────────────────────────────────── */
.bfp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.bfp-filter-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}

.bfp-filter-bar__btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.bfp-filter-bar__btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.bfp-filter-bar__btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bfp-hero__inner {
    flex-direction: column;
    padding: 28px 24px;
    gap: 24px;
    align-items: stretch;
  }

  .bfp-hero__card {
    min-width: 0;
    width: 100%;
  }

  .bfp-hero__content {
    text-align: center;
  }

  .bfp-hero__eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .bfp-hero__title {
    font-size: 22px;
  }

  .bfp-hero__desc {
    font-size: 13px;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .bfp-hero__stats {
    justify-content: center;
  }

  .bfp-hero__notes {
    justify-content: center;
  }

  .bfp-hero__free-note {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .bfp-hero__inner {
    padding: 18px 16px;
  }

  .bfp-hero__title {
    font-size: 20px;
    letter-spacing: -0.3px;
  }
}

/* ── Match Blocksy "no spacing" setting on FormVault archive/taxonomy pages ── */
.post-type-archive-formvault_form .site-main,
.tax-formvault_category .site-main {
  padding-top: 0 !important;
  --content-area-spacing: 0 !important;
  --theme-content-vertical-spacing: 0 !important;
}

/* ── Archive hero (no pricing card — content full-width) ─────────────────── */
.bfp-hero--archive .bfp-hero__inner {
  justify-content: center;
  text-align: center;
}

.bfp-hero--archive .bfp-hero__content {
  max-width: 680px;
}

.bfp-hero--archive .bfp-hero__stats {
  justify-content: center;
}


/* cents superscript */
.fv-price-cents { font-size: 18px; font-weight: 800; color: inherit; line-height: 1; margin-top: 4px; }
