/* SapjilAI.com 공용 스타일 — 정적, 프레임워크 없음 */
:root {
  --bg: #0e1014;
  --bg2: #151922;
  --card: #1a1f2b;
  --line: #2a3040;
  --text: #e8eaf0;
  --dim: #9aa3b5;
  --amber: #f5a623;
  --amber-dark: #d18a0f;
  --radius: 14px;
  --max: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 520px at 82% -120px, rgba(245, 166, 35, .06), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(245, 166, 35, .03), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", "Pretendard", -apple-system, "Malgun Gothic", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── 머리 ── */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 16, 20, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 28px;
}
.logo { font-weight: 900; font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo .ai { color: var(--amber); }
nav.menu { display: flex; gap: 20px; margin-left: auto; }
nav.menu a { color: var(--dim); font-size: .95rem; }
nav.menu a.on, nav.menu a:hover { color: var(--text); text-decoration: none; }

/* ── 공통 틀 ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
section.alt { background: var(--bg2); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.25; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
p.lead { color: var(--dim); font-size: 1.1rem; max-width: 640px; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; color: var(--amber);
  border: 1px solid var(--amber-dark); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px;
}

/* ── 그림 자리 ── */
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: -50px;
  background: radial-gradient(circle at 62% 62%, rgba(245, 166, 35, .16), transparent 62%);
  filter: blur(12px); pointer-events: none;
}
.hero-art img, .section-art {
  width: 100%; height: auto; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); position: relative;
}
.hero-art img { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.section-art { margin-top: 30px; }

/* ── 스크롤 등장 ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── 반쪽 나눔 (글 + 그림) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); }

/* ── 갤러리 ── */
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.gallery img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.045); }
.gallery figcaption { padding: 11px 16px; color: var(--dim); font-size: .88rem; border-top: 1px solid var(--line); }
.gallery-note { color: var(--dim); font-size: .9rem; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ── 단추 ── */
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; transition: transform .1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--amber); color: #14161a; }
.btn.primary:not(.disabled):hover { box-shadow: 0 6px 24px rgba(245, 166, 35, .35); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); background: var(--card); }
.btn.disabled { opacity: .55; cursor: default; pointer-events: none; }
.btn small { display: block; font-weight: 400; font-size: .78rem; opacity: .75; }

/* ── 카드 ── */
.grid { display: grid; gap: 18px; margin-top: 34px; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.c4, .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--amber-dark); box-shadow: 0 14px 34px rgba(0, 0, 0, .38); }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px;
  background: rgba(245, 166, 35, .12); color: var(--amber); font-weight: 800;
}
.card p { color: var(--dim); font-size: .95rem; }

/* ── 시연 자리 — 플레이어 연출 ── */
.demo-player {
  margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #10131b; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.player-top { display: flex; gap: 7px; padding: 13px 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.player-top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.player-top .dot:first-child { background: var(--amber); }
.player-stage { padding: 52px 24px 44px; text-align: center; color: var(--dim); }
.play-circle {
  width: 66px; height: 66px; border-radius: 50%; margin: 26px auto 22px;
  background: rgba(245, 166, 35, .13); border: 1px solid var(--amber-dark);
  display: flex; align-items: center; justify-content: center;
  animation: pulse 2.6s ease-in-out infinite;
}
.play-circle::after {
  content: ""; display: block; margin-left: 5px;
  border-style: solid; border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent var(--amber);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, .22); }
  50% { box-shadow: 0 0 0 16px rgba(245, 166, 35, 0); }
}
.player-bar { height: 4px; background: var(--line); position: relative; overflow: hidden; }
.player-bar .bar-progress {
  position: absolute; top: 0; bottom: 0; left: 0; width: 30%;
  background: linear-gradient(90deg, var(--amber-dark), var(--amber));
  animation: sweep 3s ease-in-out infinite;
}
@keyframes sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(450%); } }
/* 재생 중에는 진행바를 JS가 몬다 */
.demo-player.playing .bar-progress, .demo-player.done .bar-progress {
  animation: none; transform: none; width: 0; transition: width .5s linear;
}
/* 단계표 — 10단계 알약 */
.demo-steps { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }
.step-dot {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg2); font-size: .8rem; color: var(--dim);
  font-family: inherit; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.step-dot b { color: var(--amber); font-weight: 700; margin-right: 3px; }
.step-dot.on { border-color: var(--amber); background: rgba(245, 166, 35, .13); color: var(--text); }
.step-dot.done { color: var(--amber-dark); }
.step-dot:hover { border-color: var(--amber-dark); }

/* 순차 등장 공통 */
[data-등장] { opacity: 0; transform: translateY(9px); transition: opacity .35s ease, transform .35s ease; }
[data-등장].in { opacity: 1; transform: none; }

