/* Compact two-column offer + Smart Visitor Hook & Exit-Intent Email Catcher */
.demo-offer {
  scroll-margin-top: 96px;
  padding: 56px 0;
  border-top: 2px solid #fed7aa;
  border-bottom: 2px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #ffedd5 100%);
  position: relative;
}
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; }
.demo-offer h2, .demo-page h1 { font: 800 clamp(26px, 3vw, 36px)/1.2 var(--font-heading, sans-serif); letter-spacing: -.035em; color: var(--ink, #0f172a); margin: 0 0 12px; }
.demo-intro { max-width: 58ch; color: var(--body, #475569); margin: 0 0 18px; font-size: 16px; line-height: 1.55; }
.demo-benefits { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.demo-benefits li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px;
  padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.85);
  border: 1px solid #fed7aa;
}
.demo-tick { color: #ea580c; font-size: 18px; font-weight: 900; line-height: 1.4; }
.demo-benefits strong { display: block; font-weight: 700; color: var(--ink, #0f172a); }
.demo-benefits p { margin: 2px 0 0; color: var(--body, #475569); font-size: 14px; line-height: 1.5; }
.demo-preview { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 12px; text-decoration: none; color: var(--ink, #0f172a); }
.demo-preview-media { position: relative; display: grid; place-items: center; width: 128px; height: 72px; overflow: hidden; background: #f1f5f9; border: 2px solid #f97316; border-radius: 9px; box-shadow: 0 6px 18px rgba(234,88,12,0.18); }
.demo-preview-play { position: relative; z-index: 2; color: #fff; background: rgba(234,88,12,0.9); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; }
.demo-preview img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.demo-preview img[data-ready] { opacity: 1; }
.demo-caption { display: block; color: var(--body, #475569); font-size: 13px; line-height: 1.5; margin-top: 4px; }
.demo-form, .demo-email-card {
  padding: 28px; background: #fff;
  border: 2px solid #f97316; border-radius: 20px;
  box-shadow: 0 20px 48px rgba(234, 88, 12, 0.14);
}
.demo-form > label:not(.demo-consent) { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #0f172a; }
.demo-form input[type=email] { display: block; box-sizing: border-box; width: 100%; min-width: 0; height: 48px; border: 1.5px solid #94a3b8; border-radius: 10px; padding: 10px 14px; font: inherit; background: #fff; color: #0f172a; }
.demo-consent { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; font-size: 13px; line-height: 1.6; color: #475569; cursor: pointer; }
.demo-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #ea580c; }
.demo-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 0; border-radius: 10px; padding: 12px 20px; background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); color: white; font: 700 15px/1.5 var(--font-body, sans-serif); text-decoration: none; cursor: pointer; white-space: normal; box-shadow: 0 8px 20px rgba(234,88,12,0.28); }
.demo-form .demo-button { width: 100%; }
.demo-button:hover { background: #9a3412; }
.demo-button:disabled { background: #e2e8f0; color: #475569; cursor: default; box-shadow: none; }
.demo-form input:focus-visible, .demo-button:focus-visible, .demo-preview:focus-visible, .demo-link:focus-visible { outline: 3px solid #0369a1; outline-offset: 3px; }
.demo-status { font-size: 14px; line-height: 1.6; margin: 12px 0 0; overflow-wrap: anywhere; color: #0f172a; font-weight: 500; }
.demo-note { margin: 12px 0 0; color: #64748b; font-size: 12px; line-height: 1.6; }
.demo-note a, .demo-link { color: #9a3412; text-decoration: underline; text-underline-offset: 3px; }
.demo-page { max-width: 1040px; margin: 0 auto; padding: 24px; }
.demo-page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.demo-brand { font: 800 20px/1.3 var(--font-heading, sans-serif); color: #c2410c; text-decoration: none; }
.demo-page video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0f172a; border-radius: 14px; margin: 20px 0 12px; }
.demo-page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.demo-email-card { max-width: 580px; margin: 48px auto; }
.demo-email-card p { margin: 16px 0; }
.demo-email-card .demo-button { margin-top: 8px; }
.demo-offer [hidden], .demo-page [hidden] { display: none !important; }

/* Smart Visitor Email Catcher (Floating Pill + Exit-Intent / Scroll Popup Modal) */
.demo-smart-pill {
  position: fixed; left: 20px; bottom: 20px; z-index: 9990;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff; border: 1.5px solid #f97316;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.35), 0 0 0 4px rgba(249, 115, 22, 0.16);
  font: 700 13.5px/1.3 var(--font-body, sans-serif);
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.demo-smart-pill:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(234, 88, 12, 0.35); }
.demo-smart-pill-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3);
  animation: demoPulse 1.8s infinite;
}
@keyframes demoPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.65; } }

.demo-smart-backdrop {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(15, 23, 42, 0.68); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: demoFadeIn 0.25s ease;
}
.demo-smart-backdrop[hidden] { display: none !important; }
@keyframes demoFadeIn { from { opacity: 0; } to { opacity: 1; } }

.demo-smart-modal {
  position: relative; width: 100%; max-width: 820px;
  background: #ffffff; color: #0f172a;
  border-radius: 24px; border: 2px solid #f97316;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.48);
  overflow: hidden; display: grid; grid-template-columns: 1.08fr 0.92fr;
}
.demo-smart-left {
  padding: 30px 28px;
  background: linear-gradient(155deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.demo-smart-badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(249, 115, 22, 0.22); border: 1px solid rgba(251, 146, 60, 0.55);
  color: #fdba74; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.demo-smart-left h3 {
  font: 800 23px/1.22 var(--font-heading, sans-serif);
  color: #ffffff; margin: 8px 0 6px; letter-spacing: -0.02em;
}
.demo-smart-left p.demo-smart-sub {
  font-size: 13.5px; line-height: 1.5; color: #cbd5e1; margin: 0;
}
.demo-smart-perks {
  list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 9px;
}
.demo-smart-perks li {
  display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; color: #f1f5f9;
}
.demo-smart-perks li b { color: #fdba74; }
.demo-smart-video-box {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1.5px solid rgba(251, 146, 60, 0.5); background: #000; aspect-ratio: 16 / 9;
}
.demo-smart-video-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-smart-right {
  padding: 30px 28px; background: #ffffff; display: flex; flex-direction: column; justify-content: center;
}
.demo-smart-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid #cbd5e1; background: #f8fafc; color: #334155;
  font-size: 18px; font-weight: 700; cursor: pointer; display: grid; place-items: center;
}
.demo-smart-close:hover { background: #e2e8f0; color: #0f172a; }
.demo-smart-right h4 {
  font: 800 19px/1.25 var(--font-heading, sans-serif); color: #0f172a; margin: 0 0 6px;
}
.demo-smart-right .demo-smart-offer-note {
  font-size: 13px; line-height: 1.5; color: #475569; margin: 0 0 16px;
}
.demo-smart-right label.demo-smart-lbl {
  display: block; font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 6px;
}
.demo-smart-right input[type=email] {
  width: 100%; height: 46px; box-sizing: border-box;
  border: 1.5px solid #94a3b8; border-radius: 10px; padding: 10px 12px;
  font: inherit; color: #0f172a; background: #fff;
}
.demo-smart-right .demo-consent { margin: 12px 0; font-size: 12.5px; }
.demo-smart-right .demo-button { width: 100%; margin-top: 4px; }
.demo-smart-status { font-size: 13px; line-height: 1.5; margin: 10px 0 0; color: #0f172a; font-weight: 600; }

/* Video switcher tabs on /demo */
.demo-tabs-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.demo-tabs-btn {
  padding: 9px 15px; border-radius: 10px; border: 1.5px solid #cbd5e1;
  background: #f8fafc; color: #0f172a; font: 700 13.5px/1.3 var(--font-body, sans-serif);
  cursor: pointer;
}
.demo-tabs-btn[aria-selected="true"] {
  background: #fff7ed; border-color: #ea580c; color: #c2410c;
}

@media (max-width: 760px) {
  .demo-offer { padding: 32px 0; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .demo-form, .demo-email-card { padding: 20px; }
  .demo-page { padding: 20px; }
  .demo-page-header { margin-bottom: 28px; }
  .demo-email-card { margin: 24px 0; }
  .demo-smart-modal { grid-template-columns: minmax(0, 1fr); max-height: 92vh; overflow-y: auto; }
  .demo-smart-left, .demo-smart-right { padding: 22px 20px; }
}
