/* 사용 방법 (2026-10-25): 앱 설정 '사용 방법이 궁금해요'와 같은 다섯 단계. 폰 크기와 글자는 앱 그대로(236x444)에 zoom 으로 키운다 */
.bar-links a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.g-head { padding: calc(64px + clamp(56px, 9vw, 140px)) 0 clamp(48px, 6vw, 96px); }
.g-head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end; }
.g-head .wrap > :not(.g-index) { grid-column: 1; }
.g-index { grid-column: 2; grid-row: 1 / span 3; align-self: end; border-top: 2px solid var(--ink); }
.g-index a { display: flex; align-items: baseline; gap: 18px; padding: 18px 4px; border-bottom: 1px solid rgba(28, 18, 9, .18); font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; transition: padding-left .25s, color .25s; }
.g-index b { font-size: 15px; color: var(--amber); }
.g-index a:hover { padding-left: 14px; color: var(--amber); }
.g-head h1 { font-size: var(--t-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.05em; }
.g-head .lead { margin-top: 32px; }
.seg { justify-self: start; margin-top: 40px; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: var(--pale); }
.seg a { min-height: 48px; padding: 0 26px; display: grid; place-items: center; border-radius: 12px; font-weight: 800; font-size: 16px; text-decoration: none; }
.seg a:first-child { background: #fff; box-shadow: 0 2px 6px rgba(90, 50, 0, .1); }

/* 단계: 왼쪽 글, 오른쪽 폰 무대 */
.g-steps { padding-bottom: calc(var(--gap) * .6); }
.steps { display: grid; gap: clamp(72px, 9vw, 140px); }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: center; scroll-margin-top: 80px; }
.step-no { font-size: 15px; font-weight: 800; color: var(--amber); letter-spacing: .02em; }
.step h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 60px); line-height: 1.16; letter-spacing: -0.04em; }
.step-copy p { margin-top: 22px; font-size: 19px; max-width: 30em; }

