/* 지역주택조합 추가분담금 계산기 — 포털형 레이아웃 (흰 배경 · 얇은 선 · 촘촘한 행) */
:root {
  --primary: #2156F5;
  --primary-dark: #1843C9;
  --primary-bg: #F0F4FF;
  --text: #191F28;
  --text-2: #4E5968;
  --muted: #8B95A1;
  --line: #E5E8EB;
  --line-2: #F2F4F6;
  --bg: #F7F8FA;
  --up: #E5383B;
  --down: #0E9F6E;
  --warn: #B25E00;
  --warn-bg: #FFF8EC;
  --dark: #191F28;
  --yellow: #FFC21A;
  --header-h: 72px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-size: 14px; line-height: 1.5; letter-spacing: -0.2px;
  word-break: keep-all; overflow-wrap: break-word;
}
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }

/* ---------- 아이콘 ---------- */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.step-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-bg); color: var(--primary); }
.with-ic { display: inline-flex; align-items: center; gap: 6px; }
.with-ic .ic, .section-title h2 .ic { color: var(--primary); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.6px; white-space: nowrap; }
.logo a { color: var(--text); text-decoration: none; }
.mode-switch { display: flex; padding: 3px; border-radius: 8px; background: var(--line-2); }
.mode-switch button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: none; padding: 7px 16px; border-radius: 6px; cursor: pointer;
  color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.mode-switch button[aria-selected="true"] { background: #fff; color: var(--primary); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* ---------- page title ---------- */
.page-head { padding: 28px 0 20px; }
.page-head h1, .page-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.6px; }
.page-head p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.page-head .fun { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--up); }
.page-head .fun::before { content: "※ "; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-bottom: 64px; }
.main-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-col { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; }

/* ---------- step nav ---------- */
.step-nav {
  position: sticky; top: var(--header-h); z-index: 10; background: #fff; display: flex; gap: 2px; overflow-x: auto;
  padding: 10px 0; border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.step-nav::-webkit-scrollbar { display: none; }
.step-nav a {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; text-decoration: none;
  color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.step-nav a i {
  font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--line-2); color: var(--muted); font-size: 11px; font-weight: 700;
}
.step-nav a.active { color: var(--primary); background: var(--primary-bg); }
.step-nav a.active i { background: var(--primary); color: #fff; }

/* ---------- step section ---------- */
.step { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.step-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.step-head .no { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 0.5px; white-space: nowrap; }
.step-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.step-head .desc { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; }
.step-body { padding: 4px 20px 12px; }

/* label | control rows */
.row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.row:last-child { border-bottom: 0; }
.row > label, .row > .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.row .opt { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 2px; }
.req { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px; background: #FFEDEE; color: var(--up); font-size: 11px; font-weight: 700; line-height: 17px; vertical-align: 1px; }
.req-dot { font-style: normal; color: var(--up); margin-left: 1px; }
.tbl-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; word-break: keep-all; }
.tbl-note .req { margin: 0 4px 0 0; }
.sample-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 12px 10px 14px; border: 1px solid #CFDCFF; border-radius: 10px; background: var(--primary-bg); font-size: 13.5px; color: var(--text-2); word-break: keep-all; }
.sample-bar.own { border-color: var(--line); background: #fff; }
.sample-bar b { color: var(--text); }
.sample-bar .req { margin: 0 2px; }
.sample-bar button { flex: none; height: 36px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.btn-own { border: 0; background: var(--primary); color: #fff; }
.btn-sample { border: 1px solid var(--line); background: #fff; color: var(--text-2); }
.control { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.box {
  display: flex; align-items: center; gap: 6px; width: 220px; height: 38px; padding: 0 10px;
  border: 1px solid #D5D9DE; border-radius: 6px; background: #fff;
}
.box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(33, 86, 245, 0.12); }
.box input, .box select {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 0; height: 100%;
  text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.box select { text-align: left; cursor: pointer; }
.box input[type=month] { text-align: left; }
.box input::placeholder { color: #B0B8C1; font-weight: 400; }
.box .unit { color: var(--muted); font-size: 12px; white-space: nowrap; }
.box.sm { width: 120px; }
.help { color: var(--muted); font-size: 12px; min-width: 0; }
.help b { color: var(--text-2); font-weight: 600; }
.summary-line { margin: 8px 0 6px; padding: 10px 12px; background: var(--bg); border-radius: 6px; font-size: 13px; color: var(--text-2); }
.summary-line:empty { display: none; }
.summary-line b { color: var(--primary); }

/* ---------- radio options ---------- */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; }
.choice { display: flex; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.choice input { margin: 2px 0 0; accent-color: var(--primary); }
.choice strong { display: block; font-size: 14px; }
.choice span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-bg); }

/* ---------- grid table (평형 입력·결과) ---------- */
.tbl-wrap { overflow-x: auto; margin: 12px 0 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th {
  background: var(--bg); color: var(--text-2); font-weight: 600; font-size: 12px; text-align: center;
  padding: 8px 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl th small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.tbl td { padding: 6px; border-bottom: 1px solid var(--line-2); text-align: right; white-space: nowrap; }
.tbl td:first-child, .tbl th:first-child { text-align: left; }
.tbl input {
  width: 100%; min-width: 64px; height: 32px; padding: 0 8px; border: 1px solid #D5D9DE; border-radius: 4px;
  text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; background: #fff;
}
.tbl input:focus { outline: none; border-color: var(--primary); }
.tbl input.name { min-width: 72px; padding-right: 26px; }
.tbl .m2 { position: relative; display: block; }
.tbl .m2 i { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--muted); pointer-events: none; }
.tbl td.auto { color: var(--primary); font-weight: 700; text-align: center; }
.tbl tr.mine td { background: var(--primary-bg); }
.tbl tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.tbl tr.sum td { font-weight: 700; border-top: 1px solid var(--line); }
.tbl .del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 4px; }
.tbl .del:hover { color: var(--up); }
.add-row {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; margin: 10px 0 8px;
  border: 1px dashed var(--primary); border-radius: 6px; background: var(--primary-bg); color: var(--primary);
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.add-row:hover { background: #E4ECFF; }
.add-row::before { content: "+"; font-size: 18px; line-height: 1; }

/* ---------- collapsible ---------- */
details.step > summary { list-style: none; cursor: pointer; }
details.step > summary::-webkit-details-marker { display: none; }
details.step > summary .step-head { border-bottom: 0; }
details.step[open] > summary .step-head { border-bottom: 1px solid var(--line-2); }
details.step > summary .toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text-2); font-size: 13px; font-weight: 700; white-space: nowrap; }
details.step > summary .toggle::after { content: "펼치기"; order: -1; }
details.step[open] > summary .toggle::after { content: "접기"; }
details.step > summary .toggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
details.step[open] > summary .toggle::before { transform: translateY(2px) rotate(-135deg); }
details.step > summary:hover .toggle { border-color: var(--primary); color: var(--primary); }
.assume-group { padding: 12px 0 4px; }
.assume-group > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 4px 0; }
.assume-group > summary::-webkit-details-marker { display: none; }
.assume-group h3 { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); }
.assume-group .count { color: var(--muted); font-size: 11px; }
.assume-group > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 8px 4px auto; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform .15s; }
.assume-group[open] > summary::after { margin-bottom: -4px; transform: rotate(-135deg); }
.assume-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.assume-grid .row { grid-template-columns: 130px minmax(0, 1fr); }
.assume-grid .box { width: 140px; }

/* ---------- side: result ---------- */
.panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.panel-body { padding: 18px 20px; }
.result-label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); font-weight: 600; }
.result-label small { color: var(--muted); font-weight: 400; font-size: 12px; }
.result-amount { margin: 6px 0 2px; font-size: 30px; font-weight: 800; letter-spacing: -1px; color: var(--up); font-variant-numeric: tabular-nums; }
.result-amount.refund { color: var(--down); }
.result-sub { font-size: 12px; color: var(--muted); }
.lines { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-2); }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; color: var(--text-2); }
.lines li > span:last-child { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines li.total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line-2); font-weight: 700; color: var(--text); font-size: 14px; }
.lines li.total > span:last-child { font-size: 16px; }
.meter { margin-top: 12px; }
.meter .bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--primary); }
.meter .bar.over i { background: var(--up); }
.meter p { margin: 6px 0 0; font-size: 12px; color: var(--text-2); }

