/* friendy.im 소개 — 한 화면에 한 장면. 색·글자는 앱(mobile/src/theme.ts)과 같은 값만 쓴다.
   그라데이션·빛 번짐·이모지 없이, 강조(보라 테두리)는 장면마다 가장 중요한 한 곳에만. */
:root {
  --ink: #101111;
  --gray900: #23282f;
  --gray700: #5f6570;
  --gray600: #868b93;
  --gray500: #a8adb4;
  --gray400: #c3c8d0;
  --gray300: #d2d6dd;
  --gray200: #dee1e7;
  --gray100: #f1f2f5;
  --paper: #fff;
  --theme: #724bf4;
  --theme-dark: #5b2fe3;
  --theme-tint: #f0edff;
  --theme-wash: #f6f3ff;
  --theme-on-dark: #b9a6ff;
  --mint: #00ffa1;
  --ot: #0aa5c2;
  --personal: #8b8fa3;
  --night: #17142a;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --bar-h: 68px;
  --top: clamp(104px, 14vh, 140px);
  --side: max(28px, calc((100% - 1200px) / 2));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; background: var(--paper); }
body { font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
h1, h2, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, iframe { display: block; }

/* ── 상단 바: 밝은 유리, 아래 장면이 비친다 ── */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h); display: flex; align-items: center; gap: 32px; padding: 0 var(--side); background: rgba(255, 255, 255, .72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); transition: background-color .35s ease, color .35s ease; }
.bar-logo { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.bar-logo img { width: 28px; height: 28px; border-radius: 8px; }
.bar-nav { display: flex; gap: 2px; }
.bar-nav button { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--gray700); transition: color .15s ease; }
.bar-nav button:hover, .bar-nav button.is-on { color: var(--ink); }
.bar-nav button.is-on { font-weight: 700; }
.bar-cta { margin-left: auto; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; transition: background-color .35s ease, color .35s ease; }
html[data-scene="record"] .bar { background: rgba(114, 75, 244, .55); color: #fff; }
html[data-scene="record"] .bar-nav button { color: rgba(255, 255, 255, .72); }
html[data-scene="record"] .bar-nav button.is-on, html[data-scene="record"] .bar-nav button:hover { color: #fff; }
html[data-scene="record"] .bar-cta { background: #fff; color: var(--ink); }

/* ── 무대와 장면 ── */
.deck { position: fixed; inset: 0; overflow: hidden; background: var(--paper); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 56px; padding: var(--top) var(--side) 56px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; will-change: transform, opacity; background: var(--paper); }
.slide::-webkit-scrollbar { display: none; }

h1 { font-size: clamp(52px, 6.6vw, 100px); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; word-break: keep-all; }
h2 { font-size: clamp(38px, 4.6vw, 68px); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; word-break: keep-all; }
/* 제목마다 가장 중요한 말 하나만 키컬러 */
:is(h1, h2) em { font-style: normal; color: var(--theme); }
.lede { margin-top: 22px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; font-weight: 500; color: var(--gray700); word-break: keep-all; }

/* 문장은 장면에 들어서면 차례로 떠오른다(스크립트가 없으면 처음부터 다 보인다) */
.deck-ready .copy > *, .deck-ready .hero-copy > *, .deck-ready .start-copy > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform 1s var(--ease); }
.is-in .copy > *, .is-in .hero-copy > *, .is-in .start-copy > * { opacity: 1 !important; transform: none !important; }
.is-in :is(.copy, .hero-copy, .start-copy) > :nth-child(1) { transition-delay: .08s; }
.is-in :is(.copy, .hero-copy, .start-copy) > :nth-child(2) { transition-delay: .16s; }
.is-in :is(.copy, .hero-copy, .start-copy) > :nth-child(3) { transition-delay: .24s; }
.is-in :is(.copy, .hero-copy, .start-copy) > :nth-child(4) { transition-delay: .32s; }

/* 단 하나의 강조 — 보라 테두리가 조여 들며 자리 잡는다 */
.ring { outline: 2px solid transparent; outline-offset: 10px; transition: outline-color .35s ease, outline-offset .6s var(--ease); }

/* ── 버튼: 누르는 순간 바로 반응 ── */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; border-radius: 16px; font-size: 16px; font-weight: 700; white-space: nowrap; transition: transform .2s var(--ease), background-color .15s ease, box-shadow .15s ease; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--gray900); }
.btn-line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gray300); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-lg { height: 62px; padding: 0 34px; font-size: 17px; border-radius: 18px; }
.btn:active, .bar-cta:active, .bar-logo:active, .bar-nav button:active, .steps li:active { transform: scale(.97); transition: transform 100ms ease-out; }
:focus-visible { outline: 3px solid var(--theme); outline-offset: 3px; }

