:root {
  color-scheme: light;
  --paper: #f6f8f2;
  --ink: #17251e;
  --subtle: #516258;
  --green: #256443;
  --dark: #183e2d;
  --line: #dce5d9;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: 0.22em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #407768; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
.wrap { width: min(1112px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: 0; left: 12px; padding: 8px 12px; background: white; transform: translateY(-120%); }
.skip:focus { transform: translateY(8px); }
.sr-only { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; }

.top { border-bottom: 1px solid var(--line); background: #fafbf7; }
.header-inner, .footer-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.22rem; white-space: nowrap; text-decoration: none; letter-spacing: -0.055em; }
.brand-icon { display: grid; place-items: center; width: 35px; height: 35px; background: var(--dark); color: #f0ffc7; border-radius: 10px; font-size: 1.6rem; line-height: 1; }
.top nav, .footer-inner div { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.top nav a, .footer-inner div a { text-decoration: none; color: var(--subtle); font-size: 0.93rem; font-weight: 650; }
.top nav a:hover, .footer-inner div a:hover { color: var(--green); text-decoration: underline; }

.hero { text-align: center; padding: 61px 0 39px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d8e7d5; background: #edf4e9; border-radius: 50px; padding: 4px 13px; font-weight: 720; font-size: 0.88rem; color: #2c5c43; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #3e8460; }
.hero h1 { margin: 19px 0 17px; font-size: clamp(2.65rem, 6.3vw, 5rem); line-height: 1.13; letter-spacing: -0.085em; font-weight: 850; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { color: var(--subtle); font-size: 1.05rem; word-break: keep-all; }

.workspace { padding: 25px; border: 1px solid var(--line); background: #fff; border-radius: 27px; box-shadow: 0 12px 34px #2241290b; scroll-margin: 20px; }
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.work-head h2, .section-title h2 { font-size: clamp(1.42rem, 3vw, 1.9rem); letter-spacing: -0.065em; }
.unit-label { color: var(--subtle); font-size: 0.9rem; white-space: nowrap; }
.switcher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #eef2ec; border-radius: 13px; padding: 4px; margin-bottom: 16px; }
.switcher button { padding: 8px 2px; color: var(--subtle); font-weight: 710; background: transparent; border: 1px solid transparent; border-radius: 10px; }
.switcher button[aria-pressed="true"] { color: var(--dark); background: white; border-color: #dce5d9; box-shadow: 0 2px 5px #253e1c12; }
.switcher button:hover { color: var(--green); }
.work-grid { display: grid; grid-template-columns: 1.33fr 1fr; gap: 20px; }
#energy { padding: 3px 0; min-width: 0; }
.form-tip, .noscript { margin-bottom: 13px; color: var(--subtle); font-size: 0.96rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; color: var(--ink); font-size: 0.9rem; font-weight: 730; }
.presets { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.presets button { padding: 4px 11px; border-radius: 8px; border: 1px solid var(--line); background: #f8faf5; color: var(--dark); font-size: 0.92rem; }
.presets button:hover, .presets button[aria-pressed="true"] { background: #e1efde; border-color: #a9c2ad; }
.scenario { margin-bottom: 12px; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
label { display: block; color: var(--ink); font-size: 0.88rem; font-weight: 700; }
.input-wrap { display: flex; align-items: center; margin-top: 4px; border: 1px solid #d6e0d4; border-radius: 10px; min-height: 46px; padding: 0 9px; background: #fbfcfa; gap: 2px; }
.input-wrap:focus-within { border-color: #427858; box-shadow: 0 0 0 2px #cfdfc9; }
.input-wrap:has(input:invalid) { border-color: #b84d44; }
.input-wrap input { appearance: textfield; width: 100%; min-width: 0; padding: 7px 0; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: 1.04rem; font-variant-numeric: tabular-nums; }
.input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.input-wrap > span { color: var(--subtle); font-size: 0.83rem; white-space: nowrap; font-weight: 510; }
.rate { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; }
.rate label { width: min(100%, 175px); }
.rate p { color: var(--subtle); font-size: 0.86rem; margin-bottom: 7px; }
.compute { width: 100%; padding: 8px 16px; border: 1px solid transparent; border-radius: 10px; background: var(--green); color: white; font-weight: 750; }
.compute:hover { background: var(--dark); }

.result { border-radius: 17px; padding: 22px; color: white; background: radial-gradient(ellipse at 95% 2%, #2e6447, transparent 70%), var(--dark); min-width: 0; }
.result h3 { color: #e1f0e4; font-size: 0.96rem; font-weight: 680; }
.result-value { color: #ddf9b3; margin: 4px 0 12px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.result-value span:first-child { font-size: clamp(2.2rem, 5vw, 3.65rem); font-variant-numeric: tabular-nums; line-height: 1.2; }
.cost { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; border-top: 1px solid #ffffff30; padding: 11px 0; color: #e1f0e4; font-size: 0.92rem; }
.cost strong { color: white; font-size: 1.15rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result-note { color: #d3e6d8; font-size: 0.9rem; max-width: 42ch; word-break: keep-all; }
.comparison { margin-bottom: 11px; padding-bottom: 9px; border-bottom: 1px solid #ffffff30; }
.comparison > div { display: grid; grid-template-columns: auto minmax(14px, 1fr) minmax(0, max-content); align-items: center; gap: 8px; margin: 3px 0; font-size: 0.88rem; }
.comparison > div > span:last-child { max-width: 190px; overflow-wrap: anywhere; }
.track { height: 7px; border-radius: 20px; overflow: hidden; background: #ffffff25; }
.track div { height: 100%; border-radius: 20px; background: #ddf9b3; }
#bar-b { background: #a6dfcb; }
#difference { margin-top: 6px; color: #ddf9b3; font-size: 0.91rem; overflow-wrap: anywhere; }

.guides { margin-block: 43px 50px; }
.section-title p { margin-top: 5px; color: var(--subtle); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.guide { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 17px; }
.guide:hover { border-color: #8cb598; }
.guide h3 { font-size: 1.14rem; letter-spacing: -0.04em; word-break: keep-all; }
.guide p { color: var(--subtle); font-size: 0.96rem; margin-bottom: 4px; }
.guide-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: #ebf4e7; color: var(--green); font-size: 1.1rem; font-weight: 800; }
.read { margin-top: auto; color: var(--green); font-weight: 750; font-size: 0.9rem; }
.guide:hover .read { text-decoration: underline; }
.foot { border-top: 1px solid var(--line); }
.footer-inner { min-height: 75px; }
.footer-brand { font-size: 1.03rem; }

.prose { max-width: 740px; padding-block: 55px 64px; }
.prose h1 { margin-bottom: 15px; font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 830; letter-spacing: -0.075em; word-break: keep-all; }
.prose h2 { font-size: 1.42rem; margin: 29px 0 8px; letter-spacing: -0.055em; }
.prose p, .prose ol { margin-bottom: 14px; line-height: 1.8; }
.prose .intro { color: var(--subtle); font-size: 1.15rem; }
.prose .crumb { display: inline-block; margin-bottom: 13px; }
.formula { padding: 13px 16px; border-radius: 10px; background: #e9f2e6; color: var(--dark); font-weight: 740; }
.prose table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 5px; }
.prose thead { background: #e9f2e6; }
.reference { color: var(--subtle); }
.cta-link { display: inline-block; margin-top: 8px; padding: 8px 14px; background: var(--green); color: white; border-radius: 9px; font-weight: 700; text-decoration: none; }
.cta-link:hover { background: var(--dark); }

@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 43px; padding-bottom: 29px; }
  .workspace { padding: 16px; border-radius: 19px; }
  .work-grid { grid-template-columns: 1fr; gap: 15px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guides { margin-block: 32px 37px; }
  .top nav, .footer-inner div { gap: 12px; }
  .desktop-break { display: none; }
  .prose { padding-block: 33px 43px; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 24px); }
  .workspace { padding: 12px; }
  .fields { gap: 5px; }
  .input-wrap { padding-inline: 5px; }
  .input-wrap > span { font-size: 0.78rem; }
  .result { padding: 16px; }
}
