:root {
  --color-primary: #E73349;
  --color-primary-hover: #C92A3D;
  --color-accent: #FEE500;
  --color-positive: #12C385;
  --bg-base: #FFF6F1;
  --bg-deep: #FDEAE0;
  --bg-card: #FFFFFF;
  --bg-dark: #1A1A1A;
  --bg-dark-2: #232323;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-tertiary: #8A7B72;
  --text-on-dark: #FAFAFA;
  --text-on-dark-muted: #A8A8A8;
  --border-subtle: #EAD9CF;
  --border-strong: #1A1A1A;

  --font-display: "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --font-body: "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --font-serif: "Gowun Batang", "Pretendard Variable", serif;
  --font-accent: "Do Hyeon", "Pretendard Variable", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.01em;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============ TOP PERSONA SWITCHER (dev/demo) ============ */
.persona-bar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(26,26,26,0.95);
  color: var(--text-on-dark);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #2a2a2a;
}
.persona-bar__inner {
  max-width: 1180px; margin: 0 auto;
  padding: 10px 24px;
  display: flex; align-items: center; gap: 16px;
  font-size: 12px;
}
.persona-bar__label {
  color: var(--text-on-dark-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  flex-shrink: 0;
}
.persona-bar__tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.persona-bar__tab {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #cfcfcf;
  background: transparent;
  border: 1px solid #3a3a3a;
  transition: all .15s ease;
  white-space: nowrap;
}
.persona-bar__tab:hover { color: white; border-color: #5a5a5a; }
.persona-bar__tab--active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.persona-bar__id {
  margin-left: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--text-on-dark-muted);
}

/* ============ LAYOUT ============ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--deep { background: var(--bg-deep); }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 120px;
  background:
    radial-gradient(80% 60% at 80% 0%, #FFE0D0 0%, transparent 60%),
    radial-gradient(60% 50% at 0% 100%, #FFD9C9 0%, transparent 55%),
    var(--bg-base);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(26,26,26,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 2px 0 rgba(26,26,26,0.04);
  margin-bottom: 24px;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero__headline em {
  font-style: normal;
  color: var(--color-primary);
  position: relative;
  white-space: nowrap;
}
.hero__subcopy {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 16px;
}

/* hero visual = stylized chat composition (NOT branded UI) */
.hero__visual {
  position: relative;
  padding: 28px;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 60px -30px rgba(122,40,40,0.25),
              0 2px 0 rgba(26,26,26,0.04);
  transform: rotate(-1deg);
}
.hero__visual::after {
  content: none;
}

/* 히어로 비주얼이 영상(iframe)일 때 — 흰 카드/회전/패딩 제거하고 다크 16:9 카드로 */
.hero__visual--video {
  padding: 0;
  border: none;
  background: #0a0a0a;
  transform: none;
  overflow: hidden;
}
.hero-video {
  position: relative;
  width: 100%;
  /* 16:9(56.25%) + 하단 컨트롤바 높이(≈48px) 만큼 더 높게 잡아야
     내부 Stage 가 캔버스를 '폭 기준'으로 키워 좌우 검은 여백이 사라진다. */
  height: 0;
  padding-bottom: calc(56.25% + 48px);
  /* iframe 로드(React+Babel 트랜스파일) 전까지 포스터 노출.
     포스터 이미지는 페르소나별로 HeroVideoVisual 이 인라인 background-image 로 지정. */
  background-color: #0a0a0a;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.hero-video__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
/* 전체화면 버튼 — 영상 우상단 플로팅 */
.hero-video__expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(20,20,20,0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.hero-video__expand:hover {
  background: rgba(20,20,20,0.8);
  border-color: rgba(255,255,255,0.4);
}
.hero-video__expand:active { transform: translateY(1px); }
.bubble-stack { display: flex; flex-direction: column; gap: 10px; }
.bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  background: #F2EEEA;
  color: var(--text-primary);
  align-self: flex-start;
  border: 1px solid rgba(26,26,26,0.04);
}
.bubble--out {
  align-self: flex-end;
  background: var(--color-accent);
  color: var(--text-primary);
  border-color: rgba(26,26,26,0.06);
}
.bubble--sys {
  align-self: center;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 12px;
  border: none;
  padding: 4px 8px;
}
.bubble__meta {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(231,51,73,0.5),
              inset 0 -2px 0 rgba(0,0,0,0.15);
}
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--text-primary); color: white; }
.btn--ghost-dark {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid #4a4a4a;
}
.btn--ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: #6a6a6a; }
.btn--sm { height: 40px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn--lg { height: 60px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn--block { width: 100%; }

/* ============ Hero visuals — persona-specific bubble & montage ============ */

/* ── Chat-style visual (personas 1 & 3) ── */
.hc-stack {
  display: flex; flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}
.hc-row { display: flex; flex-direction: column; gap: 2px; }
.hc-row--in { align-items: flex-start; }
.hc-row--out { align-items: flex-end; }
.hc-line {
  display: flex; align-items: flex-end; gap: 6px;
  max-width: 100%;
}
.hc-row--out .hc-line { flex-direction: row-reverse; }

.hc-who {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 0 4px;
}

.hc-bub {
  max-width: 92%;
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.42;
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  position: relative;
  animation: hcin .42s cubic-bezier(.2,.7,.3,1.1) both;
}
@keyframes hcin {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.hc-bub--in {
  align-self: flex-start;
  border-radius: 4px 14px 14px 14px;
}
.hc-bub--out {
  align-self: flex-end;
  background: var(--color-accent);
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.05);
  border-radius: 14px 4px 14px 14px;
}
.hc-time {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
  padding-bottom: 2px;
  font-variant-numeric: tabular-nums;
}

/* Link card variant */
.hc-bub--link {
  padding: 10px 12px;
  background: white;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.hc-link__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent), #FFC400);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.hc-link__title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.hc-link__sub {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 2px;
}

/* Typing indicator */
.hc-bub--typing {
  display: inline-flex; gap: 4px;
  padding: 12px 16px;
  background: white;
  border-radius: 14px 4px 14px 14px;
  align-self: flex-end;
  width: auto;
  max-width: 70px;
}
.hc-bub--typing span {
  width: 6px; height: 6px;
  background: var(--text-tertiary);
  border-radius: 50%;
  animation: hctype 1.2s ease-in-out infinite;
}
.hc-bub--typing span:nth-child(2) { animation-delay: .15s; }
.hc-bub--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hctype {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* Gray narration / note */
.hc-note {
  align-self: center;
  font-style: italic;
  font-size: 11.5px;
  color: var(--text-tertiary);
  padding: 4px 10px;
  margin-top: 2px;
}

/* Bottom caption — pinned to the bottom of the chat */
.hc-caption {
  margin-top: 10px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(231,51,73,0.10), rgba(231,51,73,0.04));
  border: 1px dashed rgba(231,51,73,0.35);
  border-radius: 10px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12.5px;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ── Montage-style visual (persona 2) ── */
.hm-stack {
  display: flex; flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  position: relative;
}
.hm-counter {
  display: flex; align-items: center;
  gap: 6px; flex-wrap: wrap;
  padding: 6px 10px;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  align-self: flex-end;
  box-shadow: 0 2px 0 rgba(26,26,26,0.04);
}
.hm-counter__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.hm-counter__pill {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(231,51,73,0.08);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Spreadsheet — Excel-style table for persona 2 */
.hm-sheet {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(26,26,26,0.04);
}
.hm-sheet__row {
  display: grid;
  grid-template-columns: 22px 56px 1fr 1fr;
  border-top: 1px solid var(--border-subtle);
}
.hm-sheet__row:first-child { border-top: 0; }
.hm-sheet__row--head {
  background: #F0EDE9;
  color: var(--text-secondary);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: -0.01em;
}
.hm-sheet__row--active { background: rgba(254, 229, 0, 0.10); }
.hm-sheet__cell {
  padding: 3px 6px;
  border-left: 1px solid var(--border-subtle);
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.hm-sheet__cell--num {
  border-left: 0;
  background: #F8F5F1;
  color: var(--text-tertiary);
  text-align: center;
  font-weight: 600;
}
.hm-sheet__cell--cursor {
  background: rgba(254, 229, 0, 0.55);
  box-shadow: inset 0 0 0 2px var(--color-primary);
  font-weight: 700;
  color: var(--text-primary);
}
.hm-sheet__cell--future {
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.hm-cursor {
  display: inline-block;
  margin-left: 1px;
  color: var(--color-primary);
  font-weight: 700;
  animation: hmblink 1s steps(1, end) infinite;
}
@keyframes hmblink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hm-narration {
  align-self: center;
  font-style: italic;
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 2px 12px;
  text-align: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--color-primary);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.section__sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ============ EMPATHY ============ */
.empathy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 880px) {
  .empathy__grid { grid-template-columns: 1fr; }
}
.empathy-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 28px 24px 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.empathy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -24px rgba(122,40,40,0.18);
}
.empathy-card__quote {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}
.empathy-card__mark {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.7;
  color: var(--color-primary);
  opacity: 0.85;
}
.empathy-card__speaker {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.empathy-card__speaker-dash {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 14px;
}

/* ============ SOLUTION PLAYER (Section C) ============ */
.player-wrap { position: relative; overflow: hidden; }
.player-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 40% at 20% 0%, rgba(231,51,73,0.18) 0%, transparent 60%),
    radial-gradient(40% 30% at 90% 100%, rgba(254,229,0,0.08) 0%, transparent 60%);
  pointer-events: none;
}
/* Player — single column (left tabs removed; module switching lives in CardsSection) */
.player__intro {
  max-width: 720px;
}
.player__intro .section__sub { color: var(--text-on-dark-muted); }

.player {
  position: relative;
  display: block;
  max-width: 1040px;
  margin: 40px auto 0;
  background: var(--bg-dark-2);
  border: 1px solid #2c2c2c;
  border-radius: var(--r-xl);
  padding: 28px;
}
@media (max-width: 720px) {
  .player { padding: 18px; border-radius: var(--r-lg); margin-top: 28px; }
}

.player__stage {
  display: flex; flex-direction: column; min-width: 0;
}
.player__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.player__nowtag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(254,229,0,0.08);
  border: 1px solid rgba(254,229,0,0.22);
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.player__nowtag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(231,51,73,0.6);
  animation: nowtag-pulse 1.6s ease-out infinite;
}
@keyframes nowtag-pulse {
  0% { box-shadow: 0 0 0 0 rgba(231,51,73,0.55); }
  70% { box-shadow: 0 0 0 6px rgba(231,51,73,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,51,73,0); }
}
.player__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  color: white;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.player__desc {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  margin: 0;
  max-width: 480px;
}
.player__chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(254,229,0,0.08);
  border: 1px solid rgba(254,229,0,0.2);
  padding: 5px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.anim-slot {
  position: relative;
  /* 16:9 캔버스 + 하단 플레이백바(≈48px) 공간 — hero-video 와 동일 방식.
     이래야 내부 Stage 가 캔버스를 '폭 기준'으로 키워 좌우 검은 여백이 없다. */
  height: 0;
  padding-bottom: calc(56.25% + 48px);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 14px),
    #0E0E0E;
  border: 2px dashed #3a3a3a;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: opacity .25s ease;
}
.anim-slot--fading { opacity: 0; }
/* 솔루션 시연 애니메이션 iframe (solution_anim/) — 슬롯을 가득 채움 */
.anim-slot__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}
/* 전체화면 버튼 — 슬롯 우상단 플로팅 (hero-video__expand 와 동일 룩) */
.anim-slot__expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(20,20,20,0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.anim-slot__expand:hover {
  background: rgba(20,20,20,0.8);
  border-color: rgba(255,255,255,0.4);
}
.anim-slot__expand:active { transform: translateY(1px); }
@media (max-width: 720px) {
  /* 새 시연 애니메이션은 16:9 가로형(1920×1080)이라 모바일에서도 16:9 유지
     (4:5 로 두면 위아래 검은 여백만 커진다). */
  .anim-slot { border-radius: var(--r-md); border-width: 1px; }
}
.anim-slot__inner {
  text-align: center;
  padding: 24px;
  color: var(--text-on-dark-muted);
}
.anim-slot__key {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  background: rgba(254,229,0,0.08);
  border: 1px solid rgba(254,229,0,0.2);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 16px;
}
.anim-slot__title {
  font-family: var(--font-accent);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
  color: white;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.anim-slot__hint {
  font-size: 13px;
  color: #6f6f6f;
  margin: 0;
}

.player__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 640px) {
  .player__footer { flex-direction: column; align-items: stretch; }
}
.player__progress { display: flex; gap: 6px; }
.player__progress span {
  width: 18px; height: 3px; border-radius: 2px;
  background: #3a3a3a; transition: background .2s, width .2s;
}
.player__progress span.active { background: var(--color-primary); width: 28px; }

/* ============ CARDS (Section D) ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }

.sol-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-align: left;
}
.sol-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -28px rgba(122,40,40,0.22);
  border-color: rgba(231,51,73,0.4);
}
.sol-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-deep);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.sol-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.sol-card__pro {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--bg-deep);
  padding: 2px 8px;
  border-radius: 999px;
}
.sol-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}
/* Primary CTA on cards — this is the only entry point to PlayerSection module switching */
.sol-card__cta-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 12px 14px;
  background: var(--text-primary);
  color: white;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background .15s ease, transform .12s ease;
}
.sol-card__cta-primary:hover:not(:disabled) {
  background: var(--color-primary);
  transform: translateY(-1px);
}
.sol-card__cta-primary:disabled {
  background: var(--bg-deep);
  color: var(--color-primary);
  cursor: default;
}
/* .sol-card__cta-sub 제거됨 — 카드별 "이 모듈 무료로 시작하기" 보조 CTA 의도적 폐기. */

