/* =========================================================================
   일리일리 B v2 공통 스타일 (tokens.css 위에 얹는다)
   마케팅: 흰 바탕 + 새벽 판, 떠 있는 유리 상단 바(스크롤 변신), 유리 액자 제품 화면, 오로라 빛띠
   앱: 흰 사이드 내비(1024+), 하단 탭(1024 미만), 제품 표. 신뢰 영역은 장식 없음
   모션 규칙: 기본 상태 = 최종 상태(정지). 움직임은 파일 끝 "모션 켜짐" 블록에서만 켠다.
   ========================================================================= */

/* ---------- 0. 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans); font-size: var(--text-md); line-height: var(--lh-md); font-weight: var(--weight-regular); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
img::selection { background: transparent; }
::selection { background: var(--color-selection-bg); color: var(--color-selection-fg); -webkit-text-fill-color: var(--color-selection-fg); }
a { color: var(--color-link); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }
input, textarea { cursor: text; }
/* 랜딩 요술봉 커서 (2026-10-09 사용자 지시, decisions "커서·모션 변경"). body.landing 한정, 회원 앱 화면에는 쓰지 않는다.
   - 핫스폿 = 별 중심 (7, 7) CSS px. 2x 이미지도 1x 좌표로 적는다.
   - 선언 3줄: url() 대체 → -webkit-image-set(사파리) → image-set(표준). 해석 못 하는 줄은 버려지고 앞줄이 남는다.
   - 클릭 가능한 요소 위는 별이 더 밝게 빛나는 변형(hover), 끝에 pointer 대체. 입력·선택(text·select·range)과 도움말(.term, .lock-rate)은 각자 커서를 유지한다. */
body.landing {
  cursor: url("../assets/cursor-wand-32.png") 7 7, auto;
  cursor: -webkit-image-set(url("../assets/cursor-wand-32.png") 1x, url("../assets/cursor-wand-64.png") 2x) 7 7, auto;
  cursor: image-set(url("../assets/cursor-wand-32.png") 1x, url("../assets/cursor-wand-64.png") 2x) 7 7, auto;
}
body.landing :is(a[href], button, summary, [role="button"], label.check, .radio-card):not(:disabled, [aria-disabled="true"], .term, .lock-rate) {
  cursor: url("../assets/cursor-wand-hover-32.png") 7 7, pointer;
  cursor: -webkit-image-set(url("../assets/cursor-wand-hover-32.png") 1x, url("../assets/cursor-wand-hover-64.png") 2x) 7 7, pointer;
  cursor: image-set(url("../assets/cursor-wand-hover-32.png") 1x, url("../assets/cursor-wand-hover-64.png") 2x) 7 7, pointer;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
.on-night :focus-visible, .panel-night :focus-visible { outline-color: var(--color-on-night); }
/* 본문 바로가기(QA Q7): 평소에는 화면 밖, 키보드로 처음 Tab 하면 왼쪽 위에 보인다. 공개·회원·관리자 공통 */
.skip-link { position: fixed; top: var(--space-2); left: var(--space-2); z-index: calc(var(--z-trail) + 1); padding: 10px 16px; border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-2); font-size: var(--text-sm); font-weight: var(--weight-semi); text-decoration: none; transform: translateY(calc(-100% - var(--space-4))); }
.skip-link:focus, .skip-link:focus-visible { transform: none; }
a, button, select, input, label { touch-action: manipulation; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 1. 레이아웃 도우미 ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(880px + var(--gutter) * 2); }
.stack { display: flex; flex-direction: column; gap: var(--gap, var(--space-4)); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--space-3)); }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.grid { display: grid; gap: var(--gap, var(--space-4)); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.split { display: grid; gap: var(--space-10); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); } }
.center { text-align: center; }
.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); } .mt-10 { margin-top: var(--space-10); } .mt-12 { margin-top: var(--space-12); }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .only-mobile { display: none !important; } }
@media (min-width: 1024px) { .hide-desktop { display: none !important; } }
@media (max-width: 1023px) { .d-only { display: none !important; } }

/* ---------- 2. 글자 ---------- */
.display { font-family: var(--font-display); font-weight: var(--weight-display); letter-spacing: var(--ls-display); line-height: var(--lh-display); text-wrap: balance; color: var(--color-text); }
.on-night .display, .panel-night .display { color: var(--color-on-night); }
.h1 { font-size: var(--text-h1); }
.h2 { font-size: var(--text-h2); line-height: 1.12; }
.h3 { font-size: var(--text-h3); line-height: 1.25; font-weight: var(--weight-display); letter-spacing: var(--ls-heading); }
.h4 { font-size: var(--text-h4); line-height: 1.4; font-weight: var(--weight-semi); letter-spacing: -0.01em; }
.page-title { font-size: var(--text-2xl); line-height: 1.25; font-weight: var(--weight-display); letter-spacing: var(--ls-heading); }
.lead { font-size: var(--text-lg); line-height: var(--lh-lg); color: var(--color-text-muted); }
.on-night .lead, .panel-night .lead { color: var(--color-on-night-muted); }
.body-sm { font-size: var(--text-sm); line-height: var(--lh-sm); }
.caption { font-size: var(--text-xs); line-height: 1.5; color: var(--color-text-subtle); }
.muted { color: var(--color-text-muted); }
.subtle { color: var(--color-text-subtle); }
.accent { color: var(--color-heading-accent); }
.code { font-family: var(--font-code); font-weight: 500; letter-spacing: 0; overflow-wrap: anywhere; }
.ico { font-size: 1.15em; line-height: 1; flex: none; }
b, strong { font-weight: var(--weight-semi); }

/* H1 빛: 잉크 위로 아래에서 바이올렛 빛이 오르내린다 (글자 대비는 정지 상태에서 확인) */
.glow { background-image: var(--h1-glow); background-color: var(--color-text); background-size: 100% 200%; background-position: 50% 0%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* 오로라 형광펜: 불투명 오로라 띠(흰 카드와 같은 역할) 위에 잉크 글자. "더 받는 돈"에만, 화면당 한 번 */
.hl { position: relative; z-index: 0; display: inline-block; }
.hl::before { content: ""; position: absolute; z-index: -1; left: -0.08em; right: -0.08em; bottom: 0.02em; height: 0.46em; border-radius: 0.16em; background: var(--lift-fill); box-shadow: 0 0 0 1px rgba(123, 91, 224, 0.18); transform-origin: left center; }
.mark-lift { background: var(--lift-fill); padding: 0 0.14em; margin: 0 -0.04em; border-radius: 0.22em; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: var(--color-text); }
.aurora-text { background: var(--lift-text-on-night); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* 숫자 */
.num { font-family: var(--font-num); font-weight: var(--weight-num); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-num); line-height: 1.05; color: var(--color-money); white-space: nowrap; }
.num .u { font-size: 0.56em; font-weight: var(--weight-semi); letter-spacing: 0; margin-left: 0.08em; }
.num-sm { font-size: var(--num-sm); } .num-md { font-size: var(--num-md); } .num-lg { font-size: var(--num-lg); } .num-xl { font-size: var(--num-xl); } .num-2xl { font-size: var(--num-2xl); } .num-3xl { font-size: var(--num-3xl); font-weight: var(--weight-num-max); }
.num-muted { color: var(--color-text-muted); }
.num-plus { color: var(--color-money-plus); }
.num-minus { color: var(--color-money-minus); }
.ex::after { content: "예시"; display: inline-block; vertical-align: 0.35em; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-family: var(--font-sans); font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0; line-height: 1.5; color: var(--color-text-muted); background: var(--color-chip); }

/* ---------- 3. 로고: iliili 막대 (i = 점 있는 짧은 막대, l = 긴 막대) ---------- */
/* 짧·긴·짧·짧·긴·짧. 긴 막대가 2개라 "가운데 하나만 솟는" 배열이 생기지 않는다 (tokens.md 4장) */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; min-height: 44px; white-space: nowrap; }
.logo small { font-weight: 500; font-size: var(--text-xs); color: var(--color-text-subtle); letter-spacing: 0; }
.logo-mark { --s: 28px; --u: calc(var(--s) / 28); position: relative; width: var(--s); height: var(--s); border-radius: calc(var(--u) * 8); background: radial-gradient(120% 90% at 50% 110%, #3A1E6E 0%, var(--color-night) 70%); flex: none; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.logo-mark::before { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--aurora-pink-on-night), var(--aurora-lilac-on-night)) calc(var(--u) * 5) calc(var(--u) * 13) / calc(var(--u) * 2.2) calc(var(--u) * 9) no-repeat,
    linear-gradient(var(--aurora-lilac-on-night), var(--aurora-mint-on-night)) calc(var(--u) * 8.2) calc(var(--u) * 6) / calc(var(--u) * 2.2) calc(var(--u) * 16) no-repeat,
    linear-gradient(var(--aurora-mint-on-night), var(--aurora-lilac-on-night)) calc(var(--u) * 11.4) calc(var(--u) * 13) / calc(var(--u) * 2.2) calc(var(--u) * 9) no-repeat,
    linear-gradient(var(--aurora-pink-on-night), var(--aurora-lilac-on-night)) calc(var(--u) * 14.6) calc(var(--u) * 13) / calc(var(--u) * 2.2) calc(var(--u) * 9) no-repeat,
    linear-gradient(var(--aurora-lilac-on-night), var(--aurora-mint-on-night)) calc(var(--u) * 17.8) calc(var(--u) * 6) / calc(var(--u) * 2.2) calc(var(--u) * 16) no-repeat,
    linear-gradient(var(--aurora-mint-on-night), var(--aurora-pink-on-night)) calc(var(--u) * 21) calc(var(--u) * 13) / calc(var(--u) * 2.2) calc(var(--u) * 9) no-repeat; }
.logo-mark::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle, var(--aurora-pink-on-night) 60%, transparent 70%) calc(var(--u) * 5) calc(var(--u) * 9.4) / calc(var(--u) * 2.2) calc(var(--u) * 2.2) no-repeat,
    radial-gradient(circle, var(--aurora-mint-on-night) 60%, transparent 70%) calc(var(--u) * 11.4) calc(var(--u) * 9.4) / calc(var(--u) * 2.2) calc(var(--u) * 2.2) no-repeat,
    radial-gradient(circle, var(--aurora-pink-on-night) 60%, transparent 70%) calc(var(--u) * 14.6) calc(var(--u) * 9.4) / calc(var(--u) * 2.2) calc(var(--u) * 2.2) no-repeat,
    radial-gradient(circle, var(--aurora-mint-on-night) 60%, transparent 70%) calc(var(--u) * 21) calc(var(--u) * 9.4) / calc(var(--u) * 2.2) calc(var(--u) * 2.2) no-repeat; }
.logo-mark.lg { --s: 44px; }
.logo-mark.xl { --s: 64px; }
.logo-word { display: inline-block; overflow: hidden; max-width: 6em; transition: max-width var(--dur-btn) var(--ease-soft), opacity var(--dur-btn) var(--ease-soft); }
.logo.on-night { color: var(--color-on-night); }

/* 상승 막대 아이콘 (낮음 → 중간 → 높음). '더 받음' 배지·구분선·복사·로딩 공통 */
.ico-rise { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -0.12em;
  background:
    linear-gradient(currentColor, currentColor) 6% 100% / 22% 40% no-repeat,
    linear-gradient(currentColor, currentColor) 50% 100% / 22% 68% no-repeat,
    linear-gradient(currentColor, currentColor) 94% 100% / 22% 100% no-repeat; border-radius: 1px; }

/* 구분선: 머리카락 선 + 점 + 상승 막대 */
.rise-rule { display: flex; align-items: center; gap: 10px; color: rgba(52, 16, 120, 0.28); margin-block: var(--space-4); }
.rise-rule::before, .rise-rule::after { content: ""; flex: 1; height: 1px; border-radius: 1px; background: rgba(18, 55, 105, 0.08); }
.rise-rule i { display: inline-flex; align-items: center; gap: 10px; }
.rise-rule i::before, .rise-rule i::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: rgba(9, 25, 72, 0.16); }
.rise-rule b { width: 14px; height: 12px; background: linear-gradient(currentColor, currentColor) 0 100% / 3px 5px no-repeat, linear-gradient(currentColor, currentColor) 50% 100% / 3px 8px no-repeat, linear-gradient(currentColor, currentColor) 100% 100% / 3px 12px no-repeat; }
.on-night .rise-rule, .panel-night .rise-rule { color: rgba(199, 179, 255, 0.5); }
.on-night .rise-rule::before, .on-night .rise-rule::after { background: rgba(255, 255, 255, 0.12); }

