:root {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #202637;
  background: #f6f7fa;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --accent: #3749bd;
  --muted: #687083;
  --line: #e8ebf1;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select, input { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
input, select { min-width: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid #8e9af0;
  outline-offset: 3px;
}
.calculator-shell { width: min(100% - 40px, 680px); margin: 0 auto; padding: 58px 0 32px; }
.page-heading { margin-bottom: 30px; }
.card-name { margin: 0 0 10px; color: var(--accent); font-size: 15px; font-weight: 750; letter-spacing: .01em; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 36px); letter-spacing: -.055em; line-height: 1.3; font-weight: 800; }
.intro { margin: 12px 0 0; font-size: 15px; color: #686f81; line-height: 1.6; word-break: keep-all; }
.blog-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; min-height: 28px; color: var(--accent); font-size: 14px; font-weight: 650; line-height: 1.6; text-underline-offset: 4px; }
.blog-link:hover { text-decoration-thickness: 2px; }
.calculator-card { border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 8px 32px #24345504; overflow: hidden; }
.conditions, .spending { padding: 28px 30px; }
.conditions { border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.035em; }
.step-number { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; background: #edf0fc; color: var(--accent); font-size: 13px; margin-right: 9px; vertical-align: 1px; }
.tier-field { margin-top: 25px; }
.tier-field > label:first-child, .choice-field > label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.exclusion-list { margin: 6px 0 0; padding-left: 17px; }
.exclusion-list li + li { margin-top: 3px; }
.exclusion-details { margin-top: 8px; }
.exclusion-details summary { cursor: pointer; }
.tier-field > .field-hint { margin: -2px 0 10px; }
select { display: block; width: 100%; border: 1px solid #dfe3ec; border-radius: 10px; background: #fff; color: #202637; padding: 13px 30px 13px 13px; font-size: 14px; height: 48px; text-overflow: ellipsis; }
.checkbox-label { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 12px; color: #606777; font-size: 12px; cursor: pointer; line-height: 1.5; }
.checkbox-label input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.benefit-selects { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; margin-top: 25px; }
.choice-hint { margin-top: 10px; }
.section-heading { margin-bottom: 8px; }
.section-heading > .field-hint { margin-top: 10px; }
.amount-row { display: grid; grid-template-columns: minmax(0, 1fr) 172px; align-items: center; gap: 22px; padding: 21px 0; border-bottom: 1px solid #f0f1f5; }
.amount-copy label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; line-height: 1.55; word-break: keep-all; }
.rate { display: inline-block; padding: 1px 5px; background: #eff1fc; border-radius: 4px; color: var(--accent); font-size: 11px; line-height: 1.6; font-weight: 700; white-space: nowrap; }
.rate.neutral { color: #687083; background: #f3f4f7; }
.money-input { display: flex; align-items: center; gap: 7px; border: 1px solid #e0e4ed; border-radius: 10px; padding-right: 13px; background: #fafbfd; transition: border-color .15s, background .15s; }
.money-input:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px #3749bd0d; }
.money-input input { width: 100%; background: transparent; border: 0; outline: 0; padding: 13px 0 13px 12px; text-align: right; font-size: 16px; line-height: 1.35; font-weight: 650; font-variant-numeric: tabular-nums; }
.money-input input:focus-visible { outline: 0; }
.money-input input::placeholder { color: #b1b7c5; font-weight: 400; }
.money-input > span { font-size: 13px; color: #687083; flex-shrink: 0; }
[aria-invalid="true"] { outline: 1px solid #c94040 !important; outline-offset: 1px; border-radius: 8px; }
.field-error { font-size: 12px; line-height: 1.5; color: #bd3434; margin: 7px 0 0; word-break: keep-all; overflow-wrap: anywhere; }
.form-error { margin: 0 0 14px; }
.other-row { border-bottom: 0; }
.total-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding: 22px 0; margin-top: 2px; }
.total-row > span { font-size: 13px; color: #686f80; }
.total-row > strong { font-size: 18px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calculate-button { width: 100%; border: 0; border-radius: 12px; background: var(--accent); color: #fff; padding: 18px 20px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.calculate-button:hover { background: #2d3eaa; }
.calculate-button:active { transform: translateY(1px); }
.calculate-button > span { margin-left: 8px; font-weight: 400; }
.calculation-note { margin: 5px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.7; word-break: keep-all; }
.results-card { margin-top: 20px; padding: 30px; background: #edf0fc; border: 1px solid #dfe5f9; border-radius: 22px; }
.result-primary { text-align: center; }
.result-primary h2 { color: #525e89; font-size: 14px; font-weight: 600; }
.picking-rate { color: var(--accent); margin: 8px 0 25px; font-size: clamp(44px, 9vw, 60px); font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.picking-rate .percent { margin-left: 3px; font-size: .55em; font-weight: 650; }
.result-details { border-top: 1px solid #dce2f5; margin: 0; padding-top: 16px; }
.result-details > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; }
.result-details dt { color: #5c6682; }
.result-details dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.result-details .net-result { padding-top: 16px; font-size: 16px; }
.net-result dt, .net-result dd { color: #24378d; font-weight: 750; }
.results-card .calculation-note { margin: 16px 0 0; }
.results-card .calculation-note:empty { display: none; }
.page-footer { padding: 22px 5px 0; text-align: center; color: #697184; font-size: 12px; line-height: 1.7; }
.page-footer p { margin: 0 0 7px; word-break: keep-all; }
.page-footer a { color: #626c83; text-underline-offset: 3px; }
.notice { font-size: 14px; padding: 14px; background: #fff5df; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.spend-assumption { margin: 12px 0 22px; padding: 11px 13px; border-radius: 9px; background: #f4f6fc; color: #515f88; font-size: 12px; line-height: 1.7; word-break: keep-all; }
.spend-group { margin: 25px 0 8px; }
.benefit-section { margin: 24px 0; padding: 20px 16px 0; border: 1px solid #e0e5f0; border-radius: 14px; }
.benefit-title { margin: 0; font-size: 16px; font-weight: 750; color: #3749a5; letter-spacing: -.025em; }
.benefit-title::before { content: ""; display: inline-block; width: 4px; height: 15px; margin-right: 8px; border-radius: 2px; background: #697bda; vertical-align: -2px; }
.benefit-section .spend-group { margin-top: 16px; margin-bottom: 0; }
.benefit-section > .calculation-note { margin: 14px 0 20px; }
.benefit-section #other-fields .amount-row { border-bottom: 0; }
.benefit-section #domestic-input-note { margin: 0 0 20px; }
.common-benefits > .amount-row:last-child { border-bottom: 0; }
.group-heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.group-heading h3, .group-heading h4, .exclusions-box h3, .calculation-detail h3 { margin: 0; font-size: 15px; font-weight: 750; letter-spacing: -.025em; }
.group-heading p { color: var(--accent); font-size: 12px; line-height: 1.6; margin: 5px 0 0; }
.spend-group .amount-row:last-child { border-bottom: 0; }
.exclusions-box { padding: 20px 17px 0; border: 1px solid #e3e7ee; border-radius: 12px; background: #f8f9fc; margin: 20px 0 4px; }
.exclusions-box .amount-row { grid-template-columns: minmax(0, 1fr) 160px; gap: 16px; padding: 18px 0; }
.exclusions-box .amount-row:last-child { border-bottom: 0; }
.exclusions-box .money-input { background: #fff; }
.spend-summary { margin: 20px 0; padding: 16px; border: 1px solid #e1e6f5; border-radius: 12px; background: #f6f7fc; }
.spend-summary .total-row { border: 0; padding: 6px 0; margin: 0; }
.spend-summary .total-row > strong { font-size: 16px; }
.spend-summary .performance-row > span, .spend-summary .performance-row > strong { color: #3549a7; font-weight: 700; }
.spend-summary > p { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #e0e5f2; font-size: 12px; line-height: 1.7; color: #687083; word-break: keep-all; }
.calculation-detail { border-top: 1px solid #dce2f5; padding-top: 24px; margin-top: 24px; }
.performance-equation { display: grid; grid-template-columns: minmax(0,1fr) 10px minmax(0,1fr) 10px minmax(0,1fr); align-items: center; gap: 8px; background: #ffffffb3; padding: 16px 12px; border-radius: 12px; margin-top: 16px; text-align: center; }
.performance-equation > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.performance-equation div > span { color: #667087; font-size: 11px; }
.performance-equation strong { font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.performance-equation .recognized strong { color: var(--accent); }
.math-symbol { color: #7b859d; font-size: 14px; }
.performance-breakdown { padding-left: 18px; margin: 14px 0; color: #5b6680; font-size: 12px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.performance-breakdown li + li { margin-top: 5px; }
.tier-description { color: #32468e; font-size: 13px; line-height: 1.8; font-weight: 650; margin: 14px 0 0; word-break: keep-all; }
.detail-note { font-size: 12px; line-height: 1.7; color: #626e89; margin: 11px 0 0; word-break: keep-all; overflow-wrap: anywhere; }
.discount-table { width: 100%; border-collapse: collapse; margin: 12px 0 0; table-layout: fixed; }
.discount-table th { padding: 10px 0; font-weight: 550; font-size: 11px; color: #616d88; text-align: left; border-bottom: 1px solid #d8dff2; }
.discount-table th:nth-child(1) { width: 23%; }
.discount-table th:nth-child(2) { width: 52%; }
.discount-table th:last-child { width: 25%; text-align: right; }
.discount-table td { border-bottom: 1px solid #dfe5f5; padding: 15px 8px 15px 0; vertical-align: top; font-size: 12px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.discount-table td:first-child { font-weight: 650; }
.discount-table td:nth-child(2) { color: #5e6a84; }
.discount-table td:last-child { text-align: right; padding-right: 0; font-weight: 700; color: #35499f; font-variant-numeric: tabular-nums; }
.discount-table tr:last-child td { border-bottom: 0; }
.calculation-formula { color: #4e5d81; font-size: 13px; line-height: 1.9; margin: 12px 0 0; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .calculator-shell { width: min(100% - 28px, 440px); padding-top: 34px; }
  .page-heading { margin-bottom: 25px; padding: 0 4px; }
  .intro { font-size: 13px; }
  .calculator-card, .results-card { border-radius: 17px; }
  .conditions, .spending { padding: 23px 19px; }
  .benefit-selects { grid-template-columns: 1fr; gap: 17px; }
  .amount-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .exclusions-box { padding: 17px 13px 0; }
  .benefit-section { padding: 18px 13px 0; }
  .exclusions-box .amount-row { grid-template-columns: 1fr; gap: 10px; }
  .money-input input { padding-top: 14px; padding-bottom: 14px; }
  .amount-copy label { font-size: 14px; }
  .total-row > strong { font-size: 17px; }
  .results-card { padding: 27px 22px; }
  .result-details > div { font-size: 13px; }
  .result-details .net-result { font-size: 15px; }
  .performance-equation { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .performance-equation > div { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .performance-equation strong { text-align: right; font-size: 14px; }
  .performance-equation div > span { flex-shrink: 0; }
  .performance-equation .math-symbol { display: none; }
  .performance-equation .recognized { border-top: 1px solid #dce2f5; padding-top: 12px; }
  .discount-table, .discount-table tbody { display: block; }
  .discount-table thead { display: none; }
  .discount-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; padding: 15px 0; border-bottom: 1px solid #dfe5f5; }
  .discount-table tr:last-child { border-bottom: 0; }
  .discount-table td { border: 0; padding: 0; }
  .discount-table td:first-child { grid-column: 1; grid-row: 1; }
  .discount-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .discount-table td:last-child { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
