/* ==========================================================================
   SignalsLab Review (review-space.html and request.html): the page for the
   application and its request form. The hero carries a miniature of the
   application that moves on its own: stage bars fill one after another, the
   vote keys light up, the saved dot breathes. Square, like the rest of the
   site. Motion stops under prefers-reduced-motion.
   ========================================================================== */

.hero-actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-top: var(--space-5); }
.rv-note { font-size: 0.8125rem; color: color-mix(in srgb, var(--color-text) 60%, transparent); }

.rv-demo { margin-top: var(--space-7); }
.rv-win {
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  box-shadow: 0 18px 50px -30px color-mix(in srgb, var(--color-text) 50%, transparent);
  font-size: 0.75rem;
  color: var(--color-text);
}
.rv-titlebar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--color-divider); background: var(--color-bg); }
.rv-titlebar i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-neutral-400); }
.rv-titlebar i:nth-child(1) { background: #e5705f; } .rv-titlebar i:nth-child(2) { background: #e3b64f; } .rv-titlebar i:nth-child(3) { background: #6cc46a; }
.rv-titlebar b { margin-left: 8px; padding: 2px 6px; background: var(--color-accent); color: #fff; font-size: 0.6875rem; }
.rv-titlebar span { font-weight: 600; }
.rv-saved { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.rv-saved u { width: 8px; height: 8px; border-radius: 50%; background: #3f9f5c; text-decoration: none; animation: rv-pulse 2.4s var(--ease) infinite; }

.rv-body { display: grid; grid-template-columns: 170px 1fr; min-height: 300px; }
.rv-rail { border-right: 1px solid var(--color-divider); padding: 10px 0; background: var(--color-bg); }
.rv-rail > div { padding: 4px 14px; }
.rv-sec { margin-top: 8px; font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 50%, transparent); }
.rv-stage { display: grid; grid-template-columns: 1fr; gap: 3px; }
.rv-stage i { display: block; height: 3px; background: color-mix(in srgb, var(--color-text) 10%, transparent); }
.rv-stage i b { display: block; height: 100%; width: 0; background: var(--color-accent); animation: rv-fill 9s var(--ease) infinite; }
.rv-stage.s2 i b { animation-delay: 2.2s; } .rv-stage.s3 i b { animation-delay: 4.4s; } .rv-stage.s4 i b { animation-delay: 6.6s; }

.rv-main { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.rv-vote { display: flex; gap: 6px; align-items: center; }
.rv-vote span { padding: 4px 12px; color: #fff; font-weight: 600; opacity: 0.55; transform: translateY(0); animation: rv-key 9s var(--ease) infinite; }
.rv-vote .y { background: #2f8a4f; } .rv-vote .n { background: #c0392b; animation-delay: 3s; } .rv-vote .m { background: #b7791f; animation-delay: 6s; }
.rv-vote em { margin-left: auto; font-style: normal; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.rv-card { border: 1px solid var(--color-divider); background: var(--color-bg); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.rv-line { height: 7px; background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.rv-line.w70 { width: 70%; height: 10px; background: color-mix(in srgb, var(--color-text) 35%, transparent); } .rv-line.w95 { width: 95%; } .rv-line.w85 { width: 85%; } .rv-line.w90 { width: 90%; } .rv-line.w60 { width: 60%; }
.rv-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-pills span { padding: 2px 8px; border: 1px solid var(--color-divider); color: color-mix(in srgb, var(--color-text) 65%, transparent); }

@keyframes rv-fill { 0% { width: 0; } 22% { width: 100%; } 90% { width: 100%; } 100% { width: 100%; } }
@keyframes rv-key { 0%, 25% { opacity: 1; transform: translateY(-1px); box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent); } 33%, 100% { opacity: 0.55; transform: translateY(0); } }
@keyframes rv-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.45; } }

.rv-form { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--color-divider); background: var(--color-surface); }
.rv-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.rv-form .rv-input { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.rv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.rv-form-actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .rv-form-row { grid-template-columns: 1fr; }
  .rv-body { grid-template-columns: 1fr; }
  .rv-rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-stage i b { width: 100%; animation: none; }
  .rv-vote span { animation: none; opacity: 1; }
  .rv-saved u { animation: none; }
}

.rv-input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--color-divider);
  border-radius: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}
.rv-input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
