/* demo.css — stage, frame area, cursor, captions, controls */

html, body { margin: 0; height: 100%; background: #060a08; overflow: hidden; }
#root { height: 100%; }

.cv-stage { position: fixed; inset: 0; overflow: hidden; display: flex; flex-direction: column; }

/* frame area centers the [scaled UI + caption] group; controls pinned at the bottom */
.cv-framearea { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; }
.cv-sizer { position: relative; flex: 0 0 auto; }
.cv-canvas { position: absolute; left: 0; top: 0; }

/* ---- Captions (crisp overlay, not scaled) ---- */
.cv-capoverlay {
  flex: 0 0 auto; display: flex; flex-direction: column;
  align-items: center; gap: 14px; max-width: 100%;
  padding: 0 28px; text-align: center; pointer-events: none;
}
.cv-caption {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.38; letter-spacing: -.2px; opacity: 1;
  transition: opacity .4s ease;
}
@keyframes cv-capin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cv-caption.navegador { color: #20302a; font-size: 25px; font-weight: 700; max-width: 920px; }
.cv-caption.foco { color: #f2f8f4; font-size: 29px; font-weight: 700; max-width: 960px; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.cv-caption.limpio { color: #1c2c24; font-size: 24px; font-weight: 700; max-width: 900px; display: inline-flex; align-items: center; gap: 12px; }
.cv-capdot { width: 11px; height: 11px; border-radius: 50%; background: var(--cv-accent, #22c55e); box-shadow: 0 0 0 5px rgba(34,197,94,.16); flex: 0 0 auto; }

.cv-stepdots { display: flex; gap: 7px; }
.cv-stepdot { width: 7px; height: 7px; border-radius: 50%; background: rgba(20,40,30,.16); transition: .3s; }
.cv-stepdot.on { background: var(--cv-accent, #22c55e); width: 22px; border-radius: 4px; }

/* ---- Guide cursor (inside scaled canvas) ---- */
.cv-cursor { position: absolute; left: 0; top: 0; z-index: 40; pointer-events: none;
  transition: transform .9s cubic-bezier(.5,0,.2,1); will-change: transform; }
.cv-ripple { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(34,197,94,.5); animation: cv-rip .65s ease-out; }
@keyframes cv-rip { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(4); opacity: 0; } }

/* ---- Controls (outside scaled canvas) ---- */
.cv-controls {
  flex: 0 0 auto; align-self: center; margin: 0 auto 16px;
  display: flex; align-items: center; gap: 12px; z-index: 60;
  background: rgba(12,20,16,.74); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 9px 14px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.cv-cbtn { width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--cv-accent, #22c55e); color: #052e16; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: .15s; }
.cv-cbtn:hover { transform: scale(1.06); }
.cv-cbtn.ghost { background: rgba(255,255,255,.12); color: #dfeee6; font-size: 16px; }
.cv-track { display: flex; gap: 6px; align-items: center; padding: 0 4px; }
.cv-seg { width: 30px; height: 6px; border-radius: 3px; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.16); overflow: hidden; position: relative; }
.cv-seg.past { background: rgba(34,197,94,.55); }
.cv-segfill { position: absolute; inset: 0; transform-origin: left; background: #22c55e; width: 100%;
  transform: scaleX(0); animation-name: cv-fill; animation-timing-function: linear; animation-fill-mode: forwards; }
.cv-seg:not(.active) .cv-segfill { animation: none; transform: scaleX(0); }
@keyframes cv-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cv-stylechip { color: #9fb4aa; font-size: 12px; font-weight: 600; padding-left: 4px; padding-right: 6px; white-space: nowrap; }

@media (max-width: 640px) {
  .cv-stylechip { display: none; }
  .cv-seg { width: 20px; }
  .cv-caption.navegador, .cv-caption.limpio { font-size: 19px; }
  .cv-caption.foco { font-size: 22px; }
}