/* Active card — currently being demoed in PlayerSection above */
.sol-card--active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), 0 20px 40px -24px rgba(231,51,73,0.28);
}
.sol-card--active:hover { transform: none; }
.sol-card__nowtag {
  position: absolute;
  top: -10px; right: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: white;
  background: var(--color-primary);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(231,51,73,0.5);
}
.sol-card__nowtag-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: nowtag-pulse 1.6s ease-out infinite;
}

/* ============ FINAL CTA (Section E) ============ */
.final {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: 0;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 50% 0%, rgba(231,51,73,0.22) 0%, transparent 60%),
    radial-gradient(30% 40% at 100% 100%, rgba(254,229,0,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.final__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 120px 0;
}
@media (max-width: 880px) {
  .final__inner { grid-template-columns: 1fr; gap: 36px; padding: 80px 0; }
}
.final__headline em {
  font-style: normal;
  color: var(--color-primary);
}
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.final__closing {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  margin: 0 0 32px;
  max-width: 480px;
}
.final__panel {
  background: var(--bg-dark-2);
  border: 1px solid #2c2c2c;
  border-radius: var(--r-lg);
  padding: 24px;
}
.final__gift {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(254,229,0,0.18), rgba(254,229,0,0.06));
  border: 1px dashed rgba(254,229,0,0.4);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.final__panel-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 14px;
}
.final__check-list {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.final__check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: #e3e3e3;
}
.final__check-list svg {
  flex-shrink: 0; color: var(--color-positive);
  margin-top: 2px;
}

