/* ============================================================
   supporterb 테마 — supporter-b.com 디자인 언어 재구현 (v0.2)
   MD3 컬러 토큰 + Pretendard + 스크롤텔링 랜딩 + 다크모드
   구조: 토큰(라이트/다크) → 베이스 → 헤더 → 히어로 → 섹션 공통
        → 페인 스크롤텔링 → 서비스 → 앱쉘 → 통계 → 요금 → 계산기
        → FAQ → CTA → 푸터 → 반응형 → 모션 최소화
   ============================================================ */

/* ── 1. 디자인 토큰 (라이트) ── */
:root {
  --md-sys-color-primary: #0061a4;
  --md-sys-color-on-primary: #fff;
  --md-sys-color-primary-container: #d1e4ff;
  --md-sys-color-on-primary-container: #001d36;
  --md-sys-color-secondary-container: #edeef2;
  --md-sys-color-on-secondary-container: #2a2d33;
  --md-sys-color-tertiary: #1f9d55;
  --md-sys-color-tertiary-container: #d6f5e3;
  --md-sys-color-on-tertiary-container: #06351c;
  --md-sys-color-warning: #d9730d;
  --md-sys-color-warning-container: #fcebd2;
  --md-sys-color-on-warning-container: #4a2a05;
  --md-sys-color-error: #e5484d;
  --md-sys-color-background: #fff;
  --md-sys-color-on-background: #1f2023;
  --md-sys-color-surface: #fbfbfc;
  --md-sys-color-on-surface: #1f2023;
  --md-sys-color-on-surface-variant: #6b7079;
  --md-sys-color-surface-container-lowest: #fff;
  --md-sys-color-surface-container-low: #f7f8f9;
  --md-sys-color-surface-container: #f1f2f4;
  --md-sys-color-surface-container-high: #ebecef;
  --md-sys-color-surface-container-highest: #e4e5e9;
  --md-sys-color-outline: #d4d6dc;
  --md-sys-color-outline-variant: #e8e9ec;
  --md-sys-color-inverse-surface: #1f2023;
  --md-sys-color-inverse-on-surface: #f7f8f8;
  --md-sys-color-inverse-primary: #9ecaff;

  /* 히어로 전용(다크모드에서도 히어로는 항상 다크 → 토큰이 아닌 고정값) */
  --sb-hero-bg: #1f2023;
  --sb-hero-ink: #f7f8f8;
  --sb-hero-accent: #9ecaff;

  /* 스페이싱 스케일 */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px;  --s-8: 40px;  --s-9: 56px; --s-10: 80px; --s-11: 120px;

  /* 쉘 */
  --shell-topbar: 48px;
  --sb-maxw: 1080px;

  /* 타이포 */
  --sb-font: 'Pretendard', 'Pretendard Variable', -apple-system, 'Apple SD Gothic Neo',
             'Noto Sans KR', sans-serif;
  --text-sm: 14px;
  --sb-h1: clamp(30px, 5.5vw, 72px);
  --sb-h2: clamp(22px, 3.2vw, 42px);
  --sb-h2-lg: clamp(24px, 4vw, 52px);

  /* 모션 */
  --sb-ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* ── 1-2. 다크모드 토큰 (원본 .dark 팔레트) ── */
[data-theme="dark"] {
  --md-sys-color-primary: #9ecaff;
  --md-sys-color-on-primary: #003258;
  --md-sys-color-primary-container: #004a77;
  --md-sys-color-on-primary-container: #d1e4ff;
  --md-sys-color-secondary-container: #26282c;
  --md-sys-color-on-secondary-container: #e4e5e9;
  --md-sys-color-tertiary: #3fbf73;
  --md-sys-color-tertiary-container: #134f30;
  --md-sys-color-on-tertiary-container: #b8f0cf;
  --md-sys-color-warning: #e8983d;
  --md-sys-color-warning-container: #5a3a0a;
  --md-sys-color-on-warning-container: #fce0bc;
  --md-sys-color-error: #ff6166;
  --md-sys-color-background: #08090a;
  --md-sys-color-on-background: #f7f8f8;
  --md-sys-color-surface: #0f1011;
  --md-sys-color-on-surface: #f7f8f8;
  --md-sys-color-on-surface-variant: #8a8f98;
  --md-sys-color-surface-container-lowest: #08090a;
  --md-sys-color-surface-container-low: #141517;
  --md-sys-color-surface-container: #161718;
  --md-sys-color-surface-container-high: #1c1d1f;
  --md-sys-color-surface-container-highest: #202123;
  --md-sys-color-outline: #2e3033;
  --md-sys-color-outline-variant: #23252a;
  --md-sys-color-inverse-surface: #f7f8f8;
  --md-sys-color-inverse-on-surface: #1f2023;
  --md-sys-color-inverse-primary: #0061a4;
  color-scheme: dark;
}

/* ── 2. 베이스 ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sb-font);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
::selection { background: color-mix(in srgb, var(--md-sys-color-primary) 18%, transparent); }

.sb-container { max-width: var(--sb-maxw); margin: 0 auto; }

/* ── 3. 고정 헤더 (다크 히어로 위 투명 → 스크롤 후 표면색) ── */
.sb-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--shell-topbar); padding: 0 var(--s-7);
  background: var(--md-sys-color-surface);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.sb-header[data-over-dark] {
  background: transparent;
  border-color: transparent;
  color: var(--sb-hero-ink);
}
.sb-logo { display: flex; align-items: center; gap: var(--s-2); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.sb-logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary);
  font-size: 13px; font-weight: 800;
}
.sb-header[data-over-dark] .sb-logo-mark { background: var(--sb-hero-accent); color: #003258; }
.sb-nav { display: flex; align-items: center; gap: var(--s-5); }
.sb-nav a {
  font-size: var(--text-sm); font-weight: 400; color: var(--md-sys-color-on-surface-variant);
  transition: color .15s ease;
}
.sb-nav a:hover { color: var(--md-sys-color-on-surface); }
.sb-header[data-over-dark] .sb-nav a { color: color-mix(in srgb, var(--sb-hero-ink) 72%, transparent); }
.sb-header[data-over-dark] .sb-nav a:hover { color: var(--sb-hero-ink); }

/* 버튼 */
.sb-btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 36px; padding: 0 var(--s-4); border-radius: 6px; border: 1px solid transparent;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: -0.006em; line-height: 1;
  transition: opacity .14s ease, background-color .14s ease, border-color .14s ease, transform .14s ease;
}
.sb-btn:hover { opacity: .9; }
.sb-btn:active { transform: scale(.98); }
.sb-btn-primary { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.sb-btn-ghost { border-color: var(--md-sys-color-outline); color: var(--md-sys-color-on-surface); }
.sb-btn-ghost:hover { opacity: 1; background: var(--md-sys-color-surface-container); }
.sb-btn-light { background: var(--sb-hero-ink); color: var(--sb-hero-bg); }
.sb-btn-lg { height: 48px; padding: 0 var(--s-6); font-size: 15px; border-radius: 8px; }
/* 내비 링크 색 규칙이 CTA 버튼 텍스트를 덮어쓰지 않도록 + over-dark 시 원본처럼 primary → inverse-primary 스왑 */
.sb-nav a.sb-btn-primary { color: var(--md-sys-color-on-primary); font-weight: 500; }
.sb-nav a.sb-btn-primary:hover { color: var(--md-sys-color-on-primary); }
.sb-header[data-over-dark] .sb-nav a.sb-btn-primary { background: var(--sb-hero-accent); color: #003258; }
.sb-header[data-over-dark] .sb-btn-ghost { border-color: color-mix(in srgb, var(--sb-hero-ink) 28%, transparent); color: var(--sb-hero-ink); }
.sb-header[data-over-dark] .sb-btn-ghost:hover { background: color-mix(in srgb, var(--sb-hero-ink) 10%, transparent); }

/* 모바일 메뉴 */
.sb-menu-btn { display: none; background: none; border: 0; color: inherit; padding: var(--s-2); }
.sb-mobile-menu {
  display: none; position: fixed; top: var(--shell-topbar); left: 0; right: 0; z-index: 49;
  background: var(--md-sys-color-surface); border-bottom: 1px solid var(--md-sys-color-outline-variant);
  padding: var(--s-4) var(--s-7); flex-direction: column; gap: var(--s-4);
}
.sb-mobile-menu.open { display: flex; }
.sb-mobile-menu a { font-size: var(--text-sm); font-weight: 500; color: var(--md-sys-color-on-surface); }

/* ── 4. 히어로 (240vh 스크롤텔링 — 다크모드와 무관하게 항상 다크) ── */
.sb-hero { position: relative; margin-top: calc(-1 * var(--shell-topbar)); height: 240vh; }
.sb-hero-sticky {
  position: sticky; top: 0; height: 100dvh; overflow: hidden;
  background: var(--md-sys-color-surface);
}
.sb-hero-dark { position: absolute; inset: 0; z-index: 0; background: var(--sb-hero-bg); }
.sb-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 50% -10%,
      color-mix(in srgb, var(--sb-hero-accent) 10%, transparent), transparent 70%),
    radial-gradient(900px 600px at 85% 110%,
      color-mix(in srgb, var(--sb-hero-accent) 6%, transparent), transparent 70%);
}
.sb-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.sb-hero-inner {
  position: relative; z-index: 20;
  display: flex; flex-direction: column; gap: var(--s-7);
  max-width: var(--sb-maxw); margin: 0 auto;
  padding: calc(var(--shell-topbar) + 9svh) var(--s-7) 0;
}
.sb-hero-copy { will-change: opacity, transform; }
.sb-hero-title {
  font-size: var(--sb-h1); line-height: 1.06; letter-spacing: -0.028em;
  font-weight: 500; color: var(--sb-hero-ink);
}
.sb-hero-title strong { font-weight: 700; color: var(--sb-hero-accent); }
/* 단어 단위 마스크 리빌 */
.sb-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.sb-word > span {
  display: inline-block; will-change: transform;
  transform: translateY(112%);
  transition: transform .9s var(--sb-ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.sb-hero.is-loaded .sb-word > span { transform: translateY(0); }

.sb-hero-sub {
  margin-top: var(--s-6); max-width: 560px;
  font-size: 15px; line-height: 1.75;
  color: color-mix(in srgb, var(--sb-hero-ink) 66%, transparent);
  opacity: 0; transform: translateY(12px);
  transition: opacity .8s var(--sb-ease) .5s, transform .8s var(--sb-ease) .5s;
}
.sb-hero-cta { margin-top: var(--s-7); opacity: 0; transform: translateY(12px);
  transition: opacity .8s var(--sb-ease) .65s, transform .8s var(--sb-ease) .65s; }
.sb-hero.is-loaded .sb-hero-sub,
.sb-hero.is-loaded .sb-hero-cta { opacity: 1; transform: none; }

.sb-scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--sb-hero-ink) 45%, transparent);
  transition: opacity .4s ease;
}
.sb-scroll-hint::after {
  content: ''; width: 1px; height: 28px;
  background: linear-gradient(to bottom, currentColor, transparent);
  animation: sb-hint 1.6s var(--sb-ease) infinite;
}
@keyframes sb-hint { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 부상하는 목업 카드 — JS가 스크롤 진행도에 따라 transform 갱신 */
.sb-hero-card-wrap { perspective: 1200px; margin-top: var(--s-2); }
.sb-hero-card {
  transform: perspective(1200px) translateY(82%) rotateX(16deg) scale(.94);
  will-change: transform;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / .5);
  overflow: hidden;
}
.sb-hero-card-head {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  font-size: var(--text-sm); font-weight: 600;
}
.sb-hero-card-head .sb-chip-id {
  font-size: 11px; font-weight: 600; color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface-container); border-radius: 6px; padding: 2px 8px;
}
.sb-hero-card-head .sb-chip-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--md-sys-color-tertiary);
}
.sb-hero-card-head .sb-chip-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--md-sys-color-tertiary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-sys-color-tertiary) 20%, transparent);
}

