/* 마진노트 — 배달앱 수수료·순수익 계산기
   핀테크/사장님 톤 · 모바일 우선 반응형 · 외부 라이브러리 없음 */

:root {
  --ink: #14161c;
  --ink-2: #39404e;
  --muted: #6c7686;
  --line: #e4e7ec;
  --line-2: #eef0f4;
  --bg: #f6f7f9;
  --card: #ffffff;
  --accent: #e8590c;
  --accent-2: #c2410c;
  --accent-soft: #fff1e8;
  --accent-line: #f6d3bd;
  --blue: #2f6bff;
  --green: #0f9d76;
  --warn: #b45309;
  --warn-soft: #fff7ed;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(20, 22, 28, .04), 0 8px 24px rgba(20, 22, 28, .06);
  --shadow-lg: 0 2px 4px rgba(20, 22, 28, .05), 0 18px 48px rgba(20, 22, 28, .10);
  --r: 18px;
  --r-sm: 12px;
  --max: 1080px;
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Roboto Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 400px at 50% -180px, #ffe9db 0%, rgba(255, 233, 219, 0) 70%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 헤더 ───────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); font-weight: 800; letter-spacing: -.02em; font-size: 17px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, #f97316 0%, var(--accent) 55%, #c2410c 100%);
  color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 4px 12px rgba(232, 89, 12, .28);
}
.brand small { color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .04em; }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 11px 6px 9px; white-space: nowrap;
  max-width: 62vw; overflow: hidden; text-overflow: ellipsis;
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none;
  box-shadow: 0 0 0 0 rgba(15, 157, 118, .5); animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 157, 118, .45); }
  70% { box-shadow: 0 0 0 7px rgba(15, 157, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 157, 118, 0); }
}

/* ── 히어로 ─────────────────────────────────────────── */
.hero { padding: 30px 0 8px; text-align: center; }
.hero h1 {
  margin: 0 0 10px; font-size: clamp(26px, 5.4vw, 40px); line-height: 1.2;
  letter-spacing: -.04em; font-weight: 850;
}
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 60%, #ffd9c2 60%);
  border-radius: 3px; padding: 0 2px;
}
.hero p {
  margin: 0 auto; max-width: 660px; color: var(--ink-2); font-size: clamp(14px, 2.4vw, 16px);
  word-break: keep-all;
}
.hstats {
  display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 16px;
}
.hstat {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; color: var(--muted); box-shadow: var(--shadow);
}
.hstat b { color: var(--ink); font-weight: 800; letter-spacing: -.01em; }