/* management promo */
.promo { border: 1px solid #C9D7FF; background: var(--primary-bg); }
.promo h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; font-weight: 800; }
.promo h3 .ic { color: var(--primary); }
.promo .lead { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); }
.promo .compare { margin: 12px 0; background: #fff; border-radius: 6px; padding: 10px 12px; }
.promo .compare div { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: var(--text-2); }
.promo .compare div > span:last-child { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.promo .compare .save { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line-2); color: var(--text); font-weight: 700; }
.promo .compare .save > span:last-child { color: var(--primary); font-size: 15px; }
.promo ul { list-style: none; margin: 0 0 14px; padding: 0; font-size: 12.5px; color: var(--text-2); }
.promo li { padding-left: 18px; position: relative; margin: 4px 0; }
.promo li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 8px; height: 5px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 4px; height: 44px; border-radius: 6px; border: 0; width: 100%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); }
.promo .eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--primary); }
.promo .tagline { margin: 0 0 10px; padding: 10px 12px; border-radius: 6px; background: #fff; font-size: 13px; color: var(--text-2); text-align: center; }
.promo .tagline b { color: var(--text); }
.btn-sub { display: block; margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.promo .note { margin: 8px 0 0; font-size: 11px; color: var(--muted); text-align: center; }

.alerts { list-style: none; margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; }
.alerts li { padding-left: 18px; position: relative; margin: 3px 0; }
.alerts li::before { content: "!"; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--warn); color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; }
.errors { list-style: none; margin: 0; padding: 12px 14px; border-radius: 8px; background: #FFF0F0; color: var(--up); font-size: 12.5px; }
.disclaimer { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ---------- result detail sections ---------- */
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 16px 0 0; }
.section-title h2 { white-space: nowrap; }
.section-title h2 { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 17px; font-weight: 800; }
.section-title span { color: var(--muted); font-size: 12px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 12px 0 0; overflow-x: auto; }
.tabs button {
  border: 0; background: none; padding: 8px 14px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button.active { color: var(--text); border-bottom-color: var(--text); }
.sens td, .sens th { text-align: center !important; }
.sens td.base { background: var(--primary-bg); color: var(--primary); font-weight: 800; box-shadow: inset 0 0 0 1px var(--primary); }
.caption { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.tbl tr.group td { background: var(--bg); font-weight: 700; color: var(--text); }
.tbl td.formula { text-align: left; color: var(--muted); font-size: 12px; white-space: normal; min-width: 180px; }
.tbl .pct { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 4px; }

/* ---------- promo band / footer ---------- */
.promo-band { background: var(--dark); color: #fff; }
.promo-band .container { display: flex; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.promo-band strong { display: block; font-size: 18px; font-weight: 800; }
.promo-band p { margin: 4px 0 0; color: #B0B8C1; font-size: 13px; }
.promo-band a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-left: auto; flex: none; padding: 12px 22px; border-radius: 6px; background: var(--yellow); color: var(--dark);
  font-weight: 800; text-decoration: none; font-size: 14px;
}
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 40px; font-size: 12px; color: var(--muted); }
.site-footer p { margin: 2px 0; }
.site-footer .company { font-style: normal; margin: 10px 0 4px; color: var(--text-2); }
.site-footer .company a { color: inherit; text-decoration: none; }

/* ---------- 안내 (정적 본문) ---------- */
.info { border-top: 1px solid var(--line); background: var(--bg); padding: 40px 0 56px; }
.info h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.info .updated { margin: 4px 0 20px; font-size: 12px; color: var(--muted); }
.answer { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px; margin-bottom: 12px; }
.answer h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.answer h3 .ic { width: 20px; height: 20px; color: var(--primary); }
.answer p, .answer li { font-size: 14px; color: var(--text-2); line-height: 1.75; }
.answer p { margin: 0; }
.answer ol { margin: 0 0 12px; padding-left: 20px; }
.answer .tbl-wrap { margin-top: 8px; }
.tbl.plain td { white-space: normal; text-align: left; color: var(--text-2); line-height: 1.6; padding: 10px 8px; }
.tbl.plain td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.tbl.plain th { text-align: left; }
.small, .answer p.small { font-size: 12px; margin-top: 8px !important; }
.answer.highlight { border: 1px solid #C9D7FF; background: var(--primary-bg); padding: 24px; }
.answer.highlight .eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--primary); }
.answer.highlight h3 { font-size: 19px; }
.answer.highlight strong { color: var(--text); }
.pains { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pains li { background: #fff; border-radius: 8px; padding: 11px 12px 11px 42px; position: relative; font-size: 13.5px; line-height: 1.5; }
.pains li .ic { position: absolute; left: 13px; top: 11px; width: 19px; height: 19px; color: var(--up); }
.pains li b { color: var(--up); }
.versus { background: #fff; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; padding: 14px 16px; margin-bottom: 14px; }
.versus .versus-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--primary); }
.answer.highlight .btn-primary { max-width: 320px; }
@media (max-width: 720px) {
  .pains { grid-template-columns: minmax(0, 1fr); }
  .answer.highlight .btn-primary { max-width: none; }
}
/* 보고 있는 화면에 맞춰 조합원용/시행사용 링크 전환 */
body[data-mode="member"] .for-developer, body[data-mode="developer"] .for-member { display: none !important; }
.proof-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.proof-card { background: var(--primary-bg); border-radius: 8px; padding: 12px 14px; }
.proof-card .label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.proof-card .label .ic { width: 16px; height: 16px; color: var(--primary); }
.proof-card strong { display: block; margin: 2px 0 4px; font-size: 19px; font-weight: 800; color: var(--primary) !important; letter-spacing: -0.4px; }
.proof-card p { margin: 0; font-size: 13px; line-height: 1.6; }
.callout { margin: 4px 0 16px; font-size: 18px; line-height: 1.5; font-weight: 700; color: var(--text-2); }
.callout span { font-size: 22px; font-weight: 800; color: var(--primary); }
.versus .lead-in { margin: 12px 0 2px; font-size: 13px; color: var(--muted); }
.versus .statement { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 800; color: var(--text); letter-spacing: -0.4px; }
.cta-pair { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-pair a { flex: 1 1 240px; max-width: none !important; }
.btn-outline {
  display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: 6px;
  border: 1px solid var(--primary); background: #fff; color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: none; gap: 6px;
}
.promo .proof { margin: 8px 0 10px; padding: 8px 10px; background: #fff; border-radius: 6px; font-size: 12.5px; color: var(--text-2); }
.promo .proof b { color: var(--primary); }
.band-actions { margin-left: auto; display: flex; gap: 8px; flex: none; }
.promo-band .band-actions a { margin-left: 0; }
.promo-band a.ghost { background: transparent; color: #fff; border: 1px solid #4E5968; }
@media (max-width: 720px) {
  .proof-cards { grid-template-columns: minmax(0, 1fr); }
  .callout { font-size: 16px; }
  .callout span { font-size: 20px; }
  .versus .statement { font-size: 17px; }
  .band-actions { margin-left: 0; flex-direction: column; }
}
/* 프로그램 도입 시 예상 효과 */
.effect { margin-top: 8px; padding: 20px; border: 1px solid #C9D7FF; border-radius: 10px; background: var(--primary-bg); }
.effect-head { display: flex; align-items: center; gap: 6px; color: var(--primary); }
.effect-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--text); }
.effect-assume { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.effect-assume li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--text-2); }
.effect-assume .ic { width: 15px; height: 15px; color: var(--primary); }
.effect-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.effect-stats > div { background: #fff; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.effect-stats .label { font-size: 12px; font-weight: 700; color: var(--text-2); }
.effect-stats .from { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.effect-stats strong { font-size: 17px; font-weight: 800; color: var(--primary); letter-spacing: -0.4px; }
@media (max-width: 1080px) { .effect-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .effect { padding: 16px; } .effect-stats strong { font-size: 16px; } }
/* ---------- 제목줄 버튼 두 개 (붙여서, 그라데이션) ---------- */
.cta-duo { display: flex; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(33, 86, 245, 0.22); }
.cta-duo.in-header { margin-left: auto; }
.cta-duo.below-header { display: none; }
.cta-duo a {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 8px 42px 8px 12px; color: #fff; text-decoration: none; transition: filter .15s;
}
.cta-duo a:hover { filter: brightness(1.08); }
.cta-duo .app { background: linear-gradient(135deg, #5A86FF 0%, #2156F5 50%, #1638B8 100%); }
.cta-duo .dev { background: linear-gradient(135deg, #4A5568 0%, #232B38 55%, #0F141C 100%); }
.cta-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); }
.cta-ic .ic { width: 20px; height: 20px; color: #fff; }
.cta-text { min-width: 0; }
.cta-text strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.3; white-space: nowrap; }
.cta-text small { display: block; margin-top: 1px; font-size: 11px; line-height: 1.35; color: rgba(255, 255, 255, 0.85); }
.cta-duo a small { white-space: nowrap; }

/* 계속 톡톡 누르는 손가락 */
.tap { position: absolute; right: 10px; bottom: 9px; width: 24px; height: 24px; animation: tap 1.6s ease-in-out infinite; }
.tap .ic { width: 24px; height: 24px; color: #fff; fill: rgba(255, 255, 255, 0.25); stroke-width: 1.6; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
.tap .ripple {
  position: absolute; left: 4px; top: 0; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; opacity: 0; animation: ripple 1.6s ease-out infinite;
}
.cta-duo .dev .tap .ic { color: var(--yellow); }
.cta-duo .dev .tap .ripple { border-color: var(--yellow); }
@keyframes tap {
  0%, 100% { transform: translate(7px, 7px); }
  40% { transform: translate(0, 0); }
  50% { transform: translate(0, 0) scale(0.88); }
  60% { transform: translate(0, 0) scale(1); }
}
@keyframes ripple {
  0%, 45% { transform: scale(0.4); opacity: 0; }
  50% { transform: scale(0.6); opacity: 0.9; }
  85%, 100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tap, .tap .ripple { animation: none; }
}
@media (max-width: 1180px) {
  .cta-duo .app small, .cta-duo .dev small { display: none; }
}
@media (max-width: 720px) {
  .cta-duo.in-header { display: none; }
  .cta-duo.below-header { display: flex; flex-direction: column; margin-top: 12px; border-radius: 14px; }
  .cta-duo.below-header a { padding: 11px 40px 11px 12px; gap: 10px; }
  .cta-duo .cta-ic { width: 30px; height: 30px; border-radius: 8px; }
  .cta-duo .cta-ic .ic { width: 17px; height: 17px; }
  .cta-text strong { font-size: 15px; }
  .cta-duo .app small, .cta-duo .dev small { display: block; font-size: 11.5px; }
  .tap { right: 6px; bottom: 6px; width: 20px; height: 20px; }
  .tap .ic { width: 20px; height: 20px; }
  body[data-view="info"] .cta-duo.below-header { display: none; }
}
.faq { margin: 0; }
.faq dt { font-weight: 700; font-size: 15px; padding: 14px 0 6px; border-top: 1px solid var(--line-2); }
.faq dt:first-child { border-top: 0; padding-top: 0; }
.faq dt::before { content: "Q. "; color: var(--primary); }
.faq dd { margin: 0 0 12px; font-size: 14px; color: var(--text-2); line-height: 1.75; }
.law { margin: 0; padding-left: 18px; }

/* 확정값이 아님 표시 */
.tag {
  display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; vertical-align: 1px;
  background: #FFF3E0; color: #B25E00; font-size: 10.5px; font-weight: 700; line-height: 17px; letter-spacing: 0;
}

.tag.law { background: #EEF1F6; color: #4E5968; }

/* ---------- 앱 화면 요소: 데스크톱에서는 숨김 ---------- */
.mobile-bar, .tabbar, .step-actions, .app-progress { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
}

/* ---------- 모바일: 앱 화면 ---------- */
@media (max-width: 720px) {
  :root { --header-h: 92px; --tab-h: 58px; }
  html { scroll-padding-top: 64px; }
  body {
    background: var(--bg); -webkit-tap-highlight-color: transparent;
    padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  }
  .container { padding: 0 16px; }

  /* 앱 상단바 */
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-header .container { flex-wrap: wrap; gap: 6px 10px; height: auto; padding-top: 8px; padding-bottom: 8px; }
  .logo { width: 100%; text-align: center; font-size: 16px; }
  .mode-switch { flex: 1; }
  .mode-switch button { flex: 1; padding: 7px 0; font-size: 14px; }

  .page-head { padding: 16px 0 12px; }
  .page-head h1, .page-head h2 { font-size: 19px; }
  .page-head p { font-size: 13px; }
  .page-head .fun { margin-top: 6px; font-size: 12.5px; }
  .layout { gap: 12px; padding-bottom: 16px; }
  .main-col { gap: 12px; }

  /* 진행 표시 */
  .step-nav { display: none; }
  .app-progress { display: block; padding: 2px 0 4px; }
  .app-progress-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
  .app-progress-label b { color: var(--primary); font-weight: 800; }
  .app-progress-label span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; }
  .app-progress-label .ic { color: var(--primary); }
  .app-progress .track { margin-top: 8px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .app-progress .track i { display: block; height: 100%; background: var(--primary); border-radius: 2px; transition: width .2s; }

  /* 단계 카드 */
  .step { border: 0; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); margin-bottom: 0 !important; }
  .step-head { flex-wrap: wrap; padding: 18px 18px 12px; border-bottom: 0; }
  .step-head .no { display: none; }
  .step-ic { width: 40px; height: 40px; border-radius: 12px; }
  .step-ic .ic { width: 22px; height: 22px; }
  .step-head h2 { font-size: 18px; flex: 1; min-width: 0; }
  .step-head .desc { margin-left: 0; width: 100%; text-align: left; }
  details.step > summary { pointer-events: none; }
  details.step > summary .toggle { display: none; }
  details.step[open] > summary .step-head { border-bottom: 0; }
  .step-body { padding: 0 18px 8px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 0; }
  .control { flex-direction: column; align-items: stretch; gap: 4px; }
  .box { width: 100%; height: 50px; border-radius: 10px; padding: 0 14px; }
  .box input, .box select { font-size: 16px; }
  .tbl input { font-size: 16px; height: 40px; }
  .choices { grid-template-columns: 1fr; }
  .choice { padding: 16px; border-radius: 12px; }
  .assume-grid { grid-template-columns: minmax(0, 1fr); }
  .assume-grid .row { grid-template-columns: minmax(0, 1fr) 150px; align-items: center; }
  .assume-grid .control { flex-direction: row; }
  .assume-grid .box { width: 150px; height: 44px; }
  .add-row { height: 52px; border-radius: 12px; }

  .step-actions { display: flex; gap: 8px; padding: 12px 18px 18px; }
  .step-actions button { flex: 1; height: 52px; border-radius: 12px; border: 0; font-size: 16px; font-weight: 700; cursor: pointer; }
  .step-actions .btn-ghost { flex: 0 0 34%; background: var(--line-2); color: var(--text-2); }
  .step-actions .btn-next { background: var(--primary); color: #fff; }

  /* 화면 전환: 입력 / 결과 / 안내 */
  body[data-view="steps"] .main-col .step:not(.current),
  body[data-view="steps"] .result-detail,
  body[data-view="steps"] .side-col { display: none; }
  body[data-view="result"] .main-col .step,
  body[data-view="result"] .app-progress,
  body[data-view="result"] .page-head { display: none; }
  body[data-view="result"] .layout { display: grid; grid-template-columns: minmax(0, 1fr); }
  body[data-view="result"] .side-col { order: -1; }
  body[data-view="info"] .pane .container,
  body[data-view="info"] .mobile-bar { display: none !important; }
  body:not([data-view="info"]) .info { display: none; }
  body:not([data-view="result"]) .promo-band { display: none; }
  .site-footer { display: none; }
  body[data-view="info"] .site-footer { display: block; padding-bottom: 24px; }

  .panel { border: 0; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
  .panel.promo { border: 1px solid #C9D7FF; }
  .result-amount { font-size: 32px; }
  .result-detail { background: #fff; border-radius: 16px; padding: 4px 16px 16px; }
  .info { padding: 20px 0 24px; border-top: 0; }
  .info h2 { font-size: 19px; }
  .answer { border: 0; border-radius: 16px; padding: 18px; }
  .promo-band .container { flex-direction: column; align-items: stretch; padding-top: 24px; padding-bottom: 24px; }
  .promo-band a { margin-left: 0; text-align: center; }

  /* 예상 금액 알약: 입력 화면에서만 */
  .mobile-bar {
    position: fixed; left: 12px; right: 12px; z-index: 30;
    bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom));
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--dark); color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  }
  body[data-view="steps"] .pane:not([hidden]) .mobile-bar { display: flex; }
  body[data-view="steps"] .layout { padding-bottom: 76px; }
  .mobile-bar small { display: block; font-size: 11px; color: #B0B8C1; }
  .mobile-bar strong { font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; }
  .mobile-bar button { flex: none; height: 38px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; }

  /* 하단 탭바 */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line);
  }
  .tabbar button, .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; cursor: pointer;
  }
  .tabbar .ic { width: 23px; height: 23px; }
  .tabbar :not(.active) > .ic { --ic-tint: 0; }
  .tabbar .active { color: var(--primary); }
}

/* 홈 화면에 설치해 앱으로 열었을 때 */
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); }
}

/* ==========================================================
   모바일 앱 화면: 한 단계가 한 화면에 들어오도록 촘촘하게
   (입력칸 글씨는 16px 유지 — 더 작으면 아이폰이 입력할 때 화면을 확대함)
   ========================================================== */
@media (max-width: 720px) {
  :root { --header-h: 52px; --tab-h: 54px; --bar-h: 60px; }
  body { font-size: 13px; }
  .container { padding: 0 14px; }

  /* 상단바 한 줄: 제목 | 조합원·시행사 */
  .site-header .container { flex-wrap: nowrap; height: var(--header-h); padding-top: 0; padding-bottom: 0; gap: 8px; }
  .logo { width: auto; text-align: left; font-size: 16px; flex: none; }
  .m-hide { display: none; }
  .mode-switch { flex: 1; max-width: 200px; margin-left: auto; padding: 3px; }
  .mode-switch button { padding: 6px 0; font-size: 13px; gap: 4px; }
  .mode-switch .ic { width: 15px; height: 15px; }

  /* 버튼 두 개: 나란히, 납작하게 */
  .cta-duo.below-header { flex-direction: row; margin-top: 8px; border-radius: 12px; }
  .cta-duo.below-header a { flex: 1 1 50%; padding: 8px 26px 8px 8px; gap: 7px; align-items: center; }
  .cta-duo .cta-ic { width: 28px; height: 28px; border-radius: 8px; }
  .cta-duo .cta-ic .ic { width: 16px; height: 16px; }
  .cta-text strong { font-size: 13px; white-space: nowrap; }
  .cta-duo .app small, .cta-duo .dev small { font-size: 10px; line-height: 1.3; white-space: normal; }
  .tap { right: 4px; bottom: 4px; width: 18px; height: 18px; }
  .tap .ic { width: 18px; height: 18px; }

  /* 소개 문단은 줄이고, 안내 문구만 */
  .page-head { padding: 8px 0 6px; }
  .page-head > p { display: none; }
  .page-head h2 { font-size: 16px; margin-bottom: 2px; }
  .page-head .fun { margin-top: 0; font-size: 11.5px; line-height: 1.45; }
  .layout { gap: 8px; }
  .main-col { gap: 8px; }

  /* 진행 표시 */
  .app-progress { padding: 0; }
  .app-progress-label { font-size: 12px; }
  .app-progress .track { margin-top: 6px; height: 3px; }

  /* 단계 카드 */
  .step { border-radius: 14px; }
  .step-head { padding: 12px 14px 4px; gap: 10px; flex-wrap: nowrap; }
  .step-ic { width: 32px; height: 32px; border-radius: 9px; }
  .step-ic .ic { width: 18px; height: 18px; }
  .step-head h2 { font-size: 16px; flex: none; }
  .step-head .desc { flex: 1; min-width: 0; width: auto; font-size: 11px; line-height: 1.4; text-align: right; word-break: keep-all; }
  .step-body { padding: 0 14px 6px; }

  /* 입력 줄: 라벨 | 입력칸, 도움말은 아래 한 줄 */
  .row { grid-template-columns: minmax(0, 1fr) 54%; gap: 2px 10px; padding: 7px 0; align-items: center; }
  .row > label, .row > .label { font-size: 13px; line-height: 1.35; }
  .row .opt { font-size: 11px; }
  .control { display: contents; }
  .box { height: 42px; border-radius: 9px; padding: 0 10px; }
  .box .unit { font-size: 11px; }
  .help { grid-column: 1 / -1; font-size: 11px; line-height: 1.4; min-height: 0; }
  .help:empty { display: none; }
  .summary-line { margin: 6px 0 4px; padding: 8px 10px; font-size: 12px; }
  .choices { gap: 8px; padding: 8px 0; }
  .choice { padding: 12px; }
  .choice strong { font-size: 13.5px; }
  .choice span { font-size: 11.5px; }
  .tbl { font-size: 12px; }
  .tbl th { padding: 6px 4px; font-size: 11px; }
  .tbl td { padding: 4px; }
  .tbl input { height: 38px; min-width: 58px; padding: 0 6px; }
  .add-row { height: 44px; margin: 8px 0 6px; font-size: 13px; }
  .assume-grid .row { grid-template-columns: minmax(0, 1fr) 46%; }
  .assume-grid .box { width: 100%; height: 40px; }
  .assume-group h3 { font-size: 12.5px; }

  /* 단계 넘김은 하단 고정 바로 */
  .step-actions { display: none !important; }
  .mobile-bar {
    left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
    height: var(--bar-h); padding: 0 12px 0 16px; border-radius: 0; box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
  }
  .mobile-bar small { font-size: 10.5px; }
  .mobile-bar strong { font-size: 15px; }
  .bar-nav { display: flex; gap: 6px; flex: none; }
  .bar-nav button { height: 40px; padding: 0 16px; border-radius: 10px; border: 0; font-size: 14px; font-weight: 700; cursor: pointer; }
  .mobile-bar .bar-prev { background: rgba(255, 255, 255, 0.14); color: #fff; }
  .mobile-bar .bar-next { background: var(--primary); color: #fff; min-width: 76px; }
  body[data-view="steps"] .layout { padding-bottom: calc(var(--bar-h) + 12px); }

  /* 하단 탭 */
  .tabbar button, .tabbar a { font-size: 10.5px; gap: 2px; }
  .tabbar .ic { width: 21px; height: 21px; }

  /* 결과 화면도 촘촘하게 */
  .panel-body { padding: 14px; }
  .result-amount { font-size: 28px; }
  .lines li { font-size: 12.5px; }
  .effect { padding: 14px; }
  .effect-head h3 { font-size: 15px; }
  .effect-assume li { font-size: 11.5px; padding: 4px 8px; }
  .effect-stats > div { padding: 10px; }
  .effect-stats strong { font-size: 15px; }
  .section-title h2 { font-size: 15px; }
  .answer { padding: 14px; }
  .answer h3 { font-size: 15px; }
  .answer p, .answer li, .faq dd { font-size: 13px; }
  .faq dt { font-size: 14px; }
}
@media (max-width: 720px) {
  .assume-group { padding: 0; border-bottom: 1px solid var(--line-2); }
  .assume-group > summary { padding: 11px 0; }
  .assume-group[open] { padding-bottom: 6px; }
}

/* 좁은 폰(400px 이하): 상단 버튼 글자가 잘리지 않게 두 줄 허용, 아이콘 축소 */
@media (max-width: 400px) {
  .logo { font-size: 15px; }
  .mode-switch { flex: 0 1 auto; min-width: 0; }
  .mode-switch button { padding: 6px 9px; font-size: 12.5px; white-space: nowrap; }
  .mode-switch .ic { display: none; }
  .cta-duo.below-header a { padding: 8px 20px 8px 8px; gap: 6px; align-items: flex-start; }
  .cta-duo .cta-ic { width: 24px; height: 24px; border-radius: 7px; flex: none; }
  .cta-duo .cta-ic .ic { width: 14px; height: 14px; }
  .cta-text strong { font-size: 12.5px; white-space: normal; word-break: keep-all; line-height: 1.25; }
  .cta-duo .app small, .cta-duo .dev small { font-size: 10px; word-break: keep-all; }
  .tap { right: 3px; bottom: 3px; width: 16px; height: 16px; }
  .tap .ic { width: 16px; height: 16px; }
}

/* 예시/우리 현장 바: 모바일은 한 줄로 촘촘하게 */
@media (max-width: 720px) {
  .sample-bar { margin-top: 6px; padding: 6px 6px 6px 10px; font-size: 11.5px; gap: 8px; border-radius: 9px; }
  .sample-bar button { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
  .req { font-size: 10px; line-height: 15px; padding: 0 4px; margin-left: 4px; }
  .tbl-note { font-size: 11px; }
}

/* 표 입력칸 안내 글씨는 작게 (칸이 좁아 잘리지 않게) */
.tbl input::placeholder { font-size: 12px; color: #A0A8B5; }

/* 모바일 2단계(평형·세대)가 한 화면에 들어가도록 임대 항목 도움말은 숨김 */
@media (max-width: 720px) {
  [data-help="rentalUnits"], [data-help="rentalArea"] { display: none; }
  .tbl-note { margin-top: 6px; }
}

/* 추가분담금 감소를 보장하지 않는다는 안내 */
.soft-notice { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--line); background: var(--bg); border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.soft-notice b { color: var(--text); margin-right: 4px; }
.soft-notice.small { font-size: 12px; padding: 8px 10px; }

/* 시행사용: 자동 저장 안내 */
.saved-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.saved-note button { margin-left: 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; color: var(--text-2); cursor: pointer; }
@media (max-width: 720px) { .saved-note { margin-top: 4px; font-size: 11px; } }

/* 계산기 주소 공유 */
.share-site { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.share-site:hover { border-color: var(--primary); color: var(--primary); }
.share-site .ic { width: 16px; height: 16px; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); opacity: 0; transition: .2s; background: var(--text); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 14px; z-index: 60; pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 720px) {
  .share-site { display: none; }
  .toast { bottom: calc(var(--tab-h) + var(--bar-h) + 16px + env(safe-area-inset-bottom)); }
}

/* 계산하기 바 (PC) */
.calc-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.calc-bar span { font-size: 14px; font-weight: 600; color: var(--up); }
.calc-bar span.done { color: var(--down); }
.btn-calc { height: 48px; padding: 0 28px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.btn-calc:hover { background: var(--primary-dark); }
/* 빈 필수칸 표시 */
.box.need, .tbl input.need { border-color: var(--up) !important; background: #FFF6F6; }
.box.need input { background: transparent; }

/* 홍보 카드 정돈: 같은 폭·같은 줄 맞춤 */
.promo .promo-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 6px; }
.promo .promo-kpi div { background: #fff; border-radius: 10px; padding: 10px 12px; }
.promo .promo-kpi strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.5px; color: var(--primary); line-height: 1.3; }
.promo .promo-kpi span { font-size: 12px; color: var(--text-2); }
.promo .promo-src { margin: 0 0 12px; font-size: 11px; color: var(--muted); }
.promo .compare { margin: 0 0 12px; padding: 2px 14px 4px; border-radius: 10px; background: #fff; }
.promo .compare .cap { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 4px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.promo .compare .r { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); }
.promo .compare .r > span:last-child { text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; word-break: keep-all; }
.promo .compare .r.save { margin: 0; color: var(--text); font-weight: 700; }
.promo .compare .r.save > span:last-child { color: var(--primary); font-size: 15px; }
.promo ul.points { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.promo ul.points li { margin: 0; padding: 9px 10px 9px 28px; border-radius: 10px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--text); position: relative; }
.promo ul.points li::before { left: 11px; top: 13px; }
.promo .btn-primary { width: 100%; justify-content: center; }
.promo .btn-sub { display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 8px; border: 1px solid #C9D7FF; border-radius: 10px; background: #fff; color: var(--primary); font-size: 14px; font-weight: 700; text-decoration: none; }
.promo .btn-sub:hover { border-color: var(--primary); }

@media (max-width: 720px) {
  .calc-bar { display: none; }
}

/* 악순환 고리(빨강, 계속 도는 원) vs 선순환(파랑, 올라가는 계단) */
.cycle { margin: 14px 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cy-card { display: flex; flex-direction: column; padding: 18px 18px 16px; border-radius: 16px; }
.cy-card.bad { background: #FFF5F5; box-shadow: inset 0 0 0 1px #F7D4D5; }
.cy-card.good { background: var(--primary-bg); box-shadow: inset 0 0 0 1px #D3DFFF; }
.cy-h { display: flex; align-items: center; gap: 8px; margin: 0; }
.cy-h b { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; }
.cy-h span { padding: 2px 9px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 800; }
.bad .cy-h { color: var(--up); }
.good .cy-h { color: var(--primary); }
.ring { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin: 14px auto 0; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring .track { fill: none; stroke: #F4C4C5; stroke-width: 1.4; }
.ring .comet { fill: none; stroke: var(--up); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 22 217; animation: cyComet 3.6s linear infinite; }
.ring .ah { fill: var(--up); }
@keyframes cyComet { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -239; } }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.ring-c b { font-size: 24px; font-weight: 900; letter-spacing: -0.6px; color: var(--up); }
.ring-c span { margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.ring-n { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 5px; border-radius: 999px; background: #fff; box-shadow: 0 3px 10px rgba(229, 56, 59, .14), inset 0 0 0 1px #F7D4D5; font-size: 13px; font-weight: 800; color: var(--text); white-space: nowrap; }
.ring-n i { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: var(--up); color: #fff; font-size: 10.5px; font-style: normal; }
.stairs { display: flex; align-items: flex-end; gap: 6px; height: 300px; margin: 14px 0 0; padding: 0; list-style: none; }
.stairs li { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 9px 7px; border-radius: 10px 10px 4px 4px; color: #fff; box-shadow: 0 4px 12px rgba(33, 86, 245, .18); animation: cyRise .7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: bottom; }
.stairs li em { font-style: normal; font-size: 10.5px; font-weight: 800; opacity: .8; }
.stairs li b { font-size: 13.5px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.3; word-break: keep-all; }
.stairs li:nth-child(1) { height: 30%; background: #8EABFF; animation-delay: .05s; }
.stairs li:nth-child(2) { height: 46%; background: #6F93FF; animation-delay: .15s; }
.stairs li:nth-child(3) { height: 62%; background: #4F7BFF; animation-delay: .25s; }
.stairs li:nth-child(4) { height: 78%; background: #3666FB; animation-delay: .35s; }
.stairs li:nth-child(5) { height: 96%; background: linear-gradient(180deg, #2156F5, #1638B8); animation-delay: .45s; }
@keyframes cyRise { from { transform: scaleY(.2); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.cy-flow { margin: auto 0 0; padding-top: 14px; font-size: 12.5px; line-height: 1.6; text-align: center; color: var(--text-2); word-break: keep-all; }
.cy-fix { grid-column: 1 / -1; margin: 6px 0 0; text-align: center; font-size: 16px; font-weight: 800; letter-spacing: -0.4px; color: var(--text); }
.cy-fix b { color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .ring .comet, .stairs li { animation: none; } }
@media (max-width: 860px) {
  .cycle { grid-template-columns: minmax(0, 1fr); }
  .cy-card { padding: 16px 12px 14px; }
  .ring { max-width: 290px; }
  .ring-n { font-size: 12px; padding: 4px 8px 4px 4px; }
  .ring-n i { width: 17px; height: 17px; font-size: 10px; }
  .ring-c b { font-size: 21px; }
  .stairs { height: 200px; gap: 5px; }
  .stairs li { padding: 7px 5px; }
  .stairs li b { font-size: 12px; }
  .cy-fix { font-size: 15px; }
}

/* 안내 탭: 가이드 카드·FAQ 링크 */
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guide-cards a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; }
.guide-cards a:hover { border-color: var(--primary); }
.guide-cards b { display: block; color: var(--text); font-size: 15px; line-height: 1.45; }
.guide-cards span { display: block; margin-top: 4px; color: var(--text-2); font-size: 13px; }
.faq-links { margin: 0; padding: 0; list-style: none; }
.faq-links li { border-bottom: 1px solid var(--line-2); }
.faq-links a { display: block; padding: 12px 0; color: var(--text); font-weight: 600; text-decoration: none; }
.faq-links a::before { content: "Q. "; color: var(--primary); font-weight: 800; }
.faq-links a:hover { color: var(--primary); }
.more-link { margin: 12px 0 0; font-weight: 700; }
.more-link a { text-decoration: none; color: var(--primary); }
.site-footer .foot-nav a { color: var(--text-2); }
@media (max-width: 720px) { .guide-cards { grid-template-columns: minmax(0, 1fr); } }

/* 입력 안내: 지금 채울 칸 */
@keyframes coachPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 56, 59, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(229, 56, 59, 0); } }
.box.coach, .tbl input.coach { border: 2px solid var(--up) !important; animation: coachPulse 1.4s ease-in-out infinite; }
.mobile-bar .bar-next.coach { animation: coachPulse 1.4s ease-in-out infinite; box-shadow: 0 0 0 2px #fff; }
.coach-tip { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 8px 1px 6px; border-radius: 999px; background: var(--up); color: #fff; font-size: 11.5px; font-weight: 800; white-space: nowrap; vertical-align: 1px; }
.coach-tip .ic { width: 14px; height: 14px; transform: rotate(90deg); --ic-tint: 0.35; }
.coach-tip.coach-tbl { display: flex; width: max-content; margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .box.coach, .tbl input.coach, .mobile-bar .bar-next.coach { animation: none; } }

/* 가이드대로 다시 입력 */
.sample-bar .bar-btns { display: flex; gap: 6px; flex: none; }
.btn-tour { border: 1px solid var(--up); background: #FFF6F6; color: var(--up); }
.coach-tip.touring { padding: 3px 3px 3px 9px; font-size: 12.5px; gap: 4px; box-shadow: 0 2px 8px rgba(229, 56, 59, 0.35); }
.coach-tip.touring .tour-next { display: inline-flex; align-items: center; gap: 4px; height: 26px; margin-left: 6px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; color: var(--up); font-size: 13px; font-weight: 800; cursor: pointer; }
.coach-tip.touring .tour-next:hover { background: #FFE9E9; }
.coach-tip.touring kbd { padding: 0 4px; border: 1px solid #F5C9CA; border-radius: 4px; font: 700 10.5px/15px inherit; color: var(--up); background: #FFF6F6; }
.coach-tip.touring .tour-end { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
@media (max-width: 720px) { .coach-tip.touring kbd { display: none; } }
@media (max-width: 720px) {
  .sample-bar.own { flex-wrap: wrap; }
  .sample-bar.own .bar-btns { width: 100%; }
  .sample-bar.own .bar-btns button { flex: 1; }
}
.fine-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.fine-note a { color: var(--text-2); }
.coach-tip.touring.below { display: flex; width: max-content; max-width: 100%; margin: 8px 0 12px 166px; }
@media (max-width: 720px) { .coach-tip.touring.below { margin: 6px 0 10px; } }

/* 프로그램 도입 시 예상 효과: 오·열 맞춘 표 */
.effect-basis { margin: 8px 0 12px; font-size: 12.5px; color: var(--text-2); }
.effect-basis b { margin-right: 4px; color: var(--primary); }
.effect-tbl { background: #fff; border-radius: 10px; padding: 4px 14px; }
.er { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.4fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.er > span:not(:first-child) { text-align: right; }
.er-h { border-top: 0; padding: 8px 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.er-k { font-size: 13.5px; font-weight: 700; color: var(--text); }
.er-a, .er-b { font-size: 13.5px; color: var(--text-2); }
.er-d { font-size: 14px; }
.er-d b { font-weight: 800; }
.er small { margin-left: 1px; font-size: 0.82em; font-weight: 600; opacity: 0.8; }
.effect .caption { margin: 10px 0 0; }
@media (max-width: 720px) {
  .effect-tbl { padding: 2px 12px; }
  .er-h { display: none; }
  .er { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k d" "a a" "b b"; row-gap: 2px; gap: 2px 8px; }
  .er:nth-child(2) { border-top: 0; }
  .er-k { grid-area: k; }
  .er-d { grid-area: d; }
  .er-a { grid-area: a; }
  .er-b { grid-area: b; }
  .er-a, .er-b { display: flex; justify-content: space-between; font-size: 12.5px; }
  .er-a::before, .er-b::before { content: attr(data-h); color: var(--muted); }
}

/* 휴대폰 하단 바: 필수 입력이 끝나면 금액을 눌러 결과로 */
.mobile-bar .ready { cursor: pointer; }
.mobile-bar .ready small::after { content: " · 결과 보기 ›"; color: #8FB0FF; font-weight: 800; }
.mobile-bar .ready strong { animation: barReady 1.8s ease-in-out 2; }
@keyframes barReady { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .mobile-bar .ready strong { animation: none; } }

/* 재개발·재건축 계산기로 가는 길 */
.mode-switch .mode-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 2px; padding: 7px 14px; border-radius: 6px; color: #B45F00; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; background: #FFF3DD; }
.mode-switch .mode-link:hover { background: #FFE7BA; }
/* 조합원용 제목 + 재개발·재건축 계산기 바로가기 */
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ph-row h2 { min-width: 0; }
.ph-row h2 small { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; letter-spacing: -0.2px; color: var(--primary); }
.redev-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px 0 9px; border-radius: 999px; background: #FFF4E0; box-shadow: inset 0 0 0 1px #F5D9A6; color: #B45F00; font-size: 13px; font-weight: 800; letter-spacing: -0.3px; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.redev-chip .ic { width: 16px; height: 16px; }
.redev-chip i { font-style: normal; font-size: 16px; line-height: 1; margin-left: 1px; }
.redev-chip:hover { background: #FFEBC7; box-shadow: inset 0 0 0 1.5px #E3A21A; }
@media (max-width: 720px) {
  .mode-switch .mode-link { display: none; }
  .ph-row h2 { font-size: 20px; }
  .ph-row h2 small { font-size: 12px; }
  .redev-chip { height: 32px; font-size: 12.5px; }
}

/* 폰: 평형별 표(.cards)는 평형마다 카드로, 사업 전체 계산·사업수지표는 한 화면에 들어가게 */
@media (max-width: 640px) {
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: auto; }
  .tbl.cards thead { display: none; }
  .tbl.cards tr { margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
  .tbl.cards tr.mine { background: var(--primary-bg); box-shadow: inset 0 0 0 1.5px var(--primary); }
  .tbl.cards tr.mine td, .tbl.cards tr.mine td:first-child { background: none; box-shadow: none; }
  .tbl.cards td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; text-align: right; white-space: nowrap; }
  .tbl.cards td::before { content: attr(data-label); color: var(--text-2); font-size: 13px; font-weight: 600; text-align: left; white-space: normal; }
  .tbl.cards td:first-child { display: block; margin-bottom: 4px; padding: 0 0 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; font-weight: 800; }
  .tbl.cards td:first-child::before { content: none; }
  #project th, #project td, #d-sheet th, #d-sheet td { padding: 8px 5px; font-size: 12.5px; letter-spacing: -0.3px; }
  #project th, #d-sheet th { white-space: normal; line-height: 1.3; }
  #project td:first-child, #d-sheet td:first-child { white-space: normal; word-break: keep-all; }
  #project td:not(:first-child) { white-space: nowrap; }
  /* 사업수지표: 항목 · 금액 · 비중을 한 줄에, 산식은 그 아래 줄에 */
  #d-sheet, #d-sheet thead, #d-sheet tbody { display: block; }
  #d-sheet tr { display: grid; grid-template-columns: minmax(0, 1fr) auto 46px; align-items: baseline; border-bottom: 1px solid var(--line-2); }
  #d-sheet th, #d-sheet td { border: 0; }
  #d-sheet tr > :nth-child(2) { grid-column: 1 / -1; order: 3; }
  #d-sheet thead th:nth-child(2), #d-sheet td.formula:empty, #d-sheet tr > td:nth-child(2):empty { display: none; }
  #d-sheet td.formula { min-width: 0; padding: 0 5px 8px 14px; font-size: 11.5px; line-height: 1.45; }
  #d-sheet td:nth-child(n+3), #d-sheet th:nth-child(n+3) { white-space: nowrap; text-align: right; }
  #d-sheet tr.group { background: var(--bg); }
  #d-sheet thead tr { align-items: end; background: var(--bg); }
  #d-sheet thead th { background: none; }
  #d-sheet tr.sum { border-top: 1px solid var(--line); }
}