/* ── 5. 공용 데이터 테이블 (기본 14px, 이름 셀 16px medium) ── */
.sb-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.sb-table th {
  padding: 12px var(--s-4); text-align: left;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface-container-low);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  white-space: nowrap;
}
.sb-table td {
  padding: var(--s-4);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  white-space: nowrap; vertical-align: middle;
  transition: background-color .3s ease;
}
.sb-table thead + tbody tr:first-child td { border-top: 0; }
.sb-table .num { font-variant-numeric: tabular-nums; font-weight: 600; }
/* 행 이름 셀: 16px medium + 좌측 세로 틱 */
.sb-table .name { font-size: 16px; font-weight: 500; }
.sb-table .name .tick {
  display: inline-block; width: 2px; height: 14px; border-radius: 999px;
  background: var(--md-sys-color-outline); margin-right: var(--s-2); vertical-align: -2px;
}
/* 추천 행: 틴트 배경 + 컬러 틱 */
.sb-table tr.is-featured td { background: color-mix(in srgb, var(--md-sys-color-tertiary-container) 25%, transparent); }
.sb-table tr.is-featured .name .tick { background: var(--md-sys-color-tertiary); }
.sb-table tbody tr { transition: background-color .3s ease; }
.sb-table tbody tr:hover td { background: color-mix(in srgb, var(--md-sys-color-surface-container) 60%, transparent); }
.sb-table tr.is-featured:hover td { background: color-mix(in srgb, var(--md-sys-color-tertiary-container) 35%, transparent); }
.sb-table-note {
  padding: var(--s-3) var(--s-5); font-size: 12px; letter-spacing: .02em;
  color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface-container-low);
}

