/* The stakes version of the first screen (server/experiments.js): the subhead, the proof line and the quick question card. */

.hero-sub {
  font-family: var(--font-ui);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  color: var(--encore-midnight);
  margin: 0 0 10px;
  max-width: 34em;
}

.scan-proof {
  margin: 10px 0 0;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--encore-midnight);
  opacity: 0.82;
}

/* The quick question card. The base styles are the last frame: the agent is at the picture puzzle. */
.qq {
  margin: 0;
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 520px;
}

.qq-stage {
  position: relative;
  aspect-ratio: 16 / 11;
  width: 100%;
  border-radius: 14px;
  background: var(--encore-white);
  border: 1px solid var(--encore-hairline);
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(20, 20, 20, 0.35);
}

.qq-win {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.qq-top {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: var(--encore-buttercream);
  border-bottom: 1px solid var(--encore-hairline);
}

.qq-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--encore-hairline);
  display: block;
}

.qq-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--encore-midnight);
  opacity: 0.7;
}

.qq-page {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qq-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qq-brand {
  width: 46px;
  height: 12px;
  border-radius: 4px;
  background: var(--encore-midnight);
  flex: none;
}

.qq-field {
  flex: 1;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--encore-hairline);
  background: var(--encore-white);
  position: relative;
  overflow: hidden;
}

.qq-typed {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: var(--encore-buttercream-warm);
}

.qq-btn {
  font-family: var(--font-ui);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--encore-midnight);
  color: var(--encore-white);
  flex: none;
  transition: background-color 0.15s;
}

.qq-lines {
  display: grid;
  gap: 6px;
}

.qq-lines span {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--encore-hairline);
  width: 92%;
}

.qq-lines .qq-short {
  width: 58%;
}

.qq-puzzle {
  margin-top: auto;
  border: 1px solid var(--encore-hairline);
  border-radius: 10px;
  padding: 10px;
  background: var(--encore-buttercream);
}

.qq-q {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--encore-midnight);
}

.qq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.qq-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--encore-white);
  border: 1px solid var(--encore-hairline);
}

.qq-cell.is-on {
  background: var(--encore-izmir-blue);
  border-color: var(--encore-izmir-blue);
}

.qq-cursor {
  position: absolute;
  left: 50%;
  top: 66%;
  width: 26px;
  height: 26px;
  pointer-events: none;
  z-index: 2;
  transform: translate(-4px, -4px);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.qq-cursor svg {
  display: block;
}

.qq-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--encore-buzz-pink);
  color: var(--encore-white);
  opacity: 1;
}

.qq-cap {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  color: var(--encore-midnight);
}

.qq-cap b {
  font-weight: 700;
}

.qq-sub {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  opacity: 0.8;
}

/* The motion. One loop of ten seconds: the agent searches, clicks sign in, reaches the puzzle and stays there. */
@media (prefers-reduced-motion: no-preference) {
  .qq-cursor {
    animation: qq-move 10s ease-in-out infinite;
  }

  .qq-typed {
    animation: qq-type 10s steps(10, end) infinite;
  }

  .qq-btn {
    animation: qq-press 10s linear infinite;
  }

  .qq-puzzle {
    animation: qq-show 10s linear infinite;
  }

  .qq-tag {
    animation: qq-tag 10s linear infinite;
  }

  .qq-cell.is-on {
    animation: qq-cell 10s linear infinite;
  }
}

@keyframes qq-move {
  0% { left: 84%; top: 90%; }
  14% { left: 40%; top: 27%; }
  27% { left: 40%; top: 27%; }
  42% { left: 88%; top: 16%; }
  50% { left: 88%; top: 16%; }
  58% { left: 50%; top: 66%; }
  72% { left: 50%; top: 66%; }
  78% { left: 53%; top: 68%; }
  84% { left: 47%; top: 64%; }
  90% { left: 50%; top: 66%; }
  100% { left: 84%; top: 90%; }
}

@keyframes qq-type {
  0%, 12% { width: 0%; }
  26%, 100% { width: 100%; }
}

@keyframes qq-press {
  0%, 46% { background-color: var(--encore-midnight); }
  48%, 52% { background-color: var(--encore-izmir-blue); }
  56%, 100% { background-color: var(--encore-midnight); }
}

@keyframes qq-show {
  0%, 54% { opacity: 0; }
  60%, 100% { opacity: 1; }
}

@keyframes qq-tag {
  0%, 80% { opacity: 0; transform: translateY(4px); }
  86%, 96% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(4px); }
}

@keyframes qq-cell {
  0%, 100% { background-color: var(--encore-izmir-blue); }
  50% { background-color: var(--encore-white); }
}

@media (max-width: 720px) {
  .qq {
    max-width: 100%;
  }
}
