:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --soft: #f8fafc;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --success: #067647;
  --success-soft: #ecfdf3;
  --danger: #b42318;
  --shadow: 0 18px 55px rgba(16, 24, 40, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(860px, calc(100% - 40px)); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(228,231,236,.85); background: rgba(255,255,255,.88); backdrop-filter: blur(16px); }
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: linear-gradient(145deg, #3b82f6, #1d4ed8); border-radius: 10px; box-shadow: 0 8px 18px rgba(37,99,235,.25); }
.nav { display: flex; gap: 24px; color: #475467; font-size: 14px; font-weight: 650; }
.nav a:hover { color: var(--brand); }

.hero { overflow: hidden; padding: 78px 0 118px; background: radial-gradient(circle at 80% 15%, rgba(147,197,253,.28), transparent 34%), linear-gradient(180deg,#f8fbff 0%,#fff 100%); }
.hero-inner { text-align: center; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.hero h1 { max-width: 790px; margin: 0 auto; font-size: clamp(40px, 7vw, 66px); line-height: 1.12; letter-spacing: -.055em; }
.hero h1 span { color: var(--brand); }
.hero-copy { max-width: 630px; margin: 24px auto 0; color: var(--muted); font-size: 18px; }
.trust-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: #344054; font-size: 14px; font-weight: 650; }
.trust-list span::first-letter { color: var(--success); }

.tool-section { margin-top: -72px; padding-bottom: 92px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.tool-card, .side-card { border: 1px solid var(--line); background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.tool-card { padding: 28px; }
.tool-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.tool-heading h2, .content-section h2, .faq-section h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.text-button { border: 0; background: none; color: var(--muted); font-size: 14px; }
.text-button:hover { color: var(--danger); }
.drop-zone { display: flex; min-height: 210px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 28px; border: 2px dashed #b8c6dc; border-radius: 18px; background: #fbfdff; text-align: center; transition: .18s ease; outline: none; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.is-dragging { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.drop-zone strong { font-size: 18px; }
.drop-zone span { color: var(--muted); font-size: 14px; }
.drop-zone small { margin-top: 6px; color: #98a2b3; }
.upload-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; color: var(--brand); background: #dbeafe; border-radius: 15px; }

.settings-panel { display: grid; grid-template-columns: 1.15fr 1fr .9fr; gap: 16px; margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.field label, .check-field { font-size: 13px; font-weight: 700; color: #344054; }
.field select, .field input[type="number"] { width: 100%; height: 44px; margin-top: 7px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 10px; color: var(--ink); background: white; outline: none; }
.field select:focus, .field input[type="number"]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.label-row output { padding: 1px 8px; border-radius: 999px; color: var(--brand); background: #dbeafe; font-size: 12px; font-weight: 800; }
.field input[type="range"] { width: 100%; margin-top: 15px; accent-color: var(--brand); }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 40px !important; }
.input-suffix span { position: absolute; right: 12px; top: 18px; color: var(--muted); font-size: 13px; }
.check-field { grid-column: 1/-1; display: inline-flex; align-items: center; gap: 9px; width: max-content; }
.check-field input { width: 17px; height: 17px; accent-color: var(--brand); }

.action-row { display: flex; gap: 12px; margin-top: 18px; }
.primary-button, .secondary-button, .download-button, .remove-button { border-radius: 11px; font-weight: 750; transition: .15s ease; }
.primary-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 0; color: white; background: var(--brand); }
.primary-button:hover:not(:disabled) { background: var(--brand-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; }
.button-count { min-width: 24px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 12px; }
.secondary-button { min-height: 50px; padding: 0 18px; border: 1px solid #b8c6dc; color: #344054; background: white; }
.secondary-button:hover { border-color: var(--brand); color: var(--brand); }
.status-message { min-height: 24px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.status-message.is-error { color: var(--danger); }
.status-message.is-success { color: var(--success); }

.file-list { display: grid; gap: 12px; margin-top: 8px; }
.file-item { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.file-thumb { width: 76px; height: 64px; object-fit: cover; border-radius: 9px; background: #f2f4f7; }
.file-info { min-width: 0; }
.file-name { overflow: hidden; margin: 0; font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--muted); font-size: 12px; }
.file-result { color: var(--success); font-weight: 700; }
.file-actions { display: flex; gap: 8px; }
.download-button, .remove-button { min-height: 38px; padding: 0 12px; font-size: 13px; }
.download-button { border: 0; color: white; background: var(--ink); }
.download-button:hover { background: #344054; }
.remove-button { border: 1px solid var(--line); color: var(--muted); background: white; }
.remove-button:hover { border-color: #fda29b; color: var(--danger); }
.progress-bar { overflow: hidden; height: 4px; margin-top: 8px; border-radius: 999px; background: #eaecf0; }
.progress-bar span { display: block; width: 0; height: 100%; background: var(--brand); transition: width .25s ease; }

.side-card { position: sticky; top: 92px; padding: 28px; }
.privacy-badge { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--success-soft); font-size: 22px; }
.side-card h2 { margin: 18px 0 12px; font-size: 24px; line-height: 1.35; letter-spacing: -.035em; }
.side-card p { margin: 0; color: var(--muted); font-size: 14px; }
.side-card ul { display: grid; gap: 8px; margin: 20px 0; padding: 0; list-style: none; color: #344054; font-size: 13px; }
.side-card li::before { content: "✓"; margin-right: 7px; color: var(--success); font-weight: 800; }
.side-card a { color: var(--brand); font-size: 13px; font-weight: 750; }

.content-section { padding: 92px 0; background: var(--soft); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 28px; }
.steps-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.steps-grid article > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--brand); background: #dbeafe; font-weight: 850; }
.steps-grid h3 { margin: 15px 0 6px; font-size: 17px; }
.steps-grid p, .article-copy p { margin: 0; color: var(--muted); font-size: 15px; }
.article-copy { margin-top: 62px; }
.article-copy h2 { margin: 38px 0 14px; }
.article-copy p + p { margin-top: 12px; }
.recommendation-table { overflow: hidden; margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.table-row { display: grid; grid-template-columns: 1.4fr .8fr 1fr; }
.table-row + .table-row { border-top: 1px solid var(--line); }
.table-row span { padding: 14px 16px; font-size: 14px; }
.table-head { background: #f2f4f7; font-weight: 800; }

.faq-section { padding: 92px 0; }
.faq-section h2 { margin-bottom: 28px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 20px 38px 20px 0; cursor: pointer; list-style: none; font-weight: 750; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 15px; color: var(--muted); font-size: 24px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: -5px 0 22px; color: var(--muted); font-size: 15px; }

.site-footer { padding: 48px 0 28px; color: #d0d5dd; background: var(--ink); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-inner strong { color: white; font-size: 18px; }
.footer-inner p { margin: 4px 0 0; font-size: 13px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: start; font-size: 13px; }
.footer-inner a:hover { color: white; }
.copyright { margin-top: 34px; padding-top: 20px; border-top: 1px solid #344054; color: #98a2b3; font-size: 12px; }

.legal-page { min-height: 70vh; padding: 70px 0 100px; }
.legal-page h1 { margin: 0 0 10px; font-size: 40px; letter-spacing: -.045em; }
.legal-page .updated { color: var(--muted); font-size: 14px; }
.legal-content { margin-top: 42px; }
.legal-content h2 { margin: 34px 0 10px; font-size: 21px; }
.legal-content p, .legal-content li { color: #475467; font-size: 15px; }

@media (max-width: 900px) {
  .tool-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .settings-panel { grid-template-columns: 1fr 1fr; }
  .field:first-child { grid-column: 1/-1; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 28px, 1160px); }
  .nav a:not(:last-child) { display: none; }
  .hero { padding: 58px 0 104px; }
  .hero h1 { font-size: 39px; }
  .hero-copy { font-size: 16px; }
  .tool-card { padding: 18px; border-radius: 18px; }
  .drop-zone { min-height: 190px; padding: 20px 12px; }
  .settings-panel { grid-template-columns: 1fr; padding: 16px; }
  .field:first-child, .check-field { grid-column: auto; }
  .action-row { flex-direction: column; }
  .file-item { grid-template-columns: 62px minmax(0,1fr); }
  .file-thumb { width: 62px; height: 58px; }
  .file-actions { grid-column: 1/-1; }
  .file-actions button { flex: 1; }
  .table-row { grid-template-columns: 1.2fr .8fr; }
  .table-row span:last-child { grid-column: 1/-1; padding-top: 0; color: var(--muted); }
  .table-head span:last-child { display: none; }
  .footer-inner { flex-direction: column; }
}
