/* ============================================================
 * 모네뮤직 디자인 시스템 v2
 * 주조: 하늘(sky) · 잉크: 네이비(navy) · 강조: 핑크(pink, CTA 1곳)
 * ============================================================ */
:root {
  /* Sky (primary — 브랜드 주조색, 강의실 톤) */
  --sky-50:  #F4FAFF;
  --sky-100: #EAF4FC;
  --sky-200: #D6EEFF;
  --sky-300: #BDE0FE;
  --sky-400: #8ECAE6;
  --sky-500: #5BA4CF;
  --sky-600: #3A89B5;

  /* Navy (ink — 헤드라인·본문) */
  --navy-900: #1D3557;
  --navy-800: #2C4A6E;
  --navy-700: #3D5A80;
  --navy-500: #637A96;
  --navy-400: #8EA0B8;
  --navy-300: #B8C5D6;
  --navy-200: #D6DEE9;
  --navy-100: #E8EEF6;

  /* Pink (conversion CTA only) */
  --pink-500: #E85D8A;
  --pink-600: #D34570;
  --pink-100: #FBEAF0;

  /* Neutrals */
  --paper:     #FFFFFF;
  --off-white: #FAFCFF;
  --hairline:  #E5EEF7;

  /* Semantic */
  --success: #5DAE6E;
  --error:   #E24B4A;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(29,53,87,0.06);
  --shadow-md: 0 4px 16px rgba(29,53,87,0.08);
  --shadow-lg: 0 12px 32px rgba(29,53,87,0.12);
  --shadow-pink: 0 6px 20px rgba(232,93,138,0.28);

  /* Motion */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --content-max: 680px;
  --quiz-max:    560px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--off-white);
  color: var(--navy-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss06';
}

a { color: inherit; }
button { font-family: inherit; }

/* ============================================================
 * 디버그 바 (?debug=1 로만 표시)
 * ============================================================ */
#debug-bar {
  position: fixed; top: 0; left: 0; right: 0;
  background: #1D3557;
  color: #fff;
  padding: 6px 12px;
  display: none;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  align-items: center;
  z-index: 9999;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
}
body.debug #debug-bar { display: flex; }
body.debug main { padding-top: 36px; }
#debug-bar button, #debug-bar select {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
}
#debug-bar .state {
  margin-left: auto;
  opacity: 0.7;
}

/* ============================================================
 * 진행바 (상단 고정, 얇은 라인)
 * ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--navy-100);
  z-index: 50;
  transition: opacity 0.3s var(--ease);
}
body.debug .progress { top: 36px; }
.progress.hidden { opacity: 0; }
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--sky-500);
  transition: width 0.5s var(--ease-out);
}

/* ============================================================
 * 화면 공통
 * ============================================================ */
main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  padding: 56px 24px 80px;
}
.screen.active {
  display: flex;
  flex-direction: column;
  animation: enter 0.4s var(--ease-out) both;
}
@keyframes enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes enterFromRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes enterFromLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
.screen.active.from-right { animation: enterFromRight 0.4s var(--ease-out) both; }
.screen.active.from-left  { animation: enterFromLeft  0.4s var(--ease-out) both; }

/* ============================================================
 * 인트로
 * ============================================================ */
.intro {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.intro-inner {
  width: 100%;
  max-width: var(--quiz-max);
}
.intro-chip {
  display: inline-block;
  padding: 6px 14px;
  background: var(--sky-100);
  color: var(--sky-600);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}
.intro h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy-900);
  margin-bottom: 20px;
  word-break: keep-all;
  letter-spacing: -0.5px;
}
.intro h1 em {
  font-style: normal;
  color: var(--sky-600);
  position: relative;
  display: inline-block;
}
.intro h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 8px;
  background: var(--sky-200);
  z-index: -1;
  border-radius: 2px;
}
.intro-sub {
  font-size: 16px;
  color: var(--navy-700);
  margin-bottom: 40px;
  word-break: keep-all;
}
.intro-meta {
  font-size: 13px;
  color: var(--navy-400);
  margin-bottom: 28px;
}
.intro-meta strong { color: var(--navy-700); font-weight: 700; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  background: var(--sky-500);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  box-shadow: 0 4px 16px rgba(91,164,207,0.28);
}
.btn-primary:hover {
  background: var(--sky-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91,164,207,0.38);
}
.btn-primary:active { transform: translateY(0); }

.intro-hint {
  margin-top: 16px;
  font-size: 12px;
  color: var(--navy-400);
}
.kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--paper);
  border: 1px solid var(--navy-200);
  border-bottom-width: 2px;
  border-radius: var(--r-sm);
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 11px;
  color: var(--navy-700);
}

/* ============================================================
 * 질문 화면
 * ============================================================ */
