/* 공통: 색·글꼴·기본 요소 (고객 화면, 세무사 화면 함께 씀) */
:root {
  --brand: #1b3a6b;
  --brand-2: #2a5196;
  --primary: #2f63e8;
  --primary-press: #234fc4;
  --primary-weak: #edf2fe;
  --save: #2563eb;
  --text: #191f28;
  --text-2: #4e5968;
  --muted: #8b95a1;
  --faint: #c4cad1;
  --bg: #f2f4f6;
  --card: #ffffff;
  --line: #e5e8eb;
  --line-2: #f2f4f6;
  --fill: #f2f4f6;
  --ok: #0b8a5f;
  --ok-weak: #e7f6ef;
  --warn: #b45309;
  --warn-weak: #fff4e0;
  --bad: #d63c41;
  --bad-weak: #fdeced;
  --gold: #a16207;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-up: 0 -6px 20px rgba(16, 24, 40, .06);
  --r: 16px;
  --r-lg: 22px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #9db8ff;
    --brand-2: #b9ccff;
    --primary: #4d7cfe;
    --primary-press: #3a68e8;
    --primary-weak: #1a2442;
    --save: #6f9bff;
    --text: #eceff3;
    --text-2: #b4bcc7;
    --muted: #8a94a1;
    --faint: #4a525d;
    --bg: #0e1014;
    --card: #181b21;
    --line: #2a2f37;
    --line-2: #20242b;
    --fill: #22262e;
    --ok: #3ccf91;
    --ok-weak: #13281f;
    --warn: #f0b04a;
    --warn-weak: #2c2212;
    --bad: #ff7a7f;
    --bad-weak: #311719;
    --gold: #e5b453;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-up: 0 -6px 20px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #9db8ff; --brand-2: #b9ccff; --primary: #4d7cfe; --primary-press: #3a68e8; --primary-weak: #1a2442; --save: #6f9bff;
  --text: #eceff3; --text-2: #b4bcc7; --muted: #8a94a1; --faint: #4a525d; --bg: #0e1014; --card: #181b21; --line: #2a2f37; --line-2: #20242b; --fill: #22262e;
  --ok: #3ccf91; --ok-weak: #13281f; --warn: #f0b04a; --warn-weak: #2c2212; --bad: #ff7a7f; --bad-weak: #311719; --gold: #e5b453;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); --shadow-up: 0 -6px 20px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.55; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; border-radius: 10px; }
.logo-light { display: inline-block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: inline-block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline-block; }
.toast {
  position: fixed; left: 50%; bottom: 104px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #191f28; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600;
  transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100% - 32px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* 고객 화면: 한 화면에 질문 하나, 아래 고정 버튼(엄지 위치), 결과는 증권 앱처럼 큰 숫자 + 목록 */
body { background: var(--card); }
body.res { background: var(--bg); }

/* 머리 */
.top {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--card) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
}
body.res .top { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.top-in { max-width: 520px; margin: 0 auto; height: 56px; padding: 0 12px 0 16px; display: flex; align-items: center; gap: 8px; }
.top-in .brand { display: flex; align-items: center; min-width: 0; flex: 1; }
.top-in .brand img { height: 26px; width: auto; }
.top-in .tag { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; padding-right: 4px; }
.top-in .tag .nm { color: var(--primary); font-weight: 800; margin-right: 2px; }
.top-in .ttl { flex: 1; text-align: center; font-size: 15px; font-weight: 700; color: var(--text-2); }
.iconbtn {
  width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; color: var(--text); flex: none;
}
.iconbtn:hover { background: var(--fill); }
.iconbtn svg { width: 24px; height: 24px; }
.textbtn { border: 0; background: none; color: var(--text-2); font-size: 15px; font-weight: 600; padding: 10px 10px; border-radius: 10px; white-space: nowrap; min-width: 44px; min-height: 44px; }
.textbtn:hover { background: var(--fill); color: var(--text); }
.textbtn.ghost { visibility: hidden; }
.prog { height: 3px; background: var(--line-2); }
.prog i { display: block; height: 100%; background: var(--primary); border-radius: 0 3px 3px 0; transition: width .35s ease; }

/* 본문 */
.wrap { max-width: 520px; margin: 0 auto; padding: 8px 20px 140px; }
.q { padding-top: 18px; }
.q .step { font-size: 14px; font-weight: 700; color: var(--primary); margin: 0 0 6px; }
.q h2 { font-size: 25px; line-height: 1.38; font-weight: 750; letter-spacing: -0.03em; margin: 0 0 10px; outline: none; }
.q .help { font-size: 15.5px; color: var(--text-2); margin: 0 0 26px; }
.q .help b { color: var(--text); }
.lbl { display: block; font-size: 14px; font-weight: 650; color: var(--text-2); margin: 0 0 8px; }
.sub { font-size: 14px; color: var(--muted); margin: -4px 0 10px; }

/* 선택지: 목록형, 고르면 파란 테두리와 오른쪽 체크 */
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt {
  width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card);
  transition: border-color .15s, background .15s, transform .08s;
}
.opt:hover { border-color: var(--faint); }
.opt:active { transform: scale(.97); }
.opt > span { flex: 1; min-width: 0; }
.opt b { display: block; font-size: 16.5px; font-weight: 650; }
.opt small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.opt .ck { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; display: grid; place-items: center; color: transparent; }
.opt .ck svg { width: 14px; height: 14px; }
.opt[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-weak); }
.opt[aria-pressed="true"] .ck { background: var(--primary); border-color: var(--primary); color: #fff; }
.opts.two .opt { min-height: 58px; }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; background: var(--fill); color: var(--text-2); font-size: 14.5px; font-weight: 600;
  min-height: 44px; padding: 0 15px; border-radius: 999px; line-height: 1.2; white-space: nowrap; display: inline-flex; align-items: center;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--primary); color: #fff; }

