/* ══ Design Tokens ══ */
:root {
  /* ── Colors: Background & Surface ── */
  --color-bg: #F7F8FC;
  --color-surface: #FFFFFF;

  /* ── Colors: Primary ── */
  --color-primary: #4361EE;
  --color-primary-vivid: #5A7AFF;
  --color-primary-deep: #2B3F8E;
  --color-primary-soft: rgba(67,97,238,0.06);
  --color-primary-ring: rgba(67,97,238,0.12);
  --color-primary-mist: #EEF1FB;
  --color-on-primary: #FFFFFF;

  /* ── Colors: Text ── */
  --color-on-surface: #1A1D2E;
  --color-on-surface-variant: #6E7191;
  --color-on-surface-muted: #A0A3BD;

  /* ── Colors: Outline ── */
  --color-outline: #E2E5F0;
  --color-outline-light: #EDEEF5;

  /* ── Colors: Success ── */
  --color-success: #2DC97E;
  --color-success-bg: rgba(45,201,126,0.07);
  --color-success-ring: #D1FAE5;

  /* ── Colors: Warning ── */
  --color-warning: #E5920B;
  --color-warning-bg: rgba(229,146,11,0.07);
  --color-warning-ring: rgba(229,146,11,0.2);

  /* ── Colors: Error ── */
  --color-error: #E5484D;
  --color-error-bg: rgba(229,72,77,0.05);

  /* ── Typography ── */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, 'Malgun Gothic', sans-serif;
  --text-3xs: 0.625rem;
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-lg: 0.9375rem;
  --text-xl: 1.0625rem;

  /* ── Spacing (4px grid) ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ── Border Radius ── */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(26,29,46,0.04), 0 2px 6px rgba(26,29,46,0.02);
  --shadow-md: 0 2px 8px rgba(26,29,46,0.06), 0 6px 20px rgba(26,29,46,0.03);
  --shadow-lg: 0 4px 12px rgba(26,29,46,0.08), 0 12px 32px rgba(26,29,46,0.04);

  /* ── Transitions ── */
  --transition-fast: 150ms;
  --transition-base: 200ms;

  /* ── Motion (의미 명확한 timing, 기존 transition 토큰과 공존) ── */
  --motion-duration-fast: 120ms;   /* hover·micro-interaction */
  --motion-duration-base: 180ms;   /* 모달 panel 진입·skeleton phase */
  --motion-duration-slow: 240ms;   /* 모달 backdrop fade */
  --motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);  /* Material Standard */

  /* ── Layout ── */
  --app-max-width-mobile: 430px;
  --app-max-width-tablet: 720px;
  --app-max-width-pc: 1080px;
  /* 하위 호환 alias (기존 --app-max-width 사용처 유지용. 제거 금지) */
  --app-max-width: var(--app-max-width-mobile);
}

/* 반응형 적용 가이드: docs/design-system.md §7 (페이지별 max-width 매트릭스·breakpoint 정책 SSoT) */