/* 서명 모션 '차오르는 빛 막대': 왼쪽부터 차례로, 낮음 → 높음 */
.risebars { display: inline-flex; align-items: flex-end; gap: var(--rb-gap, 4px); height: var(--rb-h, 20px); }
.risebars span { width: var(--rb-w, 5px); border-radius: 99px 99px 2px 2px; background: var(--rb-fill, linear-gradient(var(--glow-lilac), var(--glow-pink))); transform-origin: 50% 100%; }
.risebars span:nth-child(1) { height: 40%; } .risebars span:nth-child(2) { height: 70%; } .risebars span:nth-child(3) { height: 100%; }
.risebars.four span:nth-child(1) { height: 34%; } .risebars.four span:nth-child(2) { height: 56%; } .risebars.four span:nth-child(3) { height: 78%; } .risebars.four span:nth-child(4) { height: 100%; }
/* 계단 쌓기: 다음 막대는 앞 막대 높이에서 나타나 자기 높이까지 자란다(--from = 앞 막대 높이 ÷ 내 높이).
   그래서 어느 순간에도 왼쪽 ≤ 오른쪽이고, 가운데만 솟는 프레임이 생기지 않는다. */
.risebars span:nth-child(2), .burst span:nth-child(2) { --from: 0.571; } .risebars span:nth-child(3), .burst span:nth-child(3) { --from: 0.7; }
.risebars.four span:nth-child(2) { --from: 0.607; } .risebars.four span:nth-child(3) { --from: 0.718; } .risebars.four span:nth-child(4) { --from: 0.78; }

/* ---------- 4. 버튼 ---------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: var(--radius-btn); font-size: var(--text-sm); font-weight: var(--weight-semi); line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: box-shadow var(--dur-btn) var(--ease-soft), background-color var(--dur-btn) var(--ease-soft), color var(--dur-btn) var(--ease-soft), border-color var(--dur-btn) var(--ease-soft), transform var(--dur-press) ease-out; }
.btn:active { transform: translateY(1px); }
/* 머리카락 테두리: 안쪽 2px. hover 때 위에서부터 드러난다 (pointer: fine) */
.btn-ink::after, .btn-secondary::after, .btn-primary::after { content: ""; position: absolute; inset: 2px; border-radius: calc(var(--radius-btn) - 2px); border: 1px solid var(--hl-c, var(--hairline-on-ink)); pointer-events: none; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-size: 100% 200%; mask-size: 100% 200%; -webkit-mask-position: 0 100%; mask-position: 0 100%; transition: -webkit-mask-position var(--dur-btn) var(--ease-soft), mask-position var(--dur-btn) var(--ease-soft); }
@media (pointer: fine) { .btn:hover::after { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.btn-ink { background: var(--color-ink-btn); color: var(--white); box-shadow: var(--shadow-btn-ink); }
.btn-ink:hover { box-shadow: var(--shadow-btn-ink-hover); }
.btn-ink:active { box-shadow: var(--shadow-btn-ink-active); }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-btn-primary); --hl-c: rgba(255, 255, 255, 0.3); }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-btn-secondary); --hl-c: var(--hairline-on-white); }
.btn-ghost { background: transparent; color: var(--color-text); }
.btn-ghost:hover { background: rgba(29, 79, 129, 0.04); }
.btn-night { background: var(--glass-night); color: var(--color-on-night); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.btn-night:hover { background: rgba(255, 255, 255, 0.14); }
.btn-on-night { background: var(--white); color: var(--color-text); box-shadow: inset 0 -6px 20px rgba(106, 61, 240, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.4), 0 10px 30px -8px rgba(183, 156, 255, 0.55); }
.btn-on-night:hover { box-shadow: inset 0 -6px 20px rgba(106, 61, 240, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.5), 0 10px 34px -6px rgba(183, 156, 255, 0.75); }
.btn-danger { background: var(--status-canceled-fg); color: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: var(--text-compact); }
.btn-xs { min-height: 36px; padding: 6px 12px; font-size: var(--text-compact); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: var(--text-md); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--color-sunken); color: var(--color-text-disabled); box-shadow: none; cursor: not-allowed; opacity: 0.8; }
.btn[disabled]::after { display: none; }
.btn.is-copied { background: var(--color-money-plus); color: var(--white); box-shadow: 0 0 0 1px rgba(15, 110, 58, 0.3), 0 6px 14px -6px rgba(15, 110, 58, 0.5); }
.link-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none; font-size: var(--text-sm); font-weight: var(--weight-semi); color: var(--color-link); text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
/* 복사 반짝: 막대 3개가 왼쪽부터 솟았다 사라진다 (motion.js가 붙임) */
.burst { position: absolute; left: 50%; bottom: 100%; z-index: 3; display: flex; align-items: flex-end; gap: 4px; height: 22px; margin-bottom: 4px; transform: translateX(-50%); pointer-events: none; }
.burst span { width: 5px; border-radius: 99px 99px 2px 2px; background: linear-gradient(var(--glow-mint), var(--glow-lilac)); transform-origin: 50% 100%; opacity: 0; }
.burst span:nth-child(1) { height: 40%; } .burst span:nth-child(2) { height: 70%; } .burst span:nth-child(3) { height: 100%; }

/* ---------- 5. eyebrow 알약 · 태그 · 칩 · 세그먼트 · 탭 ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 12px 4px 10px; border-radius: var(--radius-pill); background: var(--color-surface); box-shadow: var(--shadow-pill); font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: 1.43; color: var(--color-text); white-space: nowrap; }
.eyebrow .ico { color: var(--color-text); font-size: 18px; }
.eyebrow .ico-rise { color: var(--color-primary); font-size: 15px; }
.center .eyebrow, .eyebrow.mid { align-self: center; }
.on-night .eyebrow, .eyebrow.on-night { background: var(--glass-night); color: var(--color-on-night); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.on-night .eyebrow .ico, .on-night .eyebrow .ico-rise { color: var(--color-on-night-accent); }
.eyebrow-plain { font-size: var(--text-xs); font-weight: var(--weight-semi); color: var(--color-text-subtle); letter-spacing: 0.02em; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px; border-radius: var(--radius-pill); background: rgba(29, 79, 129, 0.04); font-size: var(--text-xs); font-weight: var(--weight-semi); color: var(--color-text-muted); white-space: nowrap; }
.tag-amber { background: var(--chip-amber-bg); color: var(--chip-amber-fg); }
.tag-mint { background: var(--chip-mint-bg); color: var(--chip-mint-fg); }
.tag-indigo { background: var(--chip-indigo-bg); color: var(--chip-indigo-fg); }
.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 0; border-radius: var(--radius-pill); background: var(--color-surface); box-shadow: var(--shadow-pill); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-muted); white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft); }
.chip::after { content: ""; position: absolute; inset: -4px 0; }
.chip:hover { color: var(--color-text); }
.chip.is-on, .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--color-primary); color: var(--white); box-shadow: var(--shadow-btn-primary); }
.chip .n { font-variant-numeric: tabular-nums; font-size: var(--text-xs); padding: 0 6px; border-radius: var(--radius-pill); background: rgba(36, 16, 63, 0.07); }
.chip.is-on .n, .chip[aria-pressed="true"] .n, .chip[aria-selected="true"] .n { background: rgba(255, 255, 255, 0.22); }
/* 세그먼트 = 결제 주기 토글: 흰 알약 표시기 */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--radius-pill); background: rgba(29, 79, 129, 0.05); box-shadow: inset 0 0 0 1px rgba(52, 16, 120, 0.05); }
.seg button { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 16px; border: 0; border-radius: var(--radius-pill); background: transparent; color: rgba(54, 39, 93, 0.8); font-size: var(--text-sm); font-weight: var(--weight-semi); white-space: nowrap; transition: background-color var(--dur-btn) var(--ease-soft), box-shadow var(--dur-btn) var(--ease-soft), color var(--dur-btn) var(--ease-soft); }
.seg button::after { content: ""; position: absolute; inset: -4px 0; }
.seg button:hover { color: #36275D; }
.seg button[aria-pressed="true"] { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-pill); }
.tabs { display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--color-border); }
.tabs::-webkit-scrollbar { display: none; }
.tabs > a, .tabs > button { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--color-text-muted); font-size: var(--text-sm); font-weight: var(--weight-semi); text-decoration: none; }
.tabs > [aria-selected="true"], .tabs > [aria-current="page"] { color: var(--color-text); }
.tabs > [aria-selected="true"]::after, .tabs > [aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--color-primary); }
.tabs .count { font-size: var(--text-xs); padding: 0 6px; border-radius: 99px; background: var(--color-chip); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }

/* ---------- 6. 배지 (상태 = 색 + 아이콘 + 글자) ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 2px 8px; border-radius: var(--radius-badge); border: 1px solid var(--b-border, var(--color-border)); background: var(--b-bg, var(--color-sunken)); color: var(--b-fg, var(--color-text)); font-size: var(--text-xs); font-weight: var(--weight-bold); line-height: 1.3; white-space: nowrap; vertical-align: middle; }
.badge .ico { font-size: 1.15em; }
.badge .ico-rise { font-size: 0.92em; color: var(--violet-700); }
.badge-lg { min-height: 30px; padding: 4px 12px; font-size: var(--text-sm); }
.badge-lg .ico-rise { font-size: 0.92em; }
.badge-lift { background: var(--lift-fill); border-color: var(--lift-border); color: var(--color-text); }
button.badge { cursor: pointer; font-family: inherit; }
.status-pending { --b-fg: var(--status-pending-fg); --b-bg: var(--status-pending-bg); --b-border: var(--status-pending-border); }
.status-confirmed { --b-fg: var(--status-confirmed-fg); --b-bg: var(--status-confirmed-bg); --b-border: var(--status-confirmed-border); }
.status-canceled { --b-fg: var(--status-canceled-fg); --b-bg: var(--status-canceled-bg); --b-border: var(--status-canceled-border); }
.status-hold { --b-fg: var(--status-hold-fg); --b-bg: var(--status-hold-bg); --b-border: var(--status-hold-border); }
.status-void { --b-fg: var(--status-void-fg); --b-bg: var(--status-void-bg); --b-border: var(--status-void-border); }
.status-paid { --b-fg: var(--status-paid-fg); --b-bg: var(--status-paid-bg); --b-border: var(--status-paid-border); }
.status-warn { --b-fg: var(--status-warn-fg); --b-bg: var(--status-warn-bg); --b-border: var(--status-warn-border); }
.status-info { --b-fg: var(--status-info-fg); --b-bg: var(--status-info-bg); --b-border: var(--status-info-border); }

/* 잠긴 지급률: 숫자 없음 (D4). hover·focus 때 자물쇠 틈으로 빛이 샌다 */
.lock-rate { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 0; border-radius: var(--radius-pill); background: repeating-linear-gradient(135deg, var(--color-sunken) 0 6px, var(--color-surface) 6px 12px); box-shadow: inset 0 0 0 1px var(--color-border); color: var(--color-text-muted); font-size: var(--text-xs); font-weight: var(--weight-semi); white-space: nowrap; overflow: visible; }
.lock-rate .dots { font-family: var(--font-num); font-weight: 700; letter-spacing: 0.04em; font-size: var(--text-sm); color: var(--color-text-subtle); }
.lock-rate .ico { color: var(--color-primary); }
.lock-rate::before { content: ""; position: absolute; z-index: -1; left: 2px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 140, 0.9) 0%, rgba(255, 143, 210, 0.45) 40%, transparent 70%); opacity: 0; transform: scale(0.6); transition: opacity var(--dur-base) var(--ease-soft), transform var(--dur-btn) var(--ease-soft); }
button.lock-rate { cursor: help; font-family: inherit; }
.tip-host { position: relative; display: inline-flex; }
.tip { position: absolute; z-index: var(--z-pop); right: 0; bottom: calc(100% + 8px); width: max-content; max-width: 260px; padding: 10px 12px; border-radius: 12px; background: var(--color-night); color: var(--color-on-night); font-size: var(--text-xs); font-weight: 500; line-height: 1.5; text-align: left; white-space: normal; box-shadow: var(--shadow-3); opacity: 0; visibility: hidden; transform: translateY(4px) scale(0.96); transform-origin: 90% 100%; transition: opacity var(--dur-drop) var(--ease-out), transform var(--dur-drop) var(--ease-out), visibility 0s linear var(--dur-drop); pointer-events: none; }
.tip strong { display: block; color: var(--white); }
.tip-host:hover .tip, .tip-host:focus-within .tip { opacity: 1; visibility: visible; transform: none; transition-delay: 150ms, 150ms, 0s; }
.tip-host:hover .lock-rate::before, .tip-host:focus-within .lock-rate::before { opacity: 1; transform: scale(1.4); }
.tip-left .tip { right: auto; left: 0; transform-origin: 10% 100%; }
.tip-side .tip { right: calc(100% + 10px); bottom: auto; top: 50%; transform: translate(4px, -50%) scale(0.96); transform-origin: 100% 50%; }
.tip-host.tip-side:hover .tip, .tip-host.tip-side:focus-within .tip { transform: translate(0, -50%); }
/* 미리보기 카드 (배지 hover·focus): 흰 카드, 200ms 지연 */
.pop-host { position: relative; display: inline-flex; }
.pop { position: absolute; z-index: var(--z-pop); right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 48px)); padding: var(--space-4); border-radius: 16px; background: var(--color-surface); box-shadow: var(--shadow-3); text-align: left; white-space: normal; font-size: var(--text-sm); line-height: 1.5; color: var(--color-text); opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.97); transform-origin: 90% 0; transition: opacity var(--dur-drop) var(--ease-out), transform var(--dur-drop) var(--ease-out), visibility 0s linear var(--dur-drop); }
.pop-host:hover .pop, .pop-host:focus-within .pop, .pop-host.is-open .pop { opacity: 1; visibility: visible; transform: none; transition-delay: 200ms, 200ms, 0s; }
.pop .pop-row { display: flex; justify-content: space-between; gap: var(--space-3); padding: 6px 0; border-bottom: 1px dashed var(--color-border); }
.pop .pop-row:last-of-type { border-bottom: 0; }