/* 입력 */
.field { margin-bottom: 24px; }
.inp {
  width: 100%; height: 56px; border: 1.5px solid transparent; background: var(--fill); border-radius: 14px;
  padding: 0 16px; font-size: 17px; font-weight: 600; outline: none; transition: border-color .15s, background .15s;
}
.inp::placeholder { color: var(--faint); font-weight: 500; }
.inp:focus { border-color: var(--primary); background: var(--card); }
textarea.inp { height: 96px; padding: 14px 16px; resize: vertical; font-size: 16px; font-weight: 500; }
select.inp { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238b95a1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.money { position: relative; }
.money .inp { font-size: 22px; font-weight: 700; height: 62px; padding-right: 64px; }
.money em { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 17px; font-weight: 650; color: var(--text-2); pointer-events: none; }
.readout { min-height: 22px; margin: 8px 0 6px; font-size: 14.5px; font-weight: 650; color: var(--primary); }
.readout.err { color: var(--bad); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.row2 .field { margin-bottom: 0; }
.row3 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 24px; }
.row3 .field { margin-bottom: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 10px; }
.seg button { border: 0; background: none; min-height: 44px; padding: 0; border-radius: 9px; font-size: 15px; font-weight: 650; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.stepper { display: flex; align-items: center; background: var(--fill); border-radius: 14px; height: 56px; overflow: hidden; }
.stepper button { width: 48px; flex: none; height: 100%; border: 0; background: none; font-size: 24px; font-weight: 500; color: var(--text-2); }
.stepper button:hover { color: var(--primary); }
.stepper input { flex: 1 1 auto; width: 0; min-width: 0; height: 100%; border: 0; background: none; text-align: center; font-size: 20px; font-weight: 700; outline: none; }
.stepper input::placeholder { color: var(--faint); }
.inline-check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text-2); margin-top: 10px; cursor: pointer; }
.inline-check input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }

