/* 시작 흐름(B1-7, www/start.php) — 무료 진단 · 결과 · 상담 예약. 토큰만 쓴다(site.css :root · tokens.css --kd-fb-*) — 새 색을 만들지 않는다.
   규칙 wiki/design-guide.md 43-C(이 화면) · 39절(왼쪽 색 줄·밑줄 없음) · 46절(줄표 없음) · 논리 속성만(RTL) · 숫자는 ltr 격리. 접두 st-. 390px 에서 가로 넘침 없음.
   틀: 남색 머리(.page-hero) → 그 아래로 걸쳐 올라오는 흰 판(.st-wrap-up) → 상담 예약(밝은 회색 절, 글 + 폼 2단). */

.st { --st-r: 16px; --st-pad: clamp(22px, 3.4vw, 44px); }
.st-num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-center { text-align: center; }
.st-fine { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.st-hint { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.st-h { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.st-narrow { max-width: 780px; }
.st-card { background: var(--card); border-radius: var(--st-r); box-shadow: var(--shadow); padding: var(--st-pad); margin-bottom: 16px; min-width: 0; }
.st-sr, .st-count { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- 머리(남색) — 아래 판이 걸쳐 올라온다 ---------- */
.v5 .page-hero.st-hero { padding-block: clamp(56px, 7vw, 96px) clamp(112px, 12vw, 168px); }
.v5 .page-hero.st-hero-d { padding-bottom: clamp(96px, 10vw, 136px); }
.st-hero .h-page { max-width: 15em; }
.st-hero .lead { margin-top: 20px; max-width: 620px; }
.st-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; }
.st-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--on-2); }
.st-trust .ic { color: var(--lav); }
.st-wrap { position: relative; z-index: 1; padding-bottom: clamp(64px, 8vw, 112px); }
.st-wrap-up { margin-top: clamp(-120px, -9vw, -72px); }

/* ---------- 고른 조건(홈 가격 카드·계산기에서) ---------- */
.st-pick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 16px; padding: 14px 20px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); font-size: 14.5px; line-height: 1.5; }
.st-pick-k { font-weight: 600; color: var(--accent); }
.st-pick-v { font-weight: 600; }
.st-pick-n { flex-basis: 100%; color: var(--muted); font-size: 13.5px; }
.st-pick-x { font-size: 13.5px; }
.st-hero .st-pick { margin: 20px 0 0; max-width: 680px; background: rgba(237, 237, 239, .06); box-shadow: inset 0 0 0 1px var(--nv-line); }
.st-hero .st-pick-k { color: var(--lav); }
.st-hero .st-pick-v { color: var(--on); }
.st-hero .st-pick-n { color: var(--on-2); }

/* ---------- 질문 판: 위저드 + 옆 칸(진단 순서 · 결과에서 보는 것) ---------- */
.st-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); border-radius: var(--st-r); background: var(--card); box-shadow: 0 0 0 1px var(--kd-fb-line), var(--kd-fb-sh-float); overflow: hidden; }
.st-quiz { position: relative; min-width: 0; padding: var(--st-pad); display: flex; flex-direction: column; }
.st-aside { min-width: 0; padding: var(--st-pad) clamp(22px, 2.6vw, 32px); background: var(--kd-fb-faint-bg); border-inline-start: 1px solid var(--kd-fb-line); }
.st-aside-h { font-size: 13px; font-weight: 500; letter-spacing: var(--kd-fb-tr-cap); color: var(--muted); }

.st-quiz-top { display: none; align-items: center; gap: 16px; margin-bottom: clamp(28px, 4vw, 40px); }
.st-quiz.is-wiz .st-quiz-top { display: flex; }
.st-count-v { flex: none; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-bar { flex: 1; height: 4px; border-radius: 999px; background: var(--kd-fb-soft); overflow: hidden; }
.st-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .45s var(--ez, ease); }

