body.bare-page {
  margin: 0;
  min-width: 0;
  background: #eff1f4;
  overflow-x: hidden;
}

.study-motion {
  --pointer-answer-top: 27.8%;
  --pointer-action-top: 40.2%;
  position: relative;
}

.study-motion--prototype {
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: #eff1f4;
}

.study-motion__stage {
  position: relative;
  aspect-ratio: 1425 / 891;
  overflow: hidden;
  background: #eff1f4;
}

.study-motion--prototype .study-motion__stage {
  width: min(100%, 1425px);
}

.study-motion--hero {
  display: grid;
  padding: 48px;
  overflow: visible;
  border-radius: var(--study-radius-shell);
  isolation: isolate;
  background: #eff1f4;
}

.study-motion--hero .study-motion__stage {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--study-border);
  border-radius: var(--study-radius-shell);
  background: var(--study-panel-bg);
  box-shadow: var(--study-shadow-l);
}

body.home-page .study-motion--hero .study-motion__stage,
body.home-page .study-motion--hero .curated-shell {
  border-color: rgba(255, 255, 255, 0.34);
}

.study-motion--glow .study-motion__stage,
.study-motion--glow .curated-shell {
  box-shadow:
    0 18px 28px rgb(12 19 29 / 10%),
    -52px 46px 88px rgb(250 116 45 / 20%),
    56px 46px 102px rgb(12 115 254 / 34%),
    0 -6px 84px rgb(110 186 255 / 42%);
}

.study-motion__capture {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  user-select: none;
}

.study-motion--hero .hero__screenshot {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.study-motion__pointer {
  position: absolute;
  z-index: 3;
  top: var(--pointer-answer-top);
  left: 23.7%;
  width: clamp(20px, 2.25vw, 32px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgb(12 19 29 / 32%));
  transition:
    top 420ms cubic-bezier(.22, 1, .36, 1),
    left 420ms cubic-bezier(.22, 1, .36, 1),
    opacity 160ms ease;
}

.study-motion[data-state="advance"] .study-motion__pointer {
  top: var(--pointer-action-top);
  left: 60.7%;
}

.study-motion[data-question="2"] {
  --pointer-answer-top: 29.7%;
  --pointer-action-top: 42.3%;
}

.study-motion[data-question="3"] {
  --pointer-answer-top: 31.4%;
  --pointer-action-top: 43.1%;
}

.study-motion[data-question="4"] {
  --pointer-answer-top: 27.8%;
  --pointer-action-top: 40.2%;
}

.study-motion[data-question="5"] {
  --pointer-answer-top: 33.4%;
  --pointer-action-top: 46%;
}

.study-motion[data-state="advance"] .study-motion__pointer {
  animation: study-motion-click 320ms ease-out;
}

.study-motion[data-state="checked"] .study-motion__pointer {
  opacity: 0;
}

.study-motion__controls {
  z-index: 5;
  display: flex;
  gap: 8px;
  opacity: .28;
  transition: opacity 160ms ease;
}

.study-motion--prototype .study-motion__controls {
  position: fixed;
  right: 16px;
  bottom: 16px;
}

.study-motion--hero .study-motion__controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.study-motion__controls:hover,
.study-motion__controls:focus-within {
  opacity: 1;
}

.study-motion__controls button {
  min-height: 42px;
  border: 1px solid #cdd4de;
  border-radius: 16px;
  padding: 0 14px;
  color: #0c131d;
  font: 700 13px/18px -apple-system, BlinkMacSystemFont, Inter, system-ui, sans-serif;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.study-motion__controls button:focus-visible {
  outline: 2px solid #0c73fe;
  outline-offset: 2px;
}

.study-motion__controls button:disabled {
  cursor: default;
  opacity: .58;
}

.study-motion__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes study-motion-click {
  0%,
  100% {
    scale: 1;
  }

  45% {
    scale: .78;
  }
}

@media (max-width: 760px) {
  .study-motion--hero {
    padding: 24px;
  }

  .study-motion--glow .study-motion__stage,
  .study-motion--glow .curated-shell {
    box-shadow:
      0 12px 22px rgb(12 19 29 / 10%),
      -24px 26px 52px rgb(250 116 45 / 16%),
      28px 26px 64px rgb(12 115 254 / 29%),
      0 -4px 48px rgb(110 186 255 / 34%);
  }

  .study-motion--prototype {
    min-height: 100dvh;
    place-items: start center;
  }

  .study-motion--prototype .study-motion__stage {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .study-motion--hero {
    padding: 16px;
  }

  .study-motion--prototype .study-motion__controls {
    right: 24px;
    bottom: 24px;
  }

  .study-motion--hero .study-motion__controls {
    right: 8px;
    bottom: 8px;
  }

  .study-motion__controls button {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .study-motion__pointer,
  .study-motion__controls {
    animation: none;
    transition: none;
  }
}

/* Quiet product tour: real captures, one pass, with explicit navigation. */
.study-motion__stage { aspect-ratio: 1810 / 1130; }
.study-motion__capture { position: absolute; width: 116.1326%; max-width: none; height: auto; left: -8.2873%; top: -8.8496%; transition: transform 180ms ease; transform-origin: 50% 50%; }
.study-motion[data-tour-focus="answers"] .study-motion__capture { transform: scale(1.45); transform-origin: 28% 42%; }
.study-motion[data-tour-focus="references"] .study-motion__capture { transform: scale(1.45); transform-origin: 100% 75%; }
.study-tour__caption { color: #0c131d; font: 400 15px/23px -apple-system, BlinkMacSystemFont, Inter, system-ui, sans-serif; margin: 16px auto 8px; text-align: center; }
.study-tour__controls { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.study-tour__controls button { min-height:48px; padding:8px 16px; border:1px solid #cdd4de; border-radius:16px; background:#fff; color:#0c131d; font:600 13px/18px -apple-system, BlinkMacSystemFont, Inter, system-ui, sans-serif; cursor:pointer; }
.study-tour__controls button[aria-pressed="true"] { background:#eff1f4; border-color:#0c73fe; box-shadow:inset 0 0 0 1px #0c73fe; }
.study-tour__controls button:hover { background:rgba(76,84,97,.04); }
.study-tour__controls button:focus-visible { outline:2px solid #0c73fe; outline-offset:2px; }
@media(max-width:760px) {
  .study-motion[data-tour-focus="answers"] .study-motion__capture { transform:scale(1.7); transform-origin:28% 40%; }
  .study-motion[data-tour-focus="references"] .study-motion__capture { transform:scale(1.7); transform-origin:100% 75%; }
}
@media(prefers-reduced-motion:reduce) { .study-motion__capture { transition:none; } }
.study-motion[data-reduced-motion="true"] .study-motion__capture { transition:none; }