/* ── 광고 슬롯 ──────────────────────────────────────── */
.ad-slot {
  margin: 22px 0; min-height: 90px; border: 1px dashed #d8dde5; border-radius: var(--r-sm);
  background: repeating-linear-gradient(45deg, #fbfcfd, #fbfcfd 10px, #f5f7fa 10px, #f5f7fa 20px);
  display: grid; place-items: center; color: #9aa3b2; font-size: 11.5px; letter-spacing: .06em;
  text-align: center; padding: 10px;
}

/* ── 공통 카드 ──────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ── 계산기 ─────────────────────────────────────────── */
.calc { padding: 18px; margin-top: 14px; box-shadow: var(--shadow-lg); }
.calc-head h2 {
  margin: 0; font-size: clamp(19px, 3.6vw, 23px); letter-spacing: -.03em; font-weight: 820;
}
.calc-head p { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }

.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.inputs { min-width: 0; }

.field { position: relative; min-width: 0; margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field-label {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  margin: 0 0 6px 2px; letter-spacing: .01em;
}
.field-label span { font-weight: 600; color: var(--muted); font-size: 11px; }

.money {
  display: flex; align-items: center; gap: 8px; background: #f8f9fb;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 14px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.money:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(232, 89, 12, .10); }
.money input {
  flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: inherit;
  font-size: clamp(22px, 6.2vw, 30px); font-weight: 820; letter-spacing: -.03em;
  color: var(--ink); padding: 4px 0; text-align: right; font-variant-numeric: tabular-nums;
}
.money input:focus { outline: none; }
.money .unit { color: var(--muted); font-weight: 700; font-size: 15px; flex: none; }

.num-box {
  display: flex; align-items: center; gap: 4px; background: #f8f9fb;
  border: 1.5px solid var(--line); border-radius: 11px; padding: 7px 10px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.num-box:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(232, 89, 12, .09); }
.num-box input {
  flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: inherit;
  font-size: 16px; font-weight: 750; color: var(--ink); text-align: right; padding: 2px 0;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.num-box input::-webkit-outer-spin-button,
.num-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-box input:focus { outline: none; }
.num-box input:disabled { color: var(--muted); cursor: not-allowed; }
.num-box span { color: var(--muted); font-size: 13px; font-weight: 700; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.chips button {
  appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font: inherit; font-size: 11.5px; font-weight: 650; padding: 5px 9px; border-radius: 999px; cursor: pointer;
}
.chips button:hover { border-color: var(--accent-line); color: var(--accent-2); background: var(--accent-soft); }
.chips button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.hint { margin: 7px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.55; word-break: keep-all; }
.pg-note { margin-top: 2px; padding: 9px 11px; background: #f8f9fb; border-radius: 10px; }

.sub-h {
  margin: 20px 0 9px; padding-top: 16px; border-top: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 800; letter-spacing: -.01em;
}

/* 세그먼트 */
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px;
  background: #f1f3f6; border-radius: 12px; border: 1px solid var(--line-2); margin-bottom: 10px;
}
.seg button {
  appearance: none; border: 0; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 13.5px; font-weight: 750; padding: 9px 8px; border-radius: 9px;
  cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; gap: 1.5px; line-height: 1.3;
}
.seg button[aria-selected="true"] {
  background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 22, 28, .13);
}
.seg button[aria-selected="true"] .seg-sub { color: var(--accent-2); }
.seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.seg-sub { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.seg-service button { font-size: 13px; }

/* 셀렉트 */
.select { position: relative; }
.select::after {
  content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 11px; pointer-events: none;
}
.select select {
  appearance: none; -webkit-appearance: none; width: 100%; font: inherit; font-size: 13.5px;
  font-weight: 650; color: var(--ink); background: #f8f9fb; border: 1.5px solid var(--line);
  border-radius: 11px; padding: 10px 32px 10px 11px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.select select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(232, 89, 12, .09); }

.fixed-fee {
  display: flex; flex-direction: column; gap: 1px; background: #f8f9fb;
  border: 1.5px solid var(--line); border-radius: 11px; padding: 7px 11px; min-height: 43px;
  justify-content: center;
}
.fixed-fee b { font-size: 17px; font-weight: 820; letter-spacing: -.02em; }
.fixed-fee span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.check {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; font-weight: 650;
  color: var(--ink-2); margin: 10px 0 0; cursor: pointer; line-height: 1.45;
}
.check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }

/* 고급 설정 */
.adv {
  margin-top: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fcfcfd;
  padding: 0 13px;
}
.adv summary {
  cursor: pointer; list-style: none; padding: 12px 0; font-size: 12.5px; font-weight: 750;
  color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.adv summary::-webkit-details-marker { display: none; }
.adv summary::after { content: "+"; color: var(--muted); font-weight: 600; font-size: 16px; }
.adv[open] summary::after { content: "–"; }
.adv-body { padding: 2px 0 14px; }
.adv-body .field:last-child { margin-bottom: 0; }
.monthly { max-width: 160px; margin-top: 12px; }

/* ── 결과 카드 ──────────────────────────────────────── */
.result { min-width: 0; }
.res-card {
  position: relative; overflow: hidden;
  background:
    radial-gradient(520px 260px at 88% -10%, rgba(232, 89, 12, .34) 0%, rgba(232, 89, 12, 0) 62%),
    linear-gradient(165deg, #1c2029 0%, #101319 100%);
  border: 1px solid #232833; border-radius: var(--r);
  padding: 20px 18px 16px; color: #f3f5f8;
  box-shadow: 0 2px 6px rgba(16, 19, 25, .18), 0 20px 44px rgba(16, 19, 25, .22);
}
.res-label { margin: 0; font-size: 12.5px; font-weight: 650; color: #a8b1c0; letter-spacing: .01em; }
.res-value {
  margin: 4px 0 0; display: flex; align-items: baseline; gap: 4px;
  font-size: clamp(34px, 9vw, 44px); font-weight: 850; letter-spacing: -.045em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.res-value .won { font-size: 17px; font-weight: 700; color: #c3cad6; letter-spacing: 0; }
.res-value #resProfit.loss { color: #ff8b7a; }
.res-margin { margin: 6px 0 0; font-size: 12.5px; color: #a8b1c0; }
.res-margin b { color: #ffb27a; font-weight: 800; font-size: 14px; }
.res-margin span { color: #7f8899; }

.res-fee {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 12px; color: #a8b1c0;
}
.res-fee b { color: #fff; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.res-fee span:last-child { color: #e8a273; font-weight: 700; }

.res-bar {
  display: flex; height: 8px; border-radius: 5px; overflow: hidden; margin-top: 11px;
  background: rgba(255, 255, 255, .07); gap: 1px;
}
.sb { display: block; height: 100%; }
.sb-cost { background: #5b6a80; }
.sb-fee { background: #e8590c; }
.sb-pack { background: #c99a3f; }
.sb-profit { background: #34d399; }

.res-legend {
  display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px;
  font-size: 10.5px; color: #8c96a7;
}
.res-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.res-legend .dot { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.res-legend .dot.cost { background: #5b6a80; }
.res-legend .dot.fee { background: #e8590c; }
.res-legend .dot.pack { background: #c99a3f; }
.res-legend .dot.profit { background: #34d399; }

.res-warn {
  margin: 12px 0 0; padding: 9px 11px; border-radius: 10px;
  background: rgba(255, 138, 76, .13); border: 1px solid rgba(255, 138, 76, .3);
  color: #ffc3a4; font-size: 11.5px; line-height: 1.5;
}

.res-rows { margin: 14px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.rr {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 6px 0; font-size: 12.5px; color: #c3cad6;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.rr:last-child { border-bottom: 0; }
.rr dt { min-width: 0; word-break: keep-all; }
.rr dt em { font-style: normal; color: #8c96a7; font-size: 11px; margin-left: 2px; }
.rr dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: #e7ebf1; }
.rr.sub dd, .rr.sub dt { color: #8c96a7; }
.rr.strong { color: #fff; font-weight: 700; }
.rr.strong dd { font-weight: 800; }
.rr.fee dd { color: #ffb992; }
.rr.total { border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); margin-top: 2px; }
.rr.total dt { color: #fff; font-weight: 700; }
.rr.total dd { color: #ff9d63; font-weight: 800; }
.rr.profit { padding-top: 10px; }
.rr.profit dt { color: #fff; font-weight: 800; font-size: 13px; }
.rr.profit dd { color: #5ee0b0; font-weight: 850; font-size: 16px; }
.rr.profit dd:not(.pos) { color: #5ee0b0; }

.res-note { margin: 10px 0 0; font-size: 10.5px; color: #7f8899; line-height: 1.5; }
.res-month {
  margin: 10px 0 0; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .06);
  font-size: 11.5px; color: #a8b1c0;
}
.res-month b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.res-month span { color: #8c96a7; }

.res-actions { display: flex; gap: 7px; margin-top: 12px; }
.res-actions button {
  flex: 1; appearance: none; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: #e7ebf1; border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px; padding: 8px 6px; transition: background .15s, border-color .15s;
}
.res-actions button:hover { background: rgba(255, 255, 255, .14); }
.res-actions button:focus-visible { outline: 2px solid #ffb27a; outline-offset: 2px; }

/* ── 섹션 공통 ──────────────────────────────────────── */
.sec { margin-top: 34px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: clamp(19px, 3.4vw, 23px); letter-spacing: -.03em; font-weight: 820; }
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; word-break: keep-all; }

/* ── 비교 표 ────────────────────────────────────────── */
.cmp-card { padding: 16px; }
.cmp-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.cmp th, table.cmp td { padding: 11px 8px; text-align: right; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; white-space: normal; }
table.cmp thead th { font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: .02em; border-bottom: 1px solid var(--line); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
table.cmp td.num.strong { font-weight: 800; }
table.cmp tr.best td { background: #f0fbf5; }
table.cmp tr.best td:first-child { border-radius: 10px 0 0 10px; }
table.cmp tr.best td:last-child { border-radius: 0 10px 10px 0; }
table.cmp tr.current td {
  background: #fff8f4; border-top: 1px solid var(--accent-line); border-bottom: 1px solid var(--accent-line);
}
table.cmp.tier th:first-child, table.cmp.tier td:first-child { width: 30%; }
.ch-name { display: block; font-size: 13px; color: var(--ink-2); }
.ch-name b { font-weight: 800; color: var(--ink); }
.tag-now {
  display: inline-block; margin-left: 5px; font-size: 9.5px; font-weight: 800;
  color: var(--accent-2); background: var(--accent-soft); border-radius: 999px; padding: 1px 6px;
  vertical-align: 1px; white-space: nowrap;
}
.badge-best {
  display: inline-block; margin-left: 5px; font-size: 10px; font-weight: 800;
  color: #fff; background: var(--green); border-radius: 999px; padding: 1px 6px; vertical-align: 1px;
}
.cmp-sp { display: none; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.only-sm { display: none; font-size: 10.5px; color: var(--muted); font-weight: 600; }
table.cmp.tier th[scope="row"] { text-align: left; font-weight: 700; font-size: 12.5px; white-space: normal; }
table.cmp.tier td small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
table.cmp.tier tr.current th[scope="row"] { color: var(--accent-2); }
.note { font-size: 11.5px; color: var(--muted); line-height: 1.65; margin: 12px 0 0; word-break: keep-all; }

/* ── 안내 ───────────────────────────────────────────── */
.guide { padding: 20px; }
.guide h2 { margin: 0 0 12px; font-size: clamp(19px, 3.4vw, 23px); letter-spacing: -.03em; }
.guide h3 { margin: 22px 0 7px; font-size: 15px; letter-spacing: -.02em; }
.guide p, .guide li { color: var(--ink-2); font-size: 13.5px; word-break: keep-all; }
.guide ul { padding-left: 19px; margin: 8px 0; }
.guide li { margin: 4px 0; }

.formula {
  background: #fbfbfc; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 12px 14px; margin: 6px 0 16px;
}
.formula p { margin: 4px 0; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.formula b { color: var(--ink); }

.tbl-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; margin: 8px 0 0; }
table.fee { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
table.fee th, table.fee td {
  padding: 9px 10px; border-bottom: 1px solid var(--line-2); text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
table.fee thead th { font-size: 11px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
table.fee th:first-child, table.fee td:first-child { text-align: left; }
table.fee tbody th[scope="row"] { text-align: left; font-weight: 750; }
table.fee td:nth-child(2) { text-align: left; }
table.fee small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }
table.fee tbody tr:last-child th, table.fee tbody tr:last-child td { border-bottom: 0; }
table.fee.region { min-width: 480px; }
table.fee.region td { text-align: right; }
table.fee.region th[scope="row"] { font-weight: 650; }

/* ── FAQ ────────────────────────────────────────────── */
details.faq {
  border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 0 14px;
  margin-bottom: 8px;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 13px 0; font-weight: 750; font-size: 14px;
  display: flex; justify-content: space-between; gap: 10px; align-items: center; word-break: keep-all;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-weight: 600; font-size: 17px; flex: none; }
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 0 14px; color: var(--ink-2); font-size: 13px; }
details.faq .a p { margin: 0 0 8px; word-break: keep-all; }
details.faq .a p:last-child { margin-bottom: 0; }
details.faq .a em { font-style: normal; font-weight: 700; color: var(--ink); }

/* ── 푸터 ───────────────────────────────────────────── */
.site-foot {
  margin-top: 40px; border-top: 1px solid var(--line); background: #fff;
  padding: 22px 0 34px; font-size: 12.5px; color: var(--muted);
}
.site-foot .rows { display: grid; gap: 6px; }
.site-foot b { color: var(--ink-2); font-weight: 700; }

/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 719px) {
  table.cmp { font-size: 12.5px; }
  table.cmp th, table.cmp td { padding: 10px 6px; }
  table.cmp th.hide-sm, table.cmp td.hide-sm { display: none; }
  .cmp-sp { display: block; }
  table.cmp.tier { min-width: 0; }
  .only-sm { display: block !important; }
  table.cmp.tier th.hide-sm, table.cmp.tier td.hide-sm { display: none; }
  .res-card { padding: 18px 15px 14px; }
}

@media (min-width: 560px) {
  .hstats .hstat { font-size: 12.5px; }
}

@media (min-width: 860px) {
  .wrap { padding: 0 24px; }
  .hero { padding-top: 40px; }
  .calc { padding: 24px; }
  .calc-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 22px; align-items: start; }
  .result { position: sticky; top: 76px; }
  .res-card { padding: 22px 20px 18px; }
  .calc-head p { margin-bottom: 18px; }
  table.cmp.tier { min-width: 0; }
}

@media (hover: none) {
  .chips button:hover { border-color: var(--line); color: var(--ink-2); background: #fff; }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f6;
    --ink-2: #b9c2d0;
    --muted: #8b95a6;
    --line: #232a34;
    --line-2: #1c222b;
    --bg: #0e1218;
    --card: #151a21;
    --accent-soft: #33200f;
    --accent-line: #4a2c15;
    --warn-soft: #2a2113;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .45);
  }
  body {
    background:
      radial-gradient(1100px 400px at 50% -180px, #2a1a10 0%, rgba(42, 26, 16, 0) 70%),
      var(--bg);
  }
  .site-head { background: rgba(14, 18, 24, .85); }
  .money, .num-box, .select select, .fixed-fee { background: #10151c; }
  .money:focus-within, .num-box:focus-within, .select select:focus { background: #121821; }
  .seg { background: #10151c; }
  .seg button[aria-selected="true"] { background: #1d242e; }
  .chips button, .status-pill, .hstat, .site-foot, details.faq { background: var(--card); color: var(--ink); }
  .adv { background: #12171e; }
  .pg-note { background: #10151c; }
  .formula { background: #12171e; }
  table.cmp tr.best td { background: #10291f; }
  .ad-slot {
    background: repeating-linear-gradient(45deg, #10161d, #10161d 10px, #0d1218 10px, #0d1218 20px);
    border-color: #232a34; color: #6c7686;
  }
  .res-card { border-color: #2a3240; }
  .note, .hint { color: var(--muted); }
}
