/* 폰트는 직접 서빙한다. CDN에 걸어두면 그쪽 장애가 우리 서비스의
   타이포그래피 붕괴로 그대로 이어진다(영상용 Pretendard는 이미 번들 중이었다). */
@font-face {
  font-family: Pretendard;
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-display: swap;
  font-style: normal;
}

/* shortly 디자인 시스템
 *
 * 방향: 커머스 셀러가 쓰는 도구다. 신뢰가 먼저고 그 다음이 속도감이다.
 * 밝은 바탕에 near-black 강조면(영상·데이터가 올라가는 곳)을 섞어,
 * '툴'의 진지함과 '숏폼'의 에너지를 같이 낸다.
 *
 * 모바일 우선. 한국 셀러는 대부분 폰으로 일한다.
 */

:root {
  /* ── 색 ─────────────────────────────────────────── */
  --ink:        #0B0B0F;   /* 본문·강조면 */
  --ink-2:      #2E2E38;
  --ink-3:      #6B6B7B;   /* 보조 텍스트 */
  --ink-4:      #9A9AAB;   /* 힌트 */
  --line:       #E7E7EE;
  --line-2:     #F1F1F6;
  --bg:         #FFFFFF;
  --bg-2:       #FAFAFC;   /* 섹션 교대 */
  --surface:    #FFFFFF;

  /* 강조 — 보라. 파랑은 흔하고 빨강은 경고로 읽힌다. */
  --brand:      #5B34F0;
  --brand-ink:  #4A24D6;
  --brand-soft: #F0EBFF;
  --brand-line: #D9CCFF;

  --ok:         #0F9D58;
  --ok-soft:    #E8F6EE;
  --warn:       #B7791F;
  --warn-soft:  #FDF6E3;
  --err:        #D93025;
  --err-soft:   #FCEDEC;

  /* ── 형태 ───────────────────────────────────────── */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --sh-1: 0 1px 2px rgba(11,11,15,.05), 0 1px 3px rgba(11,11,15,.04);
  --sh-2: 0 4px 12px rgba(11,11,15,.06), 0 2px 4px rgba(11,11,15,.04);
  --sh-3: 0 12px 32px rgba(11,11,15,.10), 0 4px 8px rgba(11,11,15,.04);
  --sh-brand: 0 6px 20px rgba(91,52,240,.25);

  --nav-h: 60px;
  --wrap: 1080px;
}

/* 다크 대비면(영상 영역)에서 쓰는 토큰 */
.on-dark {
  --ink: #F5F5F8;
  --ink-2: #D5D5E0;
  --ink-3: #9A9AAB;
  --line: #26262F;
  --surface: #14141A;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 한글은 자간을 조금 좁혀야 제목이 단단해 보인다 */
h1, h2, h3, h4 { letter-spacing: -0.032em; line-height: 1.28; font-weight: 800; }
h1 { font-size: clamp(30px, 6.2vw, 54px); }
h2 { font-size: clamp(23px, 3.6vw, 34px); }
h3 { font-size: clamp(18px, 2.4vw, 21px); letter-spacing: -0.024em; }

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ── 내비게이션 ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 10px; }

