/* 설비왕 홈 C안 — 첫 화면이 ① 휴대폰 화면 넘김의 첫 장 → ② 지도 따라 가는 기사 차 → ③ 상세 정보 요청(한 화면 가득)
   스크립트가 돌면(html.js) .track 높이(--len vh)만큼 스크롤하는 동안 .pin 이 머리글 아래 붙는다.
   스크립트가 없으면 고정 없이 휴대폰 첫 화면과 네 단계 글, 다 그려진 지도를 그대로 보여 준다. */
.scn { position: relative; }
.scn .track { position: relative; }
.js .scn .track { height: calc(var(--len, 300) * 1vh); }
.scn .pin { position: relative; overflow: hidden; }
.js .scn .pin { position: sticky; top: var(--hd); height: calc(100vh - var(--hd)); height: calc(100svh - var(--hd)); }

/* ① 휴대폰 */
.scn-phone { background: var(--soft); }
.ph-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "box head" "box side"; align-content: center; column-gap: clamp(24px, 5vw, 72px); padding: 64px 0 72px; }
.ph-h { grid-area: head; align-self: end; max-width: 24em; margin-bottom: 30px; padding-bottom: 14px; border-bottom: 1px solid #d9d9d3; font-size: 17px; line-height: 1.4; letter-spacing: -0.035em; }
.ph-side { grid-area: side; align-self: start; }
.js .ph-stage { height: 100%; padding: 0; }
.ph-box { --s: .86; grid-area: box; align-self: center; justify-self: center; position: relative; width: calc(300px * var(--s)); height: calc(620px * var(--s)); }
.phone { position: absolute; left: 0; top: 0; width: 300px; height: 620px; padding: 9px; border-radius: 50px; background: #1b1b1d; box-shadow: 0 50px 90px -46px rgba(17, 17, 17, 0.55), inset 0 0 0 1.5px #3a3a3e, inset 0 0 0 3px #111; transform: scale(var(--s)); transform-origin: 0 0; }
.phone::before { content: ''; position: absolute; left: 50%; top: 19px; z-index: 9; width: 88px; height: 25px; margin-left: -44px; border-radius: 20px; background: #000; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 41px; background: #fff; font-size: 13px; line-height: 1.5; letter-spacing: -0.02em; }
.ph-bar { position: absolute; left: 30px; right: 24px; top: 17px; z-index: 8; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.ph-bar svg { width: 54px; height: 12px; }
.sc { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 54px 16px 18px; background: #fff; will-change: transform; }
.sc + .sc { transform: translateY(100%); }
.sc-t { font-family: var(--head); font-size: 19px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.3; }
.sc-s { margin-top: 2px; font-size: 12.5px; color: var(--mute); }
.ok-ic { width: 12px; height: 12px; }
.ph-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.ph-row em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12px; font-weight: 600; color: #a3a39c; transition: color .3s; }
.ph-row .ok-ic { opacity: 0; transition: opacity .3s; }
.ph-row.on em { color: var(--ink); }
.ph-row.on .ok-ic { opacity: 1; }

/* 화면 1: 사진 보내고 묻기 */
.ch-hd { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ch-hd b { flex: 1; font-family: var(--head); font-size: 15px; font-weight: 800; letter-spacing: -0.03em; }
.ch-body { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.ch-day { align-self: center; font-size: 11px; color: var(--mute); }
.msg { max-width: 80%; }
.msg p { padding: 8px 11px; font-size: 12.5px; line-height: 1.5; }
.msg-me { align-self: flex-end; }
.msg-me p { background: var(--y); border-radius: 14px 4px 14px 14px; }
.msg-me img { width: 128px; height: 160px; object-fit: cover; border-radius: 12px; }
.msg-you { display: flex; align-items: flex-start; gap: 7px; }
.msg-you > svg { flex: 0 0 auto; }
.msg-you p { background: var(--soft); border-radius: 4px 14px 14px 14px; }
.ch-in { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: 12.5px; color: var(--mute); }
.ch-in .ic { width: 16px; height: 16px; }

/* 화면 2: 기사와 통화 */
.sc-call { align-items: center; text-align: center; background: linear-gradient(180deg, var(--y-soft), #fff 44%); }
.cl-k { margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--sub); }
.cl-av { display: grid; place-items: center; width: 72px; height: 72px; margin-top: 12px; border-radius: 50%; background: #111; }
.cl-name { margin-top: 12px; font-family: var(--head); font-size: 18px; letter-spacing: -0.04em; }
.cl-time { margin-top: 2px; font-size: 13px; color: var(--sub); }
.cl-note { width: 100%; margin-top: 20px; border-top: 2px solid var(--ink); text-align: left; }
.cl-h { padding: 10px 0 2px; font-size: 12px; font-weight: 700; color: var(--mute); }
.cl-btns { display: flex; justify-content: center; gap: 22px; margin-top: auto; padding-bottom: 6px; }
.cl-btns i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #ededea; }
.cl-btns i.end { background: #e5483b; color: #fff; }

/* 화면 3: 작업 중 */
.wk-shot { position: relative; margin-top: 12px; overflow: hidden; border-radius: 12px; }
.wk-shot img { width: 100%; height: 150px; object-fit: cover; object-position: 50% 62%; }
.wk-shot figcaption { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 4px; background: rgba(17, 17, 17, 0.8); color: #fff; font-size: 11px; font-weight: 600; }
.wk-bar { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12.5px; font-weight: 700; }
.wk-track { height: 6px; margin-top: 6px; overflow: hidden; border-radius: 6px; background: #ededea; }
.wk-fill { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.wk-list { margin-top: 8px; }
.sc-sum { display: flex; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 12.5px; font-weight: 600; color: var(--sub); }
.sc-sum b { color: var(--ink); font-size: 13.5px; }

/* 화면 4: 끝나고 확인 */
.sc-done { text-align: center; }
.dn-ic { display: grid; place-items: center; width: 74px; height: 74px; margin: 30px auto 0; border-radius: 50%; background: var(--y); }
.sc-done .sc-t { margin-top: 16px; }
.dn-p { margin-top: 6px; font-size: 13px; color: var(--sub); }
.dn-list { margin-top: 18px; border-top: 2px solid var(--ink); text-align: left; }
.dn-list .ph-row em { color: var(--ink); }
.ph-btn { margin-top: auto; padding: 13px 0; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }

/* 옆글 · 점 */
.ph-txs { display: grid; gap: 32px; }
.js .ph-txs { gap: 0; }
.js .ph-txs > li { grid-area: 1 / 1; opacity: 0; }
.js .ph-txs > li:first-child { opacity: 1; }
.ph-n { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--sub); }
.ph-n span { font-family: var(--head); font-size: 17px; font-weight: 800; color: var(--ink); box-shadow: inset 0 -7px 0 var(--y); }
.ph-txs h3 { margin-top: 14px; font-size: clamp(26px, 2.7vw, 38px); line-height: 1.2; letter-spacing: -0.05em; }
.ph-d { max-width: 24em; margin-top: 14px; font-size: 16px; color: var(--sub); }
.ph-dots { display: none; gap: 8px; margin-top: 32px; }
.js .ph-dots { display: flex; }
.ph-dots i { width: 8px; height: 8px; border-radius: 8px; background: #d4d4ce; transition: width .35s, background .35s; }
.ph-dots i.on { width: 26px; background: var(--ink); }

/* ② 지도 */
.scn-car .pin { height: min(80vh, 760px); min-height: 560px; background: #f3f2ee; }
.js .scn-car .pin { min-height: 0; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; color: #6f6c64; }
.map .park { fill: #dde8d2; }
.map .road { fill: none; stroke: #fff; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.map .road2 { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; }
.map .rt-bg { fill: none; stroke: rgba(255, 196, 0, 0.5); stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
.map .rt { fill: none; stroke: #111; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.map .wp { fill: #fff; stroke: #111; stroke-width: 5; }
.map text { font: 600 19px 'Pretendard Variable', Pretendard, sans-serif; fill: #85827a; letter-spacing: -0.01em; }
.map .mk { transform-box: fill-box; transform-origin: 50% 100%; }
.car-card { position: absolute; z-index: 3; left: max(var(--g), calc((100% - var(--max)) / 2)); top: 50%; width: 340px; padding: 22px 22px 20px; background: #fff; border: 1px solid var(--ink); border-radius: var(--r); transform: translateY(-50%); }
.cc-eb { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; line-height: 1; color: var(--mute); }
.cc-eb b { font-size: 13px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.car-card h2 { margin-top: 14px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -0.045em; }
.cc-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.cc-route span:last-child { text-align: right; }
.cc-route i { position: relative; width: 36px; height: 1.5px; background: var(--ink); }
.cc-route i::after { content: ''; position: absolute; right: -1px; top: -3.5px; border: 4.5px solid transparent; border-left-color: var(--ink); border-right: 0; }
.cc-kpi { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.cc-kpi div { padding: 12px 0 11px; }
.cc-kpi div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.cc-kpi small { display: block; font-size: 12px; color: var(--mute); }
.cc-kpi b { display: block; margin-top: 5px; font-family: var(--head); font-size: 24px; line-height: 1; letter-spacing: -0.035em; }
.cc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 14px; }
.cc-steps li { position: relative; padding-top: 9px; font-size: 13px; font-weight: 600; color: #a3a39c; transition: color .35s; }
.cc-steps li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: #ebeae5; transition: background .35s; }
.cc-steps li.on { color: var(--ink); }
.cc-steps li.on::before { background: var(--ink); }
.cc-d { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--sub); }

@media (max-width: 767px) {
  .js .scn .pin { height: calc(100vh - var(--hd) - 56px); height: calc(100svh - var(--hd) - 56px - env(safe-area-inset-bottom)); }
  .ph-stage { grid-template-columns: 1fr; grid-template-areas: "head" "box" "side"; justify-items: center; align-content: center; row-gap: 20px; padding-top: 48px; }
  .ph-h { width: 100%; max-width: none; margin-bottom: 0; padding-bottom: 10px; font-size: 15px; }
  .ph-box { --s: .6; }
  .ph-side { width: 100%; }
  .ph-n { font-size: 13px; }
  .ph-n span { font-size: 15px; }
  .ph-txs h3 { margin-top: 8px; font-size: 22px; }
  .ph-d { margin-top: 8px; font-size: 14.5px; line-height: 1.65; }
  .ph-dots { margin-top: 16px; }
  .scn-car .pin { height: auto; min-height: 0; padding: 300px 0 16px; }
  .js .scn-car .pin { padding: 0; }
  .car-card { position: relative; left: auto; top: auto; width: auto; margin: 0 16px; transform: none; }
}
.scn-car .pin.mob .car-card { position: absolute; left: 14px; right: 14px; top: auto; bottom: 14px; width: auto; max-width: 520px; margin: 0 auto; padding: 15px 16px 14px; transform: none; }
.scn-car .pin.mob .car-card h2 { margin-top: 10px; font-size: 20px; }
.scn-car .pin.mob .car-card h2 br { display: none; }
.scn-car .pin.mob .cc-route { margin-top: 8px; font-size: 13px; }
.scn-car .pin.mob .cc-kpi { margin-top: 12px; }
.scn-car .pin.mob .cc-kpi div { padding: 9px 0 8px; }
.scn-car .pin.mob .cc-kpi b { font-size: 20px; }
.scn-car .pin.mob .cc-steps { display: none; }
.scn-car .pin.mob .cc-d { margin-top: 10px; font-size: 13px; }
.scn-car .pin.mob.short .cc-d { display: none; }

/* 첫 화면: 머리글 아래 한 화면을 꽉 채우고 바로 ① 장면으로 잇는다(휴대폰은 아래 전화·카톡 띠를 뺀 높이) */
.hero-full { display: flex; align-items: center; min-height: calc(100vh - var(--hd)); min-height: calc(100svh - var(--hd)); }

/* ③ 상세 정보 요청: 장면이 끝난 자리 · 폼 없이 전화·카톡 두 단추 */
.ask { background: var(--y); }
.ask-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 32px clamp(28px, 5vw, 80px); padding: clamp(60px, 7vw, 108px) 0; }
.ask h2 { margin-top: 16px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.18; letter-spacing: -0.05em; }
.ask-lead { margin-top: 18px; max-width: 28em; font-size: 16px; color: #2b2b2b; }
.ask-box { padding: 20px; background: #fff; border: 1px solid var(--ink); border-radius: var(--r); }
.ask-bh { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-family: var(--head); font-size: 17px; font-weight: 800; letter-spacing: -0.04em; }
.ask-list { margin: 0 0 16px; }
.ask-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ask-list .no { flex: 0 0 auto; align-self: flex-start; font-family: var(--head); font-size: 13px; font-weight: 800; line-height: 1.6; box-shadow: inset 0 -6px 0 var(--y); }
.ask-list b { font-family: var(--head); font-size: 16px; line-height: 1.4; letter-spacing: -0.035em; }
.ask-list p { margin-top: 3px; font-size: 14px; line-height: 1.6; color: var(--sub); }
@media (max-width: 1023px) {
  .ask-in { grid-template-columns: 1fr; }
  .ask-box { max-width: 520px; }
}
@media (max-width: 767px) {
  .hero-full { min-height: calc(100vh - var(--hd) - 56px); min-height: calc(100svh - var(--hd) - 56px - env(safe-area-inset-bottom)); }
  .ask h2 { font-size: clamp(24px, 7.4vw, 32px); }
  .ask-lead { font-size: 15px; }
}

/* ── C안 ─────────────────────────────────────────────
   첫 화면이 곧 ① 장면의 첫 장: 노란 바탕에 큰 제목과 전화·카톡, 옆에 휴대폰이 이미 떠 있다.
   스크롤하면 제목이 위로 빠지고 그 자리에 단계 글이 들어오며 바탕이 회색으로 바뀐다(motion.js I = 0.16). */
.scn-hero .ph-stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "intro box" "head box" "side box"; }
.js .scn-hero .ph-stage { grid-template-areas: "head box" "side box"; }
.ph-intro { grid-area: intro; padding-bottom: 56px; }
.js .ph-intro { grid-area: 1 / 1 / 3 / 2; align-self: center; z-index: 2; padding-bottom: 0; }
.js .scn-hero .pin { background: var(--y); }
.js .scn-hero .ph-h, .js .scn-hero .ph-side { opacity: 0; visibility: hidden; }
.ph-intro h1 { margin-top: 20px; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -0.05em; }
.ph-intro .lead { margin-top: 20px; max-width: 30em; font-size: 17px; }
.pi-call { max-width: 380px; margin-top: 28px; }
.pi-call .hc-note { margin-top: 10px; color: #3d3d3d; }

/* C안 ③ 상세 정보 요청: 한 화면 가득 · 큰 두 칸(전화·카톡) · 말씀하실 세 가지는 아래 한 줄 */
.ask-full { display: flex; align-items: center; min-height: calc(100vh - var(--hd)); min-height: calc(100svh - var(--hd)); }
.ask-full .ask-in { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "txt pick" "row row"; gap: 44px clamp(28px, 5vw, 80px); }
.ask-full .ask-txt { grid-area: txt; }
.ask-pick { grid-area: pick; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ap { display: flex; flex-direction: column; gap: 8px; min-height: 184px; padding: 20px; border: 1px solid var(--ink); border-radius: var(--r); }
.ap-tel { background: var(--ink); color: #fff; }
.ap-tel:hover { background: #2a2a2a; }
.ap-kakao { background: #fff; color: var(--ink); }
.ap-kakao:hover { background: #fffbea; }
.ap-k { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.ap-kakao .ap-k .ic { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--kakao); }
.ap b { margin-top: auto; font-family: var(--head); font-size: clamp(22px, 2.1vw, 27px); line-height: 1.2; letter-spacing: -0.04em; white-space: nowrap; }
.ap-d { font-size: 14px; line-height: 1.55; }
.ap-tel .ap-d { color: #cfcfca; }
.ap-kakao .ap-d { color: var(--sub); }
.ask-row { grid-area: row; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding-top: 18px; border-top: 2px solid var(--ink); }
.ask-row .ask-bh { padding: 0; border: 0; }
.ask-row ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.ask-row li { display: flex; gap: 12px; padding: 0 20px; border-left: 1px solid rgba(17, 17, 17, 0.28); }
.ask-row li:first-child { padding-left: 0; border-left: 0; }
.ask-row .no { flex: 0 0 auto; font-family: var(--head); font-size: 13px; font-weight: 800; line-height: 1.6; }
.ask-row b { font-family: var(--head); font-size: 16px; line-height: 1.4; letter-spacing: -0.035em; }
.ask-row p { margin-top: 3px; font-size: 14px; line-height: 1.6; color: #2b2b2b; }
@media (max-width: 1023px) {
  .ask-full .ask-in { grid-template-columns: 1fr; grid-template-areas: "txt" "pick" "row"; gap: 32px; }
  .ask-pick { max-width: 640px; }
  .ask-row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 767px) {
  .scn-hero .ph-stage { grid-template-columns: 1fr; grid-template-areas: "intro" "head" "side" "box"; }
  .js .scn-hero .ph-stage { grid-template-areas: "head" "side" "box"; }
  .ph-intro { width: 100%; padding-bottom: 8px; }
  .js .ph-intro { align-self: end; }
  .ph-intro h1 { margin-top: 14px; font-size: clamp(32px, 9vw, 40px); line-height: 1.12; }
  .ph-intro .lead { margin-top: 12px; font-size: 15.5px; }
  .pi-call { display: none; } /* 휴대폰은 아래 고정 전화·카톡 띠가 같은 일을 한다 */
  .ask-full { min-height: calc(100vh - var(--hd) - 56px); min-height: calc(100svh - var(--hd) - 56px - env(safe-area-inset-bottom)); }
  .ask-pick { grid-template-columns: 1fr; }
  .ap { min-height: 0; padding: 16px 18px; }
  .ap b { margin-top: 2px; font-size: 22px; }
  .ask-row ol { grid-template-columns: 1fr; }
  .ask-row li { padding: 12px 0; border-left: 0; border-top: 1px solid rgba(17, 17, 17, 0.2); }
  .ask-row li:first-child { padding-top: 4px; border-top: 0; }
}

/* fit 10-29 */
/* 넘치면 위에 맞춘다(휴대폰이 아래로 잘림) — 제목이 머리글 밑으로 숨지 않게. 스크립트가 크기를 정하기 전 첫 그림에도 같다 */
.js .scn .ph-stage { align-content: safe center; }
/* 글자를 크게 본 휴대폰·낮은 화면(motion.js 가 .tight 를 붙임): 첫 화면과 단계 글을 줄여 제목과 휴대폰이 한 화면에 들어오게 */
@media (max-width: 767px) {
  .pin.tight .ph-stage { row-gap: 12px; padding-top: 8px; }
  .pin.tight .ph-intro .kicker { display: none; }
  .pin.tight .ph-intro h1 { margin-top: 0; font-size: 30px; line-height: 1.1; }
  .pin.tight .ph-intro .lead { margin-top: 8px; font-size: 14.5px; line-height: 1.6; }
  .pin.tight .ph-h { padding-bottom: 6px; font-size: 14px; }
  .pin.tight .ph-txs h3 { margin-top: 4px; font-size: 19px; }
  .pin.tight .ph-d { margin-top: 4px; font-size: 13.5px; line-height: 1.55; }
}

/* 상세 쪽 첫 화면(10-29 대표님 「모든 상세페이지 … 스크롤 인터랙션으로」 「다 메인처럼」)
   위치 줄·H1·한 줄 안내·전화·카톡이 휴대폰 장면의 첫 장이다. 제목은 검색어라 홈 문구보다 조금 작게 */
.scn-lp .ph-intro .crumb { margin-bottom: 18px; }
.scn-lp .ph-intro .crumb + h1 { margin-top: 0; }
.scn-lp .ph-intro .kicker + h1 { margin-top: 12px; }
.scn-lp .ph-intro h1 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.1; letter-spacing: -0.05em; }
.scn-lp .ph-intro .lead { margin-top: 18px; }
@media (max-width: 767px) {
  .scn-lp .ph-intro .crumb { margin-bottom: 10px; }
  .scn-lp .ph-intro .crumb ol { font-size: 12px; }
  .scn-lp .ph-intro .kicker + h1 { margin-top: 8px; }
  .scn-lp .ph-intro h1 { font-size: clamp(30px, 8.6vw, 38px); }
  .pin.tight .ph-intro .crumb { margin-bottom: 4px; }
}
