/* COSTIFY 소개 사이트 — 앱과 같은 남색 계열 */
:root {
  --navy: #1e3a8a; --navy-2: #1e40af; --blue: #2563eb; --blue-50: #eff6ff; --blue-100: #dbeafe;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #ffffff; --bg-2: #f8fafc;
  --ok: #166534; --ok-bg: #dcfce7; --warn: #92400e; --warn-bg: #fef3c7;
  --radius: 14px; --wrap: 1120px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 머리글 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: .12em; color: var(--navy); }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; font-family: inherit; }

/* ---------- 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 10px; font-size: 16px; font-weight: 700; border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy-2); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }

/* ---------- 첫 화면 */
.hero { padding: 72px 0 40px; background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--navy-2); background: #fff; border: 1px solid var(--blue-100); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 48px; font-weight: 800; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--navy-2); }
.hero .lead { font-size: 20px; color: var(--ink-2); margin-top: 20px; max-width: 720px; }
.hero .cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.shot { margin-top: 48px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.shot img { width: 100%; height: auto; }
.shot figcaption, .fig figcaption { font-size: 14px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); background: var(--bg-2); }

/* 기능 페이지 머리 */
.page-hero { padding: 64px 0 24px; background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%); }
.page-hero h1 { font-size: 40px; font-weight: 800; }
.page-hero .lead { font-size: 19px; color: var(--ink-2); margin-top: 16px; max-width: 760px; }

/* ---------- 구역 */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head h2 { font-size: 32px; font-weight: 800; }
.sec-head p { color: var(--ink-2); margin-top: 12px; font-size: 18px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--blue); letter-spacing: .04em; margin-bottom: 8px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; }
.card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--navy-2); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
a.card { color: inherit; transition: border-color .15s, box-shadow .15s; }
a.card:hover { text-decoration: none; border-color: #bfdbfe; box-shadow: var(--shadow); }
a.card .more { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 600; font-size: 15px; }

.pain { border-left: 4px solid #fca5a5; }
.pain h3 { font-size: 18px; }

/* 단계 */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-2); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-2); }