.q-screen {
  justify-content: center;
}
.q-inner {
  width: 100%;
  max-width: var(--quiz-max);
  margin: 0 auto;
}
.q-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.q-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--navy-200);
  background: var(--paper);
  color: var(--navy-700);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  flex-shrink: 0;
}
.q-back:hover {
  border-color: var(--sky-500);
  color: var(--sky-600);
  background: var(--sky-50);
}
.q-back svg { width: 16px; height: 16px; }
.q-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--sky-600);
  letter-spacing: 0.5px;
}
.q-counter .cur {
  display: inline-block;
  min-width: 16px;
  font-size: 20px;
  color: var(--navy-900);
  font-weight: 800;
}
.q-counter .sep { margin: 0 2px; opacity: 0.5; }

.q-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy-900);
  margin-bottom: 8px;
  word-break: keep-all;
  letter-spacing: -0.4px;
}
.q-sub {
  font-size: 14px;
  color: var(--navy-500);
  margin-bottom: 24px;
  word-break: keep-all;
}

.mic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: var(--sky-50);
  border: 1.5px dashed var(--sky-400);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--sky-600);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.mic-btn:hover {
  background: var(--sky-100);
  border-style: solid;
}
.mic-btn svg { width: 18px; height: 18px; }

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--paper);
  border: 1.5px solid var(--navy-200);
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  word-break: keep-all;
  line-height: 1.5;
}
.option-btn .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--navy-100);
  color: var(--navy-500);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.15s var(--ease);
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
}
.option-btn .label { flex: 1; }
.option-btn:hover {
  border-color: var(--sky-500);
  background: var(--sky-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.option-btn:hover .num {
  background: var(--sky-500);
  color: #fff;
}
.option-btn:active { transform: translateY(0); }
.option-btn.selected {
  border-color: var(--sky-500);
  background: var(--sky-50);
  color: var(--sky-600);
}
.option-btn.selected .num {
  background: var(--sky-500);
  color: #fff;
}

/* ============================================================
 * 로딩
 * ============================================================ */
.loading {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.loading-inner { max-width: 300px; width: 100%; }
.loading-bulb {
  font-size: 40px;
  margin-bottom: 12px;
  animation: pulse 1.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(91,164,207,0.3));
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.15); opacity: 1; }
}
.loading-vid {
  display: block;
  width: 360px;
  height: 360px;
  object-fit: contain;
  margin: 0 auto 16px;
  background: transparent;
  pointer-events: none;
}
@media (max-width: 480px) {
  .loading-vid { width: 300px; height: 300px; }
}
.loading-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 20px;
}
.loading-step {
  font-size: 13px;
  color: var(--navy-500);
  margin-bottom: 24px;
  min-height: 18px;
  transition: opacity 0.3s var(--ease);
}
.loading-bar {
  width: 100%;
  height: 4px;
  background: var(--navy-100);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--sky-500);
  transition: width 0.1s linear;
}

/* ============================================================
 * 결과 페이지 — 리플로우
 * ============================================================ */
.result {
  padding: 0 0 60px;
  display: none;
}
.result.active {
  display: block;
  animation: enter 0.5s var(--ease-out) both;
}
.result-hero {
  background: linear-gradient(180deg, var(--sky-100) 0%, var(--sky-200) 100%);
  padding: 60px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--sky-300);
}
.result-hero .eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255,255,255,0.6);
  color: var(--sky-600);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}
.result-hero h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--navy-900);
  margin-bottom: 16px;
  word-break: keep-all;
  letter-spacing: -0.3px;
  max-width: 420px;
  margin-left: auto; margin-right: auto;
}
.result-hero h1 .num {
  font-size: 36px;
  color: var(--sky-600);
  display: inline-block;
  font-weight: 800;
}
.result-hero .sub {
  font-size: 15px;
  color: var(--navy-700);
  line-height: 1.7;
  word-break: keep-all;
  max-width: 440px;
  margin: 0 auto;
}
.result-hero .sub strong,
.diag-body strong {
  color: var(--navy-900);
  font-weight: 800;
}

.result-body {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 0;
}