.sb-badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.6;
}
.sb-badge-green { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.sb-badge-blue { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.sb-badge-amber { background: var(--md-sys-color-warning-container); color: var(--md-sys-color-on-warning-container); }
.sb-badge-gray { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }

/* ── 6. 섹션 공통 ── */
.sb-section {
  padding: var(--s-11) var(--s-7);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  scroll-margin-top: var(--shell-topbar);
}
.sb-eyebrow {
  display: block; margin-bottom: var(--s-4);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--md-sys-color-primary);
}
.sb-h2 {
  font-size: var(--sb-h2); line-height: 1.1; letter-spacing: -0.022em;
  font-weight: 500; text-wrap: balance;
}
.sb-lead {
  margin-top: var(--s-5); max-width: 620px;
  font-size: 15px; line-height: 1.75; color: var(--md-sys-color-on-surface-variant);
}

/* 스크롤 리빌 */
.sb-reveal { opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--sb-ease), transform .7s var(--sb-ease); }
.sb-reveal.is-in { opacity: 1; transform: none; }
.sb-reveal[data-delay="1"] { transition-delay: .1s; }
.sb-reveal[data-delay="2"] { transition-delay: .2s; }
.sb-reveal[data-delay="3"] { transition-delay: .3s; }

/* ── 7. 페인 포인트: 320vh 스크롤텔링 (가로형 카드 순차 등장) ── */
.sb-pain { padding: 0 var(--s-7); border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.sb-pain-track { height: 320vh; }
.sb-pain-sticky {
  position: sticky; top: var(--shell-topbar);
  display: flex; flex-direction: column; justify-content: flex-start;
  min-height: calc(100svh - var(--shell-topbar));
  padding-top: 8vh;
}
.sb-pain-inner {
  display: flex; flex-direction: column; gap: var(--s-8);
  max-width: var(--sb-maxw); margin: 0 auto; width: 100%;
}
.sb-pain-list { display: flex; flex-direction: column; gap: var(--s-4); }
.sb-pain-card {
  display: flex; gap: var(--s-7); align-items: flex-start;
  padding: var(--s-6); border-radius: 8px;
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface);
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--sb-ease), transform .6s var(--sb-ease),
              border-color .3s ease, background-color .3s ease;
}
.sb-pain-card.is-shown { opacity: 1; transform: none; }
.sb-pain-card.is-active { border-color: var(--md-sys-color-outline); background: var(--md-sys-color-surface-container-lowest); }
.sb-pain-num {
  flex: none;
  font-size: clamp(28px, 4vw, 44px); line-height: 1; font-weight: 500;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  color: var(--md-sys-color-outline);
}
.sb-pain-card h3 {
  font-size: clamp(20px, 2.8vw, 30px); font-weight: 500;
  line-height: 1.25; letter-spacing: -0.016em; text-wrap: balance;
}
.sb-pain-card p {
  margin-top: var(--s-3);
  font-size: clamp(16px, 2vw, 21px); line-height: 1.65; letter-spacing: -0.008em;
  text-wrap: pretty; color: var(--md-sys-color-on-surface-variant);
}

