/* =========================================================
   달달페이 — 디자인 토큰
   컨셉: 신뢰감 있는 블루(파란) 톤 핀테크 서비스
   ========================================================= */
:root {
  /* Color */
  --ink: #10233f;          /* 본문/헤드라인 (네이비) */
  --ink-soft: #465268;     /* 보조 텍스트 */
  --paper: #f7f9fc;        /* 배경 (블루 화이트) */
  --panel: #ffffff;        /* 카드/패널 배경 */
  --hairline: #e7ecf3;     /* 구분선 */
  --brass: #2878f0;        /* 포인트: 블루 */
  --brass-dark: #1558bd;
  --brass-tint: #eef6ff;
  --teal: #2c6b5a;         /* 승인/완료 */
  --teal-tint: #e2ede9;
  --brick: #9c3f3a;        /* 반려/오류 */
  --brick-tint: #f3e3e1;
  --amber: #b9862c;        /* 진행중 */
  --amber-tint: #f4e9d6;

  /* Hero gradient (하늘색 계열) */
  --grad-start: #f7fbff;
  --grad-end: #e8f2ff;

  /* 하단 정보 푸터 (다크 네이비 톤) */
  --footer-bg: #101a2a;
  --footer-text: #9ba8ba;
  --footer-heading: #ffffff;
  --footer-line: #253247;

  /* Type */
  --font-display: Georgia, 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Malgun Gothic', sans-serif;
  --font-mono: 'SF Mono', 'Consolas', 'Menlo', 'D2Coding', monospace;

  --radius: 3px;
  --shadow-card: 0 1px 2px rgba(16, 35, 63, 0.06), 0 6px 20px rgba(16, 35, 63, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 헤더 ---------- */
.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand .seal {
  width: 26px;
  height: 26px;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: #fdfcf8;
}
.btn-primary:hover { background: #1c2c4a; }
.btn-brass {
  background: var(--brass);
  color: #fff;
}
.btn-brass:hover { background: var(--brass-dark); }
.btn-ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 카드/패널 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ---------- 폼 ---------- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.field .hint {
  font-size: 12.5px;
  color: #7a8394;
  margin-top: 6px;
}
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], textarea, select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-tint);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seg-toggle {
  display: flex;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.seg-btn {
  flex: 1;
  padding: 12px 10px;
  background: #fff;
  border: none;
  border-right: 1px solid var(--hairline);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.seg-btn:last-child { border-right: none; }
.seg-btn.active { background: var(--ink); color: #fff; }

.file-drop {
  border: 1.5px dashed var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--ink-soft);
  cursor: pointer;
  background: #fbfbf8;
}
.file-drop.has-file { border-color: var(--brass); background: var(--brass-tint); color: var(--ink); }
.file-drop input { display: none; }

/* ---------- 상태 배지 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}
.badge-submitted { background: var(--hairline); color: var(--ink-soft); }
.badge-reviewing { background: var(--amber-tint); color: var(--amber); }
.badge-approved { background: var(--teal-tint); color: var(--teal); }
.badge-rejected { background: var(--brick-tint); color: var(--brick); }
.badge-transferred { background: var(--ink); color: #fff; }

/* ---------- 유틸 ---------- */
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
}
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error { background: var(--brick-tint); color: var(--brick); }
.alert-info { background: var(--brass-tint); color: var(--brass-dark); }

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 80px;
  padding: 48px 0 32px;
  font-size: 13px;
}
.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--footer-line);
  margin-bottom: 20px;
}
.site-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--footer-heading);
  letter-spacing: 0.02em;
}
.site-footer .footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
}
.site-footer .footer-links a {
  color: var(--footer-heading);
  text-decoration: none;
}
.site-footer .footer-links a:hover { color: var(--brass); }
.site-footer .footer-info {
  line-height: 1.9;
}
.site-footer .footer-info b { color: #c9c6d6; font-weight: 500; }
.site-footer .footer-copyright {
  margin-top: 20px;
  font-size: 12px;
  color: #716d84;
}
@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .nav-links { gap: 10px; font-size: 12px; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
