:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #141a2b;
  --muted: #5b6478;
  --line: #e2e6ef;
  --brand: #1f4fd1;
  --brand-ink: #ffffff;
  --brand-soft: #e8eefc;
  --err: #c62828;
  --err-soft: #fdecec;
  --warn: #a15c00;
  --warn-soft: #fff4e0;
  --info: #2c5f8a;
  --info-soft: #e7f1fa;
  --ok: #1b7f4b;
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
code { font-family: var(--mono); font-size: .9em; background: var(--brand-soft); padding: 1px 5px; border-radius: 5px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(20, 26, 43, .04), 0 8px 24px rgba(20, 26, 43, .04); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; white-space: nowrap; }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--ink); }

.hero { padding: 40px 20px 24px; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; max-width: 820px; }
.lead { color: var(--muted); font-size: 17px; max-width: 820px; margin: 0 0 12px; }
.privacy { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ok); font-weight: 600; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

.tool { padding: 20px; margin-bottom: 40px; }
.input-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px dashed #b9c4dd; border-radius: 10px; padding: 18px; cursor: pointer; text-align: center; color: var(--muted); background: #fafbff; transition: border-color .15s, background .15s; }
.drop strong { color: var(--ink); }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.or { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0; }
textarea { width: 100%; min-height: 220px; resize: vertical; font: 13px/1.5 var(--mono); padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.file-name { color: var(--muted); font-size: 13px; }

.options { background: #fafbff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.options h2 { font-size: 15px; margin: 0 0 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.field input, .filters input, .filters select, .license input { font: inherit; color: var(--ink); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0; }
.checks { border: 0; padding: 0; margin: 10px 0 14px; }
.checks legend { font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 4px; }
.hint { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.center { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 14px/1 var(--sans); padding: 10px 14px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: #1a43b3; }
.btn.secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn.secondary:hover { background: var(--brand-soft); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: #b9c4dd; }
.btn.block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.locked::before { content: "🔒"; font-size: 12px; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; font: 12px var(--sans); }

.messages:empty { display: none; }
.messages { margin-top: 16px; display: grid; gap: 8px; }
.msg { padding: 10px 14px; border-radius: 8px; font-size: 14px; border: 1px solid; }
.msg.info { background: var(--info-soft); border-color: #c3d9ee; color: var(--info); }
.msg.warn { background: var(--warn-soft); border-color: #f2d6a5; color: var(--warn); }
.msg.err { background: var(--err-soft); border-color: #f3c0c0; color: var(--err); }
.msg a { font-weight: 600; }

.results { margin-top: 20px; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.stat b { display: block; font-size: 24px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.error b { color: var(--err); }
.stat.warning b { color: var(--warn); }
.stat.info b { color: var(--info); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 8px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.filters .grow { flex: 1 1 200px; }
.count { font-size: 13px; color: var(--muted); margin: 6px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.issues { width: 100%; border-collapse: collapse; font-size: 13px; }
.issues th { position: sticky; top: 0; background: #f0f3fa; text-align: left; font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.issues td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.issues tr:last-child td { border-bottom: 0; }
.issues td.txt { font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; word-break: break-word; min-width: 160px; max-width: 320px; }
.issues td.key { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; max-width: 160px; }
.issues td.msgcell { min-width: 240px; }
.issues .sugg { color: var(--muted); display: block; margin-top: 3px; }
.ws { background: #ffd8d8; color: var(--err); border-radius: 3px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 7px; border-radius: 999px; }
.badge.error { background: var(--err-soft); color: var(--err); }
.badge.warning { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--info-soft); color: var(--info); }
.check-name { white-space: nowrap; }
.empty { padding: 24px; text-align: center; color: var(--muted); }
#more { margin-top: 10px; }

.section-title { font-size: 24px; margin: 8px 0 16px; letter-spacing: -.01em; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.features article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.features h3 { margin: 0 0 6px; font-size: 16px; }
.features p { margin: 0; color: var(--muted); font-size: 14px; }
.note { color: var(--muted); font-size: 13px; margin: 14px 0 40px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 48px; max-width: 760px; }
.plan { padding: 20px 22px; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font-size: 30px; font-weight: 800; margin: 6px 0 10px; }
.plan ul { padding-left: 18px; margin: 0 0 16px; color: var(--muted); }
.plan.pro { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.license { margin-top: 16px; }
.license label { font-size: 13px; color: var(--muted); }
.license-row { display: flex; gap: 8px; margin-top: 6px; }
.license-row input { flex: 1; font-family: var(--mono); font-size: 13px; }
.license-status { font-size: 13px; min-height: 1.2em; margin: 8px 0 4px; }
.license-status.ok { color: var(--ok); font-weight: 600; }
.license-status.bad { color: var(--err); }
.pro-badge { display: inline-block; margin-left: 8px; background: var(--ok); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 20px 0 28px; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 6px 0; }
.ko-note { color: var(--ink); }

@media (max-width: 860px) {
  .input-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding-top: 28px; }
  .lead { font-size: 15px; }
  .tool { padding: 14px; }
  .filters .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.support-line { font-size: 13px; color: var(--muted, #666); margin: 10px 0 0; }

.refund-line { font-size: 13px; opacity: .85; margin: 4px 0 10px; }
