/* ==========================================================================
   McCoy IQ Page (B2B) - Light Theme
   Design inspired by seline.so: clean, white, professional SaaS
   Minimalist with plenty of whitespace, subtle borders, calm & structured
   ========================================================================== */

/* --- Page Base (Light Theme Override) --- */
.iq-page {
  background: #fafaf9;
  color: var(--iq-dark-gray);
}


/* --- Hero --- */
.iq-hero {
  padding: 120px 0 48px;
  background: #ffffff;
  text-align: center;
}

.iq-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.iq-hero__headline {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--iq-dark-gray);
  margin-bottom: 24px;
}

.iq-hero__headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--lavender-purple), var(--azure-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.iq-hero__body {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(42, 44, 52, 0.7);
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.iq-hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.iq-hero__legal {
  font-size: 13px;
  color: var(--iq-gray);
}

.iq-hero__legal a {
  text-decoration: underline;
  color: var(--iq-gray);
}

/* Hero visual placeholder */
.iq-hero__visual {
  max-width: var(--container-max);
  margin: 60px auto 0;
  padding: 0 var(--container-padding);
}

.iq-hero__visual-inner {
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* --- Problem Section --- */
.iq-problem {
  padding: 120px 0;
  background: #fafaf9;
}

.iq-problem__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.iq-problem__text {
  max-width: 520px;
}

.iq-problem__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 20px;
}

.iq-problem__reveal {
  color: var(--iq-accent);
  font-weight: 700;
}

.iq-problem__body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(42, 44, 52, 0.7);
}

.iq-problem__visual {
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--iq-gray);
  font-size: 14px;
}

/* --- Core Idea (3 callout boxes + teaser) --- */
.iq-core {
  padding: 120px 0;
  background: #ffffff;
}

.iq-core__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.iq-core__header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.iq-core__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 16px;
}

.iq-core__sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(42, 44, 52, 0.7);
}

.iq-core__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 0.8fr;
  gap: 20px;
  align-items: stretch;
}

.iq-core__card {
  background: #fafaf9;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius);
  padding: 36px 28px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.iq-core__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.iq-core__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(128, 53, 202, 0.1), rgba(65, 179, 217, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.iq-core__card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--lavender-purple);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iq-core__card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--iq-dark-gray);
  margin-bottom: 10px;
}

.iq-core__card-body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(42, 44, 52, 0.65);
}