/* ① 팩 카드 */
.pack-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pack-card {
  min-width: 150px; padding: 20px 22px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 800; font-size: 1.05rem;
}
.pack-card small { display: block; margin-top: 5px; color: var(--dim); font-weight: 400; font-size: .8rem; }
.pack-card.pick.in { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 166, 35, .18); }
.pack-card.ghosty { border-style: dashed; color: var(--dim); }

/* 목록 연출 */
.fact-list { list-style: none; max-width: 560px; margin: 0 auto; text-align: left; }
.fact-list li {
  padding: 9px 12px 9px 34px; position: relative; color: var(--text);
  font-size: .95rem; border-bottom: 1px solid var(--line);
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list li::before { content: "▸"; position: absolute; left: 12px; color: var(--amber); }
.fact-list.slim li { font-size: .9rem; padding-top: 7px; padding-bottom: 7px; }

/* ④ 계획 챕터 알약 */
.plan-chips { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; max-width: 640px; margin: 0 auto; }
.plan-chips span {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); font-size: .85rem;
}

/* ⑨ 썸네일 · 인트로 */
.thumb-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: center; max-width: 760px; margin: 0 auto; }
@media (max-width: 720px) { .thumb-row { grid-template-columns: 1fr; } }
.thumb-shot { margin: 0; }
.thumb-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--amber-dark); }
.thumb-shot figcaption { color: var(--dim); font-size: .85rem; margin-top: 8px; }

/* ── 시연 장면 공통 ── */
.player-title { margin-left: 10px; color: var(--dim); font-size: .85rem; align-self: center; }
.demo-scene { margin-top: 22px; animation: scene-in .45s ease; }
@keyframes scene-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scene-hint { color: var(--dim); font-size: .95rem; margin-top: 6px; }
.play-circle { border: 1px solid var(--amber-dark); cursor: pointer; }
.pane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.pane-head.center { justify-content: center; }
.pane-label { color: var(--amber); font-weight: 700; font-size: .9rem; }
.pane-meta { color: var(--dim); font-size: .88rem; font-variant-numeric: tabular-nums; }
.stamp {
  display: inline-block; margin-top: 16px; padding: 7px 18px; border-radius: 9px;
  border: 1.5px solid var(--amber); color: var(--amber); font-weight: 800; font-size: .95rem;
  transform: rotate(-2deg); animation: stamp-in .35s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes stamp-in { from { opacity: 0; transform: rotate(-2deg) scale(1.6); } to { opacity: 1; transform: rotate(-2deg) scale(1); } }

/* ① 대본 */
.script-pane {
  max-width: 720px; margin: 0 auto; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px;
}
.typewriter {
  color: var(--text); font-size: .98rem; line-height: 1.9; min-height: 9.5em;
  white-space: pre-wrap;
}
.typewriter::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em;
  background: var(--amber); vertical-align: text-bottom; margin-left: 2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ② 삽화 */
.demo-arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 860px; margin: 0 auto; }
@media (max-width: 720px) { .demo-arts { grid-template-columns: 1fr; max-width: 420px; } }
.demo-art {
  margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card);
  opacity: 0; filter: blur(14px); transform: scale(1.04);
  transition: opacity .8s ease, filter .9s ease, transform .9s ease;
}
.demo-art.in { opacity: 1; filter: none; transform: none; }
.demo-art img { display: block; width: 100%; height: auto; }
.demo-art figcaption { padding: 8px 12px; color: var(--dim); font-size: .85rem; border-top: 1px solid var(--line); text-align: left; }

/* ③ 음성 */
.waveform { display: flex; gap: 3px; align-items: center; justify-content: center; height: 74px; max-width: 640px; margin: 0 auto; }
.waveform span {
  width: 4px; border-radius: 2px; background: var(--amber);
  height: 12%; opacity: .35; transition: height .18s ease, opacity .18s ease;
}
.waveform span.live { opacity: 1; }
.subtitle-line {
  margin-top: 18px; color: var(--dim); font-size: .98rem; max-width: 640px; margin-left: auto; margin-right: auto;
}
.subtitle-line b { color: var(--text); font-weight: 500; }

/* ④ 편집본 */
.timeline {
  position: relative; max-width: 720px; margin: 0 auto; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 18px;
}
.track { display: flex; align-items: center; gap: 12px; margin: 9px 0; }
.track-name { width: 40px; flex: none; color: var(--dim); font-size: .8rem; }
.track .clips { display: flex; gap: 5px; flex: 1; min-height: 26px; }
.track .clips span {
  height: 26px; border-radius: 6px; flex: 1;
  background: rgba(245, 166, 35, .16); border: 1px solid var(--amber-dark);
  opacity: 0; transform: translateX(24px); transition: opacity .4s ease, transform .4s ease;
}
.track[data-트랙="자막"] .clips span { background: rgba(232, 234, 240, .1); border-color: var(--line); }
.track[data-트랙="음성"] .clips span { background: rgba(245, 166, 35, .07); border-color: var(--line); }
.track .clips span.in { opacity: 1; transform: none; }
.playhead {
  position: absolute; top: 12px; bottom: 12px; left: 66px; width: 2px;
  background: var(--amber); box-shadow: 0 0 8px rgba(245, 166, 35, .8);
  transition: left .5s linear;
}

