/* Subkiki 홈페이지 — 무채색 + 레드 포인트, 어두운 첫 화면과 마지막 화면, 밝은 본문 */
:root {
  --red: #e5484d;
  --red-h: #d93d42;
  --ink: #111113;
  --ink-2: #1a1a1d;
  --paper: #fbfbfa;
  --line: rgba(0, 0, 0, 0.08);
  --text: #171717;
  --text-2: #5c5c62;
  --text-3: #8b8b91;
  --orig: #ffffff;
  --read: #c2c2ca;
  --pron: #93dcb9;
  --tr: #f2dfb6;
  --word: #c3cdf6;
  --furi: #f3bf98;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', 'Malgun Gothic', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.wrap.narrow { width: min(760px, calc(100% - 48px)); }

/* ---------- 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: background 0.15s, transform 0.12s, border-color 0.15s; white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-h); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); }
.btn-ghost-dark { color: var(--text); border: 1px solid var(--line); background: #fff; }
.btn-ghost-dark:hover { border-color: rgba(0, 0, 0, 0.2); }

/* ---------- 머리 */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(24px, calc((100% - 1120px) / 2)); color: #fff; transition: background 0.25s, color 0.25s, border-color 0.25s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(251, 251, 250, 0.86); backdrop-filter: blur(14px) saturate(160%); color: var(--text); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; opacity: 0.86; }
.nav a:hover { opacity: 1; }
.top-r { display: flex; align-items: center; gap: 10px; }
.lang { height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.22); background: none; color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.top.solid .lang { border-color: var(--line); }

/* ---------- 첫 화면 */
.hero { position: relative; background: var(--ink); color: #fff; padding: 150px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url(/img/hero.jpg) center right / cover no-repeat; opacity: 0.55; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 18%, rgba(17, 17, 19, 0.55) 55%, rgba(17, 17, 19, 0.2)), linear-gradient(0deg, var(--ink) 4%, transparent 45%); }
.hero-in { position: relative; }
.kicker { color: #ff8f8f; font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; margin: 0 0 18px; }
h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; margin: 0; }
.lead { max-width: 620px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, 0.72); margin: 22px 0 0; line-height: 1.7; }
.ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.micro { color: rgba(255, 255, 255, 0.5); font-size: 13px; margin: 16px 0 0; }

/* ---------- 시연 창 */
.demo { position: relative; margin-top: 70px; border-radius: 16px; overflow: hidden; background: #0c0c0e; border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); }
.demo-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #161618; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3e; }
.demo-bar span { margin-left: 12px; font-size: 12px; color: rgba(255, 255, 255, 0.45); padding: 3px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); }
.demo-body { display: grid; grid-template-columns: 1fr 300px; }
.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.scene { width: 100%; height: 100%; object-fit: cover; animation: kb 22s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1%, -1%); } }
.status-chip { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 9px; font-size: 12px; font-weight: 500; background: rgba(20, 20, 22, 0.86); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(16px); white-space: nowrap; }