/* ---------- 7. 카드 · 유리 액자 · 판 ---------- */
.card { background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-1); padding: var(--space-5); min-width: 0; }
.card-flat { box-shadow: none; border: 1px solid var(--color-border); }
.card-sunken { background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-hairline); }
.card-price { box-shadow: var(--shadow-price); }
.card-link { display: block; color: inherit; text-decoration: none; transition: box-shadow var(--dur-base) var(--ease-soft); }
.card-link:hover { box-shadow: 0 0 0 1px rgba(52, 16, 120, 0.18), 0 1px 1px rgba(52, 16, 120, 0.04), 0 3px 3px rgba(52, 16, 120, 0.03); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); }
/* 유리 액자: 반투명 흰 40% 바깥 + 12px 여백 + radius 28 */
.frame { border-radius: var(--radius-frame); padding: var(--frame-pad); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), var(--shadow-price); min-width: 0; }
.frame > .card, .frame > .inner { border-radius: var(--radius-inner); box-shadow: 0 0 0 1px rgba(52, 16, 120, 0.07), 0 1px 2px rgba(52, 16, 120, 0.04); background: var(--color-surface); }
.frame-tight { --frame-pad: 6px; --radius-frame: 22px; }
.frame-tight > .card, .frame-tight > .inner { border-radius: 16px; }
/* 겹친 카드: 같은 그림자의 카드가 아래로 한 장 더 */
.stacked { position: relative; }
.stacked::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -10px; height: 24px; border-radius: 0 0 var(--radius-frame) var(--radius-frame); background: rgba(255, 255, 255, 0.75); box-shadow: 0 0 0 1px rgba(52, 16, 120, 0.06), 0 10px 14px -8px rgba(52, 16, 120, 0.14); z-index: -1; }
.frame.on-night { background: var(--glass-night); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 60px -30px rgba(0, 0, 0, 0.6); }

/* 둥근 판: 화면 가장자리에서 8px 안쪽, radius 56/32/24, 판끼리 8px 흰 틈 */
.panel { position: relative; margin-inline: var(--panel-inset); border-radius: var(--radius-panel); padding-block: var(--section-y); isolation: isolate; overflow: hidden; }
.panel + .panel { margin-top: var(--panel-inset); }
.panel-dawn { background: var(--panel-dawn); }
.panel-calc { background: var(--panel-calc); }
.panel-how { background: var(--panel-how); }
.panel-pay { background: var(--panel-pay); }
.panel-problem { background: var(--panel-problem); }
.panel-night { background: var(--panel-night); color: var(--color-on-night); }
/* 색 판 위 캡션은 보조 글 색으로 (#6B6480은 #E7E0FF 위 4.39:1이라 미달). 판 위 흰 카드 안은 원래 캡션 색 */
.panel .caption, .hero .caption { color: var(--color-text-muted); }
.panel .card .caption, .panel .frame .caption, .hero .frame .caption { color: var(--color-text-subtle); }
.panel-night .muted, .on-night .muted, .panel-night .caption, .on-night .caption { color: var(--color-on-night-muted); }
.panel-night a:not(.btn) { color: var(--color-on-night-accent); }
/* 밤하늘: 별 점 + 보라 빛 + 노이즈 (feTurbulence, overlay .25) */
.sky::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.75), transparent 60%), radial-gradient(1px 1px at 28% 62%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.4px 1.4px at 46% 12%, rgba(255,255,255,.7), transparent 60%), radial-gradient(1px 1px at 63% 40%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.3px 1.3px at 78% 22%, rgba(255,255,255,.7), transparent 60%), radial-gradient(1px 1px at 88% 66%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 8% 82%, rgba(255,255,255,.5), transparent 60%), radial-gradient(1px 1px at 55% 86%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.1px 1.1px at 36% 34%, rgba(255,255,255,.55), transparent 60%), radial-gradient(1.2px 1.2px at 94% 8%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(circle at 50% 0%, rgba(125, 57, 255, 0.3), transparent 60%); }
.sky::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.25; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* 배경 막대 조각. motion.js가 채운다. 991 미만·움직임 줄이기에서는 비움 */
.bits { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bit { position: absolute; width: 18px; height: 36px; border-radius: 6px; opacity: 0; }
.bit.o { opacity: 1; background: none; box-shadow: inset 0 0 0 1px rgba(52, 16, 120, 0.07); }
.panel-night .bit.o { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }

/* ---------- 8. 마케팅 상단 바: 떠 있는 유리 알약 → 20px 스크롤하면 흰 90% + 워드마크 접힘 + 가입 펼침 ---------- */
.topbar { position: sticky; top: 16px; z-index: var(--z-header); display: flex; justify-content: center; padding-inline: calc(var(--panel-inset) + 8px); margin-top: 16px; pointer-events: none; }
.topbar-in { pointer-events: auto; display: flex; align-items: center; gap: var(--space-2); min-height: 56px; padding: 6px 6px 6px 12px; border-radius: 14px; background: var(--glass-bar); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow-float); transition: background-color var(--dur-btn) var(--ease-soft); max-width: 100%; }
.topbar-nav { display: none; align-items: center; gap: 2px; margin-inline: var(--space-3) var(--space-4); padding-left: var(--space-3); border-left: 1px solid var(--color-border); }
.topbar-nav > a, .topbar-nav .dd > button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--color-text); font-size: var(--text-sm); font-weight: var(--weight-medium); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-soft); }
.topbar-nav > a:hover, .topbar-nav .dd > button:hover, .topbar-nav > a[aria-current="page"] { background: rgba(29, 79, 129, 0.04); }
.topbar-act { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topbar .btn-login { background: var(--color-surface); box-shadow: var(--shadow-btn-secondary); transition: background-color 200ms var(--ease-soft), box-shadow 200ms var(--ease-soft); }
.topbar .btn-join { overflow: hidden; }
@media (min-width: 900px) {
  .topbar-nav { display: flex; }
  .topbar-act { margin-left: 0; }
  .topbar .btn-join { max-width: 0; padding-inline: 0; opacity: 0; margin-left: -6px; transition: max-width var(--dur-btn) var(--ease-soft), padding var(--dur-btn) var(--ease-soft), opacity var(--dur-btn) var(--ease-soft), margin var(--dur-btn) var(--ease-soft), box-shadow var(--dur-btn) var(--ease-soft); }
  .topbar.is-scrolled .btn-join { max-width: 140px; padding-inline: 14px; opacity: 1; margin-left: 0; }
  .topbar.is-scrolled .btn-login { background: transparent; box-shadow: none; }
  .topbar.is-scrolled .logo-word { max-width: 0; opacity: 0; }
  .topbar.is-scrolled .logo { gap: 0; }
}
.topbar.is-scrolled .topbar-in { background: var(--glass-bar-scrolled); }
.topbar .logo { transition: gap var(--dur-btn) var(--ease-soft); }
.topbar.over-panel { margin-bottom: calc(-56px - 16px); }
/* 드롭다운: 열림 scale .9→1 + 페이드 200ms, 닫힘 300ms */
.dd { position: relative; }
.dd-menu { position: absolute; left: 0; top: calc(100% + 10px); min-width: 240px; padding: 6px; border-radius: 14px; background: var(--color-surface); box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; transform: scale(0.9); transform-origin: 20% 0; transition: opacity 500ms ease, transform 300ms var(--ease-out), visibility 0s linear 500ms; }
.dd.is-open .dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-drop) var(--ease-out), transform var(--dur-drop) var(--ease-out), visibility 0s; }
.dd-menu a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--color-text); text-decoration: none; font-size: var(--text-sm); }
.dd-menu a:hover { background: rgba(29, 79, 129, 0.04); }
.dd-menu a .ico { margin-top: 2px; color: var(--color-heading-accent); }
.dd-menu a small { display: block; font-size: var(--text-xs); color: var(--color-text-subtle); }
.dd > button .ph-caret-down { transition: transform var(--dur-drop) var(--ease-out); font-size: 12px; }
.dd.is-open > button .ph-caret-down { transform: rotate(180deg); }

/* ---------- 9. 앱 셸 ---------- */
.shell { min-height: 100vh; }
.sidenav { display: none; }
.appbar { position: sticky; top: 0; z-index: var(--z-header); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--header-h); padding: 0 var(--gutter); background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 1px 0 var(--color-border); }
.appbar .acts { display: flex; gap: 2px; }
.app-main { padding-block: var(--space-6) calc(var(--tabbar-h) + var(--space-10) + env(safe-area-inset-bottom)); }
.app-main .container { max-width: calc(var(--app-max) + var(--gutter) * 2); }  /* 2026-10-09: 1120 → 1320, 좁으면 유동 */
.page-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.page-head.row-between { flex-direction: row; align-items: flex-end; }
@media (min-width: 1024px) {
  body[data-view="member"] .shell { display: grid; grid-template-columns: var(--sidenav-w) minmax(0, 1fr); }
  body[data-view="member"] .sidenav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; padding: var(--space-5) var(--space-4); background: var(--color-surface-2); box-shadow: inset -1px 0 0 var(--color-border); }
  body[data-view="member"] .appbar { display: none; }
  .app-main { padding-block: var(--space-8) var(--space-16); }
}
.sidenav .logo { margin: 0 var(--space-2) var(--space-5); }
.sidenav .nav-label { margin: var(--space-4) var(--space-3) var(--space-1); font-size: var(--text-2xs); font-weight: var(--weight-semi); color: var(--color-text-subtle); letter-spacing: 0.04em; }
.sidenav a.nav { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 0 var(--space-3); border-radius: 10px; color: var(--color-text-muted); font-size: var(--text-sm); font-weight: var(--weight-medium); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft); }
.sidenav a.nav:hover { background: rgba(29, 79, 129, 0.04); color: var(--color-text); }
.sidenav a.nav[aria-current="page"] { background: var(--color-surface); color: var(--color-text); font-weight: var(--weight-semi); box-shadow: var(--shadow-pill); }
.sidenav a.nav[aria-current="page"] .ico { color: var(--color-primary); }
.sidenav .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-2); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar); display: grid; grid-template-columns: repeat(5, 1fr); min-height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 -1px 0 var(--color-border); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: var(--color-text-subtle); font-size: var(--text-2xs); font-weight: var(--weight-semi); text-decoration: none; }
.tabbar a .ico { font-size: 22px; }
.tabbar a[aria-current="page"] { color: var(--color-primary); }
@media (min-width: 1024px) { .tabbar { display: none; } }
.app-foot { margin-top: var(--space-12); padding-top: var(--space-4); border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; justify-content: space-between; }
/* 푸터 문장 안 링크의 터치 영역(QA Q8): 인라인 세로 여백은 줄 높이를 바꾸지 않고, 가로 여백은 같은 크기 음수 여백으로 상쇄해 보이는 모양은 그대로 둔다 */
.app-foot .caption a, .lfoot .biz-info a { padding: 6px 4px; margin-inline: -4px; }

