@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --amber: #FFBE0B;
  --ink: #2A2312;
  --ink-2: #3A3220;
  --ink-3: #4A4130;
  --cream: #FFF7E3;
  --warm: #F4F1EA;
  --line: #ECE6DA;
  --muted: #6E665A;
  --muted-2: #5B5348;
  --on-dark: #CFC6B5;
  --tag-bg: #FFF1CC;
  --tag-ink: #6B4E00;
  --eyebrow: #7A5A00;
  --red: #B42318;
  --red-bg: #FDECEA;
  --green: #1E6B35;
  --green-bg: #E3F1E6;
  --blue: #1F4E8C;
  --blue-bg: #E6EEF8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Noto Sans KR', system-ui, sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 상단 */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand .mark { width: 28px; height: 28px; border-radius: 6px; display: block; flex: none; }
.brand small { font-size: 12px; color: var(--on-dark); letter-spacing: 0.08em; font-weight: 400; }
.topnav { display: flex; gap: 24px; font-size: 14px; }
.topnav a { color: #E9E3D6; text-decoration: none; }
.topnav a:hover { color: #fff; }

/* 버튼 */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 9999px; font-size: 17px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: transform .1s; }
.pill:active { transform: scale(0.97); }
.pill-a { background: var(--amber); color: var(--ink); }
.pill-o { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill-d { background: var(--ink); color: #fff; }
.pill-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.pill[disabled] { opacity: .5; cursor: not-allowed; }

/* 섹션 공통 */
section { padding: 80px 0; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--eyebrow); margin: 0 0 12px; }
.h2 { font-size: 38px; font-weight: 700; line-height: 1.18; letter-spacing: -0.025em; margin: 0 0 16px; }
.lead { font-size: 18px; line-height: 1.6; margin: 0; color: var(--muted-2); }
.need { display: inline-block; padding: 2px 10px; border-radius: 9999px; background: var(--tag-bg); color: var(--tag-ink); font-size: 13px; font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.bg-warm { background: var(--warm); }
.bg-dark { background: var(--ink); color: #fff; }

/* 폼 */
.card { background: #fff; border-radius: 18px; padding: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field .label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea {
  font-size: 17px; padding: 13px 14px; border: 1px solid #D9D3C7; border-radius: 11px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field .err { color: var(--red); font-size: 13px; display: none; }
.field.invalid input { border-color: var(--red); }
.field.invalid .err { display: block; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: var(--red); }

.drop { border: 1.5px dashed #CFC6B5; border-radius: 12px; padding: 14px; background: #FBFAF7; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.drop .name { font-weight: 600; font-size: 15px; flex: 1; min-width: 160px; }
.drop .picked { font-size: 13px; color: var(--green); }
.drop label.pick { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

/* 하단 고정 버튼 */
.sticky-cta { position: sticky; bottom: 0; z-index: 15; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.sticky-cta .wrap { display: flex; gap: 10px; justify-content: center; }
.sticky-cta .pill { flex: 1; max-width: 260px; }

/* 단계 표시 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0; }
.steps li { border-radius: 12px; padding: 14px 12px; background: var(--warm); color: var(--muted); font-size: 14px; text-align: center; }
.steps li b { display: block; font-size: 12px; margin-bottom: 4px; }
.steps li.done { background: #EFE7D3; color: var(--ink); }
.steps li.now { background: var(--ink); color: #fff; font-weight: 700; }
.steps li.problem { background: var(--red-bg); color: var(--red); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--red); }

/* 표 */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13px; background: #fff; position: sticky; top: 0; }
td { padding: 12px; border-bottom: 1px solid #F1ECE2; white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #FBF8F1; }
tr.sel td { background: var(--cream); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 9999px; font-size: 12px; font-weight: 600; background: var(--warm); color: var(--ink); }
.b1 { background: var(--blue-bg); color: var(--blue); }
.b2 { background: var(--tag-bg); color: var(--tag-ink); }
.b3 { background: #EFE7D3; color: var(--ink); }
.b4 { background: var(--green-bg); color: var(--green); }
.b5 { background: var(--ink); color: #fff; }
.bx { background: var(--red-bg); color: var(--red); }

#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 15px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 100; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--red); }

.footer { background: var(--ink); color: var(--on-dark); padding: 48px 0 40px; font-size: 13px; line-height: 1.8; }
.footer a { color: #E9E3D6; }
.notice-box { margin: 0 0 18px; padding: 16px 18px; border-radius: 12px; background: var(--ink-2); color: #E9E3D6; font-size: 14px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .h2 { font-size: 28px; }
  .grid2, .grid3 { grid-template-columns: 1fr !important; }
  .topnav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 20px 16px; }
}

/* 고객 화면 큰 글씨 (주 이용층 50~60대) — <body class="big"> */
body.big { font-size: 19px; line-height: 1.6; }
.big .topbar .wrap { height: 64px; }
.big .brand { font-size: 19px; } .big .brand .mark { width: 32px; height: 32px; } .big .brand small { font-size: 14px; }
.big .topnav { font-size: 16px; gap: 22px; }
.big .pill { min-height: 56px; padding: 0 30px; font-size: 19px; font-weight: 700; }
.big .pill-sm { min-height: 50px; padding: 0 20px; font-size: 17px; }
.big .eyebrow { font-size: 16px; font-weight: 700; }
.big .h2 { font-size: 44px; }
.big .lead { font-size: 21px; line-height: 1.65; }
.big .hint { font-size: 16px; line-height: 1.6; }
.big .need { font-size: 15px; padding: 4px 12px; }
.big .field { gap: 9px; }
.big .field label, .big .field .label { font-size: 18px; font-weight: 700; }
.big .field input, .big .field select, .big .field textarea { font-size: 19px; padding: 16px; border-radius: 12px; min-height: 58px; }
.big .field .err { font-size: 16px; }
.big .drop .name { font-size: 18px; } .big .drop .picked { font-size: 16px; }
.big .drop label.pick { min-height: 50px; padding: 0 20px; font-size: 17px; }
.big .consent { font-size: 18px; } .big .consent input { width: 24px; height: 24px; }
.big .steps li { font-size: 17px; padding: 18px 12px; } .big .steps li b { font-size: 14px; }
.big .badge { font-size: 15px; padding: 5px 12px; }
.big #toast { font-size: 18px; padding: 16px 22px; }
.big .sticky-cta .pill { max-width: 300px; }
@media (max-width: 760px) {
  body.big { font-size: 18px; }
  .big .h2 { font-size: 32px; }
  .big .lead { font-size: 19px; }
  .big .topnav { display: none; }
}

/* 상단 버튼 묶음 (진행상황 조회 + 카톡상담) */
.head-btns { display: flex; gap: 8px; flex: none; }
.head-status { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.head-status:hover { background: rgba(255,255,255,.1); }
@media (max-width: 760px) {
  .brand small { display: none; }
  .big .head-btns .pill { padding: 0 12px; font-size: 15px; min-height: 44px; }
}
@media (max-width: 380px) { .big .head-btns .pill { padding: 0 9px; font-size: 14px; } }