/* ============ FOOTER ============ */
.foot {
  padding: 32px 0 48px;
  font-size: 12px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-base);
}
.foot__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============ CHECKOUT MODAL ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,15,15,0.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: var(--bg-base);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
  animation: rise .25s cubic-bezier(.2,.7,.3,1.1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal__head {
  padding: 28px 32px 16px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.modal__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background .15s;
}
.modal__close:hover { background: var(--bg-deep); }
.modal__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.modal__sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}
.modal__plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 32px 32px;
}
@media (max-width: 700px) {
  .modal__plans { grid-template-columns: 1fr; padding: 16px 20px 24px; }
  .modal__head { padding: 24px 20px 12px; }
  .modal__title { font-size: 22px; }
  .modal__sub { font-size: 13px; }
  .plan { padding: 20px 18px; gap: 14px; }
  .plan__price { font-size: 36px; }
}
.plan {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.plan--pro {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
}
.plan--pro .plan__feat { color: #e3e3e3; }
.plan__badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--text-primary);
}
.plan__name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}
.plan--pro .plan__name { color: var(--color-accent); }
.plan__price {
  font-family: var(--font-accent);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
}
.plan__price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-left: 6px;
}
.plan--pro .plan__price small { color: var(--text-on-dark-muted); }
.plan__feats {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.plan__feat {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.plan__feat svg { flex-shrink: 0; color: var(--color-positive); margin-top: 3px; }
.plan__cta { margin-top: auto; }

/* ============ ANIM REVEAL ============ */
@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: reveal .6s cubic-bezier(.2,.7,.3,1) both; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .15s; }
.reveal-3 { animation-delay: .25s; }
.reveal-4 { animation-delay: .35s; }

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble { animation: bubble-in .5s cubic-bezier(.2,.7,.3,1.1) both; }
.bubble:nth-child(1) { animation-delay: .2s; }
.bubble:nth-child(2) { animation-delay: .5s; }
.bubble:nth-child(3) { animation-delay: .8s; }
.bubble:nth-child(4) { animation-delay: 1.1s; }
.bubble:nth-child(5) { animation-delay: 1.4s; }

@keyframes fadeSlot {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-slot__inner { animation: fadeSlot .35s cubic-bezier(.2,.7,.3,1) both; }

/* ============ BETA SIGN-UP MODAL ============ */
.modal--beta { max-width: 640px; }
.modal__close--floating {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.beta-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.beta-reward {
  margin: 0 32px 22px;
  padding: 18px;
  /* 연한 카카오 옐로우 쿠폰 카드 — 밝고 따뜻하게 */
  background: linear-gradient(135deg, #FFFDF2 0%, #FFF3BF 100%);
  border: 1px solid #FBE08A;
  border-radius: var(--r-md);
  color: var(--text-primary);
}
.beta-reward__title {
  font-size: 12px;
  letter-spacing: 0.01em;
  color: #8A6D00;
  font-weight: 800;
  margin-bottom: 12px;
}
.beta-reward__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* 혜택 한 줄 = 흰 카드 + 아이콘 + (제목/설명) */
.beta-reward__item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.beta-reward__ic {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 6px -2px rgba(254,229,0,0.6);
}
.beta-reward__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.beta-reward__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.beta-reward__desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.beta-reward--done {
  margin: 18px 0 20px;
  text-align: left;
}

.beta-form { padding: 0 32px 32px; }

.beta-field { margin-bottom: 24px; position: relative; }
.beta-field__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding: 0;
}
.beta-field__hint {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-left: 6px;
}
.beta-field__req {
  color: var(--color-primary);
  margin-left: 2px;
  font-weight: 700;
}
.beta-field__counter {
  position: absolute;
  right: 0;
  bottom: -18px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.beta-field__error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
}

.beta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.beta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.beta-chip:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.beta-chip:active { transform: translateY(1px); }
.beta-chip--on.beta-chip--like {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--text-primary);
  font-weight: 700;
}
.beta-chip--on.beta-chip--skip {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-on-dark);
  font-weight: 700;
}

.beta-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.beta-input::placeholder { color: var(--text-tertiary); }
.beta-input:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(231, 51, 73, 0.12);
}
.beta-input--textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}
.beta-input--error {
  border-color: var(--color-primary);
}
.beta-input--error:focus {
  box-shadow: 0 0 0 3px rgba(231, 51, 73, 0.2);
}