/* ---------- 10. 표 (제품 표: 옅은 머리, 얇은 줄, 행 끝 행동) ---------- */
.table-wrap { background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-1); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th { padding: 10px 14px; text-align: left; background: var(--color-surface-2); border-bottom: 1px solid var(--color-border); font-size: var(--text-xs); font-weight: var(--weight-semi); color: var(--color-text-subtle); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--color-rule); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--dur-base) var(--ease-soft); }
.table tbody tr:hover { background: var(--color-surface-2); }
.table .r, .table .num-cell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .cell-title { font-weight: var(--weight-semi); }
.table tr.is-void .num-cell { text-decoration: line-through; color: var(--color-text-subtle); }
.table tfoot td { padding: 12px 14px; border-top: 2px solid var(--color-text); font-weight: var(--weight-semi); }
@media (max-width: 767px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack td { display: flex; justify-content: space-between; gap: var(--space-3); padding: 4px 0; border: 0; text-align: right; }
  .table-stack td::before { content: attr(data-label); color: var(--color-text-subtle); font-size: var(--text-xs); text-align: left; flex: none; }
  .table-stack td.cell-title { display: block; text-align: left; padding-bottom: 6px; }
  .table-stack td.cell-title::before { content: none; }
}
.table-scroll { overflow-x: auto; }
/* '더 받음만' 필터를 켜면 남은 행 위로 빛이 한 번 훑는다 (motion.js 조건에서만 클래스가 붙음) */
.table-wrap { position: relative; }
.table-wrap.is-sweep::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 236, 194, 0.55) 44%, rgba(233, 222, 255, 0.7) 52%, rgba(201, 242, 225, 0.5) 60%, transparent 72%); animation: sweep 1000ms var(--ease-soft) 1 both; }

/* ---------- 11. 입력 · 선택 · 모달 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: var(--text-sm); font-weight: var(--weight-semi); }
.hint { font-size: var(--text-xs); color: var(--color-text-subtle); }
.error { display: flex; gap: 6px; align-items: flex-start; font-size: var(--text-xs); font-weight: var(--weight-semi); color: var(--status-canceled-fg); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-input); border: 1px solid var(--color-border-strong); background: var(--color-surface); font-size: max(16px, var(--text-md)); box-shadow: 0 1px 2px rgba(52, 16, 120, 0.04), 0 3px 3px rgba(52, 16, 120, 0.03); transition: box-shadow var(--dur-btn) var(--ease-soft), border-color var(--dur-btn) var(--ease-soft); }
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: rgba(36, 16, 63, 0.6); }
.select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--input-focus-border); box-shadow: var(--input-ring), 0 1px 2px rgba(52, 16, 120, 0.04); }
.input[aria-invalid="true"] { border-color: var(--status-canceled-fg); }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix .input { padding-right: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.input-affix .affix { position: absolute; right: 14px; color: var(--color-text-muted); font-size: var(--text-sm); pointer-events: none; }
.copybox { display: flex; align-items: center; gap: var(--space-2); padding: 6px 6px 6px 14px; border-radius: var(--radius-input); background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-border); min-width: 0; }
.copybox .code { flex: 1; min-width: 0; font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote { padding: var(--space-3) var(--space-4); border-radius: 12px; background: var(--color-sunken); font-size: var(--text-sm); line-height: var(--lh-sm); color: var(--color-text); }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-block: 10px; cursor: pointer; font-size: var(--text-sm); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--color-primary); flex: none; cursor: pointer; }
.radio-cards { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .radio-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.radio-card { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 12px; background: var(--color-surface); box-shadow: var(--shadow-btn-secondary); font-size: var(--text-sm); font-weight: var(--weight-semi); cursor: pointer; transition: box-shadow var(--dur-btn) var(--ease-soft); }
.radio-card input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-primary); cursor: pointer; }
.radio-card:has(input:checked) { box-shadow: 0 0 0 2px var(--color-primary), 0 6px 14px -8px rgba(106, 61, 240, 0.5); }
.radio-card .ico { color: var(--color-text-muted); font-size: 18px; }
/* 슬라이더: grab / grabbing */
.range { width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; accent-color: var(--color-primary); }
.range:active { cursor: grabbing; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--violet-600) 0 var(--p, 30%), var(--color-chip) var(--p, 30%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px rgba(52, 16, 120, 0.18), 0 4px 10px rgba(52, 16, 120, 0.2), 0 0 0 6px rgba(180, 140, 255, 0.22); }
.range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--color-chip); }
.range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--violet-600); }
.range::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px rgba(52, 16, 120, 0.18), 0 4px 10px rgba(52, 16, 120, 0.2), 0 0 0 6px rgba(180, 140, 255, 0.22); }
.range:focus-visible { outline-offset: 6px; }
.modal-scrim { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: end center; padding: var(--space-4); background: rgba(23, 6, 41, 0.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity var(--dur-drop) var(--ease-out), visibility 0s linear var(--dur-drop); }
.modal-scrim.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur-drop) var(--ease-out); }
@media (min-width: 768px) { .modal-scrim { place-items: center; } }
.modal { width: min(100%, 560px); max-height: calc(100vh - 32px); overflow: auto; padding: var(--space-6); border-radius: 24px; background: var(--color-surface); box-shadow: var(--shadow-3); transform: translateY(12px) scale(0.98); transition: transform var(--dur-drop) var(--ease-out); }
.modal-scrim.is-open .modal { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-4); }
.modal-foot { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.modal-foot .btn-primary { flex: 1; }
.dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px var(--space-4); font-size: var(--text-sm); }
.dl dt { color: var(--color-text-subtle); font-weight: var(--weight-semi); }

