/* ═══════════════════════════════════════════════════
   Funnel Bridge — funnel-bridge.css
   All styles prefixed .fb- to avoid theme conflicts
   Never use class "container" (Divi conflict)
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Root wrapper ─────────────────────────────────── */
.fb-root {
  --fb-ink:        #0f0e0c;
  --fb-cream:      #faf8f3;
  --fb-gold:       #c8a96e;
  --fb-gold-light: #e8d5a3;
  --fb-rust:       #c4501a;
  --fb-rust-dark:  #9e3e12;
  --fb-muted:      rgba(250,248,243,0.45);

  font-family: 'DM Sans', sans-serif;
  background: #0f0e0c;
  color: var(--fb-cream);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.fb-root::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(200,169,110,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(196,80,26,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.fb-inner {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 48px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 860px) {
  .fb-inner { padding: 40px 24px 60px; }
}

/* ── Urgency bar ──────────────────────────────────── */
.fb-urgency-bar {
  position: relative;
  z-index: 10;
  background: var(--fb-rust);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.fb-pulse {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: fb-blink 1.2s ease infinite;
  flex-shrink: 0;
}

/* ── Eyebrow / badge ──────────────────────────────── */
.fb-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fb-gold);
  margin-bottom: 20px;
  animation: fb-slideup 0.8s 0.1s ease both;
}

/* ── Headline ─────────────────────────────────────── */
.fb-headline {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(28px, 4.5vw, 50px) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-align: center;
  margin-bottom: 14px !important;
  color: var(--fb-cream) !important;
  animation: fb-slideup 0.9s 0.2s ease both;
}

.fb-headline em {
  font-style: italic;
  color: var(--fb-gold);
}

.fb-subhead {
  font-size: 16px;
  color: var(--fb-muted);
  text-align: center;
  margin-bottom: 36px !important;
  font-weight: 300;
  line-height: 1.6;
  animation: fb-slideup 0.9s 0.3s ease both;
}

/* ── Video ────────────────────────────────────────── */
.fb-video-wrap {
  width: 100%;
  position: relative;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(200,169,110,0.15);
  animation: fb-slideup 0.9s 0.4s ease both;
  margin-bottom: 28px;
}

.fb-video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: var(--fb-gold);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.fb-video-aspect {
  position: relative;
  padding-top: 56.25%;
}

.fb-video-aspect iframe,
.fb-video-aspect video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Video hint ───────────────────────────────────── */
.fb-video-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fb-muted);
  font-size: 14px;
  margin-bottom: 36px !important;
  animation: fb-fadein 1s 0.6s ease both;
}

.fb-hint-icon {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(250,248,243,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

/* ── Upsell section ───────────────────────────────── */
.fb-upsell {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  margin-bottom: 12px;
}

.fb-upsell.fb-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.fb-upsell-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--fb-gold);
  display: flex;
  align-items: center;
  gap: 12px;
}

.fb-upsell-label::before,
.fb-upsell-label::after {
  content: '';
  height: 1px;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--fb-gold));
}
.fb-upsell-label::after {
  background: linear-gradient(to left, transparent, var(--fb-gold));
}

.fb-price { text-align: center; line-height: 1.3; }

.fb-price-original {
  font-size: 14px;
  color: rgba(250,248,243,0.35);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.fb-price-offer {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--fb-gold);
  line-height: 1;
}

.fb-price-note {
  font-size: 13px;
  color: var(--fb-muted);
  margin-top: 4px;
}

.fb-upsell-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: linear-gradient(135deg, #c8a96e, #a8893e) !important;
  color: #0f0e0c !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  padding: 22px 52px !important;
  border: none !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 8px 32px rgba(200,169,110,0.35), 0 2px 8px rgba(200,169,110,0.2) !important;
  animation: fb-goldpulse 2.5s ease infinite;
}

.fb-upsell-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 40px rgba(200,169,110,0.45), 0 4px 12px rgba(200,169,110,0.25) !important;
  animation: none !important;
  color: #0f0e0c !important;
}

.fb-upsell-btn svg { flex-shrink: 0; }

