:root {
  --ink: #16211c;
  --muted: #637068;
  --paper: #f4f2eb;
  --card: #fffef9;
  --line: #d9ddd6;
  --accent: #0f7a52;
  --accent-dark: #095c3d;
  --warm: #f0b94b;
  --shadow: 0 18px 50px rgba(26, 43, 34, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; line-height: 1.65; }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 242, 235, .92); border-bottom: 1px solid rgba(22, 33, 28, .1); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--accent); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--accent); border-radius: 10px; font-weight: 900; }
nav { display: flex; gap: 6px; overflow-x: auto; }
nav a { padding: 9px 12px; color: var(--muted); text-decoration: none; font-size: .92rem; white-space: nowrap; border-radius: 999px; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent-dark); background: #dcebe3; }
.hero { padding-block: clamp(70px, 10vw, 130px) 80px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .76rem; font-weight: 900; letter-spacing: .16em; }
.hero h1 { max-width: 850px; margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(3.1rem, 8vw, 7.4rem); line-height: .99; letter-spacing: -.065em; }
.hero h1 span { color: var(--accent); }
.hero-copy { max-width: 650px; margin: 28px 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 48px; padding: 0 20px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--card); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(26, 43, 34, .09); }
.button.primary { border-color: var(--accent); color: white; background: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.full { width: 100%; margin-top: 4px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 44px; color: var(--muted); font-size: .9rem; }
.section { padding-block: 80px; }
.section-heading { margin-bottom: 32px; }
.section-heading h2, .two-col h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.04em; line-height: 1.15; }
.section-heading > p:last-child { color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tool-card { grid-column: span 2; min-height: 255px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: var(--card); text-decoration: none; box-shadow: 0 6px 0 rgba(22, 33, 28, .025); transition: transform .18s, box-shadow .18s; }
.tool-card:nth-child(4), .tool-card:nth-child(5) { grid-column: span 3; }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tool-card.featured { background: var(--accent); color: white; border-color: var(--accent); }
.tool-no { color: var(--warm); font: 800 1rem Georgia, serif; }
.tool-card h3 { margin: auto 0 6px; font-size: 1.55rem; }
.tool-card p { margin: 0 0 16px; color: var(--muted); }
.tool-card.featured p { color: rgba(255, 255, 255, .75); }
.tool-card b { color: var(--accent); font-size: .9rem; }
.tool-card.featured b { color: #f6d795; }
.explainer { background: #17271f; color: white; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.two-col > div:last-child { color: #c0cbc5; font-size: 1.08rem; }
.faq { max-width: 880px; }
details { border-top: 1px solid var(--line); padding: 18px 4px; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { font-weight: 800; cursor: pointer; }
details p { color: var(--muted); }
.page-main { min-height: 70vh; padding-block: 70px 90px; }
.page-head { max-width: 780px; margin-bottom: 38px; }
.page-head h1 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(2.6rem, 7vw, 5.5rem); letter-spacing: -.055em; line-height: 1.05; }
.page-head > p:last-child { max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.calculator { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 24px; align-items: start; }
.calc-form, .result, .panel, .guide { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 6px 0 rgba(22, 33, 28, .025); }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.product-group { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.product-group h2 { margin: 0; font-size: 1rem; }
.field { display: grid; gap: 7px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.input-wrap { position: relative; display: block; }
input { width: 100%; height: 54px; padding: 0 75px 0 14px; border: 1px solid #cfd5cf; border-radius: 10px; color: var(--ink); background: white; font: 800 1.05rem inherit; outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 122, 82, .12); }
.input-wrap em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; font-size: .85rem; }
.result { position: sticky; top: 96px; color: white; background: #17271f; border-color: #17271f; }
.result-kicker { margin: 0 0 18px; color: #8fb7a2; font-size: .75rem; font-weight: 900; letter-spacing: .14em; }
.result-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.result-row span { color: #b7c4bd; }
.result-row strong { text-align: right; }
.result-row.primary { display: block; margin: 15px -12px 0; padding: 18px 12px; border: 0; border-radius: 12px; background: var(--accent); }
.result-row.primary span { display: block; color: #cce7d9; }
.result-row.primary strong { display: block; margin-top: 4px; text-align: left; font-size: 1.45rem; }
.result-note { margin: 18px 0 0; color: #9ead9f; font-size: .82rem; }
.guide { max-width: 760px; margin-top: 30px; box-shadow: none; }
.guide h2, .guide h3, .panel h2 { margin-top: 1.5em; line-height: 1.3; }
.guide h2:first-child, .panel h2:first-child { margin-top: 0; }
.guide p, .guide li, .panel p, .panel li { color: var(--muted); }
code { padding: 2px 6px; background: #e7e8e2; border-radius: 5px; }
.prose { max-width: 840px; }
.panel a { color: var(--accent-dark); }
.panel .button { color: white; }
.muted { color: var(--muted); font-size: .88rem; }
.site-footer { padding: 50px 0 24px; color: #b7c4bd; background: #101a15; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-grid strong { color: white; }
.footer-grid p { margin: 6px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 15px; }
.footer-links a { text-decoration: none; }
.copyright { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
@media (max-width: 820px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 12px; gap: 8px; }
  nav { width: 100%; }
  .tool-card { grid-column: span 3; }
  .tool-card:nth-child(5) { grid-column: span 6; }
  .calculator, .two-col { grid-template-columns: 1fr; }
  .result { position: static; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1120px); }
  .hero h1 { font-size: clamp(2.8rem, 16vw, 4.6rem); }
  .tool-grid, .calc-form { grid-template-columns: 1fr; }
  .tool-card, .tool-card:nth-child(4), .tool-card:nth-child(5) { grid-column: auto; }
  .footer-grid { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