/* ---------- 12. 배너 · 장부 · KPI · 막대 · 단계 ---------- */
.banner { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: 14px; background: var(--b-bg, var(--color-surface-2)); color: var(--b-fg, var(--color-text)); box-shadow: inset 0 0 0 1px var(--b-border, var(--color-hairline)); font-size: var(--text-sm); line-height: var(--lh-sm); }
.banner > .ico { font-size: 20px; margin-top: 1px; }
.banner strong { display: block; margin-bottom: 2px; }
.banner p { margin: 0; }
.banner-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.banner-lift { --b-bg: var(--lift-tint); --b-border: var(--lift-border); }
.banner.status-warn, .banner.status-hold, .banner.status-confirmed, .banner.status-canceled, .banner.status-void, .banner.status-info { --b-fg: inherit; color: var(--color-text); }
.banner.status-warn > .ico { color: var(--status-warn-fg); } .banner.status-hold > .ico { color: var(--status-hold-fg); } .banner.status-confirmed > .ico { color: var(--status-confirmed-fg); } .banner.status-canceled > .ico { color: var(--status-canceled-fg); } .banner.status-void > .ico { color: var(--status-void-fg); }
.ledger { display: flex; flex-direction: column; }
.ledger-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: var(--space-2); align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--color-border); font-size: var(--text-sm); }
.ledger-row .op { font-family: var(--font-code); color: var(--color-text-subtle); }
.ledger-row .k { color: var(--color-text-muted); }
.ledger-row .k a { font-size: var(--text-xs); margin-left: 6px; }
.ledger-total { border-bottom: 0; border-top: 2px solid var(--color-text); margin-top: 4px; padding-top: 12px; }
.ledger-total .k { color: var(--color-text); font-weight: var(--weight-semi); }
.kpi { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-1); }
.kpi-label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: var(--weight-semi); color: var(--color-text-muted); }
.kpi-sub { font-size: var(--text-xs); color: var(--color-text-subtle); }
/* 데이터 막대 (차트). 오늘 막대만 오로라 */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 72px; }
.bars span { flex: 1; height: var(--h); min-height: 4px; border-radius: 4px 4px 2px 2px; background: var(--color-chip); }
.bars span.is-up { background: var(--violet-300); }
.bars span.is-today { background: var(--lift-fill); box-shadow: inset 0 0 0 1px var(--lift-border); }
/* 첫 정산까지 6단계: 왼쪽에서 오른쪽으로 높아지는 계단 막대 (서명 모션과 같은 형태) */
.stair { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: end; }
.stair li { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
.stair .bar { display: block; height: var(--h); border-radius: 8px 8px 4px 4px; background: var(--color-chip); transform-origin: 50% 100%; }
.stair li:nth-child(1) { --h: 8px; } .stair li:nth-child(2) { --h: 14px; --from: 0.571; } .stair li:nth-child(3) { --h: 20px; --from: 0.7; } .stair li:nth-child(4) { --h: 26px; --from: 0.769; } .stair li:nth-child(5) { --h: 32px; --from: 0.8125; } .stair li:nth-child(6) { --h: 38px; --from: 0.842; }
.stair li.on .bar { background: linear-gradient(180deg, var(--violet-600), var(--violet-700)); }
.stair li.now .bar { background: var(--lift-fill); box-shadow: inset 0 0 0 1.5px var(--lift-border); }
.stair .lb { display: flex; align-items: center; gap: 3px; font-size: var(--text-2xs); line-height: 1.3; color: var(--color-text-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stair li.on .lb { color: var(--color-text-muted); }
.stair li.now .lb { color: var(--color-text); font-weight: var(--weight-semi); }
.steps { display: flex; flex-direction: column; counter-reset: st; }
.step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px var(--space-3); padding-bottom: var(--space-5); }
.step::before { counter-increment: st; content: counter(st); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: var(--text-xs); font-weight: 700; background: var(--color-chip); color: var(--color-text-muted); }
.step::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: var(--color-border); }
.step:last-child::after { display: none; }
.step.is-done::before { content: "✓"; background: var(--status-confirmed-bg); color: var(--status-confirmed-fg); }
.step.is-now::before { background: var(--color-primary); color: var(--white); }
.step-title { font-weight: var(--weight-semi); font-size: var(--text-sm); }
.step-body { grid-column: 2; font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- 13. 몰 로고 · 빈 상태 · 스켈레톤 · 토스트 · 스포트라이트 ---------- */
.mall-logo { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border), 0 1px 2px rgba(52, 16, 120, 0.06); font-weight: 700; font-size: var(--text-sm); letter-spacing: -0.02em; color: var(--color-text); }
/* 13.1 몰 로고 판 (2026-10-09): 원본 로고(assets/logos/*.webp, 480x192 투명 캔버스에 시각 무게를 맞춰 둠)를 흰 판 위에 그대로 올린다.
   로고는 변형·재채색하지 않는다. 다크 모드에서도 판은 흰색 고정(브랜드 색 보존). 이미지가 없거나 실패하면 .is-fb → 첫 글자 칸(.mall-logo) */
.logo-box { position: relative; display: grid; place-items: center; flex: none; aspect-ratio: 5 / 2; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(52, 16, 120, 0.08); overflow: hidden; }
.logo-box > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-box > .mall-logo { display: none; }
.logo-box.is-fb > img { display: none; }
.logo-box.is-fb > .mall-logo { display: inline-grid; box-shadow: none; }
.logo-box > .logo-badge { position: absolute; top: 8px; right: 8px; }
.logo-chip { width: 96px; border-radius: 10px; }  /* 표 행·작은 묶음용 (96x38) */
.logo-cover { width: 100%; aspect-ratio: 2 / 1; border-radius: 16px; }  /* 카드 윗면 큰 로고 영역 */
.logo-cover > img { position: absolute; inset: 0; margin: auto; width: auto; height: 100%; max-width: 100%; }
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-12) var(--space-4); text-align: center; border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-1); }
.empty-kicker { font-family: var(--font-num); font-weight: 700; font-size: var(--num-2xl); line-height: 1; color: var(--color-chip); font-variant-numeric: tabular-nums; }
.empty-kicker .u { font-size: 0.5em; }
.skel { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--color-sunken) 0%, var(--color-surface-2) 50%, var(--color-sunken) 100%); background-size: 200% 100%; }
.skel-line { height: 12px; } .skel-num { height: 40px; width: 60%; } .skel-row { height: 52px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: var(--z-toast); display: flex; align-items: center; gap: var(--space-2); padding: 12px 18px; border-radius: 14px; background: var(--color-night); color: var(--color-on-night); font-size: var(--text-sm); font-weight: var(--weight-semi); box-shadow: var(--shadow-3); opacity: 0; transform: translate(-50%, 8px) scale(0.98); pointer-events: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); max-width: calc(100vw - 32px); }
.toast .ico { color: var(--aurora-mint-on-night); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (min-width: 1024px) { .toast { bottom: var(--space-8); } }
/* 스포트라이트: 커서를 따라가는 옅은 빛 원 (데스크톱 pointer:fine, motion.js가 --mx/--my 설정) */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(180, 140, 255, 0.16), rgba(255, 143, 210, 0.06) 40%, transparent 70%); transition: opacity var(--dur-base) var(--ease-soft); }
.spot > * { position: relative; z-index: 1; }
html.has-spot .spot:hover::after { opacity: 1; }
tr.spot-row > td { background-image: radial-gradient(240px circle at calc(var(--mx, -999px) - var(--cx, 0px)) var(--my, 50%), rgba(180, 140, 255, 0.13), transparent 70%); background-repeat: no-repeat; }
/* 배지 카드 테두리 빛이 1회 돈다 */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ring { position: relative; }
.ring::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; background: conic-gradient(from var(--ang), transparent 0 62%, var(--glow-lilac) 74%, var(--glow-pink) 82%, var(--glow-butter) 88%, transparent 96%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* 반짝 (초대 복사): 카드 모서리에서 한 번 */
.sparkle-host { position: relative; }
.sparkle-host .sparkle { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; pointer-events: none; opacity: 0; background: radial-gradient(circle, #fff 0 12%, rgba(255, 200, 107, 0.9) 18%, rgba(255, 143, 210, 0.4) 40%, transparent 70%); }

/* ---------- 14. 푸터 · 움직임 줄이기 토글 ---------- */
.site-footer { padding-block: var(--space-16) var(--space-10); font-size: var(--text-sm); color: var(--color-text-muted); }
.foot-grid { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.foot-grid h3 { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-subtle); margin-bottom: var(--space-2); }
.foot-grid a { display: inline-flex; align-items: center; min-height: 36px; color: var(--color-text-muted); text-decoration: none; }
.foot-grid a:hover { color: var(--color-text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-10); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--color-text-muted); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.motion-toggle .sw { position: relative; width: 36px; height: 22px; border-radius: 99px; background: var(--color-chip); box-shadow: inset 0 0 0 1px var(--color-border); transition: background-color var(--dur-fast) var(--ease-soft); }
.motion-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(52, 16, 120, 0.3); transition: transform var(--dur-fast) var(--ease-soft); }
.motion-toggle[aria-pressed="true"] .sw { background: var(--color-primary); }
.motion-toggle[aria-pressed="true"] .sw::after { transform: translateX(14px); }

/* 신뢰 영역: 장식 모션 강제 정지 (정산·실적·관리자) */
body[data-zone="trust"] .burst, body[data-zone="trust"] .sparkle, body[data-zone="trust"] .bits { display: none !important; }

/* =========================================================================
   16. 모션 켜짐 (OS 움직임 줄이기 아님 + 사용자 토글 꺼짐일 때만)
   ========================================================================= */
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hl-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes glow-move { 0% { background-position: 50% 0%; } 50% { background-position: 50% 50%; } 100% { background-position: 50% 0%; } }
@keyframes band-move { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes beam { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }
@keyframes float-up { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }
@keyframes step-rise { 0% { opacity: 0; transform: scaleY(var(--from, 0)); } 1% { opacity: 1; transform: scaleY(var(--from, 0)); } 100% { opacity: 1; transform: scaleY(1); } }
@keyframes burst-out { 0%, 70% { opacity: 1; transform: translateX(-50%); } 100% { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes wave { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes ring-spin { 0% { --ang: 0deg; opacity: 1; } 90% { opacity: 1; } 100% { --ang: 360deg; opacity: 0; } }
@keyframes sparkle { 0% { opacity: 0; transform: scale(0.3) rotate(0); } 40% { opacity: 1; transform: scale(1.2) rotate(30deg); } 100% { opacity: 0; transform: scale(0.6) rotate(60deg); } }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduce"]) .glow.is-live { animation: glow-move var(--dur-glow) linear infinite; }
  :root:not([data-motion="reduce"]) .hl.hl-auto::before { animation: hl-draw 700ms var(--ease-soft) 1100ms both; }
  :root:not([data-motion="reduce"]) .hl.hl-wait::before { transform: scaleX(0); }
  :root:not([data-motion="reduce"]) .hl.hl-go::before { animation: hl-draw 700ms var(--ease-soft) both; }
  :root:not([data-motion="reduce"]) .risebars.auto span { animation: step-rise 400ms var(--ease-soft) both; }
  :root:not([data-motion="reduce"]) .risebars.auto span:nth-child(2) { animation-delay: 400ms; }
  :root:not([data-motion="reduce"]) .risebars.auto span:nth-child(3) { animation-delay: 800ms; }
  :root:not([data-motion="reduce"]) .risebars.auto span:nth-child(4) { animation-delay: 1200ms; }
  /* 로딩: 높이는 그대로(계단), 빛만 왼쪽에서 오른쪽으로 지나간다 */
  :root:not([data-motion="reduce"]) .risebars.loading span { animation: wave 1200ms var(--ease-in-out) infinite; }
  :root:not([data-motion="reduce"]) .risebars.loading span:nth-child(2) { animation-delay: 200ms; }
  :root:not([data-motion="reduce"]) .risebars.loading span:nth-child(3) { animation-delay: 400ms; }
  :root:not([data-motion="reduce"]) .stair.auto li.on .bar, :root:not([data-motion="reduce"]) .stair.auto li.now .bar { animation: step-rise 220ms var(--ease-soft) both; }
  :root:not([data-motion="reduce"]) .stair.auto li:nth-child(2) .bar { animation-delay: 220ms; } :root:not([data-motion="reduce"]) .stair.auto li:nth-child(3) .bar { animation-delay: 440ms; }
  :root:not([data-motion="reduce"]) .stair.auto li:nth-child(4) .bar { animation-delay: 660ms; } :root:not([data-motion="reduce"]) .stair.auto li:nth-child(5) .bar { animation-delay: 880ms; } :root:not([data-motion="reduce"]) .stair.auto li:nth-child(6) .bar { animation-delay: 1100ms; }
  :root:not([data-motion="reduce"]) .burst { animation: burst-out 640ms var(--ease-out) both; }
  :root:not([data-motion="reduce"]) .burst span { animation: step-rise 150ms var(--ease-soft) both; }
  :root:not([data-motion="reduce"]) .burst span:nth-child(2) { animation-delay: 150ms; }
  :root:not([data-motion="reduce"]) .burst span:nth-child(3) { animation-delay: 300ms; }
  :root:not([data-motion="reduce"]) .ring:hover::before { animation: ring-spin 1200ms var(--ease-out) 1; }
  :root:not([data-motion="reduce"]) .sparkle-host.is-sparkle .sparkle { animation: sparkle 900ms var(--ease-out) 1; }
  :root:not([data-motion="reduce"]) .skel { animation: skel 1.2s linear infinite; }
  :root:not([data-motion="reduce"]) .odo .col { transition: transform var(--dur-count) var(--ease-soft); }
}
/* 문제 제기 카드 좌우 교대 등장: motion.js가 motion-ok를 붙인 경우에만 숨겼다가 보인다 (JS 없으면 처음부터 보임) */
html.motion-ok .slide-in:not(.is-in) { opacity: 0; transform: translateX(var(--from, -32px)); }
html.motion-ok .slide-in { transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
/* 굴러가는 숫자: 자릿수 세로 띠 (motion.js가 만든다) */
.odo { display: inline-flex; overflow: hidden; height: 1.05em; line-height: 1.05; vertical-align: bottom; }
.odo .col { display: flex; flex-direction: column; }
.odo .col span { height: 1.05em; }

/* =========================================================================
   17. 카피 확정본 반영 추가 (2026-10-08): 공개 베타 표기, 흰 띠 형광펜, 아코디언, 가입 시트,
       시작 체크리스트 4구간, 1만원 계기, 실적 타임라인, 화면 안 용어 풀이, 법무 자리표시
   ========================================================================= */
/* 공개 베타 태그 (상단 바 워드마크 옆) */
.tag-beta { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--color-accent-soft-2); color: var(--color-heading-accent); font-size: var(--text-2xs); font-weight: var(--weight-bold); letter-spacing: 0.02em; white-space: nowrap; }
.topbar .tag-beta { margin-left: 2px; }
.topbar-desc { display: none; font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; padding-left: var(--space-2); }
@media (min-width: 1280px) { .topbar-desc { display: inline; } }
/* 상단 바 CTA 상시 노출판: 스크롤 전 "무료로 시작하기", 20px 스크롤 뒤 "무료 가입"으로 접힘 (워드마크 접힘은 그대로) */
.btn-join .t-short { display: none; }
@media (max-width: 599px) { .btn-join .t-full { display: none; } .btn-join .t-short { display: inline; } .topbar .btn-login { padding-inline: 10px; } }
@media (min-width: 900px) {
  .topbar.cta-always .btn-join { max-width: 200px; padding-inline: 14px; opacity: 1; margin-left: 0; }
  .topbar.cta-always.is-scrolled .btn-join { max-width: 140px; }
  .topbar.cta-always.is-scrolled .btn-join .t-full { display: none; }
  .topbar.cta-always.is-scrolled .btn-join .t-short { display: inline; }
}
@media (min-width: 900px) { .topbar.cta-always.is-scrolled .tag-beta { display: none; } }
.foot-beta { display: inline-flex; align-items: center; gap: 6px; }

/* 흰 띠 형광펜: 새벽 판 위 "더 받는 돈" 글자 뒤에 흰 띠를 먼저 깔고, 그 위에 오로라 형광펜 (흰 바탕 위에만 규칙) */
.hl-plate { display: inline-block; position: relative; z-index: 0; padding: 0 0.12em 0.02em; margin: 0 -0.04em; border-radius: 0.2em; background: var(--white); box-shadow: 0 0 0 1px rgba(52, 16, 120, 0.06), 0 10px 24px -14px rgba(52, 16, 120, 0.35); }
.nowrap { white-space: nowrap; }
/* 형광펜 1회: 첫 진입 때만 그어지고, 이후 방문·움직임 줄이기에서는 그어진 상태로 정지 */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduce"]) .hl.hl-once::before { animation: hl-draw 700ms var(--ease-soft) 1300ms both; }
  :root:not([data-motion="reduce"]) .ring.ring-once::before { animation: ring-spin 1200ms var(--ease-out) 2100ms 1 both; }
}

/* 아코디언 (FAQ·원문 펼침·용어 풀이) */
.acc { border-bottom: 1px solid var(--color-border); }
.acc > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 56px; padding-block: 12px; cursor: pointer; list-style: none; font-size: var(--text-md); font-weight: var(--weight-semi); line-height: 1.45; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .ph-caret-down { flex: none; color: var(--color-text-subtle); transition: transform var(--dur-drop) var(--ease-out); }
.acc[open] > summary .ph-caret-down { transform: rotate(180deg); }
.acc > .acc-body { padding-bottom: var(--space-4); font-size: var(--text-sm); line-height: var(--lh-sm); color: var(--color-text-muted); }
.acc-sm > summary { min-height: 44px; font-size: var(--text-sm); }

/* 행동 시점 가입 시트: 모바일 아래에서 올라오는 시트, 데스크톱 오른쪽 패널 */
.sheet-scrim { place-items: end center; padding: 0; }
.sheet { width: 100%; max-width: 560px; max-height: calc(100% - 12px); overflow: auto; padding: var(--space-5) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--color-surface); box-shadow: var(--shadow-3); transform: translateY(16px); transition: transform var(--dur-drop) var(--ease-out); }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto var(--space-4); border-radius: 4px; background: var(--color-chip); }
.modal-scrim.is-open .sheet { transform: none; }
@media (min-width: 1024px) { .sheet-scrim { place-items: stretch end; } .sheet { max-width: 480px; max-height: none; height: 100%; border-radius: 24px 0 0 24px; padding: var(--space-8); } .sheet::before { display: none; } }

/* 시작 체크리스트 4구간: 계단 막대 4칸 (낮음 → 높음) */
.stair.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stair.four li:nth-child(1) { --h: 10px; } .stair.four li:nth-child(2) { --h: 18px; --from: 0.556; } .stair.four li:nth-child(3) { --h: 26px; --from: 0.692; } .stair.four li:nth-child(4) { --h: 34px; --from: 0.765; }
.checklist { display: flex; flex-direction: column; gap: var(--space-2); }
.ck-sec { border-radius: 14px; background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-hairline); }
.ck-sec > summary { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: 8px var(--space-4); cursor: pointer; list-style: none; font-size: var(--text-sm); font-weight: var(--weight-semi); }
.ck-sec > summary::-webkit-details-marker { display: none; }
.ck-sec > summary .st { margin-left: auto; font-size: var(--text-xs); font-weight: var(--weight-semi); color: var(--color-text-subtle); white-space: nowrap; }
.ck-sec.is-now { background: var(--color-surface); box-shadow: 0 0 0 1.5px var(--color-primary), var(--shadow-1); }
.ck-sec.is-done > summary .st { color: var(--status-confirmed-fg); }
.ck-sec ul { display: flex; flex-direction: column; padding: 0 var(--space-4) var(--space-3); }
.ck-sec li { display: flex; align-items: center; gap: var(--space-3); min-height: 40px; font-size: var(--text-sm); color: var(--color-text-muted); border-top: 1px dashed var(--color-border); }
.ck-sec li .ico { font-size: 18px; color: var(--color-text-subtle); }
.ck-sec li.done { color: var(--color-text); }
.ck-sec li.done .ico { color: var(--status-confirmed-fg); }
.ck-sec li.next { color: var(--color-text); font-weight: var(--weight-semi); }
.ck-sec li.next .ico { color: var(--color-primary); }
.ck-sec li .self { margin-left: auto; }
.ck-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--color-chip); color: var(--color-text-muted); font-size: var(--text-xs); font-weight: 700; flex: none; }
.ck-sec.is-now .ck-no { background: var(--color-primary); color: var(--white); }
.ck-sec.is-done .ck-no { background: var(--status-confirmed-bg); color: var(--status-confirmed-fg); }

