/* 보너스페이 움직임 (11-29 Claude) : 토스처럼 스크롤 연출. JS 가 body 에 .motion 을 붙일 때만 켜짐 */
.app-screen{position:relative}.seq{display:none}.faq-list details p{overflow:hidden}
.motion .seq{display:block;position:absolute;inset:0;pointer-events:none}
.seq-layer{position:absolute;inset:0;background:#fff;display:flex;flex-direction:column;opacity:0}
.seq-layer .app-content{flex:1}
.app-categories .pick{background:var(--blue-soft);box-shadow:inset 0 0 0 1.5px var(--blue)}
.store-hero{display:flex;align-items:center;gap:12px;padding:8px 0 18px}.store-logo{width:56px;height:56px;flex-shrink:0;border-radius:16px;background:var(--surface);color:var(--muted);display:grid;place-items:center;font-size:13px}.store-hero strong{font-size:18px;color:var(--heading)}.store-hero p{font-size:13px;color:var(--muted)}
.store-rows{border-radius:20px;background:var(--surface);padding:4px 16px}.store-rows>div{display:flex;justify-content:space-between;gap:8px;padding:11px 0;font-size:14px;border-bottom:1px solid var(--line)}.store-rows>div:last-child{border:0}.store-rows span{color:var(--muted)}
.go-toast{margin-top:18px;border-radius:16px;background:#333D4B;color:#fff;padding:14px 16px;opacity:0;transform:translateY(8px)}.go-toast p{font-size:13px}.go-bar{height:4px;border-radius:4px;background:rgba(255,255,255,.22);margin-top:10px;overflow:hidden}.go-bar i{display:block;height:100%;background:#fff;transform-origin:left;transform:scaleX(0)}
.go-bottom{padding:10px 17px 6px}.go-btn{margin:0;padding:14px}
.pend-label{font-size:13px;color:var(--muted);margin:4px 0 10px}.pend-card{background:var(--blue-soft);border-radius:20px;padding:16px}.pend-amount{font-size:28px;font-weight:700;color:var(--heading);margin:8px 0 4px}.pend-amount small{font-size:15px}.pend-card .tracking{margin-top:16px}.pend-card .tracking span::before{outline-color:var(--blue-soft)}.pend-note{font-size:13px;color:var(--muted);margin-top:12px}.pend-past{margin-top:24px}.pend-row{display:flex;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid var(--surface);font-size:14px}.pend-row span{color:var(--text)}.pend-row strong{color:var(--heading)}
.done-wrap{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 20px 70px}.done-check{width:76px;height:76px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;margin-bottom:22px}.done-check .icon{width:40px;height:40px;stroke-width:2.4}.done-wrap strong{font-size:20px;color:var(--heading)}.done-amount{font-size:30px;font-weight:700;color:var(--blue);margin-top:6px}.done-note{font-size:13px;color:var(--muted);margin-top:4px}
.tracking span{z-index:1}.tracking::after{content:'';position:absolute;top:5px;left:12.5%;width:25%;height:2px;background:var(--blue);transform-origin:left;transform:scaleX(var(--fill,1))}

/* 첫 구역 : 고정된 채 스크롤로 진행 */
.motion .hero-scroll{height:270vh;position:relative}
.motion .hero-pin{position:sticky;top:0;height:100vh;height:100svh;display:flex;align-items:center;overflow:hidden}
.motion .hero{min-height:0;height:calc(100% - 24px);max-height:900px;transform-origin:50% 45%;will-change:transform}
.motion .hero .reveal{opacity:1;transform:none;transition:none}
.motion .hero-copy,.motion .hero-phone .device-stage,.motion .seq-layer{will-change:opacity,transform}
.motion .hero-float{opacity:0}

/* 이용 방법 : 고정 + 목록 하나씩 */
.motion .guide-list li{opacity:.28;transition:opacity .45s ease}.motion .guide-list li.is-active{opacity:1}
.guide .seq-layer{transition:opacity .5s ease,transform .5s cubic-bezier(.2,.8,.2,1);transform:translateY(14px)}.guide .seq-layer.on{opacity:1;transform:none}
.guide .go-toast{opacity:1;transform:none}.guide .go-bar i{transform:scaleX(.62)}

/* 낱말 등장 */
.motion .split .w{display:inline-block;opacity:0;filter:blur(8px);transform:translateY(.35em);transition:opacity .7s ease,transform .8s cubic-bezier(.2,.8,.2,1),filter .7s ease;transition-delay:calc(var(--i) * 70ms)}
.motion .split.words-in .w{opacity:1;filter:blur(0);transform:none}

/* 맨 위 메뉴 : 내려가면 숨고 올라오면 나옴 */
.motion .site-header{position:sticky;top:0;z-index:40;box-shadow:0 0 0 100vmax #fff;clip-path:inset(0 -100vmax -1px);transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease}
.motion .site-header.is-scrolled{box-shadow:0 0 0 100vmax #fff,0 1px 0 100vmax var(--line)}.motion .site-header.is-hidden{transform:translateY(-100%)}
.motion .mobile-nav{position:sticky;top:64px;z-index:39}

/* 차례로 올라오기 */
.motion .category-grid .category,.motion .promise-grid .promise{opacity:0;transform:translateY(20px);transition:opacity .5s ease,transform .7s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease}
.motion .category-grid.in .category,.motion .promise-grid.in .promise{opacity:1;transform:none}
.motion .category-grid .category:nth-child(2),.motion .promise-grid .promise:nth-child(2){transition-delay:.08s}
.motion .category-grid .category:nth-child(3),.motion .promise-grid .promise:nth-child(3){transition-delay:.16s}
.motion .category-grid .category:nth-child(4),.motion .promise-grid .promise:nth-child(4){transition-delay:.24s}
.motion .event-card.reveal{transition:opacity .5s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
.motion .event-card.reveal:nth-child(2){transition-delay:.1s}.motion .event-card.reveal:nth-child(3){transition-delay:.2s}
@media(hover:hover){.motion .category-grid.in .category:hover{transform:translateY(-4px);box-shadow:var(--shadow);transition-delay:0s}.motion .event-card.reveal.in:hover{transform:translateY(-6px);transition-delay:0s}}

/* 적립 알림 : 위에서 내려오고 진행 선이 차오름 */
.motion .notify-art .notification{opacity:0;transform:translateY(-28px) scale(.96);transition:opacity .6s ease .15s,transform .7s cubic-bezier(.2,.8,.2,1) .15s}
.motion .notify-art.in .notification{opacity:1;transform:none}
.motion .notify-art .tracking::after{transform:scaleX(0);transition:transform .9s cubic-bezier(.2,.8,.2,1) .75s}
.motion .notify-art.in .tracking::after{transform:scaleX(1)}

@media(min-width:700px){
  .motion .guide-scroll{height:340vh;position:relative}
  .motion .guide-pin{position:sticky;top:0;height:100vh;height:100svh;display:flex;align-items:center}
  .motion .guide{padding-block:0;width:100%}
  .motion .guide .device-stage{will-change:transform}
}
@media(min-width:700px) and (max-height:820px){.motion .guide-list{margin-top:28px}.motion .guide-list li{padding:16px 0}.motion .guide-list p{margin-top:6px}}
@media(max-width:699px){.motion .hero-scroll{height:250vh}.motion .hero{height:calc(100% - 16px);padding-top:32px}.motion .hero .device-stage{transform-origin:50% 0}.motion .mobile-nav{top:56px}}

/* ---------- 2차 (11-29) : 3D 장면 · 사이페이에서 가져온 것 ---------- */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hero{position:relative}
.hero-canvas{display:none}
.hero-steps{display:none}
/* 첫 줄 바뀌는 문구 : 기본은 첫 문구만 */
.hero-rot-line{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.hero-rot{display:inline-block;position:relative;height:1.6em;overflow:hidden;vertical-align:bottom}
.hero-rot>span{display:block;line-height:1.6em;white-space:nowrap}
.hero-rot>span:not(:first-child){display:none}
.motion .hero-rot>span{display:block;animation:rot4 9.6s cubic-bezier(.7,0,.3,1) infinite}
@keyframes rot4{0%,20%{transform:translateY(0)}25%,45%{transform:translateY(-100%)}50%,70%{transform:translateY(-200%)}75%,95%{transform:translateY(-300%)}100%{transform:translateY(0)}}

/* 3D 장면 모드 (넓은 화면, JS 가 .has-seq 를 붙일 때) */
.motion .hero-scroll.seq-on{height:440vh}
.motion .seq-on .hero-pin{align-items:stretch}
.motion .seq-on .hero.has-seq{height:100%;max-height:none;margin:0}
.motion .hero.has-seq{width:100%;max-width:none;border-radius:0;padding:0 max(48px,calc((100% - 1224px)/2));display:flex;align-items:center;will-change:clip-path,transform}
.motion .hero.has-seq .hero-canvas{display:block;position:absolute;inset:0;width:100%;height:100%}
.motion .hero.has-seq .hero-phone{display:none}
.motion .hero.has-seq .hero-copy{position:relative;z-index:2;max-width:560px}
.motion .hero.has-seq .hero-steps{display:block;position:absolute;z-index:2;left:max(48px,calc((100% - 1224px)/2));top:50%;transform:translateY(-50%);width:min(520px,42%);height:260px;pointer-events:none}
.hero-step{position:absolute;inset:0;opacity:0;will-change:opacity,transform}
.hero-step-title{font-size:52px;line-height:1.24;font-weight:700;color:var(--heading);letter-spacing:-.025em}
.hero-step-sub{margin-top:20px;font-size:18px;color:var(--muted);line-height:1.6}
@media(max-width:1199px){.hero-step-title{font-size:44px}}
/* 세로 화면(휴대폰) 3D 장면 : 글은 위, 휴대폰은 아래 */
.motion .hero-scroll.seq-on.portrait{height:390vh}
.motion .hero.has-seq.seq-portrait{display:block;padding:0 20px}
.motion .hero.has-seq.seq-portrait .hero-copy{padding-top:76px;max-width:none}
.motion .hero.has-seq.seq-portrait .hero-steps{left:20px;right:20px;width:auto;top:76px;transform:none;height:240px}
.seq-portrait .hero-step-title{font-size:32px;line-height:1.3}
.seq-portrait .hero-step-sub{font-size:15px;margin-top:12px}
.seq-portrait .hero-step .eyebrow{font-size:15px;margin-bottom:10px}
.motion .hero.seq-portrait h1{font-size:38px}
.motion .hero.seq-portrait .description{margin-top:14px}
.motion .hero.seq-portrait .hero-actions{margin-top:18px}
.motion .hero.seq-portrait .hero-note{display:none}

/* 흐르는 띠 */
.ticker{padding-block:72px 16px;overflow:hidden;display:grid;gap:14px}
.ticker-row{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.ticker-track{display:flex;gap:14px;width:max-content}
.ticker-track span{flex-shrink:0;padding:14px 26px;border-radius:999px;background:var(--surface);color:var(--ink);font-size:20px;font-weight:600;white-space:nowrap}
.ticker-track .ticker-em{background:var(--blue-soft);color:var(--blue-pressed)}
.motion .ticker-track{animation:tick 38s linear infinite}
.motion .ticker-row.rev .ticker-track{animation-direction:reverse;animation-duration:44s}
@keyframes tick{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:699px){.ticker{padding-block:48px 8px}.ticker-track span{font-size:16px;padding:11px 18px}}

/* 결제하기 전에, 보너스페이 한 번 */
.before{padding:128px 20px 96px;text-align:center}
.before-line{font-size:64px;line-height:1.25;font-weight:700;color:var(--heading);letter-spacing:-.03em}
.before-rot{display:block;height:1.25em;overflow:hidden;color:var(--muted)}
.before-rot>span{display:block;height:1.25em}
.before-rot>span:not(:first-child){display:none}
.motion .before-rot>span{display:block;animation:rot4 8.8s cubic-bezier(.7,0,.3,1) infinite}
.before-line strong{display:block;color:var(--blue)}
.before-sub{margin-top:28px;font-size:19px;color:var(--muted)}
@media(max-width:959px){.before-line{font-size:48px}}
@media(max-width:699px){.before{padding:88px 20px 64px}.before-line{font-size:34px}.before-sub{font-size:16px}}

/* 알림 여러 장 */
.noti-mini{display:flex;align-items:center;gap:14px;margin-top:12px;background:#fff;border-radius:20px;padding:16px 18px;box-shadow:var(--shadow)}
.noti-mini strong{font-size:16px;color:var(--heading)}
.noti-mini p{font-size:14px;color:var(--muted);margin-top:2px}
.noti-dot{width:36px;height:36px;flex-shrink:0;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center}
.noti-dot .icon{width:19px;height:19px}
.motion .notify-art .noti-mini{opacity:0;transform:translateY(-18px) scale(.97);transition:opacity .55s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
.motion .notify-art.in .noti-mini{opacity:1;transform:none}
.motion .notify-art.in .noti-mini:nth-of-type(2){transition-delay:1.1s}
.motion .notify-art.in .noti-mini:nth-of-type(3){transition-delay:1.6s}

/* 혜택 카드 넘기기 */
.events{position:relative}
.events .event-grid{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:8px 4px 24px;margin-inline:-4px;scroll-padding-inline:4px}
.events .event-grid::-webkit-scrollbar{display:none}
.events .event-card{flex:0 0 min(380px,82vw);scroll-snap-align:start;min-height:400px}
.events .event-card:last-child{grid-column:auto;max-width:none}
.rail-nav{display:flex;gap:10px;justify-content:flex-end;margin-top:-56px;margin-bottom:24px}
.rail-btn{width:48px;height:48px;border-radius:50%;background:var(--surface);display:grid;place-items:center;color:var(--ink)}
.rail-btn:hover{background:var(--line)}
.rail-btn .flip{transform:rotate(180deg)}
@media(max-width:699px){.rail-nav{display:none}}