.fb-security {
  font-size: 12px;
  color: rgba(250,248,243,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Skip link ────────────────────────────────────── */
.fb-skip-wrap {
  margin-bottom: 32px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.fb-skip-wrap.fb-visible {
  opacity: 1;
  pointer-events: all;
}

.fb-skip-link {
  font-size: 13px;
  color: rgba(250,248,243,0.28) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease !important;
}

.fb-skip-link:hover {
  color: rgba(250,248,243,0.55) !important;
}

/* ── Countdown ────────────────────────────────────── */
.fb-countdown {
  width: 100%;
  border-radius: 8px;
  padding: 32px 28px 28px;
  text-align: center;
  background: #1a0a00;
  border: 2px solid var(--fb-rust);
  position: relative;
  overflow: hidden;
  animation: fb-slideup 0.9s 0.5s ease both;
  box-shadow: 0 0 40px rgba(196,80,26,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

.fb-countdown::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--fb-rust-dark), var(--fb-rust), #e8721a, var(--fb-rust), var(--fb-rust-dark));
}

.fb-countdown-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fb-rust);
  margin-bottom: 20px;
  font-weight: 600;
}

.fb-countdown-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.fb-digit-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fb-digit {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  min-width: 88px;
  background: rgba(196,80,26,0.18);
  border-radius: 6px;
  padding: 12px 16px;
  border: 1px solid rgba(196,80,26,0.5);
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.fb-digit.fb-tick {
  transform: scale(1.06);
  background: rgba(196,80,26,0.4);
  color: #fff;
}

.fb-digit-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(250,248,243,0.5);
  font-weight: 500;
}

.fb-sep {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--fb-rust);
  margin-bottom: 24px;
  line-height: 1;
  animation: fb-blink 1.5s ease infinite;
  text-shadow: 0 0 12px rgba(196,80,26,0.5);
}

.fb-countdown-note {
  margin-top: 16px !important;
  font-size: 13px !important;
  color: rgba(250,248,243,0.35) !important;
  line-height: 1.5 !important;
}

.fb-countdown-note strong { color: var(--fb-rust) !important; }

/* ── Kill overlay ─────────────────────────────────── */
.fb-kill-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.fb-kill-overlay.fb-show {
  display: flex;
}

.fb-kill-box {
  background: var(--fb-cream);
  color: var(--fb-ink);
  border-radius: 8px;
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: fb-popin 0.4s ease both;
}

.fb-kill-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.fb-kill-box h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  color: var(--fb-ink) !important;
}

.fb-kill-box p {
  font-size: 16px;
  color: #7a7570;
  line-height: 1.6;
  margin-bottom: 20px !important;
}

.fb-kill-box p strong { color: var(--fb-rust); }

.fb-kill-timer {
  font-size: 14px;
  color: #7a7570;
  margin-bottom: 24px;
}

.fb-kill-count {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--fb-rust);
}

.fb-kill-btn {
  display: block !important;
  background: var(--fb-rust) !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  padding: 16px 40px !important;
  border-radius: 3px !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.fb-kill-btn:hover {
  background: var(--fb-rust-dark) !important;
  color: #fff !important;
}

/* ── Keyframes ────────────────────────────────────── */
@keyframes fb-slideup {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fb-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fb-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

@keyframes fb-goldpulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(200,169,110,0.35), 0 2px 8px rgba(200,169,110,0.2); }
  50%       { box-shadow: 0 12px 48px rgba(200,169,110,0.55), 0 4px 16px rgba(200,169,110,0.3); }
}

@keyframes fb-popin {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 600px) {
  .fb-upsell-btn { padding: 18px 28px !important; font-size: 16px !important; }
  .fb-digit { font-size: 38px !important; min-width: 64px !important; padding: 10px 12px !important; }
  .fb-sep { font-size: 36px !important; }
  .fb-kill-box { padding: 36px 24px; }
}

/* ═══════════════════════════════════════════════════
   [funnel_landing] shortcode styles
   All prefixed .fbl- to avoid any conflicts
═══════════════════════════════════════════════════ */

.fbl-root {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
}