.beta-form__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.beta-form__actions .btn--primary {
  /* btn--lg + btn--block 이 이미 적용되어 있어 충분한 높이/너비를 가짐 */
  letter-spacing: -0.01em;
}
.beta-form__cancel {
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-tertiary);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.14);
  text-underline-offset: 4px;
  transition: color .15s, text-decoration-color .15s;
  font-family: inherit;
}
.beta-form__cancel:hover {
  color: var(--text-secondary);
  text-decoration-color: currentColor;
}

.beta-form__privacy {
  font-size: 11.5px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 14px;
  line-height: 1.55;
}

/* ── Survey toggle (스타벅스 기프티콘 유도 카드) ── */
.beta-survey-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #FFF8DC 0%, #FFE978 100%);
  border: 1.5px solid var(--color-accent);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  transition: transform .12s, box-shadow .18s, border-color .15s;
  font-family: inherit;
}
.beta-survey-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(184, 130, 0, 0.45);
  border-color: #E5C800;
}
.beta-survey-toggle:active { transform: translateY(0); }
.beta-survey-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 51, 73, 0.22);
}
.beta-survey-toggle--on {
  background: var(--bg-card);
  border-color: var(--text-primary);
  border-style: dashed;
}

.beta-survey-toggle__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.15);
}
.beta-survey-toggle__copy {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}
.beta-survey-toggle__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.beta-survey-toggle__title strong {
  font-weight: 800;
  color: var(--color-primary);
}
.beta-survey-toggle__sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.beta-survey-toggle__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  background: white;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
}
.beta-survey-toggle__chevron {
  font-size: 12px;
  line-height: 1;
  display: inline-block;
}