/* ── 폰 그림: 원래 300×652, 놓인 자리에 맞춰 --k 배로 ── */
.fit { position: relative; align-self: stretch; min-height: 0; display: grid; place-items: center; }
.phone-box { position: relative; width: calc(300px * var(--k, 1)); height: calc(652px * var(--k, 1)); }
.phone { position: absolute; top: 0; left: 0; width: 300px; height: 652px; transform: scale(var(--k, 1)); transform-origin: 0 0; border: 9px solid var(--ink); border-radius: 46px; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 50px 90px -40px rgba(16, 17, 17, .38); font-size: 11px; line-height: 1.4; }
.phone::before { content: ''; position: absolute; z-index: 5; top: 9px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 99px; background: var(--ink); }
.deck-ready .phone-box { opacity: 0; transform: translateY(70px); transition: opacity .8s ease .1s, transform 1.2s var(--ease) .1s; }
.is-in .phone-box { opacity: 1; transform: none; }

/* 앱 아이콘(마스크) */
.t-home, .t-people, .t-talk, .t-me, .ic-plus, .ic-bell, .ic-back { display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.t-home { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 10.5 12 3l9 7.5V21h-6.5v-6h-5v6H3z'/></svg>"); }
.t-people { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm-7 10c0-3.9 3.1-7 7-7s7 3.1 7 7zm15-10a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm.6 2.1A6.4 6.4 0 0 1 22 19v2h-4.4c0-3-1.3-5.7-3.5-7.5a6 6 0 0 1 3.5-.4z'/></svg>"); }
.t-talk { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3C6.5 3 2 6.6 2 11c0 2.4 1.3 4.6 3.4 6.1L4.6 21l4.1-2.3c1 .2 2.1.3 3.3.3 5.5 0 10-3.6 10-8s-4.5-8-10-8z'/></svg>"); }
.t-me { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9zm-8 9c0-4.4 3.6-8 8-8s8 3.6 8 8z'/></svg>"); }
.ic-plus { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 3h2v8h8v2h-8v8h-2v-8H3v-2h8z'/></svg>"); width: 17px; height: 17px; }
.ic-bell { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7v4.6L3 17v1h18v-1l-2-3.4V9a7 7 0 0 0-7-7zm-3 17.5a3 3 0 0 0 6 0z'/></svg>"); width: 18px; height: 18px; }
.ic-back { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.4 4 7.4 12l8 8 1.4-1.4L10.2 12l6.6-6.6z'/></svg>"); width: 18px; height: 18px; }

/* ── 1 · 처음 ── */
.scene-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.app-top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 46px 16px 0; }
.app-top b { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
/* 종 아이콘은 가상 요소에 그려, 숫자 배지(i)가 마스크에 잘리지 않게 */
.app-top .ic-bell { position: relative; -webkit-mask: none; mask: none; background: none; }
.app-top .ic-bell::before { content: ''; position: absolute; inset: 0; background: var(--ink); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.app-top .ic-bell i { position: absolute; top: -5px; right: -6px; min-width: 13px; height: 13px; padding: 0 3px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 8px; font-style: normal; font-weight: 700; line-height: 13px; text-align: center; }
.hello { margin: 18px 16px 0; font-size: 15.5px; line-height: 1.42; font-weight: 700; letter-spacing: -.02em; }
.hello span { color: var(--gray700); font-weight: 600; }
.hello b { color: var(--theme); }
.wk-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 12px 0 14px; }
.wk-range { font-size: 12.5px; font-weight: 700; }
.seg { display: flex; padding: 2px; border-radius: 99px; background: var(--gray100); font-size: 10px; }
.seg b, .seg span { padding: 3px 9px; border-radius: 99px; }
.seg b { background: #fff; color: var(--theme); }
.seg span { color: var(--gray600); }
.wk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 10px 4px 0 34px; text-align: center; font-size: 8.5px; color: var(--gray600); }
.wk-days b { display: block; width: 23px; height: 23px; margin: 2px auto 0; border-radius: 50%; font-size: 12.5px; font-weight: 600; line-height: 23px; color: var(--ink); }
.wk-days .today { color: var(--theme); }
.wk-days .today b { background: var(--theme); color: #fff; }
.wk-grid { display: grid; grid-template-columns: 34px minmax(0, 1fr); margin: 6px 4px 0 0; border-top: 1px solid var(--gray200); }
.wk-hours li { height: 42px; padding-right: 4px; font-size: 7.5px; color: var(--gray600); text-align: right; transform: translateY(-5px); }
.wk-cols { position: relative; height: 336px; background-image: linear-gradient(var(--gray100) 1px, transparent 1px), linear-gradient(90deg, var(--gray100) 1px, transparent 1px); background-size: 100% 42px, calc(100% / 7) 100%; }
.col-today { position: absolute; top: 0; bottom: 0; left: calc(100% / 7); width: calc(100% / 7); background: var(--theme-wash); }
.blk { position: absolute; left: calc(100% / 7 * var(--d) + 2px); top: calc(42px * var(--h) + 2px); width: calc(100% / 7 - 4px); height: 38px; padding: 4px 4px 0; border-radius: 5px; background: var(--theme); color: #fff; font-size: 8.5px; font-weight: 700; line-height: 1.25; }
.blk small { display: block; font-size: 7.5px; font-weight: 500; opacity: .9; }
.blk.ot { background: var(--ot); }
.blk.me { background: var(--personal); }
.deck-ready .blk { opacity: 0; transform: scale(.7); transition: opacity .4s ease, transform .6s var(--ease); }
.is-in .blk { opacity: 1; transform: none; transition-delay: calc(.7s + var(--n) * 70ms); }
.tabs { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; padding-top: 9px; border-top: 1px solid var(--gray100); background: #fff; }
.tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; color: var(--gray500); }
.tabs span.on { color: var(--theme); }
.tabs i { width: 19px; height: 19px; }

/* ── 2 · 밤 11시 ── */
.scene-night { background: var(--gray100); }
.phone-lock { background: var(--night); color: #fff; }
.lock-date { margin-top: 66px; text-align: center; font-size: 13px; font-weight: 600; opacity: .85; }
.lock-time { text-align: center; font-size: 70px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.lock-stack { display: grid; margin: 30px 10px 0; }
.lock-stack li { display: grid; grid-template-rows: 1fr; }
.lock-stack li > div { min-height: 0; overflow: hidden; }
.nt { margin-bottom: 8px; padding: 10px 12px 11px; border-radius: 16px; background: rgba(255, 255, 255, .15); }
.nt-app { display: flex; align-items: center; gap: 6px; font-size: 10px; opacity: .72; }
.nt-app i { width: 14px; height: 14px; border-radius: 4px; background: #34c759; }
.nt-app time { margin-left: auto; }
.nt b { display: block; margin-top: 5px; font-size: 12px; font-weight: 700; }
.nt span { display: block; font-size: 12px; opacity: .92; }
.deck-ready .lock-stack li { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ease), opacity .45s ease; }
.is-in .lock-stack li { grid-template-rows: 1fr; opacity: 1; transition-delay: calc(.5s + var(--n) * .75s); }
.lock-stack li.ring { outline: 0; }
.lock-keys { position: absolute; left: 30px; right: 30px; bottom: 26px; display: flex; justify-content: space-between; }
.lock-keys i { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
/* 맨 위 알림이 강조 — 펼쳐지는 동안만 잘라 두고(0fr→1fr), 다 펼친 뒤 테두리가 바깥으로 나오게 연다 */
.is-in .lock-stack li.ring > div { animation: unclip 0s linear 3.3s forwards; }
@keyframes unclip { to { overflow: visible; } }
.lock-stack li.ring .nt { position: relative; }
.lock-stack li.ring .nt::after { content: ''; position: absolute; inset: -3px; border-radius: 19px; box-shadow: 0 0 0 2px var(--theme-on-dark); opacity: 0; pointer-events: none; }
.is-in .lock-stack li.ring .nt { animation: notePulse 1.2s ease-in-out 3.4s 3; }
.is-in .lock-stack li.ring .nt::after { animation: ringIn .5s var(--ease) 3.3s forwards; }
@keyframes ringIn { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes notePulse { 50% { transform: scale(1.035); background: rgba(255, 255, 255, .22); } }

/* ── 3 · 예약(넘길 때마다 한 단계) ── */
.book-fit { overflow: visible; }
.phone-book { display: flex; flex-direction: column; }
.bk-head { position: relative; padding: 46px 16px 10px; text-align: center; font-size: 14px; font-weight: 700; }
.bk-head .ic-back { position: absolute; left: 12px; bottom: 9px; }
.bk-body { flex: 1; padding: 6px 14px; }
.bk-trainer { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--gray100); }
.bk-trainer i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--theme-tint) url(/assets/sample-avatar.jpg) center / cover; }
.bk-trainer span { display: grid; font-size: 10.5px; color: var(--gray600); }
.bk-trainer b { font-size: 12.5px; color: var(--ink); }
.bk-label { margin: 13px 0 6px; font-size: 11.5px; font-weight: 700; }
.bk-field { padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--gray300); font-weight: 600; transition: box-shadow .25s ease, outline-color .35s ease, outline-offset .6s var(--ease); }
.bk-note { margin-top: 4px; font-size: 10px; color: var(--gray600); }
.bk-date { position: relative; }
.bk-date .d-after { display: none; }
.s1 .bk-date .d-before { display: none; }
.s1 .bk-date .d-after { display: inline; }
.bk-date .d-before { color: var(--gray500); font-weight: 500; }
.bk-week { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 6px; }
.bk-week span { padding: 5px 0; border-radius: 9px; background: var(--gray100); text-align: center; font-weight: 700; line-height: 1.25; transition: background-color .25s ease, color .25s ease; }
.bk-week em { display: block; font-size: 9.5px; font-style: normal; font-weight: 600; color: var(--gray600); transition: color .25s ease; }
.bk-week .off { color: var(--gray500); }
.bk-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; border-radius: 10px; }
.bk-times span { padding: 8px 0; border-radius: 9px; background: var(--theme-tint); color: var(--theme); text-align: center; font-weight: 700; transition: background-color .25s ease, color .25s ease; }
.bk-times .off { background: var(--gray100); color: var(--gray500); text-decoration: line-through; }
.bk-cta { margin: 10px 14px 20px; padding: 12px; border-radius: 12px; background: var(--gray300); color: #fff; text-align: center; font-size: 13.5px; font-weight: 700; transition: background-color .25s ease, outline-color .35s ease, outline-offset .6s var(--ease); }
.s1 .bk-week .pick { background: var(--theme); color: #fff; }
.s1 .bk-week .pick em { color: #fff; }
.s2 .bk-times .pick { background: var(--theme); color: #fff; }
.s2 .bk-cta { background: var(--theme); }
.s3 .bk-cta { animation: press .5s ease .35s; }
@keyframes press { 40% { transform: scale(.95); } }
/* 강조는 지금 단계의 한 곳에만 */
.bk-field, .bk-times, .bk-cta, .push { outline: 2px solid transparent; outline-offset: 10px; }
.bk-times { transition: outline-color .35s ease, outline-offset .6s var(--ease); }
.is-in:not(.s1) .bk-pass, .s1:not(.s2) .bk-date, .s2:not(.s3) .bk-times, .s3:not(.s4) .bk-cta, .s4 .push { outline-color: var(--theme); outline-offset: 3px; }
.is-in:not(.s1) .bk-pass { transition-delay: .9s; }
.push { position: absolute; z-index: 6; left: 50%; top: calc(50% - 326px * var(--k, 1) + 30px * var(--k, 1)); width: calc(300px * var(--k, 1) + 28px); word-break: keep-all; display: flex; gap: 10px; padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 24px 48px -22px rgba(16, 17, 17, .45), 0 0 0 1px rgba(16, 17, 17, .05); font-size: 13px; line-height: 1.4; color: var(--gray900); opacity: 0; transform: translate(-50%, -28px) scale(.96); transition: opacity .4s ease, transform .7s var(--ease), outline-color .35s ease .6s, outline-offset .6s var(--ease) .6s; pointer-events: none; }
.push img { flex: none; width: 34px; height: 34px; border-radius: 9px; }
.push span { display: flex; justify-content: space-between; font-size: 11px; color: var(--gray600); }
.push b { display: block; margin-top: 1px; color: var(--ink); }
.s4 .push { opacity: 1; transform: translate(-50%, 0); }
.steps { margin-top: 36px; display: grid; gap: 4px; max-width: 400px; counter-reset: st; }
.steps li { position: relative; display: grid; padding: 13px 16px 13px 56px; border-radius: 16px; color: var(--gray500); cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.steps li::before { content: attr(data-n); position: absolute; left: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; display: grid; place-items: center; background: var(--gray100); color: var(--gray600); font-size: 13px; font-weight: 700; transition: background-color .3s ease, color .3s ease; }
.steps b { font-size: 17px; font-weight: 700; }
.steps span { font-size: 13.5px; }
.steps li.is-done { color: var(--gray700); }
.steps li.is-done::before { background: var(--theme-tint); color: var(--theme); }
.steps li.is-on { background: var(--gray100); color: var(--ink); }
.steps li.is-on::before { background: var(--theme); color: #fff; }

/* ── 4 · 안내 ── */
.scene-notice { background: var(--theme-wash); }
.move-card { position: absolute; z-index: 2; right: calc(100% - 70px); top: 60%; width: 200px; padding: 14px 12px 12px; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -34px rgba(36, 20, 110, .4); }
.mv-head { display: grid; grid-template-columns: 1fr 1fr; padding-left: 24px; text-align: center; font-size: 12px; font-weight: 700; }
.mv-grid { display: grid; grid-template-columns: 24px minmax(0, 1fr); margin-top: 8px; border-top: 1px solid var(--gray200); }
.mv-grid li { height: 44px; padding-right: 4px; font-size: 9.5px; color: var(--gray600); text-align: right; transform: translateY(-6px); }
.mv-cols { position: relative; height: 176px; background-image: linear-gradient(var(--gray100) 1px, transparent 1px), linear-gradient(90deg, var(--gray100) 1px, transparent 1px); background-size: 100% 44px, 50% 100%; }
.mv-ghost, .mv-blk { position: absolute; left: 2px; top: 2px; width: calc(50% - 4px); height: 40px; border-radius: 6px; }
.mv-ghost { box-shadow: inset 0 0 0 1.5px var(--gray300); opacity: 0; transition: opacity .3s ease; }
.mv-blk { padding: 5px 6px 0; background: var(--theme); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.25; }
.mv-blk small { display: block; font-size: 9.5px; font-weight: 500; opacity: .9; }
.is-in .mv-ghost { opacity: 1; transition-delay: .8s; }
.is-in .mv-blk { animation: move 1.3s var(--ease) .8s both; }
@keyframes move {
  0% { transform: none; box-shadow: none; }
  18% { transform: scale(1.07); box-shadow: 0 14px 24px -10px rgba(36, 20, 110, .5); }
  82% { transform: translate(calc(100% + 4px), 132px) scale(1.07); box-shadow: 0 14px 24px -10px rgba(36, 20, 110, .5); }
  100% { transform: translate(calc(100% + 4px), 132px); box-shadow: none; }
}
.phone-chat { display: flex; flex-direction: column; }
.ch-head { position: relative; padding: 46px 16px 12px; border-bottom: 1px solid var(--gray100); text-align: center; font-size: 13.5px; font-weight: 700; }
.ch-head .ic-back { position: absolute; left: 12px; bottom: 11px; }
.ch-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; }
.ch-day { align-self: center; padding: 3px 10px; border-radius: 99px; background: var(--gray100); font-size: 9.5px; color: var(--gray600); }
.msg { display: flex; align-items: flex-end; gap: 5px; }
.msg span { max-width: 80%; padding: 9px 11px; border-radius: 4px 14px 14px 14px; background: var(--gray100); font-size: 11.5px; line-height: 1.5; word-break: keep-all; }
.msg time { flex: none; font-size: 8.5px; color: var(--gray500); }
.deck-ready .msg { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .6s var(--ease); }
.is-in .msg { opacity: 1; transform: none; }
.is-in .msg[style*="--n:0"] { transition-delay: .3s; }
.is-in .msg[style*="--n:1"] { transition-delay: 2.1s; }
.is-in .msg[style*="--n:2"] { transition-delay: 3.1s; }
.msg.ring { outline: 0; }
.msg.ring span { outline: 2px solid transparent; outline-offset: 8px; transition: outline-color .35s ease, outline-offset .6s var(--ease); }
.is-in .msg.ring span { outline-color: var(--theme); outline-offset: 3px; transition-delay: 2.7s; }
.ch-input { padding: 10px 12px 24px; border-top: 1px solid var(--gray100); }
.ch-input span { display: block; padding: 9px 14px; border-radius: 99px; background: var(--gray100); color: var(--gray500); font-size: 11px; }

/* ── 5 · 회원권 ── */
.pass-stage { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.pass-lesson { width: min(380px, 100%); padding: 16px 18px; border-radius: 18px; background: var(--gray100); }
.pass-lesson b { display: block; font-size: 16px; font-weight: 700; }
.pass-lesson span { font-size: 13.5px; color: var(--gray700); }
.pass-bar { display: block; height: 4px; margin-top: 12px; border-radius: 2px; background: var(--gray200); overflow: hidden; }
.pass-bar i { display: block; height: 100%; background: var(--theme); transform: scaleX(0); transform-origin: left; }
.is-in .pass-bar i { transform: scaleX(1); transition: transform 1.5s cubic-bezier(.4, 0, .6, 1) .5s; }
.pass-num { display: flex; align-items: baseline; margin: 12px 0 8px -.04em; font-size: clamp(190px, 21vw, 320px); font-weight: 600; line-height: 1; letter-spacing: -.06em; color: var(--theme); }
.roll, .roll-sm { display: inline-block; overflow: hidden; vertical-align: bottom; }
.roll { height: 1em; }
/* 글자 간격을 좁혀 둔 숫자는 상자보다 넓다 — 양옆 여백을 줘 잘리지 않게 하고, 자리는 그대로 */
.roll, .roll-sm { padding: 0 .08em; margin: 0 -.08em; }
.roll b, .roll-sm b { letter-spacing: 0; }
.roll b, .roll-sm b { display: block; font-weight: inherit; transition: transform .8s var(--ease) 2.1s; }
.roll b { height: 1em; }
.pass-num em { margin-left: .06em; font-size: .17em; font-style: normal; color: var(--ink); letter-spacing: -.02em; }
.pass-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--gray700); line-height: 1.5; }
.pass-ava { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gray200); color: var(--gray700); font-style: normal; font-size: 16px; font-weight: 700; }
.pass-row b { font-size: 16px; color: var(--ink); }
.pass-row small { margin-left: 4px; font-size: 12px; color: var(--gray600); }
.pass-row em { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--mint); color: var(--ink); font-size: 11.5px; font-style: normal; font-weight: 700; }
.roll-sm { height: 1.5em; }
.roll-sm b { height: 1.5em; color: var(--ink); font-weight: 700; }
.is-in .roll b, .is-in .roll-sm b { transform: translateY(-100%); }

/* ── 6 · 기록(보라 한 면 · 넘길 때마다 한 단계) ── */
.scene-record { background: var(--theme); color: #fff; }
.scene-record h2 em { color: var(--mint); }
.scene-record .steps li { color: rgba(255, 255, 255, .55); }
.scene-record .steps li::before { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); }
.scene-record .steps li.is-done { color: rgba(255, 255, 255, .8); }
.scene-record .steps li.is-done::before { background: rgba(255, 255, 255, .24); color: #fff; }
.scene-record .steps li.is-on { background: rgba(255, 255, 255, .14); color: #fff; }
.scene-record .steps li.is-on::before { background: #fff; color: var(--theme); }
.phone-rec { display: flex; flex-direction: column; box-shadow: 0 50px 90px -40px rgba(20, 8, 70, .6); }
.rc-head { position: relative; padding: 46px 16px 10px; text-align: center; font-size: 14px; font-weight: 700; }
.rc-head .ic-back { position: absolute; left: 12px; bottom: 9px; }
.rc-head b { position: absolute; right: 10px; bottom: 6px; padding: 3px 6px; border-radius: 8px; color: var(--theme); font-size: 13px; }
.rc-body { flex: 1; padding: 6px 14px 0; }
.rc-summary { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--gray100); }
.rc-badge { flex: none; padding: 3px 8px; border-radius: 12px; background: var(--mint); font-size: 9.5px; font-weight: 700; }
.rc-summary p { flex: 1; min-width: 0; display: grid; }
.rc-summary p b { font-size: 13.5px; }
.rc-summary p span { margin-top: 1px; font-size: 9.5px; color: var(--gray500); }
.rc-summary em { flex: none; padding: 6px 8px; border-radius: 8px; background: var(--theme-tint); color: var(--theme); font-size: 10px; font-style: normal; font-weight: 700; }
.rc-ex { margin-top: 14px; border-radius: 10px; }
.rc-ex-head { display: flex; align-items: center; gap: 8px; }
.rc-ex-head img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--gray100); }
.rc-ex-head b { flex: 1; font-size: 13px; }
.rc-ex-head em { padding: 4px 7px; border-radius: 7px; background: var(--theme-tint); color: var(--theme); font-size: 9.5px; font-style: normal; font-weight: 700; }
.rc-1rm { margin-top: 3px; font-size: 8.5px; color: var(--gray600); }
.rc-labels, .rc-set { display: grid; grid-template-columns: 30px 1fr 1fr; align-items: center; gap: 6px; padding-right: 20px; }
.rc-labels { margin: 7px 0 3px; font-size: 9.5px; color: var(--gray500); text-align: center; }
.rc-set { margin-top: 5px; text-align: center; }
.rc-set > span { font-size: 9.5px; color: var(--gray500); }
.rc-set i { position: relative; display: block; height: 30px; border-radius: 8px; background: var(--gray100); font-style: normal; line-height: 30px; }
.rc-set b { font-size: 11.5px; font-weight: 500; transition: opacity .25s ease; }
.rc-set small { position: absolute; right: 7px; font-size: 7.5px; font-weight: 600; color: var(--theme); }
.rc-add { margin-top: 6px; padding: 7px 0; text-align: center; font-size: 10.5px; font-weight: 700; color: var(--theme); }
.rc-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.rc-tools span { padding: 11px 0; border-radius: 10px; text-align: center; font-size: 11px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--gray200); }
.rc-memo-label { margin-top: 16px; font-size: 10.5px; font-weight: 700; }
.rc-memo { height: 64px; margin-top: 6px; padding: 9px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--gray200); font-size: 10.5px; color: var(--gray500); }
.rc-tools .rc-timer-btn { background: var(--theme-tint); color: var(--theme); box-shadow: none; }
/* 1 · 운동이 들어온다 */
.deck-ready .rc-ex { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .6s var(--ease); }
.is-in .rc-ex { opacity: 1; transform: none; transition-delay: .6s; }
/* 2 · 세트 값이 한 칸씩 채워진다 */
.rc-set b { opacity: 0; }
.s1 .rc-set b { opacity: 1; }
.s1 .rc-set i:nth-of-type(1) b { transition-delay: calc(.2s + var(--n) * .45s); }
.s1 .rc-set i:nth-of-type(2) b { transition-delay: calc(.4s + var(--n) * .45s); }
/* 3 · 휴식 타이머가 아래에서 올라온다(앱의 RestTimerBar) */
.rc-rest { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 10px 12px 20px; border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 -8px 20px -6px rgba(35, 48, 59, .2); transform: translateY(105%); transition: transform .6s var(--ease); }
.s2 .rc-rest { transform: none; }
.s3 .rc-rest { transform: translateY(105%); }
.rc-rest-top { display: flex; align-items: center; gap: 6px; }
.rc-rest-top b { font-size: 22px; font-variant-numeric: tabular-nums; }
.rc-rest-top span { flex: 1; font-size: 9.5px; color: var(--gray600); }
.rc-rest-top i { width: 28px; height: 28px; border-radius: 50%; background: var(--gray100); }
.rc-rest-top .rc-play { width: 32px; height: 32px; background: var(--theme); }
.rc-adjust { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 8px; }
.rc-adjust span { padding: 6px 0; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--gray200); text-align: center; font-size: 8.5px; font-weight: 700; color: var(--theme); }
.rc-adjust span:nth-child(-n + 3) { color: var(--gray700); }
/* 4 · 저장 → 앱 알림창 */
.rc-alert { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(16, 17, 17, .32); opacity: 0; transition: opacity .3s ease .25s; }
.rc-alert div { width: 210px; display: grid; padding: 16px 0 0; border-radius: 14px; background: rgba(250, 250, 252, .97); text-align: center; transform: scale(1.12); transition: transform .45s var(--ease) .25s, outline-color .35s ease .9s, outline-offset .6s var(--ease) .9s; outline: 2px solid transparent; outline-offset: 10px; }
.rc-alert b { padding: 0 14px; font-size: 12.5px; }
.rc-alert span { padding: 3px 14px 14px; font-size: 10px; color: var(--gray700); }
.rc-alert em { padding: 10px 0; border-top: 1px solid var(--gray200); color: #007aff; font-size: 12.5px; font-style: normal; font-weight: 600; }
.s3 .rc-alert { opacity: 1; }
.s3 .rc-alert div { transform: none; outline-color: #fff; outline-offset: 3px; }
.s3 .rc-head b { animation: press .4s ease; }
/* 강조는 지금 단계의 한 곳에만 */
.rc-ex, .rc-set i, .rc-rest { outline: 2px solid transparent; outline-offset: 8px; }
.rc-ex { transition: opacity .4s ease, transform .6s var(--ease), outline-color .35s ease, outline-offset .6s var(--ease); }
.rc-rest { transition: transform .6s var(--ease), outline-color .35s ease .5s, outline-offset .6s var(--ease) .5s; }
.is-in:not(.s1) .rc-ex { outline-color: var(--theme); outline-offset: 4px; transition-delay: .6s, .6s, 1.1s, 1.1s; }
.s1:not(.s2) .rc-set[style*="--n:2"] i { outline-color: var(--theme); outline-offset: 2px; transition: outline-color .35s ease 1.4s, outline-offset .6s var(--ease) 1.4s; }
.s2:not(.s3) .rc-rest { outline-color: var(--theme); outline-offset: -2px; }

/* ── 7 · 명함 ── */
.scene-card { background: var(--gray100); }
.card-url { display: inline-flex; margin-top: 30px; padding: 13px 18px; border-radius: 14px; background: #fff; font-size: 19px; font-weight: 600; color: var(--gray600); }
.card-url b { color: var(--ink); font-weight: 700; }
.is-in .card-url.ring { outline-color: var(--theme); outline-offset: 3px; transition: opacity .7s ease .24s, transform 1s var(--ease) .24s, outline-color .35s ease 1.1s, outline-offset .6s var(--ease) 1.1s; }
.scene-card .copy > p:last-child { margin-top: 14px; }
.phone-card iframe { width: 390px; height: 877px; border: 0; transform: scale(.7231); transform-origin: 0 0; pointer-events: none; background: #fff; }

/* ── 8 · 시작 ── */
.scene-start { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-bottom: 96px; }
.start-icon { width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 22px; }
.scene-start h2 { font-size: clamp(46px, 6vw, 90px); line-height: 1.06; }
.scene-start .stores { justify-content: center; margin-top: 40px; }
.foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 22px var(--side); border-top: 1px solid var(--gray100); font-size: 13px; color: var(--gray600); }
.foot a:hover { color: var(--ink); }
.foot-logo { display: flex; align-items: center; gap: 6px; margin-right: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.foot-logo img { border-radius: 6px; }
.foot small { margin-left: auto; font-size: 12px; }
.foot-company { flex-basis: 100%; margin: 0; text-align: left; font-size: 11px; line-height: 16px; color: var(--gray500); }

/* ── 장면 점 ── */
.dots { position: fixed; right: 20px; top: 50%; z-index: 40; display: flex; flex-direction: column; gap: 12px; transform: translateY(-50%); }
.dots button { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gray300); transition: transform .25s var(--ease), background-color .25s ease; }
.dots button.is-on { background: var(--theme); transform: scale(1.4); }
.dots button span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--gray700); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.dots button:hover span, .dots button:focus-visible span { opacity: 1; }
.dots button:active { transform: scale(.85); transition: transform 100ms ease-out; }
html[data-scene="record"] .dots button { background: rgba(255, 255, 255, .4); }
html[data-scene="record"] .dots button.is-on { background: #fff; }
html[data-scene="record"] .dots button span { color: #fff; }

/* ── 태블릿·작은 노트북 ── */
@media (max-width: 1080px) {
  .move-card { display: none; }
}

/* ── 휴대폰: 문장이 위, 그림이 아래 남은 자리를 채운다 ── */
@media (max-width: 720px) {
  :root { --bar-h: 56px; --top: 76px; --side: 20px; }
  .bar { gap: 12px; }
  .bar-nav { display: none; }
  .bar-logo { font-size: 17px; }
  .bar-logo img { width: 26px; height: 26px; }
  .bar-cta { padding: 8px 14px; font-size: 13.5px; }
  .dots { display: none; }
  .slide, .scene-hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 18px; padding: var(--top) var(--side) 20px; }
  .slide > .copy { order: -1; }
  h1 { font-size: 42px; }
  h2 { font-size: 31px; }
  .lede { margin-top: 12px; font-size: 15.5px; }
  .stores { margin-top: 20px; }
  .btn { height: 48px; padding: 0 20px; font-size: 15px; border-radius: 14px; }
  .btn-lg { height: 54px; padding: 0 26px; }
  .steps { margin-top: 14px; }
  .steps li { display: none; padding: 11px 14px 11px 50px; }
  .steps li.is-on { display: grid; }
  .steps li::before { left: 12px; }
  .steps b { font-size: 15.5px; }
  .push { width: calc(300px * var(--k, 1) + 8px); font-size: 12px; }
  .pass-stage { align-self: center; }
  .pass-num { font-size: 168px; margin-top: 8px; }
  .card-url { margin-top: 16px; padding: 10px 14px; font-size: 16px; }
  .scene-card .copy > p:last-child { display: inline-block; margin: 0 0 0 8px; vertical-align: top; }
  .scene-card .copy > .card-url { vertical-align: top; }
  .scene-card .copy > p:last-child .btn { height: 46px; margin-top: 16px; }
  .scene-start { align-content: center; padding-bottom: 120px; }
  .start-icon { width: 72px; height: 72px; border-radius: 18px; }
  .scene-start h2 { font-size: 40px; }
  .foot { padding: 16px var(--side); gap: 8px 16px; font-size: 12px; }
  .foot small { margin-left: 0; }
}

/* ── 움직임 줄이기: 미끄러짐·튕김·반복은 빼고 짧은 페이드만 ── */
@media (prefers-reduced-motion: reduce) {
  .slide { transition: opacity .2s ease; }
  .deck *, .deck *::before, .deck *::after { animation: none !important; transition-property: opacity, color, background-color, outline-color !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .deck-ready .copy > *, .deck-ready .hero-copy > *, .deck-ready .start-copy > *, .deck-ready .phone-box, .deck-ready .blk, .deck-ready .msg, .deck-ready .set-row { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar, .push { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
