/* 바로페이 랜딩 v3 — 1장 휴대폰 속 연출용 화면 + 2장 이후 장면(엄마·안전·이유·하늘·지구·시작·질문)
   장면이 바뀔 때 아래에서 새 층이 밀려 올라오지 않게: 앞 장면이 끝나는 바탕 = 다음 장면이 시작하는 바탕 */
:root { --space: #04060d; --gold: #ffd68c; --side: max(24px, calc((100vw - 1240px) / 2)); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ───── 1장: 설명 글자 — 켜질 때 눈썹 → 제목 줄마다 → 본문 순서로 시간차를 두고 떠오른다 ───── */
.caps .cap { opacity: 1 !important; translate: none !important; pointer-events: none; }
.caps .cap > p, .caps .cap h2 .ln > span { display: inline-block; opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity .35s var(--ease), transform .45s var(--ease), filter .35s; }
.caps .cap > p { display: block; }
.caps .cap h2 .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.caps .cap h2 .ln > span { transform: translateY(105%); filter: none; }
.caps .cap.on > p, .caps .cap.on h2 .ln > span { opacity: 1; transform: none; filter: none; transition: opacity .7s var(--ease), transform 1s var(--ease-o), filter .7s; }
.caps .cap.on > .eyebrow { transition-delay: .05s; }
.caps .cap.on h2 .ln:nth-child(1) > span { transition-delay: .15s; }
.caps .cap.on h2 .ln:nth-child(2) > span { transition-delay: .27s; }
.caps .cap.on h2 .ln:nth-child(3) > span { transition-delay: .39s; }
.caps .cap.on > p:last-of-type { transition-delay: .45s; }
#storyCaps.off .cap > p, #storyCaps.off .cap h2 .ln > span { opacity: 0; transition-duration: .3s; transition-delay: 0s; }
#storyCaps .eyebrow { display: inline-flex !important; align-items: center; gap: 8px; }
#storyCaps .eyebrow b { font-size: 12px; font-weight: 800; color: #fff; background: var(--blue); border-radius: 999px; padding: 3px 8px; }

/* 첫 화면 문구: 열릴 때 줄마다 떠오른다 */
.hero-copy h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-copy h1 .ln > span { display: inline-block; animation: lnUp 1.1s var(--ease-o) both; }
.hero-copy h1 .ln:nth-child(2) > span { animation-delay: .14s; }
.hero-copy .eyebrow, .hero-copy .hero-lead, .hero-copy .hero-cta { animation: fadeUp 1s var(--ease-o) backwards; }
.hero-copy .eyebrow { animation-delay: .05s; } .hero-copy .hero-lead { animation-delay: .36s; } .hero-copy .hero-cta { animation-delay: .5s; }
.hero-badge, .scroll-cue { animation: fadeUp 1s var(--ease-o) .7s backwards; } /* 끝난 뒤엔 스크롤로 감추는 값(인라인)을 따르게 backwards */
@keyframes lnUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* 휴대폰 단계 진행 막대 */
.steps-bar { position: absolute; left: var(--side); top: calc(76px + 5vh); z-index: 5; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; opacity: 0; transform: translateY(-10px); transition: opacity .5s var(--ease), transform .6s var(--ease-o); pointer-events: none; }
.steps-bar.on { opacity: 1; transform: none; }
.steps-bar li { position: relative; display: flex; flex-direction: column; gap: 8px; width: 74px; font-size: 12.5px; font-weight: 600; color: var(--g3); transition: color .4s; }
.steps-bar li::before { content: ''; height: 4px; border-radius: 2px; background: var(--g2); }
.steps-bar li::after { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 0; border-radius: 2px; background: var(--blue); transition: width .7s var(--ease-o); }
.steps-bar li.done::after, .steps-bar li.on::after { width: 100%; }
.steps-bar li.on, .steps-bar li.done { color: var(--ink); }
.steps-bar b { font-size: 11px; font-weight: 800; color: var(--blue); margin-right: 4px; }
.steps-bar li span { white-space: nowrap; }

/* ───── 1장: 실제 앱 화면이 통통 튀며 바뀐다 ───── */
.ps { transform: translateY(28px) scale(.92); transition: opacity .3s var(--ease), transform .75s var(--spring); }
.ps.on { transform: none; }
.ps.gone { transform: translateY(-18px) scale(.96); }

/* 휴대폰 좌우에 떠 있는 카드: 단계가 바뀌면 통통 튀며 나타나고, 떠 있는 동안 살짝 오르내린다 */
.pops { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.flt { position: absolute; top: calc(var(--ay) + var(--hh) * var(--fy)); display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 20px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -14px rgba(30, 50, 90, .28), 0 0 0 1px rgba(0, 0, 0, .03); white-space: nowrap; opacity: 0; filter: blur(8px); transition: opacity .3s var(--ease), transform .35s var(--ease), filter .3s; }
.flt-r { transform: translateX(-40px) scale(.6); }
.flt-l { transform: translateX(40px) scale(.6); }
.flt p > * { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.flt.on { filter: none; transition: opacity .6s var(--ease), transform 1.1s var(--spring), filter .6s; }
.flt.on p > * { opacity: 1; transform: none; transition: opacity .6s .35s, transform .8s .35s var(--ease-o); }
.flt.on p > small { transition-delay: .48s; }
.flt-r { left: calc(var(--ax) + var(--hw) - 34px); transform-origin: 0 50%; }
.flt-r, .flt-l { will-change: transform, opacity; }
.flt-l { right: calc(100% - var(--ax) + var(--hw) - 34px); transform-origin: 100% 50%; }
.flt.on { opacity: 1; transform: none; animation: bob 4s ease-in-out .8s infinite; }
.flt-l.on { transition-delay: .22s; animation-delay: 1.6s; }
.flt-l.on p > * { transition-delay: .55s; } .flt-l.on p > small { transition-delay: .68s; }
@keyframes bob { 50% { translate: 0 -6px; } }
.flt > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--blue); background: var(--blue-l); flex: none; }
.flt > img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); flex: none; }
.flt p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.flt b { font-size: 15px; font-weight: 700; color: var(--ink); }
.flt small { font-size: 13px; color: var(--g4); }

