/* 싸인펜 공용 — DJI 쇼룸 스타일: 흰 바탕, 액션은 파랑 알약 하나, 보조는 1px 잉크 테두리 알약,
   주황은 작은 눈썹 글자만, 글자는 Open Sans(+Pretendard) 음수 자간, 사각 타일, 숯색 푸터. */
:root {
  --primary: #0070d5;
  --primary-press: #005fb5;
  --primary-tint: #deeafd;
  --link-blue: #1890ff;
  --on-primary: #ffffff;
  --tier-orange: #be4e04;
  --badge-orange: #fa8c16;
  --canvas: #ffffff;
  --canvas-soft: #f7f9fa;
  --panel: #f6f8f9;
  --fog: #f5f5f5;
  --announce: #fafafa;
  --media-black: #000000;
  --footer: #272727;
  --footer-pill: #383838;
  --footer-divider: #414141;
  --footer-link: #b3b3b3;
  --hairline: #f0f0f0;
  --divider: #e8e8e8;
  --card-border: #d9d9d9;
  --input-border: #d4d7d9;
  --control-border: #cccccc;
  --ink: #262626;
  --ink-2: #595959;
  --ink-3: #8c8c8c;
  --graphite: #3b3e40;
  --slate: #6c7073;
  --steel: #9fa3a6;
  --error: #f5222d;
  --ok: #1a7f37;
  --seal-red: #d0312d;
  --shadow-float: 0 8px 16px rgba(0, 0, 0, 0.1);
  --font: 'Open Sans', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: 'SF Mono', Menlo, Consolas, monospace;
  /* 서명인 색 8가지 — 자리·목록·드롭다운에서 같은 사람은 같은 색. */
  --p0: #0070d5; --p1: #be4e04; --p2: #1a7f37; --p3: #8e44ad; --p4: #c0392b; --p5: #00838f; --p6: #6d4c41; --p7: #c2185b;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 글자 크기 */
.t-display-xl { font-size: 48px; line-height: 1.08; letter-spacing: -1.44px; font-weight: 600; }
.t-display { font-size: 40px; line-height: 1.2; letter-spacing: -1.2px; font-weight: 600; }
.t-heading { font-size: 32px; line-height: 1.125; letter-spacing: -0.96px; font-weight: 600; }
.t-title { font-size: 24px; line-height: 1.17; letter-spacing: -0.72px; font-weight: 600; }
.t-sub { font-size: 20px; line-height: 1.2; letter-spacing: -0.6px; font-weight: 600; }
.t-ui { font-size: 14px; line-height: 1.43; letter-spacing: -0.28px; }
.t-cap { font-size: 12px; line-height: 1.33; letter-spacing: -0.24px; }
.eyebrow { color: var(--tier-orange); font-size: 12px; line-height: 1.33; letter-spacing: -0.24px; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.mono { font-family: var(--mono); letter-spacing: 0; }

/* 단추 — 모든 액션은 알약 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: 60px; border: 1px solid transparent;
  font-size: 15px; line-height: 1.25; letter-spacing: -0.3px; white-space: nowrap;
  background: var(--primary); color: var(--on-primary);
  transition: background-color .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover { background: var(--primary-press); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--fog); }
.btn.ghost { background: transparent; color: var(--on-primary); border-color: var(--on-primary); height: 32px; font-size: 14px; padding: 0 16px; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.tint { background: var(--primary-tint); color: var(--primary); }
.btn.tint:hover { background: #cfe0fb; }
.btn.plain { background: transparent; color: var(--ink-2); border-color: transparent; padding: 0 10px; }
.btn.plain:hover { background: var(--fog); color: var(--ink); }
.btn.danger { background: transparent; color: var(--error); border-color: #f3c3c6; }
.btn.danger:hover { background: #fff1f0; }
.btn.lg { height: 48px; padding: 0 30px; font-size: 16px; border-radius: 9999px; }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13.5px; }
.btn.block { width: 100%; }
.text-link { color: var(--primary); font-size: 15px; display: inline-flex; align-items: center; gap: 2px; }
.text-link::after { content: '›'; font-size: 1.15em; line-height: 1; margin-left: 2px; }
.text-link:hover { text-decoration: underline; }

/* 입력 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--ink-2); }
.input, select.input, textarea.input {
  height: 44px; padding: 0 14px; border: 1px solid var(--input-border); border-radius: 8px; background: #fff;
  font-size: 16px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 92px; padding: 11px 14px; line-height: 1.6; resize: vertical; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 112, 213, .12); }
.input::placeholder { color: #b0b4b7; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }

/* 카드 — 사각 모서리, 그림자 없음. 고를 수 있는 카드만 8px. */
.card { background: var(--canvas); border: 1px solid var(--divider); padding: 24px; }
.option-card { border: 1px solid var(--card-border); border-radius: 8px; padding: 24px; background: #fff; position: relative; }
.option-card.active { border: 2px solid var(--primary); padding: 23px; }
.option-badge { position: absolute; top: -1px; right: -1px; background: var(--badge-orange); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-bottom-left-radius: 8px; }
.option-card.active .option-badge { top: -2px; right: -2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 100px; font-size: 12.5px; letter-spacing: -0.2px; background: var(--fog); color: var(--ink-2); white-space: nowrap; }
.chip.blue { background: var(--primary-tint); color: var(--primary); }
.chip.green { background: #e6f4ea; color: var(--ok); }
.chip.orange { background: #fdf0e6; color: var(--tier-orange); }
.chip.red { background: #fff1f0; color: var(--error); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* 상단 알림띠·토스트·모달 */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 480px; }
.toast { background: var(--ink); color: #fff; font-size: 14.5px; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-float); animation: toastIn .22s ease-out; pointer-events: auto; text-align: center; }
.toast.err { background: #a8071a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .42); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .15s; }
.modal { background: #fff; width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow: auto; border-radius: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .22); animation: popIn .18s ease-out; }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 8px; }
.modal-head h3 { font-size: 20px; letter-spacing: -0.6px; }
.modal-body { padding: 8px 24px 20px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 24px 22px; flex-wrap: wrap; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.icon-btn:hover { background: var(--fog); color: var(--ink); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(0, 0, 0, .12); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 브랜드 표시 — 로고 후보가 정해지기 전 임시 글자 로고 */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; letter-spacing: -0.6px; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand .en { font-weight: 400; color: var(--ink-3); font-size: 13px; letter-spacing: -0.2px; }

@media (max-width: 768px) {
  .t-display-xl { font-size: 34px; letter-spacing: -1px; }
  .t-display { font-size: 28px; letter-spacing: -0.84px; }
  .t-heading { font-size: 24px; letter-spacing: -0.72px; }
  .modal-head { padding: 18px 18px 6px; }
  .modal-body { padding: 6px 18px 16px; }
  .modal-foot { padding: 12px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
