@import url('design-tokens.css');
/* (구) Noto Sans KR — Pretendard로 교체. CDN은 design-tokens.css에서 import */

/* ── Lucide 아이콘 공통 스타일 (이모지 대체) ── */
.ico, i[data-lucide], svg.lucide {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ── 공통 드래그앤드롭 활성 상태 (사용자 페이지) ── */
.dropzone-enabled { position: relative; }
.dropzone-enabled.drag-over {
  border-color: #c8a96e !important;
  background: #fff9ec !important;
  box-shadow: 0 0 0 3px rgba(200, 169, 110, .2);
  transition: all .12s ease;
}
.dropzone-enabled.drag-over::after {
  content: '여기에 놓으세요';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 169, 110, .18);
  color: #7a5f2a;
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
  border-radius: inherit;
  z-index: 5;
}


/* ─────────────────────────────────────────
   SBU  ·  Renewed 2026 · Modern Korean Commerce
   Navy + Mustard + Coral/Violet/Mint · Pretendard
   기존 변수명은 호환 위해 유지, 값만 모던 톤
───────────────────────────────────────── */
:root {
  --bg:        #f8f9fb;          /* 페이지 배경 — 더 밝게 (옅은 cool gray) */
  --white:     #ffffff;
  --black:     #1e2761;          /* Primary 네이비 (legacy 변수명 유지 — 텍스트/액센트만) */
  --ink:       #111317;          /* primary text — WCAG AAA */
  --ink2:      #2a2d33;
  --gray:      #5a5f6b;          /* secondary text — 진하게 (WCAG AA) */
  --gray-lt:   #9b9fac;          /* tertiary — 진하게 (옛 #a8aebe → 가독성↑) */
  --gray-pale: #edeff4;
  --border:    #e2e6ed;          /* 카드 보이게 */
  --border-md: #cdd2dc;
  --border-dk: #9b9fac;

  /* accent — 머스타드 */
  --ac:       #1e2761;
  --ac-hover: #141a4d;
  --accent:   #d4a72c;
  --accent-hover: #b88f1e;

  /* status — 살짝 vivid */
  --green:    #0fb682;
  --green-bg: #e3f7ee;
  --red:      #f04e4e;
  --red-bg:   #fde6e6;
  --orange:   #f5a524;
  --orange-bg:#fef2dd;

  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 99px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sh-sm: 0 1px 2px rgba(20,22,30,.04), 0 1px 3px rgba(20,22,30,.05);
  --sh-md: 0 2px 6px rgba(20,22,30,.05), 0 8px 20px -6px rgba(20,22,30,.08);
  --sh-lg: 0 4px 12px rgba(20,22,30,.06), 0 18px 38px -10px rgba(20,22,30,.14);
  --sh-card: 0 3px 10px rgba(20,22,30,.06), 0 14px 34px -12px rgba(20,22,30,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--ink);
  background: var(--bg);
  font-size: 15.5px;
  line-height: 1.65;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-feature-settings: "ss01", "tnum";
}
h1, h2, h3, h4, h5, h6 { word-break: keep-all; overflow-wrap: break-word; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--gray-pale); border-radius: 4px; }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 72px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(230,232,239,.65);
  box-shadow: 0 1px 0 rgba(20,22,30,.02);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo {
  font-size: 30px; font-weight: 900;
  color: var(--black); letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 13px;
  min-width: 0;
}
.nav-logo span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-logo .ring {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  font-size: 13px; color: var(--gray); font-weight: 500;
  transition: color 0.15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--black); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ── Nav Dropdown ── */
.nav-links li { position: relative; padding-bottom: 12px;}
.nav-dropdown {
  position: absolute; top: calc(100%); left: 50%;
  transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border-md);
  border-radius: 12px; padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 140px; z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s;
  transform: translateX(-50%) translateY(-4px);
}
.nav-links li:hover .nav-dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block; padding: 9px 14px;
  font-size: 13px; color: var(--gray) !important;
  border-radius: 8px; white-space: nowrap;
  font-weight: 500;
}
.nav-dropdown a:hover { background: var(--bg); color: var(--ink) !important; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  padding: 11px 24px; border-radius: var(--r-full);
  letter-spacing: -0.01em;
  transition: background .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease), box-shadow .28s var(--ease), transform .18s var(--ease);
  white-space: nowrap; cursor: pointer; border: none;
}
.btn:active { transform: translateY(0) scale(0.97); }

/* primary — 메인 CTA (네이비 솔리드, 묵직한 그림자) */
.btn-gold {
  background: var(--black); color: #fff;
  box-shadow: 0 2px 4px rgba(30,39,97,.18);
}
.btn-gold:hover {
  background: var(--ac-hover);
  box-shadow: 0 10px 26px -6px rgba(30,39,97,.32), 0 4px 14px rgba(30,39,97,.18);
  transform: translateY(-2px);
}