/* ── 8. 서비스(솔루션) 섹션 ── */
.sb-feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-8); margin-top: var(--s-9); }
.sb-feature { display: flex; gap: var(--s-4); align-items: flex-start; }
.sb-feature-icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--md-sys-color-primary-container); color: var(--md-sys-color-primary);
}
[data-theme="dark"] .sb-feature-icon { color: var(--md-sys-color-on-primary-container); }
.sb-feature-icon svg { width: 18px; height: 18px; }
.sb-feature h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.sb-feature p { margin-top: var(--s-2); font-size: var(--text-sm); line-height: 1.7; color: var(--md-sys-color-on-surface-variant); }

.sb-service-shot {
  margin-top: var(--s-9); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-lowest);
  box-shadow: 0 30px 70px -40px rgb(0 0 0 / .25);
}

/* ── 9. 앱쉘 목업 (실제 화면 미리보기 + 스텝 전환) ── */
.sb-steps { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.sb-step {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 40px; padding: 0 var(--s-4); border-radius: 999px;
  border: 1px solid var(--md-sys-color-outline-variant);
  background: transparent; color: var(--md-sys-color-on-surface-variant);
  font-size: var(--text-sm); font-weight: 500;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.sb-step b { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--md-sys-color-outline); }
.sb-step:hover { border-color: var(--md-sys-color-outline); }
.sb-step.is-active {
  border-color: var(--md-sys-color-primary);
  background: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
  color: var(--md-sys-color-on-surface);
}
.sb-step.is-active b { color: var(--md-sys-color-primary); }

.sb-shell {
  display: grid; grid-template-columns: 200px 1fr;
  margin-top: var(--s-5); height: 600px;
  border: 1px solid var(--md-sys-color-outline-variant); border-radius: 12px;
  overflow: hidden; background: var(--md-sys-color-surface-container-low);
  box-shadow: 0 30px 70px -40px rgb(0 0 0 / .25);
  transition: grid-template-columns .3s var(--sb-ease), transform .7s var(--sb-ease);
  font-size: 13px;
}
.sb-shell.collapsed { grid-template-columns: 48px 1fr; }
.sb-shell-side {
  display: flex; flex-direction: column; gap: var(--s-1);
  padding: var(--s-3); border-right: 1px solid var(--md-sys-color-outline-variant);
  overflow: hidden;
}
.sb-shell-brand { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2); font-weight: 700; white-space: nowrap; }
.sb-shell-nav-label {
  padding: var(--s-3) var(--s-2) var(--s-1);
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant); white-space: nowrap;
}
.sb-shell-item {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 7px var(--s-2); border-radius: 8px;
  color: var(--md-sys-color-on-surface-variant); white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.sb-shell-item svg { flex: none; width: 15px; height: 15px; }
.sb-shell-item:hover { background: var(--md-sys-color-surface-container-high); }
.sb-shell-item.active { background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface); font-weight: 600; }
.sb-shell.collapsed .sb-shell-item span,
.sb-shell.collapsed .sb-shell-brand span,
.sb-shell.collapsed .sb-shell-nav-label { display: none; }