/* 바로페이 AI: 말풍선이 톡 튀어나온다 */
.ac-list .m > * { transform-origin: 0% 100%; }
.ac-list .m.me > * { transform-origin: 100% 100%; }
.ac-list .m.in > * { animation: bub .6s var(--spring) both; }
@keyframes bub { 0% { transform: scale(.55) translateY(10px); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.chip.tap, .c-btn.tap, .ac-send.tap { animation: press .4s var(--spring); }
@keyframes press { 40% { transform: scale(.9); } 100% { transform: none; } }

/* 바로페이 AI 예시 질문 */
.ai-chips { position: absolute; left: var(--side); top: 0; display: flex; flex-wrap: wrap; gap: 8px; width: min(440px, 34vw); margin: 0; padding: 0; list-style: none; z-index: 5; opacity: 0; pointer-events: none; }
.ai-chips { opacity: 1 !important; }
.ai-chips li { opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .3s, transform .3s; }
.ai-chips.on li { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .8s var(--spring); }
.ai-chips.on li:nth-child(1) { transition-delay: .55s; } .ai-chips.on li:nth-child(2) { transition-delay: .67s; } .ai-chips.on li:nth-child(3) { transition-delay: .79s; }
.ai-chips li { padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--g6); background: #fff; box-shadow: 0 0 0 1px var(--g2) inset, 0 8px 20px -12px rgba(0, 0, 0, .15); }

/* ───── 공통: 큰 글자 사이 사진 한 장 → 화면 가득 (학원 시안의 "밝은 공간, [사진] 안심되는 하루") ───── */
.w-row { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 32px); z-index: 2; margin: 0; font-size: clamp(30px, 4.4vw, 70px); font-weight: 800; letter-spacing: -.045em; line-height: 1.2; }
.w-row .w { flex: 1 1 0; min-width: 0; white-space: nowrap; }
.w-row .w:first-child { text-align: right; }
.w-frame { position: relative; flex: 0 0 auto; width: 200px; height: 260px; border-radius: 26px; overflow: hidden; background: #111; }
.w-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.w-dim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 10, 5, .6), rgba(15, 10, 5, .05) 60%), linear-gradient(0deg, rgba(15, 10, 5, .45), transparent 40%); opacity: 0; }