/* 끝 화면 */
.done-title { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.btns.center { justify-content: center; }

/* ── FAQ ── */
.faq { max-width: 760px; margin-top: 26px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 16px 20px; margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::before { content: "Q. "; color: var(--amber); font-weight: 800; }
.faq details p { color: var(--dim); margin-top: 10px; font-size: .95rem; }

/* ── 비교표 ── */
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 40px; font-size: .95rem; }
table.compare th, table.compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare td:first-child { color: var(--text); font-weight: 500; }
table.compare thead th { font-size: 1.02rem; color: var(--dim); }
table.compare .col-full { background: rgba(245, 166, 35, .07); }
table.compare thead .col-full { color: var(--amber); font-weight: 800; }
table.compare td { color: var(--dim); }
table.compare .yes { color: var(--amber); font-weight: 700; }

/* ── 표·안내 ── */
table.spec { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .95rem; }
table.spec th, table.spec td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
table.spec th { background: var(--card); white-space: nowrap; }
table.spec td { color: var(--dim); }
.note {
  border-left: 3px solid var(--amber); background: var(--card);
  border-radius: 0 10px 10px 0; padding: 14px 18px; margin-top: 20px; color: var(--dim); font-size: .95rem;
}
.note b { color: var(--text); }

/* ── 가이드 단계 ── */
.steps { counter-reset: step; max-width: 800px; }
.step {
  position: relative; padding: 22px 24px 22px 66px; margin-top: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 22px;
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: rgba(245, 166, 35, .12); color: var(--amber); font-weight: 800;
}
.step p, .step li { color: var(--dim); font-size: .95rem; }
.step ul { margin: 8px 0 0 18px; }

/* ── 꼬리 ── */
footer {
  border-top: 1px solid var(--line); padding: 36px 0; color: var(--dim); font-size: .9rem;
}
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* ── 갤러리 라이트박스 ── */
.gallery figure { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: 4vh 4vw;
  background: rgba(6, 9, 14, .92); cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw; max-height: 84vh; width: auto; height: auto;
  border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}
.lightbox-제목 { color: var(--text); font-size: 1.02rem; font-weight: 600; }
.lightbox-닫기 {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--card);
  color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.lightbox-닫기:hover { border-color: var(--amber); color: var(--amber); }

/* ── 업데이트 기록 (2026-08-26 밤 작업 ③) ── */
.update {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  margin-bottom: 12px; overflow: hidden;
}
.update summary {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; cursor: pointer; list-style: none;
}
.update summary::-webkit-details-marker { display: none; }
.update summary::after { content: "▾"; margin-left: auto; color: var(--dim); transition: transform .2s; }
.update[open] summary::after { transform: rotate(180deg); }
.update .uver { font-weight: 800; color: var(--amber); font-family: "Courier New", monospace; }
.update .udate { color: var(--dim); font-size: .85rem; }
.update .utitle { font-weight: 700; }
.update ul { margin: 0 18px 16px 36px; color: var(--dim); }
.update li { margin-top: 6px; }

/* ── 체험 모집 카운트다운 (2026-08-26 밤 작업 ⑩ — 진짜 마감만 적는다) ── */
.count-strip {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 18px auto 0; padding: 12px 18px; max-width: 640px;
  border: 1px solid var(--amber-dark, #8a5a00); border-radius: 12px;
  background: rgba(245, 166, 35, .08); font-weight: 700;
}
.count-strip .clock { font-family: "Courier New", monospace; font-size: 1.25rem; color: var(--amber); font-weight: 800; letter-spacing: 1px; }
.count-strip .csub { color: var(--dim); font-weight: 400; font-size: .88rem; width: 100%; text-align: center; }
/* 첫 화면 버튼 속 마감 시계 — 버튼 배경(호박색) 위라 색은 그대로, 숫자만 고정폭으로 */
.btn small .clock { font-family: "Courier New", monospace; font-weight: 800; letter-spacing: 1px; opacity: 1; }

/* ── 예상 사용 시나리오 카드 (⑩ — 「후기 아님」을 카드가 스스로 말한다) ── */
.persona-note { text-align: center; color: var(--dim); font-size: .88rem; margin-top: 10px; }
.persona .card b.pname { color: var(--amber); }
.persona .card .ptag {
  display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--dim); font-size: .75rem; font-weight: 700;
}
