:root {
  --green-900: #064e3b;
  --green-700: #047857;
  --green-600: #059669;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;
  --ink: #14231d;
  --muted: #5d6c68;
  --line: #dbe6e1;
  --surface: #ffffff;
  --background: #f5f8f6;
  --warning: #9a6700;
  --danger: #b42318;
  --radius: 24px;
  --shadow: 0 18px 45px rgba(12, 45, 32, 0.06);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-mark {
  width: 37px;
  height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  color: white;
  font-size: 26px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--green-700);
}

.hero {
  padding: 72px 0 55px;
  background:
    radial-gradient(circle at 86% 12%, #c9f4df 0, transparent 31%),
    var(--background);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(400px, 1.1fr) 390px;
  align-items: center;
  gap: 66px;
}

.eyebrow {
  margin: 0 0 11px;
  color: var(--green-700);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 5vw, 55px);
  line-height: 1.16;
  letter-spacing: -0.08em;
}

.hero-copy {
  max-width: 590px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.button {
  min-height: 51px;
  padding: 13px 24px;
  border-radius: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.primary {
  color: #fff;
  background: var(--green-700);
}

.button.secondary {
  color: var(--green-700);
  background: #fff;
  border: 1px solid #cfe0d8;
}

.summary-card {
  padding: 29px;
  background: #fff;
  border: 1px solid #e1ece7;
  border-radius: 29px;
  box-shadow: var(--shadow);
}

.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  color: var(--muted);
}

.summary-top strong {
  color: var(--green-700);
  font-size: 30px;
}

.summary-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.summary-items span {
  padding: 14px 13px;
  border-radius: 13px;
  color: var(--green-900);
  background: var(--green-50);
  font-size: 14px;
  font-weight: 500;
}

.summary-items span:last-child {
  grid-column: span 2;
}

.summary-note {
  margin: 23px 0 0;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.notice-strip {
  color: #145c44;
  background: #def6e9;
  border-block: 1px solid #c8ebd7;
  padding: 17px 0;
  font-size: 14px;
}

.notice-strip strong {
  margin-right: 10px;
}

.calculator-section {
  padding: 64px 0 76px;
}

.section-heading {
  text-align: center;
  margin-bottom: 37px;
}

.section-heading h2,
.trust-section h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
  letter-spacing: -0.06em;
  line-height: 1.35;
}

.tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 29px;
  padding: 5px;
  gap: 4px;
  overflow-x: auto;
  background: #eaf1ee;
  border-radius: 15px;
}

.tab {
  appearance: none;
  min-width: 100px;
  padding: 13px 18px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.tab.active {
  color: #fff;
  background: var(--green-700);
}

.tool-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.input-card,
.result-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.input-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.card-copy {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.field-grid.compact {
  margin-bottom: 15px;
}

label {
  display: block;
  color: #33443e;
  font-size: 14px;
  font-weight: 500;
}

label span {
  color: #77837e;
  font-weight: 400;
}

input,
select {
  display: block;
  width: 100%;
  min-height: 53px;
  margin-top: 8px;
  padding: 11px 13px;
  border: 1px solid #cbd8d2;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 17px;
}

input:focus,
select:focus {
  outline: 3px solid #d5f3e4;
  border-color: var(--green-600);
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.choice-row legend {
  margin-right: 5px;
  color: #33443e;
  font-size: 14px;
  font-weight: 500;
}

.choice-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.choice-row input {
  display: inline-block;
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--green-700);
}

.field-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.result-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.result-number {
  color: var(--green-700);
  font-size: clamp(56px, 7vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.result-title {
  margin: 6px 0 14px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.result-detail {
  min-height: 44px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 14px;
  max-width: 300px;
}

.result-medium {
  display: block;
  color: var(--green-900);
  font-size: 43px;
  line-height: 1.25;
  letter-spacing: -0.05em;
}

.result-medium.accent {
  color: var(--green-700);
}

.two-results {
  gap: 20px;
}

.two-results span {
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  color: var(--green-700);
  font-size: 14px;
  font-weight: 700;
}

.guides-section {
  padding: 68px 0 75px;
  background: #fff;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
}

.section-heading.split > p {
  max-width: 420px;
  margin: 0 0 5px;
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.guide-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.guide-card > p:first-child {
  margin: 0 0 12px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 700;
}

.guide-card h3 {
  margin: 0 0 11px;
  font-size: 19px;
  letter-spacing: -0.04em;
}

.guide-card h3 + p {
  min-height: 67px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.guide-card a {
  color: var(--green-700);
  font-size: 14px;
  font-weight: 700;
}

.trust-section {
  padding: 67px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.trust-list p {
  margin: 0;
  padding: 17px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.trust-list p:first-child {
  padding-top: 0;
}

.trust-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.site-footer {
  padding: 37px 0;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.footer-brand {
  font-size: 18px;
}

.footer-brand .brand-mark {
  width: 31px;
  height: 31px;
  font-size: 22px;
  border-radius: 10px;
}

.footer-grid p {
  margin: 9px 0 0;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.copyright {
  grid-column: span 2;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.content-hero {
  padding: 54px 0 32px;
}

.content-hero h1 {
  max-width: 800px;
  font-size: clamp(32px, 4vw, 43px);
}

.content-body {
  padding: 0 0 72px;
}

.article {
  max-width: 820px;
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article h2 {
  margin: 34px 0 12px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.article h2:first-child {
  margin-top: 0;
}

.article p,
.article li {
  color: #43534d;
}

.article ul {
  padding-left: 22px;
}

.article table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.article th,
.article td {
  padding: 13px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.article th {
  color: var(--green-900);
  background: var(--green-50);
}

.source-box,
.callout {
  margin-top: 28px;
  padding: 19px 21px;
  background: var(--green-50);
  border-radius: 15px;
  color: #3b5149;
  font-size: 14px;
}

.source-box a,
.article a {
  color: var(--green-700);
  text-decoration: underline;
}

.contact-card {
  display: grid;
  gap: 18px;
}

@media (max-width: 860px) {
  .hero-grid,
  .tool-grid,
  .guide-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 47px;
  }

  .hero-grid {
    gap: 36px;
  }

  .section-heading.split {
    display: block;
  }

  .section-heading.split > p {
    margin-top: 15px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  .header-inner {
    display: block;
    padding: 15px 0 12px;
  }

  .site-nav {
    margin-top: 14px;
    gap: 19px;
    font-size: 14px;
  }

  .hero-grid {
    display: block;
  }

  .summary-card {
    margin-top: 36px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .tabs {
    width: 100%;
  }

  .input-card,
  .result-card,
  .article {
    padding: 23px 19px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .copyright {
    grid-column: auto;
  }
}