.st-step { border: 0; min-width: 0; margin: 0 0 48px; padding: 0; }
.st-quiz.is-wiz .st-step { margin-bottom: 40px; animation: stIn .4s var(--ez, ease) both; }
@keyframes stIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.st-q { display: block; padding: 0; font-size: clamp(24px, 2.8vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.22; outline: none; text-wrap: balance; }
:lang(ko) .st-q { font-weight: 600; letter-spacing: -.025em; }
:lang(he) .st-q { font-weight: 600; letter-spacing: -.01em; }
.st-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
.st-qn { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 500; letter-spacing: var(--kd-fb-tr-cap); color: var(--accent); font-variant-numeric: tabular-nums; }
.st-quiz.is-wiz .st-qn { display: none; }   /* 위저드에서는 위 'n/7' 이 대신한다 */
.st-step > .st-hint { max-width: 40em; }

.st-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.st-opts-3, .st-opts-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-opt {
    position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 104px;
    padding: 18px 20px; padding-inline-end: 48px;
    background: var(--card); border-radius: 12px; box-shadow: 0 0 0 1px var(--kd-fb-line-s); cursor: pointer;
    transition: box-shadow .15s ease, background-color .15s ease, transform .1s ease;
}
.st-opt:hover { box-shadow: 0 0 0 1px var(--kd-fb-line-h), var(--kd-fb-sh-hover); }
.st-opt:active { transform: scale(.99); }
.st-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.st-opt::after {   /* 고름 표시: 빈 원 → 채운 원 + 체크 */
    content: ''; position: absolute; top: 18px; inset-inline-end: 18px; width: 20px; height: 20px;
    border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--kd-fb-line-h); transition: box-shadow .15s ease, background-color .15s ease;
}
.st-opt:has(input:checked) { background: var(--kd-fb-lav-l); box-shadow: 0 0 0 2px var(--accent); }
.st-opt:has(input:checked)::after {
    box-shadow: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.4l2.3 2.3 4.7-5.4'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.st-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.st-opt-t { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.st-opt-d { font-size: 14px; line-height: 1.45; color: var(--muted); }
.st-miss .st-q { color: var(--kd-fb-text-crit); }
.st-miss .st-opt { box-shadow: 0 0 0 1px var(--kd-fb-ic-danger); }

.st-nav { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: clamp(32px, 4vw, 44px); }
.st-quiz.is-wiz .st-nav { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--kd-fb-line); }
.st-nav .btn { margin-inline-start: auto; min-width: 148px; }
.st-nav .btn:disabled { background: var(--kd-fb-soft); color: var(--kd-fb-faint); box-shadow: none; cursor: default; transform: none; }
.st-back { display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px; background: none; border: 0; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
.st-back:hover { color: var(--ink); }
.st-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-skip { margin-top: 28px; }

/* 옆 칸: 진단 순서(JS 가 지금·끝남·건너뜀을 표시, 고른 답을 작은 글로) */
.st-track { margin-top: 18px; display: grid; gap: 2px; }
.st-track li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 12px; padding: 8px 0; }
.st-track li:not(:last-child)::before { content: ''; position: absolute; inset-inline-start: 11.5px; top: 34px; bottom: -8px; width: 1px; background: var(--kd-fb-line-s); }
.st-track-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--kd-fb-line-s); font-size: 12px; font-weight: 500; color: var(--muted); }
.st-track-n .st-num, .st-track-n .ic { grid-area: 1 / 1; }
.st-track-n .ic { display: none; }
.st-track-t { display: grid; gap: 1px; padding-top: 2px; min-width: 0; }
.st-track-t b { font-size: 14px; font-weight: 500; color: var(--kd-fb-ink-2); }
.st-track-t small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-track-t small:empty { display: none; }
.st-track li.is-now .st-track-n { background: var(--accent); box-shadow: none; color: #FFFFFF; }
.st-track li.is-now b { color: var(--ink); font-weight: 600; }
.st-track li.is-done .st-track-n { background: var(--kd-fb-lav-l); box-shadow: none; color: var(--accent); }
.st-track li.is-done .st-track-n .st-num { display: none; }
.st-track li.is-done .st-track-n .ic { display: block; }
.st-track li.is-skip { opacity: .4; }

.st-get { margin-top: clamp(40px, 5vw, 56px); text-align: center; }
.st-get ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; text-align: start; }
.st-get li { padding: 18px 20px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.st-get-list { display: grid; gap: 14px; margin-top: 16px; }
.st-get li, .st-get-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.45; color: var(--kd-fb-ink-2); }
.st-get-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--kd-fb-lav-l); color: var(--accent); }

