:root {
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: #17312d;
  background: #f4f6f1;
  font-synthesis: none;
  --ink: #17312d;
  --muted: #6d7c78;
  --green: #17695c;
  --green-dark: #0e5449;
  --lime: #cbe759;
  --line: #dfe5dc;
  --paper: #fffef9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f4f6f1; color: var(--ink); }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  height: 76px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 254, 249, .92);
  border-bottom: 1px solid rgba(23, 49, 45, .09);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 700 16px/1 Arial, sans-serif; letter-spacing: .04em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); border-radius: 9px 9px 9px 2px; color: white; transform: rotate(-3deg); }
.brand-mark span { transform: rotate(3deg); font-size: 17px; }
.header-note { display: flex; align-items: center; gap: 8px; color: #60716d; font-size: 12px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #62b779; box-shadow: 0 0 0 4px rgba(98,183,121,.13); }

.hero { max-width: 1180px; margin: 0 auto; padding: 76px 28px 48px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.eyebrow i { width: 26px; height: 1px; background: var(--green); }
.hero h1 { margin: 17px 0 20px; font-size: clamp(38px, 5vw, 62px); line-height: 1.16; letter-spacing: -.055em; font-weight: 700; }
.hero h1 em { color: var(--green); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; height: 9px; position: absolute; left: 2px; right: 0; bottom: 2px; background: var(--lime); opacity: .55; z-index: -1; transform: rotate(-1deg); }
.hero > p { margin: 0; color: #657672; font-size: 16px; line-height: 1.8; }
.trust-row { display: flex; justify-content: center; gap: 28px; margin-top: 27px; color: #536763; font-size: 12px; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 17px; fill: none; stroke: var(--green); stroke-width: 1.6; }

.workspace { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.step-rail { height: 62px; max-width: 720px; margin: 0 auto 22px; display: flex; align-items: center; }
.step-rail > i { flex: 1; height: 1px; background: #d4dcd2; margin: 0 14px; }
.rail-step { display: flex; align-items: center; gap: 9px; color: #92a09c; font-size: 11px; font-weight: 700; white-space: nowrap; }
.rail-step b { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #cad3ca; border-radius: 50%; font: 700 11px Arial, sans-serif; }
.rail-step.is-active { color: var(--green); }
.rail-step.is-active b { color: white; background: var(--green); border-color: var(--green); box-shadow: 0 0 0 5px rgba(23,105,92,.09); }
.rail-step.is-done { color: #66847d; }
.rail-step.is-done b { color: transparent; background: #dceae4; border-color: #dceae4; position: relative; }
.rail-step.is-done b::after { content: "✓"; color: var(--green); position: absolute; }

.work-grid { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid #dce3d9; border-radius: 20px; box-shadow: 0 24px 70px rgba(36, 57, 49, .10); overflow: hidden; }
.panel { min-width: 0; padding: 38px 42px 40px; }
.panel + .panel { border-left: 1px solid #e2e7df; }
.panel-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 27px; }
.step-number { font: 700 11px Arial, sans-serif; color: var(--green); background: #e3efea; border-radius: 7px; padding: 5px 7px; margin-top: 2px; }
.panel-heading h2 { font-size: 19px; line-height: 1.3; margin: 0 0 5px; letter-spacing: -.03em; }
.panel-heading p { margin: 0; color: #82908c; font-size: 12px; }

.drop-zone { height: 249px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed #b8c8bd; border-radius: 14px; background: #f8faf6; cursor: pointer; transition: .2s ease; outline: 0; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.is-dragging { border-color: var(--green); background: #f1f7f2; transform: translateY(-1px); box-shadow: inset 0 0 0 2px rgba(23,105,92,.05); }
.upload-icon { width: 57px; height: 57px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 16px; background: #e6f0ea; }
.upload-icon svg { width: 30px; fill: none; stroke: var(--green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.drop-zone strong { font-size: 14px; margin-bottom: 5px; }
.drop-zone > span { color: var(--green); font-size: 12px; font-weight: 600; }
.drop-zone small { color: #9aa5a2; font-size: 10px; margin-top: 19px; }
.file-card { height: 106px; padding: 19px; display: flex; align-items: center; gap: 15px; border: 1px solid #d8e2d9; border-radius: 13px; background: #f8faf7; }
.pdf-badge { width: 48px; height: 58px; display: grid; place-items: center; background: #e8eee9; color: var(--green); border-radius: 5px 12px 5px 5px; font: 700 10px Arial, sans-serif; }
.file-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.file-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-meta span { color: #899693; font-size: 11px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.icon-button:hover { background: #e9efea; }
.icon-button svg { width: 18px; fill: none; stroke: #798985; stroke-width: 1.4; }
.text-button { width: 100%; margin-top: 16px; padding: 8px; border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.text-button svg { width: 17px; vertical-align: middle; margin-right: 5px; fill: none; stroke: currentColor; stroke-width: 1.3; }

.input-label { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 11px; font-weight: 700; }
.input-label span { color: var(--green); font-size: 9px; background: #e5f0eb; padding: 3px 6px; border-radius: 4px; }
.input-shell { position: relative; }
.input-shell > svg { width: 19px; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); fill: none; stroke: #7c8e89; stroke-width: 1.4; pointer-events: none; }
.input-shell input { width: 100%; height: 50px; border: 1px solid #cad5cd; border-radius: 10px; background: white; color: var(--ink); padding: 0 74px 0 43px; outline: 0; font-family: Arial, sans-serif; font-size: 13px; transition: .2s; }
.input-shell input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,105,92,.09); }
.input-shell input.is-invalid { border-color: #b65b57; }
.input-shell > span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #a0aaa7; font: 500 9px Arial, sans-serif; }
.field-help { margin: 7px 2px 15px; color: #98a39f; font-size: 9px; }
.field-help.is-error { color: #ad4d49; }
.watermark-preview { border: 1px solid #e0e6df; border-radius: 10px; overflow: hidden; }
.preview-top { height: 30px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; background: #f4f7f3; color: #87948f; font-size: 8px; }
.preview-top span:first-child { color: #60716d; font-weight: 700; }
.paper-preview { height: 91px; position: relative; overflow: hidden; padding: 19px 20px; background: white; }
.paper-line { height: 4px; margin-bottom: 8px; display: block; background: #e9ede8; border-radius: 2px; }
.paper-line.long { width: 72%; }.paper-line.medium { width: 55%; }.paper-line.short { width: 43%; }
.paper-preview strong { max-width: 78%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-18deg); color: rgba(23,105,92,.28); font: 700 19px Arial, sans-serif; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.primary-button { width: 100%; height: 52px; margin-top: 17px; border: 0; border-radius: 10px; background: var(--green); color: white; cursor: pointer; font-size: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(23,105,92,.2); transition: .2s; }
.primary-button:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(23,105,92,.26); }
.primary-button:disabled { background: #c8d1cc; box-shadow: none; cursor: not-allowed; }
.button-label { display: inline-flex; align-items: center; gap: 8px; }
.button-label svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.button-loading { display: none; align-items: center; justify-content: center; gap: 10px; }
.button-loading i { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
.primary-button.is-loading .button-label { display: none; }.primary-button.is-loading .button-loading { display: inline-flex; }
@keyframes spin { to { transform: rotate(360deg); } }
.privacy-note { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 11px 0 0; color: #8b9894; font-size: 9px; }
.privacy-note svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.result-panel { margin-top: 18px; padding: 24px 26px; display: flex; align-items: center; gap: 18px; background: #173f37; color: white; border-radius: 15px; box-shadow: 0 15px 36px rgba(23,63,55,.2); }
.success-icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); }
.success-icon svg { width: 25px; fill: none; stroke: #173f37; stroke-width: 2.3; }
.result-copy { flex: 1; min-width: 0; }
.result-copy > span { color: var(--lime); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.result-copy h2 { margin: 3px 0 5px; font-size: 17px; }
.result-copy p { margin: 0; color: #c4d2ce; font-size: 10px; }
.result-actions { display: flex; align-items: center; gap: 8px; }
.download-button, .secondary-button { height: 42px; padding: 0 17px; border-radius: 8px; cursor: pointer; font-size: 10px; font-weight: 700; }
.download-button { display: flex; align-items: center; gap: 7px; border: 0; background: var(--lime); color: #173f37; }
.download-button:hover { background: #d8ef76; }
.download-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.secondary-button { border: 1px solid rgba(255,255,255,.24); background: transparent; color: white; }
.secondary-button:hover { background: rgba(255,255,255,.08); }
.message { margin-top: 15px; padding: 13px 16px; border-radius: 9px; font-size: 11px; }
.message.error { color: #8e3835; background: #f9e9e7; border: 1px solid #f0cfcc; }
.message.info { color: #25594f; background: #e5f1ec; border: 1px solid #cbe3d9; }

.how-it-works { max-width: 1180px; margin: 80px auto 88px; padding: 0 28px; display: grid; grid-template-columns: .8fr 1.4fr; gap: 90px; align-items: start; }
.section-kicker { color: var(--green); font: 700 10px Arial, sans-serif; letter-spacing: .15em; }
.how-it-works h2 { max-width: 330px; margin: 12px 0 0; font-size: 27px; line-height: 1.45; letter-spacing: -.04em; }
.how-it-works ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.how-it-works li { border-top: 1px solid #cfd8d0; padding-top: 17px; }
.how-it-works li > b { color: var(--green); font: 700 10px Arial, sans-serif; }
.how-it-works li strong { display: block; margin-top: 24px; font-size: 13px; }
.how-it-works li p { margin: 7px 0 0; color: #81908c; font-size: 10px; line-height: 1.65; }

footer { min-height: 88px; padding: 0 max(28px, calc((100vw - 1124px) / 2)); display: flex; align-items: center; gap: 25px; background: #e9eee7; color: #7c8a87; font-size: 10px; }
footer span { color: #48615c; font: 700 12px Arial, sans-serif; letter-spacing: .06em; }
footer p:nth-child(2) { flex: 1; }

@media (max-width: 800px) {
  .site-header { height: 66px; padding: 0 20px; }
  .header-note { font-size: 0; }.header-note .status-dot { margin-right: 0; }
  .hero { padding: 56px 20px 38px; }
  .hero h1 { font-size: clamp(35px, 10vw, 48px); }
  .desktop-break { display: none; }
  .trust-row { gap: 12px; flex-wrap: wrap; }
  .workspace { padding: 0 16px; }
  .step-rail { margin-bottom: 12px; padding: 0 10px; }
  .rail-step span { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .panel { padding: 29px 24px 31px; }
  .panel + .panel { border-left: 0; border-top: 1px solid #e2e7df; }
  .drop-zone { height: 220px; }
  .result-panel { align-items: flex-start; flex-wrap: wrap; }
  .result-copy { flex-basis: calc(100% - 70px); }
  .result-actions { width: 100%; }.result-actions button { flex: 1; justify-content: center; }
  .how-it-works { margin: 60px auto 70px; grid-template-columns: 1fr; gap: 35px; }
  .how-it-works ol { gap: 15px; }
  footer { flex-wrap: wrap; gap: 8px 18px; padding: 25px 24px; }
  footer p { margin: 0; } footer p:nth-child(2) { flex-basis: calc(100% - 100px); }
}

@media (max-width: 520px) {
  .hero { padding-top: 43px; }.hero h1 { font-size: 35px; }.hero > p { font-size: 14px; }
  .trust-row span { font-size: 10px; }
  .panel { padding: 26px 19px 29px; }
  .how-it-works ol { grid-template-columns: 1fr; }
  .how-it-works li { display: grid; grid-template-columns: 34px 1fr; }.how-it-works li strong { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}