.stage {
  --z: 1.28;
  display: grid; justify-items: center; gap: 18px; padding: clamp(28px, 4vw, 56px) 16px clamp(22px, 3vw, 40px);
  border-radius: 32px; background: linear-gradient(180deg, #FFEFD3, var(--pale));
}
.cap { min-height: 1.5em; font-size: 17px; font-weight: 800; text-align: center; transition: opacity .25s; }
.cap.swap { opacity: 0; }

/* 폰 껍데기 */
.phone { zoom: var(--z); width: 236px; height: 444px; padding: 6px; border-radius: 42px; background: #0B0F17; border: 1.5px solid #2A303B; box-shadow: 0 18px 40px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .08); }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: 36px; background: #fff; color: #191F28; font-size: 11px; line-height: 1.35; letter-spacing: -0.01em; }
.screen::before { /* 카메라 알약 */
  content: ''; position: absolute; z-index: 9; top: 9px; left: 50%; width: 66px; height: 19px; margin-left: -33px; border-radius: 10px; background: #000;
}
.screen::after { /* 홈 막대 */
  content: ''; position: absolute; z-index: 9; bottom: 6px; left: 50%; width: 80px; height: 4px; margin-left: -40px; border-radius: 2px; background: rgba(25, 31, 40, .85);
}
.phone.dark .screen::after { background: rgba(255, 255, 255, .85); }
.screen, .screen * { transition: opacity .34s cubic-bezier(.2,.8,.2,1), transform .34s cubic-bezier(.2,.8,.2,1), background-color .34s, color .34s; }

/* 상태 줄: 잠금 화면에서는 흰 글자 */
.sb { position: absolute; z-index: 9; top: 0; left: 0; right: 0; height: 34px; padding: 0 20px 0 24px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #191F28; fill: currentColor; pointer-events: none; }
[data-sim="alert"]:not([data-stage="2"]) .sb { color: #fff; }

/* 눌러 볼 곳: 꿀색 고리가 번지고, 누르는 순간 살짝 눌린다 */
.hint { position: relative; }
.hint::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--orange); opacity: 0; pointer-events: none; }
.hint.on::after { opacity: 1; animation: ring 1.2s ease-out infinite; }
.hint.press { transform: scale(.93); }
@keyframes ring { from { transform: scale(.96); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }

/* 1. 쇼핑 앱 상품 화면 */
.shop { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pimg { position: relative; height: 178px; display: grid; place-items: center; background: linear-gradient(135deg, #FFF6E5, #FDE7C3); font-size: 75px; line-height: 1; }
.pimg.short { height: 110px; font-size: 46px; }
.heart { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px rgba(0,0,0,.13); }
.heart::before { content: '♡'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-style: normal; }
.dots { display: flex; justify-content: center; gap: 4px; padding-top: 6px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #8B95A1; }
.dots i + i { background: none; border: .8px solid #B0B8C1; }
.srow { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 0 12px; font-size: 10px; font-weight: 700; }
.srow b { color: #C2410C; font-weight: 800; }
.srow.small { padding-top: 2px; padding-right: 12px; font-size: 9px; font-weight: 400; }
.share { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; fill: currentColor; }
.seller, .stars em { color: #346AFF; font-style: normal; }
.stars { color: #F7883A; letter-spacing: -0.5px; }
.pname { padding: 8px 12px 0; }
.pprice { padding: 4px 12px 0; display: flex; align-items: baseline; gap: 4px; }
.pprice .off { font-size: 13px; color: #E52528; }
.pprice b:not(.off) { font-size: 15px; font-weight: 900; }
.pprice s { font-size: 9px; color: #B0B8C1; }
.buybar { margin-top: auto; margin-bottom: 18px; padding: 6px; display: grid; grid-template-columns: 34px 1fr 1fr; gap: 5px; border-top: 1px solid #E5E7EB; font-size: 10px; font-weight: 700; }
.buybar span { height: 34px; display: grid; place-items: center; border-radius: 5px; }
.qty { border: 1px solid #D1D5DB; }
.cart { border: 1px solid #346AFF; color: #346AFF; }
.buy { background: #346AFF; color: #fff; }

.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .38); opacity: 0; }
.sys-sheet, .k-sheet { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 18px 18px 0 0; background: #F2F2F7; transform: translateY(105%); }
.sys-sheet { height: 290px; padding: 14px 12px 0; }
.sys-top { display: grid; grid-template-columns: 30px 1fr 18px; gap: 8px; align-items: center; font-weight: 700; font-size: 10px; }
.sys-top small { display: block; font-weight: 400; color: #8B95A1; font-size: 9px; }
.sys-thumb { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: #FDE7C3; font-size: 16px; }
.x { width: 18px; height: 18px; border-radius: 50%; background: #E5E5EA; display: grid; place-items: center; font-style: normal; color: #8B95A1; }
.sys-people, .sys-apps, .sys-acts { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 8.5px; }
.sys-people { margin-top: 16px; }
.sys-people span, .sys-apps span { display: grid; justify-items: center; gap: 4px; }
.sys-people i { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 15px; font-weight: 700; }
.sys-apps { margin-top: 14px; }
.sys-apps i { width: 40px; height: 40px; border-radius: 10px; }
.sys-apps img { width: 40px; height: 40px; border-radius: 10px; }
.sys-apps .pick { border-radius: 10px; }
.ic-msg { background: #34C759; } .ic-mail { background: #1A8CFF; } .ic-memo { background: linear-gradient(#FFD60A 28%, #fff 28%); box-shadow: inset 0 0 0 1px #E5E5EA; }
.sys-acts { margin-top: 14px; padding: 10px 0; border-radius: 12px; background: #fff; color: #191F28; }
.k-sheet { height: 210px; background: #fff; display: grid; place-items: center; }
.k-reading, .k-added { grid-area: 1 / 1; display: grid; justify-items: center; gap: 12px; text-align: center; }
.k-reading b { font-size: 13px; }
.k-added { opacity: 0; transform: scale(.9); }
.k-added b { font-size: 15px; font-weight: 800; }
.k-added small { margin-top: -8px; color: #6B7684; }
.check { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 24px; font-weight: 900; }
.spin { width: 24px; height: 24px; border-radius: 50%; border: 2.6px solid #FFE7BF; border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

[data-sim="share"][data-stage="1"] .scrim, [data-sim="share"][data-stage="2"] .scrim, [data-sim="share"][data-stage="3"] .scrim { opacity: 1; }
[data-sim="share"][data-stage="1"] .sys-sheet { transform: none; }
[data-sim="share"][data-stage="2"] .k-sheet, [data-sim="share"][data-stage="3"] .k-sheet { transform: none; }
[data-sim="share"][data-stage="3"] .k-reading { opacity: 0; }
[data-sim="share"][data-stage="3"] .k-added { opacity: 1; transform: none; }

/* 2. 잠금 화면 → 상품 화면 */
.lock { position: absolute; inset: 0; color: #fff; text-align: center; padding-top: 44px; background: linear-gradient(180deg, #1E2A44, #3B2F4A 55%, #B7782A); }
.lock-date { font-size: 11px; font-weight: 600; opacity: .9; }
.lock-time { font-size: 58px; font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
.noti { margin: 22px 10px 0; padding: 10px; display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: start; text-align: left; border-radius: 16px; background: rgba(255, 255, 255, .88); color: #191F28; opacity: 0; transform: translateY(-24px); }
.noti img { border-radius: 8px; }
.noti b { display: block; font-size: 12px; font-weight: 800; }
.noti small { display: block; font-size: 10.5px; color: #333D4B; }
.noti time { font-size: 10px; color: #8B95A1; }
.detail { position: absolute; inset: 0; padding-top: 36px; background: #fff; opacity: 0; display: flex; flex-direction: column; }
.dname { padding: 12px 16px 0; font-size: 12px; font-weight: 600; }
.dprice { padding: 4px 16px 0; display: flex; align-items: baseline; gap: 6px; }
.dprice b { font-size: 22px; font-weight: 900; }
.dprice em { font-style: normal; font-size: 11px; font-weight: 800; color: #E8590C; }
.drop { margin: 14px 16px 40px; flex: 1; width: calc(100% - 32px); height: auto; }
.drop path { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); }
.drop circle { opacity: 0; transition: opacity .3s .8s; }
[data-sim="alert"][data-stage="1"] .noti { opacity: 1; transform: none; }
[data-sim="alert"][data-stage="2"] .detail { opacity: 1; }
[data-sim="alert"][data-stage="2"] .phone .screen::after { background: rgba(25, 31, 40, .85); }
[data-sim="alert"][data-stage="2"] .drop path { stroke-dashoffset: 0; }
[data-sim="alert"][data-stage="2"] .drop circle { opacity: 1; }

/* 3, 4, 5. 꿀타임 화면 */
.app { padding: 40px 16px 0; }
.app-title { font-size: 15px; font-weight: 800; }
.balance { margin-top: 14px; display: flex; align-items: center; gap: 6px; }
.balance b { font-size: 24px; font-weight: 900; }
.cta { position: absolute; left: 16px; right: 16px; bottom: 26px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--orange); color: #1C1209; font-size: 12px; font-weight: 800; }
.cta.dark { background: #191F28; color: #fff; }
.cta b { grid-area: 1 / 1; }
.earn { margin-top: 18px; opacity: 0; transform: translateY(10px); }
.earn-row { display: flex; justify-content: space-between; padding: 12px; border-radius: 14px; background: #F9FAFB; font-weight: 700; }
.earn-row small { display: block; font-size: 11px; font-weight: 400; color: #8B95A1; }
.plus { text-align: right; color: var(--amber); font-size: 15px; font-weight: 900; }
.pot { margin: 16px auto 0; width: 140px; padding: 12px 0; border-radius: 20px; display: grid; justify-items: center; gap: 6px; }
.pot-n, .pot-got { grid-row: 2; grid-column: 1; font-size: 13px; font-weight: 800; }
.pot-got { opacity: 0; color: var(--amber); font-size: 18px; transform: translateY(6px); }
[data-sim="honey"]:not([data-stage="0"]) .earn { opacity: 1; transform: none; }
[data-sim="honey"]:not([data-stage="0"]) .cta { opacity: 0; }
[data-sim="honey"][data-stage="2"] .pot img { animation: wobble .9s ease-in-out infinite; }
[data-sim="honey"][data-stage="3"] .pot img { transform: scale(1.12); }
[data-sim="honey"][data-stage="3"] .pot-n { opacity: 0; }
[data-sim="honey"][data-stage="3"] .pot-got { opacity: 1; transform: none; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

.gift-img { margin-top: 14px; height: 120px; border-radius: 16px; background: #FFF8EC; display: grid; place-items: center; font-size: 46px; }
.gift-name { margin-top: 12px; color: #4E5968; }
.gift-price { font-size: 19px; font-weight: 900; }
.hbar { margin-top: 10px; height: 6px; border-radius: 3px; background: #F2F4F6; overflow: hidden; }
.hbar i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(90deg, #FFC15A 0 4px, #8A5A00 4px 6px); transform-origin: left; }
.have { margin-top: 6px; font-size: 10px; color: #8B95A1; }
.c1 { opacity: 0; }
.arrive { position: absolute; left: 12px; right: 12px; top: 40px; padding: 12px; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); opacity: 0; transform: translateY(-16px); }
.arrive-img { width: 44px; height: 44px; border-radius: 10px; background: #FFF8EC; display: grid; place-items: center; font-size: 22px; }
.arrive b { display: block; font-size: 12px; font-weight: 800; }
.arrive small { color: #8B95A1; }
[data-sim="gift"][data-stage="1"] .hbar i { transform: scaleX(.21); transition-duration: .8s; }
[data-sim="gift"][data-stage="1"] .c0 { opacity: 0; }
[data-sim="gift"][data-stage="1"] .c1 { opacity: 1; }
[data-sim="gift"][data-stage="1"] .cta { background: #E5E8EB; color: #8B95A1; }
[data-sim="gift"][data-stage="1"] .arrive { opacity: 1; transform: none; }

.ev-list, .att { position: absolute; inset: 0; padding: 40px 16px 0; background: #fff; }
.ev-list ul { margin-top: 14px; display: grid; gap: 8px; }
.ev-list li { display: grid; grid-template-columns: 22px 1fr 10px; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: #F9FAFB; font-weight: 700; }
.ev-list li small { display: block; font-weight: 400; color: #8B95A1; font-size: 10px; }
.ev-list li i { font-style: normal; color: #B0B8C1; font-size: 14px; }
.att { opacity: 0; transform: translateX(30px); }
.week { margin-top: 24px; display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 10px; color: #8B95A1; }
.week span { display: grid; justify-items: center; gap: 4px; }
.week i { width: 26px; height: 26px; border-radius: 50%; background: #F2F4F6; display: grid; place-items: center; }
.week i img { opacity: 0; width: 18px; height: 18px; }
.week i.got { background: #FFF1DA; }
.week i.got img { opacity: 1; }
.week i.today img { opacity: 0; transform: scale(.4); }
.att-bee { margin: 44px auto 0; }
.att-done { margin-top: 12px; text-align: center; font-size: 15px; font-weight: 800; }
[data-sim="event"][data-stage="1"] .ev-list { opacity: 0; transform: translateX(-30px); }
[data-sim="event"][data-stage="1"] .att { opacity: 1; transform: none; }
[data-sim="event"][data-stage="1"] .week i.today img { opacity: 1; transform: none; transition-delay: .35s; }

.qs-list { padding: 0 26px 26px; display: grid; gap: 6px; font-size: 18px; list-style: disc inside; }
.qs details p + .qs-list { margin-top: -14px; }

@media (prefers-reduced-motion: reduce) {
  .screen, .screen *, .cap { transition: none !important; animation: none !important; }
  .hint.on::after { animation: none; transform: scale(1.06); }
}
@media (max-width: 1100px) {
  .g-head .wrap { grid-template-columns: 1fr; }
  .g-index { grid-column: 1; grid-row: auto; margin-top: 56px; }
  .step { grid-template-columns: 1fr; }
  .stage { --z: 1.18; }
}
@media (max-width: 720px) {
  .g-head { padding-top: 112px; }
  .g-head h1 { font-size: 12.4vw; }
  .seg { justify-self: stretch; }
  .step h2 { font-size: 8.4vw; }
  .step-copy p { font-size: 17px; }
  .stage { --z: 1.08; border-radius: 26px; }
  .qs-list { padding: 0 20px 20px; font-size: 15px; }
}
@media (max-width: 380px) { .stage { --z: .98; } }
