/*
 * Conversion Funnel v1 — 2026-05-11
 * Module-isolated styles for exit intent, sticky CTA, social proof.
 * Owner: departments/conversion_funnel_v1
 * Scope: prefixed .cfv1- to avoid global collisions.
 */

/* Exit Intent Popup */
.cfv1-popup-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.78);
  z-index: 99990; display: none; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px); animation: cfv1FadeIn 0.25s ease-out;
}
.cfv1-popup-backdrop.cfv1-active { display: flex; }
.cfv1-popup {
  background: linear-gradient(160deg, #1a1410, #2a1c10);
  border: 1px solid rgba(232,201,122,0.35);
  border-radius: 14px; max-width: 460px; width: 100%;
  padding: 28px 24px; color: #e8e0d0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 32px rgba(232,201,122,0.12);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  position: relative;
}
.cfv1-popup h2 {
  margin: 0 0 8px; font-size: 1.32rem; line-height: 1.32;
  color: #e8c97a; font-weight: 700;
}
.cfv1-popup p { margin: 0 0 16px; font-size: 0.95rem; line-height: 1.55; color: #c4b896; }
.cfv1-popup .cfv1-bullets { list-style:none; padding:0; margin: 0 0 18px; }
.cfv1-popup .cfv1-bullets li {
  padding: 6px 0; font-size: 0.88rem; color: #d4c8aa; line-height: 1.45;
}
.cfv1-popup .cfv1-bullets li::before {
  content: "✓ "; color: #34d399; font-weight: 700; margin-right: 4px;
}
.cfv1-popup input[type=email] {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; color: #fff; font-size: 0.96rem; margin-bottom: 10px;
  font-family: inherit; outline: none;
}
.cfv1-popup input[type=email]:focus { border-color: #e8c97a; }
.cfv1-popup .cfv1-btn {
  display: block; width: 100%; padding: 13px 16px; box-sizing: border-box;
  background: linear-gradient(90deg, #c9a84c, #e8c97a);
  color: #1a1410; border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; text-align: center; font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cfv1-popup .cfv1-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(232,201,122,0.32); }
.cfv1-popup .cfv1-close {
  position: absolute; top: 10px; right: 12px;
  background: transparent; border: 0; color: #8a7a5a;
  font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 4px 10px;
}
.cfv1-popup .cfv1-close:hover { color: #e8c97a; }
.cfv1-popup .cfv1-tiny {
  font-size: 0.72rem; color: #8a7a5a; margin-top: 10px; text-align: center; line-height: 1.45;
}
.cfv1-popup .cfv1-tiny a { color: #c9a84c; text-decoration: none; }

/* Sticky bottom CTA bar */
.cfv1-sticky {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.96), rgba(10,8,6,0.98));
  border-top: 1px solid rgba(232,201,122,0.4);
  padding: 10px 14px; z-index: 9990;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.45);
  transform: translateY(120%); transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}
.cfv1-sticky.cfv1-shown { transform: translateY(0); }
.cfv1-sticky .cfv1-stxt {
  flex: 1; font-size: 0.84rem; color: #e8e0d0; line-height: 1.32;
}
.cfv1-sticky .cfv1-stxt strong { color: #e8c97a; font-size: 0.94rem; }
.cfv1-sticky .cfv1-scta {
  white-space: nowrap;
  padding: 11px 18px; background: linear-gradient(90deg,#c9a84c,#e8c97a);
  color: #1a1410; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: 0.88rem;
}
.cfv1-sticky .cfv1-sclose {
  background: transparent; border: 0; color: #8a7a5a; font-size: 1.4rem;
  cursor: pointer; padding: 0 6px; line-height: 1;
}
@media (max-width: 480px) {
  .cfv1-sticky { padding: 9px 10px; }
  .cfv1-sticky .cfv1-stxt { font-size: 0.78rem; }
  .cfv1-sticky .cfv1-scta { padding: 10px 14px; font-size: 0.84rem; }
}

/* Social proof live counter */
.cfv1-social-proof {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35); border-radius: 999px;
  color: #34d399; font-size: 0.84rem; font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}
.cfv1-social-proof .cfv1-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  animation: cfv1Pulse 1.6s ease-in-out infinite;
}
.cfv1-social-proof .cfv1-num { color: #fff; font-weight: 700; }

@keyframes cfv1FadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cfv1Pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.18); }
}

/* Lead magnet landing page */
.cfv1-lm-hero {
  max-width: 720px; margin: 32px auto; padding: 28px 22px;
  background: linear-gradient(160deg, #1a1410, #2a1c10);
  border: 1px solid rgba(232,201,122,0.3); border-radius: 14px;
  color: #e8e0d0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}
.cfv1-lm-hero h1 { color: #e8c97a; font-size: 1.7rem; margin: 0 0 12px; line-height: 1.28; }
.cfv1-lm-hero .cfv1-form-row { display: grid; gap: 10px; margin: 14px 0; }
.cfv1-lm-hero label { font-size: 0.84rem; color: #c4b896; }
.cfv1-lm-hero input, .cfv1-lm-hero select {
  padding: 12px 14px; background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 8px;
  color: #fff; font-size: 0.96rem; font-family: inherit; outline: none;
  width: 100%; box-sizing: border-box;
}
.cfv1-lm-hero input:focus, .cfv1-lm-hero select:focus { border-color: #e8c97a; }
.cfv1-lm-hero .cfv1-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .cfv1-lm-hero .cfv1-row2 { grid-template-columns: 1fr; } }
.cfv1-lm-hero .cfv1-btn {
  display: block; width: 100%; padding: 14px 16px; box-sizing: border-box;
  background: linear-gradient(90deg, #c9a84c, #e8c97a);
  color: #1a1410; border: none; border-radius: 8px;
  font-size: 1.04rem; font-weight: 800; cursor: pointer;
  text-decoration: none; text-align: center; font-family: inherit;
  margin-top: 6px;
}
.cfv1-lm-hero .cfv1-bullets { list-style:none; padding:0; margin: 16px 0; }
.cfv1-lm-hero .cfv1-bullets li {
  padding: 8px 0; font-size: 0.95rem; color: #d4c8aa; line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cfv1-lm-hero .cfv1-bullets li::before { content: "🔍 "; margin-right: 6px; }
.cfv1-lm-hero .cfv1-thanks {
  display: none; padding: 20px; background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.35); border-radius: 10px;
  color: #34d399; font-size: 1rem; line-height: 1.55;
}
.cfv1-lm-hero .cfv1-thanks.cfv1-active { display: block; }

/* Pay page — Lemon Squeezy / PortOne notice strip */
.cfv1-pay-roadmap {
  margin: 12px 0; padding: 14px;
  background: rgba(232, 201, 122, 0.06);
  border: 1px solid rgba(232, 201, 122, 0.28);
  border-radius: 10px;
  font-size: 0.82rem; color: #e8e0d0; line-height: 1.55;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}
.cfv1-pay-roadmap .cfv1-pr-title {
  font-size: 0.78rem; color: #c9a84c; letter-spacing: 0.08em;
  font-weight: 700; margin-bottom: 8px;
}
.cfv1-pay-roadmap .cfv1-pr-row { padding: 4px 0; font-size: 0.84rem; }
.cfv1-pay-roadmap .cfv1-pr-row .cfv1-pr-tag {
  display: inline-block; min-width: 18px; margin-right: 6px;
}
.cfv1-pay-roadmap .cfv1-pr-soon { color: #34d399; font-weight: 600; }
.cfv1-pay-roadmap .cfv1-pr-review { color: #fbbf24; font-weight: 600; }
