:root {
  --ink: #172523;
  --muted: #64706e;
  --paper: #f6f4ee;
  --white: #fff;
  --line: #dfe4df;
  --navy: #152e2d;
  --navy-2: #21413f;
  --teal: #1c8176;
  --teal-light: #dff4ed;
  --blue: #526f91;
  --blue-light: #e9eef4;
  --coral: #e6684a;
  --coral-light: #fff0e9;
  --shadow: 0 18px 50px rgba(22, 43, 41, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.app-locked { overflow: hidden; }
body.app-locked .page-shell { display: none; }
body:not(.app-locked) .lock-screen { display: none; }

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(28, 129, 118, 0.3);
  outline-offset: 2px;
}

.shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(0, 130, 51, 0.14), transparent 28%),
    linear-gradient(135deg, #f4f6f4 0%, #ffffff 48%, #eef4f8 100%);
}

.lock-card {
  width: min(480px, 100%);
  padding: 38px 34px;
  border: 1px solid rgba(0, 37, 84, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(0, 37, 84, 0.12);
}

.lock-kicker {
  margin: 0 0 10px;
  color: #008233;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lock-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.lock-copy {
  margin: 18px 0 0;
  color: #4d5c68;
  font-size: 15px;
  line-height: 1.7;
}

.lock-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.lock-button {
  min-height: 52px;
  justify-content: center;
}

.lock-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: #5d6b69;
  font-size: 13px;
}

