/* ===========================================================
   부동산급매.com v4 — Design Tokens
   =========================================================== */

:root {
  /* === Foundation Ink === */
  --ink-900: #0B1A2B;
  --ink-700: #1F3045;
  --ink-500: #4A5C75;
  --ink-300: #97A4B7;
  --ink-100: #D8DFEA;

  /* === Paper === */
  --paper-50:  #FBF8F1;
  --paper-100: #F4EFE2;
  --paper-200: #E9E1CD;

  /* === Accent Lime === */
  --lime-100: #ECFAC9;
  --lime-500: #C6F24E;
  --lime-600: #A8D635;
  --lime-700: #7FA51E;

  /* === Signal (4분면) === */
  --sell:      #E94B3C;
  --buy:       #2D7BD1;
  --lease-out: #F2A33C;
  --lease-in:  #4FA86D;

  /* === System === */
  --success: #2D9F5F;
  --warning: #E0A028;
  --danger:  #C9342B;

  /* === Surface === */
  --surface-deep:  #08111E;
  --surface-glass: rgba(11, 26, 43, 0.72);

  /* === Fonts === */
  --font-display: "Paperlogy", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-body:    "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-mono:    "JetBrains Mono", "D2Coding", "SF Mono", Menlo, monospace;
  --font-serif:   "Nanum Myeongjo", "Noto Serif KR", serif;

  /* === Type Scale === */
  --text-2xs: 11px;
  --text-xs:  12px;
  --text-sm:  14px;
  --text-base: 15px;
  --text-md:  17px;
  --text-lg:  20px;
  --text-xl:  24px;
  --text-2xl: 30px;
  --text-3xl: 38px;
  --text-4xl: 48px;
  --text-5xl: 64px;
  --text-6xl: 84px;
  --text-hero: clamp(40px, 8vw, 84px);

  /* === Spacing === */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  --section-pad-y: clamp(64px, 12vw, 128px);
  --section-pad-x: clamp(20px, 5vw, 80px);

  --container-max:   1320px;
  --container-tight: 1080px;
  --container-text:  720px;

  /* === Radius (3-snap: compact 12 / standard 16 / panel 20 + pill) === */
  --radius-sm:   12px;
  --radius-md:   16px;
  --radius-lg:   20px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  /* === Border === */
  --border-hair: 1px solid color-mix(in srgb, var(--ink-900) 8%, transparent);
  --border-soft: 1px solid color-mix(in srgb, var(--ink-900) 14%, transparent);
  --border-bold: 2px solid var(--ink-900);

  /* === Shadow === */
  --shadow-paper-1: 0 1px 0 rgba(11,26,43,0.04), 0 4px 12px rgba(58, 45, 20, 0.06);
  --shadow-paper-2: 0 2px 0 rgba(11,26,43,0.05), 0 12px 32px rgba(58, 45, 20, 0.10);
  --shadow-paper-3: 0 4px 0 rgba(11,26,43,0.06), 0 24px 60px rgba(58, 45, 20, 0.16);
  --glow-lime: 0 0 0 4px color-mix(in srgb, var(--lime-500) 25%, transparent);

  /* === Dark-surface accessible text === */
  --text-on-dark-muted: #AEBBCD;

  /* === Status text (bright bg, AA contrast) === */
  --status-warning-text: #855500;
  --status-success-text: #176B3A;
  --accent-olive-text:   #526F10;

  /* === Motion === */
  --dur-instant: 90ms;
  --dur-fast:    180ms;
  --dur-base:    260ms;
  --dur-slow:    420ms;
  --dur-cinema:  680ms;

  --ease-out-paper: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-paper:  cubic-bezier(0.7, 0, 0.84, 0);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);

  --stagger-tight: 40ms;
  --stagger-base:  80ms;
  --stagger-loose: 140ms;

  /* === Z === */
  --z-base:    0;
  --z-raised:  10;
  --z-sticky:  100;
  --z-overlay: 400;
  --z-modal:   500;
  --z-toast:   600;
  --z-tooltip: 700;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 계약 모달 고지문 — 직거래 플랫폼 고지(2026-08-06) */
.v4-contract-modal__disclaimer {
  margin: 2px 0 0; font-size: 11.5px; line-height: 1.6;
  color: var(--tx2, #7c8798);
  padding: 10px 12px; border-radius: 10px;
  background: rgba(127, 140, 160, .09);
}

/* 푸터 개인정보 고지 (2026-08-06) */
.v4-pagefoot__privacy { display:inline-block; margin-top:6px; opacity:.82; font-size:.92em; }
/* 접수폼 하단 수집 고지 */
.v4-form-privacy {
  margin: 8px 0 0; font-size: 11.5px; line-height: 1.55;
  color: var(--tx2, #7c8798); text-align: center;
}
/* 푸터 개인정보처리방침 링크 (2026-08-07) */
.v4-pagefoot__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.v4-pagefoot__link:hover { opacity: .8; }