/* 진단 섹션 — 카드 아님, 연속 플로우 */
.diag {
  display: flex;
  flex-direction: column;
}
.diag-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}
.diag-item:first-child { padding-top: 0; }
.diag-item:last-child  { border-bottom: none; }
.diag-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--sky-600);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.diag-eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--sky-500);
  border-radius: 1px;
}
.diag-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
.diag-body {
  font-size: 15px;
  color: var(--navy-700);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.diag-body p { margin-bottom: 12px; }
.diag-body p:last-child { margin-bottom: 0; }

/* 전환 섹션 — ⭐ 수강생 한 마디 + combo.cta 헤드라인 + 발성의 정석 버튼 */
.cta-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px 24px 40px;  /* 진단 섹션 diag-item 간 간격(28px)과 동일 */
  text-align: center;
}
.cta-section .bible-review-card {
  text-align: left;
  margin: 0 0 24px;  /* top 0 으로 맞춰 cta-section padding-top이 gap을 결정 */
}
.cta-headline {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
  line-height: 1.4;
  word-break: keep-all;
  letter-spacing: -0.3px;
}
/* 3줄 위계: 헤딩(cta-headline) → 본문(cta-subline) → 강조(cta-warning) → 버튼 */
.cta-subline {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-500);
  line-height: 1.55;
  margin: 0 0 6px;
  word-break: keep-all;
}
.cta-warning {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.5;
  margin: 0 0 20px;
  letter-spacing: -0.1px;
  word-break: keep-all;
}
.cta-warning-price {
  color: var(--navy-400);
  text-decoration: line-through;
  font-weight: 700;
  margin: 0 2px;
}
.cta-warning-price-now {
  color: var(--navy-900);
  font-weight: 800;
}
.cta-warning-timer {
  color: var(--pink-500);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

/* 에러 상태 */
.load-state {
  padding: 80px 24px;
  text-align: center;
  color: var(--navy-700);
  max-width: var(--content-max);
  margin: 0 auto;
}
.load-state.error { color: var(--error); }
.load-state code {
  display: inline-block;
  background: var(--navy-100);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--navy-900);
  font-family: ui-monospace, Consolas, monospace;
}

/* ============================================================
 * 발성의 정석 3강 버튼 + 트립와이어 블록
 * ============================================================ */
.btn-course {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
  padding: 13px 22px;
  border-radius: var(--r-md);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  letter-spacing: -0.2px;
  background: var(--sky-500);
  color: #fff;
  border: 1px solid var(--sky-500);
}
.btn-course:hover {
  background: var(--sky-600);
  border-color: var(--sky-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-course .google-g {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: #fff;
  padding: 2px;
  border-radius: 50%;
  box-sizing: content-box;
}
.course-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--navy-400);
  text-align: center;
}
/* 진단서 24h 타이머 트립와이어 — 가운데 정렬 */
.tripwire {
  background: var(--paper);
  border: 1px solid var(--sky-300);
  border-radius: var(--r-md);
  padding: 16px 20px 18px;
  margin: 0 auto 16px;
  max-width: 360px;
  text-align: center;
}
.tripwire-badge-row {
  margin-bottom: 14px;
}
.tripwire-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  background: var(--pink-500);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  word-break: keep-all;
  line-height: 1.4;
}
/* 타이머 단독 디스플레이 — 배지에서 분리해 큰 숫자로 강조 */
.tripwire-timer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--navy-900);
}
.tripwire-timer-val {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tripwire-timer-suffix {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-500);
  letter-spacing: 0.02em;
}
.tripwire-badge-off {
  background: var(--navy-400);
}
.tripwire-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}
.price-strike {
  font-size: 14px;
  color: var(--navy-400);
  text-decoration: line-through;
  letter-spacing: -0.2px;
}
.price-now {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.5px;
  line-height: 1;
}
.price-discount {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-500);
  background: var(--pink-100);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.2px;
}
.price-note {
  display: block;
  flex-basis: 100%;
  font-size: 12px;
  color: var(--navy-500);
  margin-top: 4px;
}
.tripwire-expired .price-now {
  font-size: 22px;
  color: var(--navy-500);
}

/* 한 줄 후기 카드 — 3강 리스트 아래, CTA 위. (range, type) 12 페어 공유 */
.bible-review-card {
  margin: 0 0 24px;
  padding: 20px;
  background: #fff;
  border: 0.5px solid var(--sky-200);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 28px rgba(44, 74, 110, 0.06);
  text-align: left;
}
.bible-review-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--sky-600);
  margin-bottom: 12px;
}
.bible-review-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  margin-bottom: 14px;
}
.bible-review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sky-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--sky-600);
  grid-row: 1 / 3;
  grid-column: 1;
}
.bible-review-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  grid-column: 2 / 4;
  grid-row: 1;
  line-height: 1.2;
}
.bible-review-stars {
  font-size: 14px;
  color: #EF9F27;
  letter-spacing: 1px;
  grid-column: 2;
  grid-row: 2;
  line-height: 1.2;
}
.bible-review-date {
  font-size: 13px;
  color: var(--navy-400);
  grid-column: 3;
  grid-row: 2;
  margin-left: 6px;
}
.bible-review-quote {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--navy-700);
  font-style: normal;
  word-break: keep-all;
}
.bible-review-cite {
  display: none;
}
@media (max-width: 480px) {
  .bible-review-card { padding: 18px 18px; }
  .bible-review-quote { font-size: 15px; }
}