/* ── Survey panel ── */
.beta-survey {
  margin-bottom: 4px;
  padding-bottom: 4px;
  animation: betaSurveyIn .25s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes betaSurveyIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.beta-reward__item--bonus {
  border-top: 1px dashed rgba(254, 229, 0, 0.35);
  padding-top: 8px;
  margin-top: 2px;
}
.beta-done__note {
  font-size: 11.5px;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin: -4px 0 16px;
}

.beta-done {
  padding: 28px 32px 32px;
  text-align: center;
}
.beta-done__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--text-primary);
}
.beta-done__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.beta-done__sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}
.beta-done__sub strong {
  color: var(--text-primary);
  background: var(--bg-deep);
  padding: 2px 8px;
  border-radius: 6px;
}

@media (max-width: 640px) {
  /* 모바일에서는 중앙 카드 대신 하단에서 올라오는 바텀시트로.
     좌우 패딩을 없애 폭을 최대로 쓰고, 키보드가 떠도 내부 스크롤로 입력칸이 보이게 한다. */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    max-width: 100%;
    max-height: 92vh;
    /* dvh 지원 브라우저에서는 주소창/키보드 높이를 반영 */
    max-height: 92dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    animation: sheetUp .28s cubic-bezier(.2,.7,.3,1.05);
  }
  /* iOS 입력 시 자동 줌인 방지 — 폼 입력칸은 16px 이상이어야 한다 */
  .beta-input { font-size: 16px; }

  .beta-reward { margin: 0 20px 18px; padding: 14px 16px; }
  .beta-form { padding: 0 20px 24px; }
  .beta-done { padding: 24px 20px; }
  /* 액션 영역은 데스크탑/모바일 동일 — 큰 단일 CTA + 아래 텍스트 취소 */
  .beta-survey-toggle {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 14px;
  }
  .beta-survey-toggle__copy { flex-basis: calc(100% - 54px); }
  .beta-survey-toggle__cta {
    margin-left: 54px;
    align-self: flex-start;
  }
}
