/* 유즈킷 — 신분증·통장사본 개인정보 가리기
   외부 요청 없이 동작하는 자체 완결형 스타일시트
   (외부 폰트·아이콘·스크립트를 불러오지 않습니다) */

:root {
  --bg: #f5f7fc;
  --bg-soft: #eef1f9;
  --card: #ffffff;
  --ink: #141b2d;
  --ink-2: #38415a;
  --muted: #68718a;
  --line: #e2e6f0;
  --line-strong: #cdd4e4;
  --brand: #3b5bfd;
  --brand-dark: #2b45d6;
  --brand-soft: #eef1ff;
  --ok: #0a8f52;
  --warn: #b45309;
  --danger: #c2413b;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 32px -18px rgba(16, 24, 40, .28);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
          "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.65rem, 4.2vw, 2.5rem); }
h2 { font-size: clamp(1.24rem, 2.6vw, 1.66rem); margin-top: 0; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
kbd {
  border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 5px; background: #fff; color: var(--ink-2);
}
img, canvas, svg { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 0; z-index: 100;
}
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; line-height: 1.55; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt strong { font-size: 1rem; letter-spacing: -.02em; }
.brand-txt span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.head-nav { display: flex; gap: 18px; margin-left: auto; }
.head-nav a { color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.head-nav a:hover { color: var(--brand); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: .93rem; font-weight: 700;
  padding: 10px 16px; border-radius: 10px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  transition: transform .06s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .48; cursor: not-allowed; }
.btn-primary {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: transparent;
  box-shadow: 0 8px 18px -10px rgba(59, 91, 253, .85);
}
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-soft { --btn-bg: var(--brand-soft); --btn-fg: var(--brand-dark); --btn-bd: #dfe4ff; }
.btn-soft:hover:not(:disabled) { background: #e5eaff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-bd: transparent; }
.btn-ghost:hover:not(:disabled) { background: rgba(20, 27, 45, .06); }
.btn-sm { padding: 6px 11px; font-size: .82rem; border-radius: 9px; }
.btn-lg { padding: 14px 20px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 22px; }
.eyebrow {
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 10px;
}
.h1-sub {
  display: block; margin-top: 8px; font-size: .48em; font-weight: 600;
  letter-spacing: -.01em; color: var(--muted);
}
.lead { max-width: 780px; font-size: 1.03rem; color: var(--ink-2); }
.lead strong { color: var(--ink); }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.hero-badges li {
  font-size: .8rem; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.hero-badges li::before { content: "✓"; color: var(--ok); margin-right: 6px; font-weight: 800; }

/* ---------- tool ---------- */
.tool { padding-bottom: 8px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 20px; align-items: start; }
.tool-main { min-width: 0; }

.dropzone {
  background: var(--card); border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  padding: 30px 22px; text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, padding .15s ease;
  box-shadow: var(--shadow-sm);
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--brand); background: #fbfcff; outline: none; }
.dropzone.is-drag { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(59, 91, 253, .12); }
.dropzone.is-compact {
  padding: 11px 14px; display: flex; align-items: center;
  gap: 8px 14px; flex-wrap: wrap; text-align: left;
}
.dropzone.is-compact .dz-icon { margin: 0; }
.dropzone.is-compact .dz-icon svg { width: 22px; height: 22px; }
.dropzone.is-compact .dz-title { margin: 0; font-size: .95rem; }
.dropzone.is-compact .dz-sub { margin: 0; flex: 1 1 12ch; min-width: 0; font-size: .8rem; }
.dropzone.is-compact .dz-actions { margin: 0 0 0 auto; }
.dz-icon { color: var(--brand); margin-bottom: 6px; }
.dz-title { font-size: 1.08rem; font-weight: 800; margin: 0 0 4px; }
.dz-sub { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.dz-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.dz-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.dz-inline .btn { flex: 0 0 auto; }

/* 이미지 탭 */
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; margin: 0; }
.thumb {
  flex: 0 0 auto; position: relative; padding: 3px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; line-height: 0;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.thumb canvas { display: block; border-radius: 7px; }
.thumb:hover { border-color: var(--line-strong); }
.thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(59, 91, 253, .18); }

/* 편집기 */
.editor { margin-top: 12px; }
.editor-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 12px; box-shadow: var(--shadow-sm);
}
.editor-bar .file-name { font-size: .9rem; font-weight: 700; margin: 0; max-width: 36ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-bar .file-sub { font-size: .76rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.editor-tools { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.editor-tools .btn { padding: 6px 9px; font-size: .8rem; }

.stage-wrap {
  margin-top: 12px; padding: 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background:
    repeating-conic-gradient(#e9edf7 0 25%, #f4f6fc 0 50%) 50% / 18px 18px;
  display: flex; justify-content: center; align-items: center; min-height: 240px;
}
.stage { position: relative; line-height: 0; touch-action: none; cursor: crosshair; }
.stage canvas { display: block; max-width: 100%; max-height: 62vh; border-radius: 4px;
  box-shadow: 0 10px 26px -16px rgba(16, 24, 40, .5); background: #fff; }
.overlay { position: absolute; inset: 0; }

.pm-box {
  position: absolute; border: 1.5px solid rgba(59, 91, 253, .95);
  background: rgba(59, 91, 253, .1); border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .65) inset;
}
.pm-box.is-selected { border-color: #ff8a00; background: rgba(255, 138, 0, .14); z-index: 2; }
.pm-box-pending { border-style: dashed; background: rgba(59, 91, 253, .08); pointer-events: none; }
.pm-box-label {
  position: absolute; left: -1px; top: -1px; transform: translateY(-100%);
  font-size: .66rem; font-weight: 800; letter-spacing: .01em; line-height: 1.4;
  background: var(--brand); color: #fff; border-radius: 4px 4px 4px 0;
  padding: 1px 5px; white-space: nowrap; pointer-events: none;
}
.pm-box.is-selected .pm-box-label { background: #ff8a00; }
.pm-handle {
  position: absolute; width: 11px; height: 11px; background: #fff; border: 1.6px solid var(--brand);
  border-radius: 2px; display: none;
}
.pm-box.is-selected .pm-handle { display: block; }
.pm-handle-nw { left: -6px; top: -6px; cursor: nwse-resize; }
.pm-handle-ne { right: -6px; top: -6px; cursor: nesw-resize; }
.pm-handle-sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.pm-handle-se { right: -6px; bottom: -6px; cursor: nwse-resize; }

.meta-note {
  margin: 10px 0 0; font-size: .8rem; line-height: 1.55;
  background: #fff8ec; border: 1px solid #f5dfb8; color: #7c5310;
  border-radius: 10px; padding: 9px 12px;
}
.meta-note strong { color: #6b4307; }

.empty-state { margin-top: 16px; text-align: center; color: var(--muted); font-size: .88rem; }
.empty-state .empty-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.empty-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 12px; text-align: left; box-shadow: var(--shadow-sm);
}
.empty-card b { display: block; font-size: .86rem; color: var(--ink); margin-bottom: 2px; }
.empty-card span { font-size: .78rem; }

/* ---------- panel ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); position: sticky; top: 76px;
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.panel-head h2 { font-size: 1.02rem; margin: 0; }
.panel-head span { font-size: .74rem; color: var(--muted); font-weight: 700; }

.field { border: 0; padding: 0; margin: 0 0 16px; }
.field + .field { border-top: 1px solid var(--line); padding-top: 14px; }
.field > legend {
  padding: 0; font-size: .78rem; font-weight: 800; color: var(--ink-2);
  letter-spacing: .01em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.legend-val {
  font-weight: 700; color: var(--brand); background: var(--brand-soft);
  border-radius: 6px; padding: 0 6px; font-variant-numeric: tabular-nums; font-size: .74rem;
}
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.preset {
  text-align: left; font: inherit; cursor: pointer; font-size: .8rem; font-weight: 700;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 7px 8px; line-height: 1.3;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.preset span { display: block; font-size: .66rem; font-weight: 600; color: var(--muted); margin-top: 1px; }
.preset:hover { border-color: var(--brand); background: #fbfcff; color: var(--brand-dark); }
.preset.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--bg-soft); border-radius: 10px; padding: 3px; }
.seg button {
  font: inherit; font-size: .79rem; font-weight: 700; color: var(--ink-2);
  background: transparent; border: 0; border-radius: 8px; padding: 7px 3px; cursor: pointer;
}
.seg button.is-active { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow-sm); }

input[type="text"], input[type="number"], select {
  width: 100%; font: inherit; font-size: .88rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 8px 10px; transition: border-color .12s ease, box-shadow .12s ease;
}
input[type="text"]:focus, input[type="number"]:focus, select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59, 91, 253, .14);
}
input[type="range"] { width: 100%; accent-color: var(--brand); margin: 2px 0 0; }
input[type="checkbox"] { accent-color: var(--brand); }

.field-sub { margin-top: 10px; }
.field-sub:first-child { margin-top: 0; }
.range-scale { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); margin-top: 1px; }
.help { font-size: .73rem; color: var(--muted); margin: 7px 0 0; line-height: 1.5; }
.help strong { color: var(--ink-2); }
.color-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.color-chip {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-strong);
  cursor: pointer; padding: 0; position: relative;
}
.color-chip.is-active { box-shadow: 0 0 0 2px var(--brand), inset 0 0 0 1px #fff; }
.color-chip[data-color="#000000"] { background: #000; }
.color-chip[data-color="#ffffff"] { background: #fff; }
.color-chip[data-color="#94a3b8"] { background: #94a3b8; }

.check-line { display: flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.chip {
  font: inherit; font-size: .74rem; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }

.save-row { display: grid; gap: 8px; }
.save-row .btn-primary { padding: 13px 16px; font-size: .98rem; }
.privacy-note { font-size: .72rem; color: var(--muted); text-align: center; margin: 8px 0 0; line-height: 1.5; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 60; max-width: min(92vw, 560px);
  background: #101828; color: #fff; font-size: .86rem; font-weight: 600;
  border-radius: 10px; padding: 11px 16px; box-shadow: 0 12px 30px -12px rgba(16, 24, 40, .7);
}
.toast.is-error { background: #8f2323; }

/* ---------- sections ---------- */
.section { padding: 32px 0; }
.section-lead { max-width: 820px; color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.step p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; margin-bottom: 10px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: .85rem;
}
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cards-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.mini-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.mini-card h3 { margin-bottom: 4px; }
.mini-card p { margin: 0; font-size: .87rem; color: var(--ink-2); }
.mini-card .tag {
  display: inline-block; font-size: .68rem; font-weight: 800; color: var(--brand-dark);
  background: var(--brand-soft); border-radius: 6px; padding: 1px 6px; margin-bottom: 6px;
}

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 620px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-size: .77rem; color: var(--ink-2); white-space: nowrap; }
tbody th { font-weight: 700; color: var(--ink); width: 20%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td b { color: var(--brand-dark); }

.callout {
  background: var(--brand-soft); border: 1px solid #dfe4ff; border-radius: 12px;
  padding: 13px 16px; font-size: .88rem; color: var(--brand-dark); margin: 16px 0 6px;
}
.callout strong { color: var(--brand-dark); }
.warn-box {
  background: #fff8ec; border: 1px solid #f5dfb8; border-radius: 12px;
  padding: 13px 16px; font-size: .88rem; color: #7c5310; margin: 14px 0 6px;
}

.faq { display: grid; gap: 8px; max-width: 920px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 16px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: .93rem; padding: 13px 0;
  list-style: none; position: relative; padding-right: 26px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-size: 1.2rem; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: .89rem; color: var(--ink-2); margin: 0 0 13px; }
.faq details ul { margin: 0 0 13px; padding-left: 20px; font-size: .88rem; color: var(--ink-2); }

/* ---------- 문서 페이지 (privacy) ---------- */
.doc { max-width: 860px; margin: 0 auto; padding: 34px 20px 44px; }
.doc h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.doc h2 { font-size: 1.1rem; margin: 28px 0 8px; }
.doc p, .doc li { font-size: .93rem; color: var(--ink-2); }
.doc ul { padding-left: 20px; margin: 0 0 1em; }
.doc li { margin-bottom: 5px; }
.doc .callout { margin-top: 18px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: #fff; margin-top: 26px; padding: 24px 0 32px; }
.foot-in { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.foot-in nav { display: flex; gap: 16px; font-size: .85rem; flex-wrap: wrap; }
.foot-brand { font-weight: 800; }
.site-foot p { margin: 0; font-size: .82rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .tool-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .head-nav { display: none; }
}
@media (max-width: 620px) {
  .hero { padding: 24px 0 14px; }
  .dropzone { padding: 22px 14px; }
  .dropzone.is-compact { flex-wrap: wrap; }
  .dz-inline { margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .empty-state .empty-cards { grid-template-columns: 1fr; }
  .presets { grid-template-columns: 1fr 1fr; }
  .panel { padding: 14px; }
  .stage-wrap { padding: 8px; }
  th, td { padding: 9px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
