/* =========================================================
   포요맨 — 공통 스타일
   순수 CSS. 외부 라이브러리·폰트 호출 없음.
   ========================================================= */

:root {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --bg: #f7f8fb;
  --card: #ffffff;
  --brand: #1d4ed8;
  --brand-deep: #16368f;
  --brand-soft: #eaf0ff;
  --accent: #f04438;
  --accent-soft: #fff1ee;
  --ok: #067647;
  --warm: #b54708;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 10px 30px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 60px -24px rgba(16, 24, 40, .28);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic",
          system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", "Noto Sans Mono CJK KR", monospace;
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, svg, canvas { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid rgba(29, 78, 216, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* ---------- 레이아웃 ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  margin-right: 9px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(140deg, #2f6bff, #1d4ed8 60%, #16368f);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(29, 78, 216, .9);
}
.brand-mark svg { width: 18px; height: 18px; display: block; }
.brand-dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { background: #f2f4f7; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 14px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 8px 18px -10px rgba(29, 78, 216, .8);
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { background: #1b45c2; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { background: #f9fafb; }
.btn--soft {
  background: var(--brand-soft);
  color: var(--brand-deep);
  box-shadow: none;
}
.btn--soft:hover { background: #dfe8ff; }
.btn--accent {
  background: linear-gradient(135deg, #ff6a4d, #f04438);
  box-shadow: 0 10px 20px -12px rgba(240, 68, 56, .9);
}
.btn--accent:hover { background: linear-gradient(135deg, #f85c3f, #d92d20); }
.btn--sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  padding: 64px 0 40px;
  background:
    radial-gradient(900px 360px at 12% -10%, #e7eeff 0%, rgba(231, 238, 255, 0) 70%),
    radial-gradient(700px 300px at 92% 0%, #fff0ec 0%, rgba(255, 240, 236, 0) 70%);
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero .lead {
  margin-top: 14px;
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--ink-2);
  max-width: 640px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  list-style: none;
  padding: 0;
}
.hero-badges li {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: var(--shadow-sm);
}
.hero-queries {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.9;
}
.hero-queries a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 78, 216, .28);
}
.hero-queries a:hover { border-bottom-color: var(--brand); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 16px;
}
.eyebrow--accent { color: #b42318; background: var(--accent-soft); }

/* ---------- 섹션 헤더 ---------- */
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* ---------- 카드 그리드 ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.tool-card__top { display: flex; align-items: flex-start; gap: 14px; }
.tool-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.tool-icon svg { width: 24px; height: 24px; }
.tool-icon--accent { background: var(--accent-soft); color: #d92d20; }
.tool-card h3 { font-size: 19px; font-weight: 800; }
.tool-card h3 a { color: inherit; text-decoration: none; }
.tool-card h3 a:hover { color: var(--brand); }
.tool-card .desc { color: var(--muted); font-size: 14.5px; }
.tool-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: #f2f4f7;
  border-radius: 6px;
  padding: 4px 8px;
}
.tool-card__cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tool-card--accent .tool-card__cta { color: #d92d20; }

/* ---------- 광고 자리 ---------- */
/* 실제 광고가 없을 때는 빈 여백으로만 보이도록 배경·테두리를 넣지 않습니다. */
.ad-slot {
  width: 100%;
  min-height: 90px;
  margin: 20px 0;
}
/* 승인 전 빈 슬롯은 여백만 남기지 않고 감춥니다. 광고 코드가 들어오면 자리를 차지합니다. */
.ad-slot:empty { display: none; }
.ad-slot--inline { min-height: 250px; margin: 40px 0; }
@media (min-width: 900px) {
  .ad-slot { min-height: 120px; }
}

/* ---------- 폼 ---------- */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.field .hint { font-size: 12px; font-weight: 500; color: var(--muted); }
.input-wrap { position: relative; }
.input-wrap .unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
}
input[type="text"], input[type="number"], select, textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .12);
}
.input-wrap input { padding-right: 46px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* 세그먼트(탭) */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #eef1f6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}
.segmented button {
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 10px 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.segmented button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: var(--shadow-sm);
}

/* 칩 선택 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.chip input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px -10px rgba(29, 78, 216, .9);
}
.chip input:focus-visible + span { outline: 3px solid rgba(29, 78, 216, .35); outline-offset: 2px; }

/* ---------- 계산 결과 ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.result-card {
  position: sticky;
  top: 84px;
  background: linear-gradient(170deg, #ffffff 0%, #fbfcff 60%, #f5f8ff 100%);
  border: 1px solid #dbe3f6;
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 900px) {
  .result-card { position: static; }
}
.result-label { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.result-value {
  display: block;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-deep);
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}
.result-sub { font-size: 13.5px; color: var(--muted); }
.result-rows {
  margin-top: 20px;
  border-top: 1px dashed #cfd9f0;
  padding-top: 6px;
}
.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e3e9f7;
  font-size: 14.5px;
}
.result-row:last-child { border-bottom: 0; }
.result-row dt { color: var(--ink-2); margin: 0; }
.result-row dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-row--total { font-size: 16px; }
.result-row--total dt, .result-row--total dd { color: var(--brand-deep); }
.result-row .muted { color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.result-row dt { flex: 1 1 auto; min-width: 0; }

.refund-box {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.refund-box .title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.refund-box .amount { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.refund-box .amount.is-empty { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; }
.refund-box .amount.is-refund { color: var(--ok); }
.refund-box .amount.is-due { color: var(--accent); }
.refund-box p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* 막대 그래프 (SVG) */
.bar-chart { display: block; width: 100%; height: auto; overflow: visible; }
.bar-chart .bar-label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  fill: var(--ink-2);
}
.bar-chart .bar-track-svg { fill: #e9eef9; }
.bar-chart .bar-fill-svg { fill: #2f5cf0; }
.bar-chart .bar-fill-svg--b { fill: #7aa2ff; }
.bar-chart .bar-fill-svg--c { fill: #f0674a; }
.bar-chart .bar-value {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  fill: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* 막대 그래프 (CSS) */
.chart { margin-top: 26px; }
.chart h3 { font-size: 14px; font-weight: 800; color: var(--ink-2); margin-bottom: 12px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 96px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .bar-name { color: var(--ink-2); font-weight: 600; }
.bar-track { height: 12px; background: #e9eef9; border-radius: 999px; overflow: hidden; }
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f7cff, #1d4ed8);
  transition: width .45s cubic-bezier(.2, .7, .3, 1);
}
.bar-fill--b { background: linear-gradient(90deg, #7aa2ff, #4f7cff); }
.bar-fill--c { background: linear-gradient(90deg, #ff8a70, #f04438); }
.bar-row .bar-value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }
@media (max-width: 420px) {
  .bar-row { grid-template-columns: 76px minmax(0, 1fr) 82px; font-size: 12px; }
}

/* 안내 박스 */
.callout {
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.65;
  border: 1px solid #dbe3f6;
  background: #f6f9ff;
  color: var(--ink-2);
}
.callout strong { color: var(--brand-deep); }
.callout--warn { background: #fffaeb; border-color: #fedf89; color: #7a2e0e; }
.callout--warn strong { color: #7a2e0e; }

/* 핵심 기준 요약 박스 (사람·AI 검색 공통) */
.keyfacts {
  border: 1px solid #cfdcfb;
  border-left: 4px solid var(--brand);
  background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
  border-radius: 14px;
  padding: 16px 20px 14px;
  box-shadow: var(--shadow-sm);
}
.keyfacts__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: -0.01em;
}
.keyfacts__title span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 3px 9px;
  letter-spacing: 0;
}
.keyfacts ol {
  counter-reset: kf;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.keyfacts li {
  counter-increment: kf;
  position: relative;
  padding-left: 27px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-2);
}
.keyfacts li::before {
  content: counter(kf);
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.keyfacts li strong { color: var(--ink); font-weight: 700; }
.keyfacts__basis {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cfdcfb;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
@media (max-width: 480px) {
  .keyfacts { padding: 14px 15px 12px; }
  .keyfacts li { font-size: 13.5px; padding-left: 25px; }
}

/* ---------- 본문 콘텐츠 ---------- */
.prose {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.8;
}
.prose > * + * { margin-top: 16px; }
.prose h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 40px;
  padding-top: 4px;
  scroll-margin-top: 90px;
}
.prose h3 { font-size: 17.5px; font-weight: 800; color: var(--ink); margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0; }
.prose li + li { margin-top: 7px; }
.prose strong { color: var(--ink); }
.prose .small { font-size: 13.5px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: #f7f8fb; font-weight: 700; color: var(--ink); }

.faq { margin-top: 12px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- 툴 페이지 공통 ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 800; letter-spacing: -0.035em; }
.page-head p { margin-top: 12px; color: var(--muted); max-width: 680px; font-size: 15.5px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.panel .panel-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; }

/* ---------- 캔버스(영수증·부적) ---------- */
.canvas-layout {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .canvas-layout { grid-template-columns: 1fr; }
}
.canvas-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.canvas-frame {
  width: 100%;
  max-width: 400px;
  border-radius: 18px;
  padding: 10px;
  background: #eef1f7;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .04);
}
.canvas-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.canvas-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; max-width: 400px; }
.canvas-actions .btn { flex: 1 1 150px; }

/* ---------- 모바일 결과 도크 ---------- */
.result-dock { display: none; }
@media (max-width: 900px) {
  body.has-dock { padding-bottom: 80px; }
  .result-dock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #ffffff;
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 28px -20px rgba(16, 24, 40, .5);
  }
  .result-dock__label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); }
  .result-dock__value {
    display: block;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-deep);
    font-variant-numeric: tabular-nums;
  }
  .result-dock .btn { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }
}

/* ---------- 토스트 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: #101828;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 90;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 푸터 ---------- */
.site-footer {
  margin-top: 56px;
  background: #0e1526;
  color: #c3cbd8;
  padding: 44px 0 32px;
  font-size: 14px;
}
.site-footer a { color: #dfe5ee; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer .brand { color: #fff; font-size: 18px; }
.site-footer p { color: #98a2b3; font-size: 13.5px; line-height: 1.7; margin-top: 12px; }
.footer-links { display: grid; gap: 9px; align-content: start; }
.footer-links strong { color: #fff; font-size: 13px; letter-spacing: .02em; }
.footer-links a { color: #c3cbd8; font-size: 13.5px; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: #8a94a6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ---------- 유틸 ---------- */
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.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;
}
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

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

/* 인쇄 */
@media print {
  .site-header, .site-footer, .ad-slot, .canvas-actions, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ---------- 판정 배지 (2026-11-24 추가 툴) ---------- */
.verdict {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.65;
  border: 1px solid #dbe3f6;
  background: #f6f9ff;
  color: var(--ink-2);
}
.verdict__mark {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
}
.verdict strong { color: inherit; font-weight: 800; }
.verdict__title { display: block; font-weight: 800; font-size: 14.5px; margin-bottom: 2px; }
.verdict__sub { display: block; margin-top: 2px; font-size: 13px; }
.verdict--ok { background: #ecfdf3; border-color: #a9efc5; color: #05603a; }
.verdict--ok .verdict__mark { background: #12b76a; }
.verdict--warn { background: #fffaeb; border-color: #fedf89; color: #7a2e0e; }
.verdict--warn .verdict__mark { background: #f79009; }
.verdict--bad { background: #fef3f2; border-color: #fecdca; color: #912018; }
.verdict--bad .verdict__mark { background: #f04438; }
.verdict--neutral { background: #f6f9ff; border-color: #dbe3f6; color: var(--brand-deep); }

/* 기한 배너 */
.deadline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}
.deadline .dday {
  font-weight: 800;
  color: #b42318;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
  font-variant-numeric: tabular-nums;
}
.deadline .dday--over { color: #7a2e0e; background: #fffaeb; }

/* 판정 이유 목록 */
.reasons { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.reasons li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.reasons .mark {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: #12b76a;
  margin-top: 1px;
}
.reasons .mark--no { background: #f04438; }
.reasons .mark--info { background: #98a2b3; }
.reasons b { color: var(--ink); }

/* 두 직장 보조 계산 */
.subcalc { margin-top: 22px; }
.subcalc .grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 820px) {
  .subcalc .grid-2 { grid-template-columns: 1fr; }
}
.mini-result {
  background: linear-gradient(170deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #dbe3f6;
  border-radius: 16px;
  padding: 20px;
}
.mini-result .big {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}
.mini-result .cap { font-size: 13px; color: var(--muted); font-weight: 600; }

/* 2027 카드 툴 */
.switch-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.card-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.delta-list { margin-top: 16px; border-top: 1px dashed #cfd9f0; padding-top: 4px; }
.delta-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed #e3e9f7;
  font-size: 14.5px;
}
.delta-item:last-child { border-bottom: 0; }
.delta-item .name { color: var(--ink-2); }
.delta-item .name small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.delta-item .val { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta-item .val.up { color: var(--ok); }
.delta-item .val.down { color: var(--accent); }
.delta-item .val.flat { color: var(--muted); }
.badge-state {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.badge-state--fixed { background: #ecfdf3; color: #05603a; }
.badge-state--pending { background: #fffaeb; color: #7a2e0e; }

/* 폼 구획 */
.fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.fieldset:last-of-type { margin-bottom: 0; }
.fieldset legend {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-deep);
}
.fieldset legend .num {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 800;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.field-grid .field label { font-size: 13px; }
