/* =========================================================
   스마트 라이프 툴즈 – 공통 스타일
   2026 연말정산 환급금 계산기
   ========================================================= */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #3b82f6;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --emerald: #059669;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --amber: #b45309;
  --amber-50: #fffbeb;
  --rose: #dc2626;
  --rose-50: #fef2f2;

  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-2: #f1f5f9;
  --bg: #f7f9fc;
  --white: #ffffff;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px -4px rgba(15, 23, 42, .08);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -16px rgba(15, 23, 42, .18);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 48px -20px rgba(15, 23, 42, .25);

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Segoe UI", "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--emerald) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .6);
}
.brand-mark.small { width: 28px; height: 28px; border-radius: 9px; font-size: 15px; }

.brand-text { font-size: 16.5px; }
@media (max-width: 420px) { .brand-text { font-size: 15px; } }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.is-active { color: var(--blue-dark); font-weight: 700; }

@media (max-width: 860px) {
  .site-nav a:nth-child(2),
  .site-nav a:nth-child(3) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 380px at 12% -10%, #dbeafe 0%, rgba(219, 234, 254, 0) 62%),
    radial-gradient(700px 340px at 92% 0%, #d1fae5 0%, rgba(209, 250, 229, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 40px;
}

.hero-inner { max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .08);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.hero h1 {
  font-size: clamp(30px, 5.2vw, 46px);
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0 0 14px;
}

.hero-sub {
  margin: 0 0 22px;
  color: #475569;
  font-size: clamp(15px, 1.7vw, 17px);
}
.hero-sub strong { color: var(--blue-dark); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.hero-badges li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.br-mobile, .br-desktop { display: none; }
@media (max-width: 640px) { .br-mobile { display: inline; } }
@media (min-width: 641px) { .br-desktop { display: inline; } }

/* ---------- AdSense 광고 영역 ---------- */
.ad-slot {
  margin: 22px auto 0;
  overflow: hidden;
}
.ad-slot ins.adsbygoogle {
  display: block;
  width: 100%;
  margin: 0 auto;
}
.ad-slot[hidden] { display: none; }
.ad-slot-inline { margin-top: 28px; max-width: 728px; }

/* ---------- Cards / layout ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.calc-section { padding-top: 32px; }

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 22px;
  align-items: start;
}

@media (max-width: 1000px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
}

.form-card { padding: 26px; }
@media (max-width: 560px) { .form-card { padding: 20px 16px; border-radius: 18px; } }

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.card-head h3 { font-size: 19px; font-weight: 800; }

.text-btn {
  border: 0;
  background: none;
  color: var(--blue-dark);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 6px;
}
.text-btn:hover { text-decoration: underline; }
.text-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Form ---------- */
.field-group {
  border: 0;
  margin: 0;
  padding: 20px 0 0;
}
.field-group + .field-group { border-top: 1px solid var(--line-2); margin-top: 20px; }

.field-group legend {
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.legend-note {
  font-weight: 500;
  color: var(--muted-2);
  font-size: 12px;
}

.field { margin-top: 14px; }
.field > label,
.label-row > label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.unit {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted-2);
  margin-left: 4px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.label-row > label { margin-bottom: 8px; }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 56px 0 16px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input-wrap input::placeholder { color: #cbd5e1; font-weight: 500; }
.input-wrap input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.input-wrap input:disabled {
  background: #f8fafc;
  color: var(--muted);
  border-color: var(--line-2);
  cursor: not-allowed;
}
.input-wrap .suffix {
  position: absolute;
  right: 16px;
  font-size: 13.5px;
  color: var(--muted);
  pointer-events: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.help {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.chip {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue-dark); }
.chip.is-active {
  background: var(--blue-50);
  border-color: var(--blue);
  color: var(--blue-dark);
}
.chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Stepper */
.stepper {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  height: 52px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.stepper:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.stepper input {
  border: 0;
  text-align: center;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
  min-width: 0;
}
.stepper input:focus { outline: none; }
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn {
  border: 0;
  background: #f8fafc;
  color: #475569;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.step-btn:hover { background: var(--blue-50); color: var(--blue-dark); }
.step-btn:active { background: var(--blue-100); }

/* Switch */
label.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
label.switch-label input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.switch {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .18s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .3);
  transition: transform .18s ease;
}
label.switch-label input:checked + .switch { background: var(--blue); }
label.switch-label input:checked + .switch::after { transform: translateX(16px); }
label.switch-label input:focus-visible + .switch {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
label.switch-label.switch-row { display: flex; align-items: flex-start; margin-top: 4px; margin-bottom: 0; }
label.switch-label.switch-row.compact { margin-top: 10px; }
label.switch-label.switch-row .switch { margin-top: 2px; }
.muted { color: var(--muted); font-style: normal; font-weight: 400; }

.form-foot {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- Result card ---------- */
.result-card {
  padding: 22px;
  position: sticky;
  top: 84px;
}
@media (max-width: 1000px) {
  .result-card { position: static; }
}
@media (max-width: 560px) { .result-card { padding: 16px; border-radius: 18px; } }

.result-empty {
  text-align: center;
  padding: 26px 10px 30px;
}
.empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 26px;
  font-weight: 800;
}
.empty-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.5;
}
.empty-sub { margin: 0; font-size: 12.5px; color: var(--muted-2); }

.result-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  color: #fff;
  background: linear-gradient(140deg, #1d4ed8 0%, #2563eb 46%, #059669 100%);
  box-shadow: 0 14px 30px -18px rgba(29, 78, 216, .9);
  transition: background .3s ease;
}
.result-banner::after {
  content: "";
  position: absolute;
  right: -40px; top: -60px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.result-banner.is-due {
  background: linear-gradient(140deg, #b91c1c 0%, #dc2626 55%, #f97316 100%);
  box-shadow: 0 14px 30px -18px rgba(185, 28, 28, .9);
}
.result-banner.is-zero {
  background: linear-gradient(140deg, #0f172a 0%, #334155 60%, #0f766e 100%);
}

.result-label {
  position: relative;
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  opacity: .88;
}

.result-amount {
  position: relative;
  margin: 0;
  font-size: clamp(32px, 7vw, 40px);
  font-weight: 800;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.result-note {
  position: relative;
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  opacity: .85;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 14px 8px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
}
.quick-stats > div { text-align: center; }
.quick-stats dt {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 3px;
  font-weight: 500;
}
.quick-stats dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* Diagnosis */
.diagnosis { margin-top: 22px; }
.diagnosis h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}
.diagnosis ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.diagnosis li {
  position: relative;
  padding: 12px 14px 12px 40px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  border: 1px solid #dbeafe;
  font-size: 13px;
  line-height: 1.55;
  color: #1e3a8a;
}
.diagnosis li::before {
  content: "TIP";
  position: absolute;
  left: 12px;
  top: 13px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--blue-dark);
  background: #fff;
  border-radius: 4px;
  padding: 1px 3px;
}
.diagnosis li strong { color: #172554; }
.diagnosis li.is-warn {
  background: var(--amber-50);
  border-color: #fde68a;
  color: #78350f;
}
.diagnosis li.is-warn::before { content: "주의"; color: var(--amber); }
.diagnosis li.is-good {
  background: var(--emerald-50);
  border-color: var(--emerald-100);
  color: #064e3b;
}
.diagnosis li.is-good::before { content: "좋아요"; color: var(--emerald); }
.diagnosis li.is-warn::before { letter-spacing: -.02em; }

/* Receipt */
.receipt-wrap {
  margin-top: 20px;
  border-top: 1px solid var(--line-2);
  padding-top: 14px;
}
.receipt-wrap > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.receipt-wrap > summary::-webkit-details-marker { display: none; }
.receipt-wrap > summary::before {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .2s ease;
  opacity: .7;
}
.receipt-wrap[open] > summary::before { transform: rotate(45deg); }

.receipt {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.receipt th, .receipt td {
  padding: 9px 2px;
  text-align: right;
  border-bottom: 1px solid var(--line-2);
  font-weight: 500;
}
.receipt td.lbl {
  text-align: left;
  color: #475569;
  padding-right: 10px;
  line-height: 1.45;
}
.receipt td.lbl small {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 400;
}
.receipt tr.minus td.val { color: #b91c1c; }
.receipt tr.sub td {
  background: #f8fafc;
  font-weight: 700;
  color: var(--ink);
}
.receipt tr.sub td:first-child { border-radius: 8px 0 0 8px; padding-left: 8px; }
.receipt tr.sub td:last-child { border-radius: 0 8px 8px 0; padding-right: 8px; }
.receipt tr.total td {
  border-bottom: 0;
  border-top: 2px solid var(--ink);
  font-weight: 800;
  font-size: 14px;
  padding-top: 12px;
  color: var(--ink);
}
.receipt tr.refund td { color: var(--blue-dark); }

.result-disclaimer {
  margin: 16px 0 12px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted-2);
}

.guide-link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, #eff6ff 0%, #ecfdf5 100%);
  border: 1px solid #dbeafe;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.guide-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.guide-link-text {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-dark);
}
.guide-link-text::after { content: " ↗"; font-weight: 500; }
.guide-link-sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: 54px 0; }
.section-tint {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.section-tint > * { max-width: 1140px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

.section-head { max-width: 720px; margin-bottom: 26px; }
.section-head h2 {
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 800;
  margin: 0 0 8px;
}
.section-head p { margin: 0; color: var(--muted); font-size: 14.5px; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
  gap: 12px;
}
.steps li {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 10px;
}
.steps h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.steps p { margin: 0; font-size: 13px; color: #475569; line-height: 1.6; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.info-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.info-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--emerald);
  background: var(--emerald-50);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.info-card h3 { font-size: 14.5px; font-weight: 700; margin: 0 0 6px; }
.info-card p { margin: 0; font-size: 13px; color: #475569; line-height: 1.62; }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th, .data-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  line-height: 1.5;
}
.data-table thead th {
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
  white-space: nowrap;
}
.data-table tbody td:first-child { font-weight: 600; color: var(--ink); }
.data-table tbody tr:last-child td { border-bottom: 0; }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 820px;
}
.checklist li {
  position: relative;
  padding: 14px 18px 14px 46px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13.5px;
  color: #475569;
  box-shadow: var(--shadow-sm);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 16px; top: 16px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.8px solid var(--emerald);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 21px; top: 19px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--emerald);
  border-bottom: 2px solid var(--emerald);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease;
}
.faq details[open] { border-color: #bfdbfe; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 26px 16px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--blue);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0;
  padding: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.72;
  color: #475569;
}

.page-disclaimer {
  margin: 0 0 50px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.page-disclaimer strong { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0 34px;
}
.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-title { margin: 0; font-size: 15px; font-weight: 700; color: #fff; }
.footer-desc { margin: 2px 0 0; font-size: 12.5px; color: #94a3b8; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
}
.footer-nav a { color: #cbd5e1; }
.footer-nav a:hover { color: #fff; }
.copyright {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, .22);
  font-size: 12px;
  color: #94a3b8;
}

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -18px rgba(15, 23, 42, .5);
}
.mobile-bar .mb-label {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.mobile-bar .mb-amount {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--blue-dark);
  font-variant-numeric: tabular-nums;
}
.mobile-bar.is-due .mb-amount { color: var(--rose); }
.mobile-bar .mb-link {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-dark);
  border: 1px solid #bfdbfe;
  background: var(--blue-50);
  border-radius: 999px;
  padding: 8px 14px;
}
.mobile-bar .mb-link:hover { text-decoration: none; }

@media (max-width: 1000px) {
  .mobile-bar.is-visible { display: flex; }
  body.has-result { padding-bottom: 74px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .mobile-bar, .ad-slot, .site-nav { display: none !important; }
  body { background: #fff; }
  .result-card, .form-card { box-shadow: none; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 문서 페이지 (소개·개인정보처리방침) ---------- */
.doc {
  max-width: 860px;
  padding-top: 34px;
  padding-bottom: 70px;
}
.breadcrumb {
  font-size: 12.5px;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

.doc h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -.03em;
}
.doc-meta {
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.doc h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 40px 0 10px;
  letter-spacing: -.02em;
}
.doc h3 { font-size: 15px; font-weight: 700; margin: 22px 0 8px; }
.doc p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.78; color: #334155; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 20px; }
.doc li { font-size: 14.5px; line-height: 1.78; color: #334155; margin-bottom: 5px; }
.doc strong { color: var(--ink); }
.doc a { text-decoration: underline; text-underline-offset: 2px; }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.doc-table th, .doc-table td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
  line-height: 1.6;
  vertical-align: top;
}
.doc-table thead th {
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table tbody td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

.contact-list { list-style: none; padding-left: 0; }
.contact-list li {
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 14px;
}
.doc-foot {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .doc-table { font-size: 12px; }
  .doc-table th, .doc-table td { padding: 9px 10px; }
}

/* ---------- Mobile header / anchors ---------- */
.brand-text { white-space: nowrap; }
.site-nav a { white-space: nowrap; }

#calc, #guide, #faq, .section { scroll-margin-top: 78px; }

@media (max-width: 640px) {
  .header-inner { gap: 10px; height: 58px; }
  .brand-text { font-size: 14.5px; }
  .site-nav { gap: 14px; font-size: 13.5px; }
  .site-nav a:first-child { display: none; }
  .site-nav a.is-active:first-child { display: none; }
  .hero { padding: 36px 0 28px; }
  .hero-badges { gap: 6px; }
  .hero-badges li { font-size: 11.5px; padding: 6px 10px; }
  .section { padding: 44px 0; }
  #calc, #guide, #faq, .section { scroll-margin-top: 70px; }
}

@media (max-width: 380px) {
  .brand-text { font-size: 13px; }
}

.table-hint {
  display: none;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted-2);
}
@media (max-width: 768px) {
  .table-hint { display: block; }
}