.btn-ink {
  background: var(--black); color: #fff;
  box-shadow: 0 2px 4px rgba(30,39,97,.16);
}
.btn-ink:hover {
  background: var(--ac-hover);
  box-shadow: 0 10px 26px -6px rgba(30,39,97,.30), 0 4px 12px rgba(30,39,97,.16);
  transform: translateY(-2px);
}

/* accent — 머스타드 솔리드 (호버 시 글로우) */
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 6px rgba(212,167,44,.22);
}
.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 28px -6px rgba(212,167,44,.42), 0 4px 12px rgba(212,167,44,.22);
  transform: translateY(-2px);
}

/* outline — clean borderboard */
.btn-outline {
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--border-md);
}
.btn-outline:hover {
  border-color: var(--black); color: var(--black);
  background: var(--white); box-shadow: var(--sh-sm);
  transform: translateY(-1px);
}

/* ghost variants */
.btn-ghost-gold {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border-md);
}
.btn-ghost-gold:hover {
  background: var(--bg); border-color: var(--black);
  color: var(--black);
}

.btn-ghost-w {
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost-w:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-1px);
}

.btn-sm  { font-size: 12.5px; padding: 8px 16px; }
.btn-lg  { font-size: 15px; padding: 14px 32px; }
.btn-xl  { font-size: 15px; padding: 15px 36px; border-radius: var(--r-lg); font-weight: 800; }
.btn-full {
  width: 100%; border-radius: var(--r-md);
  height: 54px; font-size: 15px; font-weight: 800; letter-spacing: 0.01em;
}

/* ═══════════ FORMS ═══════════ */
.field { margin-bottom: 20px; }
.label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--gray); margin-bottom: 8px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.label-row { display: flex; justify-content: space-between; align-items: center; }
.label-link { font-size: 12.5px; font-weight: 600; color: var(--gray); text-transform: none; letter-spacing: 0; }
.label-link:hover { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }

.input {
  width: 100%; height: 52px; padding: 0 18px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  color: var(--ink); background: var(--white);
  border: 1.5px solid var(--border-md); border-radius: var(--r-md);
  outline: none; -webkit-appearance: none;
  transition: border-color 0.22s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}
.input::placeholder { color: var(--gray-lt); }
.input:hover { border-color: var(--border-dk); }
.input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(30,39,97,0.10);
  background: var(--white);
}
.input.error { border-color: var(--red); box-shadow: 0 0 0 4px rgba(240,78,78,0.12); }

.input-wrap { position: relative; }
.input-wrap .input { padding-right: 62px; }
.input-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 500; color: var(--gray-lt);
  background: none; border: none; cursor: pointer;
  transition: color 0.15s;
}
.input-eye:hover { color: var(--black); }

select.input {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ababab' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px;
}

.field-hint  { margin-top: 6px; font-size: 12px; color: var(--gray-lt); }
.field-error { margin-top: 6px; font-size: 12px; color: var(--red); display: none; }
.field-error.show { display: block; }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* password strength */
.pw-strength { margin-top: 8px; }
.pw-bars { display: flex; gap: 4px; margin-bottom: 5px; }
.pw-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--gray-pale); transition: background 0.25s; }
.pw-bar.w { background: var(--red); }
.pw-bar.f { background: var(--orange); }
.pw-bar.g { background: var(--green); }
.pw-bar.s { background: var(--black); }
.pw-text { font-size: 11px; color: var(--gray-lt); letter-spacing: 0.02em; }

/* checkbox */
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-box {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  border: 1.5px solid var(--border-md); border-radius: 4px;
  background: var(--white); cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: all 0.15s; position: relative;
}
.check-box:checked { background: var(--black); border-color: var(--black); }
.check-box:checked::after {
  content: ''; position: absolute; left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg);
}
.check-text { font-size: 13px; color: var(--gray); line-height: 1.65; }
.check-text a { color: var(--black); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* divider */
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 11px; color: var(--gray-lt); white-space: nowrap; letter-spacing: 0.06em; }

