:root {
  color-scheme: light;
  --bg: #f5f7fc; --ink: #182444; --muted: #52617c; --line: #dce4f1;
  --blue: #304ccb; --dark-blue: #253dac; --white: #fff;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.65; font-size: 16px; background: var(--bg); color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--dark-blue); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #ad4900; outline-offset: 4px; }
input, button, textarea, select { font: inherit; }
button, select, summary { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.26; letter-spacing: -.04em; }
.frame { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 8px; left: 8px; background: white; padding: 10px; transform: translateY(-180%); }
.skip:focus { transform: none; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-inner, .foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 15px; }
.brand { color: var(--ink); font-size: 1.14rem; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brandmark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--blue); color: white; font: 800 24px/1 system-ui; }
nav { display: flex; flex-wrap: wrap; gap: 6px 10px; }
nav a { text-decoration: none; color: #35466a; font-size: .87rem; font-weight: 700; padding: 7px 9px; border-radius: 8px; }
nav a:hover, nav a[aria-current="page"] { color: var(--dark-blue); background: #edf1ff; }
.hero { margin-top: 34px; border: 1px solid #dce4f8; border-radius: 28px; overflow: hidden; min-height: 390px; padding: 48px 54px; display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; background: linear-gradient(110deg, #edf3ff 8%, #eceeff 81%, #e6e8ff); }
.hero h1 { font-size: clamp(2.4rem, 5.1vw, 4.25rem); margin: 19px 0 15px; letter-spacing: -.075em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy { z-index: 1; }
.hero-copy > p { color: #3c4d74; font-size: 1.02rem; max-width: 34em; margin-bottom: 24px; }
.privacy-pill { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: 99px; background: #fff; color: #324b9c; font-size: .79rem; font-weight: 800; }
.privacy-pill span { width: 7px; height: 7px; background: #248369; border-radius: 50%; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background: var(--blue); color: #fff; padding: 9px 17px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; text-decoration: none; }
.button:hover, button:hover { background: var(--dark-blue); }
button:disabled { opacity: .58; cursor: default; }
.secondary { color: var(--dark-blue); background: #eef2ff; border-color: #dbe3fc; }
.secondary:hover { background: #e1e9ff; }
.hero-art { height: 300px; width: min(100%, 375px); position: relative; justify-self: center; background: radial-gradient(ellipse at center, #d9dfff 0%, transparent 66%), radial-gradient(circle, #9caae17b 1px, transparent 1.6px) 0 0/18px 18px; border-radius: 30px; }
.sheet { position: absolute; top: 45px; left: calc(50% - 76px); width: 153px; height: 204px; border-radius: 19px; border: 1px solid #cbd4f4; box-shadow: 0 16px 36px #556dc029; }
.sheet-back { background: #c4ceff; transform: translate(-39px, 5px) rotate(-19deg); }
.sheet-mid { background: #d9deff; transform: translate(37px, -3px) rotate(20deg); }
.sheet-front { background: #fff; padding: 23px; transform: rotate(-5deg); }
.sheet-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 12px; color: #fff; background: #4160dc; font-size: 1.6rem; font-weight: 800; margin-bottom: 22px; }
.line { display: block; height: 7px; margin-block: 10px; background: #c5d1f5; border-radius: 20px; }
.line.short { width: 73%; }
.line.faint { width: 54%; background: #e5eafa; }
.float-tag { position: absolute; border-radius: 10px; font: 800 13px/1 system-ui; padding: 11px 13px; box-shadow: 0 7px 18px #4354af29; }
.float-pdf { top: 36px; right: 14%; background: #eee4ff; color: #6533a8; transform: rotate(9deg); }
.float-zip { bottom: 54px; right: 9%; background: #fff0d0; color: #834900; transform: rotate(-9deg); }
.float-img { top: 123px; left: 7%; background: #dcf7ec; color: #11614f; transform: rotate(-12deg); }
.section { margin-block: 36px; }
.section-title { margin-bottom: 14px; }
.section-title h2 { font-size: 1.75rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card { display: flex; flex-direction: column; gap: 16px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 21px; color: var(--ink); text-decoration: none; box-shadow: 0 3px 8px #263f7410; }
.tool-card:hover { border-color: #8599e8; box-shadow: 0 9px 20px #263f741a; }
.card-top, .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.icon { width: 45px; height: 45px; border-radius: 13px; display: inline-grid; flex: 0 0 auto; place-items: center; font: 800 24px/1 system-ui; }
.blue { background: #e6eeff; color: #2547bb; } .violet { background: #eee5ff; color: #6136a0; }
.amber { background: #fff0d0; color: #7d4806; } .green { background: #dcf5eb; color: #146454; }
.rose { background: #ffe6ef; color: #8e3156; }
.tag, .category { color: #46577b; font-size: .76rem; font-weight: 800; }
.tag { border: 1px solid #e6ebf4; border-radius: 7px; padding: 3px 7px; }
.tool-card h3 { font-size: 1.23rem; margin-block: 3px 8px; }
.tool-card p:not(.category) { color: var(--muted); font-size: .9rem; }
.card-bottom { margin-top: auto; border-top: 1px solid #edf0f7; padding-top: 11px; color: var(--dark-blue); font-size: .87rem; font-weight: 800; }
.privacy-strip { margin-bottom: 40px; padding: 20px 24px; background: #e9f3fa; border-radius: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.privacy-strip h2 { font-size: 1.15rem; margin-bottom: 4px; }
.privacy-strip p, .footer p { color: var(--muted); font-size: .86rem; }
.privacy-strip a { font-weight: 800; font-size: .88rem; }
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 42px; }
.trail { display: flex; gap: 9px; margin-block: 22px 18px; color: var(--muted); font-size: .88rem; }
.tool-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 25px; }
.tool-heading .icon { width: 55px; height: 55px; font-size: 30px; }
.tool-heading h1 { font-size: clamp(1.7rem, 4.5vw, 2.65rem); margin-block: 3px 6px; }
.tool-heading p:not(.category) { color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel, .guide { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 24px; min-width: 0; }
.panel h2, .guide h2, .faq h2 { font-size: 1.28rem; margin-bottom: 12px; }
.file-zone { padding: 16px; background: #f2f5ff; border: 1px dashed #9baee9; border-radius: 12px; }
.file-zone > label { font-weight: 800; display: block; margin-bottom: 8px; }
.file-zone p { font-size: .82rem; color: #42567f; margin-top: 5px; }
input[type="file"] { color: #344b7a; width: 100%; }
input::file-selector-button { font: inherit; font-weight: 800; color: var(--dark-blue); background: #fff; border: 1px solid #b3c2ee; border-radius: 7px; padding: 8px 10px; cursor: pointer; margin-right: 8px; }
.fields { margin-top: 17px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.fields .wide { grid-column: 1 / -1; }
.fields label, .photos label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .86rem; }
.fields .check { flex-direction: row; align-items: center; align-self: end; min-height: 43px; }
input:not([type="file"], [type="checkbox"]), textarea, select { min-width: 0; width: 100%; border: 1px solid #bdc9df; border-radius: 8px; background: white; color: var(--ink); padding: 8px 10px; min-height: 42px; }
textarea { resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 17px 0; }
.live { margin-top: 7px; font-weight: 700; color: #35466a; font-size: .88rem; }
.live:empty { margin-top: 0; }
.photos:empty { display: none; }
.guide { background: #ebf0ff; border-color: #dbe4fc; }
.guide p, .faq p { color: #3f5277; font-size: .93rem; }
.guide-separator { border-top: 1px solid #cfdafa; margin-block: 14px; }
.guide .guide-local { font-weight: 800; font-size: .84rem; color: #2f4798; }
.faq, .results { margin-top: 20px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-block: 7px; padding: 9px 14px; }
.faq summary { font-weight: 800; padding-block: 3px; }
.faq p { margin-block: 8px 5px; }
.result-list { margin: 8px 0; padding-left: 1.45rem; }
.result-list li + li { margin-top: 5px; }
.table-wrap { max-height: 450px; overflow: auto; margin-block: 12px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .88rem; }
th, td { border-bottom: 1px solid var(--line); padding: 8px; vertical-align: top; }
thead th { background: #edf2ff; position: sticky; top: 0; }
.notice { background: #fff3d9; color: #69421a; border-radius: 8px; padding: 9px 12px; margin-block: 8px; }
.photos { padding-left: 1.5rem; }
.photos li { border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; margin-block: 6px; }
.photos li p { margin-bottom: 5px; }
.photos .actions { margin: 6px 0 0; }
.photos button { font-size: .8rem; padding: 4px 10px; }
.prose { margin-top: 18px; max-width: 760px; }
.prose h1 { margin-bottom: 16px; }
.prose h2 { margin: 20px 0 7px; }
@media (max-width: 850px) {
  .hero { padding: 32px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
  .frame { width: calc(100% - 28px); }
  .top-inner, .foot-inner { gap: 8px; padding-block: 10px; }
  nav { gap: 2px; }
  nav a { padding: 6px 7px; font-size: .77rem; }
  .hero { margin-top: 18px; padding: 23px; min-height: 0; grid-template-columns: 1fr; }
  .hero-art { height: 180px; transform: scale(.70); transform-origin: top center; margin: 12px 0 0; }
  .sheet { top: 9px; } .float-pdf { top: 4px; } .float-zip { bottom: 4px; }
  .workspace { grid-template-columns: 1fr; }
  .panel, .guide, .tool-card { padding: 14px; }
}
@media (max-width: 420px) {
  .tool-grid, .fields { grid-template-columns: 1fr; }
  .tool-heading { gap: 10px; }
}
