:root {
  color-scheme: light;
  --ink: #17231d;
  --muted: #627067;
  --paper: #f5f2e9;
  --card: #fffdf7;
  --line: #d9d8cc;
  --accent: #e85d3f;
  --accent-dark: #bc3f27;
  --green: #254c3b;
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: inherit; }
.site-header { max-width: 1120px; margin: auto; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 1.2rem; font-weight: 900; letter-spacing: -.03em; text-decoration: none; }
.site-header nav a { font-weight: 700; text-underline-offset: 5px; }
.container { width: min(100% - 32px, 1040px); margin: 0 auto; }
.hero { padding: 72px 0 52px; }
.eyebrow { color: var(--accent-dark); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 10px 0 18px; max-width: 760px; font-size: clamp(2.45rem, 7vw, 5.7rem); line-height: .98; letter-spacing: -.065em; }
h2 { font-size: clamp(1.55rem, 4vw, 2.5rem); letter-spacing: -.04em; line-height: 1.15; }
.lead { max-width: 670px; color: var(--muted); font-size: 1.08rem; }
.button { display: inline-flex; justify-content: center; align-items: center; margin-top: 18px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--accent); color: white; font: inherit; font-weight: 900; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-dark); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px 0 72px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 10px 30px rgb(23 35 29 / 5%); }
.card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.tool-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 22px; align-items: start; padding-bottom: 72px; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, legend { font-weight: 800; font-size: .92rem; }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #aeb5af; border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.field input:focus, .field select:focus { outline: 3px solid rgb(232 93 63 / 20%); border-color: var(--accent); }
.full { grid-column: 1 / -1; }
.quick-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-options button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; }
.result { position: sticky; top: 18px; min-height: 420px; background: var(--green); color: white; }
.result .muted { color: #c5d2ca; }
.result-value { margin: 10px 0 4px; font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 900; letter-spacing: -.05em; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 18%); }
.result dt { color: #c5d2ca; }
.result dd { margin: 0; font-weight: 800; text-align: right; }
.notice { margin-top: 18px; padding: 14px; border-left: 4px solid var(--accent); background: rgb(255 255 255 / 8%); font-size: .9rem; }
.error { color: #ffd0c7; font-weight: 800; }
footer { padding: 32px max(24px, calc((100% - 1040px)/2)); border-top: 1px solid var(--line); display: grid; gap: 4px; color: var(--muted); }
footer strong { color: var(--ink); }
footer p { margin: 8px 0 0; font-size: .85rem; }
@media (max-width: 760px) {
  .hero { padding-top: 42px; }
  .grid, .tool-shell { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .result { position: static; min-height: 0; }
}