.logo {
  font-size: 20px; font-weight: 850; letter-spacing: -0.05em;
  display: flex; align-items: center; gap: 7px;
}
.logo .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links a {
  padding: 7px 12px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; color: var(--ink-3);
}
.nav-links a:hover { background: var(--line-2); color: var(--ink); }
.nav-links a[aria-current] { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── 모바일 메뉴 ────────────────────────────────── */
.nav-burger { display: none; background: none; border: 0; cursor: pointer;
  width: 38px; height: 38px; padding: 9px; border-radius: var(--r-sm); }
.nav-burger:hover { background: var(--line-2); }
.nav-burger span { display: block; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-burger span + span { margin-top: 5px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-sheet {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 45;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-2); padding: 8px 20px 16px;
  display: flex; flex-direction: column;
  animation: sheet .18s cubic-bezier(.2,.8,.2,1);
}
.nav-sheet[hidden] { display: none; }
.nav-sheet a { padding: 13px 4px; font-size: 16px; font-weight: 650;
  border-bottom: 1px solid var(--line-2); }
.nav-sheet a:last-child { border-bottom: 0; }
.nav-sheet hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0 4px; }
.nav-sheet hr + a { font-size: 14px; font-weight: 550; color: var(--ink-3); padding: 10px 4px; }
@keyframes sheet { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}
@media (min-width: 721px) { .nav-sheet { display: none !important; } }

/* 크레딧 칩 */
.chip-credit {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 99px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  font-size: 13.5px; font-weight: 700; color: var(--brand-ink);
  white-space: nowrap;
}

/* ── 버튼 ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: var(--r);
  font-size: 15px; font-weight: 700; letter-spacing: -0.015em;
  cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover:not(:disabled) { background: var(--brand-ink); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--ink-2); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink-4); }

.btn-quiet { background: transparent; color: var(--ink-3); }
.btn-quiet:hover:not(:disabled) { background: var(--line-2); color: var(--ink); }

.btn-lg { padding: 16px 28px; font-size: 16.5px; border-radius: var(--r-lg); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

/* ── 카드 ───────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
}
.card-flat { box-shadow: none; }
.card-raised { box-shadow: var(--sh-2); border-color: var(--line-2); }

.card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.card-title { font-size: 16.5px; font-weight: 750; letter-spacing: -0.022em; }
.card-sub { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }

/* ── 폼 ─────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }

.input {
  width: 100%; padding: 14px 16px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r);
  font-size: 15.5px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--ink-4); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input:disabled { background: var(--bg-2); color: var(--ink-4); }
.input-lg { padding: 17px 18px; font-size: 16.5px; border-radius: var(--r-lg); }

.hint { font-size: 12.5px; color: var(--ink-4); }
.hint-err { font-size: 13px; color: var(--err); font-weight: 600; }

/* ── 배지·태그 ──────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: -0.01em;
  background: var(--line-2); color: var(--ink-3);
  white-space: nowrap;
}
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge-ok    { background: var(--ok-soft); color: var(--ok); }
.badge-warn  { background: var(--warn-soft); color: var(--warn); }
.badge-err   { background: var(--err-soft); color: var(--err); }
.badge-dot::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; display: inline-block;
}

/* ── 진행 표시 ──────────────────────────────────── */
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress > i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #8A6BFF);
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

.spinner {
  width: 15px; height: 15px; flex: none;
  border: 2px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 렌더 대기처럼 수 분 걸리는 구간의 골격 화면 */
.skel {
  background: linear-gradient(90deg, var(--line-2) 25%, #EAEAF2 37%, var(--line-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ── 레이아웃 유틸 ──────────────────────────────── */
.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrapf   { flex-wrap: wrap; }
.g4 { gap: 4px; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g10 { gap: 10px; }
.g12 { gap: 12px; } .g16 { gap: 16px; } .g20 { gap: 20px; } .g28 { gap: 28px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mt40 { margin-top: 40px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.hidden { display: none !important; }

.t-sm  { font-size: 13.5px; }
.t-xs  { font-size: 12.5px; }
.t-mut { color: var(--ink-3); }
.t-dim { color: var(--ink-4); }
.t-b   { font-weight: 700; }
.num   { font-variant-numeric: tabular-nums; }

section.pad { padding: 72px 0; }
section.alt { background: var(--bg-2); }
@media (max-width: 720px) { section.pad { padding: 52px 0; } }

/* ── 랜딩 ───────────────────────────────────────── */
.hero { padding: 68px 0 56px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { font-size: clamp(16px, 2.1vw, 19px); color: var(--ink-3); max-width: 560px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; margin-bottom: 20px; border-radius: 99px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  font-size: 13px; font-weight: 700; color: var(--brand-ink);
}

/* 세로 영상 미리보기 — 9:16이 제품의 정체성이라 크게 보여준다 */
.phones { display: flex; gap: 14px; justify-content: center; }
.phone {
  width: min(210px, 28vw); aspect-ratio: 9/16; flex: none;
  border-radius: 22px; overflow: hidden; background: var(--ink);
  border: 5px solid #17171F; box-shadow: var(--sh-3);
  position: relative;
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.phone:nth-child(2) { transform: translateY(-16px) scale(1.04); z-index: 2; }
@media (max-width: 720px) { .phone:nth-child(3) { display: none; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 18px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.stat .n { font-size: clamp(21px, 3.4vw, 28px); font-weight: 850; letter-spacing: -0.035em; }
.stat .l { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: 14px; border-radius: 9px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 800;
}
@media (max-width: 800px) { .steps, .stats { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* ── 요금제 ─────────────────────────────────────── */
/* auto-fit + minmax(250px)로 두니 4열에 1048px이 필요한데 그리드가 1040px이라
   8px 차이로 3열이 되고 카드 하나가 아래로 떨어졌다. 명시적 브레이크포인트가 예측 가능하다. */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative; padding: 26px; border-radius: var(--r-xl);
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.plan:hover { box-shadow: var(--sh-2); }
.plan.on { border-color: var(--brand); box-shadow: var(--sh-brand); }
.plan .tag {
  position: absolute; top: -11px; left: 26px;
  padding: 4px 11px; border-radius: 99px;
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 750;
}
.plan .price { font-size: 32px; font-weight: 850; letter-spacing: -0.04em; }
.plan .price small { font-size: 15px; font-weight: 650; color: var(--ink-3); letter-spacing: -0.01em; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 18px 0 22px; }
.plan li { display: flex; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 800; flex: none; }

/* ── 컷 그리드 ──────────────────────────────────── */
.cuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.cut {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--surface); transition: border-color .15s ease;
}
.cut:hover { border-color: var(--ink-4); }
.cut .thumb {
  aspect-ratio: 9/16; background: var(--line-2); position: relative;
  display: grid; place-items: center; color: var(--ink-4); font-size: 12px;
}
.cut .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cut .ord {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(11,11,15,.72); color: #fff; font-size: 11px; font-weight: 700;
  backdrop-filter: blur(4px);
}
.cut .kind {
  position: absolute; bottom: 8px; left: 8px; right: 8px;
  display: flex; gap: 4px; flex-wrap: wrap;
}
.cut .body { padding: 10px 11px; }
.cut .desc {
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── 입력 방식 탭 ───────────────────────────────── */
.tabs { display: flex; gap: 6px; background: var(--line-2); padding: 5px;
        border-radius: var(--r); margin-bottom: 14px; }
.tabs button {
  flex: 1; padding: 10px 12px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-3); font-size: 14.5px; font-weight: 650;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink);
                                     box-shadow: var(--sh-1); }

/* ── 사진 업로드 ────────────────────────────────── */
.drop {
  border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 30px 20px;
  text-align: center; cursor: pointer; background: var(--bg-2);
  transition: border-color .15s ease, background .15s ease;
}
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.thumb {
  position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--line-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  border: 0; border-radius: 50%; background: rgba(11,11,15,.72); color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer;
}
.thumb.up::after {
  content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6);
}

/* ── 템플릿 선택 ────────────────────────────────── */
textarea.input { resize: vertical; min-height: 74px; line-height: 1.6; }

.db { display: block; }
.mt4 { margin-top: 4px; }
.t-lg { font-size: 17px; }

.scene .pr, .card .pr { margin-top: 8px; }
.scene .pr summary, .card .pr summary {
  font-size: 12px; color: var(--ink-4); cursor: pointer; list-style: none;
  padding: 3px 0;
}
.scene .pr summary::before, .card .pr summary::before { content: '\25B8  '; }
.scene .pr[open] summary::before, .card .pr[open] summary::before { content: '\25BE  '; }
.scene .pr summary:hover, .card .pr summary:hover { color: var(--brand); }
.scene .pr code, .card .pr code {
  display: block; margin-top: 5px; padding: 8px 10px; border-radius: 7px;
  background: var(--bg-2); color: var(--ink-3); font-size: 11.5px;
  line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── 콘티 편집 ──────────────────────────────────── */
.scene {
  display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); align-items: flex-start;
}
.scene + .scene { margin-top: 8px; }
.scene.drag { opacity: .4; }
.scene.over { border-color: var(--brand); background: var(--brand-soft); }
.scene .thumb {
  width: 62px; flex: none; aspect-ratio: 9/16; border-radius: var(--r-sm);
  overflow: hidden; background: var(--line-2); position: relative;
}
.scene .thumb img { width: 100%; height: 100%; object-fit: cover; }
.scene .thumb .n {
  position: absolute; top: 3px; left: 3px; padding: 1px 5px; border-radius: 4px;
  background: rgba(11,11,15,.72); color: #fff; font-size: 10.5px; font-weight: 700;
}
.scene .body { flex: 1; min-width: 0; }
.scene .act {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.5;
  background: var(--bg-2); border-radius: 7px; padding: 6px 9px; margin-top: 6px;
}
.scene textarea, .scene input[type=text] {
  width: 100%; border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 9px; font-size: 13.5px; resize: vertical; background: var(--surface);
  font-family: inherit; line-height: 1.5;
}
.scene textarea:focus, .scene input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.scene .smp:not(:empty) { margin-top: 4px; }
.scene .smp video {
  width: 100%; max-width: 150px; border-radius: 8px; display: block;
  background: #000;
}
.scene .tools { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.scene .tools button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-3);
  border-radius: 6px; padding: 4px 9px; font-size: 12px; cursor: pointer;
}
.scene .tools button:hover { border-color: var(--ink-4); color: var(--ink); }
.scene .tools button.danger:hover { border-color: var(--err); color: var(--err); }
.scene .grip { cursor: grab; color: var(--ink-4); font-size: 15px; padding: 2px 4px; }
.scene .grip:active { cursor: grabbing; }
.scene.busy { opacity: .55; pointer-events: none; }

.edit-bar {
  position: sticky; bottom: 0; z-index: 10; margin-top: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 14px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--sh-2);
}

/* 렌더 중 씬별 진행 */
.prog-scene {
  display: flex; align-items: center; gap: 10px; padding: 9px 4px;
  border-bottom: 1px solid var(--line-2); font-size: 13.5px;
}
.prog-scene:last-child { border-bottom: 0; }
.prog-scene .dot {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px;
  background: var(--line-2); color: var(--ink-4);
}
.prog-scene.done .dot { background: var(--ok-soft); color: var(--ok); }
.prog-scene.now .dot { background: var(--brand-soft); color: var(--brand); }
.prog-scene.done .t { color: var(--ink); }
.prog-scene .t { color: var(--ink-4); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 선택 카드(훅·티어) ─────────────────────────── */
.pick {
  border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; cursor: pointer; background: var(--surface);
  transition: border-color .15s ease, background .15s ease;
  display: flex; gap: 12px; align-items: flex-start;
}
.pick:hover { border-color: var(--ink-4); }
.pick.on { border-color: var(--brand); background: var(--brand-soft); }
.pick .radio {
  width: 19px; height: 19px; flex: none; margin-top: 2px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface);
  display: grid; place-items: center;
}
.pick.on .radio { border-color: var(--brand); }
.pick.on .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }

/* ── 결과 ───────────────────────────────────────── */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.vcard { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.vcard video { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000; }
.vcard .meta { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.caption-box { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--surface); }
.caption-box + .caption-box { margin-top: 10px; }
.caption-box .plat { font-size: 12px; font-weight: 750; color: var(--brand-ink); margin-bottom: 6px; }
.caption-box .tags { font-size: 13px; color: var(--ink-3); margin-top: 8px; word-break: keep-all; }

/* ── 목록 ───────────────────────────────────────── */
.list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 4px; border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; }
.list-item .t { font-weight: 650; font-size: 14.5px; }

/* ── 빈 상태 ────────────────────────────────────── */
.empty { padding: 56px 20px; text-align: center; }
.empty .icon {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 16px;
  background: var(--brand-soft); display: grid; place-items: center; font-size: 24px;
}

/* ── 알림 배너 ──────────────────────────────────── */
.banner {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--r); font-size: 14px; line-height: 1.55;
  border: 1px solid transparent;
}
.banner-info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink); }
.banner-warn { background: var(--warn-soft); border-color: #F0DFB0; color: var(--warn); }
.banner-err  { background: var(--err-soft); border-color: #F5C9C5; color: var(--err); }
.banner-ok   { background: var(--ok-soft); border-color: #BFE5CE; color: var(--ok); }

/* ── 토스트 ─────────────────────────────────────── */
.toasts {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: calc(100% - 32px); max-width: 420px;
}
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r);
  font-size: 14.5px; font-weight: 600; box-shadow: var(--sh-3);
  animation: rise .25s cubic-bezier(.2,.8,.2,1);
  width: 100%; text-align: center;
}
.toast.err { background: var(--err); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ── 모달 ───────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(11,11,15,.5); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface); border-radius: var(--r-xl); padding: 28px;
  width: 100%; max-width: 420px; box-shadow: var(--sh-3);
  animation: pop .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ── 푸터 ───────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; background: var(--bg-2); }
.footer a { color: var(--ink-3); font-size: 13.5px; }
.footer a:hover { color: var(--ink); }
.footer .biz { font-size: 12.5px; color: var(--ink-4); line-height: 1.85; margin-top: 18px; }

/* ── 접근성 ─────────────────────────────────────── */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { left: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 문서(약관 등) */
.doc { padding: 44px 0 72px; }
.doc h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 6px; }
.doc h2 { font-size: 19px; margin: 32px 0 10px; }
.doc h3 { font-size: 16px; margin: 20px 0 8px; }
.doc p, .doc li { font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.doc ul, .doc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.doc th { background: var(--bg-2); font-weight: 700; }

/* ── 상세 접기(FAQ 등) ──────────────────────────── */
details > summary {
  list-style: none;
  display: flex; align-items: center; gap: 10px;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-4); border-bottom: 2px solid var(--ink-4);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details > summary:hover::after { border-color: var(--ink); }

/* ── 히어로 폰: 재생 중임을 알리는 미세한 테두리 광 ── */
.phone { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.phone:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(11,11,15,.16); }
.phone:nth-child(2):hover { transform: translateY(-22px) scale(1.04); }

/* ── 컷 썸네일 로딩 ─────────────────────────────── */
.cut .thumb img { opacity: 0; transition: opacity .35s ease; }
.cut .thumb img.ok { opacity: 1; }

/* ── 표 ─────────────────────────────────────────── */
/* 약관의 넓은 표만 가로 스크롤로 흘린다. 카드 안의 짧은 표는 줄바꿈이 낫다 —
   3열짜리를 스크롤하게 만들면 모바일에서 오히려 읽기 불편하다. */
.doc table { display: block; overflow-x: auto; white-space: nowrap; }
@media (min-width: 620px) { .doc table { display: table; white-space: normal; } }
.card table { width: 100%; }
.card table th, .card table td { word-break: keep-all; }
@media (max-width: 560px) {
  .card table th:nth-child(3), .card table td:nth-child(3) { display: none; }
}

/* ── 스티키 사이드바는 모바일에서 풀어준다 ───────── */
@media (max-width: 900px) {
  aside[style*="sticky"] { position: static !important; width: 100% !important; }
}

/* ── 긴 한글 단어 줄바꿈 ────────────────────────── */
h1, h2, h3, .card-title, .list-item .t { word-break: keep-all; }