/* 자막 카드 (확장 프로그램과 같은 모양) */
.ov { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); width: 92%; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: clamp(10px, 1.25vw, 15px); }
.ov.static { bottom: 8%; }
.tools { display: flex; gap: 2px; padding: 3px; margin-bottom: 8px; border-radius: 10px; background: rgba(20, 20, 22, 0.86); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(18px); transition: opacity 0.4s; }
.tools span { padding: 0.32em 0.72em; border-radius: 7px; color: rgba(255, 255, 255, 0.5); font-size: 0.82em; font-weight: 500; white-space: nowrap; }
.tools span.on { background: rgba(255, 255, 255, 0.1); color: #fff; }
.tools span.on::before { content: ''; display: inline-block; width: 0.38em; height: 0.38em; border-radius: 50%; margin-right: 0.45em; vertical-align: 0.12em; background: var(--c, #fff); }
.box { display: inline-block; padding: 0.55em 1.2em 0.65em; border-radius: 14px; background: rgba(17, 17, 19, 0.72); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(24px) saturate(140%); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.box.out { opacity: 0; transform: translateY(6px); }
.g { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.25em 0.55em; align-items: flex-end; }
.tok { display: inline-flex; gap: 0.15em; padding: 0.08em 0.3em 0.12em; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.u { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.18; min-width: 0.9em; }
.u .fu { color: var(--furi); font-size: 0.62em; min-height: 1.2em; }
.u .ch { color: var(--orig); font-size: 1.7em; font-weight: 600; }
.u .ro { color: var(--read); font-size: 0.66em; font-family: Inter, -apple-system, sans-serif; }
.u .ko { color: var(--pron); font-size: 0.66em; }
.line-ro { color: var(--read); font-size: 0.86em; margin-top: 0.25em; font-family: Inter, -apple-system, sans-serif; }
.line-pr { color: var(--pron); font-size: 0.92em; }
.line-tr { color: var(--tr); font-size: 1.12em; font-weight: 500; margin-top: 0.2em; }
.words { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.3em; margin-top: 0.45em; }
.w { padding: 0.14em 0.55em 0.18em; border-radius: 0.5em; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.86); font-size: 0.82em; white-space: nowrap; }
.w b { color: var(--word); font-weight: 600; margin-right: 0.3em; }
.w i { color: var(--furi); font-style: normal; margin-right: 0.3em; }
.w.hl { background: rgba(255, 255, 255, 0.16); }
.pop { position: absolute; width: min(270px, 46%); z-index: 3; padding: 12px 14px; border-radius: 12px; background: rgba(22, 22, 24, 0.95); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); color: #eee; font-size: 12.5px; text-align: left; animation: pop 0.25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.pop .pb { font-size: 22px; font-weight: 700; }
.pop .ps { display: block; color: var(--pron); font-size: 12.5px; margin-top: 2px; }
.pop .pm { color: var(--tr); margin-top: 4px; }
.pop .pa { display: flex; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.pop .pa span { padding: 4px 9px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); font-size: 11.5px; }
.pop .pa span.on { background: var(--red); }

/* 옆 패널 */
.side { background: #101011; border-left: 1px solid rgba(255, 255, 255, 0.06); padding: 14px 14px 0; display: flex; flex-direction: column; min-height: 0; color: #ededed; font-size: 12px; }
.side-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.side-h img { border-radius: 5px; }
.side-sub { color: #727276; margin-top: 3px; font-size: 11.5px; }
.side-tabs { display: flex; gap: 14px; margin-top: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #727276; }
.side-tabs span { padding: 0 0 8px; }
.side-tabs span.on { color: #ededed; box-shadow: inset 0 -2px 0 var(--red); }
.side-lines { flex: 1; overflow: hidden; padding-top: 6px; position: relative; }
.sl { padding: 8px 10px; border-radius: 9px; margin-bottom: 2px; transition: background 0.3s, opacity 0.3s; opacity: 0.55; position: relative; }
.sl.cur { background: #1c1c1e; opacity: 1; }
.sl.cur::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--red); }
.sl .t { color: #727276; font-size: 10.5px; font-family: Inter, sans-serif; }
.sl.cur .t { color: #ff8f8f; }
.sl .j { font-size: 13.5px; font-weight: 600; margin-top: 1px; }
.sl .k { color: #bdbdc2; margin-top: 2px; }

/* ---------- 언어 띠 */
.langs { background: var(--ink); color: rgba(255, 255, 255, 0.55); padding: 34px 0 44px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.langs p { text-align: center; margin: 0 0 18px; font-size: 13.5px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: mq 40s linear infinite; }
.track span { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.82); font-size: 14px; white-space: nowrap; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- 본문 섹션 */
.sec { padding: 120px 0; }
.sec.alt { background: #f3f3f1; }
.eyebrow { color: var(--red); font-weight: 600; font-size: 13.5px; margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.body { color: var(--text-2); font-size: 17px; line-height: 1.75; margin: 20px 0 0; max-width: 520px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.step { padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.step .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; }
.step h3 { font-size: 19px; margin: 18px 0 8px; letter-spacing: -0.02em; }
.step p { color: var(--text-2); margin: 0; font-size: 15px; line-height: 1.7; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.card-shot { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18); }
.card-shot .scene { animation-duration: 30s; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 52px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.f { background: var(--paper); padding: 26px 24px 28px; }
.f b { display: block; font-size: 16.5px; letter-spacing: -0.015em; }
.f p { color: var(--text-2); margin: 8px 0 0; font-size: 14px; line-height: 1.65; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px; max-width: 860px; }
.plan { position: relative; padding: 32px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--red); }
.plan h3 { margin: 0; font-size: 18px; }
.plan .pr { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.plan .pr b { font-size: 44px; letter-spacing: -0.04em; }
.plan .pr span { color: var(--text-3); }
.plan .pd { color: var(--text-2); margin: 8px 0 0; }
.plan .ticks { margin-bottom: 28px; }
.plan .btn { margin-top: auto; }
.badge { position: absolute; top: -12px; left: 32px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { margin-top: 36px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--text-3); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text-2); margin: 12px 0 0; line-height: 1.75; }

/* ---------- 마지막 */
.final { position: relative; background: var(--ink); color: #fff; padding: 130px 0; text-align: center; overflow: hidden; }
.final-bg { position: absolute; inset: 0; background: url(/img/scene.jpg) center / cover no-repeat; opacity: 0.28; }
.final-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(17, 17, 19, 0.4), var(--ink) 75%); }
.final-in { position: relative; }
.final h2 { font-size: clamp(32px, 5vw, 56px); }
.final p { color: rgba(255, 255, 255, 0.7); font-size: 17px; margin: 14px 0 30px; }
.final .micro { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.foot { background: var(--ink); color: rgba(255, 255, 255, 0.55); padding: 34px 0 44px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 13.5px; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; align-items: center; }
.foot .brand { color: #fff; font-size: 15px; }
.foot-links { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.foot-links a:hover { color: #fff; }
/* 사업자 정보: 공용 그림(회색 글씨·투명 배경)을 어두운 바탕에서 밝게 뒤집어 보여 줌 */
.biz { grid-column: 1 / -1; display: block; max-width: 520px; margin-top: 6px; }
.biz img { display: block; width: 100%; height: auto; filter: invert(1) brightness(0.9); opacity: 0.7; transition: opacity 0.15s; }
.biz:hover img { opacity: 0.9; }
.fine { grid-column: 1 / -1; margin: 0; font-size: 12px; color: rgba(255, 255, 255, 0.35); }

@media (max-width: 960px) {
  .nav { display: none; }
  .demo-body { grid-template-columns: 1fr; }
  .side { display: none; }
  .steps, .plans, .plans.four { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .sec { padding: 84px 0; }
  .hero { padding-top: 120px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .tools { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .track { animation: none; }
}

.paid-toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 12px; background: #111113; color: #fff; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 40px rgba(0,0,0,.35); font-weight: 600; font-size: 14.5px; }

/* ---------- 약관·개인정보 페이지 */
.legal-page { background: var(--paper); }
.legal-page .top { position: sticky; }
.lang-link { font-size: 13.5px; color: var(--text-2); }
.legal { padding: 56px 0 100px; color: var(--text); }
.legal h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; }
.legal .meta { color: var(--text-3); margin: 8px 0 28px; }
.legal h2 { font-size: 19px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.8; font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.legal th { color: var(--text); font-weight: 600; background: #f3f3f1; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 72px 0 48px; }

/* 요금: 4칸 + 크레딧 설명 */
#pricing .sub-lead { max-width: 640px; color: var(--text-2); margin: 14px 0 0; line-height: 1.6; }
.plans.four { grid-template-columns: repeat(4, 1fr); max-width: 1120px; gap: 16px; }
.plans.four .plan { padding: 26px 22px; }
.plans.four .plan .pr b { font-size: 36px; }
.plan .pd .cr { font-size: 20px; color: var(--text); letter-spacing: -0.02em; }
.price-note { max-width: 760px; margin: 22px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.6; }
@media (max-width: 1080px) and (min-width: 721px) { .plans.four { grid-template-columns: repeat(2, 1fr); } }
