/* 카노아 공용 디자인: 홈페이지와 견적함(관리자)이 같이 쓴다.
   색·글꼴·버튼·입력칸 모양은 여기서만 바꾼다. */
:root {
  --bg: #F4F1EC;
  --surface: #FBFAF6;
  --surface-2: #ECE8E0;
  --ink: #23211E;
  --muted: #5E5A54;
  --faint: #8A8378;
  --line: #DDD7CC;
  --line-strong: #C4BDB0;
  --accent: #55644F;
  --accent-ink: #F4F1EC;
  --accent-soft: #E3E7DD;
  --seal: #A6402F;
  --seal-soft: #F3E3DE;
  --ok: #3F6B45;
  --ok-soft: #E1EBDF;
  --wait: #8A5A12;
  --wait-soft: #F3E8D3;
  --focus: #55644F;
  --night: #23211E;      /* 홈페이지 '진행 방식' 같은 어두운 띠 */
  --night-ink: #F4F1EC;
  --night-muted: #D8D3C8;
  --placeholder: #E2DDD3;
  --placeholder-2: #D9D4C9;
  --lead: #3B3833;
  --font-ui: "NanumSquare", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-display: "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 8px;
  --gutter: clamp(16px, 6vw, 96px);
  color-scheme: light;
}
/* 다크 모드는 관리자 화면에서만 쓴다 (홈페이지는 data-theme="light" 고정) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #191816; --surface: #211F1C; --surface-2: #2A2824; --ink: #EEEAE3; --muted: #A8A196; --faint: #7F796F;
    --line: #36332E; --line-strong: #4A463F; --accent: #A9B99F; --accent-ink: #191816; --accent-soft: #2C3329;
    --seal: #E58C7A; --seal-soft: #3A2420; --ok: #9CC79F; --ok-soft: #22301F; --wait: #E0B46A; --wait-soft: #352A16;
    --focus: #A9B99F; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #191816; --surface: #211F1C; --surface-2: #2A2824; --ink: #EEEAE3; --muted: #A8A196; --faint: #7F796F;
  --line: #36332E; --line-strong: #4A463F; --accent: #A9B99F; --accent-ink: #191816; --accent-soft: #2C3329;
  --seal: #E58C7A; --seal-soft: #3A2420; --ok: #9CC79F; --ok-soft: #22301F; --wait: #E0B46A; --wait-soft: #352A16;
  --focus: #A9B99F; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; color: var(--ink); font-family: var(--font-ui); line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* 상호 표기 */
.wordmark { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }

/* 버튼: 둥근 알약 모양. 주 버튼은 먹색, 마우스를 올리면 올리브 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.lg { min-height: 52px; padding: 0 30px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: default; }

/* 입력칸 */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label { font-size: 13px; font-weight: 500; color: var(--muted); }
.in { width: 100%; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); }
textarea.in { min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.in:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-soft); }
.in::placeholder { color: var(--faint); }

/* 상태 표시: 작은 점 + 글자 (면 전체를 칠하지 않는다) */
.dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.new { color: var(--seal); }
.dot.wait { color: var(--wait); }
.dot.ok { color: var(--ok); }

/* 홈페이지·QR 소개 공용: 라이트/다크 전환 버튼 */
.site-theme { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.site-theme:hover { background: var(--surface-2); }
.site-theme svg { width: 18px; height: 18px; }
.site-theme .moon { display: none; }
:root[data-theme="dark"] .site-theme .sun { display: none; }
:root[data-theme="dark"] .site-theme .moon { display: block; }
/* 다크에서 쓰는 홈페이지 보조 색 */
:root[data-theme="dark"] { --placeholder: #2A2824; --placeholder-2: #302E29; --night: #0F0E0D; --lead: #D0CAC0; }

/* 로고 자리 (src/assets/logo.svg 를 바꾸면 전체 반영) */
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 28px; height: 28px; flex: none; display: block; border-radius: 7px; }
.logo-mark.sm { width: 20px; height: 20px; border-radius: 5px; }
:root[data-theme="dark"] .logo-mark { box-shadow: 0 0 0 1px var(--line-strong); }

/* 워드마크 로고 (src/assets/logo-kanoax.png). 다크에서는 밝게 뒤집는다 */
.logo-word { height: 18px; width: auto; display: block; }
.logo-word.sm { height: 14px; }
.logo-qr { font-weight: 800; letter-spacing: .02em; }
:root[data-theme="dark"] .logo-word { filter: brightness(0) invert(.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-word { filter: brightness(0) invert(.92); } }
/* 스크롤바: 얇고 은은하게 (크롬·엣지·사파리·파이어폭스) */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--ink) 38%, transparent); }

/* 카카오톡 문의: 화면 오른쪽 아래에 떠 있는 버튼 */
.kakao-float { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #FEE500; color: #191600; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 10px 24px -8px rgba(0,0,0,.28); transition: transform .15s ease, box-shadow .15s ease; }
.kakao-float:hover { transform: translateY(-2px); color: #191600; box-shadow: 0 4px 10px rgba(0,0,0,.14), 0 16px 30px -10px rgba(0,0,0,.32); }
.kakao-float svg { width: 26px; height: 26px; }
.kakao-float .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .kakao-float { transition: none; } .kakao-float:hover { transform: none; } }
.site-theme { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
