/* Runpop 사이트. 앱과 같은 HUIS 다크 톤 (SharedUI/Theme.swift) */
:root {
  --bg: #1b1b1b;
  --surface: #2f2f2f;
  --surface-high: #3a3a3a;
  --track: #2c2c2c;
  --face: #161616;
  --tick: #474747;
  --line: #3a3a3a;
  --text: #ffffff;
  --muted: #a3a3a3;
  --dim: #808080;

  --pink: #ea1763;
  --purple: #5b17ea;
  --orange: #ea8917;
  --cyan: #00c5c5;

  --radius: 24px;
  --radius-sm: 14px;
  --gutter: 16px;
  --max: 1120px;


  --font: "Plus Jakarta Sans", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* 언어: 기본은 한국어, data-lang=en 이면 영어만 */
.en { display: none; }
html[data-lang="en"] .ko { display: none; }
html[data-lang="en"] .en { display: revert; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- 헤더 ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .wordmark { display: block; height: 18px; width: auto; color: var(--text); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top nav a.navlink {
  display: none; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 8px 12px; border-radius: 999px;
}
.top nav a.navlink:hover, .top nav a.navlink[aria-current="page"] { color: var(--text); background: var(--surface); }

.lang {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface);
}
.lang button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; padding: 6px 11px; color: var(--muted);
  min-height: 32px;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang button { transition: background-color 0.15s, color 0.15s, transform 0.12s; }

/* 한/EN 전환은 site.js 가 View Transition 으로 감싼다. 짧은 교차 페이드 */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }

@media (min-width: 720px) {
  .top nav a.navlink { display: inline-block; }
}

/* ---------- 상호작용 공통 (눌림·호버) ---------- */
.faq summary, .top nav a.navlink, .mail, .lang button, .listen { transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.12s; }
@media (hover: hover) {
  .faq summary:hover { background: var(--surface-high); }
  .listen:hover { background: var(--surface-high); }
  .listen[aria-pressed="true"]:hover { background: color-mix(in srgb, var(--pink) 88%, #fff); }
}
/* 누르는 동안만 살짝 눌림 */
.faq summary:active, .lang button:active, .listen:active, .top nav a.navlink:active, .mail:active { transform: scale(0.985); }
@media (prefers-reduced-motion: reduce) {
  .faq summary:active, .lang button:active, .listen:active, .top nav a.navlink:active, .mail:active { transform: none; }
}

/* 색 이름 유틸 */
.bg-pink { background: var(--pink); }
.bg-purple { background: var(--purple); }
.bg-orange { background: var(--orange); }
.bg-cyan { background: var(--cyan); }
.bg-gray { background: #5e5e5e; }
.c-pink { color: var(--pink); }
.c-purple { color: var(--purple); }
.c-orange { color: var(--orange); }
.c-cyan { color: var(--cyan); }

/* 작은 라벨 칩. 랜딩 장면·플랜에서 쓴다 */
.chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08); padding: 5px 10px; border-radius: 999px; color: var(--text);
}
.chip.c-pink { background: var(--pink); }
.chip.c-purple { background: var(--purple); }
.chip.c-cyan { background: var(--cyan); }

/* 스토어 버튼 (준비 중) */
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; cursor: not-allowed; user-select: none;
}
.store svg { width: 26px; height: 26px; color: var(--muted); flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: 12px; font-weight: 600; color: var(--dim); }
.store b { font-size: 17px; font-weight: 800; color: var(--muted); }

/* ---------- 1. 히어로 ---------- */
.hero { position: relative; overflow: clip; padding: 28px 0 44px; }
.hero .wrap { display: grid; gap: 30px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  background: var(--surface); padding: 6px 12px 6px 8px; border-radius: 999px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: block; }
.hero h1 {
  margin: 0; font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
  font-size: clamp(46px, 12.5vw, 104px);
}
.hero h1 .accent { color: var(--pink); font-style: normal; }
.hero h1 .line { display: block; overflow: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .line > span { display: block; }
.lede { margin: 20px 0 0; font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 33em; line-height: 1.65; }
.lede strong { color: var(--text); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; }
.cta-note { font-size: 13px; color: var(--dim); font-weight: 600; }

/* 진입: 제목 줄이 한 박자 간격으로 올라오고 나머지는 뒤따른다. 끝나면 자연 상태라 애니메이션이 남지 않는다 */
@keyframes rise { from { transform: translateY(112%); } to { transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dial-in { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: none; } }
html.motion .hero h1 .line > span { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(0.1s + var(--i) * 349ms); }
html.motion .hero .eyebrow { animation: settle 0.6s ease-out backwards; }
html.motion .hero .lede { animation: settle 0.7s ease-out 0.85s backwards; }
html.motion .hero .cta-row { animation: settle 0.7s ease-out 1.05s backwards; }
html.motion .hero .dial-stage { animation: dial-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s backwards; }

/* 링 다이얼: 앱 CadenceDial + 아이콘의 3색 호 */
.dial-stage { position: relative; display: grid; justify-items: center; gap: 18px; }
.dial { width: min(80vw, 340px); aspect-ratio: 1; position: relative; isolation: isolate; container-type: inline-size; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial .ring-track { fill: none; stroke: var(--track); stroke-width: 30; }
.dial .face { fill: var(--face); }
.dial .ticks { fill: none; stroke: var(--tick); stroke-width: 8; stroke-dasharray: 2 4.5076; }
.dial .arc, .dial .arc-base { fill: none; stroke-width: 30; stroke-linecap: round; }
.dial .arc-base { opacity: 0.42; }
.dial .cyan { stroke: var(--cyan); }
.dial .pink { stroke: var(--pink); }
.dial .orange { stroke: var(--orange); }
/* 움직임이 켜지면 호는 비워 두고, 4박 마디마다 하나씩 site.js 가 채웠다 푼다 (pathLength=1) */
html.motion .dial .arc { stroke-dasharray: 1 2; stroke-dashoffset: 1.2; }
/* 점과 리플은 SVG 밖 HTML 요소라 transform 이 컴포지터에서 돈다. 크기는 viewBox 240 기준 r=9 */
.dial .dot, .dial .ripple {
  position: absolute; left: 50%; top: 50%; width: 7.5%; aspect-ratio: 1; margin: -3.75% 0 0 -3.75%;
  border-radius: 50%; pointer-events: none;
}
.dial .dot { background: var(--pink); }
.dial .ripple { border: 4px solid var(--pink); border-width: 1.25cqi; opacity: 0; }
.dial .glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(234, 23, 99, 0.22), transparent 70%); filter: blur(10px); z-index: -1; }
/* 파동 링: 다이얼 뒤에서 박자마다 하나씩 퍼진다. 히어로가 overflow:clip 이라 밖으로는 잘린다 */
.dial .pulse {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--pink);
  opacity: 0; z-index: -1; pointer-events: none;
}
.dial .pulse:nth-child(1) { border-color: var(--cyan); }

.readout { display: flex; align-items: baseline; gap: 8px; }
.readout b { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.readout span { font-size: 15px; font-weight: 700; color: var(--muted); }
.beats { display: flex; gap: 8px; }
.beats i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-high); display: block; }
/* 박자 표시: site.js 의 박자 시계가 html[data-beat] 를 0..3 으로 넘긴다. 시계가 없으면(움직임 줄이기) 첫 칸 */
html:not([data-beat]) .beats i:first-child,
html[data-beat="0"] .beats i:nth-child(1),
html[data-beat="1"] .beats i:nth-child(2),
html[data-beat="2"] .beats i:nth-child(3),
html[data-beat="3"] .beats i:nth-child(4) { background: var(--text); transform: scale(1.15); }
.dial-caption { margin: 0; font-size: 13px; color: var(--dim); font-weight: 600; text-align: center; }