.fbl-root::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(200,169,110,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(196,80,26,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.fbl-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 48px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Badge */
.fbl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fbl-text, #faf8f3);
  color: var(--fbl-bg, #0f0e0c);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 2px;
  margin-bottom: 44px;
  animation: fbl-slidedown 0.8s ease both;
}

.fbl-badge::before {
  content: '★';
  color: var(--fbl-accent, #c8a96e);
}

/* Headline */
.fbl-headline {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(38px, 6vw, 76px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-align: center !important;
  max-width: 820px !important;
  margin-bottom: 28px !important;
  color: var(--fbl-text, #faf8f3) !important;
  animation: fbl-slideup 0.9s 0.15s ease both;
}

.fbl-headline em {
  font-style: italic;
  color: var(--fbl-accent, #c8a96e);
  position: relative;
  display: inline-block;
}

.fbl-headline em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fbl-accent, #c8a96e);
  transform: scaleX(0);
  transform-origin: left;
  animation: fbl-underline 0.6s 1.1s ease forwards;
}

/* Subhead */
.fbl-subhead {
  font-size: clamp(16px, 2.2vw, 20px) !important;
  font-weight: 300 !important;
  color: rgba(250,248,243,0.6) !important;
  text-align: center !important;
  max-width: 540px !important;
  line-height: 1.65 !important;
  margin-bottom: 52px !important;
  animation: fbl-slideup 0.9s 0.3s ease both;
}

/* CTA wrap */
.fbl-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fbl-slideup 0.9s 0.45s ease both;
  margin-bottom: 52px;
  width: 100%;
  max-width: 520px;
}

/* ── Email input ──────────────────────────────────── */
.fbl-email-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fbl-email-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(250,248,243,0.06) !important;
  border: 1.5px solid rgba(200,169,110,0.3) !important;
  border-radius: 10px !important;
  color: var(--fbl-text, #faf8f3) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  padding: 18px 24px !important;
  outline: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2) !important;
  -webkit-appearance: none;
}

.fbl-email-input::placeholder {
  color: rgba(250,248,243,0.35) !important;
}

.fbl-email-input:focus {
  border-color: rgba(200,169,110,0.7) !important;
  background: rgba(250,248,243,0.09) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2), 0 0 0 3px rgba(200,169,110,0.12) !important;
}

.fbl-email-input--error {
  border-color: rgba(196,80,26,0.7) !important;
  background: rgba(196,80,26,0.06) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2), 0 0 0 3px rgba(196,80,26,0.12) !important;
}

.fbl-email-error {
  font-size: 13px;
  color: #e87a50;
  min-height: 18px;
  text-align: left;
  padding-left: 4px;
}

/* CTA button */
.fbl-cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  background: var(--fbl-primary, #c4501a) !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  padding: 22px 52px !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
  box-shadow: 0 8px 32px rgba(196,80,26,0.3), 0 2px 8px rgba(196,80,26,0.15) !important;
}

.fbl-cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.fbl-cta-btn:hover::after  { transform: scaleX(1); transform-origin: left; }
.fbl-cta-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 40px rgba(196,80,26,0.35), 0 4px 12px rgba(196,80,26,0.2) !important;
  color: #fff !important;
}

.fbl-cta-btn:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.fbl-cta-btn svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.fbl-cta-btn span, .fbl-cta-btn svg { position: relative; z-index: 1; }

.fbl-secure {
  font-size: 13px;
  color: rgba(250,248,243,0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Proof */
.fbl-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fbl-fadein 1s 0.8s ease both;
}

.fbl-avatars {
  display: flex;
}

.fbl-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(250,248,243,0.15);
  background: rgba(200,169,110,0.2);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.fbl-avatar:first-child { margin-left: 0; }

.fbl-proof-text {
  font-size: 13px;
  color: rgba(250,248,243,0.45);
}

/* Decorative ring */
.fbl-root::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 360px; height: 360px;
  border: 1px solid rgba(200,169,110,0.08);
  border-radius: 50%;
  pointer-events: none;
  animation: fbl-rotate 40s linear infinite;
}

/* Animations */
@keyframes fbl-slidedown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fbl-slideup {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fbl-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fbl-underline {
  to { transform: scaleX(1); }
}

@keyframes fbl-rotate {
  to { transform: rotate(360deg); }
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 600px) {
  .fbl-inner { padding: 48px 24px 60px; }
  .fbl-cta-btn { padding: 18px 32px !important; font-size: 16px !important; }
  .fbl-email-input { font-size: 16px !important; padding: 16px 20px !important; } /* 16px prevents iOS zoom */
}

/* ═══════════════════════════════════════════════════
   [funnel_bridge_image] shortcode styles
   Prefixed .fbi- for the image-mode bridge page.
   Reuses .fb- components: urgency bar, upsell block,
   countdown, kill overlay, eyebrow, skip link.
═══════════════════════════════════════════════════ */

/* ── Layout overrides for image mode ─────────────── */
.fbi-inner {
  max-width: 860px; /* tighter than video mode — feels more editorial */
}

/* ── Hero image ───────────────────────────────────── */
.fbi-image-wrap {
  width: 100%;
  max-width: 680px;
  margin-bottom: 36px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(200,169,110,0.18);
  animation: fb-slideup 0.9s 0.2s ease both;
  position: relative;
}

/* Subtle gold shimmer along the top edge */
.fbi-image-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(200,169,110,0.6) 30%,
    rgba(200,169,110,0.9) 50%,
    rgba(200,169,110,0.6) 70%,
    transparent
  );
  z-index: 2;
}

.fbi-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ── Headline (image mode — centred, slightly larger) */
.fbi-headline {
  text-align: center !important;
  margin-bottom: 16px !important;
  animation: fb-slideup 0.9s 0.35s ease both;
}

/* ── Upsell block (image mode — entrance animation) ─ */
.fbi-upsell {
  animation: fb-slideup 0.9s 0.5s ease both;
  /* fb-visible is set in PHP so it's always shown;
     we keep the animation for the entrance effect */
  margin-bottom: 16px;
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 600px) {
  .fbi-image-wrap { border-radius: 8px; }
  .fbi-hero-image { border-radius: 8px; }
}