/* ═══════════ STEPS ═══════════ */
.steps { display: flex; align-items: center; margin-bottom: 34px; }
.step { display: flex; align-items: center; gap: 8px; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: var(--gray-pale); color: var(--gray-lt);
  border: none; flex-shrink: 0; transition: all 0.22s var(--ease);
}
.step-name { font-size: 12px; font-weight: 500; color: var(--gray-lt); transition: color 0.22s; }
.step.active .step-num { background: var(--black); color: #fff; }
.step.active .step-name { color: var(--black); font-weight: 700; }
.step.done .step-num { background: var(--gray-pale); color: var(--gray); }
.step.done .step-name { color: var(--gray); }
.step-sep { flex: 1; height: 1px; background: var(--gray-pale); margin: 0 10px; }
.step-sep.done { background: var(--gray-pale); }

/* ═══════════ CATEGORY TILES (signup) ═══════════ */
.cat-grid-form { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 8px; }
.cat-label { cursor: pointer; }
.cat-label input { display: none; }
.cat-tile {
  padding: 14px 12px; border: 1.5px solid var(--border);
  border-radius: var(--r-md); background: var(--white);
  transition: all 0.18s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.cat-tile:hover { border-color: var(--border-dk); box-shadow: var(--sh-sm); }
.cat-label input:checked + .cat-tile {
  border-color: var(--black); background: var(--black);
}
.cat-tile .t-ico { font-size: 20px; line-height: 1; }
.cat-tile .t-name { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.cat-tile .t-desc { font-size: 11px; color: var(--gray-lt); line-height: 1.5; }
.cat-label input:checked + .cat-tile .t-name { color: #fff; }
.cat-label input:checked + .cat-tile .t-desc { color: rgba(255,255,255,0.4); }

/* ═══════════ TOAST ═══════════ */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--black); color: #fff;
  padding: 13px 28px; border-radius: var(--r-full);
  font-size: 13.5px; font-weight: 600; white-space: nowrap; letter-spacing: -0.005em;
  opacity: 0; transition: all 0.36s var(--ease); z-index: 9999; pointer-events: none;
  box-shadow: 0 12px 36px -8px rgba(20,22,30,.30), 0 4px 14px rgba(20,22,30,.12);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); box-shadow: 0 12px 32px -6px rgba(15,182,130,.32), 0 4px 12px rgba(15,182,130,.18); }
.toast.error   { background: var(--red); box-shadow: 0 12px 32px -6px rgba(240,78,78,.32), 0 4px 12px rgba(240,78,78,.18); }

/* ═══════════ AUTH ═══════════ */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }

.auth-left {
  /* 2026.05 round-2: 어두운 네이비 → 옅은 라일락→화이트→민트 + 컬러 글로우 */
  background: linear-gradient(135deg, #f4f1ff 0%, #ffffff 50%, #eaf6f3 100%);
  padding: 56px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  border-right: 1px solid var(--border);
}
/* color glow */
.auth-left::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(212,167,44,.22) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 10% 90%, rgba(124,92,255,.14) 0%, transparent 60%);
  pointer-events: none;
}
.auth-left::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,39,97,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,39,97,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  pointer-events: none;
}
.auth-left-logo {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 900; color: var(--black); letter-spacing: -0.03em;
}
.auth-left-logo .ring {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--black);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.auth-left-body { position: relative; z-index: 1; }
.auth-left-body h2 {
  font-size: 42px !important; font-weight: 900;
  color: var(--black); line-height: 1.1; letter-spacing: -0.045em; margin-bottom: 20px;
}
.auth-left-body h2 strong { font-weight: 900; display: block; }
.auth-left-body h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #d4a72c 0%, #b88f1e 60%, #c83f53 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-left-body p { font-size: 14.5px; color: var(--gray); line-height: 1.85; max-width: 320px; }
.auth-left-footer { position: relative; z-index: 1; }
.auth-kpis {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.auth-kpi { padding: 18px 14px; text-align: center; border-right: 1px solid var(--border); }
.auth-kpi:last-child { border-right: none; }
.auth-kpi .n { font-size: 22px; font-weight: 900; color: var(--black); display: block; letter-spacing: -0.04em; }
.auth-kpi .l { font-size: 11.5px; color: var(--gray); margin-top: 3px; letter-spacing: 0.04em; font-weight: 600; }

.auth-right {
  background: var(--white); display: flex; align-items: center;
  justify-content: center; padding: 60px 40px; overflow-y: auto;
}
.auth-box { width: 100%; max-width: 400px; }
.auth-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-lt); margin-bottom: 10px;
}
.auth-title {
  font-size: 34px !important; font-weight: 900;
  letter-spacing: -0.045em; color: var(--black); margin-bottom: 10px; line-height: 1.05;
}
.auth-sub { font-size: 14px; color: var(--gray); margin-bottom: 32px; }
.auth-sub a { color: var(--black); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════ INDEX HERO ═══════════ */
.hero {
  padding-top: 72px; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(255,107,125,.05) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 0% 100%, rgba(124,92,255,.04) 0%, transparent 60%),
    var(--white);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  padding-left: 24px; padding-right: 24px;
  position: relative; overflow: hidden;
}
/* diagonal stripe bg — 더 subtle */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 60px,
    rgba(30,39,97,0.012) 60px, rgba(30,39,97,0.012) 61px
  );
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-full);
  font-size: 12.5px; color: var(--gray); margin-bottom: 32px;
  font-weight: 700; letter-spacing: 0.04em;
  position: relative; z-index: 1;
  box-shadow: 0 2px 8px rgba(20,22,30,.04);
}
.badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: blink 2s ease infinite; box-shadow: 0 0 0 3px rgba(15,182,130,.18); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.hero h1 {
  font-size: clamp(44px, 6.8vw, 84px) !important; font-weight: 900;
  letter-spacing: -0.045em; color: var(--black); line-height: 1.04; margin-bottom: 26px;
  position: relative; z-index: 1;
}
.hero h1 em { font-style: normal; color: var(--gray-lt); }
.hero-desc {
  font-size: 17.5px; font-weight: 400; color: var(--gray); line-height: 1.75;
  max-width: 500px; margin: 0 auto 48px;
  position: relative; z-index: 1;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 100px; position: relative; z-index: 1; }