/* 업종 검색 */
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search .inp { padding-left: 46px; }
.hits { list-style: none; margin: 8px 0 0; padding: 0; border-radius: 16px; overflow: hidden; }
.hits:not(:empty) { border: 1px solid var(--line); box-shadow: var(--shadow); }
.hits li + li { border-top: 1px solid var(--line-2); }
.hits button { width: 100%; text-align: left; border: 0; background: var(--card); padding: 13px 16px; display: block; }
.hits button:hover { background: var(--fill); }
.hits b { display: block; font-size: 15.5px; font-weight: 650; }
.hits span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.hits .empty { display: block; padding: 14px 16px; color: var(--muted); font-size: 14px; }
.picked { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--primary-weak); }
.picked .nm { font-size: 17px; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.picked .nm svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.picked .meta { display: block; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.picked .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.picked .subq { margin-top: 14px; }
.picked .subq .opt { min-height: 54px; }
.tag { font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: var(--card); color: var(--text-2); }
.tag.ok { color: var(--ok); }
.tag.chk { color: var(--warn); }
.tag.no, .tag.none { color: var(--muted); }
.subhead { font-size: 14px; color: var(--muted); font-weight: 650; margin: 26px 0 10px; }

/* 안내 상자 */
.note { font-size: 15px; color: var(--text-2); background: var(--fill); border-radius: 14px; padding: 13px 15px; margin: 12px 0 0; }
.note b { color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--primary); background: var(--primary-weak); padding: 6px 11px; border-radius: 999px; margin-top: 16px; }

/* 해당 사항: 설정 화면처럼 오른쪽 스위치 */
.group { margin-bottom: 22px; }
.group h3 { font-size: 14.5px; color: var(--muted); font-weight: 700; margin: 0 0 8px 2px; }
.tgl-list { border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.tgl + .tgl { border-top: 1px solid var(--line-2); }
.tgl > label { display: flex; align-items: center; gap: 14px; padding: 15px 16px; cursor: pointer; }
.tgl > label > span:not(.switch) { flex: 1; min-width: 0; }
.tgl b { display: block; font-size: 15.5px; font-weight: 650; }
.tgl small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.switch i { position: absolute; inset: 0; background: var(--faint); border-radius: 999px; transition: background .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.tgl .more { padding: 0 16px 16px; }
.tgl .more .field { margin-bottom: 12px; }
.tgl .more .row2 { margin-bottom: 12px; }
.tgl .more .opts { margin-bottom: 4px; }
.tgl .more .opt { min-height: 52px; }
details.morebox > summary { list-style: none; cursor: pointer; font-size: 15px; font-weight: 650; color: var(--text-2); padding: 12px 2px; min-height: 44px; display: flex; align-items: center; gap: 6px; }
details.morebox > summary::-webkit-details-marker { display: none; }
details.morebox > summary svg { width: 18px; height: 18px; transition: transform .2s; }
details.morebox[open] > summary svg { transform: rotate(180deg); }

/* 하단 고정 버튼 */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 18px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--card) 30%);
}
body.res .cta-bar { background: linear-gradient(to bottom, transparent, var(--bg) 30%); }
.cta-in { max-width: 480px; margin: 0 auto; display: flex; gap: 10px; }
.btn {
  height: 56px; border: 0; border-radius: 16px; background: var(--primary); color: #fff; font-size: 17px; font-weight: 700;
  padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: background .15s, transform .12s ease, opacity .15s; flex: 1;
}
.btn:hover { background: var(--primary-press); }
.btn:active { transform: scale(.97); }
.btn[disabled] { background: var(--faint); cursor: not-allowed; opacity: .8; transform: none; }
.btn.sec { background: var(--primary-weak); color: var(--primary); }
.btn.gray { background: var(--fill); color: var(--text); }
.btn.gray:hover { background: var(--line); }
.btn.small { height: 46px; font-size: 15.5px; border-radius: 13px; }
.btn svg { width: 20px; height: 20px; }