/* Challenge page preview image */
.iq-core__preview {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.iq-core__footnote {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(42, 44, 52, 0.6);
  text-align: center;
  margin: 0 auto 80px;
  max-width: 640px;
  width: 100%;
}

.iq-core__preview-img {
  max-width: 100%;
  width: 800px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* Card composite: shell PNG floats over autoplay video */
.iq-core__card-composite {
  position: relative;
  width: 800px;
  max-width: 100%;
  cursor: pointer;
}

.iq-core__card-shell {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.iq-core__card-video {
  position: absolute;
  left: 6%;
  top: 17%;
  width: 35%;
  height: 70%;
  object-fit: cover;
  z-index: 0;
}

/* Video placeholder spinner */
@keyframes lazy-spin {
  to { transform: rotate(360deg); }
}
.video-lazy-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(128, 53, 202, 0.06) 0%, rgba(65, 179, 217, 0.06) 100%);
}
.video-lazy-spinner::after {
  content: '';
  width: 22px;
  height: 22px;
  border: 2px solid rgba(128, 53, 202, 0.2);
  border-top-color: #8035CA;
  border-radius: 50%;
  animation: lazy-spin 0.75s linear infinite;
}
.video-lazy-spinner.hidden {
  display: none;
}
/* Hero card: full-cover */
.iq-hero-card video + .video-lazy-spinner {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Card-composite slot: match video's absolute position */
.iq-core__card-video + .video-lazy-spinner {
  position: absolute;
  left: 6%;
  top: 17%;
  width: 35%;
  height: 70%;
  z-index: 0;
  border-radius: 4px;
}

/* Build composite: not clickable (no lightbox), and carries the page-frame
   shadow itself so the rounded outline shows during pre-stages too. */
.iq-core__card-composite--build {
  cursor: default;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* ── Build animation (Approach C): page-being-built montage ─────────── */
/* 42s loop. Stages 1-2 (chat + pick) absorb 6s extra over the previous
   36s loop so each scene reads comfortably. Stages 3-7 keep their
   previous absolute durations, shifted 6s later in the loop:
   0-15% chat · 15-30% pick · 30-37% Phase A (unbranded, no video) ·
   39-47% Phase B (unbranded + video) · 48-84% Phase C (branded + video) ·
   84-100% Phase D (install flow phone overlay).                         */

/* Branded shell overlays the unbranded shell; cross-fades in at Phase C.
   Sits at z-index 1 with the unbranded shell — video shows through the
   transparent avatar slot from below.                                    */
.iq-core__card-composite--build .iq-core__card-shell--branded {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: iqBuildBranded 42s ease-in-out infinite;
}
@keyframes iqBuildBranded {
  0%, 46% { opacity: 0; }
  47.7%, 100% { opacity: 1; }
}

/* Unbranded shell: hidden during pre-stages, then stays at full opacity
   for the rest of the loop. The branded shell crossfades on TOP of it,
   so the unbranded never has to dip below opacity 1 — keeps the video
   corners masked at all times. */
.iq-core__card-composite--build .iq-core__card-shell--unbranded {
  animation: iqBuildUnbranded 42s ease-in-out infinite;
}
@keyframes iqBuildUnbranded {
  0%, 28.3% { opacity: 0; }
  31.4%, 100% { opacity: 1; }
}

/* Video: hidden until Phase B, sits BEHIND both shells (z-index 0)
   so it shows through the transparent avatar slot in either PNG.
   Border-radius matches the avatar slot's rounded corners so any
   sub-pixel edges don't leak during transitions.                    */
.iq-core__card-composite--build .iq-core__card-video,
.iq-core__card-composite--build .iq-core__card-video + .video-lazy-spinner {
  border-radius: 10%;
  animation: iqBuildVideo 42s ease-in-out infinite;
}
@keyframes iqBuildVideo {
  0%, 36.6% { opacity: 0; }
  39.1%, 100% { opacity: 1; }
}

/* Pre-stage scenes — full-cover overlays */
.iq-buildanim {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6%;
  font-family: 'Montserrat', sans-serif;
  pointer-events: none;
  opacity: 0;
}
.iq-buildanim__caption {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42, 44, 52, 0.5);
  margin-bottom: 22px;
}

/* Scene 1 — chat with McCoy AI (0-15% of 42s loop = 0-6.3s) */
.iq-buildanim--chat {
  animation: iqBuildChat 42s ease-in-out infinite;
}
@keyframes iqBuildChat {
  0% { opacity: 0; }
  3.3%, 11.7% { opacity: 1; }
  15%, 100% { opacity: 0; }
}
.iq-buildanim__bubble {
  max-width: 70%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  margin: 6px 0;
  opacity: 0;
  animation: iqBuildBubble 42s ease-in-out infinite;
}
.iq-buildanim__bubble--user {
  align-self: flex-end;
  background: #8035CA;
  color: #fff;
  animation-delay: 0s;
}
.iq-buildanim__bubble--ai {
  align-self: flex-start;
  background: #f0edfb;
  color: #2A2C34;
  animation-delay: 1.87s;
}
.iq-buildanim__bubble--user-2 {
  align-self: flex-end;
  background: #8035CA;
  color: #fff;
  animation-delay: 4.43s;
}
@keyframes iqBuildBubble {
  0% { opacity: 0; transform: translateY(8px); }
  3.3%, 11.7% { opacity: 1; transform: translateY(0); }
  15%, 100% { opacity: 0; }
}

/* Scene 2 — pick a challenge (15-30% of 42s loop = 6.3-12.6s) */
.iq-buildanim--pick {
  animation: iqBuildPick 42s ease-in-out infinite;
}
@keyframes iqBuildPick {
  0%, 13.3% { opacity: 0; }
  16.7%, 26.7% { opacity: 1; }
  30%, 100% { opacity: 0; }
}
.iq-buildanim__pick-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.iq-buildanim__pick-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 18px;
  min-height: 64px;
  border-radius: 12px;
  border: 1.5px solid rgba(42, 44, 52, 0.12);
  background: #fafaf9;
  font-size: 13px;
  font-weight: 600;
  color: #2A2C34;
  text-align: center;
  line-height: 1.35;
  transition: all 0.4s ease;
}
.iq-buildanim__pick-card--custom {
  border-style: dashed;
  background: transparent;
  color: rgba(42, 44, 52, 0.55);
}
.iq-buildanim__pick-card--custom::before {
  content: '+';
  display: inline-block;
  margin-right: 6px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(42, 44, 52, 0.45);
}
.iq-buildanim__pick-card--selected {
  border-color: #8035CA;
  background: #f0edfb;
  color: #8035CA;
  box-shadow: 0 4px 14px rgba(128, 53, 202, 0.15);
  animation: iqBuildPickSelect 42s ease-in-out infinite;
}
@keyframes iqBuildPickSelect {
  0%, 20% { transform: scale(1); }
  21.7% { transform: scale(1.06); }
  25%, 100% { transform: scale(1); }
}

/* Scene 4 (Phase D) — install-flow phone overlay (84-100% of 42s loop) */
.iq-buildanim--install {
  background: transparent;
  animation: iqBuildInstall 42s ease-in-out infinite;
}
@keyframes iqBuildInstall {
  0%, 71.7% { opacity: 0; }
  74.3%, 100% { opacity: 1; }
}
.iq-buildanim--install .iq-buildanim__phone-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.iq-buildanim--install .iq2p-phone {
  width: 220px;
  height: 440px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
@media (max-width: 720px) {
  .iq-buildanim--install .iq2p-phone {
    width: 170px;
    height: 340px;
  }
}

/* Per-stage typewriter caption strip below the composite. Five lines
   stacked absolutely; each types in via clip-path during its stage. */
.iq-core__buildcaption {
  position: relative;
  height: 44px;
  margin: 0 auto 36px;
  max-width: 800px;
  text-align: center;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--iq-dark-gray);
}
.iq-core__buildcaption__line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}
.iq-core__buildcaption__line::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1em;
  margin-left: 6px;
  background: var(--iq-dark-gray);
  vertical-align: middle;
  animation: iqCaptionCursor 0.8s steps(2) infinite;
}
@keyframes iqCaptionCursor {
  50% { opacity: 0; }
}