.sb-shell-main { display: flex; flex-direction: column; min-width: 0; background: var(--md-sys-color-background); }
.sb-shell-topbar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  font-weight: 600;
}
.sb-shell-body { flex: 1; overflow-y: auto; padding: var(--s-4); }
/* 스텝 전환 패널 */
.sb-shell-panel { display: none; flex-direction: column; gap: var(--s-4); animation: sb-panel-in .45s var(--sb-ease); }
.sb-shell-panel.is-active { display: flex; }
@keyframes sb-panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.sb-shell-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.sb-shell-stat {
  padding: var(--s-4); border-radius: 10px;
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-lowest);
}
.sb-shell-stat b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-shell-stat span { font-size: 11px; color: var(--md-sys-color-on-surface-variant); }
.sb-shell-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.sb-shell-card {
  border: 1px solid var(--md-sys-color-outline-variant); border-radius: 10px;
  background: var(--md-sys-color-surface-container-lowest); overflow: hidden;
}
.sb-shell-card-head {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  font-weight: 600; font-size: 13px;
}
.sb-shell-card-head .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container);
  font-size: 11px; font-weight: 700;
}
.sb-shell-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.sb-shell-row:last-child { border-bottom: 0; }
.sb-shell-row .t { font-size: 13px; font-weight: 500; }
.sb-shell-row .d { font-size: 11px; color: var(--md-sys-color-on-surface-variant); }
/* 자료 상세 목업 */
.sb-shell-detail { border: 1px solid var(--md-sys-color-outline-variant); border-radius: 10px; background: var(--md-sys-color-surface-container-lowest); padding: var(--s-5); }
.sb-shell-detail h4 { font-size: 16px; font-weight: 600; margin-bottom: var(--s-2); }
.sb-shell-detail .meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.sb-shell-detail p { font-size: 13px; line-height: 1.7; color: var(--md-sys-color-on-surface-variant); }
.sb-shell-fieldrow { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--md-sys-color-outline-variant); font-size: 13px; }
.sb-shell-fieldrow:last-child { border-bottom: 0; }
.sb-shell-fieldrow .k { color: var(--md-sys-color-on-surface-variant); }

