/* GlowFlow Leads — shared conversion-rate-optimization stylesheet
 * Loaded by /conversion.js; designed to be unobtrusive across all pages.
 * Reuses brand tokens already defined on the homepage and city pages.
 */

/* ─── Sticky top CTA bar ─────────────────────────────────────────────────
 * Hidden by default; reveals after ~200px scroll. z-index below exit modal
 * (60) but above the typical sticky top nav (which uses z-index 100 on most
 * pages — so this sits BELOW the nav). We position it at top:0 and rely on
 * the page's existing sticky nav to sit above it on z-index; if any page's
 * nav has a lower z-index, the bar flexes gracefully. */
.gf-sticky-cta {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10,10,15,0.96) 0%, rgba(10,10,15,0.92) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(196,255,77,0.18);
  color: var(--text-primary, #f0f0f5);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  pointer-events: none;
}
.gf-sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.gf-sticky-cta-copy {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary, #f0f0f5);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.gf-sticky-cta-copy strong {
  color: var(--accent, #c4ff4d);
  font-weight: 600;
}
.gf-sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent, #c4ff4d);
  color: var(--bg-dark, #0a0a0f) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 18px rgba(196,255,77,0.28);
}
.gf-sticky-cta-btn:hover {
  background: #d4ff6e;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(196,255,77,0.42);
}
.gf-sticky-cta-btn:active { transform: translateY(0); }

@media (max-width: 640px) {
  .gf-sticky-cta { padding: 8px 12px; }
  .gf-sticky-cta-copy { font-size: 0.82rem; }
  .gf-sticky-cta-btn { padding: 7px 14px; font-size: 0.78rem; }
}

/* Push page content down when sticky bar is visible so it doesn't cover
 * primary CTAs at the very top of the viewport. The script toggles this. */
body.gf-sticky-shown { padding-top: 56px; }

/* ─── Floating "Schedule Demo" button ─────────────────────────────────────
 * Fixed bottom-right; smooth fade-up animation on load. Hidden on mobile. */
.gf-float-demo {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  background: linear-gradient(135deg, var(--accent, #c4ff4d) 0%, #a0e040 100%);
  color: var(--bg-dark, #0a0a0f) !important;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(196,255,77,0.38), 0 2px 8px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.8s, transform 0.6s ease-out 0.8s,
              box-shadow 0.2s ease, background 0.2s ease;
}
.gf-float-demo.gf-float-show {
  opacity: 1;
  transform: translateY(0);
}
.gf-float-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(196,255,77,0.52), 0 4px 12px rgba(0,0,0,0.45);
}
.gf-float-demo:active { transform: translateY(0); }

@media (max-width: 540px) {
  /* Hand off to the sticky bar on small viewports */
  .gf-float-demo { display: none !important; }
}

/* ─── Exit-intent modal ───────────────────────────────────────────────────
 * One dismiss per session — sessionStorage flag prevents re-trigger. */
.gf-exit-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}
.gf-exit-modal.gf-exit-open {
  opacity: 1;
  pointer-events: auto;
}
.gf-exit-card {
  background: linear-gradient(180deg, #161621 0%, #12121a 100%);
  border: 1px solid rgba(196,255,77,0.32);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(196,255,77,0.12);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.3s ease-out;
}
.gf-exit-modal.gf-exit-open .gf-exit-card {
  transform: translateY(0) scale(1);
}
.gf-exit-tag {
  display: inline-block;
  background: rgba(196,255,77,0.12);
  border: 1px solid rgba(196,255,77,0.3);
  color: var(--accent, #c4ff4d);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.gf-exit-card h3 {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary, #f0f0f5);
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.gf-exit-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text-secondary, #8a8a9e);
  margin: 0 0 22px;
  line-height: 1.6;
}
.gf-exit-cta {
  display: block;
  width: 100%;
  background: var(--accent, #c4ff4d);
  color: var(--bg-dark, #0a0a0f) !important;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background 0.2s, transform 0.15s;
}
.gf-exit-cta:hover { background: #d4ff6e; transform: translateY(-1px); }
.gf-exit-dismiss {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted, #5a5a6e);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 6px 10px;
  font-family: inherit;
}
.gf-exit-dismiss:hover { color: var(--text-secondary, #8a8a9e); }

@media (max-width: 540px) {
  .gf-exit-modal { padding: 16px; }
  .gf-exit-card { padding: 24px 20px; border-radius: 14px; }
  .gf-exit-card h3 { font-size: 1.2rem; }
  .gf-exit-card p { font-size: 0.86rem; }
}

/* ─── /book-demo page (Calendly inline + fallback card) ─────────────────── */
.gf-book-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.gf-book-hero {
  text-align: center;
  padding: 56px 24px 32px;
}
.gf-book-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 8px 0 12px;
  color: var(--text-primary, #f0f0f5);
}
.gf-book-hero p {
  color: var(--text-secondary, #8a8a9e);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 16px;
  line-height: 1.6;
}
.gf-book-embed {
  background: var(--bg-card, #12121a);
  border: 1px solid var(--border-accent, rgba(196,255,77,0.15));
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}
.gf-book-fallback {
  background: linear-gradient(180deg, rgba(196,255,77,0.06) 0%, rgba(196,255,77,0.02) 100%);
  border: 1px solid var(--border-accent, rgba(196,255,77,0.2));
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
}
.gf-book-fallback h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary, #f0f0f5);
  margin: 0 0 12px;
}
.gf-book-fallback p {
  color: var(--text-secondary, #8a8a9e);
  font-size: 0.96rem;
  margin: 0 0 22px;
  line-height: 1.6;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.gf-book-fallback .gf-book-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent, #c4ff4d);
  color: var(--bg-dark, #0a0a0f) !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.gf-book-fallback .gf-book-action:hover { background: #d4ff6e; transform: translateY(-1px); }