/* 1만원까지 남은 금액 계기 (신뢰 영역 숫자: 굴림 없음, 가로 진행선 하나) */
.meter { position: relative; height: 10px; border-radius: 99px; background: var(--color-chip); overflow: hidden; }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v, 0%); border-radius: inherit; background: var(--color-primary); }
.meter-ticks { display: flex; justify-content: space-between; font-size: var(--text-2xs); color: var(--color-text-subtle); font-variant-numeric: tabular-nums; }

/* 실적 타임라인: 대기 → 확정 → 정산 대상 → 지급 예정 (모두 예상 표시) */
.tl { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
.tl li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px var(--space-3); padding-bottom: var(--space-4); }
.tl li::before { content: ""; grid-row: span 2; width: 14px; height: 14px; margin: 4px 7px 0; border-radius: 50%; background: var(--color-surface); box-shadow: inset 0 0 0 2px var(--color-border-strong); }
.tl li::after { content: ""; position: absolute; left: 13.5px; top: 22px; bottom: 0; width: 1px; background: var(--color-border); }
.tl li:last-child::after { display: none; }
.tl li.done::before { background: var(--status-confirmed-fg); box-shadow: none; }
.tl li.now::before { background: var(--status-pending-bg); box-shadow: inset 0 0 0 2px var(--status-pending-fg); }
.tl .t { font-size: var(--text-sm); font-weight: var(--weight-semi); }
.tl .d { grid-column: 2; font-size: var(--text-xs); color: var(--color-text-muted); }
.tl .est { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--color-chip); font-size: var(--text-2xs); font-weight: 600; color: var(--color-text-muted); }
@media (min-width: 1024px) {
  .tl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tl li { grid-template-columns: minmax(0, 1fr); padding: 26px var(--space-3) 0 0; }
  .tl li::before { position: absolute; top: 0; left: 0; margin: 0; }
  .tl li::after { left: 18px; right: 0; top: 6.5px; bottom: auto; width: auto; height: 1px; }
  .tl .d { grid-column: 1; }
}

/* 화면 안 용어 풀이: 점선 밑줄 버튼 → 누르면(터치·키보드) 풀이 카드 */
.term { display: inline; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: var(--weight-semi); text-decoration: underline dotted var(--color-heading-accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: help; }
.term-host { position: relative; display: inline-block; }
.term-host .pop { left: 0; right: auto; transform-origin: 10% 0; font-weight: var(--weight-regular, 400); }
.term-host .pop > b, .term-host .pop > .pop-line, .term-host .pop > .pop-ex { display: block; }
.term-host .pop > .pop-ex { margin-top: 4px; }

/* 법무 검토 전 자리표시 (광고 표시 문구 3종): 실제 문구 대신 회색 빗금 칸 */
.ph-box { display: block; padding: var(--space-3) var(--space-4); border-radius: 12px; background: repeating-linear-gradient(135deg, var(--color-sunken) 0 8px, var(--color-surface-2) 8px 16px); box-shadow: inset 0 0 0 1px var(--color-border); font-family: var(--font-code); font-size: var(--text-compact); line-height: 1.5; color: var(--color-text-muted); overflow-wrap: anywhere; }
.ph-box b { font-family: var(--font-sans); color: var(--color-text); }

/* 신뢰 정보 블록 (P0-29): 다섯 칸을 한 줄씩 */
.trust-rows { display: flex; flex-direction: column; }
.trust-rows > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px var(--space-6); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-rule); font-size: var(--text-sm); line-height: var(--lh-sm); }
.trust-rows > div:last-child { border-bottom: 0; }
.trust-rows dt { font-weight: var(--weight-semi); color: var(--color-text); }
.trust-rows dd { color: var(--color-text-muted); }
@media (min-width: 768px) { .trust-rows > div { grid-template-columns: 200px minmax(0, 1fr); } }
.trust-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.trust-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: var(--weight-semi); }

/* 점검 목록 (클릭 0·빈 실적) */
.checkrows { display: flex; flex-direction: column; gap: 2px; }
.checkrows li { display: flex; gap: var(--space-3); align-items: flex-start; padding: 8px 0; font-size: var(--text-sm); line-height: var(--lh-sm); }
.checkrows li .ico { margin-top: 2px; color: var(--color-text-subtle); font-size: 18px; }

/* =========================================================================
   18. 앱 화면 표면 위계 · 폭 · 글자 (2026-10-09 사용자 지시)
   범위 S = [data-app]:not([data-view="guest"]) — 회원 화면(home·campaigns 회원·상세 회원·link-issue·links·report·
   settlement·referral)과 관리자. 랜딩·마케팅 화면은 바뀌지 않는다.
   - 폭: 콘텐츠 최대 1320(--app-max), 좁으면 유동. 1.1장 .app-main .container
   - 글자: tokens.css 4b 의 +2px 스케일. 범위 요소에서 글자 크기를 다시 선언해야 상속값이 새 토큰을 따른다
   - 표면 3단: L0 회보라 바탕 → L1 흰 카드 → L2 카드 안 묶음. 카드는 주요(.card-key)·기본(.card)·보조(.card-quiet) 3등급
   - 안내 상자 3등급: 행동 요청(상태 면 + 왼쪽 상태 띠) > 일반 안내(흰 면 + 바이올렛 띠) > 조용한 알림(.notice, 상자 없음)
   ========================================================================= */
[data-app]:not([data-view="guest"]), [data-type="app"]:not([data-view="guest"]) { font-size: var(--text-md); line-height: var(--lh-md); }

/* 18.1 L0 바탕 · 사이드 내비 */
body[data-app]:not([data-view="guest"]) { background: var(--app-canvas); }
/* 사이드 내비 면을 화면 끝까지 (sticky 100vh 아래로도 흰 면이 이어지게) */
@media (min-width: 1024px) { body[data-app]:not([data-view="guest"]) .shell { background: linear-gradient(90deg, var(--app-side) 0 calc(var(--sidenav-w) - 1px), var(--app-edge-strong) calc(var(--sidenav-w) - 1px) var(--sidenav-w), transparent var(--sidenav-w)); } }
[data-app]:not([data-view="guest"]) .app-foot { border-top-color: var(--app-edge-strong); }
@media (min-width: 1024px) {
  body[data-app]:not([data-view="guest"]) .sidenav { background: var(--app-side); box-shadow: inset -1px 0 0 var(--app-edge-strong); }
  body[data-app]:not([data-view="guest"]) .sidenav a.nav[aria-current="page"] { background: var(--color-accent-soft); box-shadow: inset 0 0 0 1px rgba(106, 61, 240, 0.16); }
  body[data-app]:not([data-view="guest"]) .sidenav a.nav:hover:not([aria-current="page"]) { background: var(--app-canvas); }
}

/* 18.2 L1 카드 3등급. :where()로 범위 특이도를 0으로 두어 화면별 강조(.form-card.is-ask, .frame > .card 등)가 이긴다 */
:where([data-app]:not([data-view="guest"])) :is(.card:not(.card-price), .table-wrap, .kpi, .empty) { box-shadow: var(--shadow-card); }
:where([data-app]:not([data-view="guest"])) :is(.card-key, .card.card-key) { box-shadow: var(--shadow-card-key); }
:where([data-app]:not([data-view="guest"])) :is(.card-quiet, .card.card-quiet, .card.card-sunken, .card.card-flat) { background: var(--app-quiet); box-shadow: inset 0 0 0 1px var(--app-edge-strong); border: 0; }
:where([data-app]:not([data-view="guest"])) .card-link:hover { box-shadow: 0 0 0 1px rgba(52, 16, 120, 0.22), 0 1px 2px rgba(52, 16, 120, 0.05), 0 6px 12px -8px rgba(52, 16, 120, 0.14); }
/* 유리 액자(주요 카드 바깥)는 바탕이 회보라라 흰 반투명이 한 단 밝게 보인다: 그대로 둔다 */

/* 18.3 그룹 제목: 제목 ─ 구분선 ─ 행동. 그룹 사이 40px(카드 사이 16px와 차등) */
.group-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-4); }
.group-head::after { content: ""; order: 1; flex: 1 1 48px; height: 1px; background: var(--app-edge-strong); }
.group-head > :is(a, button, .row, .seg, .acts) { order: 2; }
.group-head > .stack { max-width: 100%; }
.group-gap { margin-top: var(--space-10); }
@media (max-width: 767px) { .group-gap { margin-top: var(--space-8); } }

/* 18.4 안내 상자 3등급 */
:is([data-app], [data-type="app"]):not([data-view="guest"]) .banner { --b-bar-c: var(--b-bar, var(--banner-bar-info)); background: var(--b-bg, var(--app-card)); box-shadow: inset var(--banner-bar) 0 0 var(--b-bar-c), inset 0 0 0 1px var(--b-border, var(--app-edge-strong)); padding-left: calc(var(--space-4) + var(--banner-bar)); }
:is([data-app], [data-type="app"]):not([data-view="guest"]) .banner > .ico { color: var(--b-bar-c); }
:is([data-app], [data-type="app"]):not([data-view="guest"]) .banner.status-warn { --b-bar: var(--status-warn-fg); }
:is([data-app], [data-type="app"]):not([data-view="guest"]) .banner.status-hold { --b-bar: var(--status-hold-fg); }
:is([data-app], [data-type="app"]):not([data-view="guest"]) .banner.status-confirmed { --b-bar: var(--status-confirmed-fg); }
:is([data-app], [data-type="app"]):not([data-view="guest"]) .banner.status-canceled { --b-bar: var(--status-canceled-fg); }
:is([data-app], [data-type="app"]):not([data-view="guest"]) .banner.status-void { --b-bar: var(--status-void-fg); }
:is([data-app], [data-type="app"]):not([data-view="guest"]) .banner.status-info { --b-bar: var(--status-info-fg); }
:is([data-app], [data-type="app"]):not([data-view="guest"]) .banner-lift { --b-bar: var(--lift-border); }
/* 흰 카드 안의 안내 상자: 띠 없이 L2 면 (카드 안에서 띠가 겹치면 시끄럽다) */
:is([data-app], [data-type="app"]):not([data-view="guest"]) .card .banner:not([class*="status-"]) { --b-bg: var(--app-inset); box-shadow: inset 0 0 0 1px var(--color-hairline); padding-left: var(--space-4); }
/* 조용한 알림: 상자 없이 한 줄. 공개 베타 안내처럼 행동이 필요 없는 알림 */
.notice { display: flex; align-items: flex-start; gap: var(--space-2); min-height: 32px; font-size: var(--text-sm); line-height: var(--lh-sm); color: var(--color-text-muted); }
.notice > .ico { color: var(--color-heading-accent); font-size: 1.15em; margin-top: 0.2em; }
.notice a { font-weight: var(--weight-semi); }
.notice .btn-icon { width: 36px; min-height: 36px; margin: -6px -8px -6px auto; flex: none; }