/* ── 10. 카운트업 통계 (숫자 + 트렌드 화살표) ── */
.sb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8); margin-top: var(--s-9); }
.sb-stat { display: flex; flex-direction: column; gap: var(--s-3); }
.sb-stat-num {
  display: flex; align-items: baseline; gap: var(--s-2);
  font-size: clamp(34px, 5vw, 56px); font-weight: 400; letter-spacing: -0.03em;
  line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--md-sys-color-on-surface);
}
.sb-stat-num .unit { font-size: .55em; }
.sb-stat-num svg { width: 26px; height: 26px; align-self: center; }
.sb-stat-num .trend-down { color: var(--md-sys-color-tertiary); }
.sb-stat-num .trend-up { color: var(--md-sys-color-primary); }
.sb-stat p { font-size: var(--text-sm); line-height: 1.5; color: var(--md-sys-color-on-surface-variant); }

/* ── 11. 요금 (카드가 아닌 문장형) ── */
.sb-pricing-body { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-9); max-width: 720px; }
.sb-pricing-main {
  font-size: clamp(18px, 2.2vw, 24px); line-height: 1.5; letter-spacing: -0.012em;
  color: var(--md-sys-color-on-surface);
}
.sb-pricing-sub { font-size: 15px; line-height: 1.68; color: var(--md-sys-color-on-surface-variant); }