/* ═══════════ BANNER ═══════════ */
.banner-section { padding: 0 24px; max-width: 1200px; margin: 0 auto; padding-top: 32px; }
.banner-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.banner-card {
  position: relative; display: block; height: 200px;
  border-radius: 18px; overflow: hidden;
  background: var(--ink2) center/cover no-repeat;
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease);
  box-shadow: var(--sh-sm);
}
.banner-card:hover { transform: translateY(-4px) scale(1.015); box-shadow: var(--sh-lg); }
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(20,22,30,0.72) 0%, rgba(20,22,30,0.18) 60%, transparent 100%);
}
.banner-content { position: absolute; inset: 0; padding: 26px 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.banner-title { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.25; }
.banner-sub { font-size: 13.5px; color: rgba(255,255,255,0.75); margin-top: 6px; font-weight: 500; }

/* ═══════════ STATS ═══════════ */
/* 옛 솔리드 네이비 → 옅은 라일락 그라데이션 (light) */
.stats-strip {
  background: linear-gradient(135deg, #f4f1ff 0%, #ffffff 50%, #eaf6f3 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { padding: 30px 0; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-n { font-size: 34px; font-weight: 900; color: var(--black); letter-spacing: -0.04em; display: block; }
.stat-l { font-size: 12.5px; color: var(--gray); margin-top: 4px; letter-spacing: 0.04em; font-weight: 600; }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 112px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: 42px !important; font-weight: 900; letter-spacing: -0.04em; color: var(--black); line-height: 1.06; margin-bottom: 16px; }
.section-desc { font-size: 16px; color: var(--gray); max-width: 480px; line-height: 1.8; margin-bottom: 56px; }

/* 다크 영역 (legacy dt-on-dark — 다크 그라데이션이 명시적으로 적용된 곳에만) */
.dt-on-dark .section-title { color: #fff; }
.dt-on-dark .section-eyebrow { color: rgba(255,255,255,.6); }
.dt-on-dark .section-desc { color: rgba(255,255,255,.75); }

/* 2026.05 round-2 — cta/dash-hero/page-hero/sell-hero 가 light 배경으로 바뀜.
   섹션 타이틀/eyebrow/desc는 다시 ink 컬러 */
.cta-section .section-title,
.dash-hero .section-title,
.page-hero .section-title,
.sell-hero .section-title { color: var(--black); }
.cta-section .section-eyebrow { color: var(--accent); }
.cta-section .section-desc { color: var(--gray); }

/* ═══════════ CAT CARDS ═══════════ */
.cats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.cat-card {
  padding: 32px 28px; border: 1.5px solid var(--border);
  border-radius: var(--r-xl); background: var(--white);
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease), border-color 0.22s var(--ease);
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--sh-sm);
}
.cat-card:hover { border-color: var(--black); box-shadow: var(--sh-card); transform: translateY(-4px); }
.cat-card .ico { font-size: 30px; }
.cat-card .cn { font-size: 17px; font-weight: 800; color: var(--black); letter-spacing: -0.025em; }
.cat-card .cd { font-size: 13.5px; color: var(--gray); line-height: 1.75; }
.cat-card .cc { margin-top: auto; font-size: 12px; color: var(--gray-lt); font-weight: 700; letter-spacing: 0.04em; }

/* ═══════════ FEAT CARDS ═══════════ */
.feats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feat {
  background: var(--white); padding: 34px 30px; border-radius: var(--r-xl);
  border: 1.5px solid var(--border); display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease), border-color 0.22s var(--ease);
  box-shadow: var(--sh-sm);
}
.feat:hover { border-color: var(--black); box-shadow: var(--sh-card); transform: translateY(-4px); }
.feat-icon {
  width: 48px; height: 48px;
  background: var(--black);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(30,39,97,.22);
}
.feat-icon svg { display: block; color: #fff; }
.feat h3 { font-size: 17px; font-weight: 800; color: var(--black); letter-spacing: -0.025em; }
.feat p { font-size: 13.5px; color: var(--gray); line-height: 1.85; }

/* ═══════════ CTA SECTION ═══════════ */
/* 옛 어두운 네이비 → 밝은 라일락/민트 그라데이션 + 컬러 글로우 */
.cta-section {
  padding: 128px 24px;
  background: linear-gradient(135deg, #f4f1ff 0%, #ffffff 50%, #eaf6f3 100%);
  text-align: center; position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(212,167,44,.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(124,92,255,.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 45% at 50% 50%, rgba(20,200,163,.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section .eyebrow { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 800; position: relative; }
.cta-section h2 { font-size: clamp(30px,4.5vw,54px) !important; font-weight: 900; color: var(--black); letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 14px; position: relative; }
.cta-section h2 em { font-style: normal; color: var(--gray); }
.cta-section p { font-size: 15.5px; color: var(--gray); max-width: 420px; margin: 0 auto 40px; line-height: 1.8; position: relative; }
.cta-section .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ═══════════ FOOTER ═══════════ */
.footer { padding: 60px 24px 36px; background: var(--bg); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.footer-brand-name { font-size: 16px; font-weight: 900; color: var(--black); margin-bottom: 10px; letter-spacing: -0.03em; }
.footer-brand-desc { font-size: 13px; color: var(--gray-lt); line-height: 1.85; max-width: 220px; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: var(--gray-lt); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--gray); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--black); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-lt); letter-spacing: 0.02em; }

/* ═══════════ DASHBOARD ═══════════ */
.dash-wrap { padding-top: 72px; min-height: 100vh; background: var(--bg); }

.dash-hero {
  /* light gradient — design-tokens.css에서 var(--gradient-hero) 로 override됨 */
  background: linear-gradient(135deg, #f4f1ff 0%, #ffffff 45%, #eaf6f3 100%);
  color: var(--ink);
  padding: 52px 32px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.dash-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(212,167,44,.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(124,92,255,.10) 0%, transparent 60%);
  pointer-events: none;
}
.dash-hero-inner {
  max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.dash-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.dash-welcome { font-size: clamp(28px,4vw,44px) !important; font-weight: 900; color: var(--black); line-height: 1.1; letter-spacing: -0.04em; }
.dash-welcome em { font-style: normal; color: var(--gray); }
.dash-company { font-size: 14px; color: var(--gray); margin-top: 8px; font-weight: 500; }

.dash-kpis {
  display: flex;
  border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-sm);
}
.dash-kpi { padding: 20px 28px; text-align: center; border-right: 1px solid var(--border); }
.dash-kpi:last-child { border-right: none; }
.dk-n { font-size: 26px; font-weight: 900; color: var(--black); display: block; letter-spacing: -0.04em; }
.dk-l { font-size: 11.5px; color: var(--gray); margin-top: 3px; letter-spacing: 0.04em; white-space: nowrap; font-weight: 600; }

.dash-body { max-width: 1200px; margin: 0 auto; padding: 48px 32px; }
.dash-section { margin-bottom: 52px; }
.dash-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.ds-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-lt); margin-bottom: 5px; }
.ds-title { font-size: 22px; font-weight: 800; color: var(--black); letter-spacing: -0.03em; }

.gp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.gp-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease), border-color 0.22s var(--ease);
  box-shadow: var(--sh-sm);
}
.gp-card:hover { border-color: var(--primary-border, #c9d0ec); box-shadow: var(--sh-card); transform: translateY(-4px); }

.gp-card-top { display: flex; align-items: center; justify-content: space-between; }
.gp-ico { font-size: 24px; line-height: 1; }
.gp-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  padding: 4px 10px; border-radius: var(--r-full);
}
.gp-badge.active   { background: var(--green-bg);  color: var(--green); }
.gp-badge.urgent   { background: var(--red-bg);    color: var(--red); }
.gp-badge.upcoming { background: var(--orange-bg); color: var(--orange); }

.gp-name { font-size: 15px; font-weight: 700; color: var(--black); line-height: 1.3; letter-spacing: -0.02em; }
.gp-desc { font-size: 13px; color: var(--gray); line-height: 1.75; flex: 1; }
.gp-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }
.gp-deadline { font-size: 12px; color: var(--gray-lt); }
.gp-discount  { font-size: 13px; color: var(--black); font-weight: 800; }
.gp-btn { margin-top: 2px; }

@media(max-width:960px) {
  .dash-kpis { display: none; }
  .gp-grid { grid-template-columns: 1fr 1fr; }
  .dash-body { padding: 32px 18px; }
}
@media(max-width:640px) {
  .gp-grid { grid-template-columns: 1fr; }
  .dash-hero { padding: 38px 18px; }
}

/* ═══════════ MYPAGE ═══════════ */
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.mp-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 34px 30px;
  box-shadow: var(--sh-sm);
  transition: box-shadow 0.32s var(--ease), border-color 0.22s var(--ease);
}
.mp-card:hover { box-shadow: var(--sh-card); border-color: var(--border-md); }
.mp-card-head { margin-bottom: 24px; }
.mp-info-list { display: flex; flex-direction: column; }
.mp-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--border); gap: 16px;
}
.mp-info-row:last-child { border-bottom: none; }
.mp-info-label {
  font-size: 11px; font-weight: 700; color: var(--gray-lt);
  letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.mp-info-value { font-size: 14px; color: var(--ink); font-weight: 400; text-align: right; }
@media(max-width:760px) { .mp-grid { grid-template-columns: 1fr; } }

/* ═══════════ RESULT BOX ═══════════ */
.result-box { text-align: center; padding: 12px 0; }
.result-icon { font-size: 38px; margin-bottom: 18px; }
.result-pw-display {
  display: inline-block; padding: 14px 32px; margin: 18px 0 28px;
  background: var(--bg); border: 1.5px solid var(--border-md);
  border-radius: var(--r-md); font-family: monospace;
  font-size: 22px; font-weight: 800; color: var(--black); letter-spacing: 0.2em;
}

/* ═══════════ ANIMATIONS ═══════════ */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.u1 { animation: fadeUp .55s .04s both; }
.u2 { animation: fadeUp .55s .12s both; }
.u3 { animation: fadeUp .55s .20s both; }
.u4 { animation: fadeUp .55s .28s both; }
.u5 { animation: fadeUp .55s .36s both; }

/* ═══════════ ABOUT ═══════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-left .section-title { margin-bottom: 20px; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.about-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: background .2s, box-shadow .2s, transform .25s var(--ease);
  box-shadow: var(--sh-sm);
}
.about-stat:hover { background: var(--white); box-shadow: var(--sh-md); transform: translateY(-3px); }
.about-stat-value {
  font-size: 32px; font-weight: 900;
  color: var(--black); letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.about-stat-label {
  font-size: 13.5px; color: var(--gray); font-weight: 600;
}
@media(max-width:900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ═══════════ PRODUCTS ═══════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .36s var(--ease), box-shadow .36s var(--ease), border-color .22s var(--ease);
  box-shadow: var(--sh-sm);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px -4px rgba(20,22,30,.10), 0 22px 48px -16px rgba(20,22,30,.16);
  border-color: var(--border-md);
}
.product-img {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--bg); overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.product-badge {
  position: absolute; top: 14px; left: 14px;
  color: #fff; font-size: 11px; font-weight: 800;
  padding: 5px 11px; border-radius: 999px; letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(20,22,30,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-body { padding: 20px 22px; }
.product-name { font-size: 15.5px; font-weight: 800; color: var(--ink); margin-bottom: 7px; line-height: 1.4; letter-spacing: -0.02em; }
.product-desc {
  font-size: 13.5px; color: var(--gray); line-height: 1.65; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.product-deadline { font-size: 12.5px; color: var(--gray); font-weight: 600; }
.product-discount {
  font-size: 12.5px; font-weight: 800; color: var(--black);
  background: var(--accent-soft, #fbf2d3); padding: 4px 12px; border-radius: 999px; border: 1px solid #ecdfb0;
  letter-spacing: -0.01em;
}

/* ═══════════ HAMBURGER NAV ═══════════ */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 8px; margin-left: 8px;
  background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ RESPONSIVE ═══════════ */

/* ── 960px ── */
@media(max-width:960px){
  .auth-page   { grid-template-columns: 1fr; }
  .auth-left   { display: none; }
  .auth-right  { padding: 72px 24px; }
  .cats        { grid-template-columns: 1fr 1fr; }
  .feats       { grid-template-columns: 1fr; }
  .footer-top  { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item   { border-right: none; padding: 18px 0; }
  .cat-grid-form { grid-template-columns: 1fr 1fr; }
  .section     { padding: 72px 20px; }
  .section-title { font-size: 30px !important; }
  .gp-grid     { grid-template-columns: 1fr 1fr; }
}

/* ── 768px ── */
@media(max-width:768px){
  .section     { padding: 56px 18px; }
  .section-title { font-size: 26px !important; }
  .section-desc  { font-size: 14px; margin-bottom: 36px; }
  .cta-section { padding: 80px 20px; }
  .hero        { padding-left: 18px; padding-right: 18px; }
  .hero-cta    { flex-direction: column; align-items: center; margin-bottom: 60px; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .hero-desc   { font-size: 15px; }
  .dash-body   { padding: 32px 18px; }
  .footer      { padding: 48px 18px 28px; }
  .products-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 모바일 전용 Nav 패널 (JS로 생성) ── */
.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  height: calc(100vh - 56px);
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 298;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.nav-mobile-panel.open { display: block; }
.nm-item { border-bottom: 1px solid var(--border); }
.nm-group-label {
  font-size: 11px; font-weight: 800; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 16px 20px 6px; display: block;
}
.nm-link {
  display: block; padding: 14px 24px; min-height: 44px;
  font-size: 14.5px; color: var(--gray); text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.nm-link:active, .nm-link:hover { background: var(--bg); color: var(--ink); }
.nm-top-link {
  display: block; padding: 16px 20px; min-height: 48px;
  font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none;
  transition: background 0.12s;
}
.nm-top-link:active, .nm-top-link:hover { background: var(--bg); }

/* ── 640px ── 모바일 핵심 ── */
@media(max-width:640px){
  /* 햄버거 표시 */
  .nav-hamburger { display: flex; }
  .nav-links     { display: none; } /* 기존 데스크탑 nav 숨김 */
  .nav-actions   { gap: 6px; }
  .nav-actions .btn { font-size: 11px; padding: 6px 10px; }
  .nav-logo      { font-size: 24px; }
  .nav-logo .ring { width: 42px; height: 42px; }
  .nav-inner     { padding: 0 14px; gap: 8px; }

  /* 히어로 폰트 */
  .hero h1       { font-size: clamp(28px, 8vw, 44px) !important; }
  .hero-desc     { font-size: 14px; }
  .hero-cta      { margin-bottom: 48px; gap: 10px; }
  .hero-cta .btn { font-size: 14px; padding: 12px 20px; }

  /* 레이아웃 */
  .cats          { grid-template-columns: 1fr 1fr; }
  .footer-top    { grid-template-columns: 1fr; }
  .fields-row    { grid-template-columns: 1fr; }
  .cat-grid-form { grid-template-columns: 1fr 1fr; }
  .section       { padding: 48px 16px; }
  .section-title { font-size: 24px !important; }
  .stats-inner   { grid-template-columns: 1fr 1fr; }
  .stat-n        { font-size: 26px; }
  .about-grid    { grid-template-columns: 1fr; gap: 32px; }
  .about-stats   { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .cta-section   { padding: 64px 16px; }
  .cta-section h2 { font-size: clamp(24px, 6vw, 40px) !important; }
  .cta-section .btns { flex-direction: column; align-items: center; }
  .cta-section .btns .btn { width: 100%; max-width: 320px; }
  .mp-grid       { grid-template-columns: 1fr; }
  .gp-grid       { grid-template-columns: 1fr; }
  .dash-hero     { padding: 36px 16px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .feats         { grid-template-columns: 1fr; }
  .banner-strip  { grid-template-columns: 1fr; }

  /* 버튼 min-width 제거 */
  .btn           { min-width: 0; }

  /* toast 너비 */
  .toast         { white-space: normal; text-align: center; width: calc(100vw - 48px); max-width: 340px; }

  /* dash kpis wrap */
  .dash-kpis     { flex-wrap: wrap; }
  .dash-kpi      { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
}

/* ── 480px ── 소형 폰 ── */
@media(max-width:480px){
  .section-title { font-size: 22px !important; }
  .stats-inner   { grid-template-columns: 1fr 1fr; }
  .about-stats   { grid-template-columns: 1fr 1fr; }
  .about-stat-value { font-size: 24px; }
  .cat-card      { padding: 20px 16px; }
  .auth-right    { padding: 48px 16px; }
  /* cats: 2-col on 480, already set above */
  .cats          { grid-template-columns: 1fr 1fr; }
  /* hero font tight */
  .hero h1       { font-size: clamp(26px, 7.5vw, 40px) !important; letter-spacing: -0.03em; }
  /* nav logo even smaller */
  .nav-logo      { font-size: 20px; }
  .nav-logo .ring { width: 36px; height: 36px; }
}

/* ── 375px ── 최소 지원 폰 ── */
@media(max-width:390px){
  .nav-actions .btn { font-size: 10px; padding: 6px 8px; }
  .nav-logo      { font-size: 14px; gap: 7px; }
  .section-title { font-size: 20px !important; }
  .cats          { grid-template-columns: 1fr; }
  .stat-n        { font-size: 22px; }
}

/* ════════════════════════════════════════════
   📱 모바일 안전망 (Mobile Safety Net)
   • 4개 사이트 공통 — 안 짤리고 다 보이게
═══════════════════════════════════════════ */

/* 전역 안전 */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100vw; }
body { overflow-x: hidden; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
table { max-width: 100%; }
pre, code { overflow-x: auto; max-width: 100%; word-break: break-all; }

/* 가로 스크롤 헬퍼 (래퍼에 추가하면 안에 큰 테이블이 들어가도 OK) */
.table-wrap, .responsive-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* 긴 문자열 강제 줄바꿈 (URL, 영문 단어 등이 화면 밖으로 튀어나가는 것 방지) */
.break-word { word-break: break-word; overflow-wrap: anywhere; }

/* iOS Safari 입력 줌 방지 (16px 미만이면 입력 시 자동 확대됨) */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select, textarea {
    font-size: 16px !important;
    max-width: 100%;
  }
  button { max-width: 100%; }
}

/* ── 태블릿·작은 데스크탑 (≤768px) ────────── */
@media (max-width: 768px) {
  body { font-size: 15px; }

  /* 큰 헤딩 축소 */
  h1, .h1 { font-size: clamp(18px, 5vw, 24px) !important; line-height: 1.3; }
  h2, .h2 { font-size: clamp(16px, 4vw, 20px) !important; line-height: 1.35; }
  h3, .h3 { font-size: clamp(14px, 3.5vw, 17px) !important; }

  /* 흔한 컨테이너 패턴 — 좌우 패딩 축소 (max-width는 강제하지 않음) */
  .container, .wrap, [class$="-wrap"]:not([class*="dropzone"]):not([class*="chat"]) {
    padding-left: clamp(10px, 4vw, 16px);
    padding-right: clamp(10px, 4vw, 16px);
  }
  /* 모달·다이얼로그 풀폭 */
  dialog, .modal, [class*="-modal"] {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 12px auto !important;
  }

  /* 절대 위치 요소 보호 (뷰포트 밖으로 못 나가게) */
  [style*="position:absolute"], [style*="position: absolute"] {
    max-width: 100vw;
  }
}

/* ── 모바일 (≤480px) ────────────────────── */
@media (max-width: 480px) {
  body { font-size: 14.5px; }

  /* 컨테이너 패딩 더 축소 */
  .container, .wrap, [class$="-wrap"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* 카드 패딩 축소 */
  .card, [class$="-card"]:not([class*="lucide"]):not(.tp-card) {
    padding: 12px !important;
  }

  /* 그리드 → 1열 강제 (data-mobile-stack 속성 또는 .grid 같은 클래스가 있을 때만) */
  [data-mobile-stack="1"],
  [data-mobile-stack] {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }

  /* 헤딩 더 축소 */
  h1, .h1 { font-size: 20px !important; }
  h2, .h2 { font-size: 17px !important; }

  /* 버튼 풀폭 옵션 */
  .btn-block, .full-mobile { width: 100% !important; }
}

/* ── 매우 좁은 폰 (≤360px) ──────────────── */
@media (max-width: 360px) {
  body { font-size: 12.5px; }
  .container, .wrap { padding-left: 8px !important; padding-right: 8px !important; }
}

/* ════════════════════════════════════════════
   📐 2026.05 ROUND-2 — 표준 BREAKPOINTS
   1280 desktop · 1024 tablet-large · 768 tablet ·
   600 mobile-large · 480 mobile-small
═══════════════════════════════════════════ */

/* ── ≤1280px: 컨테이너 좁힘 (desktop tight) ── */
@media (max-width: 1280px) {
  .nav-inner, .footer-inner, .section-inner,
  .dash-hero-inner, .dash-body { max-width: 1100px; }
}

/* ── ≤1024px: tablet-large ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
  .footer-top  { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
  .nav-inner   { padding: 0 24px; }
  .section     { padding: 88px 22px; }
}

/* ── ≤768px: tablet (모바일 우선 시작) ── */
@media (max-width: 768px) {
  /* 터치 friendly — 버튼 min-height 44px */
  .btn, .dt-btn, .input-eye, .nav-hamburger { min-height: 44px; }
  .btn-sm { min-height: 38px; }
  /* input 한국어 가독성 (16px iOS 자동확대 방지는 dt 토큰에서 이미) */
  .input { height: 50px; }
  /* 그리드 — 1-2 컬럼 */
  .cats        { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feats       { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gp-grid     { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .banner-strip  { grid-template-columns: 1fr 1fr; }
  /* 패딩 — 좌우 줄임 */
  .nav-inner   { padding: 0 18px; }
  .section     { padding: 64px 18px; }
  .dash-body   { padding: 36px 18px; }
  /* 폰트 — 90% 스케일 */
  body          { font-size: 14.5px; }
  .section-title { font-size: 28px !important; }
  .section-desc  { font-size: 14.5px; margin-bottom: 36px; }
  /* image aspect-ratio 보존 (모바일에서 too tall 방지) */
  .product-img, .banner-card { aspect-ratio: 4 / 3; }
}

/* ── ≤600px: mobile-large ── */
@media (max-width: 600px) {
  /* 그리드 — 1 컬럼 위주 */
  .feats         { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .banner-strip  { grid-template-columns: 1fr; }
  /* 카드 패딩 */
  .gp-card, .mp-card, .cat-card, .feat { padding: 20px 18px !important; }
  /* hero 타이트 */
  .hero-cta .btn { min-height: 48px; }
  /* CTA 버튼 풀폭 */
  .cta-section .btns { flex-direction: column; align-items: center; }
  .cta-section .btns .btn { width: 100%; max-width: 320px; min-height: 48px; }
  /* 패딩 더 줄임 */
  .section     { padding: 48px 14px; }
  .section-title { font-size: 24px !important; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-n      { font-size: 26px; }
  /* product card 이미지 비율 */
  .product-img { aspect-ratio: 1 / 1; }
}

/* ── ≤480px: mobile-small ── */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .section     { padding: 40px 12px; }
  .section-title { font-size: 22px !important; }
  .cats, .products-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 56px 14px; }
  .hero-cta .btn, .btn-xl, .btn-lg { width: 100%; max-width: 320px; }
  /* 버튼 풀폭 옵션 */
  .nav-actions .btn { min-height: 38px; }
}