/* 첫 화면: 큰 제목, 가운데 카드, 꽉 찬 버튼 */
.intro { text-align: center; padding-top: 22px; }
.intro .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-weak); padding: 6px 12px; border-radius: 999px; }
.intro h1 { font-size: 30px; line-height: 1.32; letter-spacing: -0.035em; font-weight: 800; margin: 16px 0 12px; }
.intro h1 em { font-style: normal; color: var(--primary); }
.intro .lead { font-size: 16px; color: var(--text-2); margin: 0 auto; max-width: 400px; }
.showcase {
  margin: 28px auto 8px; max-width: 420px; text-align: left; border-radius: 24px; padding: 20px;
  background: linear-gradient(150deg, #1b3a6b 0%, #2a5196 60%, #3567c6 100%); color: #fff; box-shadow: 0 14px 36px rgba(27, 58, 107, .28);
}
.showcase .cap { font-size: 13.5px; opacity: .85; font-weight: 600; }
.showcase ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.showcase li { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 11px 13px; font-size: 15px; font-weight: 650; }
.showcase li i { width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; flex: none; font-style: normal; font-size: 17px; line-height: 1; }
.showcase li i svg { width: 17px; height: 17px; }
.showcase li span { flex: 1; }
.showcase li small { font-size: 12.5px; opacity: .8; font-weight: 600; white-space: nowrap; }
.showcase .more { font-size: 13px; opacity: .85; margin-top: 12px; text-align: center; }
.intro .asof { font-size: 13.5px; color: var(--muted); font-weight: 600; margin: 10px 0 0; }
/* 실제로 센 숫자(정식 공개일부터, 기준을 넘을 때만 서버가 넣어 줌) */
.social { display: inline-flex; align-items: center; gap: 8px; margin: 18px auto 0; padding: 9px 15px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: 14.5px; font-weight: 650; max-width: 100%; }
.social .emo { flex: none; }
.social > span:last-child { min-width: 0; }
.social b { color: var(--primary); font-weight: 800; }
.social.in { display: flex; margin: -4px 0 14px; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 12px; }
.social.in b { color: #fff; }
/* 지난 신고 점검 입구 */
.refund-in {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; margin: 14px auto 0; padding: 15px 14px 15px 16px;
  border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); text-align: left;
  transition: transform .12s ease, border-color .15s, background .15s;
}
.refund-in:hover { border-color: var(--faint); }
.refund-in:active { transform: scale(.97); }
.refund-in .emo { width: 44px; height: 44px; border-radius: 14px; background: var(--warn-weak); display: grid; place-items: center; font-size: 22px; flex: none; }
.refund-in .t { flex: 1; min-width: 0; }
.refund-in b { display: block; font-size: 16px; font-weight: 750; letter-spacing: -0.02em; }
.refund-in small { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; font-weight: 500; }
.refund-in .chev { width: 20px; height: 20px; color: var(--faint); flex: none; }
.promise { list-style: none; padding: 0; margin: 26px auto 0; max-width: 420px; text-align: left; display: grid; gap: 14px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; }
.promise svg { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 2px; }
.promise b { display: block; font-size: 15px; }
.promise span { display: block; font-size: 13.5px; color: var(--muted); }
.fine { font-size: 12.5px; color: var(--muted); text-align: center; margin: 22px 0 0; }
.fine.office { margin-top: 26px; color: var(--text-2); }
.fine.office a { color: inherit; text-decoration: none; }
.fine.office + .fine { margin-top: 8px; }

/* 결과 */
.res-load { text-align: center; padding: 80px 10px 40px; color: var(--text-2); font-size: 15.5px; }
.res-load .none { font-size: 18px; font-weight: 700; color: var(--text); }
.res-load .btn { margin-top: 12px; }
.spin { width: 38px; height: 38px; margin: 0 auto 16px; border-radius: 50%; border: 3.5px solid var(--primary-weak); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.res-head { padding: 14px 2px 10px; }
.res-head .who { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.res-head .who span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.hero { background: var(--card); border-radius: var(--r-lg); padding: 22px 20px 20px; box-shadow: var(--shadow); }
.hero .lab { font-size: 15px; font-weight: 650; color: var(--text-2); margin: 0; }
.hero .big { font-size: 42px; line-height: 1.15; font-weight: 800; letter-spacing: -0.04em; margin: 6px 0 4px; color: var(--text); }
.hero .big small { font-size: 24px; font-weight: 750; margin-left: 2px; }
.hero .delta { font-size: 15px; font-weight: 700; color: var(--save); margin: 0; }
.hero .est { font-size: 13px; line-height: 1.5; color: var(--text-2); margin: 4px 0 0; }
.hero .none { font-size: 21px; line-height: 1.42; font-weight: 750; margin: 8px 0 6px; letter-spacing: -0.02em; }
.hero .none + p { font-size: 15px; color: var(--text-2); margin: 0; }
.hero .split { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hero .split span { font-size: 13.5px; font-weight: 650; background: var(--fill); color: var(--text-2); border-radius: 9px; padding: 6px 10px; }
.hero .split b { color: var(--text); font-weight: 750; }
.hero .btn { margin-top: 14px; width: 100%; }
.taxbar { margin-top: 18px; }
.taxbar .rail { position: relative; height: 12px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.taxbar .rail i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--text); border-radius: 999px 0 0 999px; transform-origin: left center; animation: hnhGrow .9s cubic-bezier(.2, .8, .2, 1) .1s both; }
.taxbar .rail s { position: absolute; top: 0; bottom: 0; text-decoration: none; background: repeating-linear-gradient(135deg, var(--save) 0 6px, color-mix(in srgb, var(--save) 65%, #fff) 6px 12px); animation: hnhFade .5s ease .75s both; }
@keyframes hnhGrow { from { transform: scaleX(0); } }
@keyframes hnhFade { from { opacity: 0; } }
.taxbar .legend { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.taxbar .legend b { display: block; font-size: 16px; color: var(--text); font-weight: 750; }
.taxbar .legend .r { text-align: right; }
.taxbar .legend .r b { color: var(--save); }
.taxbar .cap { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.taxbar .cap b { color: var(--text-2); font-weight: 750; }
.carry { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--primary-weak); font-size: 15px; color: var(--text-2); }
.carry b { color: var(--primary); }

.tabs { position: sticky; top: 56px; z-index: 20; margin: 14px -20px 0; padding: 8px 20px; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; text-decoration: none; font-size: 14.5px; font-weight: 700; color: var(--text-2); background: var(--card); border: 1px solid var(--line); min-height: 44px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; transition: transform .12s ease; }
.tabs a:active { transform: scale(.96); }
.tabs a.on { background: var(--text); color: var(--card); border-color: var(--text); }
.tabs a em { font-style: normal; color: var(--primary); margin-left: 3px; }
.tabs a.on em { color: inherit; opacity: .8; }

.sec { margin-top: 18px; scroll-margin-top: 112px; }
.sec > h2 { font-size: 19px; font-weight: 750; letter-spacing: -0.025em; margin: 0 4px 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sec > h2 small { font-size: 13.5px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.sec > p.lead { font-size: 15px; color: var(--text-2); margin: -4px 4px 12px; }
.sec.first { margin-top: 4px; margin-bottom: 18px; }
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }

/* 추천 조합: 체결 내역처럼 오른쪽 정렬 숫자 */
.combo .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 18px; font-size: 15px; }
.combo .row + .row { border-top: 1px solid var(--line-2); }
.combo .row span { color: var(--text-2); }
.combo .row b { font-weight: 750; white-space: nowrap; }
.combo .row b.save { color: var(--save); }
.combo .row.total { background: var(--fill); }
.combo .row.total span { color: var(--text); font-weight: 700; }
.combo .foot2 { padding: 12px 18px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line-2); }
.combo .foot2 p { margin: 0; }
.combo .foot2 p + p { margin-top: 6px; }

/* 혜택 목록: 종목 목록처럼 왼쪽 아이콘, 오른쪽 금액, 누르면 아래에서 상세 */
.list { list-style: none; margin: 0; padding: 4px 0; }
.list li + li .rowbtn { border-top: 1px solid var(--line-2); }
.rowbtn { width: 100%; display: flex; align-items: center; gap: 13px; padding: 14px 14px 14px 18px; border: 0; background: none; text-align: left; transition: background .15s; }
.rowbtn:hover { background: color-mix(in srgb, var(--fill) 60%, transparent); }
.rowbtn:active { background: var(--fill); }
.rowbtn:active .ico { transform: scale(.92); }
.ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--primary-weak); color: var(--primary); transition: transform .12s ease; }
.ico svg { width: 21px; height: 21px; }
.ico .emo { font-size: 21px; line-height: 1; }
.ico.no .emo { filter: grayscale(1); opacity: .55; }
.ico.vat { background: #e9f7f1; color: #0b8a5f; }
.ico.refund { background: #fff1e6; color: #c2570c; }
.ico.local { background: #f2ecff; color: #6d3fd1; }
.ico.future { background: #eaf6ff; color: #0e7bbf; }
.ico.employee, .ico.small, .ico.no { background: var(--fill); color: var(--text-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico.vat { background: #13281f; color: #3ccf91; } :root:not([data-theme="light"]) .ico.refund { background: #2d1d10; color: #f3a15c; } :root:not([data-theme="light"]) .ico.local { background: #221a36; color: #b597ff; } :root:not([data-theme="light"]) .ico.future { background: #10243a; color: #6cc1ff; } }
:root[data-theme="dark"] .ico.vat { background: #13281f; color: #3ccf91; }
:root[data-theme="dark"] .ico.refund { background: #2d1d10; color: #f3a15c; }
:root[data-theme="dark"] .ico.local { background: #221a36; color: #b597ff; }
:root[data-theme="dark"] .ico.future { background: #10243a; color: #6cc1ff; }
.rowbtn .mid { flex: 1; min-width: 0; }
.rowbtn .mid b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.rowbtn .mid small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.rowbtn .st { font-weight: 700; }
.st.likely { color: var(--ok); }
.st.check { color: var(--warn); }
.st.future { color: #0e7bbf; }
.st.need { color: var(--primary); }
.st.no { color: var(--muted); }
.rowbtn .amt { text-align: right; flex: none; max-width: 40%; }
.rowbtn .amt b { display: block; font-size: 16px; font-weight: 750; white-space: nowrap; }
.rowbtn .amt b.txt { font-size: 13.5px; font-weight: 650; color: var(--text-2); white-space: normal; }
.rowbtn .amt small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.rowbtn .chev { width: 18px; height: 18px; color: var(--faint); flex: none; }
.empty-card { padding: 18px; font-size: 15px; color: var(--text-2); }

.warnbox { background: var(--warn-weak); border-radius: var(--r-lg); padding: 16px 18px; }
.warnbox ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--text); }
.warnbox li + li { margin-top: 6px; }
.claim { padding: 18px; }
.claim .yrs { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.claim p { font-size: 15px; color: var(--text-2); margin: 6px 0 12px; }
.claim p.hint-cap { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.claim ul { margin: 0 0 14px; padding-left: 18px; font-size: 15px; }
.claim li + li { margin-top: 4px; }
details.nolist { margin-top: 18px; }
details.nolist > summary { list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 650; color: var(--muted); padding: 10px 4px; min-height: 44px; display: flex; align-items: center; gap: 6px; }
details.nolist > summary::-webkit-details-marker { display: none; }
details.nolist > summary svg { width: 18px; height: 18px; transition: transform .2s; }
details.nolist[open] > summary svg { transform: rotate(180deg); }

.ctacard { margin-top: 22px; background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: 22px 20px; }
.ctacard h2 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.03em; }
.ctacard p { margin: 0 0 16px; font-size: 15px; opacity: .88; }
.ctacard .btn { background: #fff; color: #1b3a6b; width: 100%; }
.ctacard .btn:hover { background: #eef2fb; }
.alts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.alts a, .alts button { height: 46px; border-radius: 13px; font-size: 14.5px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; transition: transform .12s ease, background .15s; }
.alts a:active, .alts button:active { transform: scale(.96); }
.alts svg { width: 17px; height: 17px; }
.ctacard .alts a, .ctacard .alts button { border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; }
.ctacard .alts a:hover, .ctacard .alts button:hover { background: rgba(255, 255, 255, .14); }
.ctacard .alts .wide { grid-column: 1 / -1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ctacard { background: #1d2a44; } }
:root[data-theme="dark"] .ctacard { background: #1d2a44; }
/* 주변에 알려 주기(공유) */
.sharebtn {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 15px 16px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--card); color: var(--text); text-align: left; transition: transform .12s ease, background .15s;
}
.sharebtn:hover { background: color-mix(in srgb, var(--fill) 60%, var(--card)); }
.sharebtn:active { transform: scale(.97); }
.sharebtn > svg { width: 22px; height: 22px; color: var(--primary); flex: none; }
.sharebtn b { display: block; font-size: 15.5px; font-weight: 700; }
.sharebtn small { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.foot { margin: 26px 4px 0; font-size: 12.5px; color: var(--muted); }
.foot p { margin: 0 0 8px; }
.foot b { color: var(--text-2); }

/* 아래에서 올라오는 시트 */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(10, 14, 20, .45); opacity: 0; transition: opacity .22s; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg.on { opacity: 1; }
.sheet {
  width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; overflow: auto; background: var(--card); color: var(--text);
  border-radius: 24px 24px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(24px); transition: transform .24s ease;
  overscroll-behavior: contain; outline: none;
}
.sheet-bg.on .sheet { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 6px; }
.sheet .sh-top { display: flex; align-items: flex-start; gap: 10px; }
.sheet .sh-top h3 { flex: 1; font-size: 20px; line-height: 1.35; margin: 8px 0 0; letter-spacing: -0.03em; }
.sheet .sh-st { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 8px; margin-top: 10px; }
.sh-st.likely { background: var(--ok-weak); color: var(--ok); }
.sh-st.check { background: var(--warn-weak); color: var(--warn); }
.sh-st.future { background: #eaf6ff; color: #0e7bbf; }
.sh-st.need { background: var(--primary-weak); color: var(--primary); }
.sh-st.no { background: var(--fill); color: var(--muted); }
.sheet .sh-amt { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 2px; }
.sheet .sh-amt small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: 4px; }
.sheet .sh-sum { font-size: 15.5px; color: var(--text); margin: 10px 0 0; }
.sheet h4 { font-size: 14px; color: var(--muted); margin: 20px 0 8px; font-weight: 700; }
.sheet ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--text-2); }
.sheet li + li { margin-top: 6px; }
.sheet .flag { margin-top: 14px; background: var(--warn-weak); color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.sheet .sh-act { margin-top: 22px; display: flex; gap: 8px; }
.sheet .lead { font-size: 15px; color: var(--text-2); margin: 8px 0 16px; }
.sheet form .field { margin-bottom: 14px; }
.sheet .consent { font-size: 13px; color: var(--text-2); background: var(--fill); border-radius: 12px; padding: 12px 14px; }
.sheet .consent ul { margin: 0 0 8px; padding-left: 16px; line-height: 1.55; }
.sheet .consent li + li { margin-top: 3px; }
.sheet .consent li b { color: var(--text); font-weight: 650; margin-right: 4px; }
.plink { color: var(--text-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sheet .consent label { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-height: 44px; font-size: 14.5px; font-weight: 650; color: var(--text); cursor: pointer; }
.sheet .consent input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.sheet .err { color: var(--bad); font-size: 14px; font-weight: 650; min-height: 20px; margin: 10px 0 0; }
.opt-lbl { font-weight: 500; color: var(--muted); }

/* 신청 완료 */
.done { text-align: center; padding-top: 34px; }
.done .badge { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto; background: var(--primary-weak); color: var(--primary); display: grid; place-items: center; }
.done .badge svg { width: 40px; height: 40px; }
.done h2 { font-size: 25px; letter-spacing: -0.03em; margin: 20px 0 8px; outline: none; }
.done > p { color: var(--text-2); font-size: 15.5px; margin: 0 auto; max-width: 380px; }
.recv { margin: 24px auto 0; max-width: 420px; text-align: left; background: var(--fill); border-radius: 18px; padding: 6px 0; }
.recv .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; font-size: 14.5px; }
.recv .row span { color: var(--muted); flex: none; }
.recv .row b { font-weight: 700; text-align: right; }
.demo { margin: 22px auto 0; max-width: 420px; text-align: left; border: 1.5px dashed var(--faint); border-radius: 16px; padding: 14px 16px; font-size: 13.5px; color: var(--text-2); }
.demo b { color: var(--text); }
.demo .btn { margin-top: 12px; width: 100%; }
.done .alts { margin: 18px auto 0; max-width: 420px; }
.done .alts a, .done .alts button { background: var(--fill); color: var(--text); border: 0; }
.done .alts a:hover, .done .alts button:hover { background: var(--line); }

/* 화면 넘김: 앞으로는 오른쪽에서, 뒤로는 왼쪽에서, 결과는 아래에서 살짝(밀려 들어오는 동안 가로로 넘치지 않게 잘라 둠) */
#view { overflow-x: clip; }
#view.in-f > * { animation: hnhInF .3s cubic-bezier(.2, .8, .2, 1) both; }
#view.in-b > * { animation: hnhInB .3s cubic-bezier(.2, .8, .2, 1) both; }
#view.in-up > * { animation: hnhInUp .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hnhInF { from { opacity: 0; transform: translateX(28px); } }
@keyframes hnhInB { from { opacity: 0; transform: translateX(-28px); } }
@keyframes hnhInUp { from { opacity: 0; transform: translateY(16px); } }

/* 누르는 느낌: 손가락을 대는 동안 살짝 작아짐 */
html { -webkit-tap-highlight-color: transparent; }
.chip, .seg button, .iconbtn, .textbtn, .hits button { transition: transform .12s ease, background .15s, color .15s; }
.chip:active, .seg button:active, .iconbtn:active, .textbtn:active { transform: scale(.95); }
.hits button:active { background: var(--fill); }

/* 혜택 찾는 중 */
.analyze { padding: 52px 0 24px; text-align: center; }
.an-orb { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: var(--primary-weak); display: grid; place-items: center; font-size: 34px; line-height: 1; animation: hnhPulse 1.4s ease-in-out infinite; }
.analyze h2 { font-size: 23px; line-height: 1.4; letter-spacing: -0.03em; font-weight: 750; margin: 22px 0 26px; outline: none; }
.an-list { list-style: none; margin: 0 auto; padding: 0; max-width: 380px; display: grid; gap: 10px; text-align: left; }
.an-list li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--fill); font-size: 15px; font-weight: 650; color: var(--text-2); animation: hnhRise .4s ease both; animation-delay: var(--d); }
.an-list .emo { font-size: 20px; width: 26px; text-align: center; flex: none; line-height: 1; }
.an-list .tx { flex: 1; min-width: 0; }
.an-list .ok { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary); color: #fff; animation: hnhPop .3s ease both; animation-delay: calc(var(--d) + .35s); }
.an-list .ok svg { width: 14px; height: 14px; }
@keyframes hnhPulse { 50% { transform: scale(1.08); } }
@keyframes hnhRise { from { opacity: 0; transform: translateY(10px); } }
@keyframes hnhPop { from { opacity: 0; transform: scale(.4); } }

@media (min-width: 720px) {
  .q h2 { font-size: 27px; }
  .intro h1 { font-size: 34px; }
  .hero .big { font-size: 46px; }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 24px; max-height: 84vh; }
}
@media print {
  .top, .cta-bar, .tabs, .ctacard, .sheet-bg { display: none !important; }
  body, body.res { background: #fff; }
  .card, .hero { box-shadow: none; border: 1px solid #ddd; }
}