/* ── 12. 계산기 ── */
.sb-calc {
  margin-top: var(--s-9); padding: var(--s-8);
  border-radius: 16px; border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-low);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8);
}
.sb-calc-field { margin-bottom: var(--s-7); }
.sb-calc-field label { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--s-3); }
.sb-calc-field label output { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-calc-field label output small { font-size: 13px; font-weight: 500; color: var(--md-sys-color-on-surface-variant); }
.sb-calc-range-meta { display: flex; justify-content: space-between; margin-top: var(--s-2); font-size: 11px; color: var(--md-sys-color-on-surface-variant); font-variant-numeric: tabular-nums; }

input[type="range"].sb-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 999px;
  background: linear-gradient(to right,
    var(--md-sys-color-primary) var(--fill, 50%),
    var(--md-sys-color-surface-container-highest) var(--fill, 50%));
  outline: none;
}
input[type="range"].sb-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--md-sys-color-primary);
  box-shadow: 0 1px 4px rgb(0 0 0 / .2);
  transition: transform .15s ease, box-shadow .15s ease;
}
input[type="range"].sb-range::-webkit-slider-thumb:hover,
input[type="range"].sb-range:focus-visible::-webkit-slider-thumb {
  transform: scale(1.18);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--md-sys-color-primary) 20%, transparent);
}
input[type="range"].sb-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--md-sys-color-primary);
  box-shadow: 0 1px 4px rgb(0 0 0 / .2);
}
input[type="range"].sb-range::-moz-range-progress { background: var(--md-sys-color-primary); height: 4px; border-radius: 999px; }

.sb-calc-result { display: flex; flex-direction: column; gap: var(--s-5); }
.sb-calc-total-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--md-sys-color-on-surface-variant); }
.sb-calc-total {
  font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.sb-calc-total .sb-badge { vertical-align: middle; margin-left: var(--s-3); font-size: 13px; }
.sb-bars { display: flex; flex-direction: column; gap: var(--s-3); }
.sb-bar-row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: var(--s-3); font-size: 12px; }
.sb-bar-row .v { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.sb-bar-track { height: 26px; border-radius: 6px; background: var(--md-sys-color-surface-container-highest); overflow: hidden; }
.sb-bar-fill { height: 100%; border-radius: 6px; background: var(--md-sys-color-outline); width: 100%;
  transition: width .7s var(--sb-ease); }
.sb-bar-fill.accent { background: var(--md-sys-color-primary); }
.sb-calc-note { font-size: 11px; line-height: 1.7; color: var(--md-sys-color-on-surface-variant); }

/* ── 13. FAQ (아코디언이 아닌 항상 펼쳐진 리스트) ── */
.sb-faq { margin-top: var(--s-9); max-width: 760px; display: flex; flex-direction: column; }
.sb-faq-item {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-8) 0;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}
.sb-faq-item:first-child { border-top: 0; padding-top: 0; }
.sb-faq-item h3 {
  font-size: clamp(18px, 2.4vw, 24px); line-height: 1.3; letter-spacing: -0.014em;
  font-weight: 500; color: var(--md-sys-color-on-surface);
}
.sb-faq-item p {
  font-size: clamp(15px, 1.8vw, 18px); line-height: 1.7; letter-spacing: -0.006em;
  color: var(--md-sys-color-on-surface-variant);
}

/* ── 14. 다크 CTA (inverse 토큰 — 다크모드에선 밝은 패널로 반전) ── */
.sb-cta {
  padding: var(--s-11) var(--s-7);
  background: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
  scroll-margin-top: var(--shell-topbar);
}
.sb-cta .sb-eyebrow { color: var(--md-sys-color-inverse-primary); }
.sb-cta-title {
  font-size: var(--sb-h2-lg); line-height: 1.12; letter-spacing: -0.024em;
  font-weight: 500; text-wrap: balance;
}
.sb-cta .sb-hero-cta { opacity: 1; transform: none; transition: none; margin-top: var(--s-8); }
.sb-cta .sb-btn-light { background: var(--md-sys-color-inverse-on-surface); color: var(--md-sys-color-inverse-surface); }

