/* <iq-video-funnel> (mockup). Light design only. Uses the iq-hs.css tokens (--iq-hs-brand, --iq-hs-line, ...).
   Overlay card is white with a strong shadow over a light frosted veil (never a dark scrim). */
iq-video-funnel {
  display: block;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  margin: 8px 0 28px;
}
iq-video-funnel * { box-sizing: border-box; }
iq-video-funnel [hidden] { display: none !important; }

.iq-vf { max-width: 820px; }

/* Top row: breadcrumb of answers + Back / Restart */
.iq-vf-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #FFFFFF; border: 1px solid var(--iq-hs-line, #E2E8F0); border-bottom: 0;
  border-radius: 12px 12px 0 0; padding: 10px 14px;
}
.iq-vf-trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.iq-vf-trail li { display: inline-flex; align-items: center; font-size: 18px; color: #374151; }
.iq-vf-trail li + li::before { content: "\203A"; margin: 0 6px 0 2px; color: #6B7280; }
.iq-vf-trail button {
  font: inherit; font-weight: 600; color: var(--iq-hs-brand, #1853B9); background: none; border: 0;
  padding: 4px 6px; border-radius: 6px; cursor: pointer;
}
.iq-vf-trail button:hover { background: var(--iq-hs-brand-tint, #E8EEFA); }
.iq-vf-trail [aria-current] span { font-weight: 800; color: #111827; padding: 4px 6px; }
.iq-vf-top-actions { display: flex; gap: 8px; }

.iq-vf-btn-ghost {
  font: inherit; font-size: 18px; font-weight: 700; color: #111827; background: #FFFFFF;
  border: 1px solid var(--iq-hs-line-strong, #CBD5E1); border-radius: 8px; padding: 7px 14px; cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.iq-vf-btn-ghost:hover:not(:disabled) { border-color: var(--iq-hs-brand, #1853B9); color: var(--iq-hs-brand, #1853B9); }
.iq-vf-btn-ghost:disabled { opacity: .45; cursor: default; }

/* Stage: video + pins + veil + card */
.iq-vf-stage {
  position: relative; background: #EEF2F6; border: 1px solid var(--iq-hs-line, #E2E8F0);
  overflow: hidden;
}
.iq-vf-media { position: relative; line-height: 0; aspect-ratio: 3 / 2; }
.iq-vf-video, .iq-vf-poster { width: 100%; height: 100%; object-fit: cover; display: block; background: #EEF2F6; }
.iq-vf-pins { position: absolute; inset: 0; pointer-events: none; z-index: 3; }

.iq-vf-pin { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.iq-vf-pin.is-on { opacity: 1; visibility: visible; }
.iq-vf-pin:not(.is-on) * { pointer-events: none !important; }
.iq-vf-pin[data-tracked] { will-change: left, top; }
.iq-vf-pin .iq-hs-pin { cursor: pointer; }
.iq-vf-pin.is-active .iq-hs-pin-callout { display: none; }

/* Pin tooltip: opens beside the pin tip; the clip pauses while it is open */
.iq-vf-pop {
  position: absolute; z-index: 5; width: min(300px, 46%); line-height: 1.45;
  background: #FFFFFF; color: #111827; border: 1px solid var(--iq-hs-line-strong, #CBD5E1);
  border-radius: 14px; padding: 14px 16px 14px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .26), 0 4px 12px rgba(17, 24, 39, .12);
}
.iq-vf-pop.side-right { transform: translate(34px, -30%); }
.iq-vf-pop.side-left { transform: translate(calc(-100% - 34px), -30%); }
.iq-vf-pop-num { margin: 0 0 2px; font-size: 18px; font-weight: 700; color: var(--iq-hs-brand, #1853B9); }
.iq-vf-pop-t { margin: 0 0 6px; font-size: 20px; line-height: 1.25; color: #111827; }
.iq-vf-pop-d { margin: 0 0 12px; font-size: 18px; color: #374151; }
.iq-vf-pop-close {
  font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; min-height: 44px; padding: 8px 16px;
  background: var(--iq-hs-brand, #1853B9); color: #FFFFFF; border: 0; border-radius: 10px;
}
.iq-vf-pop-close:focus-visible { outline: 3px solid #111827; outline-offset: 2px; }

.iq-vf-skip {
  position: absolute; bottom: 12px; left: 12px; z-index: 6;
  background: #FFFFFF; color: #111827; font-size: 18px; font-weight: 700; line-height: 1.2;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--iq-hs-line-strong, #CBD5E1);
  text-decoration: none !important; box-shadow: 0 4px 14px rgba(17, 24, 39, .12);
}
.iq-vf-skip:hover, .iq-vf-skip:focus-visible { color: var(--iq-hs-brand, #1853B9); border-color: var(--iq-hs-brand, #1853B9); }
.iq-vf-stage.is-asking .iq-vf-skip, .iq-vf-stage.has-pin .iq-vf-skip { display: none; }

.iq-vf-bigplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5;
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; line-height: 1;
  background: var(--iq-hs-brand, #1853B9); color: #FFFFFF; font-size: 30px; padding-left: 6px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .25);
}

.iq-vf-veil {
  position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0;
  background: rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transition: opacity .3s ease;
}
.iq-vf-stage.is-asking .iq-vf-veil { opacity: 1; }

.iq-vf-card {
  position: absolute; z-index: 8; left: 50%; top: 50%;
  width: min(580px, calc(100% - 48px)); max-height: calc(100% - 32px); overflow: auto;
  transform: translate(-50%, -50%);
  background: #FFFFFF; color: #111827; border-radius: 16px; padding: 28px 28px 24px;
  border: 1px solid rgba(17, 24, 39, .08);
  box-shadow: 0 28px 70px -12px rgba(17, 24, 39, .45), 0 8px 20px rgba(17, 24, 39, .16);
  line-height: 1.4;
  animation: iqVfCardIn .32s cubic-bezier(.16, 1, .3, 1);
}
@keyframes iqVfCardIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
.iq-vf-step { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--iq-hs-brand, #1853B9); letter-spacing: .02em; }
.iq-vf-q { margin: 0 0 18px; font-size: 30px; line-height: 1.2; font-weight: 800; color: #111827; outline: none; }
.iq-vf-msg { margin: 0 0 20px; font-size: 19px; color: #374151; }

.iq-vf-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.iq-vf-choices.count-3 { grid-template-columns: 1fr; }
.iq-vf-choice {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px;
  font: inherit; font-size: 21px; font-weight: 800; color: #FFFFFF; background: var(--iq-hs-brand, #1853B9);
  border: 0; border-radius: 12px; padding: 14px 18px; cursor: pointer;
  transition: background-color .18s ease, transform .18s cubic-bezier(.16, 1, .3, 1);
}
@media (hover: hover) {
  .iq-vf-choice:hover { background: var(--iq-hs-brand-dark, #123E8C); transform: translateY(-2px); }
}
.iq-vf-choice:active { background: var(--iq-hs-brand-dark, #123E8C); }
.iq-vf-choice:focus-visible, .iq-vf-cta:focus-visible, .iq-vf-btn-ghost:focus-visible,
.iq-vf-replay:focus-visible, .iq-vf-trail button:focus-visible, .iq-vf-play:focus-visible {
  outline: 3px solid #111827; outline-offset: 3px;
}
.iq-vf-key {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px;
  background: rgba(255, 255, 255, .18); font-size: 18px; font-weight: 800;
}
.iq-vf-replay {
  margin-top: 14px; font: inherit; font-size: 18px; font-weight: 600; color: #374151; background: none; border: 0;
  padding: 4px 0; cursor: pointer;
}
.iq-vf-replay:hover { color: var(--iq-hs-brand, #1853B9); }

.iq-vf-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.iq-vf-cta {
  display: inline-flex; align-items: center; min-height: 56px; padding: 12px 24px; border-radius: 12px;
  background: var(--iq-hs-brand, #1853B9); color: #FFFFFF !important; font-size: 20px; font-weight: 800;
  text-decoration: none !important; transition: background-color .18s ease;
}
.iq-vf-cta:hover { background: var(--iq-hs-brand-dark, #123E8C); }

/* Bottom bar: play/pause, progress with the question marker, time */
.iq-vf-bar {
  display: flex; align-items: center; gap: 12px; background: #FFFFFF;
  border: 1px solid var(--iq-hs-line, #E2E8F0); border-top: 0; padding: 10px 14px;
}
.iq-vf-play {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--iq-hs-brand, #1853B9); color: #FFFFFF; font-size: 18px; font-weight: 800;
}
.iq-vf-progress { position: relative; flex: 1; height: 8px; border-radius: 99px; background: #E2E8F0; }
.iq-vf-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: var(--iq-hs-brand, #1853B9); }
.iq-vf-progress i {
  position: absolute; top: -5px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: #111827;
}
.iq-vf-time { font-size: 18px; color: #374151; font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }

.iq-vf-now {
  margin: 0; min-height: 56px; padding: 12px 14px; font-size: 18px; color: #374151; background: #FFFFFF;
  border: 1px solid var(--iq-hs-line, #E2E8F0); border-top: 0; border-radius: 0 0 12px 12px;
}
.iq-vf-now strong { color: #111827; margin-right: 4px; }
.iq-vf-error { padding: 16px; border: 1px solid #D92D20; border-radius: 10px; background: #FFFFFF; }

/* Text version (crawlable outline of the whole tree) */
.iq-vf-text { max-width: 820px; margin: 0 0 24px; background: #FFFFFF; border: 1px solid var(--iq-hs-line, #E2E8F0); border-radius: 12px; padding: 14px 18px; font-size: 18px; }
.iq-vf-text summary { font-weight: 700; cursor: pointer; color: #111827; }
.iq-vf-outline, .iq-vf-outline ul { list-style: none; margin: 10px 0 0; padding-left: 0; }
.iq-vf-outline ul { padding-left: 22px; border-left: 2px solid var(--iq-hs-line, #E2E8F0); margin-left: 6px; }
.iq-vf-outline li { margin: 8px 0; color: #374151; line-height: 1.5; }
.iq-vf-o-q { font-weight: 700; color: #111827; }
.iq-vf-o-end { font-weight: 700; color: #111827; }

@media (max-width: 720px) {
  iq-video-funnel { margin-left: -12px; margin-right: -12px; }
  .iq-vf-top { border-radius: 0; padding: 8px 10px; }
  .iq-vf-btn-ghost { font-size: 18px; padding: 6px 11px; }
  .iq-vf-skip { bottom: 8px; left: 8px; font-size: 18px; padding: 7px 12px; }
  /* The card would not fit inside a ~260px tall video: it rises from the bottom and overlaps the video. */
  .iq-vf-stage.is-asking .iq-vf-media { margin-bottom: -56px; }
  .iq-vf-card {
    position: relative; left: auto; top: auto; transform: none; width: auto; max-height: none;
    margin: 0 10px 12px; padding: 20px 18px 18px; animation-name: iqVfCardUp;
  }
  @keyframes iqVfCardUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .iq-vf-q { font-size: 25px; margin-bottom: 14px; }
  .iq-vf-choice { min-height: 58px; font-size: 20px; padding: 12px; }
  .iq-vf-key { display: none; }
  .iq-vf-cta { width: 100%; justify-content: center; }
  .iq-vf-bar { padding: 8px 10px; }
  .iq-vf-now { border-radius: 0; }
  /* Phones: the pin tooltip spans the bottom of the video instead of floating beside the pin. */
  .iq-vf-pop { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; transform: none !important; padding: 12px 14px; }
  .iq-vf-pop-t { font-size: 19px; }
  .iq-vf-pop.is-low { top: 8px !important; bottom: auto; }
}
@media (max-width: 400px) {
  .iq-vf-choices { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .iq-vf-card, .iq-vf-choice, .iq-vf-veil { animation: none !important; transition: none !important; }
}


/* Email capture + thank-you (intake mockup) */
.iq-vf-notice, .iq-vf-page-notice {
  margin: 0 0 16px; padding: 12px 14px; font-size: 18px; line-height: 1.45; color: #111827;
  background: #F8FAFC; border: 1px solid var(--iq-hs-line-strong, #CBD5E1); border-radius: 10px;
}
.iq-vf-page-notice { max-width: 820px; }
.iq-vf-email { display: flex; flex-direction: column; gap: 16px; }
.iq-vf-field { display: flex; flex-direction: column; gap: 6px; }
.iq-vf-field label { font-size: 18px; font-weight: 700; color: #111827; }
.iq-vf-req { font-weight: 600; color: #374151; }
.iq-vf-opt { font-weight: 600; color: #6B7280; }
.iq-vf-field input[type="email"],
.iq-vf-field input[type="text"] {
  font: inherit; font-size: 20px; color: #111827; background: #FFFFFF;
  border: 2px solid var(--iq-hs-line-strong, #CBD5E1); border-radius: 12px;
  min-height: 56px; padding: 12px 16px; width: 100%;
}
.iq-vf-field input:focus-visible {
  outline: 3px solid #111827; outline-offset: 2px; border-color: var(--iq-hs-brand, #1853B9);
}
.iq-vf-consent {
  display: flex; align-items: flex-start; gap: 12px; font-size: 18px; line-height: 1.45; color: #111827;
  padding: 12px 14px; border: 1px solid var(--iq-hs-line, #E2E8F0); border-radius: 12px; background: #FFFFFF;
  cursor: pointer;
}
.iq-vf-consent input {
  width: 24px; height: 24px; min-width: 24px; margin-top: 2px; accent-color: var(--iq-hs-brand, #1853B9);
}
.iq-vf-cta:disabled, .iq-vf-email .iq-vf-cta:disabled {
  opacity: .45; cursor: not-allowed; transform: none;
}
.iq-vf-mockup-banner {
  margin: 0 0 16px; padding: 12px 14px; font-size: 18px; font-weight: 800; color: #111827;
  background: #FEF3C7; border: 1px solid #F59E0B; border-radius: 10px;
}
.iq-vf-summary {
  margin: 0 0 16px; padding: 16px; border: 1px solid var(--iq-hs-line, #E2E8F0); border-radius: 12px; background: #F8FAFC;
}
.iq-vf-summary-h { margin: 0 0 10px; font-size: 20px; color: #111827; }
.iq-vf-summary-list { margin: 0 0 14px; padding-left: 22px; }
.iq-vf-summary-list li { margin: 8px 0; font-size: 18px; color: #374151; }
.iq-vf-summary-list strong { display: block; color: #111827; font-size: 18px; }
.iq-vf-summary-meta { margin: 6px 0; font-size: 18px; color: #111827; }

@media (max-width: 720px) {
  .iq-vf-choices,
  .iq-vf-choices.count-2,
  .iq-vf-choices.count-3,
  .iq-vf-choices.count-4 { grid-template-columns: 1fr; }
  .iq-vf-choice { min-height: 56px; width: 100%; font-size: 20px; }
  .iq-vf-field input[type="email"],
  .iq-vf-field input[type="text"] { font-size: 18px; }
}