/* =========================================================================
   19. 랜딩 스크롤 전환 모션 (2026-10-09, ../scroll-motion.md)
   - 범위: <body data-scroll-motion> (랜딩만). 회원 앱·신뢰 영역 페이지에는 이 속성이 없다.
   - html.sm-css = CSS 스크롤 타임라인 경로(@supports animation-timeline: view())
     html.sm-io  = IntersectionObserver 대체 경로(항목마다 .is-in 1회)
     둘 다 없으면(움직임 줄이기·reduced-motion·JS 없음) 아래 규칙은 하나도 적용되지 않는다 = 기본 상태가 최종 상태.
   - 레이아웃 속성은 바꾸지 않는다(CLS 0). transform·opacity 위주, 예외 clip-path·blur(1024 이상)·border-radius(판 2개).
   - 표시: 단일 data-sm="hero|unfold|wipe|morph|stand|draw|float|final", 묶음 data-sm-group="rise|pop|steps|focus|rows"(바로 아래 자식이 항목),
     카드 틸트 data-tilt, 버튼 자석 data-magnet (html.sm-hover, motion.js 9번)
   - 섹션 헤더 텍스트 순차 등장 data-sm-text (2026-10-10): 두 경로 모두 IO 1회 + 시간 기반(html.sm-text). 아래 "헤더 텍스트" 묶음
   ========================================================================= */
/* 모션용 구조: 제목 줄 감싸기. 모션과 상관없이 항상 같은 레이아웃(<br> 줄바꿈과 같다) */
.ln, .ln > span { display: block; }

body[data-scroll-motion] {
  --sm-y: 56px; --sm-s: 0.96; --sm-blur: 6px; --sm-tilt: 10deg; --sm-par: 18px; --sm-star: 32px;
  --sm-float: 72px; --sm-float-s: 0.95; --sm-grow-s: 0.9;
  --sm-ho-y: 12vh; --sm-ho-s: 0.92; --sm-ho-b: 6px; --sm-bg-s: 0.94;
}
/* 모바일·태블릿: 강도를 줄인다(이동 1/2 이하, 크기 변화·블러 없음) */
@media (max-width: 1023px) {
  body[data-scroll-motion] { --sm-y: 24px; --sm-s: 1; --sm-tilt: 6deg; --sm-par: 5px; --sm-star: 12px; --sm-float: 32px; --sm-float-s: 0.98; --sm-grow-s: 0.96; --sm-ho-y: 6vh; --sm-ho-s: 0.97; --sm-bg-s: 0.97; }
}
/* 순서 값: --i 묶음 안 번호(IO 경로 간격·정산 칩 순서), --c 같은 줄 안 열 번호(두 경로 모두), --b 막대 번호, --t 헤더 텍스트 순번(motion.js가 붙임) */
[data-sm-group] > * { --i: 0; --c: 0; }
[data-sm-group] > :nth-child(2) { --i: 1; } [data-sm-group] > :nth-child(3) { --i: 2; } [data-sm-group] > :nth-child(4) { --i: 3; }
[data-sm-group] > :nth-child(5) { --i: 4; } [data-sm-group] > :nth-child(6) { --i: 5; }
[data-sm="draw"] > li:nth-child(2) { --i: 1; } [data-sm="draw"] > li:nth-child(3) { --i: 2; }
[data-sm-group="steps"] .risebars span:nth-child(2) { --b: 1; } [data-sm-group="steps"] .risebars span:nth-child(3) { --b: 2; }
@media (min-width: 900px) { [data-sm-group="rise"] > :nth-child(2) { --c: 1; } [data-sm-group="rise"] > :nth-child(3) { --c: 2; } }
[data-sm-group="pop"] > :nth-child(even) { --c: 1; }
@media (min-width: 768px) { [data-sm-group="pop"] > :nth-child(3) { --c: 2; } [data-sm-group="pop"] > :nth-child(4) { --c: 3; } }
@media (min-width: 768px) and (max-width: 1023px) { [data-sm-group="focus"] > :nth-child(even) { --c: 1; } }
@media (min-width: 1024px) {
  [data-sm-group="focus"] > :nth-child(3n+2) { --c: 1; } [data-sm-group="focus"] > :nth-child(3n) { --c: 2; }
  [data-sm-group="steps"] > :nth-child(2) { --c: 1; } [data-sm-group="steps"] > :nth-child(3) { --c: 2; }
}

@keyframes sm-hero-copy { to { opacity: 0; transform: translateY(var(--sm-ho-y)) scale(var(--sm-ho-s)); filter: blur(var(--sm-ho-b)); } }
/* 모바일: 히어로가 화면보다 길어 버튼이 보이는 동안 흐려지므로 0.4까지만 옅게 */
@keyframes sm-hero-copy-m { to { opacity: 0.4; transform: translateY(var(--sm-ho-y)) scale(var(--sm-ho-s)); } }
@keyframes sm-hero-bg { to { transform: scale(var(--sm-bg-s)); border-radius: calc(var(--radius-panel) + 40px); } }
@keyframes sm-rise { from { opacity: 0; transform: translateY(var(--sm-y)) scale(var(--sm-s)); } 60% { opacity: 1; } }
@keyframes sm-par { from { transform: translateY(var(--sm-par)); } to { transform: translateY(calc(var(--sm-par) * -1)); } }
@keyframes sm-unfold { from { clip-path: inset(0 4% 8% 4% round var(--radius-panel)); } to { clip-path: inset(0 0 0 0 round var(--radius-panel)); } }
@keyframes sm-pop { from { opacity: 0; transform: translateY(14px) scale(0.92); } 50% { opacity: 1; } }
@keyframes sm-well { from { opacity: 0.25; transform: translateY(12px) scale(0.96); } }
@keyframes sm-pulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes sm-wipe { from { clip-path: inset(-0.3em 100% -0.3em -0.3em); } to { clip-path: inset(-0.3em -0.3em -0.3em -0.3em); } }
@keyframes sm-morph { from { opacity: 1; } to { opacity: 0; } }
@keyframes sm-focus { from { opacity: 0; transform: translateY(20px); filter: blur(var(--sm-blur)); } 55% { opacity: 1; } }
@keyframes sm-fade { from { opacity: 0; transform: translateY(12px); } 55% { opacity: 1; } }
@keyframes sm-stand { from { opacity: 0; transform: perspective(1400px) rotateX(var(--sm-tilt)) translateY(var(--sm-y)); } 50% { opacity: 1; } }
@keyframes sm-draw { from { transform: scaleX(0); } }
@keyframes sm-chip { from { opacity: 0.4; transform: scale(0.88); } 50% { opacity: 1; } }
@keyframes sm-panel { from { transform: translateY(var(--sm-float)) scale(var(--sm-float-s)); } }
@keyframes sm-star { from { transform: translateY(var(--sm-star)); } to { transform: translateY(calc(var(--sm-star) * -1)); } }
@keyframes sm-row { from { opacity: 0; transform: translateY(10px); } 60% { opacity: 1; } }
@keyframes sm-grow { from { transform: scale(var(--sm-grow-s)); border-radius: calc(var(--radius-panel) * 2); } }

/* view() 타임라인은 가장 가까운 스크롤 컨테이너를 기준으로 한다. overflow:hidden 판·우물은 스크롤 컨테이너가 되어
   안쪽 항목의 진행이 50%에 멈춘다(2026-10-09 확인). 모양은 같고 스크롤 컨테이너가 아닌 clip으로 자른다(레이아웃 변화 없음) */
body[data-scroll-motion] :is(.panel, .benefit-well) { overflow: clip; }

/* ---- 두 경로 공통 ---- */
/* 툴팁이 다음 카드 밑에 깔리지 않게: 움직이는 항목은 쌓임 맥락이 생기므로 hover·focus 중인 항목을 위로 */
html:is(.sm-css, .sm-io) [data-sm-group] > :is(:hover, :focus-within) { position: relative; z-index: 2; }
/* 단계 카드 빛 테두리(켜졌다 꺼짐, 최종 상태는 꺼짐). 카드 안 쌓임 맥락에서 바탕 위·글자 아래 */
html:is(.sm-css, .sm-io) [data-sm-group="steps"] > * { position: relative; isolation: isolate; }
html:is(.sm-css, .sm-io) [data-sm-group="steps"] > *::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px rgba(122, 82, 240, 0.5), 0 18px 44px -20px rgba(106, 61, 240, 0.55); }
@media (max-width: 767px) {
  /* 모바일 단계는 납작한 줄이라 테두리 대신 옅은 보라 띠 */
  html:is(.sm-css, .sm-io) [data-sm-group="steps"] > *::after { inset: 0 -8px; border-radius: 12px; box-shadow: none; background: linear-gradient(90deg, rgba(122, 82, 240, 0.1), rgba(122, 82, 240, 0)); }
}