.lock-status.error { color: #b42318; }
.lock-status.success { color: #008233; }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(223, 228, 223, 0.85);
  background: rgba(246, 244, 238, 0.9);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--teal); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.save-state { margin-right: 8px; color: var(--muted); font-size: 13px; }

.button { min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 700; }
.button.ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.button.dark { background: var(--navy); color: #fff; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: 0.62; transform: none; }

.print-status {
  position: fixed;
  z-index: 40;
  top: 84px;
  right: max(24px, calc((100vw - 1160px) / 2));
  max-width: min(440px, calc(100vw - 48px));
  padding: 13px 16px;
  border: 1px solid rgba(0, 130, 51, 0.2);
  border-radius: 6px;
  color: #fff;
  background: #002554;
  box-shadow: 0 10px 30px rgba(0, 37, 84, 0.18);
  font-family: "Pretendard-Bold", Pretendard, sans-serif;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.print-status.visible { opacity: 1; transform: translateY(0); }

.hero { padding-top: 86px; padding-bottom: 62px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: var(--teal); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.6fr); align-items: end; gap: 80px; }
h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.08; letter-spacing: -0.055em; }
h1 em { color: var(--teal); font-family: "Gowun Batang", serif; font-style: normal; letter-spacing: -0.03em; }
.hero-copy { max-width: 650px; margin: 27px 0 0; color: var(--muted); font-size: 18px; }
.hero-result { padding: 28px; border-radius: var(--radius); color: #fff; background: var(--navy); box-shadow: var(--shadow); }
.hero-result p { margin: 0 0 8px; color: #b9cfca; font-size: 14px; }
.hero-result strong { display: block; overflow-wrap: anywhere; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; letter-spacing: -0.04em; }
.delta-pill { display: inline-flex; margin-top: 18px; padding: 7px 11px; border-radius: 999px; color: #9ee1d1; background: rgba(158, 225, 209, 0.12); font-size: 13px; font-weight: 700; }
.delta-pill.negative { color: #ffc1b1; background: rgba(255, 151, 126, 0.12); }
.step-track { display: flex; align-items: center; margin-top: 66px; color: #8a9491; font-size: 13px; font-weight: 700; }
.step-track span { white-space: nowrap; }
.step-track b { margin-right: 7px; color: #adb5b2; }
.step-track .active { color: var(--teal); }
.step-track .active b { color: var(--teal); }
.step-track i { width: 100%; height: 1px; margin: 0 16px; background: #d5dad5; }

.section { padding: 82px 0; }
.section-tint { background: #edece6; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.section-heading > div { display: flex; align-items: baseline; gap: 15px; }
.section-number { color: var(--teal); font-size: 13px; font-weight: 800; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.04em; }
.section-heading > p { max-width: 520px; margin: 0 0 5px; color: var(--muted); text-align: right; }

.company-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.company-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.7); box-shadow: 0 10px 30px rgba(22, 43, 41, 0.03); }
.card-kicker { margin-bottom: 24px; font-size: 14px; font-weight: 800; }
.input-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; }
.operator { padding-bottom: 15px; color: #97a09e; font-size: 20px; }
.field { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.field.wide { min-width: 0; }
.input-wrap { position: relative; display: block; }
.input-wrap input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0 42px 0 14px;
  border: 1px solid #ccd4d0;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap input:hover, select:hover { border-color: #aebcb7; }
.input-wrap input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(28, 129, 118, 0.08); outline: none; }
.input-wrap::after { position: absolute; top: 50%; right: 14px; color: #6e7a77; font-size: 13px; font-weight: 600; transform: translateY(-50%); pointer-events: none; }
.suffix-percent::after { content: "%"; }
.suffix-won::after { content: "원"; }
.suffix-times::after { content: "배"; }
.suffix-month::after { content: "개월"; }
.suffix-person::after { content: "명"; }
.suffix-times input { padding-right: 34px; }
.suffix-month input { padding-right: 48px; }
.money-small input { padding-right: 32px; }
select { padding-right: 14px; text-align: left; }
.formula-result { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); }
.formula-result span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--teal); background: var(--teal-light); font-weight: 800; }
.formula-result strong { font-size: 24px; }

.average-band { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 22px 28px; border: 1px solid #b6d7ce; border-radius: 15px; background: var(--teal-light); }
.average-band > div { display: flex; align-items: center; gap: 15px; }
.formula-badge { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: #fff; background: var(--teal); font-size: 17px; font-weight: 800; }
.average-band small { color: #4e706a; font-weight: 700; }
.average-band p { margin: 1px 0 0; color: #315a54; font-size: 13px; }
.average-band strong { color: var(--teal); font-size: 30px; }

.rate-comparison { display: grid; grid-template-columns: 1fr 42px 1fr; align-items: center; gap: 18px; margin-top: 34px; }
.rate-card { display: grid; grid-template-columns: 1fr minmax(120px, 0.35fr); gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.rate-card h3 { margin: 13px 0 0; font-size: 16px; }
.status-tag { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.old .status-tag { color: var(--blue); background: var(--blue-light); }
.new .status-tag { color: var(--teal); background: var(--teal-light); }
.compact-field { align-self: center; }
.rate-card .compact-field input { font-size: 24px; }
.rate-total { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
.rate-total span { color: var(--muted); font-size: 13px; }
.rate-total strong { font-size: 26px; }
.rate-card.new { border-color: #a9d2c8; box-shadow: 0 12px 36px rgba(28, 129, 118, 0.08); }
.rate-card.new .rate-total strong { color: var(--teal); }
.versus { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-size: 12px; font-weight: 800; }
.floor-setting { display: flex; align-items: center; justify-content: space-between; max-width: 530px; margin: 18px auto 0; padding: 15px 18px; border-radius: 13px; background: rgba(255, 255, 255, 0.6); cursor: pointer; }
.floor-setting > span:first-child { display: grid; }
.floor-setting b { font-size: 13px; }
.floor-setting small { color: var(--muted); font-size: 12px; font-weight: 400; }
.input-wrap.compact { width: 112px; }
.input-wrap.compact input { min-height: 42px; font-size: 15px; }

.personal-layout { display: grid; grid-template-columns: 0.42fr 1fr; align-items: start; gap: 28px; }
.personal-inputs { display: grid; gap: 18px; padding: 26px; border: 1px solid #d8d9d3; border-radius: var(--radius); background: rgba(255,255,255,0.56); }
.base-formulas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.base-card { min-height: 225px; padding: 26px; border-radius: var(--radius); background: #fff; }
.base-card.new { border: 1px solid #a9d2c8; }
.base-card-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 700; }
.equation { margin: 24px 0 15px; color: var(--muted); font-size: 13px; }
.base-card > strong { display: block; margin-top: 33px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -0.04em; }
.inline-variables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.inline-variables label { color: var(--muted); font-size: 11px; font-weight: 600; }
.inline-variables .compact { width: 100%; margin-top: 6px; }
.base-card.new .equation { margin: 24px 0 15px; }
.base-card.new > strong { margin-top: 33px; color: var(--teal); }

.gross-comparison { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 18px; margin-top: 22px; padding: 24px; border-radius: var(--radius); color: #fff; background: var(--navy); }
.gross-comparison > div:not(.gross-delta) { display: grid; align-content: center; padding: 8px 12px; }
.gross-comparison span { color: #afc4c0; font-size: 13px; }
.gross-comparison strong { display: block; margin-top: 5px; font-size: clamp(27px, 4vw, 40px); letter-spacing: -0.04em; }
.gross-comparison small { margin-top: 5px; color: #849b96; }
.gross-comparison .highlight strong { color: #7bd7c2; }
.gross-delta { display: grid; min-width: 145px; align-content: center; justify-items: center; padding: 14px 22px; border-right: 1px solid rgba(255,255,255,0.12); border-left: 1px solid rgba(255,255,255,0.12); text-align: center; }
.gross-delta strong { font-size: 19px; }

.notice { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 14px; padding: 20px; border: 1px solid #efd3c8; border-radius: 15px; background: var(--coral-light); }
.notice-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--coral); font-size: 13px; font-weight: 800; }
.notice b { font-size: 14px; }
.notice p { margin: 5px 0 0; color: #795c52; font-size: 13px; }
.notice a { color: #a04630; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }

.tax-input-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.help { display: inline-grid; width: 18px; height: 18px; margin-left: 3px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #9ba7a3; cursor: help; font-size: 11px; font-weight: 800; }
.toggle-field { display: flex; grid-column: span 2; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,0.55); cursor: pointer; }
.toggle-field > span { display: grid; }
.toggle-field b { font-size: 13px; }
.toggle-field small { color: var(--muted); font-size: 12px; }
.toggle-field input { position: absolute; opacity: 0; }
.toggle-field i { position: relative; flex: 0 0 auto; width: 46px; height: 26px; border-radius: 999px; background: #bdc5c2; transition: 0.2s; }
.toggle-field i::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.18); content: ""; transition: 0.2s; }
.toggle-field input:checked + i { background: var(--teal); }
.toggle-field input:checked + i::after { transform: translateX(20px); }

.tax-table-wrap { overflow-x: auto; margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tax-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tax-table th, .tax-table td { padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tax-table thead th { color: var(--muted); background: #f4f6f3; font-size: 12px; }
.tax-table th:first-child { text-align: left; }
.tax-table tbody th { color: var(--muted); font-weight: 600; }
.tax-table td { font-variant-numeric: tabular-nums; font-weight: 700; }
.tax-table td:nth-child(3) { color: var(--teal); background: rgba(223, 244, 237, 0.28); }
.tax-table tr:last-child th, .tax-table tr:last-child td { border-bottom: 0; }

.calculation-detail { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.55); }
.calculation-detail summary { padding: 16px 18px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.detail-grid > div { padding: 18px; background: #fff; }
.detail-grid b { font-size: 13px; }
.detail-grid p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.final-section { padding: 86px 0 46px; color: #fff; background: var(--navy); }
.section-heading.light .section-number { color: #79d3bf; }
.section-heading.light > p { color: #9db1ad; }
.final-grid { display: grid; grid-template-columns: 1fr 46px 1fr; align-items: center; gap: 18px; }
.final-card { padding: 28px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); background: rgba(255,255,255,0.055); }
.final-card.new { border-color: rgba(121,211,191,0.45); background: rgba(121,211,191,0.08); }
.final-card > p { margin: 21px 0 3px; color: #abc0bc; font-size: 13px; }
.final-card > strong { display: block; overflow-wrap: anywhere; font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.05em; }
.final-card.new > strong { color: #7bd7c2; }
.final-card dl { display: grid; gap: 10px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.final-card dl div { display: flex; justify-content: space-between; gap: 15px; }
.final-card dt { color: #93aaa5; font-size: 13px; }
.final-card dd { margin: 0; font-size: 13px; font-weight: 700; }
.final-arrow { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; color: #7bd7c2; }
.difference-card { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 25px; margin-top: 6px; padding: 21px 26px; border-radius: 15px; color: var(--ink); background: #dff4ed; }
.difference-card > span { color: #49726a; font-size: 13px; font-weight: 700; }
.difference-card strong { margin-left: auto; font-size: 28px; }
.difference-card p { margin: 0; color: #49726a; font-size: 13px; }
.disclaimer { margin: 32px 0 0; color: #809793; font-size: 12px; text-align: center; }

footer { padding: 24px 0; color: #73807d; background: var(--navy); font-size: 12px; }
footer .shell { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.09); }

.positive-text { color: var(--teal) !important; }
.negative-text { color: var(--coral) !important; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-result { max-width: 500px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading > p { text-align: left; }
  .personal-layout { grid-template-columns: 1fr; }
  .tax-input-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 30px, 1160px); }
  .topbar { padding: 10px 15px; }
  .save-state { display: none; }
  .button { min-height: 38px; padding: 0 11px; }
  .brand-title { display: none; }
  .hero { padding-top: 58px; padding-bottom: 40px; }
  .hero-copy { font-size: 16px; }
  .step-track { margin-top: 46px; }
  .step-track span { font-size: 0; }
  .step-track b { margin: 0; font-size: 11px; }
  .step-track i { margin: 0 9px; }
  .section { padding: 58px 0; }
  .section-heading > div { gap: 10px; }
  .company-grid, .base-formulas { grid-template-columns: 1fr; }
  .company-card { padding: 21px; }
  .input-pair { gap: 7px; }
  .rate-comparison { grid-template-columns: 1fr; }
  .versus { margin: -8px auto; }
  .rate-card { grid-template-columns: 1fr 110px; padding: 22px; }
  .personal-inputs, .base-card { padding: 21px; }
  .inline-variables { grid-template-columns: 1fr 1fr; }
  .inline-variables label:last-child { grid-column: 1 / -1; }
  .gross-comparison { grid-template-columns: 1fr; padding: 18px; }
  .gross-delta { min-width: auto; border: 0; border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); }
  .notice { grid-template-columns: auto 1fr; }
  .notice a { grid-column: 2; }
  .tax-input-grid { grid-template-columns: 1fr; }
  .toggle-field { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .final-grid { grid-template-columns: 1fr; }
  .final-arrow { margin: -5px auto; transform: rotate(90deg); }
  .difference-card { align-items: flex-start; flex-direction: column; gap: 6px; }
  .difference-card strong { margin: 0; }
  footer .shell { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* HD.com design alignment */
:root {
  --ink: #000;
  --muted: #555;
  --paper: #fff;
  --white: #fff;
  --line: #e4e4e4;
  --navy: #002554;
  --navy-2: #143b66;
  --teal: #008233;
  --teal-light: #eef7f1;
  --blue: #0068a9;
  --blue-light: #eef4f8;
  --coral: #0068a9;
  --coral-light: #f1f4f8;
  --shadow: none;
  --radius: 10px;
}

body {
  color: #000;
  background: #fff;
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  word-break: keep-all;
}

h1,
h2,
h3,
.hero-result strong,
.formula-result strong,
.average-band strong,
.rate-total strong,
.base-card > strong,
.gross-comparison strong,
.final-card > strong,
.difference-card strong {
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  font-weight: 700;
}

b,
strong,
.button,
.field,
.status-tag,
.section-nav,
.brand-title,
.brand-wordmark {
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  font-weight: 700;
}

#performanceTitle,
#personalTitle,
#taxTitle,
#finalTitle {
  scroll-margin-top: 100px;
}

.shell { width: min(1120px, calc(100% - 64px)); }

.topbar {
  min-height: 82px;
  padding: 0 max(32px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid #e4e4e4;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.brand { gap: 12px; min-width: 290px; font-size: 14px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #002554 0%, #008233 100%);
  font-size: 18px;
  font-weight: 800;
}
.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #002554;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.brand-wordmark em {
  color: #008233;
  font-style: normal;
}
.section-nav { display: flex; align-self: stretch; align-items: center; gap: 38px; }
.section-nav a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  color: #1a1a1a;
  font-size: 14px;
  text-decoration: none;
}
.section-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 3px;
  background: #008233;
  content: "";
  transition: right 0.2s ease, left 0.2s ease;
}
.section-nav a:hover { color: #008233; }
.section-nav a:hover::after { right: 0; left: 0; }
.top-actions { min-width: 215px; justify-content: flex-end; }
.save-state { color: #777; }
.button { border-radius: 4px; }
.button.ghost { border-color: #d7d7d7; background: #fff; }
.button.dark { background: #000; }

.hero { padding-top: 112px; padding-bottom: 82px; }
.eyebrow {
  gap: 0;
  margin-bottom: 40px;
  color: #000;
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.eyebrow::before {
  width: 10px;
  height: 10px;
  margin-right: 10px;
  background: linear-gradient(135deg, #84bd00 0 50%, #008233 50% 100%);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 38% 50%);
  content: "";
}
.eyebrow span { display: none; }
.hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.5fr); gap: 70px; }
h1 {
  font-size: clamp(46px, 5.5vw, 68px);
  line-height: 1.18;
  letter-spacing: -0.045em;
}
h1 em {
  color: #008233;
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  letter-spacing: -0.045em;
}
.hero-copy { max-width: 670px; margin-top: 31px; color: #4d4d4d; line-height: 1.7; }
.hero-result {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: 8px;
  background: #002554;
}
.hero-result::before {
  position: absolute;
  top: -40px;
  right: -48px;
  width: 165px;
  height: 165px;
  border: 36px solid rgba(0, 174, 93, 0.22);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 35% 50%);
  content: "";
  transform: rotate(-8deg);
}
.hero-result > * { position: relative; z-index: 1; }
.hero-result p { color: rgba(255, 255, 255, 0.7); }
.hero-result strong { font-size: clamp(30px, 3.5vw, 44px); }
.delta-pill { color: #fff; background: rgba(255,255,255,0.12); }
.delta-pill.negative { color: #fff; background: rgba(255,255,255,0.12); }
.step-track { margin-top: 82px; color: #707070; }
.step-track .active, .step-track .active b { color: #008233; }
.step-track i { background: #dedede; }

.section { padding: 100px 0; }
.section-tint { background: #f5f5f5; }
.section-heading { margin-bottom: 46px; }
.section-heading > div { display: block; }
.section-number {
  display: block;
  margin-bottom: 11px;
  color: #008233;
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
}
h2 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.25; }
.section-heading > p { color: #555; line-height: 1.7; }
.data-source {
  display: block;
  margin-top: 8px;
  color: #777;
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  font-size: 12px;
}
.data-source a {
  margin-right: 4px;
  color: #008233;
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}
.data-source a:hover { text-decoration: underline; }

.company-card,
.rate-card,
.personal-inputs,
.base-card,
.tax-table-wrap,
.calculation-detail {
  border-color: #e2e2e2;
  border-radius: 8px;
  box-shadow: none;
}
.company-card {
  position: relative;
  padding: 30px;
  background: #fff;
}
.company-card::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: #002554;
  content: "";
}
.company-card:nth-child(2)::before { background: #008233; }
.card-kicker { margin-bottom: 28px; color: #1a1a1a; }
.input-wrap input,
select {
  min-height: 52px;
  border-color: #d7d7d7;
  border-radius: 4px;
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  font-weight: 700;
}
.input-wrap input:focus,
select:focus { border-color: #008233; box-shadow: 0 0 0 3px rgba(0,130,51,0.08); }
.formula-result span {
  border-radius: 3px;
  color: #fff;
  background: #002554;
}
.company-card:nth-child(2) .formula-result span { background: #008233; }
.average-band {
  border-color: #dfe7e1;
  border-radius: 8px;
  background: #f1f6f3;
}
.formula-badge { border-radius: 3px; background: #008233; }
.average-band small, .average-band p { color: #4d4d4d; }
.average-band strong { color: #008233; }
.average-method {
  display: grid;
  flex: 0 0 158px;
  gap: 5px;
  margin-left: auto;
  color: #555;
  font-size: 11px;
  font-weight: 700;
}
.average-method select {
  min-height: 40px;
  padding: 0 10px;
  border-color: #cfd9d2;
  font-size: 13px;
}
.average-band > strong { margin-left: 24px; }
.rate-card { border-radius: 8px; }
.rate-card.new { border: 2px solid #008233; box-shadow: none; }
.status-tag { border-radius: 3px; }
.old .status-tag { color: #002554; background: #eef4f8; }
.new .status-tag { color: #006b2a; background: #eaf5ee; }
.rate-card.new .rate-total strong { color: #008233; }
.versus { border-radius: 4px; background: #000; }
.floor-setting { border: 1px solid #e2e2e2; border-radius: 6px; background: #fff; }

.personal-inputs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
}
.base-card { border: 1px solid #e2e2e2; border-radius: 8px; }
.base-card.new { border: 2px solid #008233; }
.base-card.new > strong { color: #008233; }
.gross-comparison {
  border-radius: 8px;
  background: #002554;
}
.gross-comparison .highlight strong { color: #71d096; }

.notice {
  border-color: #dfe5ea;
  border-radius: 6px;
  background: #f1f4f8;
}
.notice-icon { border-radius: 3px; background: #0068a9; }
.notice p { color: #4d5c68; }
.notice a { color: #002554; }
.help { background: #777; }
.toggle-field { border-radius: 6px; background: #fafafa; }
.toggle-field input:checked + i { background: #008233; }
.tax-table-wrap { border-radius: 8px; }
.tax-table thead th { color: #333; background: #f5f5f5; }
.tax-table td:nth-child(3) { color: #008233; background: #f2f8f4; }
.calculation-detail { border-radius: 6px; background: #fafafa; }

.final-section { padding-top: 100px; background: #002554; }
.section-heading.light .section-number { color: #71d096; }
.section-heading.light > p { color: rgba(255,255,255,0.68); }
.final-card { border-radius: 8px; background: rgba(255,255,255,0.05); }
.final-card.new { border: 2px solid #71d096; background: rgba(0,130,51,0.16); }
.final-card.new > strong { color: #86dfa8; }
.final-arrow { border-radius: 4px; color: #71d096; }
.difference-card { border-radius: 6px; background: #fff; }
.difference-card > span, .difference-card p { color: #4d4d4d; }
.difference-card strong { color: #008233; }
footer { background: #001a3a; }

.positive-text { color: #008233 !important; }
.negative-text { color: #d53f32 !important; }

@media (max-width: 1050px) {
  .section-nav { display: none; }
  .brand, .top-actions { min-width: auto; }
  .save-state { display: none; }
}

@media (max-width: 820px) {
  .section-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-result { max-width: 520px; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 32px, 1120px); }
  .topbar { min-height: 68px; padding: 0 16px; }
  .brand { gap: 6px; }
  .brand-mark { width: 32px; height: 32px; font-size: 15px; }
  .brand-wordmark { gap: 4px; font-size: 14px; }
  .hero { padding-top: 72px; padding-bottom: 50px; }
  .eyebrow { margin-bottom: 26px; font-size: 13px; }
  h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-copy { line-height: 1.65; }
  .hero-result { padding: 26px; }
  .step-track { margin-top: 48px; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-number { margin-bottom: 7px; }
  .company-card, .rate-card, .personal-inputs, .base-card { padding: 22px; }
  .average-band { flex-wrap: wrap; gap: 16px; }
  .average-band > div:first-child { width: 100%; }
  .average-method { flex-basis: 150px; margin-left: 0; }
  .average-band > strong { margin-left: auto; }
  .personal-inputs { grid-template-columns: 1fr; }
  .final-section { padding-top: 72px; }
  .print-status { top: 78px; right: 16px; left: 16px; max-width: none; }
}

@page { size: A4 portrait; margin: 12mm; }

@media print {
  *, *::before, *::after {
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html, body { width: auto; color: #000 !important; background: #fff !important; }
  body { font-size: 10pt; line-height: 1.35; }
  .topbar, .print-status, .notice a, .help, footer, .lock-screen { display: none !important; }
  .shell { width: 100%; max-width: none; }

  .hero { padding: 0 0 8mm; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 68mm; gap: 10mm; }
  .hero h1 { font-size: 28pt; }
  .hero-copy { margin-top: 4mm; font-size: 10pt; }
  .hero-result { padding: 5mm; border: 1px solid #cbd3dc; color: #000; background: #fff; }
  .hero-result p, .delta-pill { color: #333; }
  .hero-result strong { font-size: 20pt; }
  .delta-pill { margin-top: 3mm; border: 1px solid #d8d8d8; background: #fff; }
  .step-track { display: none; }

  .section, .final-section { padding: 8mm 0; break-inside: auto; }
  .section + .section, .final-section { border-top: 1px solid #d8d8d8; }
  .section-tint, .final-section { color: #000 !important; background: #fff !important; }
  .section-heading { margin-bottom: 5mm; }
  .section-heading h2 { font-size: 20pt; }
  .section-heading > p, .section-heading.light > p { color: #555; }

  .company-grid, .base-formulas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate-comparison { grid-template-columns: 1fr auto 1fr; }
  .personal-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-grid { grid-template-columns: 1fr auto 1fr; }
  .company-card, .rate-card, .personal-inputs, .base-card,
  .average-band, .gross-comparison, .notice, .tax-table-wrap,
  .calculation-detail, .final-card, .difference-card {
    break-inside: avoid;
  }

  .company-card, .rate-card, .personal-inputs, .base-card,
  .tax-table-wrap, .calculation-detail, .final-card {
    border-color: #cfcfcf !important;
    color: #000 !important;
    background: #fff !important;
  }
  .final-card > p, .final-card dt { color: #555; }
  .final-card.new > strong, .difference-card strong { color: #006b2a; }
  .final-arrow { color: #006b2a; }

  input, select {
    min-height: 9mm !important;
    border-color: #bbb !important;
    color: #000 !important;
    background: #fff !important;
  }
  a { color: #000; text-decoration: none; }
}
