:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #1c1d1f;
  --muted: #5d6168;
  --line: #e2e2dc;
  --accent: #0f6e56;
  --accent-soft: #e3f1ec;
  --warn: #a4570c;
  --warn-soft: #fbefe1;
  --radius: 12px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141517;
    --surface: #1d1f22;
    --text: #ececea;
    --muted: #a3a7ad;
    --line: #2f3236;
    --accent: #4cc9a0;
    --accent-soft: #173a30;
    --warn: #f0a45a;
    --warn-soft: #3a2a1a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--font);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
nav.site a { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 14px; }
nav.site a:hover { color: var(--text); }
main { padding: 28px 0 48px; }
h1 { font-size: clamp(24px, 5vw, 32px); line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 40px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 24px 0 8px; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 24px; }
.answer { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 24px; }
.answer strong { color: var(--text); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tool-link { display: block; text-decoration: none; color: var(--text); }
.tool-link:hover { border-color: var(--accent); }
.tool-link h3 { margin: 0 0 6px; }
.tool-link p { margin: 0; color: var(--muted); font-size: 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
form.calc { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.field .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.input-unit { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.input-unit:focus-within { border-color: var(--accent); }
.input-unit input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; padding: 10px 12px; }
.input-unit input:focus { outline: none; }
.input-unit span { padding: 0 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; padding: 10px 12px; }
.select:focus { outline: none; border-color: var(--accent); }
.result { margin-top: 20px; display: grid; gap: 10px; }
.result-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.result-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.result-main { font-size: 20px; }
.result-main span:last-child { color: var(--accent); font-weight: 800; }
.verdict { border-radius: var(--radius); padding: 14px 16px; font-weight: 600; }
.verdict.good { background: var(--accent-soft); }
.verdict.warn { background: var(--warn-soft); color: var(--warn); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare .card { padding: 14px; }
.compare .card.win { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.compare .label { color: var(--muted); font-size: 13px; }
.compare .amount { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
th { color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
.note { color: var(--muted); font-size: 13px; }
.sources li { font-size: 14px; }
footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
footer.site a { color: var(--muted); margin-right: 12px; }
.ad-slot { margin: 28px 0; min-height: 0; }
@media (max-width: 480px) {
  .compare { grid-template-columns: 1fr; }
  nav.site a { margin: 0 14px 0 0; }
}