/* ---- CSS 스크롤 타임라인 경로 ---- */
@supports (animation-timeline: view()) {
  /* 1 히어로 아웃: 문구는 느리게 내려가며 작아지고 흐려진다, 판은 줄며 모서리가 둥글어진다 */
  html.sm-css [data-sm="hero"] { view-timeline: --sm-hero block; }
  html.sm-css [data-sm="hero"] .hero-copy { transform-origin: 50% 30%; animation: sm-hero-copy-m linear both; animation-timeline: --sm-hero; animation-range: exit 0% exit 80%; }
  html.sm-css [data-sm="hero"] .hero-top > .hero-bg { animation: sm-hero-bg linear both; animation-timeline: --sm-hero; animation-range: exit 0% exit 100%; }
  @media (min-width: 1024px) { html.sm-css [data-sm="hero"] .hero-copy { animation-name: sm-hero-copy; } }

  /* 2 혜택: 카드처럼 떠오르기(열마다 순차) + 이모지 패럴랙스 */
  /* 2026-10-10: 시작을 entry 20% 로 늦춰 헤더 텍스트가 먼저 올라온 뒤 이어지게(끝 지점은 그대로) */
  html.sm-css [data-sm-group="rise"] > * { animation: sm-rise var(--ease-soft) both; animation-timeline: view(); animation-range: entry calc(20% + var(--c) * 12%) cover calc(30% + var(--c) * 6%); }
  html.sm-css [data-sm-group="rise"] .benefit-well img { animation: sm-par linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }

  /* 3 이런 분께: 판 펼침 + 칩 순차 튀어 오름 */
  html.sm-css [data-sm="unfold"] { animation: sm-unfold var(--ease-soft) both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  html.sm-css [data-sm-group="pop"] > * { animation: sm-pop var(--ease-soft) both; animation-timeline: view(); animation-range: entry calc(30% + var(--c) * 15%) cover calc(28% + var(--c) * 4%); }

  /* 4 이렇게 돈이 생겨요: 고정 없는 스토리. 1023 이하는 카드마다 자기 진행, 1024 이상은 세 카드 줄 하나의 진행을 셋으로 나눈다 */
  html.sm-css [data-sm-group="steps"] > * { view-timeline: --sm-steps block; }
  html.sm-css [data-sm-group="steps"] .risebars span.lit { animation: step-rise var(--ease-soft) both; animation-timeline: --sm-steps; animation-range: cover calc(22% + var(--b, 0) * 4%) cover calc(26% + var(--b, 0) * 4%); }
  html.sm-css [data-sm-group="steps"] > *::after { animation: sm-pulse linear both; animation-timeline: --sm-steps; animation-range: cover 18% cover 60%; }
  html.sm-css [data-sm-group="steps"] .how-well > * { animation: sm-well var(--ease-soft) both; animation-timeline: --sm-steps; animation-range: cover 10% cover 30%; }
  @media (min-width: 1024px) {
    html.sm-css [data-sm-group="steps"] { view-timeline: --sm-steps block; }
    html.sm-css [data-sm-group="steps"] > * { view-timeline: none; }
    html.sm-css [data-sm-group="steps"] .risebars span.lit { animation-range: cover calc(14% + var(--c) * 10% + var(--b, 0) * 3%) cover calc(17% + var(--c) * 10% + var(--b, 0) * 3%); }
    html.sm-css [data-sm-group="steps"] > *::after { animation-range: cover calc(14% + var(--c) * 10%) cover calc(40% + var(--c) * 10%); }
    html.sm-css [data-sm-group="steps"] .how-well > * { animation-range: cover calc(8% + var(--c) * 10%) cover calc(22% + var(--c) * 10%); }
  }
  html.sm-css [data-sm="wipe"] { animation: sm-wipe var(--ease-soft) both; animation-timeline: view(); animation-range: entry 0% cover 30%; }

  /* 5 걱정: 판 윗부분이 앞 판(하늘·민트, --panel-how 끝색 #EDFAF6)에서 이어져 자기 색으로 바뀐다 */
  html.sm-css [data-sm="morph"] { view-timeline: --sm-morph block; }
  html.sm-css [data-sm="morph"]::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #EDFAF6 0%, rgba(237, 250, 246, 0) 70%);
    animation: sm-morph linear both; animation-timeline: --sm-morph; animation-range: entry 0% entry 100%; }

  /* 6 몰: 카드 초점 맞추기(1024 이상만 블러). 제목 줄 마스크는 2026-10-10부터 헤더 텍스트 묶음(시간 기반)으로 옮겼다 */
  html.sm-css [data-sm-group="focus"] > * { animation: sm-fade var(--ease-soft) both; animation-timeline: view(); animation-range: entry calc(20% + var(--c) * 15%) cover calc(26% + var(--c) * 5%); }
  @media (min-width: 1024px) { html.sm-css [data-sm-group="focus"] > * { animation-name: sm-focus; } }

  /* 7 계산기: 누운 액자가 세워진다 */
  html.sm-css [data-sm="stand"] { transform-origin: 50% 100%; animation: sm-stand var(--ease-soft) both; animation-timeline: view(); animation-range: entry 15% entry 75%; }

  /* 8 정산: 상태 칩이 차례로 켜지고 연결선이 왼쪽부터 그어진다(숫자·규칙 글은 정지, 숫자 굴림은 기존 motion.js 6번) */
  html.sm-css [data-sm="draw"] { view-timeline: --sm-draw block; }
  html.sm-css [data-sm="draw"] > li .badge { animation: sm-chip var(--ease-soft) both; animation-timeline: --sm-draw; animation-range: entry calc(30% + var(--i, 0) * 20%) cover calc(26% + var(--i, 0) * 8%); }
  html.sm-css [data-sm="draw"] > li + li::before { transform-origin: 0 50%; animation: sm-draw var(--ease-soft) both; animation-timeline: --sm-draw; animation-range: entry calc(40% + var(--i, 0) * 20%) cover calc(26% + var(--i, 0) * 8%); }

  /* 9 초대: 밤하늘 판이 떠올라 자리를 잡고, 별은 판 안에서 천천히 흐른다 */
  html.sm-css [data-sm="float"] { view-timeline: --sm-inv block; transform-origin: 50% 0%; animation: sm-panel var(--ease-soft) both; animation-timeline: --sm-inv; animation-range: entry 0% entry 60%; }
  html.sm-css [data-sm="float"].sky::before { inset: calc(var(--sm-star) * -1) 0; animation: sm-star linear both; animation-timeline: --sm-inv; animation-range: cover 0% cover 100%; }

  /* 10 신뢰: 장부처럼 한 줄씩 */
  html.sm-css [data-sm-group="rows"] > * { animation: sm-row var(--ease-soft) both; animation-timeline: view(); animation-range: entry 50% cover 18%; }

  /* 11 최종 CTA: 새벽 판이 펼쳐진다(히어로 아웃의 반대) */
  html.sm-css [data-sm="final"] { view-timeline: --sm-final block; }
  html.sm-css [data-sm="final"] > .final-bg { animation: sm-grow var(--ease-soft) both; animation-timeline: --sm-final; animation-range: entry 0% entry 100%; }
}

/* ---- IO 대체 경로: 들어오면 .is-in 1회, 시간 기반 전환 ---- */
html.sm-io [data-sm-group] > *, html.sm-io [data-sm="unfold"], html.sm-io [data-sm="wipe"], html.sm-io [data-sm="stand"], html.sm-io [data-sm="float"],
html.sm-io [data-sm="final"] > .final-bg, html.sm-io [data-sm="draw"] > li .badge, html.sm-io [data-sm="draw"] > li + li::before,
html.sm-io [data-sm-group="steps"] .how-well > * {
  transition: opacity 600ms var(--ease-soft), transform 900ms var(--ease-soft), filter 700ms var(--ease-soft), clip-path 900ms var(--ease-soft), border-radius 900ms var(--ease-soft);
  /* --sm-wait: 같은 섹션 헤더 텍스트가 아직 올라오는 중이면 motion.js 8번이 남은 시간을 넣는다(헤더 → 카드 순서로 이어짐) */
  transition-delay: calc(var(--sm-wait, 0ms) + var(--c, 0) * 120ms);
}
html.sm-io [data-sm-group="rise"] > :not(.is-in) { opacity: 0; transform: translateY(var(--sm-y)) scale(var(--sm-s)); }
html.sm-io [data-sm-group="pop"] > :not(.is-in) { opacity: 0; transform: translateY(14px) scale(0.92); }
html.sm-io [data-sm-group="focus"] > :not(.is-in) { opacity: 0; transform: translateY(12px); }
@media (min-width: 1024px) { html.sm-io [data-sm-group="focus"] > :not(.is-in) { transform: translateY(20px); filter: blur(var(--sm-blur)); } }
html.sm-io [data-sm-group="rows"] > :not(.is-in) { opacity: 0; transform: translateY(10px); }
html.sm-io [data-sm-group="rows"] > * { transition-delay: calc(var(--sm-wait, 0ms) + var(--i) * 90ms); }
html.sm-io [data-sm="unfold"] { clip-path: inset(0 0 0 0 round var(--radius-panel)); }
html.sm-io [data-sm="unfold"]:not(.is-in) { clip-path: inset(0 4% 8% 4% round var(--radius-panel)); }
html.sm-io [data-sm="wipe"] { clip-path: inset(-0.3em -0.3em -0.3em -0.3em); }
html.sm-io [data-sm="wipe"]:not(.is-in) { clip-path: inset(-0.3em 100% -0.3em -0.3em); }
html.sm-io [data-sm="stand"] { transform-origin: 50% 100%; }
html.sm-io [data-sm="stand"]:not(.is-in) { opacity: 0; transform: perspective(1400px) rotateX(var(--sm-tilt)) translateY(var(--sm-y)); }
html.sm-io [data-sm="float"] { transform-origin: 50% 0%; }
html.sm-io [data-sm="float"]:not(.is-in) { transform: translateY(var(--sm-float)) scale(var(--sm-float-s)); }
html.sm-io [data-sm="final"]:not(.is-in) > .final-bg { transform: scale(var(--sm-grow-s)); border-radius: calc(var(--radius-panel) * 2); }
html.sm-io [data-sm="draw"] > li + li::before { transform-origin: 0 50%; }
html.sm-io [data-sm="draw"] > li .badge, html.sm-io [data-sm="draw"] > li + li::before { transition-delay: calc(var(--sm-wait, 0ms) + var(--i, 0) * 180ms + 120ms); }
html.sm-io [data-sm="draw"]:not(.is-in) > li .badge { opacity: 0.4; transform: scale(0.88); }
html.sm-io [data-sm="draw"]:not(.is-in) > li + li::before { transform: scaleX(0); }
html.sm-io [data-sm-group="steps"] .risebars span.lit { transition: transform 400ms var(--ease-soft), opacity 1ms linear; transition-delay: calc(var(--sm-wait, 0ms) + var(--c) * 300ms + var(--b, 0) * 140ms + 200ms); }
html.sm-io [data-sm-group="steps"] > :not(.is-in) .risebars span.lit { opacity: 0; transform: scaleY(var(--from, 0)); }
html.sm-io [data-sm-group="steps"] .how-well > * { transition-delay: calc(var(--sm-wait, 0ms) + var(--c) * 300ms); }
html.sm-io [data-sm-group="steps"] > :not(.is-in) .how-well > * { opacity: 0.25; transform: translateY(12px) scale(0.96); }
html.sm-io [data-sm-group="steps"] > .is-in::after { animation: sm-pulse 1200ms var(--ease-in-out) calc(var(--sm-wait, 0ms) + var(--c) * 300ms + 300ms) both; }

/* ---- 헤더 텍스트 순차 등장 (2026-10-10, ../scroll-motion.md 3-1) ----
   - 대상: 히어로 다음 섹션들의 헤더 묶음 [data-sm-text] 안 항목 [data-sm-t] (eyebrow, H2 줄, 리드·본문, 범위 문장·캡션, 버튼 줄).
     항목 표시는 motion.js 8번이 붙인다(장식 이미지는 제외). H2 는 줄마다 .ln 으로 감쌌다(.lns 는 aria-hidden, 문장 전체는 .sr-only).
   - 두 경로(sm-css·sm-io) 모두 같은 방식: html.sm-text 일 때만 숨김. 헤더 묶음이 화면 아래 18% 선을 넘으면 .is-in 1회(위로 다시 올려도 반복 없음).
   - 순서: --t(보이는 항목 순번) x 90ms. 이동 700ms, 불투명 450ms(초반에 선명해짐), 블러 4px → 0 400ms(1024 이상만).
     일반 항목은 20px(1023 이하 16px) 아래에서, H2 줄은 줄 마스크(.ln clip) 안에서 한 줄 높이(105%) 아래에서 올라온다.
   - 숨김 상태에는 transition 이 없다: 켤 때 사라지는 움직임이 없고, 끄면(sm-text 제거) 그 자리에서 최종 상태 */
body[data-scroll-motion] { --tr-y: 20px; --tr-blur: 4px; --tr-dur: 700ms; --tr-fade: 450ms; --tr-sharp: 400ms; --tr-stag: 90ms; --tr-ease: cubic-bezier(.2, .7, .2, 1); }
@media (max-width: 1023px) { body[data-scroll-motion] { --tr-y: 16px; } }
.lns { display: block; }
html.sm-text .ln[data-sm-t] { clip-path: inset(-0.3em -0.6em 0 -0.6em); }
html.sm-text [data-sm-t]:not(.ln):not(.is-in) { opacity: 0; transform: translateY(var(--tr-y)); }
@media (min-width: 1024px) { html.sm-text [data-sm-t]:not(.ln):not(.is-in) { filter: blur(var(--tr-blur)); } }
html.sm-text .ln[data-sm-t]:not(.is-in) > span { opacity: 0; transform: translateY(105%); }
html.sm-text [data-sm-t]:not(.ln).is-in, html.sm-text .ln[data-sm-t].is-in > span {
  transition: opacity var(--tr-fade) var(--tr-ease), transform var(--tr-dur) var(--tr-ease), filter var(--tr-sharp) var(--tr-ease);
  transition-delay: calc(var(--t, 0) * var(--tr-stag));
}

/* ---- 카드 틸트·버튼 자석 (motion.js 9번이 pointer:fine + 1024 이상에서 html.sm-hover를 붙이고 값을 따라가게 한다) ---- */
html.sm-hover [data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
html.sm-hover [data-magnet] { translate: var(--mgx, 0px) var(--mgy, 0px); }

/* 2026-10-09: PC에서만 쓰는 줄바꿈 (1024 이상). 모바일·태블릿에서는 자연 줄바꿈 */
.br-pc { display: none; }
@media (min-width: 1024px) { .br-pc { display: inline; } }

/* 마케팅 화면 공통 푸터 (랜딩·/start·가이드·FAQ·약관·문의): 사업자 정보 + 약관 링크 + 움직임 줄이기. 원본 landing.css 에서 옮김 */
.lfoot { padding-block: var(--space-10) var(--space-8); font-size: var(--text-sm); color: var(--color-text-muted); }
.lfoot .links { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.lfoot .biz-info { display: flex; flex-direction: column; gap: 2px; font-style: normal; font-size: var(--text-xs); line-height: 1.7; color: var(--color-text-muted); }
.lfoot .biz-row { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); }
.lfoot .biz-info a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lfoot .biz-info strong { color: var(--color-text); font-weight: 600; }
.lfoot .biz-row > * + *::before { content: ""; display: inline-block; width: 1px; height: 0.8em; margin-right: var(--space-3); background: var(--color-border); vertical-align: -1px; }
@media (max-width: 767px) { .lfoot .biz-row { flex-direction: column; gap: 0; } .lfoot .biz-row > * + *::before { display: none; } }
.lfoot .links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text-muted); text-decoration: none; }
.lfoot .links a:hover { color: var(--color-text); }