/* Each line owns its slice of the 42s loop. opacity gates visibility,
   clip-path drives the left-to-right typewriter reveal.              */
.iq-core__buildcaption__line--1 { animation: iqCaptionLine1 42s ease-in-out infinite; }
.iq-core__buildcaption__line--2 { animation: iqCaptionLine2 42s ease-in-out infinite; }
.iq-core__buildcaption__line--3 { animation: iqCaptionLine3 42s ease-in-out infinite; }
.iq-core__buildcaption__line--4 { animation: iqCaptionLine4 42s ease-in-out infinite; }
.iq-core__buildcaption__line--5 { animation: iqCaptionLine5 42s ease-in-out infinite; }
.iq-core__buildcaption__line--6 { animation: iqCaptionLine6 42s ease-in-out infinite; }
.iq-core__buildcaption__line--7 { animation: iqCaptionLine7 42s ease-in-out infinite; }

@keyframes iqCaptionLine1 {
  0%   { opacity: 1; clip-path: inset(0 100% 0 0); }
  5%   { clip-path: inset(0 0 0 0); }
  13.3%   { opacity: 1; clip-path: inset(0 0 0 0); }
  15%, 100% { opacity: 0; }
}
@keyframes iqCaptionLine2 {
  0%, 13.3% { opacity: 0; clip-path: inset(0 100% 0 0); }
  15% { opacity: 1; }
  20% { clip-path: inset(0 0 0 0); }
  28.3% { opacity: 1; clip-path: inset(0 0 0 0); }
  30%, 100% { opacity: 0; }
}
@keyframes iqCaptionLine3 {
  0%, 28.3% { opacity: 0; clip-path: inset(0 100% 0 0); }
  30% { opacity: 1; }
  33.1% { clip-path: inset(0 0 0 0); }
  36.6% { opacity: 1; clip-path: inset(0 0 0 0); }
  37.4%, 100% { opacity: 0; }
}
@keyframes iqCaptionLine4 {
  0%, 37.4% { opacity: 0; clip-path: inset(0 100% 0 0); }
  38.3% { opacity: 1; }
  40.9% { clip-path: inset(0 0 0 0); }
  46% { opacity: 1; clip-path: inset(0 0 0 0); }
  46.9%, 100% { opacity: 0; }
}
@keyframes iqCaptionLine5 {
  0%, 46% { opacity: 0; clip-path: inset(0 100% 0 0); }
  46.9% { opacity: 1; }
  50.3% { clip-path: inset(0 0 0 0); }
  55.4% { opacity: 1; clip-path: inset(0 0 0 0); }
  57.1%, 100% { opacity: 0; }
}
@keyframes iqCaptionLine6 {
  0%, 56.3% { opacity: 0; clip-path: inset(0 100% 0 0); }
  57.1% { opacity: 1; }
  61.4% { clip-path: inset(0 0 0 0); }
  70% { opacity: 1; clip-path: inset(0 0 0 0); }
  71.7%, 100% { opacity: 0; }
}
@keyframes iqCaptionLine7 {
  0%, 71.7% { opacity: 0; clip-path: inset(0 100% 0 0); }
  72.6% { opacity: 1; }
  76% { clip-path: inset(0 0 0 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* Paused state — applied by JS until the build composite scrolls into view */
.iq-build-paused,
.iq-build-paused * {
  animation-play-state: paused !important;
}

/* Carousel-style stage control under the build composite */
.iq-core__buildnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 80px;
  max-width: 800px;
  padding: 0 12px;
}
.iq-core__buildnav__dot {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 36px;
  height: 12px;
  min-width: 36px;
  border-radius: 999px;
  background: rgba(42, 44, 52, 0.18);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  position: relative;
}
.iq-core__buildnav__dot::before {
  /* expanded hit area for mobile (≥28px tap target) */
  content: '';
  position: absolute;
  inset: -10px -4px;
}
.iq-core__buildnav__dot:hover {
  background: rgba(42, 44, 52, 0.34);
}
.iq-core__buildnav__dot:focus-visible {
  outline: 2px solid #8035CA;
  outline-offset: 3px;
}
.iq-core__buildnav__dot.is-active {
  background: linear-gradient(90deg, #8035CA 0%, #5868d6 100%);
  box-shadow: 0 2px 8px rgba(128, 53, 202, 0.28);
  transform: scaleY(1.1);
}
@media (max-width: 720px) {
  .iq-core__buildnav { gap: 8px; margin-bottom: 24px; }
  .iq-core__buildnav__dot { width: 28px; height: 10px; min-width: 28px; }
}

/* prefers-reduced-motion: skip the animation, show final state */
@media (prefers-reduced-motion: reduce) {
  .iq-core__card-composite--build .iq-core__card-shell--unbranded,
  .iq-core__card-composite--build .iq-core__card-shell--branded,
  .iq-core__card-composite--build .iq-core__card-video,
  .iq-core__card-composite--build .iq-core__card-video + .video-lazy-spinner,
  .iq-buildanim,
  .iq-buildanim__bubble,
  .iq-buildanim__pick-card--selected,
  .iq-core__buildcaption__line,
  .iq-core__buildcaption__line::after {
    animation: none !important;
  }
  .iq-core__card-composite--build .iq-core__card-shell--unbranded {
    opacity: 0;
  }
  .iq-core__card-composite--build .iq-core__card-shell--branded {
    opacity: 1;
  }
  .iq-buildanim,
  .iq-core__buildcaption__line:not(.iq-core__buildcaption__line--7),
  .iq-core__buildnav {
    display: none;
  }
  .iq-core__buildcaption__line--7 {
    opacity: 1;
    clip-path: none;
  }
}

/* Mobile tweaks for the build animation */
@media (max-width: 720px) {
  .iq-core__buildcaption {
    height: auto;
    min-height: 40px;
    font-size: 16px;
    margin: 0 auto 24px;
    padding: 0 12px;
  }
  .iq-core__buildcaption__line {
    white-space: normal;
    line-height: 1.3;
  }
  .iq-core__buildcaption__line::after {
    width: 8px;
    margin-left: 4px;
  }
  .iq-buildanim {
    padding: 8% 6%;
  }
  .iq-buildanim__bubble {
    font-size: 12px;
    padding: 8px 12px;
    max-width: 80%;
  }
  .iq-buildanim__pick-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .iq-buildanim__pick-card {
    padding: 12px 8px;
    min-height: 56px;
    font-size: 11px;
  }
}
/* iqrm full-cover */
#iqrm-vid-el + .video-lazy-spinner {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Candidate teleprompter phone: full-cover */
.iq2p-tp-video + .video-lazy-spinner {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 3-column grid (no teaser) */
.iq-core__grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* --- How It Works (Timeline) --- */
.iq-how {
  padding: 120px 0;
  background: #fafaf9;
}

.iq-how__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.iq-how__header {
  text-align: center;
  margin-bottom: 72px;
}

.iq-how__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 12px;
}

/* --- Review Experience --- */
.iq-review {
  padding: 120px 0;
  background: #ffffff;
}

.iq-review__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.iq-review__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 20px;
}

.iq-review__body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(42, 44, 52, 0.7);
}

.iq-review__visual {
  height: auto;
  font-family: 'Inter', sans-serif;
}

/* === Responses Layered Mockup === */
.iq-rm { position: relative; font-family: 'Inter', sans-serif; display: flex; min-height: 520px; overflow: hidden; }

/* Layer 1: Mudbrick challenge card (background, decorative) */
.iq-rm__mudbrick {
  position: absolute;
  bottom: -15px;
  left: -10px;
  width: 300px;
  height: 240px;
  opacity: 0.45;
  transform: rotate(-10deg);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.iq-rm__mudbrick-img {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: 160%;
  max-width: none;
  display: block;
}

/* Layer 2: Foreground — table + video panel */
.iq-rm__foreground {
  flex: 1;
  display: flex;
  position: relative;
  z-index: 2;
  margin-left: 55px;
  margin-bottom: 20px;
  gap: 0;
}

/* Responses table card */
.iq-rm__table-card {
  width: 50%;
  flex-shrink: 0;
  background: white;
  padding: 24px 20px;
  position: relative;
  border-right: 1px solid #f0f0f0;
  z-index: 2;
}
.iq-rm__table-title { font-size: 24px; font-weight: 300; color: #1a1a2e; margin-bottom: 16px; letter-spacing: -0.3px; }
.iq-rm__table { width: 100%; }
.iq-rm__cols { display: grid; grid-template-columns: 32px 1fr 1.4fr 64px; gap: 8px; padding: 6px 4px; font-size: 9px; font-weight: 600; color: #bbb; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #eee; margin-bottom: 2px; }
.iq-rm__row { display: grid; grid-template-columns: 32px 1fr 1.4fr 64px; gap: 8px; padding: 8px 4px; align-items: center; border-bottom: 1px solid #f5f5f5; transition: background 0.3s ease; cursor: pointer; position: relative; }
.iq-rm__row.active { background: rgba(124, 58, 237, 0.06); }
.iq-rm__row.active .iq-rm__row-link { color: #7c3aed; font-weight: 500; }
.iq-rm__avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #e8e0d8, #d0c8c0); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: #888; flex-shrink: 0; }
.iq-rm__row-name { font-size: 12px; font-weight: 500; color: #1a1a2e; }
.iq-rm__row-link { font-size: 11px; color: #999; transition: color 0.3s; }
.iq-rm__row-time { font-size: 10px; color: #bbb; text-align: right; }

/* Animated cursor */
.iq-rm__cursor {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1), left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  will-change: top, left, transform;
}
.iq-rm__cursor.click {
  animation: cursorClick 0.25s ease;
}
@keyframes cursorClick {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.75); }
}

/* Video response panel */
.iq-rm__vidpanel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  min-width: 0;
  transition: opacity 0.25s ease;
}
.iq-rm__vidpanel.fading { opacity: 0; }
.iq-rm__vp-bar {
  padding: 10px 14px;
  font-size: 11px;
  color: #666;
  background: white;
  border-bottom: 1px solid #eee;
}
.iq-rm__vp-bar strong { color: #1a1a2e; }
.iq-rm__vp-label {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f3ff;
  border-bottom: 1px solid #ede9fe;
}
.iq-rm__vp-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #e8e0d8, #d0c8c0); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #777; flex-shrink: 0; }
.iq-rm__vp-sub { font-size: 10px; color: #888; display: block; }
.iq-rm__vp-label strong { font-size: 14px; color: #1a1a2e; }

/* Video area — hero size */
.iq-rm__vp-video {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.iq-rm__vp-video-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Person animation scene */
.iq-rm__person-scene { width: 100%; height: 100%; position: absolute; inset: 0; background: linear-gradient(180deg, #e8ebe0, #d0cfc8); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.iq-rm__bg-blur { position: absolute; border-radius: 50%; filter: blur(20px); opacity: 0.4; }
.iq-rm__bg-blur--1 { width: 200px; height: 200px; background: #c8d4e0; top: -40px; left: -40px; }
.iq-rm__bg-blur--2 { width: 140px; height: 140px; background: #e0d8c8; top: 40px; right: -20px; }
.iq-rm__person { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 200px; height: 320px; animation: iqRmSway 4s ease-in-out infinite; }
@keyframes iqRmSway { 0%, 100% { transform: translateX(-50%) rotate(0deg); } 30% { transform: translateX(-50%) rotate(0.3deg); } 70% { transform: translateX(-50%) rotate(-0.3deg); } }
.iq-rm__torso { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 160px; height: 170px; background: linear-gradient(160deg, #c8b8a8, #b8a898); border-radius: 80px 80px 0 0; }
.iq-rm__torso::after { content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 38px; height: 80px; background: #f0ede6; clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%); }
.iq-rm__neck { position: absolute; bottom: 155px; left: 50%; transform: translateX(-50%); width: 28px; height: 24px; background: linear-gradient(160deg, #d4956c, #c47a55); border-radius: 5px 5px 0 0; }
.iq-rm__head { position: absolute; bottom: 172px; left: 50%; transform: translateX(-50%); width: 84px; height: 98px; background: linear-gradient(160deg, #e8b08a, #d4956c); border-radius: 50% 50% 46% 46%; animation: iqRmNod 3.5s ease-in-out infinite; transform-origin: bottom center; }
@keyframes iqRmNod { 0%, 100% { transform: translateX(-50%) rotate(-0.5deg); } 25% { transform: translateX(-50%) rotate(1deg) translateY(-1px); } 60% { transform: translateX(-50%) rotate(-1deg); } 80% { transform: translateX(-50%) rotate(0.5deg) translateY(-1px); } }
.iq-rm__head::before { content: ''; position: absolute; top: -7px; left: 5px; right: 5px; height: 42px; background: #1a1008; border-radius: 50% 50% 0 0; }
.iq-rm__eyes { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); display: flex; gap: 20px; }
.iq-rm__eye { width: 7px; height: 7px; background: #2d1a0e; border-radius: 50%; animation: iqRmBlink 5s ease-in-out infinite; }
@keyframes iqRmBlink { 0%, 94%, 100% { transform: scaleY(1); } 96%, 98% { transform: scaleY(0.1); } }
.iq-rm__mouth { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: 30px; height: 12px; overflow: hidden; }
.iq-rm__mouth-shape { width: 30px; height: 18px; border-radius: 0 0 15px 15px; background: #8b3a2a; animation: iqRmSpeak 0.4s ease-in-out infinite alternate; transform-origin: top; }
@keyframes iqRmSpeak { 0% { transform: scaleY(0.15); } 100% { transform: scaleY(1); } }
.iq-rm__hand { position: absolute; right: 8px; bottom: 125px; width: 34px; height: 46px; background: linear-gradient(160deg, #e8b08a, #d4956c); border-radius: 50% 50% 40% 40%; animation: iqRmHand 2.8s ease-in-out infinite; transform-origin: bottom center; }
@keyframes iqRmHand { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(15deg) translateY(-10px); } }

/* Challenge question overlay on video */
.iq-rm__vp-question {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  padding: 10px 14px;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 10px;
  line-height: 1.5;
  backdrop-filter: blur(4px);
}

/* Video controls bar */
.iq-rm__vp-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 5px 10px;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}
.iq-rm__play { width: 16px; height: 16px; border-radius: 50%; background: white; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.iq-rm__play::after { content: ''; width: 0; height: 0; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 5px solid #1e1b4b; margin-left: 1px; }
.iq-rm__vid-time { font-size: 9px; color: rgba(255,255,255,0.8); white-space: nowrap; }
.iq-rm__progress { flex: 1; height: 2px; background: rgba(255,255,255,0.25); border-radius: 2px; overflow: hidden; }
.iq-rm__progress-fill { height: 100%; background: #7c3aed; border-radius: 2px; animation: iqRmProgress 7s linear infinite; }
@keyframes iqRmProgress { 0% { width: 0; } 100% { width: 100%; } }

/* --- Use Cases --- */
.iq-usecases {
  padding: 120px 0;
  background: #ffffff;
}

.iq-usecases__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.iq-usecases__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 48px;
  text-align: center;
}

.iq-usecases__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.iq-usecase {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius);
  padding: 40px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.iq-usecase:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.iq-usecase__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--lavender-purple);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.iq-usecase__body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(42, 44, 52, 0.7);
}

/* Challenge page thumbnails */
.iq-usecases__thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.iq-usecases__thumb {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.iq-usecases__thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.iq-usecases__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Composite card inside a thumbnail (Excel with shell + video) */
.iq-usecases__thumb .iq-core__card-composite {
  width: 100%;
  cursor: pointer;
}

.iq-usecases__thumb .iq-core__card-shell {
  box-shadow: none; /* thumbnail already has shadow */
  border-radius: 0; /* thumbnail's overflow:hidden + border-radius handles clipping */
}

/* --- Candidate Experience --- */
.iq-candidate {
  padding: 120px 0;
  background: #fafaf9;
}

.iq-candidate__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.iq-candidate__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iq-purple, #A95EFD);
  margin: 0 0 14px 0;
}

.iq-candidate__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 20px;
}

.iq-candidate__body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(42, 44, 52, 0.7);
}

.iq-candidate__visual {
  height: auto;
  border-radius: var(--border-radius-lg);
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--iq-gray);
  font-size: 14px;
  gap: 8px;
}

.iq-candidate__stat {
  font-size: 28px;
  font-weight: 700;
  color: var(--lavender-purple);
  margin-top: 8px;
}

/* --- Responder-side comparison (Section 7b) --- */
.iq-rcompare {
  padding: 100px 0 120px;
  background: #fafaf9;
}
.iq-rcompare__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.iq-rcompare__header {
  text-align: center;
  margin-bottom: 48px;
}
.iq-rcompare__headline {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--iq-dark-gray);
}
.iq-rcompare__sub {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(42, 44, 52, 0.7);
  max-width: 680px;
  margin: 0 auto;
}
.iq-rcompare__grid {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Card treatment so the comparison reads as a contained artifact
     instead of loose text on a flat gray background. */
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(28, 22, 58, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(28, 22, 58, 0.05);
  padding: 8px 32px 16px;
  overflow: hidden;
}
.iq-rcompare__row {
  display: grid;
  grid-template-columns: 1.1fr 2fr 2fr;
  align-items: start;
  gap: 28px;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.iq-rcompare__row:last-child {
  border-bottom: 0;
}
.iq-rcompare__row--head {
  padding: 16px 4px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}
.iq-rcompare__col-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.iq-rcompare__col-head--mccoy { color: #8035ca; }
.iq-rcompare__col-head--other { color: rgba(42, 44, 52, 0.45); }
.iq-rcompare__label {
  font-size: 15px;
  font-weight: 600;
  color: rgba(42, 44, 52, 0.6);
}
.iq-rcompare__mccoy {
  font-size: 16px;
  line-height: 1.5;
  color: var(--iq-dark-gray);
  /* Subtle violet tint applied via a column-stripe pseudo on the row,
     plus a left accent on the cell itself for emphasis. */
  position: relative;
  padding-left: 12px;
}
.iq-rcompare__mccoy::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: linear-gradient(180deg, #8035ca 0%, #4A31C2 100%);
  border-radius: 2px;
}
.iq-rcompare__row--head .iq-rcompare__mccoy,
.iq-rcompare__row--head .iq-rcompare__col-head--mccoy {
  padding-left: 12px;
}
.iq-rcompare__row--head .iq-rcompare__col-head--mccoy {
  position: relative;
}
.iq-rcompare__row--head .iq-rcompare__col-head--mccoy::before {
  content: '';
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 3px;
  background: linear-gradient(180deg, #8035ca 0%, #4A31C2 100%);
  border-radius: 2px;
}
.iq-rcompare__other {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(42, 44, 52, 0.65);
}
@media (max-width: 800px) {
  .iq-rcompare { padding: 70px 0 80px; }
  .iq-rcompare__headline { font-size: 26px; }
  .iq-rcompare__grid { padding: 8px 20px 12px; }
  .iq-rcompare__row--head { display: none; }
  .iq-rcompare__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 4px;
  }
  .iq-rcompare__label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
  /* Reset the desktop accent bar and use inline-label prefixes for the mobile stacked layout. */
  .iq-rcompare__mccoy { padding-left: 0; }
  .iq-rcompare__mccoy::before {
    position: static; width: auto; background: none; border-radius: 0;
    content: 'McCoy IQ: '; font-weight: 600; color: var(--lavender-purple);
  }
  .iq-rcompare__other::before { content: 'Typical async screen: '; font-weight: 600; color: rgba(42, 44, 52, 0.5); }
}

/* --- Podcast Feature (Chad & Cheese) --- */
.iq-podcast {
  padding: 88px 0;
  background: linear-gradient(180deg, #fdf6ec 0%, #f7e8c9 100%);
}

.iq-podcast__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.iq-podcast__header {
  text-align: center;
  margin-bottom: 40px;
}

.iq-podcast__pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8035ca;
  background: rgba(128, 53, 202, 0.10);
  border-radius: 50px;
  margin: 0 0 14px;
  /* It's an <h2> for SEO — strip default heading styling so it still
     reads visually as a pill. */
  line-height: 1;
}

.iq-podcast__logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.iq-podcast__logo-link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.iq-podcast__logo {
  display: block;
  height: 68px;
  width: auto;
}

.iq-podcast__meta-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.iq-podcast__meta-link:hover {
  color: #8035ca;
}

.iq-podcast__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.iq-podcast__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.iq-podcast__thumb {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.iq-podcast__thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(128, 53, 202, 0.25);
}

.iq-podcast__thumb img {
  width: 100%;
  display: block;
}

.iq-podcast__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  transition: background 0.25s ease;
}

.iq-podcast__thumb:hover .iq-podcast__overlay {
  background: rgba(0, 0, 0, 0.32);
}

.iq-podcast__play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.iq-podcast__play svg {
  width: 32px;
  height: 32px;
  margin-left: 4px; /* optical center for triangle */
}

.iq-podcast__badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 5px 11px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
}

.iq-podcast__quote-block {
  padding: 0 8px;
}

.iq-podcast__quote-mark {
  width: 36px;
  height: 28px;
  margin-bottom: 18px;
}

.iq-podcast__quote {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  color: #2a2c34;
  margin: 0;
}

.iq-podcast__lede {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8035ca;
}

@media (max-width: 768px) {
  .iq-podcast {
    padding: 64px 0;
  }
  .iq-podcast__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .iq-podcast__quote {
    font-size: 18px;
  }
  .iq-podcast__logo {
    height: 56px;
  }
}

/* --- Pricing --- */
.iq-pricing {
  padding: 120px 0;
  background: #fafaf9;
}

.iq-pricing__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.iq-pricing__header {
  text-align: center;
  margin-bottom: 48px;
}

.iq-pricing__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 12px;
}

/* --- Pricing Toggle (pill style) --- */
.iq-pricing .v2-pricing-toggle__pill {
  display: inline-flex;
  background: #eeeef0;
  border-radius: 50px;
  padding: 4px;
}

.iq-pricing .v2-pricing-toggle__option {
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  color: var(--iq-dark-gray);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
}

.iq-pricing .v2-pricing-toggle__option.active {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.iq-pricing .v2-pricing-toggle__option:hover:not(.active) {
  color: var(--lavender-purple);
}

/* --- FAQ (IQ-specific light theme overrides) --- */
.iq-faq {
  padding: 120px 0;
  background: #ffffff;
}

.iq-faq__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.iq-faq__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender-purple);
  margin-bottom: 12px;
  border: 1.5px solid var(--lavender-purple);
  border-radius: 20px;
  display: inline-block;
  padding: 6px 16px;
}

.iq-faq__headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--iq-dark-gray);
  margin-bottom: 0;
}

.iq-faq .v2-faq__item {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.iq-faq .v2-faq__question {
  color: var(--iq-dark-gray);
}

.iq-faq .v2-faq__icon {
  color: var(--iq-gray);
}

.iq-faq .v2-faq__answer-inner {
  color: rgba(42, 44, 52, 0.7);
}

/* --- Responsive (Tablet) --- */
@media (max-width: 1280px) {
  .iq-problem__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .iq-core__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .iq-core__grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .iq-candidate__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .iq-pricing__inner .v2-pricing-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }

  .iq-problem__headline,
  .iq-core__headline,
  .iq-how__headline,
  .iq-review__headline,
  .iq-usecases__headline,
  .iq-candidate__headline,
  .iq-pricing__headline,
  .iq-faq__headline {
    font-size: 36px;
  }
}

/* --- Responsive (Mobile) --- */
@media (max-width: 800px) {
  .iq-hero {
    padding: 120px 0 80px;
  }

  .iq-hero__headline {
    font-size: 38px;
  }

  .iq-hero__body {
    font-size: 17px;
  }

  .iq-hero__visual-inner {
    height: 320px;
  }

  .iq-problem__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .iq-problem__headline,
  .iq-core__headline,
  .iq-how__headline,
  .iq-review__headline,
  .iq-usecases__headline,
  .iq-candidate__headline,
  .iq-pricing__headline,
  .iq-faq__headline {
    font-size: 32px;
  }

  .iq-core__grid {
    grid-template-columns: 1fr;
  }

  .iq-core__grid--3col {
    grid-template-columns: 1fr;
  }

  .iq-review__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .iq-usecases__grid {
    grid-template-columns: 1fr;
  }

  .iq-usecases__thumbnails {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .iq-candidate__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .iq-problem__visual {
    height: 250px;
  }

  .iq-rm { flex-direction: column; min-height: auto; }
  .iq-rm__mudbrick {
    display: block;
    width: 160px;
    height: 120px;
    top: -20px;
    left: -30px;
    bottom: auto;
    opacity: 0.3;
    transform: rotate(-12deg);
    filter: blur(3px);
  }
  .iq-rm__foreground { flex-direction: column; margin-left: 0; margin-bottom: 0; margin-top: 25px; }
  .iq-rm__table-card { width: 100%; }
  .iq-rm__vidpanel { min-height: 280px; }
  .iq-rm__vp-video { min-height: 240px; }

  .iq-pricing__inner .v2-pricing-grid--4col {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .iq-pricing__inner .v2-pricing-enterprise {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    max-width: 400px;
    margin: 20px auto 0;
  }

  .iq-pricing__inner .v2-pricing-enterprise__info {
    flex: none;
  }
}

/* ==========================================================================
   Hero Carousel
   ========================================================================== */

/* Dot grid — inside scene, z-index 1 so cards (z-index 5) overlap it */
.iq-hero-dot-grid {
  position: absolute;
  left: -10px;
  top: 0px;
  display: grid;
  grid-template-columns: repeat(10, 6px);
  gap: 20px;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.2) 60%, transparent 80%);
  mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.2) 60%, transparent 80%);
}

.iq-hero-dot-grid span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(139, 130, 246, 0.65);
}

/* Scene */
.iq-hero-scene {
  position: relative;
  width: 700px;
  height: 520px;
  flex-shrink: 0;
  z-index: 1;
}

/* Cards — all same base size, positioned via transform only (compositor-accelerated) */
.iq-hero-card {
  position: absolute;
  width: 240px;
  height: 300px;
  left: 50%;
  top: 50%;
  margin-left: -120px;
  margin-top: -150px;
  border-radius: 22px;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Center position */
.iq-hero-card[data-pos="center"] {
  transform: translate(0, 0) scale(1);
  z-index: 5;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

/* Elevated after transition completes */
.iq-hero-card.elevated {
  z-index: 10;
}

/* Satellite positions — translate to offset from scene center, then scale down */
.iq-hero-card[data-pos="left-top"] {
  transform: translate(-235px, -140px) scale(0.46) rotate(-2deg);
  z-index: 5;
}

.iq-hero-card[data-pos="left-bottom"] {
  transform: translate(-250px, 90px) scale(0.5) rotate(1deg);
  z-index: 5;
}

.iq-hero-card[data-pos="right-top"] {
  transform: translate(218px, -155px) scale(0.48) rotate(2deg);
  z-index: 5;
}

.iq-hero-card[data-pos="right-mid"] {
  transform: translate(252px, 10px) scale(0.46) rotate(-1deg);
  z-index: 5;
}

.iq-hero-card[data-pos="left-mid"] {
  transform: translate(208px, 155px) scale(0.44) rotate(2deg);
  z-index: 5;
}

/* Video fill */
.iq-hero-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 22px;
}

/* Pulsing ring on center card */
@keyframes iq-hero-pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.06); opacity: 0; }
}

.iq-hero-card[data-pos="center"]::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 26px;
  border: 2.5px solid rgba(139, 130, 246, 0.6);
  animation: iq-hero-pulse-ring 1.8s ease-out infinite;
  pointer-events: none;
  z-index: 11;
}

/* Badge */
.iq-hero-card__badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 12;
}

.iq-hero-card[data-pos="center"] .iq-hero-card__badge {
  opacity: 1;
}

/* Talking wave */
.iq-hero-card__talking-wave {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 12;
}

.iq-hero-card[data-pos="center"] .iq-hero-card__talking-wave {
  opacity: 1;
}

@keyframes iq-hero-wave-bar {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

.iq-hero-card__talking-wave span {
  display: block;
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  animation: iq-hero-wave-bar 0.8s ease-in-out infinite;
}

.iq-hero-card__talking-wave span:nth-child(1) { animation-delay: 0s; }
.iq-hero-card__talking-wave span:nth-child(2) { animation-delay: 0.1s; }
.iq-hero-card__talking-wave span:nth-child(3) { animation-delay: 0.2s; }
.iq-hero-card__talking-wave span:nth-child(4) { animation-delay: 0.3s; }
.iq-hero-card__talking-wave span:nth-child(5) { animation-delay: 0.4s; }


/* Mobile */
@media (max-width: 768px) {
  .iq-hero-scene {
    transform: scale(0.55);
    transform-origin: center center;
  }
}
