/* CTA · 저항 지표 · 핫스팟 */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 13px 22px;
  min-height: 46px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: 0 10px 26px -12px var(--glow);
  transition-property: transform, box-shadow, filter;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px var(--glow); filter: brightness(1.06); }
.cta:active { transform: translateY(0) scale(.985); }
.cta svg { transition: transform 180ms ease-out; }
.cta:hover svg { transform: translate(2px, -2px); }

/* ── 저항 지표 ──
   시그니처 자리는 무대에 넘겼으므로 얇고 조용하게 유지한다(설계서 §4-5). */
.gauge {
  position: fixed;
  top: 50%;
  right: clamp(14px, 2.4vw, 34px);
  z-index: 6;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px 8px;
  opacity: 0;
  animation: gauge-boot-in 520ms ease-out 760ms both;
}

@keyframes gauge-boot-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 노브 아래에서 두 번 깜박이고 영구히 사라지는 스크롤 힌트 */
.scroll-hint {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  opacity: 0;
  animation: hint-boot 2000ms ease-in-out 1100ms both;
}

@keyframes hint-boot {
  0%   { opacity: 0; transform: translateY(-2px); }
  12%  { opacity: .85; transform: translateY(2px); }
  24%  { opacity: 0; transform: translateY(-2px); }
  40%  { opacity: .85; transform: translateY(2px); }
  52%  { opacity: 0; transform: translateY(-2px); }
  100% { opacity: 0; transform: translateY(-2px); }
}

.gauge::before {
  content: "";
  position: absolute;
  top: 12px; bottom: 12px;
  width: 1px;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
}

.gauge-tick {
  position: relative;
  width: 18px; height: 18px;      /* 히트 영역 확보 */
  display: grid;
  place-items: center;
  cursor: pointer;
}
.gauge-tick::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 26%, transparent);
  transition-property: background-color, width, height;
  transition-duration: 200ms;
  transition-timing-function: ease-out;
}
.gauge-tick.is-section::after { width: 9px; height: 3px; border-radius: 2px; }
.gauge-tick:hover::after { background: var(--accent); }
.gauge-tick.is-current::after { background: var(--accent); width: 7px; height: 7px; }
.gauge-tick.is-flash::after { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 26%, transparent); }

/* 경계를 밀어붙일 때 차오르는 긴장 막대 */
.gauge-fill {
  position: absolute;
  left: 50%;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  opacity: .85;
  pointer-events: none;
}

.gauge-knob {
  position: absolute;
  left: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 70%, transparent);
  pointer-events: none;
}


@media (max-width: 767px) {
  .gauge {
    top: auto; bottom: 10px; right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    gap: 0;
    padding: 4px 8px;
  }
  .gauge::before { top: 50%; bottom: auto; left: 14px; right: 14px; width: auto; height: 1px; }
  .gauge-fill, .gauge-knob { display: none; }

  /* 터치에서는 제품 단위 4개만 남기고 히트 영역을 44px로 넓힌다 */
  .gauge-tick[data-beat="1"], .gauge-tick[data-beat="2"] { display: none; }
  .gauge-tick { width: 44px; height: 44px; }
  .gauge-tick.is-current::after { width: 9px; height: 9px; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cta:hover { transform: none; }
  .gauge { opacity: 1; animation: none; }
  .scroll-hint { display: none; }
}