/* ───── 2장: 엄마 ───── */
.mom { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; background: transparent; } /* 1장 끝에 겹쳐 놓고 바탕은 비워 둔다: 올라오는 층이 보이지 않고, 1장이 흰색이 되는 순간 바로 시작 */
.mom-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
#momFrame > img { object-position: 62% 30%; }
.noti { position: absolute; left: 0; top: 0; z-index: 4; width: min(360px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px; background: rgba(245, 245, 247, .8); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .35); opacity: 0; }
.noti img { width: 40px; height: 40px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.noti p { flex: 1; display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); }
.noti small { align-self: flex-start; font-size: 12px; color: var(--g4); }
.mom-cap { position: absolute; left: var(--side); bottom: 12vh; z-index: 4; margin: 0; color: #fff; font-size: clamp(36px, 5vw, 72px); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; text-shadow: 0 4px 30px rgba(0, 0, 0, .3); opacity: 0; }
.to-white { position: absolute; inset: 0; z-index: 6; background: #fff; opacity: 0; pointer-events: none; }

/* ───── 3장: 안전 — 나에서 엄마까지 이어지는 길 ───── */
.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
.start h2, .faq h2 { margin: 0; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.26; font-weight: 800; letter-spacing: -.035em; }
.trust { position: relative; z-index: 3; margin-top: -100vh; margin-top: -100svh; } /* 엄마 장면 끝에 겹쳐 두고, 고정되는 순간 같은 사진으로 이어받는다 */
.tr-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: rgba(255, 255, 255, 0); }
.tr-head { position: absolute; left: var(--side); top: calc(76px + 5vh); z-index: 3; }
.tr-head h2 { margin: 0; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.26; font-weight: 800; letter-spacing: -.035em; }
.tr-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.tr-line { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 4px 10px rgba(52, 143, 255, .35)); }
.tr-end { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translate(-50%, -50%); }
.tr-end img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 12px 30px -8px rgba(20, 40, 80, .35); }
.tr-end p { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.tr-end b { font-size: 16px; } .tr-end small { font-size: 13px; color: var(--g4); }
.tr-av { display: block; width: 76px; height: 76px; border-radius: 50%; }
.tr-photo { position: absolute; left: 0; top: 0; z-index: 3; overflow: hidden; opacity: 0; background: #1a1410; transition: transform .7s var(--spring); }
.tr-photo > img { position: absolute; left: 0; top: 0; max-width: none; }
.tr-photo.av { box-shadow: 0 0 0 4px #fff, 0 12px 30px -8px rgba(20, 40, 80, .35); }
.tr-photo.on { transform: scale(1.12); box-shadow: 0 0 0 4px #fff, 0 0 0 9px rgba(52, 143, 255, .35), 0 16px 40px -8px rgba(52, 143, 255, .5); }
.tr-node, .tr-me { opacity: 0; }
.tr-got { position: absolute; bottom: calc(100% + 10px); left: 50%; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; opacity: 0; transform: translateX(-50%) scale(.4) translateY(12px); transition: opacity .25s, transform .6s var(--spring); }
.tr-got i { color: #5ee0a0; font-size: 16px; }
.tr-mom.on .tr-got { opacity: 1; transform: translateX(-50%); }
.tr-node { position: absolute; left: 0; top: 0; z-index: 2; width: 0; height: 0; }
.tr-dot { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 3px #dfe5ee; color: transparent; font-size: 18px; transition: background .3s, box-shadow .3s, transform .6s var(--spring), color .3s; }
.tr-node.on .tr-dot { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(52, 143, 255, .18); transform: scale(1.15); }
.tr-card { position: absolute; left: 0; top: 34px; width: clamp(200px, 15.5vw, 240px); transform: translateX(-50%) translateY(26px) scale(.7); transform-origin: 50% 0; opacity: 0; border-radius: 22px; background: #fff; overflow: hidden; box-shadow: 0 24px 60px -18px rgba(20, 40, 80, .3), 0 0 0 1px rgba(20, 40, 80, .05); transition: opacity .3s var(--ease), transform .75s var(--spring); }
.tr-node.on .tr-card { opacity: 1; transform: translateX(-50%); }
.tr-node.up .tr-card { top: auto; bottom: 34px; transform-origin: 50% 100%; }
.tr-img { position: relative; height: clamp(110px, 9vw, 140px); overflow: hidden; }
.tr-img img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.tr-tx { padding: 14px 16px 16px; }
.tr-tx h3 { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; }
.tr-tx p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--g6); }
.tr-num .tr-img { background: linear-gradient(135deg, #348fff, #1f5fd0); color: #fff; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.tr-num .bx-k { margin: 0; font-size: 13px; font-weight: 700; opacity: .8; }
.tr-num .bx-n { margin: 0; font-size: clamp(36px, 3vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tr-num .bx-n small { font-size: 16px; margin-left: 4px; letter-spacing: 0; }
.tr-coin { position: absolute; left: 0; top: 0; z-index: 5; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6fb0ff, #2f7cf0 60%, #1d5fd0); color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 10px 26px -6px rgba(52, 143, 255, .7), 0 0 0 5px rgba(52, 143, 255, .15); opacity: 0; will-change: transform; }
.tr-coin span { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .3s, transform .5s var(--spring); }
.tr-coin .c-w { opacity: 0; transform: scale(.4) rotate(-90deg); }
.tr-coin.krw .c-a { opacity: 0; transform: scale(.4) rotate(90deg); }
.tr-coin.krw .c-w { opacity: 1; transform: none; }
.tr-coin.krw { background: radial-gradient(circle at 35% 30%, #ffe2a8, #f5b64a 60%, #e09a2a); box-shadow: 0 10px 26px -6px rgba(245, 182, 74, .7), 0 0 0 5px rgba(245, 182, 74, .18); }

/* ───── 4장: 보내는 이유 — 네 줄로 아래에서 위로 흐른다 ───── */
.reasons { position: relative; background: #fff; }
.rs-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #fff; }
.rs-head { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; width: min(640px, 90vw); text-align: center; }
.rs-head h2 { margin: 0; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.24; font-weight: 800; letter-spacing: -.04em; text-shadow: 0 0 24px #fff, 0 0 12px #fff; }
.rs-head .lead { margin: 16px 0 0; font-size: 18px; color: var(--g6); text-shadow: 0 0 16px #fff; }
.ri, .rn { position: absolute; top: 0; margin: 0; will-change: transform; }
.ri { border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(2, 32, 71, .14); }
.ri img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ri figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rn { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 22px; background: #fff; box-shadow: 0 16px 44px rgba(2, 32, 71, .14); width: clamp(220px, 18vw, 260px); }
.rn i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--blue); background: var(--blue-l); flex: none; }
.rn p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.rn b { font-size: 16px; font-weight: 700; } .rn small { font-size: 13px; color: var(--g4); }
.lA { left: 3%; } .lB { left: 17.5%; } .lC { left: 70%; } .lD { left: 84%; }
.ri.lA { width: 14vw; } .ri.lB { width: 11.5vw; } .ri.lC { width: 12.5vw; } .ri.lD { width: 13vw; }
.rn.lB { left: 15%; } .rn.lC { left: 66%; }

/* ───── 5장: 하늘 → 우주 → 지구 ───── */
.sky { position: relative; background: #fff; }
.sky-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #fff; }
#skyFrame { background: #0b1530; }
#skyFrame > img { object-position: 50% 100%; transform-origin: 50% 100%; }
.stars { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: 0; }
.globe-wrap { position: absolute; inset: 0; z-index: 4; display: flex; justify-content: center; padding-top: 76px; opacity: 0; will-change: transform; }
.gl-copy { position: absolute; left: 0; right: 0; bottom: 7vh; z-index: 5; text-align: center; color: #fff; padding: 0 24px; opacity: 0; }
.gl-copy .ln { display: block; }
.gl-copy h2 { margin: 0; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.3; font-weight: 800; letter-spacing: -.035em; }
.gl-copy > p:last-child { margin: 16px 0 0; font-size: 17px; color: rgba(255, 255, 255, .7); }
.gl-route { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.gl-route i { width: 60px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(255, 214, 140, .2)); }

/* ───── 6장: 시작하기 · 자주 묻는 질문 · 푸터 (우주 배경이 이어진다) ───── */
.start { position: relative; padding: 42vh 0 160px; text-align: center; color: #fff; background: var(--space); }
/* 지구 장면의 별이 그대로 이어지다가 긴 거리를 두고 서서히 사라진다 (선 없이 같은 어두운 바탕만 남는다) */
.start::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 150vh; background: var(--stars, none) repeat 0 0 / var(--stars-size, auto); -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .75) 25%, rgba(0, 0, 0, .3) 55%, transparent 100%); mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .75) 25%, rgba(0, 0, 0, .3) 55%, transparent 100%); pointer-events: none; }
.start .wrap { position: relative; z-index: 1; }
.faq, .foot2 { background: var(--space); }
.foot2 .foot-about { max-width: 720px; color: rgba(255, 255, 255, .62); line-height: 1.7; }
.start-ic { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 36px; display: block; box-shadow: 0 20px 60px -12px rgba(52, 143, 255, .55); }
.start h2 { font-size: clamp(40px, 5vw, 72px); }
.start .wrap > p { margin: 20px 0 0; font-size: 19px; color: rgba(255, 255, 255, .7); }
.store { display: flex; justify-content: center; gap: 12px; margin-top: 48px; flex-wrap: wrap; }
.st { display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px 0 20px; border-radius: 18px; background: #fff; color: var(--ink); text-align: left; transition: transform .25s var(--ease), background .25s; }
.st-ic { width: 26px; height: 26px; flex: none; }
.st:hover { transform: translateY(-3px); }
.st span { display: flex; flex-direction: column; font-size: 18px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.st small { font-size: 11px; font-weight: 500; color: var(--g4); letter-spacing: 0; }
.st-web { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset; -webkit-font-smoothing: antialiased; }
.st-web span { font-weight: 500; }
.st-web:hover { background: rgba(255, 255, 255, .14); }
.st-web small { color: rgba(255, 255, 255, .6); }
.faq { padding: 160px 0 120px; color: #fff; }
.faq .eyebrow { color: #8fbaff; }
.faq-in { display: grid; grid-template-columns: 360px 1fr; gap: 60px; }
.faq h2 { font-size: clamp(32px, 3.4vw, 48px); }
.faq-cs { margin: 28px 0 0; font-size: 16px; line-height: 1.9; color: rgba(255, 255, 255, .6); }
.faq-cs a { font-weight: 700; color: #fff; }
.qa details { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '\ea5f'; font-family: 'tabler-icons'; font-size: 22px; color: rgba(255, 255, 255, .5); transition: transform .3s var(--ease); }
.qa summary { transition: color .25s; }
.qa summary:hover { color: #cfe0ff; }
.qa summary::after { transition: transform .45s var(--ease-o); }
.qa details.is-open summary::after { transform: rotate(180deg); }
.qa-body { overflow: hidden; }
.qa-in { padding: 0 0 26px; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, .7); max-width: 680px; }
.qa-in p, .qa-in ul, .qa-in ol { margin: 0 0 8px; }
.qa-in ul, .qa-in ol { padding-left: 20px; }
.qa-in li { margin: 2px 0; }
.qa-in li::marker { color: #6f93d8; }
.qa-in a { color: #8fbaff; text-decoration: underline; }
.foot2 { padding: 56px 0 64px; color: rgba(255, 255, 255, .45); font-size: 13.5px; line-height: 1.8; }
.foot2 .foot-logo { height: 20px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .5; }
.foot2 p { margin: 0; }
.foot2 p + p { margin-top: 10px; }
.foot2 .cr { margin-top: 18px; font-size: 12.5px; }

/* ───── 휴대폰 화면 ───── */
@media (max-width: 900px) {
  .pops, .ai-chips { display: none; }
  #storyCaps .cap { translate: 0 20px; }
  .w-row { flex-direction: column; gap: 18px; font-size: clamp(28px, 8vw, 36px); }
  .w-row .w, .w-row .w:first-child { flex: none; text-align: center; }
  .w-frame { width: 140px; height: 182px; border-radius: 20px; }
  #momFrame > img { object-position: 57% 30%; }
  .tr-head { top: calc(64px + 14px); }
  .tr-head h2 { font-size: 27px; }
  .tr-head .eyebrow { margin-bottom: 8px; }
  .tr-end { flex-direction: row; gap: 10px; transform: translate(-30px, -50%); }
  .tr-end img, .tr-av { width: 52px; height: 52px; }
  .tr-end p { align-items: flex-start; }
  .tr-got { left: 62px; bottom: auto; top: 50%; transform: translateY(-50%) scale(.4); transform-origin: 0 50%; }
  .tr-mom.on .tr-got { transform: translateY(-50%); }
  .tr-dot { width: 28px; height: 28px; left: -14px; top: -14px; font-size: 15px; }
  .tr-card { left: 30px; top: -38px; width: calc(100vw - 96px); display: flex; transform: translateX(16px) scale(.8); transform-origin: 0 50%; border-radius: 18px; }
  .tr-node.on .tr-card { transform: none; }
  .tr-node.up .tr-card { top: -38px; bottom: auto; }
  .tr-img { flex: none; width: 92px; height: auto; min-height: 84px; }
  .tr-tx { padding: 10px 12px; }
  .tr-tx h3 { font-size: 14.5px; }
  .tr-tx p { font-size: 12px; margin-top: 3px; }
  .tr-num .tr-img { padding: 10px; }
  .tr-num .bx-n { font-size: 24px; }
  .tr-num .bx-n small { display: block; margin: 2px 0 0; font-size: 11px; }
  .tr-coin { width: 40px; height: 40px; margin: -20px 0 0 -20px; font-size: 13px; }
  .mom-cap { bottom: 10vh; }
  .lA { left: 3%; } .lB { left: 8%; } .lC { left: 56%; } .lD { left: 60%; }
  .ri.lA, .ri.lB, .ri.lC, .ri.lD { width: 36vw; }
  .rn.lB { left: 4%; } .rn.lC { left: 40%; }
  .rn { width: 56vw; padding: 12px 14px; }
  .ri figcaption { font-size: 12px; left: 8px; bottom: 8px; padding: 5px 9px; }
  .globe-wrap { padding-top: 64px; }
  .start { padding: 36vh 0 120px; }
  .st { width: 100%; max-width: 320px; justify-content: center; }
  .faq { padding: 90px 0; }
  .faq-in { grid-template-columns: 1fr; gap: 30px; }
  .qa summary { font-size: 17px; padding: 22px 0; }
  .qa-in { font-size: 14.5px; }
}

#skyCam { position: absolute; inset: 0; will-change: transform; }
.sky-grad::after { content: ''; position: absolute; inset: 0; background: var(--stars-t) 0 0 / var(--stars-size) repeat; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 22%, transparent 52%); mask-image: linear-gradient(to bottom, #000 0, #000 22%, transparent 52%); }
/* 영상 끝(하늘색) 위로 이어지는 하늘 → 우주 그라데이션. 카메라가 올라가듯 아래로 내려온다. 아래 14%는 영상 위에 겹쳐 경계를 지운다 */
.sky-grad { position: absolute; left: 0; right: 0; bottom: 86%; height: 260%; background: linear-gradient(to top, rgba(81, 122, 168, 0) 0, #517aa8 5.4%, #3f6a9b 16%, #2a4a7a 32%, #172d57 50%, #0b1633 68%, #060a18 84%, #04060d 100%); }
#skyCam > video { --zs: 1.3; --zx: 0%; --zy: 0%; --opx: 8%; object-position: var(--opx) 50% !important; transform: translate(var(--zx), var(--zy)) scale(var(--zs)) !important; transform-origin: 50% 50% !important; } /* 확대는 CSS 변수로 (틀 크기가 바뀌어도 기준점이 가운데) */
#skyCam > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.reveal { opacity: 0; transform: translateY(40px); }
/* 알림 꼬리: 휴대폰 쪽을 가리킨다 */
.noti::before { content: ''; position: absolute; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.noti.side::before { left: -6px; top: 50%; margin-top: -7px; }
.noti.top::before { left: var(--ax, 50%); bottom: -6px; margin-left: -7px; }
.tr-coin { transition: background .3s, box-shadow .3s; }
.tr-coin.arrived { background: transparent; box-shadow: none; }
.tr-coin.arrived span { opacity: 0 !important; transform: scale(0) !important; }

/* 언어 바꾸기 (KO · EN) */
.lang { display: inline-flex; align-items: center; height: 34px; padding: 3px; border-radius: 999px; background: rgba(127, 127, 127, .14); margin-right: 6px; }
.lang button { height: 28px; min-width: 34px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; opacity: .6; cursor: pointer; transition: background .25s, opacity .25s, color .25s; }
.lang button.on { opacity: 1; background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.gnb.is-light .lang { background: rgba(25, 31, 40, .06); }
@media (max-width: 900px) { .lang { height: 30px; } .lang button { height: 24px; min-width: 30px; font-size: 11.5px; padding: 0 6px; } }

/* ───── 우측 하단 고객센터 (바로페이 웹 FloatingSupportButton 과 같은 모양) ───── */
.sp { position: fixed; right: 32px; bottom: 32px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--font); }
.sp [hidden] { display: none !important; }
@keyframes sp-pop { 0% { opacity: 0; transform: translateY(12px) scale(.92); } 60% { transform: translateY(-2px) scale(1.02); } 100% { opacity: 1; transform: none; } }
@keyframes sp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes sp-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
.sp .pop { animation: sp-pop .32s cubic-bezier(.2, .9, .3, 1.2) both; transform-origin: bottom right; }
.sp-btn { position: relative; width: 56px; height: 56px; border: 0; padding: 0; border-radius: 50%; background: #ffe812; color: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 20px 25px -5px rgba(148, 163, 184, .4), 0 8px 10px -6px rgba(148, 163, 184, .4); transition: transform .3s, box-shadow .3s; }
.sp-btn.float { animation: sp-float 3.2s ease-in-out infinite; }
.sp-btn:hover { transform: scale(1.05); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 25px 50px -12px rgba(0, 0, 0, .25); }
.sp-btn:active { transform: scale(.95); }
.sp-talk, .sp-x { position: absolute; transition: opacity .3s, transform .3s; }
.sp-x { font-size: 24px; opacity: 0; transform: rotate(-90deg) scale(.5); }
.sp-btn.open .sp-talk { opacity: 0; transform: rotate(90deg) scale(.5); }
.sp-btn.open .sp-x { opacity: 1; transform: none; }
.sp-greet { max-width: 240px; border: 1px solid #f1f5f9; border-radius: 16px 16px 6px 16px; background: #fff; padding: 12px 16px; text-align: left; font: inherit; font-size: 13px; line-height: 1.375; color: #334155; font-weight: 600; cursor: pointer; box-shadow: 0 20px 25px -5px rgba(203, 213, 225, .6), 0 8px 10px -6px rgba(203, 213, 225, .6); }
.sp-card { width: 300px; max-width: calc(100vw - 40px); border-radius: 24px; background: #fff; border: 1px solid #f1f5f9; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(148, 163, 184, .4); }
.sp-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; background: linear-gradient(to bottom right, #348fff, #5aa9ff); color: #fff; }
.sp-av { position: relative; width: 40px; height: 40px; border-radius: 16px; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sp-av span { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #34d399; border: 2px solid #4a9dff; }
.sp-title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; }
.sp-on { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .85); }
.sp-on span { width: 6px; height: 6px; border-radius: 50%; background: #6ee7b7; }
.sp-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sp-msg { align-self: flex-start; border-radius: 16px 16px 16px 6px; background: #f1f5f9; padding: 10px 14px; font-size: 13px; line-height: 1.625; color: #334155; font-weight: 500; }
.sp-dots { display: flex; align-items: center; gap: 4px; padding-left: 4px; }
.sp-dots span { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; animation: sp-typing 1.2s ease-in-out infinite; }
.sp-dots span:nth-child(2) { animation-delay: .15s; } .sp-dots span:nth-child(3) { animation-delay: .3s; }
.sp-start { height: 48px; border-radius: 16px; background: #348fff; color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .15s; }
.sp-start i { font-size: 18px; }
.sp-start:hover { background: #2b82f0; } .sp-start:active { transform: scale(.98); }
.sp-phone { height: 48px; border-radius: 16px; background: #f8fafc; color: #1e293b; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; transition: all .15s; }
.sp-phone span { display: flex; align-items: center; gap: 8px; color: #64748b; font-size: 13px; font-weight: 600; }
.sp-phone span i { font-size: 18px; color: #334155; }
.sp-phone b { letter-spacing: -.025em; }
.sp-phone:hover { background: #f1f5f9; } .sp-phone:active { transform: scale(.98); }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sp-grid a { height: 56px; border-radius: 16px; color: #475569; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: all .15s; }
.sp-grid a i { font-size: 18px; color: #334155; }
.sp-grid a:hover { background: #f8fafc; } .sp-grid a:active { background: #f1f5f9; transform: scale(.97); }
@media (max-width: 767px) { .sp { right: 20px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .sp .pop, .sp-btn.float, .sp-dots span { animation: none; } }

/* 첫 화면이 뜰 때 스크립트가 자리를 잡기 전까지 3D 휴대폰을 숨긴다 (왼쪽 위에 잠깐 보이던 것) */
.rig { opacity: 0; }

@media (max-width: 900px) { .steps-bar { left: 20px; right: 20px; top: calc(64px + 10px); gap: 4px; } .steps-bar li { flex: 1; width: auto; font-size: 10.5px; gap: 5px; } .steps-bar li span { display: none; } }

/* ── 바로페이 AI 대화 단계 막대: 휴대폰 막대와 같은 자리, 설명은 그 아래로 ── */
.caps-chat { top: calc(76px + 5vh + 104px); }
@media (max-width: 900px) { .caps-chat { top: calc(64px + 64px); } }

/* ── 단계 화면 설명 아래 좌우 버튼 ── */
.snav { display: flex; gap: 10px; margin-top: 26px; opacity: 0; transform: translateY(16px); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.caps .cap.on .snav { opacity: 1; transform: none; pointer-events: auto; transition: opacity .7s var(--ease) .6s, transform 1s var(--ease-o) .6s; }
#storyCaps.off .snav { opacity: 0; pointer-events: none; transition-delay: 0s; }
.snav button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px -10px rgba(30, 50, 90, .3); transition: transform .35s var(--spring), background .2s, color .2s, border-color .2s; }
.snav button:hover { transform: scale(1.08); background: var(--blue); color: #fff; }
.snav button:active { transform: scale(.94); }
.snav svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .snav { justify-content: center; margin-top: 14px; } .snav button { width: 40px; height: 40px; } .caps-chat .snav { justify-content: flex-start; } }

/* ── 오른쪽 장면 표시: 지금 장면은 길어진 점 + 이름이 떠오른다 ── */
.rail { position: fixed; right: 26px; top: 50%; z-index: 60; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 0; padding: 0; list-style: none; --rc: rgba(255, 255, 255, .9); --rd: rgba(255, 255, 255, .38); transition: opacity .4s; }
.rail[data-tone="light"] { --rc: var(--ink); --rd: rgba(25, 31, 40, .22); }
.rail.hide { opacity: 0; pointer-events: none; }
.rail button { display: flex; align-items: center; gap: 12px; padding: 7px 0 7px 12px; border: 0; background: none; cursor: pointer; color: var(--rc); font: inherit; }
.rail i { display: block; width: 16px; height: 1px; border-radius: 1px; background: var(--rd); transition: width .6s var(--ease-o), background .3s; } /* 가로 선: 지금 장면은 길고 파랗게 */
.rail span { font-size: 13px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; opacity: 0; transform: translateX(10px); filter: blur(4px); transition: opacity .3s, transform .4s var(--ease), filter .3s; text-shadow: 0 1px 10px rgba(0, 0, 0, .12); }
.rail button:hover span { opacity: .65; transform: none; filter: none; }
.rail button:hover i { background: var(--rc); width: 22px; }
.rail .on i { width: 34px; background: var(--blue); }
.rail .on button:hover i { width: 34px; background: var(--blue); }
.rail .on span { opacity: 1; transform: none; filter: none; transition: opacity .6s var(--ease) .1s, transform .8s var(--ease-o) .1s, filter .6s .1s; }
@media (max-width: 900px) { .rail { right: 6px; } .rail span { display: none; } .rail button { padding: 5px 6px; } .rail i { width: 10px; } .rail .on i { width: 20px; } }

/* ── 스크롤 안내: 첫 화면 뒤에도 계속 (어떤 배경에서도 보이게 반전 섞기) ── */
#scrollCue { display: none; }
.cue-fix { position: fixed; left: 50%; bottom: 26px; z-index: 55; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; mix-blend-mode: difference; font-size: 12px; font-weight: 600; letter-spacing: .08em; pointer-events: none; transition: opacity .5s, transform .5s var(--ease); animation: fadeUp 1s var(--ease-o) .7s backwards; }
.cue-fix span { width: 22px; height: 34px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 12px; position: relative; }
.cue-fix span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
.cue-fix.hide { opacity: 0; transform: translateX(-50%) translateY(10px); }
.cue-fix.busy { opacity: .35; }
@media (max-width: 900px) { .cue-fix { bottom: 16px; font-size: 11px; } .cue-fix span { width: 18px; height: 28px; } }

/* ── 먼 이동 때 잠깐 덮는 막 ── */
.veil { position: fixed; inset: 0; z-index: 90; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.veil.on { opacity: 1; }

/* ── 메뉴가 열리면 장면 표시·스크롤 안내는 숨김 ── */
.menu-open .rail, .menu-open .cue-fix { opacity: 0 !important; pointer-events: none; }

@media (max-width: 900px) {
  #storyCaps .cap .eyebrow { display: none !important; } /* 번호는 위 단계 막대가 보여 준다 */
  .snav { display: none; }                                /* 모바일은 쓸어 넘기기 */
  .rail { display: none; }
  .cue-fix { display: none; }                            /* 첫 화면 배지와 겹침 */
  .caps-chat .cap h2 { font-size: 24px; }
  .cap h2 { text-wrap: balance; }
  .gl-copy { bottom: auto; top: calc(64px + (100svh - 76px) * .6 + 8px); }
  .ai-chips { display: none; }
}

/* 돈 동전 → 국기: 호주 국기가 길을 따라가다 한국 국기로 뒤집힌다 (circle-flags, MIT) */
.tr-coin, .tr-coin.krw { background: #fff; box-shadow: 0 10px 26px -6px rgba(30, 60, 120, .45), 0 0 0 4px rgba(255, 255, 255, .9), 0 0 0 5px rgba(25, 31, 40, .06); }
.tr-coin span { inset: 3px; }
.tr-coin img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.tr-coin.arrived { background: transparent; box-shadow: none; }

/* ── 첫 화면: 사람이 왼쪽에 있으니 문구는 오른쪽 (데스크톱) ── */
@media (min-width: 901px) {
  .hero-copy { left: auto; right: max(24px, calc((100vw - 1240px) / 2)); width: min(600px, 44vw); max-width: none; }
  .hero-copy h1 { font-size: clamp(40px, 4.4vw, 70px); }
  .hero-shade { --grad: linear-gradient(270deg, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .36) 40%, rgba(0, 0, 0, .04) 70%), linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 40%); }
  .hero-badge { right: auto; left: max(24px, calc((100vw - 1240px) / 2)); }
}
