/* 블루스팟 공통: 색·글꼴 토큰, 기본 요소, 버튼, 칩, 입력칸 */
:root {
  --navy: #0C2340;
  --navy-2: #13325A;
  --blue: #307FE2;
  --sky: #71B0E8;
  --line-sbl: #C8102E;
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --fg: #0C2340;
  --muted: #5A6A80;
  --rule: #DDE5EF;
  --chip: #E9F1FC;
  --accent: #307FE2;
  --accent-fg: #FFFFFF;
  --ok: #1F8A5B;
  --ok-bg: #E3F4EC;
  --warn-bg: #FFF4DB;
  --warn-fg: #7A5300;
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07131F; --surface: #0E1F35; --fg: #E6EEF8; --muted: #9AB0C9; --rule: #1E3554;
    --chip: #15304F; --accent: #71B0E8; --accent-fg: #07131F; --ok: #5FD19B; --ok-bg: #12352A;
    --warn-bg: #3A2E10; --warn-fg: #F2CF7A; --line-sbl: #E8475F; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07131F; --surface: #0E1F35; --fg: #E6EEF8; --muted: #9AB0C9; --rule: #1E3554;
  --chip: #15304F; --accent: #71B0E8; --accent-fg: #07131F; --ok: #5FD19B; --ok-bg: #12352A;
  --warn-bg: #3A2E10; --warn-fg: #F2CF7A; --line-sbl: #E8475F; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* 로고 */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: inherit; text-decoration: none; }
.logo img { width: 26px; height: 26px; }
.logo b { color: var(--sky); }
.logo small { font-weight: 600; font-size: 11px; letter-spacing: 0.08em; padding: 1px 6px; border: 1px solid currentColor; border-radius: 4px; opacity: 0.8; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; font-weight: 700; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2569C2; }
.btn-line { border-color: var(--rule); background: var(--surface); color: var(--fg); }
.btn-line:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .c { color: var(--muted); font-size: 12px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .c { color: inherit; opacity: 0.75; }

/* 입력칸 */
label.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 9px 10px; min-width: 0; width: 100%; }
textarea { min-height: 84px; resize: vertical; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.agree input { width: auto; margin-top: 3px; }
.small { font-size: 12px; color: var(--muted); margin: 0; }
.num { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* 자주 묻는 질문 */
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0 0 14px; color: var(--muted); max-width: 65ch; }

/* 문의 정리 결과 (정식 접수 전 베타) */
.done { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--chip); }
.done pre { margin: 0; white-space: pre-wrap; font-family: var(--font); font-size: 13px; max-height: 240px; overflow: auto; background: var(--surface); padding: 10px; border-radius: 8px; }
