:root {
  --ink: #17221c;
  --muted: #5d6962;
  --line: #dce3de;
  --paper: #ffffff;
  --wash: #f5f7f5;
  --brand: #176b45;
  --brand-dark: #0f5133;
  --good: #16704a;
  --bad: #b42318;
  --warn: #9a6700;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 34, 28, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}
a { color: var(--brand-dark); text-underline-offset: 3px; }
button, input { font: inherit; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10; background: white; padding: 8px 12px; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.nav { max-width: 1120px; margin: auto; min-height: 64px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: .92rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
main { min-height: calc(100vh - 180px); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 72px 0 46px; }
.hero-inner { max-width: 780px; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-weight: 800; font-size: .9rem; letter-spacing: .02em; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.035em; }
h1 { margin: 0 0 18px; font-size: clamp(2rem, 7vw, 4.2rem); }
h2 { margin: 0 0 18px; font-size: clamp(1.5rem, 4vw, 2.35rem); }
h3 { margin: 0 0 8px; font-size: 1.08rem; }
.lead { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand); color: white; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--brand-dark); }
.button.secondary { background: white; color: var(--brand-dark); border-color: var(--line); }
.section { padding: 48px 0; }
.section.white { background: white; border-block: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: block; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.card p { margin: 8px 0 0; color: var(--muted); }
.card .arrow { display: inline-block; margin-top: 18px; color: var(--brand); font-weight: 800; }
.tool-head { padding: 46px 0 24px; }
.tool-head h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 24px; align-items: start; padding-bottom: 54px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 750; font-size: .94rem; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; min-height: 48px; padding: 10px 46px 10px 12px; border: 1px solid #b9c3bd; border-radius: 9px; background: white; color: var(--ink); text-align: right; }
.input-wrap input:focus { outline: 3px solid rgba(23,107,69,.16); border-color: var(--brand); }
.unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }
.field small { min-height: 1.25em; color: var(--muted); }
.result-panel { position: sticky; top: 84px; }
.primary-result { padding: 22px; border-radius: 12px; background: #edf6f1; margin-bottom: 14px; }
.primary-result .label { display: block; color: var(--muted); font-size: .92rem; }
.primary-result strong { display: block; margin-top: 4px; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; letter-spacing: -.05em; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #e7eee9; font-weight: 800; font-size: .85rem; }
.status.good { background: #dff3e8; color: var(--good); }
.status.bad { background: #fee4e2; color: var(--bad); }
.status.warn { background: #fff1c2; color: var(--warn); }
.metrics { margin: 0; }
.metric { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.metric dt { color: var(--muted); }
.metric dd { margin: 0; font-weight: 800; text-align: right; }
.notice { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid #9aa69f; background: #f7f8f7; color: var(--muted); font-size: .88rem; }
.error { min-height: 24px; margin: 12px 0 0; color: var(--bad); font-weight: 700; }
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.compare div { padding: 12px 8px; border: 1px solid var(--line); border-radius: 9px; text-align: center; }
.compare span, .compare strong { display: block; }
.compare span { color: var(--muted); font-size: .82rem; }
.content { max-width: 820px; }
.content p, .content li { color: #3e4943; }
.example { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin-bottom: 0; }
.next-tool { margin-top: 18px; padding: 18px; background: #f3f7f4; border: 1px solid var(--line); border-radius: 12px; }
.next-tool p { margin: 0 0 10px; color: var(--muted); }
.plain-page { max-width: 800px; padding: 54px 0 70px; }
.plain-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.plain-page h2 { margin-top: 32px; font-size: 1.35rem; }
.site-footer { border-top: 1px solid var(--line); background: white; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
@media (max-width: 800px) {
  .grid-3, .tool-layout { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .nav { align-items: flex-start; flex-direction: column; gap: 3px; }
  .nav-links { gap: 10px; }
  .hero { padding-top: 48px; }
}
@media (max-width: 520px) {
  .wrap { width: min(100% - 22px, 1120px); }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .panel { padding: 16px; }
  .compare { grid-template-columns: 1fr; }
  .metric { align-items: baseline; }
  .button { width: 100%; }
}