/* ---------- 결과 ---------- */
.st-ans { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 24px; }
.st-ans-k { font-size: 13px; font-weight: 500; color: var(--on-3); margin-inline-end: 4px; }
.st-ans ul { display: contents; }
.st-ans li { padding: 4px 10px; border-radius: 6px; background: rgba(237, 237, 239, .08); box-shadow: inset 0 0 0 1px var(--nv-line); font-size: 13px; font-weight: 500; color: var(--on); }
.st-ans .link { margin-inline-start: 6px; font-size: 14px; }

.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 20px; align-items: start; }
.st-col { min-width: 0; }
.st-col .st-card:last-child { margin-bottom: 0; }
.st-list { margin-top: 14px; }
.st-list li { position: relative; padding: 14px 0; padding-inline-start: 34px; border-top: 1px solid var(--kd-fb-line); font-size: 15.5px; line-height: 1.6; }
.st-list li:first-child { border-top: 0; }
.st-why li::before { content: ''; position: absolute; inset-inline-start: 0; top: 16px; width: 22px; height: 22px; border-radius: 50%; background: var(--kd-fb-lav-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233F44A2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.4l2.3 2.3 4.7-5.4'/%3E%3C/svg%3E") center / 13px no-repeat; }
.st-notes li::before { content: ''; position: absolute; inset-inline-start: 0; top: 16px; width: 22px; height: 22px; border-radius: 50%; background: var(--kd-fb-tint-warn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23B45309' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M8 4.5v4.2M8 11.2v.1'/%3E%3C/svg%3E") center / 13px no-repeat; }
.st-why li.st-why-pick { font-weight: 500; }
.st-picked li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-inline-start: 0; }
.st-picked li span { color: var(--muted); }
.st-picked .st-slot-k:not(:empty)::before { content: '·'; margin-inline: 2px 8px; }   /* 두바이 시각과 내 시각 사이(접수 화면) */

/* 설립 후 관리 더하기(W-0002: 패키지 선택이 아니라 설립 기본료에 더하는 안) — 설립만 · 설립 + 첫해 관리 두 줄, 지금 견적은 라벤더 면, 다른 안은 누르면 그 조건 결과 */
.st-opts2 { display: grid; gap: 10px; margin-top: 18px; }
.st-opt2 { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: 12px; box-shadow: 0 0 0 1px var(--kd-fb-line-s); color: inherit; text-decoration: none; min-width: 0;
    transition: box-shadow .15s ease, background-color .15s ease; }
a.st-opt2:hover { box-shadow: 0 0 0 1px var(--kd-fb-line-h), var(--kd-fb-sh-hover); }
a.st-opt2:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.st-opt2.is-rec { background: var(--kd-fb-lav-l); box-shadow: 0 0 0 2px var(--accent); }
.st-opt2-m { display: grid; gap: 4px; min-width: 0; }
.st-opt2-n { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.st-opt2-d { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.st-opt2-v { display: grid; justify-items: end; gap: 2px; flex: none; text-align: end; }
.st-opt2-v b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.st-opt2-v small { font-size: 12.5px; color: var(--muted); }
.st-opt2-go { color: var(--accent) !important; font-weight: 500; }
.st-opt2 .chip { font-size: 11.5px; }
.st-opt2.is-rec .chip-now { background: var(--accent); color: #FFFFFF; }

.st-cost { position: sticky; top: calc(var(--header-h) + 20px); box-shadow: 0 0 0 1px var(--kd-fb-line), var(--kd-fb-sh-float); }
.st-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; margin-top: 18px; }
.st-total > span { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
.st-total strong { font-size: clamp(30px, 3.4vw, 38px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.st-total small { font-size: 13.5px; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.st-split { display: flex; gap: 3px; height: 10px; margin-top: 18px; }   /* Koldaat 수수료 : 실비 참고 — 막대 안 글자 없음(R-31), 값은 아래 두 겹 제목에 */
.st-split i { display: block; height: 100%; border-radius: 3px; }
.st-split i.s { width: var(--w); background: var(--kd-fb-viz-4); border-start-start-radius: 999px; border-end-start-radius: 999px; }
.st-split i.g { flex: 1; background: var(--kd-fb-viz-2); border-start-end-radius: 999px; border-end-end-radius: 999px; }
.st-key { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 8px; }
.st-key.s { background: var(--kd-fb-viz-4); }
.st-key.g { background: var(--kd-fb-viz-2); }
.st-layer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--kd-fb-line); }
.st-split + .st-layer { border-top: 0; padding-top: 0; }
.st-layer h3 { display: flex; align-items: center; gap: 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.st-layer-v { margin-inline-start: auto; font-weight: 600; }
.st-layer .st-fine { margin-top: 4px; }
.st-layer-opt h3 { color: var(--muted); }
.st-lines { margin-top: 10px; }
.st-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 14px; }
.st-lines dt { color: var(--muted); min-width: 0; }
.st-lines dd { flex-shrink: 0; display: inline-flex; align-items: baseline; gap: 6px; direction: ltr; }   /* 더하기 표시와 금액은 RTL 에서도 "+ AED 2,000" */
.st-lines .is-base dt { color: var(--ink); font-weight: 500; }   /* 설립 기본료 — 아래 줄들이 여기에 더해진다(W-0002) */
.st-plus { font-size: 12.5px; color: var(--muted); }
.st-tag { padding: 1px 8px; border-radius: 6px; background: var(--kd-fb-soft); font-size: 12.5px; font-weight: 500; color: var(--kd-fb-ink-2); white-space: nowrap; }
.st-tag-in { background: var(--kd-fb-teal-t); color: var(--kd-fb-teal-on); }
.st-layer-v small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.st-agency { margin-top: 12px; }
.st-cost .st-fine { text-wrap: pretty; }   /* 좁은 비용 카드에서 균형 줄 바꿈이 글을 반 폭으로 접지 않게 */
.st-tr-why { padding-bottom: 4px; }
.st-total-tbd strong { font-size: clamp(26px, 3vw, 32px); }
.st-tr-why { margin-top: 16px; }
.st-layer + .st-total, .st-lines + .st-total { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--kd-fb-line); }
.st-asof, .st-tr-why + .st-fine { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--kd-fb-line); }
.st-cost-cta { width: 100%; margin-top: 20px; }

/* ---------- 상담 예약 — 글(왼쪽) + 폼(오른쪽) ---------- */
.st-book { padding-block: clamp(72px, 9vw, 128px); }
.st-book-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.st-book-head { position: sticky; top: calc(var(--header-h) + 32px); }
.st-book-head .lead { margin-top: 18px; }
.st-book-head .st-aside-h { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--kd-fb-line-s); }
.st-book .form-card { padding: var(--st-pad); }
.st-form input[type="text"], .st-form input[type="email"], .st-form input[type="tel"], .st-form select, .st-form textarea {
    width: 100%; padding: 11px 14px; font: inherit; font-size: 15.5px; color: var(--ink);
    background: var(--card); border: 1px solid var(--kd-fb-line-s); border-radius: 8px; appearance: none; -webkit-appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.st-form select { padding-inline-end: 36px; }
.st-form input:hover, .st-form select:hover, .st-form textarea:hover { border-color: var(--kd-fb-line-h); }
.st-form input:focus, .st-form select:focus, .st-form textarea:focus { outline: none; background: var(--card); border-color: var(--accent); box-shadow: 0 0 0 3px var(--kd-fb-lav-l2); }
.st-form.form-card label > span { font-size: 13.5px; font-weight: 500; color: var(--kd-fb-ink-2); }
.st-form.form-card [aria-invalid="true"] { border-color: var(--kd-fb-ic-danger); }
.st-form textarea { min-height: 96px; }
.st-msgr { min-width: 0; }
.st-form .form-row-2:has(.st-msgr) { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.st-msgr > label { display: block; }
.st-msgr-row { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 8px; }
.st-form .st-ferr { display: block; margin-top: 6px; font-size: 13px; color: var(--kd-fb-text-crit); }

.st-slots { border: 0; min-width: 0; margin: 8px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--kd-fb-line); }
.st-slots legend { float: inline-start; width: 100%; padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.st-slots legend + * { clear: both; }
.st-slots-n { margin-inline-start: 8px; padding: 2px 8px; border-radius: 6px; background: var(--kd-fb-lav-l); font-size: 12.5px; font-weight: 500; color: var(--accent); }
.st-slots-n:empty { display: none; }
.st-slots .st-hint { margin-top: 4px; font-size: 13.5px; }
.st-days { margin-top: 12px; }
.st-day { display: grid; gap: 8px; padding: 12px 0 14px; }
.st-day + .st-day { border-top: 1px solid var(--kd-fb-line-2); }
.st-day-h { font-size: 14px; font-weight: 500; color: var(--kd-fb-ink-2); }
.st-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.st-form label.st-slot {
    position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 0;
    padding: 8px 10px; border-radius: 8px; background: var(--card); box-shadow: 0 0 0 1px var(--kd-fb-line-s); cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.st-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.st-slot:hover { box-shadow: 0 0 0 1px var(--kd-fb-line-h); }
.st-slot:has(input:checked) { background: var(--kd-fb-lav-l); box-shadow: 0 0 0 2px var(--accent); }
.st-slot:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-slot.is-off { opacity: .42; cursor: not-allowed; }
.st-form .st-slot > span { display: block; margin: 0; font-weight: 400; }
.st-form .st-slot-g { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-slot-g b { font-size: 15px; font-weight: 600; color: var(--ink); }
.st-form .st-slot-k { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-more summary { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14.5px; font-weight: 500; color: var(--accent); cursor: pointer; list-style: none; }
.st-more summary::-webkit-details-marker { display: none; }
.st-more summary::before { content: ''; width: 14px; height: 14px; background: currentColor; transition: transform .18s ease;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat; }
.st-more[open] summary::before { transform: rotate(180deg); }
.st-slots.st-miss legend { color: var(--kd-fb-text-crit); }

.st-form label.st-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--kd-fb-line); font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.st-consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.st-form .st-consent > span { display: inline; margin: 0; font-size: 14.5px; font-weight: 400; color: var(--ink); }
.st-consent a { color: var(--accent); }
.st-form .st-consent.st-miss > span { color: var(--kd-fb-text-crit); }
.st-submit { width: 100%; margin-top: 24px; padding-block: 14px; font-size: 16px; }

/* ---------- 접수 완료 ---------- */
.st-check { display: block; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 50%; background: var(--kd-fb-teal-t); position: relative; }
.st-check::after { content: ''; position: absolute; inset-inline-start: 22px; top: 15px; width: 10px; height: 20px; border: solid var(--kd-fb-teal-on); border-width: 0 3px 3px 0; transform: rotate(42deg); }
.st-next-list { counter-reset: st; margin-top: 14px; }
.st-next-list li { counter-increment: st; position: relative; padding: 14px 0; padding-inline-start: 42px; border-top: 1px solid var(--kd-fb-line); font-size: 15.5px; line-height: 1.6; list-style: none; }
.st-next-list li:first-child { border-top: 0; }
.st-next-list li::before { content: counter(st); position: absolute; inset-inline-start: 0; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--kd-fb-lav-l); color: var(--accent); font-size: 13px; font-weight: 600; display: grid; place-items: center; }


/* ---------- W-0001 위저드(2026-11-21): 고르기 칸의 금액 · 두 묶음 단계 · 비자 숫자 칸 · 실시간 견적(옆 칸) · 좁은 화면 합계 띠 ---------- */
.st-opt-p { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.st-badge { margin-inline-start: 6px; padding: 1px 7px; border-radius: 6px; background: var(--kd-fb-lav-l); font-size: 11.5px; font-style: normal; font-weight: 600; color: var(--accent); vertical-align: 2px; }
.st-opt:has(input:disabled) { cursor: default; box-shadow: 0 0 0 1px var(--kd-fb-line); }
.st-opt:has(input:disabled) .st-opt-t, .st-opt:has(input:disabled) .st-opt-d, .st-opt:has(input:disabled) .st-opt-p { opacity: .55; }
.st-opt:has(input:disabled:checked) { background: var(--kd-fb-faint-bg); box-shadow: 0 0 0 1px var(--kd-fb-line-h); }
.st-opt:has(input:disabled:checked)::after { background-color: var(--kd-fb-faint); }
.st-sub { border: 0; min-width: 0; margin: 28px 0 0; padding: 0; }
.st-sub + .st-sub { margin-top: 32px; }
.st-sub-h { float: inline-start; width: 100%; padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.st-sub-h + * { clear: both; }
.st-sub .st-opts { margin-top: 14px; }
.st-sub .st-hint { margin-top: 4px; font-size: 14px; }
.st-sub-pri { margin-top: 24px; padding: 20px; border-radius: 12px; background: var(--kd-fb-faint-bg); box-shadow: 0 0 0 1px var(--kd-fb-line); }
.st-sub-pri .st-opt { min-height: 88px; }
.st-sub[hidden], .st-lock[hidden], .st-live[hidden], .st-live [hidden], .st-livebar[hidden] { display: none; }
.st-lock { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.st-steppers { display: grid; gap: 10px; margin-top: 28px; }
.st-stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 12px; box-shadow: 0 0 0 1px var(--kd-fb-line-s); }
.st-stepper-l { display: grid; gap: 2px; min-width: 0; }
.st-stepper-l b { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.st-stepper-l small { font-size: 13px; color: var(--muted); }
.st-stepper-c { display: inline-flex; align-items: center; gap: 6px; flex: none; direction: ltr; }
.st-stepper-c button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--kd-fb-line-s); color: var(--ink); cursor: pointer; }
.st-stepper-c button:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--kd-fb-line-h); }
.st-stepper-c button:disabled { opacity: .35; cursor: default; }
.st-stepper-c button:focus-visible, .st-stepper-c input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-stepper-c input { width: 52px; height: 36px; padding: 0; text-align: center; font: inherit; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink);
    border: 1px solid var(--kd-fb-line-s); border-radius: 8px; background: var(--card); -moz-appearance: textfield; appearance: textfield; }
.st-stepper-c input::-webkit-inner-spin-button, .st-stepper-c input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.st-ready { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 28px; padding: 12px 16px; border-radius: 12px; background: var(--kd-fb-lav-l); font-size: 14.5px; font-weight: 500; }
.st-quiz.is-wiz .st-ready { margin-top: -12px; }

.st-aside .st-track { margin-top: 12px; }
.st-aside .st-track li { padding: 5px 0; }
.st-aside .st-track li:not(:last-child)::before { top: 30px; bottom: -6px; }
.st-aside .st-track li[hidden] { display: none; }
.st-live { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--kd-fb-line-s); }
.st-live-empty { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.st-live-lines { margin-top: 10px; }
.st-live-lines div { padding: 4px 0; font-size: 13px; }
.st-live-lines dt { line-height: 1.4; }
.st-live-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--kd-fb-line); font-size: 13.5px; font-weight: 600; }
.st-live-row > span { color: var(--kd-fb-ink-2); }
.st-live-row + .st-live-row { margin-top: 4px; padding-top: 6px; border-top: 0; }
.st-live-why { margin-top: 8px; font-size: 12.5px; }
.st-live-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 8px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--kd-fb-line); }
.st-live-total > span { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.st-live-total strong { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.st-live-total small { font-size: 12.5px; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.st-live-nojs { margin-top: 22px; }
.st-livebar { display: none; }
@media (max-width: 1000px) {
    .st-quiz.is-wiz .st-livebar:not([hidden]) { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; padding: 12px 16px; border-radius: 12px; background: var(--kd-fb-lav-l); }
    .st-livebar-k { font-size: 13px; color: var(--kd-fb-ink-2); }
    .st-livebar-v { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
}
@media (max-width: 560px) {
    .st-stepper { padding: 12px 14px; }
    .st-sub-pri { padding: 16px; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1000px) {
    .st-panel { grid-template-columns: minmax(0, 1fr); }
    .st-aside { border-inline-start: 0; border-top: 1px solid var(--kd-fb-line); }
    .st-aside { display: none; }   /* 좁으면 진행은 위 막대가 맡는다 */
    .st-book-in { grid-template-columns: minmax(0, 1fr); }
    .st-book-head { position: static; max-width: 640px; }
}
@media (max-width: 960px) {
    .st-grid { grid-template-columns: minmax(0, 1fr); }
    .st-cost { position: static; order: -1; margin-bottom: 0; }   /* 좁으면 합계를 먼저 */
    .st-grid { gap: 16px; }
}
@media (max-width: 720px) {
    .st-opts, .st-opts-3, .st-opts-5 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .st-opts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-opt { min-height: 0; padding: 16px 18px; padding-inline-end: 46px; }
    .st-get ul { grid-template-columns: minmax(0, 1fr); }
}
/* 좁은 폭에서 떠 있는 챗 단추를 숨기는 규칙은 css/chat.css(.st 페이지, B1-15)로 옮겼다 */
@media (max-width: 560px) {
    .st { --st-pad: 20px; }
    .st-opt2 { padding: 14px 16px; align-items: flex-start; }
    .st-opt2-v b { font-size: 16.5px; }
    .st-wrap-up { margin-top: -56px; }
    .v5 .page-hero.st-hero { padding-bottom: 96px; }
    .st-trust { flex-direction: column; gap: 8px; margin-top: 24px; }
    .st-opts-4 { grid-template-columns: minmax(0, 1fr); }
    .st-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-nav .btn { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .st-quiz.is-wiz .st-step { animation: none; }
    .st-bar i, .st-opt, .st-slot { transition: none; }
}
/* hidden 속성이 .btn 의 display 에 지지 않게(마지막에 둔다) */
.st-nav > [hidden], .st-quiz .st-step[hidden], .st-cost-cta[hidden] { display: none; }
.st h1[tabindex="-1"]:focus { outline: none; }   /* 결과·완료 제목은 화면 읽기용으로만 초점을 받는다 */
/* 허니팟: .form-card input[type=text]{width:100%} 이 .hp-field 를 이겨 RTL 에서 가로 넘침을 만든다(문의 폼과 같은 칸) */
.st-form input.hp-field { width: 1px; height: 1px; padding: 0; border: 0; inset-inline-start: 0; }
/* 선택 질문(주된 사업 · 두바이 거주): 작은 칩 한 줄 — 금액에 영향 없음 */
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.st-chip { position: relative; display: inline-flex; cursor: pointer; }
.st-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.st-chip span { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--kd-fb-line-s); font-size: 14px; font-weight: 500; color: var(--kd-fb-ink-2); transition: box-shadow .15s ease, background-color .15s ease; }
.st-chip:hover span { box-shadow: inset 0 0 0 1px var(--kd-fb-line-h); }
.st-chip input:checked + span { background: var(--kd-fb-lav-l); box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
.st-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 옆 칸 단계: 이름과 고른 답을 한 줄에(실시간 견적이 위로 올라오게) */
.st-aside .st-track-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.st-aside .st-track-t small { flex: 0 1 auto; max-width: 58%; text-align: end; }
.st-aside .st-track li.is-skip small { max-width: 70%; }
/* 숨긴 고르기 칸이 공용 controls.css(체크 · 라디오 18px, 끔 .4)에 지지 않게 */
.st .st-opt input[type][name], .st .st-chip input[type][name] { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
/* 옆 칸: 실시간 견적이 맨 위(W-0002), 단계 표시는 그 아래 · 위저드 단추는 질문 바로 아래(옆 칸이 길어도 가운데가 비지 않게) */
.st-aside .st-live { margin-top: 0; padding-top: 0; border-top: 0; }
.st-aside .st-live:not([hidden]) + .st-track-h, .st-aside .st-live-nojs + .st-track-h { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--kd-fb-line-s); }
.st-quiz.is-wiz .st-nav { margin-top: 32px; }
.st-live-total small { grid-column: 1 / -1; }