/* ============================================================
 * 반응형 (데스크탑)
 * ============================================================ */
@media (min-width: 720px) {
  .intro h1 { font-size: 40px; }
  .intro-sub { font-size: 17px; }
  .q-title { font-size: 32px; letter-spacing: -0.6px; }
  .q-sub { font-size: 15px; }
  .option-btn { font-size: 16px; padding: 18px 22px; }
  .result-hero { padding: 80px 32px 72px; }
  .result-hero h1 { font-size: 32px; max-width: 520px; }
  .result-hero h1 .num { font-size: 44px; }
  .result-hero .sub { font-size: 16px; max-width: 520px; }
  .result-body { padding: 64px 32px 0; }
  .diag-title { font-size: 19px; }
  .diag-body { font-size: 16px; }
  .cta-headline { font-size: 22px; }
  .cta-section { padding: 56px 24px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.active, .screen.active.from-right, .screen.active.from-left, .result.active { animation: none; }
  .loading-bulb { animation: none; }
}

/* ============================================================
 * 마이크 측정 모달 (Q3 "직접 측정하기")
 * ============================================================ */
.mic-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mic-modal.hidden { display: none; }
.mic-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(29, 53, 87, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mic-modal__card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: mic-modal-in 0.25s var(--ease-out);
}
@keyframes mic-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mic-modal__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.mic-modal__sub {
  font-size: 13px;
  color: var(--navy-500);
  margin: 0 0 20px;
  line-height: 1.5;
  word-break: keep-all;
}
.mic-modal__ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: radial-gradient(circle at 50% 50%, var(--sky-100), var(--sky-200));
  border: 3px solid var(--sky-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.mic-modal__ring.active {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 8px rgba(232, 93, 138, 0.15);
  animation: mic-pulse 1.2s ease infinite;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(232, 93, 138, 0.15); }
  50%      { box-shadow: 0 0 0 14px rgba(232, 93, 138, 0.08); }
}
.mic-modal__note {
  font-size: 28px;
  font-weight: 900;
  color: var(--navy-900);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.mic-modal__note-sub {
  font-size: 12px;
  color: var(--navy-500);
  margin-top: 6px;
  font-weight: 600;
}
.mic-modal__progress {
  width: 100%;
  height: 4px;
  background: var(--sky-100);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 18px;
}
.mic-modal__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sky-400), var(--pink-500));
  transition: width 0.25s linear;
}
.mic-modal__primary {
  display: block;
  width: 100%;
  padding: 14px 22px;
  background: var(--sky-500);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}
.mic-modal__primary:hover { background: var(--sky-600); }
.mic-modal__primary:disabled { opacity: 0.55; cursor: not-allowed; }
.mic-modal__close {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--navy-500);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.mic-modal__close:hover { color: var(--navy-900); }
.mic-modal.is-error .mic-modal__ring { border-color: var(--error); }
.mic-modal.is-error .mic-modal__note { font-size: 18px; color: var(--error); line-height: 1.3; padding: 0 10px; }

/* ============================================================
 * Floating 할인 CTA — 진단 결과 페이지 ③ 음역대 진입 시 슬라이드업
 * ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  width: calc(100vw - 32px);
  max-width: 480px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(29, 53, 87, 0.28), 0 2px 8px rgba(29, 53, 87, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s var(--ease);
  opacity: 1;
}
.floating-cta.hidden {
  transform: translateX(-50%) translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.floating-cta__close {
  position: absolute;
  top: -10px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy-900);
  border: 1px solid var(--navy-200);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-cta__close:hover { background: var(--navy-100); }
.floating-cta__left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 0;
}
.floating-cta__prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.floating-cta__price-strike {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  letter-spacing: -0.1px;
  font-variant-numeric: tabular-nums;
}
.floating-cta__price-now {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.floating-cta__timer {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-500);
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}
.floating-cta__btn {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: var(--pink-500);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: -0.1px;
  word-break: keep-all;
  transition: background 0.2s var(--ease);
  text-align: center;
}
.floating-cta__btn:hover { background: var(--pink-600); }
.floating-cta.is-expired { background: var(--navy-800); }
.floating-cta.is-expired .floating-cta__timer { color: var(--navy-400); }
.floating-cta.is-expired .floating-cta__btn { background: var(--sky-600); }
.floating-cta.is-expired .floating-cta__btn:hover { background: var(--sky-700, #2C6F94); }

@media (max-width: 480px) {
  .floating-cta { padding: 12px 14px; gap: 10px; }
  .floating-cta__price-now { font-size: 17px; }
  .floating-cta__btn { padding: 11px 12px; font-size: 12.5px; border-radius: 8px; }
  .floating-cta__timer { font-size: 10.5px; }
}