/* 클릭 듣기 토글 */
.listen-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.listen {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 800; letter-spacing: -0.01em; cursor: pointer;
}
.listen svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.15s; }
.listen svg path:first-child { fill: var(--pink); transition: fill 0.15s; }
.listen .wv { opacity: 0.35; transition: opacity 0.15s; }
.listen[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); }
.listen[aria-pressed="true"] svg { stroke: #fff; }
.listen[aria-pressed="true"] svg path:first-child { fill: #fff; }
.listen[aria-pressed="true"] .wv { opacity: 1; }
.listen-note { font-size: 12px; font-weight: 600; color: var(--dim); }

@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; min-height: calc(100vh - 64px); display: flex; align-items: center; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
  .dial { width: min(100%, 440px); }
}

/* ---------- 2. 숫자 띠 ---------- */
.band { overflow: clip; padding: 10px 0 18px; border-block: 1px solid var(--line); }
.band-track { display: flex; width: max-content; will-change: transform; }
.band-row { display: flex; align-items: baseline; flex: none; padding-right: 0; }
.bi {
  font-size: clamp(56px, 13vw, 128px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.1;
  white-space: nowrap; font-variant-numeric: tabular-nums; text-transform: uppercase;
}
.bi small { font-size: 0.3em; font-weight: 800; letter-spacing: 0; margin-left: 0.12em; color: var(--muted); }
.band-row i { display: block; align-self: center; flex: none; width: 0.18em; height: 0.18em; margin: 0 0.5em; border-radius: 50%; background: var(--pink); font-size: clamp(56px, 13vw, 128px); }
.band-row i:nth-of-type(2n) { background: var(--cyan); }
.band-row i:nth-of-type(3n) { background: var(--orange); }

/* ---------- 3. 스티키 장면 ---------- */
.story { padding: 48px 0 0; }
.story-title { margin: 0 0 8px; font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; max-width: 14em; }
.story-grid { display: grid; }
.story-stage {
  position: sticky; top: 64px; z-index: 2; height: 46vh; min-height: 330px;
  display: grid; place-items: center; background: var(--bg);
  /* 아래 글이 스테이지 밑으로 사라지게 그라데이션으로 살짝 덮는다 */
  box-shadow: 0 24px 24px -8px var(--bg);
}
.story-stage .hr { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border: 2.5px solid var(--purple); border-radius: 50%; opacity: 0; pointer-events: none; }
/* 기기 틀 하나가 장면마다 치수·모서리·테두리색을 바꾼다 */
.frame {
  --w: 150px; --h: 300px; --r: 32px; --edge: var(--pink);
  position: relative; width: var(--w); height: var(--h); border-radius: var(--r);
  background: var(--face); border: 3px solid var(--edge); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.03), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transition: width 0.6s cubic-bezier(0.3, 0.7, 0.2, 1), height 0.6s cubic-bezier(0.3, 0.7, 0.2, 1), border-radius 0.6s, border-color 0.4s;
}
.frame[data-scene="watch"] { --w: 152px; --h: 184px; --r: 44px; --edge: var(--purple); }
.frame[data-scene="graph"] { --w: min(340px, 86vw); --h: 216px; --r: 24px; --edge: var(--cyan); }
/* 워치 용두 */
.frame::after {
  content: ""; position: absolute; right: -12px; top: 30%; width: 9px; height: 30px; border-radius: 5px; background: var(--purple);
  opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.4s;
}
.frame[data-scene="watch"]::after { opacity: 1; transform: none; transition-delay: 0.3s; }
.scene {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 14px; color: #fff; opacity: 0; transform: scale(0.9); pointer-events: none;
  transition: opacity 0.3s, transform 0.5s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.frame[data-scene="phone"] .s-phone, .frame[data-scene="watch"] .s-watch, .frame[data-scene="graph"] .s-graph { opacity: 1; transform: none; transition-delay: 0.25s; }
.scene b { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.scene small { font-size: 13px; font-weight: 700; color: var(--muted); }
.island { position: absolute; top: 12px; left: 50%; width: 46px; height: 14px; margin-left: -23px; border-radius: 999px; background: #000; box-shadow: 0 0 0 1px #2a2a2a; }
.mini-wave { width: 100%; max-width: 120px; height: auto; margin-bottom: 14px; fill: rgba(255, 255, 255, 0.3); }
.mini-wave .tick { fill: var(--pink); opacity: 0.35; }
.p-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface); padding: 4px 10px; border-radius: 999px; }
.p-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.w-btns { display: flex; gap: 8px; margin-top: 10px; }
.w-btns span { display: grid; place-items: center; width: 40px; height: 30px; border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 800; transition: background-color 0.2s, transform 0.2s; }
.w-btns span.is-pressed { background: var(--purple); transform: scale(0.92); }
.graph-wrap { position: relative; width: 100%; }
.graph { width: 100%; height: auto; }
/* 느려진 지점의 점. viewBox 300x160 의 (190, 88) */
.g-dot { position: absolute; left: 63.33%; top: 55%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px rgba(234, 23, 99, 0.3); }
.graph .grid line { stroke: rgba(255, 255, 255, 0.14); stroke-dasharray: 3 5; }
.graph path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.graph .g-pink { stroke: var(--pink); }
.graph .g-cyan { stroke: var(--cyan); }
.graph .g-orange { stroke: var(--orange); }
/* 그래프 선은 장면이 켜질 때 왼쪽부터 그려진다 (pathLength=1) */
html.motion .graph path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(0.3, 0.6, 0.2, 1); }
html.motion .frame[data-scene="graph"] .graph path { stroke-dashoffset: 0; }
html.motion .frame[data-scene="graph"] .graph .g-cyan { transition-delay: 0.25s; }
html.motion .frame[data-scene="graph"] .graph .g-pink { transition-delay: 0.5s; }
html.motion .g-dot { opacity: 0; transition: opacity 0.3s 1.6s; }
html.motion .frame[data-scene="graph"] .g-dot { opacity: 1; }
.legend { display: flex; gap: 12px; font-size: 11px; font-weight: 700; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }

.story-steps { display: grid; }
.step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 0; opacity: 0.3; transition: opacity 0.4s; }
.step.is-active { opacity: 1; }
.step h3 { margin: 0; font-size: clamp(26px, 6vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.step p { margin: 0; font-size: 16px; color: var(--muted); max-width: 28em; }
.step:last-child { min-height: 50vh; padding-bottom: 60px; }

@media (min-width: 900px) {
  .story { padding-top: 72px; }
  .story-title { margin-bottom: 0; }
  .story-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .story-stage { order: 2; height: calc(100vh - 64px); min-height: 560px; box-shadow: none; }
  .story-steps { order: 1; }
  .step { min-height: 70vh; padding: 0; }
  .step:first-child { min-height: 60vh; }
  .step h3 { font-size: clamp(34px, 3.6vw, 48px); }
  .step p { font-size: 18px; }
  .frame { --w: 210px; --h: 420px; --r: 44px; }
  .frame[data-scene="watch"] { --w: 210px; --h: 254px; --r: 60px; }
  .frame[data-scene="graph"] { --w: 460px; --h: 290px; --r: 28px; }
  .frame::after { right: -14px; width: 10px; height: 40px; }
  .scene b { font-size: 64px; }
  .scene small { font-size: 15px; }
  .island { width: 60px; height: 18px; margin-left: -30px; top: 16px; }
  .mini-wave { max-width: 150px; margin-bottom: 20px; }
  .story-stage .hr { width: 250px; height: 250px; margin: -125px 0 0 -125px; }
}

/* ---------- 4. 플랜 (주황 판) ---------- */
.plan { --p: 1; background: var(--orange); color: #fff; padding: 56px 0 48px; margin-top: 8px; }
.plan .wrap { display: grid; gap: 22px; }
.plan-head { display: flex; flex-direction: column; gap: 12px; }
.plan-head .chip { background: rgba(0, 0, 0, 0.22); }
.plan-head h2 { margin: 0; font-size: clamp(30px, 7vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.plan-head p { margin: 0; font-size: 16px; font-weight: 500; }
.plan-big { display: flex; align-items: baseline; gap: 10px; line-height: 0.9; }
.plan-big b { font-size: clamp(88px, 24vw, 180px); font-weight: 800; letter-spacing: -0.06em; }
.plan-big span { font-size: 18px; font-weight: 800; }
.stairs { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; height: 260px; align-items: end; }
.stair { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.stair .lab { height: 44px; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; line-height: 1.2; }
.stair b { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; opacity: 0.45; transition: opacity 0.3s; }
.stair small { font-size: 12px; font-weight: 700; opacity: 0.8; }
/* 칸 높이는 20·40·60·80·100%. 세로 길이는 --p(0..1) 가 5칸을 차례로 채우도록 scaleY 로 */
.stair .bar {
  display: block; height: calc((var(--k) + 1) * 16%); margin-bottom: 6px; border-radius: 10px 10px 4px 4px;
  background: rgba(255, 255, 255, 0.28); border: 2px solid rgba(255, 255, 255, 0.55);
  transform-origin: bottom; transform: scaleY(clamp(0, var(--p) * 5 - var(--k), 1));
}
.stairs[data-step="0"] .stair:nth-child(-n+1) b, .stairs[data-step="1"] .stair:nth-child(-n+2) b, .stairs[data-step="2"] .stair:nth-child(-n+3) b,
.stairs[data-step="3"] .stair:nth-child(-n+4) b, .stairs[data-step="4"] .stair:nth-child(-n+5) b { opacity: 1; }
/* 점은 20% 폭 레인 안에서 translate 로만 움직인다 (--s 는 0..4) */
.stairs .lane { --s: 4; position: absolute; left: 0; bottom: 0; width: 20%; height: 100%; pointer-events: none; transform: translate(calc(var(--s) * 100%), calc((var(--s) + 1) * -16% - 50px)); transition: transform 0.45s cubic-bezier(0.3, 0.8, 0.3, 1.2); }
.stairs[data-step="-1"] .lane { opacity: 0; }
.stairs .lane { transition: transform 0.45s cubic-bezier(0.3, 0.8, 0.3, 1.2), opacity 0.3s; }
.stairs .runner { position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9); }
.plan-now { margin: 0; font-size: 14px; font-weight: 700; display: flex; gap: 6px; align-items: baseline; }
.plan-now b { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }

@media (min-width: 900px) {
  .plan { padding: 80px 0 64px; }
  .plan .wrap { grid-template-columns: 1fr 1.2fr; grid-template-areas: "head stairs" "big stairs" "now stairs"; column-gap: 56px; align-items: end; }
  .plan-head { grid-area: head; align-self: start; }
  .plan-big { grid-area: big; }
  .plan-now { grid-area: now; }
  .stairs { grid-area: stairs; height: 360px; gap: 10px; }
  .stair b { font-size: 18px; }
  .stair small { font-size: 13px; }
  .stairs .runner { width: 22px; height: 22px; margin-left: -11px; bottom: -11px; }
}

/* ---------- 5. 이것도 돼요 (박자 점등 칩) ---------- */
.also { padding: 56px 0 24px; }
.also h2 { margin: 0 0 20px; font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.cp {
  display: flex; flex-direction: column; gap: 14px; padding: 16px; min-height: 124px; border-radius: 20px;
  background: var(--surface); font-size: 15px; font-weight: 700; line-height: 1.3;
  transition: background-color 0.22s, transform 0.22s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.cp .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); transition: background-color 0.22s; }
.cp .ico svg { width: 22px; height: 22px; stroke: var(--c); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.22s, transform 0.22s; }
/* 켜진 칩: 제 색으로 차오르고 아이콘은 흰색 */
.cp.is-lit { background: var(--c); transform: scale(1.04); }
.cp.is-lit .ico { background: rgba(0, 0, 0, 0.2); }
.cp.is-lit .ico svg { stroke: #fff; transform: scale(1.12); }
/* 시계가 없으면(움직임 줄이기·JS 없음) 전부 켜 둔다 */
html:not(.motion) .cp { background: var(--c); }
html:not(.motion) .cp .ico { background: rgba(0, 0, 0, 0.2); }
html:not(.motion) .cp .ico svg { stroke: #fff; }
@media (min-width: 640px) { .chips { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .chips { grid-template-columns: repeat(6, 1fr); } .cp { min-height: 150px; padding: 18px; } }

/* ---------- 6. 마무리 ---------- */
.closer { position: relative; padding: 64px 0 40px; overflow: clip; }
.closer::before { content: ""; position: absolute; left: 50%; bottom: -30%; width: 120vw; height: 80%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(234, 23, 99, 0.18), transparent 72%); pointer-events: none; }
.closer .wrap { position: relative; }
.wm { position: relative; }
.wordmark-big { width: 100%; height: auto; color: var(--text); }
/* O 안의 점은 HTML 요소라 박자 펄스가 컴포지터에서 돈다. 위치는 viewBox 950x158 의 (722.68, 79), r=20 */
.wm .wm-dot { position: absolute; left: 76.07%; top: 50%; width: 4.21%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--pink); }
/* 보이면 site.js 가 is-in 을 붙여 왼쪽부터 드러난다 */
html.motion .wm { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(0.3, 0.7, 0.2, 1); }
html.motion .wm.is-in { clip-path: inset(0 0 0 0); }
.closer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; }
.closer-row h2 { margin: 0; font-size: clamp(32px, 8vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
@media (min-width: 900px) { .closer { padding: 96px 0 56px; } .closer-row { margin-top: 40px; } }

/* 움직임 줄이기: 전환은 즉시, 계단·워드마크는 완성 상태 */
@media (prefers-reduced-motion: reduce) {
  .frame, .frame::after, .scene, .step, .cp, .stairs .lane, .w-btns span { transition: none; }
}

/* ---------- 푸터 ---------- */
.foot { padding: 40px 0 48px; color: var(--dim); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { text-decoration: none; font-weight: 600; color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ---------- 문서 페이지 (처리방침·지원) ---------- */
.doc-hero { padding: 28px 0 8px; }
.doc-hero h1 { margin: 0; font-size: clamp(34px, 8vw, 56px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.doc-hero p { margin: 12px 0 0; color: var(--muted); max-width: 40em; }
.meta-pill { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface); padding: 6px 12px; border-radius: 999px; }

.promises { display: grid; gap: 10px; margin: 24px 0 8px; grid-template-columns: 1fr; }
.promise { border-radius: var(--radius); padding: 20px; color: #fff; }
.promise b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.promise span { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.55; }
@media (min-width: 720px) { .promises { grid-template-columns: repeat(3, 1fr); } }

.doc { max-width: 820px; }
.doc.doc-wide { max-width: none; }
.doc h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.doc h2 .n { color: var(--pink); margin-right: 8px; }
.doc h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 700; }
.doc p, .doc li { color: #d6d6d6; }
.doc ul { padding-left: 1.2em; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); }
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 10px; }
.card > p { margin: 0; }

.datalist { display: grid; gap: 8px; margin: 12px 0; }
.data {
  background: var(--surface); border-radius: 18px; padding: 16px 18px;
  display: grid; gap: 6px; grid-template-columns: 1fr;
}
.data h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.data h3 i { width: 10px; height: 10px; border-radius: 3px; display: block; flex: none; }
.data dl { margin: 0; display: grid; grid-template-columns: 4.8em 1fr; gap: 4px 12px; font-size: 14px; }
.data dt { color: var(--dim); font-weight: 700; }
.data dd { margin: 0; color: #d6d6d6; }
html[data-lang="en"] .data dl { grid-template-columns: 5.6em 1fr; }

.path { display: inline; font-weight: 700; color: var(--text); background: var(--surface-high); padding: 1px 7px; border-radius: 6px; font-size: 0.94em; }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: 20px; }
.faq summary {
  list-style: none; cursor: pointer; border-radius: 20px; display: flex; align-items: center; gap: 14px;
  padding: 18px; font-weight: 700; font-size: 16px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; }
.faq summary .ico svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.faq summary .chev { margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-high); display: grid; place-items: center; transition: transform 0.2s ease; }
.faq summary .chev svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 18px 20px 68px; color: #d6d6d6; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer ol, .faq .answer ul { margin: 0 0 10px; padding-left: 1.2em; }
.faq .answer li { margin: 4px 0; }
@media (max-width: 480px) { .faq .answer { padding-left: 18px; } }
/* 펼침 높이 보간. 지원하지 않는 브라우저는 그대로 즉시 열린다 */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0; overflow: clip;
      transition: block-size 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), content-visibility 0.28s allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}

.contact {
  margin-top: 28px; background: var(--pink); border-radius: var(--radius); padding: 24px;
  display: grid; gap: 14px;
}
.contact h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.contact p { margin: 0; font-weight: 500; }
.mail {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--bg);
  text-decoration: none; font-weight: 800; padding: 12px 18px; border-radius: 999px; font-size: 16px; max-width: 100%;
}
.mail svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