/* 기능 줄 (글 + 화면) */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .text { order: 2; }
.feature h3 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.feature p { color: var(--ink-2); }
.feature ul, .checks { list-style: none; padding: 0; margin: 16px 0 0; }
.feature li, .checks li { position: relative; padding-left: 26px; margin: 8px 0; color: var(--ink-2); font-size: 16px; }
.feature li::before, .checks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.fig { margin: 0; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: #fff; }

.callout { border-radius: var(--radius); padding: 20px 22px; background: var(--warn-bg); color: var(--warn); font-size: 16px; margin-top: 20px; }
.callout b { color: #78350f; }
.callout.info { background: var(--blue-50); color: var(--navy); }

/* 질문 */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; padding: 18px 36px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding: 0 0 20px; }

/* 마지막 권유 */
.cta-band { background: var(--navy); color: #fff; border-radius: 20px; padding: 48px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { font-size: 28px; }
.cta-band p { color: #c7d2fe; margin-top: 8px; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--blue-50); }

/* ---------- 신청 양식 */
.form-wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label, .field .lbl { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.req { color: #dc2626; margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 4px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 16px; font-family: inherit; background: #fff; color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-100); border-color: var(--blue); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cbd5e1; border-radius: 999px; padding: 7px 14px; font-size: 15px; font-weight: 500; cursor: pointer; margin: 0; }
.chips input { accent-color: var(--navy-2); margin: 0; }
.chips label:has(input:checked) { border-color: var(--navy-2); background: var(--blue-50); color: var(--navy); }
.consent { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--bg-2); font-size: 14px; color: var(--ink-2); }
.consent table { width: 100%; border-collapse: collapse; margin: 8px 0 10px; font-size: 13px; }
.consent th, .consent td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; background: #fff; }
.consent th { background: #f1f5f9; width: 28%; }
.consent .agree { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink); font-size: 15px; }
.consent .agree input { width: 18px; height: 18px; accent-color: var(--navy-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 8px; }
.form-msg { margin-top: 14px; font-size: 15px; border-radius: 10px; padding: 12px 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--ok-bg); color: var(--ok); }
.form-msg.err { background: #fee2e2; color: #b91c1c; }
.side .card + .card { margin-top: 16px; }
.side ol { padding-left: 20px; margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.side ol li { margin: 6px 0; }

/* ---------- 바닥글 */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 24px; background: var(--bg-2); }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .brand { font-weight: 800; letter-spacing: .12em; color: var(--navy); }
.foot p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.foot nav a { color: var(--ink-2); }

/* ---------- 좁은 화면 */
@media (max-width: 960px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .text { order: 0; }
  .form-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 16px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 16px; border-bottom: 1px solid var(--bg-2); }
  .menu-btn { display: inline-block; }
  .top .wrap { gap: 12px; justify-content: space-between; }
  .top-actions .login { display: none; }
  .hero { padding: 48px 0 24px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 17px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero .lead { font-size: 17px; }
  section { padding: 52px 0; }
  .sec-head h2 { font-size: 25px; }
  .sec-head p { font-size: 16px; }
  .grid-3, .grid-2, .steps, .row-2 { grid-template-columns: 1fr; }
  .feature h3 { font-size: 22px; }
  .cta-band { padding: 32px 24px; }
  .cta-band h2 { font-size: 23px; }
  .form { padding: 22px 18px; }
  .hero .cta .btn { flex: 1; }
}

/* ================================================================ 움직임 */
/* 첫 화면 두 단: 글 + 장면 */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-grid h1 { font-size: 44px; }

/* ---------- 장면 공통 */
.demo { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 4px rgba(15,23,42,.04), 0 18px 48px rgba(30,58,138,.12); overflow: hidden; font-size: 14px; line-height: 1.5; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 13px; color: var(--muted); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; display: inline-block; }
.demo-bar b { color: var(--ink-2); margin-left: 6px; }
.demo-tag { margin-left: auto; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; background: #fff; }
.js .demo [data-at] { opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.js .demo [data-at].on { opacity: 1; transform: none; }

/* ---------- 도면 → 견적 */
.q-body { display: grid; grid-template-columns: 44% 56%; min-height: 360px; }
.q-draw { position: relative; border-right: 1px solid var(--line); padding: 16px; background: #fbfdff; }
.q-draw .file { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); background: #fff; border: 1px solid var(--blue-100); border-radius: 10px; padding: 8px 10px; }
.q-draw .file .pdf { flex-shrink: 0; white-space: nowrap; font-weight: 800; font-size: 10px; color: #fff; background: #dc2626; border-radius: 4px; padding: 2px 5px; }
.q-draw .file .fn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-draw svg { width: 100%; height: auto; margin-top: 12px; display: block; }
.q-draw svg .ln { stroke: #334155; stroke-width: 1.2; fill: none; }
.q-draw svg .dim { stroke: #94a3b8; stroke-width: .8; fill: none; }
.q-draw svg text { font-size: 7px; fill: #64748b; font-family: inherit; }
.q-draw svg .hl { fill: none; stroke: var(--blue); stroke-width: 2; }
.js .demo .q-draw svg .hl { opacity: 0; transition: opacity .3s; transform: none; }
.js .demo .q-draw svg .hl.on { opacity: 1; animation: pulse 1.2s ease 2; }
@keyframes pulse { 50% { stroke-width: 3.5; } }
.scanline { position: absolute; left: 16px; right: 16px; top: 64px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); box-shadow: 0 0 12px rgba(37,99,235,.6); opacity: 0; }
.js .demo .scanline[data-at] { transform: none; transition: none; }
.js .demo .scanline.on { animation: scan 1.6s ease-in-out 1 forwards; }
.demo.done .scanline { animation: none !important; opacity: 0 !important; }
@keyframes scan { 0% { top: 64px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 92%; opacity: 0; } }
.q-read { padding: 14px 16px; }
.q-h { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin: 2px 0 8px; display: flex; align-items: center; gap: 6px; }
.q-h .ai { font-size: 10px; font-weight: 800; color: var(--navy-2); background: var(--blue-50); border-radius: 4px; padding: 1px 6px; }
.kv { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }
.kv dd.warn { color: var(--warn); background: var(--warn-bg); border-radius: 4px; padding: 0 6px; justify-self: start; }
.calc { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.calc .r { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 2px 0; }
.calc .r span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; white-space: nowrap; }
.calc .r small { color: var(--muted); }
.total { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 12px; }
.total b { font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.total span { font-size: 12px; color: #c7d2fe; min-width: 0; }
.q-done { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.q-done span { font-size: 12px; border-radius: 999px; padding: 3px 10px; background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.demo-foot { font-size: 12px; color: var(--muted); padding: 8px 14px; border-top: 1px solid var(--line); background: var(--bg-2); }

/* ---------- 도면 Rev 알림 */
.rv-body { padding: 16px; }
.rv-toast { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.rv-toast b { background: #fff; color: var(--navy); border-radius: 4px; padding: 1px 6px; font-size: 11px; white-space: nowrap; }
.rv-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 13px; transition: border-color .4s, background .4s; }
.rv-row .nm { font-weight: 700; }
.rv-row .no { color: var(--muted); font-size: 12px; }
.rv-badge { display: inline-grid; font-size: 12px; font-weight: 700; justify-items: end; }
.rv-badge > span { grid-area: 1 / 1; border-radius: 999px; padding: 2px 10px; white-space: nowrap; transition: opacity .4s; }
.rv-badge .ok { background: var(--ok-bg); color: var(--ok); }
.rv-badge .wr { background: var(--warn-bg); color: var(--warn); border: 1px solid #fcd34d; opacity: 0; }
.rv-badge .ok2 { background: var(--ok-bg); color: var(--ok); opacity: 0; }
.rev-demo .rv-row.hit .flag { display: contents; }
.rev-demo .rv-row.hit.warn { border-color: #fcd34d; background: #fffbeb; }
.rev-demo .rv-row.hit.warn .ok { opacity: 0; }
.rev-demo .rv-row.hit.warn .wr { opacity: 1; }
.rev-demo .rv-row.hit.fixed { border-color: var(--line); background: #fff; }
.rev-demo .rv-row.hit.fixed .wr, .rev-demo .rv-row.hit.fixed .ok { opacity: 0; }
.rev-demo .rv-row.hit.fixed .ok2 { opacity: 1; }
.rv-sync { margin-top: 10px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.js .rv-sync { opacity: 0; transition: opacity .4s; }
.js .rv-sync.show { opacity: 1; }
.js .rv-sync.hide { display: none; }
.rv-sync span { font-size: 13px; font-weight: 700; color: #fff; background: var(--navy-2); border-radius: 8px; padding: 6px 12px; }
.rv-sync.show span { animation: nudge 1.4s ease 1 .3s; }
@keyframes nudge { 30% { transform: scale(1.07); } 60% { transform: scale(.98); } }
.rv-done { margin-top: 10px; font-size: 12px; color: var(--ok); font-weight: 700; text-align: right; }

/* ---------- 현장 휴대폰: 도면 열고 치수 재기 */
.phone-stage { display: grid; place-items: center; padding: 22px 0; background: linear-gradient(180deg, #eef4ff, #f8fafc); }
.phone { width: 268px; border-radius: 34px; background: #0f172a; padding: 10px; box-shadow: 0 20px 50px rgba(15,23,42,.25); }
.phone-scr { position: relative; border-radius: 26px; overflow: hidden; background: #fff; height: 470px; display: flex; flex-direction: column; }
.ph-top { padding: 14px 14px 8px; border-bottom: 1px solid var(--line); }
.ph-top .t { font-weight: 800; font-size: 14px; }
.ph-top .s { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.ph-top .s span { font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.ph-top .s .ok { background: var(--ok-bg); color: var(--ok); }
.ph-top .s .gy { background: #f1f5f9; color: var(--ink-2); }
.ph-tabs { display: flex; gap: 6px; padding: 8px 14px; }
.ph-tabs span { font-size: 11px; font-weight: 700; border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; color: var(--muted); transition: all .3s; }
.ph-tabs .a2d { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.field-demo.v3d .ph-tabs .a2d { background: #fff; color: var(--muted); border-color: var(--line); }
.field-demo.v3d .ph-tabs .a3d { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.ph-view { position: relative; flex: 1; overflow: hidden; background: #fbfdff; }
.ph-view .v2d, .ph-view .v3d { position: absolute; inset: 0; transition: opacity .5s; }
.ph-view .v3d { opacity: 0; }
.field-demo.v3d .ph-view .v2d { opacity: 0; }
.field-demo.v3d .ph-view .v3d { opacity: 1; }
.ph-view svg { width: 100%; height: 100%; display: block; }
/* 화면 폭 248px · 도면 320 단위 → 0.775배. 확대할 장(LU-201)의 가운데를 화면 가운데로 옮기고 1.8배 */
.v2d svg.dwg { transform-origin: 182.1px calc(50% - 31.8px); transition: transform 1.1s ease; }
.field-demo:is(.zoom, .f1, .f2, .m1, .f3, .m2, .v3d) svg.dwg { transform: translate(-58.1px, 31.8px) scale(1.8); }
.dwg .p1 { opacity: 0; transition: opacity .3s; }
.field-demo:is(.f2, .m1, .f3, .m2, .v3d) .dwg .p1 { opacity: 1; }
.dwg .ln { stroke: #1e293b; stroke-width: .8; fill: none; }
.dwg .fr { stroke: #94a3b8; stroke-width: .6; fill: none; }
.dwg text { font-size: 5px; fill: #64748b; }
.dwg .meas { stroke: #e11d48; stroke-width: .9; fill: none; }
.dwg .mtxt { font-size: 6.5px; font-weight: 800; fill: #e11d48; }
.dwg .snap { fill: #16a34a; }
.dwg .m, .dwg .m2 { opacity: 0; transition: opacity .35s; }
.field-demo:is(.m1, .f3, .m2, .v3d) .dwg .m { opacity: 1; }
.field-demo:is(.m2, .v3d) .dwg .m2 { opacity: 1; }
.finger { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(37,99,235,.18); border: 2px solid rgba(37,99,235,.55); left: 30%; top: 40%; opacity: 0; transition: left .7s ease, top .7s ease, opacity .3s; pointer-events: none; }
.field-demo.f1 .finger { opacity: 1; left: calc(50% - 59px); top: calc(50% - 43.5px); }
.field-demo.f2 .finger { opacity: 1; left: calc(50% + 25px); top: calc(50% - 43.5px); }
.field-demo.f3 .finger { opacity: 1; left: calc(50% - 17px); top: calc(50% - 17px); }
.ph-chip { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(15,23,42,.88); color: #fff; font-size: 11.5px; border-radius: 10px; padding: 7px 10px; opacity: 0; transition: opacity .35s; }
.ph-chip b { color: #fda4af; }
.field-demo:is(.m1, .f3) .ph-chip.c1 { opacity: 1; }
.field-demo.m2 .ph-chip.c2 { opacity: 1; }
.field-demo.v3d .ph-chip.c3 { opacity: 1; }
.iso .f1 { fill: #e2e8f0; } .iso .f2 { fill: #cbd5e1; } .iso .f3 { fill: #f1f5f9; }
.iso path, .iso ellipse { stroke: #475569; stroke-width: .8; }
.iso .hole { fill: #94a3b8; }
.iso .sel { fill: none; stroke: #e11d48; stroke-width: 1.8; }
.ph-foot { font-size: 10.5px; color: var(--muted); padding: 6px 14px 10px; border-top: 1px solid var(--line); }

/* ---------- 동시 작업 · 편집 잠금 */
.lock-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; background: var(--bg-2); }
.who { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; }
.who-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.who-h .av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--navy-2); }
.who-h .av.b { background: #0f766e; }
.who .pn { font-weight: 800; }
.who .pn small { font-weight: 500; color: var(--muted); }
.lk { margin: 8px 0; font-size: 12px; font-weight: 700; border-radius: 8px; padding: 6px 8px; display: grid; }
.lk > span { grid-area: 1 / 1; transition: opacity .35s; }
.lk .s1 { color: var(--muted); }
.lk .s2, .lk .s3 { opacity: 0; }
.who.me .lk .s2 { color: var(--navy); }
.who.other .lk .s2 { color: #b45309; }
.lock-demo:is(.locked, .unpress, .unlocked) .lk .s1, .lock-demo.unlocked .lk .s2 { opacity: 0; }
.lock-demo:is(.locked, .unpress) .lk .s2, .lock-demo.unlocked .lk .s3 { opacity: 1; }
.lock-demo:is(.locked, .unpress) .who.me .lk { background: var(--blue-50); }
.lock-demo:is(.locked, .unpress) .who.other .lk { background: #fffbeb; }
.lk .s3 { color: var(--ok); }
.btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btns span { font-size: 11.5px; font-weight: 700; border-radius: 7px; padding: 4px 9px; border: 1px solid var(--line-2, #cbd5e1); color: var(--ink-2); background: #fff; transition: all .35s; }
.btns span.pri { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.lock-demo:is(.locked, .unpress) .who.other .btns span { opacity: .35; text-decoration: line-through; }
.lock-demo:is(.locked, .unpress) .who.me .btns .go { background: var(--ok-bg); border-color: #86efac; color: var(--ok); }
.who.me .btns .end { display: none; }
.lock-demo:is(.locked, .unpress) .who.me .btns .end { display: inline-block; }
.lock-demo:is(.locked, .unpress) .who.me .btns .go { display: none; }
.lock-demo.press .who.me .btns .go { animation: nudge 1s ease 1; }
.lock-demo.unpress .who.me .btns .end { animation: nudge 1s ease 1; }
.lock-note { font-size: 12px; color: var(--muted); padding: 0 14px 12px; background: var(--bg-2); }

/* ---------- 승인 (결재) */
.ap-body { padding: 14px 16px; }
.ap-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ap-step { border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; font-size: 12px; color: var(--muted); transition: all .4s; }
.ap-step b { display: block; font-size: 13px; color: var(--ink-2); }
.ap-step.cur { border-color: var(--navy-2); background: var(--blue-50); color: var(--navy); }
.ap-step.cur b { color: var(--navy); }
.ap-step.dn { border-color: #86efac; background: var(--ok-bg); color: var(--ok); }
.ap-step.dn b { color: var(--ok); }
.ap-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; }
.ap-card .h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ap-card .h b { font-size: 14px; }
.st { display: inline-grid; font-size: 11.5px; font-weight: 800; }
.st > span { grid-area: 1 / 1; border-radius: 999px; padding: 2px 9px; white-space: nowrap; transition: opacity .35s; opacity: 0; }
.st .w { background: #f1f5f9; color: var(--ink-2); opacity: 1; }
.st .a { background: var(--blue-100); color: var(--navy); }
.st .r { background: var(--ok-bg); color: var(--ok); }
.ap-demo:is(.s-a, .p2, .s-r) .st .w, .ap-demo.s-r .st .a { opacity: 0; }
.ap-demo:is(.s-a, .p2) .st .a, .ap-demo.s-r .st .r { opacity: 1; }
.ap-demo:is(.s-a, .p2) .ap-step.k1, .ap-demo.s-r :is(.ap-step.k1, .ap-step.k2) { border-color: #86efac; background: var(--ok-bg); color: var(--ok); }
.ap-demo:is(.s-a, .p2) .ap-step.k2 { border-color: var(--navy-2); background: var(--blue-50); color: var(--navy); }
.ap-demo.s-r .ap-step.k3 { border-color: #86efac; background: var(--ok-bg); color: var(--ok); }
.ap-demo .ap-log .l2, .ap-demo .ap-log .l3 { opacity: 0; transition: opacity .35s; }
.ap-demo:is(.s-a, .p2, .s-r) .ap-log .l2, .ap-demo.s-r .ap-log .l3 { opacity: 1; }
.ap-card .chg { color: var(--ink-2); margin-top: 6px; }
.ap-card .chg small { color: var(--muted); }
.ap-act { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.ap-act .btn2 { font-size: 12.5px; font-weight: 800; color: #fff; background: var(--navy-2); border-radius: 8px; padding: 5px 12px; white-space: nowrap; }
.ap-act .btn2.rel { background: #15803d; }
.ap-demo .ap-act .bx { display: grid; }
.ap-demo .ap-act .bx > span { grid-area: 1 / 1; transition: opacity .3s; }
.ap-demo .ap-act .bx .b2, .ap-demo .ap-act .bx .b3 { opacity: 0; }
.ap-demo:is(.s-a, .p2, .s-r) .ap-act .bx .b1, .ap-demo.s-r .ap-act .bx .b2 { opacity: 0; }
.ap-demo:is(.s-a, .p2) .ap-act .bx .b2, .ap-demo.s-r .ap-act .bx .b3 { opacity: 1; }
.ap-demo.p1 .ap-act .bx .b1, .ap-demo.p2 .ap-act .bx .b2 { animation: nudge 1s ease 1; }
.ap-log { margin-top: 10px; font-size: 12px; color: var(--muted); }
.ap-log div { padding: 2px 0; }
.ap-log b { color: var(--ink-2); }
.ap-noperm { margin-top: 10px; font-size: 12px; color: var(--muted); background: var(--bg-2); border-radius: 8px; padding: 7px 10px; }

/* 장면 + 글 두 단 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: 30px; font-weight: 800; }
.split p { color: var(--ink-2); margin-top: 12px; }

/* ---------- 스크롤 등장 (스크립트가 켜진 경우에만 숨겼다가 보임) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* ---------- 휴대폰 하단 고정 신청 버튼 */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 10px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15,23,42,.08); transform: translateY(110%); transition: transform .3s ease; }
  .sticky-cta.show { transform: none; }
  .sticky-cta p { flex: 1; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
  .sticky-cta p b { display: block; color: var(--ink); font-size: 14px; }
  .sticky-cta .btn { padding: 11px 16px; font-size: 15px; }
  body.has-sticky { padding-bottom: 76px; }
}

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .hero-grid h1 { font-size: 31px; }
  .q-body { grid-template-columns: 1fr; min-height: 0; }
  .q-draw { border-right: 0; border-bottom: 1px solid var(--line); }
  .q-draw svg { max-width: 300px; margin-left: auto; margin-right: auto; }
  .split h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .demo [data-at], .js .reveal { transition: none !important; animation: none !important; }
}

@media (max-width: 960px) {
  .split.flip > :first-child { order: 2; }
  .lock-body { grid-template-columns: 1fr; }
}
