/* DEALER ZERO — 라이트 아이보리 · 에메랄드 디자인 시스템 */
:root {
  --ivory: #faf7f0;
  --ivory-2: #f4efe3;
  --paper: #ffffff;
  --line: #e7e1d3;
  --line-strong: #d8d1c0;
  --ink: #1d2a25;
  --ink-2: #33443c;
  --muted: #6d7c74;
  --green: #0e7a5f;
  --green-deep: #0a5c47;
  --green-soft: #e8f3ec;
  --green-softer: #f1f8f3;
  --gold: #b58b2a;
  --gold-soft: #f7efdb;
  --red: #b4453b;
  --red-soft: #fbeceb;
  --shadow-sm: 0 2px 8px rgba(24, 62, 48, .05);
  --shadow: 0 12px 34px rgba(24, 62, 48, .08);
  --shadow-lg: 0 24px 60px rgba(24, 62, 48, .14);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --max: 1200px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: -.01em;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.03em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(14, 122, 95, .35); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 상단 띠 ---------- */
.topline {
  background: linear-gradient(90deg, #e9f4ee 0%, #f6f1e2 55%, #eaf4ee 100%);
  border-bottom: 1px solid #e3ecdf;
  font-size: 13px;
  color: var(--green-deep);
}
.topline .wrap {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 38px; text-align: center; flex-wrap: wrap;
}
.topline b { font-weight: 800; }
.topline .dot { width: 4px; height: 4px; border-radius: 50%; background: #b9cfc0; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 26px; min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; flex: 0 0 auto;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(150deg, #12886a, #0a5c47);
  color: #fdfbf5; display: grid; place-items: center;
  font-weight: 900; font-size: 15px; letter-spacing: -.04em;
  box-shadow: 0 6px 14px rgba(10, 92, 71, .22);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-en { font-weight: 900; font-size: 17px; letter-spacing: .06em; color: var(--ink); }
.brand-ko { font-size: 11px; color: var(--muted); letter-spacing: .18em; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav button {
  border: 0; background: transparent; padding: 9px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.main-nav button:hover { background: var(--green-softer); }
.main-nav button.active { color: var(--green-deep); background: var(--green-soft); font-weight: 800; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px;
  overflow: hidden; background: var(--paper);
}
.lang-toggle button {
  border: 0; background: transparent; padding: 6px 11px; font-size: 12px; font-weight: 700; color: var(--muted);
}
.lang-toggle button.on { background: var(--green); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 12px; padding: 11px 18px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(150deg, #12886a, #0b6b52); color: #fff; box-shadow: 0 8px 18px rgba(11, 107, 82, .22); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(11, 107, 82, .3); }
.btn-ghost { background: var(--paper); border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn-gold { background: var(--gold-soft); border-color: #e7d6a6; color: #7c5d12; }
.btn-soft { background: var(--green-soft); border-color: #cfe6d7; color: var(--green-deep); }
.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-icon { padding: 9px 12px; }

.install-btn { display: none; }
@media (min-width: 900px) { .install-btn { display: inline-flex; } }

/* ---------- 히어로 ---------- */
.hero { padding: 48px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid #dbe9de; color: var(--green-deep);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: #1aa97f; box-shadow: 0 0 0 4px rgba(26, 169, 127, .16); }
.hero h1 { font-size: clamp(30px, 3.6vw, 46px); color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-sub { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 560px; }
.hero-sub b { color: var(--green-deep); }
.hero-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.hero-note {
  margin-top: 20px; font-size: 12.5px; color: var(--muted); max-width: 560px;
  border-left: 3px solid var(--line-strong); padding-left: 12px;
}

.hero-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 20px; position: relative; overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, #12886a, #c9a64a, #12886a);
}
.hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hc-title { font-size: 13px; font-weight: 800; color: var(--green-deep); letter-spacing: .04em; }
.hc-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.hc-live i { width: 7px; height: 7px; border-radius: 50%; background: #d98a2b; }
.hc-car { display: flex; gap: 14px; align-items: center; }
.hc-thumb { width: 118px; height: 78px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; background: var(--ivory-2); }
.hc-name { font-weight: 800; font-size: 15.5px; }
.hc-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.hc-price { margin-top: 6px; font-weight: 800; color: var(--green-deep); }
.hc-price small { font-weight: 600; color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.hc-flow { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 8px; }
.hc-step { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); }
.hc-step b { width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; font-size: 11px; flex: 0 0 auto; }
.hc-step.done { color: var(--green-deep); font-weight: 700; }
.hc-step.done b { background: var(--green); color: #fff; }

/* ---------- 통계 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 10px 0 40px; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.stat .k { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 26px; font-weight: 900; color: var(--green-deep); letter-spacing: -.03em; margin-top: 2px; }
.stat .v small { font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 3px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 12px 0 46px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.section-head .desc { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 640px; }
.section-head .side { display: flex; align-items: center; gap: 8px; }

/* ---------- 필터 칩 ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-2);
  border-radius: 999px; padding: 8px 15px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.chip:hover { border-color: var(--green); color: var(--green-deep); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 14px rgba(11, 107, 82, .18); }
.chip .cnt { font-size: 11.5px; opacity: .8; margin-left: 4px; }
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-label { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.select {
  border: 1px solid var(--line-strong); background: var(--paper); border-radius: 10px;
  padding: 9px 34px 9px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236d7c74' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}

/* ---------- 차량 카드 ---------- */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-align: left;
}
.vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3d5; }
.vcard-media { position: relative; aspect-ratio: 16 / 9.6; background: var(--ivory-2); overflow: hidden; }
.vcard-media svg { width: 100%; height: 100%; display: block; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 7px;
  padding: 4px 8px; font-size: 11px; font-weight: 800; letter-spacing: -.01em;
  background: rgba(255, 255, 255, .92); color: var(--ink-2); border: 1px solid rgba(0, 0, 0, .05);
  backdrop-filter: blur(4px);
}
.badge-sample { background: var(--gold-soft); color: #7c5d12; border-color: #ecd9a8; }
.badge-export { background: var(--green-soft); color: var(--green-deep); border-color: #cfe6d7; }
.badge-long { background: #fdf0e6; color: #9a5418; border-color: #f2d9c4; }
.badge-awarded { background: var(--green); color: #fff; border-color: var(--green); }
.vcard-time { position: absolute; right: 10px; bottom: 10px; }
.time-pill {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
  font-size: 11.5px; font-weight: 800; color: var(--ink-2);
}
.time-pill.urgent { color: var(--red); border-color: #efd3cf; background: #fff8f7; }
.time-pill.ended { color: var(--muted); }

.vcard-body { padding: 15px 16px 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.vcard-title { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.vcard-title span { color: var(--muted); font-weight: 600; font-size: 13px; }
.vcard-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.vcard-meta span { background: var(--ivory); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.vcard-prices { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.vcard-price .lbl { font-size: 11px; color: var(--muted); font-weight: 600; }
.vcard-price .val { font-size: 19px; font-weight: 900; color: var(--green-deep); letter-spacing: -.03em; }
.vcard-price .val small { font-size: 12px; font-weight: 700; }
.vcard-buy { text-align: right; }
.vcard-buy .lbl { font-size: 10.5px; color: var(--gold); font-weight: 800; }
.vcard-buy .val { font-size: 14px; font-weight: 800; color: #7c5d12; }
.vcard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--line); padding: 10px 16px; background: #fcfaf4;
  font-size: 12px; color: var(--muted);
}
.vcard-foot .lock { display: inline-flex; align-items: center; gap: 5px; color: var(--green-deep); font-weight: 700; }
.vcard-foot .bids b { color: var(--ink); }

/* ---------- 빈 상태 ---------- */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px;
  background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  color: var(--muted);
}

/* ---------- 100% 오토 흐름 ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); position: relative; }
.flow-num { width: 30px; height: 30px; border-radius: 10px; background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; font-weight: 900; font-size: 13px; margin-bottom: 12px; }
.flow-card h3 { font-size: 16px; margin-bottom: 6px; }
.flow-card p { font-size: 13px; color: var(--muted); }
.flow-card .auto { position: absolute; top: 16px; right: 16px; font-size: 10.5px; font-weight: 800; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 3px 8px; }

/* ---------- 신뢰/법적 고지 ---------- */
.notice {
  background: var(--green-softer); border: 1px solid #d8e9dd; border-radius: var(--r);
  padding: 18px 20px; font-size: 13px; color: var(--ink-2); display: flex; gap: 12px;
}
.notice .ico { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; background: var(--paper); color: var(--green-deep); display: grid; place-items: center; font-weight: 900; font-size: 12px; border: 1px solid #d8e9dd; }
.notice b { color: var(--green-deep); }

/* ---------- 협력업체 ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pcard-avatar {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(150deg, #e9f4ee, #f6f0df); border: 1px solid #e0ead9;
  display: grid; place-items: center; font-weight: 900; font-size: 15px; color: var(--green-deep);
}
.pcard h3 { font-size: 16px; }
.pcard .cat { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pcard .promo { font-size: 13.5px; color: var(--ink-2); background: var(--ivory); border-radius: 10px; padding: 9px 11px; border: 1px solid var(--line); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.pcard-contact { font-size: 13px; font-weight: 700; color: var(--green-deep); }
.pcard-region { font-size: 11.5px; color: var(--muted); }

.partner-cta {
  background: linear-gradient(140deg, #f4faf6, #fbf6e9);
  border: 1px solid #dbe9de; border-radius: var(--r-lg); padding: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; flex-wrap: wrap;
}
.partner-cta h3 { font-size: 22px; }
.partner-cta p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- 요금/안내 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: var(--shadow-sm); position: relative; }
.price-card.featured { border-color: #bfe0cd; box-shadow: var(--shadow); }
.price-card .tag { font-size: 12px; font-weight: 800; color: var(--green); background: var(--green-soft); display: inline-block; border-radius: 999px; padding: 4px 10px; margin-bottom: 12px; }
.price-card .amount { font-size: 38px; font-weight: 900; color: var(--green-deep); letter-spacing: -.04em; }
.price-card .amount small { font-size: 15px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.price-card .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.price-card ul { margin-top: 16px; display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.price-card li { display: flex; gap: 8px; }
.price-card li::before { content: "✓"; color: var(--green); font-weight: 900; }

.guide-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.guide-block + .guide-block { margin-top: 16px; }
.guide-block h3 { font-size: 19px; margin-bottom: 4px; }
.guide-block .lead { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.lookup-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lookup-rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lookup-row {
  display: grid; grid-template-columns: 1.5fr .55fr .85fr 1.1fr; gap: 12px;
  padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13.5px; align-items: center;
  background: #fffdf8;
}
.lookup-row.head { background: #fcfaf4; border-top: 0; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.lookup-row .lr-main b { display: block; font-size: 14px; }
.lookup-row .lr-provider { color: var(--ink-2); font-size: 12.5px; }
.lookup-row .lr-how { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) {
  .lookup-row { grid-template-columns: 1fr auto; gap: 3px 10px; padding: 12px; }
  .lookup-row.head { display: none; }
  .lookup-row .lr-main { grid-column: 1; }
  .lookup-row .lr-provider { grid-column: 1; font-size: 11.5px; }
  .lookup-row .lr-cost { grid-column: 2; grid-row: 1; align-self: start; text-align: right; }
  .lookup-row .lr-how { grid-column: 1 / -1; font-size: 12px; }
}
.lookup-table th, .lookup-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lookup-table th { font-size: 12px; color: var(--muted); font-weight: 700; background: #fcfaf4; }
.lookup-table td b { color: var(--ink); }
.cost { font-weight: 800; color: var(--green-deep); white-space: nowrap; }
.cost.paid { color: #9a5418; }
.mini-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.legal-list { display: grid; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.legal-list li { display: flex; gap: 9px; }
.legal-list li::before { content: "·"; color: var(--gold); font-weight: 900; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fcfaf4; }
.faq summary { font-weight: 700; font-size: 14.5px; cursor: pointer; }
.faq p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ---------- 푸터 ---------- */
.site-footer { background: #f3f7f2; border-top: 1px solid var(--line); padding: 34px 0 90px; margin-top: 20px; }
.footer-grid { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.site-footer .brand-en { font-size: 15px; }
.site-footer p { font-size: 12.5px; color: var(--muted); max-width: 620px; margin-top: 10px; }
.footer-links { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--green-deep); text-decoration: underline; }

/* ---------- 모바일 하단 탭 ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  }
  .tabbar button {
    border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 5px 2px; border-radius: 10px;
  }
  .tabbar button .ti { font-size: 17px; line-height: 1; }
  .tabbar button.active { color: var(--green-deep); background: var(--green-soft); }
  .site-footer { padding-bottom: 110px; }
}

/* ---------- 설치 배너 ---------- */
.install-banner {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 18px; z-index: 70; width: min(520px, calc(100% - 24px));
  background: linear-gradient(120deg, #ffffff, #f6f1e2);
  border: 1px solid #dbe6d6; border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 12px 14px; display: none; align-items: center; gap: 12px;
}
.install-banner.show { display: flex; }
.install-banner .ib-icon { width: 42px; height: 42px; border-radius: 11px; overflow: hidden; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.install-banner .ib-text { flex: 1; min-width: 0; }
.install-banner .ib-text b { display: block; font-size: 13.5px; }
.install-banner .ib-text span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.install-banner .ib-close { border: 0; background: transparent; color: var(--muted); font-size: 18px; padding: 6px; line-height: 1; }
@media (max-width: 860px) {
  .install-banner { bottom: calc(66px + env(safe-area-inset-bottom)); padding: 10px 12px; }
  .install-banner .ib-btn { padding: 8px 12px; font-size: 13px; }
  .install-banner .ib-text b { font-size: 12.5px; }
  .install-banner .ib-text span { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- 모달 ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-root.open { display: block; }
.modal-scrim { position: absolute; inset: 0; background: rgba(26, 55, 43, .34); backdrop-filter: blur(2px); }
.modal-panel {
  position: relative; background: var(--paper); border-radius: 20px;
  width: min(600px, calc(100% - 28px)); max-height: calc(100dvh - 60px);
  margin: 30px auto; overflow: auto; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  animation: pop .18s ease;
}
.modal-panel.wide { width: min(920px, calc(100% - 28px)); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head {
  position: sticky; top: 0; z-index: 2; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 18px; }
.modal-head .x { border: 1px solid var(--line); background: var(--ivory); width: 34px; height: 34px; border-radius: 10px; font-size: 18px; color: var(--muted); }
.modal-body { padding: 20px; }
@media (max-width: 640px) {
  .modal-panel, .modal-panel.wide { width: 100%; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .modal-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
}

/* ---------- 폼 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field label .req { color: var(--red); margin-left: 2px; }
.input, .textarea {
  width: 100%; border: 1px solid var(--line-strong); background: #fffdf8;
  border-radius: 11px; padding: 11px 12px; font-size: 14.5px; color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14, 122, 95, .12); }
.textarea { min-height: 84px; resize: vertical; }
.hint { font-size: 11.5px; color: var(--muted); }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.form-actions .btn { flex: 1; }
.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-2); }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 11px; overflow: hidden; }
.seg button { border: 0; background: #fffdf8; padding: 10px 14px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--green-soft); color: var(--green-deep); }
.alert { border-radius: 10px; padding: 11px 13px; font-size: 13px; margin-top: 12px; display: none; }
.alert.show { display: block; }
.alert.err { background: var(--red-soft); color: #8d2f27; border: 1px solid #f0cfcb; }
.alert.good { background: var(--green-soft); color: var(--green-deep); border: 1px solid #cfe6d7; }

/* ---------- 로그인/데모 계정 ---------- */
.tabs-sm { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs-sm button { border: 0; background: transparent; padding: 9px 12px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-sm button.on { color: var(--green-deep); border-bottom-color: var(--green); }
.demo-box { margin-top: 18px; background: var(--ivory); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 13px; }
.demo-box .t { font-size: 12px; font-weight: 800; color: var(--gold); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.demo-list { display: flex; gap: 7px; flex-wrap: wrap; }
.demo-btn { border: 1px solid var(--line-strong); background: var(--paper); border-radius: 9px; padding: 7px 10px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); text-align: left; }
.demo-btn:hover { border-color: var(--green); color: var(--green-deep); }
.demo-btn small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; }

/* ---------- 매물 상세 ---------- */
.detail-hero { aspect-ratio: 16 / 7; background: var(--ivory-2); border-radius: 14px; overflow: hidden; position: relative; }
.detail-hero svg { width: 100%; height: 100%; }
.detail-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.detail-title h2 { font-size: 24px; }
.detail-title .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.price-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.price-box > div { background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.price-box .l { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.price-box .v { font-size: 18px; font-weight: 900; color: var(--green-deep); letter-spacing: -.03em; }
.price-box .v small { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 18px; }
.spec { background: #fcfaf4; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.spec .l { font-size: 11px; color: var(--muted); }
.spec .v { font-size: 13.5px; font-weight: 700; }
.detail-note { font-size: 13.5px; color: var(--ink-2); background: var(--ivory); border-radius: 12px; padding: 13px; border: 1px solid var(--line); }

.panel { border: 1px solid var(--line); border-radius: 14px; margin-top: 16px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; background: #fcfaf4; border-bottom: 1px solid var(--line); }
.panel-head h4 { font-size: 14.5px; }
.panel-head .t { font-size: 12px; color: var(--muted); }
.panel-body { padding: 15px; }

.locked {
  background: var(--green-softer); border: 1px dashed #cfe3d6; border-radius: 12px;
  padding: 14px; display: flex; gap: 11px; align-items: center; font-size: 13px; color: var(--ink-2);
}
.locked .lk { width: 34px; height: 34px; border-radius: 10px; background: var(--paper); border: 1px solid #d8e9dd; display: grid; place-items: center; flex: 0 0 auto; color: var(--green-deep); }
.reveal { background: linear-gradient(140deg, #ecf7f0, #fbf5e6); border: 1px solid #cfe6d7; border-radius: 14px; padding: 16px; }
.reveal .r-head { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green-deep); font-size: 14px; margin-bottom: 12px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.contact-card .who { font-size: 11px; font-weight: 800; color: var(--gold); letter-spacing: .03em; }
.contact-card .name { font-size: 15px; font-weight: 800; margin-top: 2px; }
.contact-card .biz { font-size: 11.5px; color: var(--muted); }
.contact-card .tel { font-size: 15px; font-weight: 800; color: var(--green-deep); margin-top: 7px; }
.contact-card .tel a { text-decoration: none; }
.contact-card .meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.bid-list { display: grid; gap: 8px; }
.bid-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fffdf8; }
.bid-row.mine { border-color: #bfe0cd; background: var(--green-softer); }
.bid-row.won { border-color: #d9c489; background: var(--gold-soft); }
.bid-row .who { font-size: 13px; font-weight: 700; }
.bid-row .who small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.bid-row .amt { font-weight: 900; color: var(--green-deep); font-size: 14.5px; }
.bid-row .amt small { font-size: 11px; color: var(--muted); font-weight: 600; margin-right: 3px; }

.bid-form { display: flex; gap: 8px; margin-top: 12px; }
.bid-form .input { flex: 1; }
.detail-cta { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.detail-cta .btn { flex: 1; }

.lookup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lookup-card { border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: #fffdf8; display: flex; flex-direction: column; gap: 8px; }
.lookup-card .lh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lookup-card .lh b { font-size: 13.5px; }
.lookup-card p { font-size: 12px; color: var(--muted); }
.lookup-card .price { font-size: 11.5px; font-weight: 800; color: var(--green-deep); background: var(--green-soft); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.lookup-card .price.paid { color: #9a5418; background: var(--gold-soft); }
.lookup-card .btn { margin-top: auto; }

.badge-line { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: #fffdf8; border: 1px solid #cfe6d7; color: var(--green-deep);
  padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 700; z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { color: #8d2f27; border-color: #f0cfcb; background: #fff8f7; }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .topline { font-size: 11.5px; }
  .topline .wrap { gap: 8px; min-height: 34px; padding: 5px 12px; }
  .topline .hide-m { display: none; }
  .site-header .wrap { min-height: 60px; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
  .brand-en { font-size: 15px; }
  .brand-ko { font-size: 9.5px; letter-spacing: .12em; }
  .main-nav { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .btn-primary { display: none; }
  .site-header .wrap { gap: 8px; }
  .lang-toggle button { padding: 5px 9px; font-size: 11px; }
  .hero { padding: 26px 0 18px; }
  .hero-sub { font-size: 15px; }
  .hero-actions .btn { flex: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
  .stat { padding: 13px 14px; }
  .stat .v { font-size: 21px; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .section { padding: 8px 0 34px; }
  .section-head .side { width: 100%; }
  .section-head .side .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .price-box { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .price-box > div { padding: 10px 9px; }
  .price-box .v { font-size: 15.5px; }
  .price-box .v small { font-size: 10.5px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .lookup-grid { grid-template-columns: 1fr; }
  .detail-hero { aspect-ratio: 16 / 10; }
  .detail-cta .btn { flex: 1 1 100%; }
  .partner-cta { padding: 20px; }
  .partner-cta .btn { width: 100%; }
  .site-footer { margin-top: 8px; }
}
@media (max-width: 400px) {
  .brand-ko { display: none; }
  .hero h1 { font-size: 27px; }
  .vcard-price .val { font-size: 17px; }
}

/* 인쇄/모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