/* ── 15. 푸터 ── */
.sb-footer {
  border-top: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface);
  padding: var(--s-10) var(--s-7) var(--s-8);
  font-size: var(--text-sm);
}
.sb-footer-grid { display: flex; flex-wrap: wrap; gap: var(--s-9); justify-content: space-between; }
.sb-footer-brand p { margin-top: var(--s-3); color: var(--md-sys-color-on-surface-variant); line-height: 1.7; }
.sb-footer-nav { display: flex; gap: var(--s-9); flex-wrap: wrap; }
.sb-footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant); margin-bottom: var(--s-3);
}
.sb-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.sb-footer-col a { color: var(--md-sys-color-on-surface-variant); transition: color .15s ease; }
.sb-footer-col a:hover { color: var(--md-sys-color-on-surface); }
.sb-footer-bottom {
  margin-top: var(--s-9); padding-top: var(--s-5);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  font-size: 11px; letter-spacing: .06em; color: var(--md-sys-color-on-surface-variant);
}
/* 다크모드 토글 */
.sb-theme-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 32px; padding: 0 var(--s-3); border-radius: 999px;
  border: 1px solid var(--md-sys-color-outline-variant); background: transparent;
  font-size: 12px; font-weight: 500; color: var(--md-sys-color-on-surface-variant);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.sb-theme-toggle:hover { border-color: var(--md-sys-color-outline); color: var(--md-sys-color-on-surface); }
.sb-theme-toggle svg { width: 14px; height: 14px; }
.sb-theme-toggle .ico-moon { display: inline; }
.sb-theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .sb-theme-toggle .ico-moon { display: none; }
[data-theme="dark"] .sb-theme-toggle .ico-sun { display: inline; }

/* ── 16. 반응형 ── */
@media (max-width: 960px) {
  .sb-feature-list { grid-template-columns: 1fr; gap: var(--s-6); }
  .sb-calc { grid-template-columns: 1fr; padding: var(--s-5); }
  .sb-shell-stats { grid-template-columns: 1fr 1fr; }
  .sb-shell-cards { grid-template-columns: 1fr; }
  .sb-stats { grid-template-columns: 1fr; gap: var(--s-6); }
}
@media (max-width: 720px) {
  .sb-header { padding: 0 var(--s-4); }
  .sb-nav { display: none; }
  .sb-menu-btn { display: block; }
  .sb-section, .sb-cta { padding-left: var(--s-4); padding-right: var(--s-4); padding-top: var(--s-10); padding-bottom: var(--s-10); }
  .sb-hero-inner { padding-left: var(--s-4); padding-right: var(--s-4); }
  .sb-hero { height: 220vh; }
  .sb-hero-card { border-radius: 10px; }
  .sb-hero-card-wrap { overflow-x: auto; }
  /* 페인: 모바일은 스크롤텔링 해제(정적 스택) */
  .sb-pain { padding: var(--s-10) var(--s-4); }
  .sb-pain-track { height: auto; }
  .sb-pain-sticky { position: static; min-height: 0; padding-top: 0; }
  .sb-pain-card { opacity: 1; transform: none; gap: var(--s-4); }
  .sb-shell { grid-template-columns: 48px 1fr; height: 480px; }
  .sb-shell .sb-shell-item span, .sb-shell .sb-shell-brand span, .sb-shell .sb-shell-nav-label { display: none; }
  .sb-footer { padding: var(--s-9) var(--s-4) var(--s-6); }
  .sb-footer-grid, .sb-footer-nav { gap: var(--s-6); }
  .sb-table { font-size: 13px; }
  .sb-table .name { font-size: 14px; }
  .sb-table th, .sb-table td { padding-left: var(--s-3); padding-right: var(--s-3); }
}

/* ── 17. 모션 최소화 ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sb-word > span, .sb-hero-sub, .sb-hero-cta, .sb-reveal, .sb-pain-card { transition: none; transform: none; opacity: 1; }
  .sb-hero { height: auto; }
  .sb-hero-sticky { position: static; height: auto; padding-bottom: var(--s-10); }
  .sb-hero-card { transform: none !important; }
  .sb-scroll-hint { display: none; }
  .sb-pain-track { height: auto; }
  .sb-pain-sticky { position: static; min-height: 0; }
  .sb-shell-panel { animation: none; }
}
