/* 한부장 · 한국부동산장터 — 모바일 웹앱(PWA) 스타일
   화이트 바탕 + 딥네이비·골드 포인트, 390px 모바일 기준 설계 */

:root {
  --navy: #0b2545;
  --navy-700: #123a63;
  --navy-900: #071a31;
  --gold: #c9a227;
  --gold-600: #a9861c;
  --gold-soft: #f6efdc;
  --ink: #14213d;
  --text: #24344d;
  --muted: #5c7089;
  --line: #e3e9f1;
  --line-strong: #cfd9e6;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --danger: #b3261e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 10px rgba(11, 37, 69, .05);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, .10);
  --header-h: 56px;
  --tabbar-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "Pretendard", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* hidden 속성이 항상 이기도록 (display:grid·flex 규칙보다 우선) */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px);
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--navy-700); text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
strong { font-weight: 700; color: var(--ink); }

/* 절대 중간에서 줄이 나뉘면 안 되는 구절 (전화번호·상호·금액 등) */
.nw { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ── 헤더 ─────────────────────────────── */
.app-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--navy);
}
.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy);
  box-shadow: 0 0 0 1px rgba(11, 37, 69, .10);
}
.brand-name {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-name small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

/* ── 공통 레이아웃 ─────────────────────── */
main {
  display: block;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  max-width: 1080px;
  margin: 0 auto;
}

.view { animation: fade-in .22s ease-out; }
.view[hidden] { display: none; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── 히어로 ───────────────────────────── */
.hero {
  position: relative;
  padding: 30px 20px 26px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 162, 39, .20) 0%, rgba(201, 162, 39, 0) 58%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 62%, var(--navy-900) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }
.hero-visual { display: none; }
@media (min-width: 900px) {
  .hero-inner { max-width: 640px; }
  .hero-visual {
    display: block;
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
  }
  .hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: .92;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 40px rgba(0, 0, 0, .28);
  }
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 162, 39, .25) 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(201, 162, 39, .55);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #f0dfae;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 162, 39, .8);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, .7); }
  70% { box-shadow: 0 0 0 8px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

.hero h1 {
  margin: 14px 0 0;
  font-size: clamp(25px, 7.4vw, 40px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
}
/* 어두운 히어로 위에서 강조 텍스트가 검게 보이던 문제 — 밝은 색으로 고정 */
.hero strong,
.hero h1 strong,
.hero .hero-lead strong { color: #ffffff; }
.hero-lead {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #cdd9e8;
  max-width: 46ch;
}
.hero-lead strong { color: #f7d560; font-weight: 800; }
.hero-facts strong { color: #ffffff; }

.hero .btn-block { margin-top: 20px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.hero-facts li {
  font-size: 12px;
  font-weight: 600;
  color: #e6eefa;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ── 버튼 ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:active { transform: scale(.985); }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, #d3ad34 0%, var(--gold) 55%, var(--gold-600) 100%);
  color: #23180a;
  box-shadow: 0 6px 18px rgba(201, 162, 39, .28);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(201, 162, 39, .34); }
.btn-primary:disabled { opacity: .6; box-shadow: none; cursor: progress; }

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--navy-700); }

.btn-text {
  background: none;
  border: none;
  color: var(--muted);
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
}
.btn-text:hover { color: var(--navy); }

.btn-sm { min-height: 40px; font-size: 14px; padding: 8px 14px; border-radius: 10px; }

/* ── 블록 ─────────────────────────────── */
.block {
  padding: 30px 20px;
  border-bottom: 1px solid var(--line);
}
.block-soft { background: var(--bg-soft); }
.block-plain { padding-bottom: 30px; }

.block-head { margin-bottom: 16px; }
.block > h2 { margin-bottom: 10px; }
.block-plain > p + .legal { margin-top: 14px; }
.block-head h2,
.block > h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.block-head p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ── 4단계 ────────────────────────────── */
.steps { display: grid; gap: 10px; }
.step {
  display: flex;
  gap: 12px;
  padding: 15px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.step-no {
  flex: none;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.step:last-child .step-no { background: var(--gold); color: #23180a; }
.step-body h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}
.step-body p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #4a5c74;
}
.tag-free {
  font-size: 11px;
  font-weight: 800;
  color: #17694a;
  background: #e6f4ec;
  border: 1px solid #cbe6d8;
  border-radius: 6px;
  padding: 2px 7px;
}
.tag-paid {
  font-size: 11px;
  font-weight: 800;
  color: #805f0d;
  background: #fbf1d3;
  border: 1px solid #ecdba8;
  border-radius: 6px;
  padding: 2px 7px;
}

/* ── 비용 안내 ──────────────────────── */
.pricing { display: grid; gap: 12px; }
.price-card {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.price-free { border-color: #cfe6d9; background: linear-gradient(180deg, #f6fbf8 0%, #ffffff 70%); }
.price-paid { border-color: #e8dbb4; background: linear-gradient(180deg, #fdfaef 0%, #ffffff 70%); }
.price-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0;
}
.price-label span { font-size: 11px; font-weight: 600; color: var(--muted); }

/* 정가 취소선 → 지금 금액 */
.price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 6px 0 0;
}
.price-was {
  font-size: 16px;
  font-weight: 700;
  color: #8a97a8;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  white-space: nowrap;
}
.price-now {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #805f0d;
  white-space: nowrap;
}
.price-now-sm { font-size: 24px; }
.price-free .price-now { color: #17694a; }
.price-flag {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0;
  color: #17694a;
  background: #e6f4ec;
  border: 1px solid #cbe6d8;
}
.price-flag-paid { color: #805f0d; background: #fbf1d3; border-color: #ecdba8; }
.price-sub { margin: 8px 0 2px; font-size: 12.5px; color: var(--muted); }
.price-note, .cards-note { margin-top: 12px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.cards-note strong { color: var(--ink); }
.info-price {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: #45586f;
}

/* ── 서비스 카드 ──────────────────────── */
.cards { display: grid; gap: 12px; }
.card {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--navy);
  color: var(--gold);
  margin-bottom: 12px;
}
.card-icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.card p { margin-top: 6px; font-size: 13.5px; color: #4a5c74; }

/* ── 안내문 ───────────────────────────── */
.notice {
  font-size: 13px;
  line-height: 1.65;
  color: #4a5c74;
  background: var(--gold-soft);
  border: 1px solid #eadcae;
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}
.notice strong { color: #6b5410; }
.notice-inline { margin-bottom: 14px; }
.notice-top { margin: 0 20px 16px; }
/* 경고가 아닌 안내(진행 순서·일정 비공개 등)는 중립 색으로 */
.notice-calm {
  background: #f4f7fb;
  border-color: #dbe4ef;
  color: #3f556f;
}
.notice-calm strong { color: var(--ink); }

/* ── 신청 폼 ──────────────────────────── */
.page-head { padding: 26px 20px 6px; }
.page-head h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.page-head p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #4a5c74;
}

.form { padding: 18px 20px 26px; display: grid; gap: 18px; }

.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label,
.field > legend {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.req { color: var(--danger); font-size: 11px; font-weight: 700; }
.opt { color: var(--muted); font-size: 11px; font-weight: 600; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.01em;
  appearance: none;
}
.field textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23667b95' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa9bd; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(18, 58, 99, .12);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }

.field-row { display: grid; gap: 16px; }

.field-hint { font-size: 12.5px; color: var(--muted); }
.field-error { font-size: 12.5px; color: var(--danger); font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 600;
  color: #45586f;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--navy-700);
  outline-offset: 2px;
}

.consent { gap: 4px; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: nowrap;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  color: #3c4f66;
  cursor: pointer;
}
.check > span { flex: 1; min-width: 0; font-weight: 400; }
.check input {
  flex: none;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--navy);
}
.check strong { color: var(--danger); }
.check b { color: var(--ink); font-weight: 700; }
/* .field > label 규칙(0,1,1)보다 우선하도록 명시 */
.field > label.check {
  flex-wrap: nowrap;
  align-items: flex-start;
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.link-inline {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 2px;
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.form-error {
  background: #fdecea;
  border: 1px solid #f3c3bd;
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 13.5px;
  font-weight: 600;
}
.form-foot {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

/* ── 접수 결과 ────────────────────────── */
.result {
  margin: 0 20px 8px;
  padding: 24px 20px;
  scroll-margin-top: calc(var(--header-h) + 16px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.result[hidden] { display: none; }
.result-mark { width: 52px; height: 52px; margin: 0 auto 12px; color: #1d7a4e; }
.result-mark svg { width: 100%; height: 100%; }
.result h2 { font-size: 20px; font-weight: 800; color: var(--navy); }
.result-lead { margin-top: 6px; font-size: 14px; color: #4a5c74; }

.receipt {
  margin: 18px 0 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}
.receipt > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.receipt > div:last-child { border-bottom: 0; }
/* 체결 완료 — 계약번호 · 체결 시각 */
.result-stamp {
  margin: 18px 0 4px;
  padding: 14px 14px 12px;
  border: 1px solid #e8dbb4;
  border-radius: 14px;
  background: linear-gradient(180deg, #fdfaf1 0%, #fffdf7 100%);
}
.result-stamp:empty { display: none; }
.stamp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
}
.stamp-label { flex: none; font-size: 12px; font-weight: 800; color: #6b5410; letter-spacing: .01em; }
.stamp-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--navy);
  text-align: right;
  overflow-wrap: anywhere;
  white-space: nowrap;
}
.stamp-time {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.stamp-kst { font-size: 11px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.receipt dt { color: var(--muted); flex: none; }
.receipt dd { color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.receipt .receipt-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--navy); }

.result .notice { text-align: left; margin-bottom: 16px; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result .btn-text { margin-top: 8px; }

/* ── 목록 · 안내 리스트 ────────────────── */
.bullets { display: grid; gap: 8px; }
.bullets li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #45586f;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.bullets-tight { gap: 6px; margin-top: 10px; }

/* ── 매물 영상 피드 ───────────────────── */
.filters {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #45586f;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.filter.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.listing-grid {
  display: grid;
  gap: 14px;
  padding: 0 20px 8px;
}

.listing {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, .045) 0 2px, rgba(255, 255, 255, 0) 2px 16px),
    radial-gradient(90% 70% at 18% 8%, rgba(201, 162, 39, .18) 0%, rgba(201, 162, 39, 0) 62%),
    linear-gradient(150deg, #17395e 0%, #0b2545 55%, #071a31 100%);
  display: grid;
  place-items: center;
  color: #cdd9e8;
  overflow: hidden;
}
.thumb-field::before {
  content: "";
  position: absolute;
  inset: 16% 20%;
  border: 1px dashed rgba(201, 162, 39, .38);
  border-radius: 6px;
}
.thumb-field::after {
  content: "";
  position: absolute;
  inset: 16% 20%;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.thumb-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding: 0 12px;
}
.thumb-inner svg { width: 30px; height: 30px; color: var(--gold); opacity: .95; }
.thumb-inner span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #c9d6e6;
  text-shadow: 0 1px 6px rgba(7, 26, 49, .8);
}
.thumb-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(201, 162, 39, .95);
  color: #23180a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0;
}
.thumb-cat {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #eef4fb;
  font-size: 10.5px;
  font-weight: 700;
}

.listing-body { padding: 14px 15px 16px; display: grid; gap: 10px; }
.listing-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.listing-meta {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #45586f;
}
.listing-meta > div { display: flex; gap: 8px; }
.listing-meta dt { flex: none; width: 52px; color: var(--muted); font-weight: 600; }
.listing-meta dd { color: #33475f; overflow-wrap: anywhere; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tags li {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy-700);
  background: #eef3fa;
  border-radius: 6px;
  padding: 3px 8px;
}
.listing-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.listing-actions .btn { min-height: 44px; font-size: 14px; border-radius: 10px; }

.empty {
  padding: 28px 20px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty[hidden] { display: none; }

/* ── 안내 페이지 ──────────────────────── */
.legal {
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid #e4d9b6;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: #fdfaf1;
}
.legal-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #6b5410;
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.legal p + p { margin-top: 8px; }
.legal p { font-size: 13.5px; line-height: 1.7; color: #43536a; }
.legal strong { color: var(--navy); }

.scope { display: grid; gap: 12px; margin-top: 14px; }
.scope-col {
  padding: 15px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.scope-do { background: #f4f8fd; border-color: #dbe7f4; }
.scope-dont { background: #fbf7f6; border-color: #f0dedb; }
.scope-col h3 { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.scope-dont h3 { color: #8a3b2f; }
.scope-col .bullets li { color: #45586f; }
.scope-dont .bullets li::before { background: #c07b6d; }

.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  margin-top: 10px;
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 13px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  flex: none;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold-600);
  font-size: 11px;
  font-weight: 800;
}
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq p {
  padding: 12px 0 14px 28px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #45586f;
}

.info-table {
  display: grid;
  gap: 0;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.info-table > div {
  display: flex;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
}
.info-table > div:last-child { border-bottom: 0; }
.info-table dt { flex: none; width: 96px; color: var(--muted); font-weight: 600; }
.info-table dd { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.info-table-tight { margin: 0 0 12px; }
.info-table-tight dt { width: 74px; }

/* ── 푸터 ─────────────────────────────── */
.app-footer {
  margin-top: 8px;
  padding: 26px 20px 30px;
  background: var(--navy-900);
  color: #a9b9cc;
  font-size: 12px;
  line-height: 1.75;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.footer-logo {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}
.footer-legal {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: #c3d0e0;
}
.footer-legal strong { color: #f0dfae; font-weight: 700; }
.footer-info { margin-top: 10px; }
.footer-info a { color: #e4ecf5; }
.footer-copy { margin-top: 8px; color: #7789a0; }

/* ── 탭바 ─────────────────────────────── */
.tabbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 12px rgba(11, 37, 69, .05);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #7d8ea5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 6px 2px;
}
.tab svg { width: 22px; height: 22px; }
.tab.is-active { color: var(--navy); }
.tab.is-active svg { color: var(--navy); }
.tab.is-active span { font-weight: 800; }
.tab.is-active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gold);
}
.tab { position: relative; }

/* ── 모달 ─────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 49, .55);
  animation: fade-in .18s ease-out;
}
.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 30px rgba(7, 26, 49, .25);
  padding-bottom: var(--safe-b);
  animation: sheet-up .22s ease-out;
}
@keyframes sheet-up {
  from { transform: translateY(16px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 17px; font-weight: 800; color: var(--navy); }
.modal-close {
  flex: none;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-body {
  padding: 16px 18px 22px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.7;
  color: #45586f;
}
.modal-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.modal-gap { margin-top: 14px; }
.modal-body .btn-block { margin-top: 14px; }
.video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0b2545;
  display: grid;
  place-items: center;
  color: #c3d0e0;
  text-align: center;
  padding: 16px;
  font-size: 13px;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ── 설치 안내 · 토스트 ────────────────── */
.install-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--navy);
  color: #e7eef7;
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  line-height: 1.5;
}
.install-bar[hidden] { display: none; }
.install-bar p { flex: 1 1 auto; min-width: 0; }
.install-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.install-bar .btn-primary { color: #23180a; }
.install-bar .btn-text { color: #b9c9db; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px);
  transform: translateX(-50%);
  z-index: 80;
  max-width: calc(100vw - 40px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(11, 37, 69, .95);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.toast[hidden] { display: none; }
body.install-open .toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + 96px); }

/* ── 데스크톱 ─────────────────────────── */
@media (min-width: 720px) {
  body { font-size: 16.5px; }

  .app-header { padding-left: 28px; padding-right: 28px; }
  .hero { padding: 48px 44px 44px; }
  .hero-lead { font-size: 16px; }
  .hero .btn-block { width: auto; min-width: 280px; display: inline-flex; }
  .hero h1 { max-width: 20ch; }

  .block { padding: 44px 44px 46px; }
  .block-head h2, .block > h2 { font-size: 23px; }
  .block-head p { font-size: 14.5px; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card { padding: 22px 20px; }
  .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

  .page-head { padding: 40px 44px 10px; }
  .page-head h1 { font-size: 30px; }
  .page-head p { max-width: 62ch; }

  .form { padding: 20px 44px 34px; max-width: 720px; gap: 20px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .notice-top { margin: 0 44px 18px; }

  .filters { padding: 0 44px 18px; }
  .listing-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; padding: 0 44px 12px; }

  .result { max-width: 620px; margin: 0 auto 8px; padding: 32px 28px; }

  .scope { grid-template-columns: 1fr 1fr; }
  .app-footer { padding: 36px 44px 40px; font-size: 12.5px; }
  .footer-legal { max-width: 780px; }
  body { padding-bottom: 104px; }

  .modal { align-items: center; padding: 24px; }
  .modal-sheet { border-radius: 18px; }
  .install-bar { left: auto; right: 24px; bottom: 24px; max-width: 340px; flex-wrap: wrap; }
  .toast { bottom: 24px; }

  .tabbar {
    width: min(560px, calc(100% - 48px));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 16px;
    height: 64px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(11, 37, 69, .12);
    padding-bottom: 0;
  }
  .tab { font-size: 11.5px; }
  .tab.is-active::after { top: 0; }
  .install-bar { bottom: 96px; }
  .toast { bottom: 96px; }
  body.install-open .toast { bottom: 176px; }
}

@media (min-width: 1024px) {
  .hero { padding: 56px 56px 50px; }
  .block { padding-left: 56px; padding-right: 56px; }
  .page-head { padding-left: 56px; padding-right: 56px; }
  .form { padding-left: 56px; padding-right: 56px; }
  .filters { padding-left: 56px; padding-right: 56px; }
  .listing-grid { padding-left: 56px; padding-right: 56px; }
  .notice-top { margin-left: 56px; margin-right: 56px; }
  .app-footer { padding-left: 56px; padding-right: 56px; }
  .hero-facts { margin-top: 18px; }
}

/* 아주 좁은 화면(320px) 보정 */
@media (max-width: 359px) {
  .brand-name small { display: none; }
  .brand-logo { width: 30px; height: 30px; }
  .price-now { font-size: 26px; }
  .price-now-sm { font-size: 21px; }
  .price-was { font-size: 14.5px; }
  .stamp-row { flex-direction: column; align-items: flex-start; gap: 1px; }
  .stamp-no, .stamp-time { text-align: left; }
  .stamp-no { font-size: 14px; letter-spacing: 0; }
  .hero { padding: 24px 16px 22px; }
  .block { padding-left: 16px; padding-right: 16px; }
  .form { padding-left: 16px; padding-right: 16px; }
  .filters, .listing-grid { padding-left: 16px; padding-right: 16px; }
  .notice-top { margin-left: 16px; margin-right: 16px; }
  .page-head { padding-left: 16px; padding-right: 16px; }
  .result { margin-left: 16px; margin-right: 16px; }
  .result-actions { grid-template-columns: 1fr; }
}

/* ── 전자계약서 ───────────────────────── */
.doc-head { padding-bottom: 4px; }
.doc-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.doc-head-top .doc-eyebrow { margin-bottom: 0; }
.doc-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm);
}
.doc-call svg { width: 14px; height: 14px; flex: none; }
.doc-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid #e7d6a6;
  color: #6b5410;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0;
}
.doc-intro { margin-top: 8px; }

.contract-form { gap: 14px; }

.doc-block {
  padding: 16px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 10px;
}
.doc-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.doc-note { font-size: 12.5px; color: var(--muted); line-height: 1.65; }

/* 핵심 4줄 요약 */
.brief-block { gap: 9px; border-color: #dde6f1; }
.brief-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.brief-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.brief-item:last-child { border-bottom: 0; }
.brief-item dt {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.5;
  padding-top: 1px;
}
.brief-item dd {
  margin: 0;
  min-width: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.brief-price { font-size: 14.5px; font-weight: 800; color: var(--navy); }
.brief-price.free { color: #17694a; }
.brief-sub {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: anywhere;
}
/* 요약 1행의 서비스명(4K 드론 항공촬영) — 부연 회색 글씨가 아니라 본문보다 굵고 크게 */
.brief-sub .brief-key {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* 세부 약관 접힘 */
.terms-fold {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.terms-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.terms-fold > summary::-webkit-details-marker { display: none; }
.terms-fold > summary::after {
  content: "▾";
  flex: none;
  font-size: 12px;
  color: var(--muted);
}
.terms-fold[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #f8fafd;
}
.terms-fold[open] > summary::after { content: "▴"; }
.terms-body {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--bg-soft);
}
.terms-body .doc-block { padding: 14px 13px; box-shadow: none; }

.fixed-checks { display: grid; gap: 8px; }
.fixed-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid #e4eadf;
  border-radius: 12px;
  background: #fafcf8;
  font-size: 13px;
  line-height: 1.65;
  color: #43536a;
}
.fixed-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #17694a;
}
.fixed-check strong { color: var(--navy); }

.pay-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.pay-table > div {
  display: flex;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}
.pay-table > div:last-child { border-bottom: 0; }
.pay-table dt { flex: none; width: 68px; color: var(--muted); font-weight: 600; }
.pay-table dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.pay-table strong { color: var(--navy); }
.pay-table .muted { color: var(--muted); font-weight: 500; }

.legal-article { border-color: #e8dbb4; background: #fefcf6; }
.article-body {
  padding: 12px 13px 14px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.article-body p { font-size: 13px; line-height: 1.75; color: #43536a; }

/* 서명 칸 */
.sign-block { gap: 14px; }
.sign-guide { font-size: 12.5px; color: var(--muted); }
.sign-caption { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.sign-slot {
  position: relative;
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #b9c7d8;
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(11, 37, 69, .02) 0 1px, transparent 1px 24px),
    #fff;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
}
.sign-slot:active { background: #f5f8fc; }
.sign-slot.is-signed { border-style: solid; border-color: #cfe0ef; }
.sign-slot img {
  display: block;
  max-width: 92%;
  max-height: 108px;
  object-fit: contain;
}
.sign-slot.is-signed .sign-edit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy-700);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 8px;
}
.sign-slot.is-signed .sign-empty { display: none; }

/* 전체화면 서명창 */
.signature-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: #fff;
}
.signature-modal[hidden] { display: none !important; }
body.sign-open { overflow: hidden; }

.sign-modal-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.sign-modal-title { font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.sign-modal-hint { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.sign-modal-btns { display: flex; gap: 6px; flex: none; }
.sign-btn {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sign-btn:active { background: #f2f6fb; }

.sign-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  margin: 4px 0;
  border: 1.5px dashed #b9c7d8;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
#sign-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
.sign-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 24px;
  text-align: center;
  color: #9aa9bd;
  font-size: 14px;
  pointer-events: none;
}
.sign-modal-foot { flex: none; }

@keyframes shake-x {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.is-shake { animation: shake-x .32s ease-in-out; }

/* 계약 링크 · 결과 */
.doc-links { display: grid; gap: 10px; margin-top: 12px; }
.doc-links a {
  display: grid;
  gap: 3px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--navy);
}
.doc-links a strong { font-size: 14.5px; }
.doc-links a span { font-size: 12.5px; color: var(--muted); }

.price-cta { margin-top: 14px; }
.footer-links { margin-top: 10px; color: #b9c9db; font-size: 12px; }
.footer-links a { color: #e4ecf5; text-decoration: underline; text-underline-offset: 2px; }

.pay-inline {
  margin: 8px 0 14px;
  padding: 13px 14px;
  border: 1px solid #e8dbb4;
  border-radius: 12px;
  background: #fdfaf1;
  text-align: center;
}
.pay-inline-label { font-size: 11.5px; font-weight: 800; color: #6b5410; letter-spacing: .02em; }
.pay-inline-account { margin-top: 4px; font-size: 16px; font-weight: 800; color: var(--navy); }
.pay-inline-holder { font-size: 12.5px; color: #43536a; }

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .doc-block { padding: 20px 22px; }
  .sign-slot { min-height: 150px; }
  .signature-modal { padding: 24px 32px; align-items: center; }
  .sign-modal-bar, .sign-canvas-wrap, .sign-modal-foot { width: min(100%, 760px); }
  .sign-canvas-wrap { min-height: 320px; }
  .sign-modal-foot { max-width: 760px; }
  .doc-links { grid-template-columns: 1fr 1fr; }
  .doc-links > li:only-child { grid-column: 1 / -1; }
}

/* ── 상단 촬영 의뢰 버튼 ───────────────── */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(11, 37, 69, .18);
}
.header-cta svg { width: 15px; height: 15px; flex: none; color: #f2d98d; }
.header-cta:hover { background: var(--navy-700); }

/* ── 홈 · 포털 허브 히어로 ─────────────── */
.hub-hero {
  position: relative;
  padding: 26px 20px 22px;
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(201, 162, 39, .16) 0%, rgba(201, 162, 39, 0) 62%),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hub-visual { display: none; }
@media (min-width: 900px) {
  .hub-hero { position: relative; overflow: hidden; }
  .hub-hero > * { position: relative; z-index: 1; }
  .hub-hero .hub-lead,
  .hub-hero h1,
  .hub-hero .hero-eyebrow,
  .hub-hero .hub-actions,
  .hub-hero .hub-facts { max-width: 640px; }
  .hub-visual {
    display: block;
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    width: 210px;
    height: 210px;
    z-index: 0;
  }
  .hub-visual img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: .9;
    box-shadow: 0 0 0 1px rgba(11, 37, 69, .10), 0 16px 36px rgba(11, 37, 69, .14);
  }
}
.hub-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 55%, rgba(201, 162, 39, 0) 100%);
}
.hub-hero .hero-eyebrow {
  border-color: #e7d6a6;
  background: var(--gold-soft);
  color: #6b5410;
}
.hub-hero h1 {
  margin: 13px 0 0;
  font-size: clamp(24px, 6.6vw, 36px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.hub-lead {
  margin-top: 11px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}
.hub-lead strong { color: var(--navy); font-weight: 800; }
.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hub-actions .btn { flex: 1 1 auto; min-width: 148px; }
.hub-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.hub-facts li {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #3c5069;
  font-size: 11.8px;
  font-weight: 700;
}

.hub-block { padding-top: 24px; }

/* ── 포털 바로가기 카드 ─────────────────── */
.portal-groups { display: grid; gap: 18px; }
.portal-group-head { margin-bottom: 8px; }
.portal-group-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.portal-group-head h3::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--gold);
}
.portal-group-head p { margin-top: 3px; font-size: 11.8px; color: var(--muted); }
.portal-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
}
@media (min-width: 900px) {
  /* 5개씩 묶인 그룹이 한 줄에 서도록 데스크톱에서는 5열 */
  .portal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.portal a {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  height: 100%;
  padding: 11px 26px 11px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.portal a:hover {
  border-color: var(--navy);
  box-shadow: 0 6px 18px rgba(11, 37, 69, .10);
  transform: translateY(-1px);
}
.portal a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.portal-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid #dbe4f0;
  border-radius: 9px;
  background: #eef3fa;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.portal-text { display: grid; gap: 2px; min-width: 0; }
.portal-text strong { font-size: 13.4px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.portal-text span { font-size: 11.2px; line-height: 1.45; color: var(--muted); }
.portal-go {
  position: absolute;
  top: 9px;
  right: 8px;
  width: 13px;
  height: 13px;
  color: #a9b8ca;
}
.portal-note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── 촬영 의뢰 코너 ────────────────────── */
.hub-corner { padding-top: 18px; padding-bottom: 20px; }
.corner-inner {
  display: flex;
  gap: 12px;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.corner-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy);
  color: #f2d98d;
}
.corner-badge svg { width: 22px; height: 22px; }
.corner-body { min-width: 0; }
.corner-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--gold-600);
}
.corner-body h2 {
  margin-top: 4px;
  font-size: 16.5px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.corner-body p {
  margin-top: 7px;
  font-size: 13.2px;
  line-height: 1.7;
  color: #45586f;
}
.corner-body .btn { margin-top: 12px; }

/* 계약서 상단 AI 안내 버튼 */
.doc-qa {
  flex: none;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.doc-qa:hover { border-color: var(--navy); }

/* ── AI 1:1 안내 데스크 ─────────────────── */
.hbqa { position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); z-index: 60; }
.hbqa * { box-sizing: border-box; }
.hbqa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 37, 69, .24);
  word-break: keep-all;
}
.hbqa-btn:hover { background: var(--navy-700); }
.hbqa-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hbqa-lb-short { display: none; }
.hbqa-btn .ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 16px;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--gold);
  color: #241c00;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
}
.hbqa-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  display: none;
  flex-direction: column;
  width: min(378px, calc(100vw - 32px));
  max-height: min(74vh, 640px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--navy);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(11, 37, 69, .22);
  color: var(--text);
}
.hbqa-panel.open { display: flex; }
.hbqa-ai {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 14px 9px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfe;
}
.hbqa-ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 26px;
  height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}
.hbqa-ai-text { min-width: 0; font-size: 11.4px; line-height: 1.55; color: var(--muted); }
.hbqa-ai-text b { display: block; margin-bottom: 2px; font-size: 12.2px; color: var(--navy); }
.hbqa-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.hbqa-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 27px;
  height: 27px;
  border: 1px solid #dbe4f0;
  border-radius: 50%;
  background: #eef3fa;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}
.hbqa-head b { display: block; font-size: 13.6px; color: var(--navy); letter-spacing: -0.01em; }
.hbqa-head small { display: block; margin-top: 2px; font-size: 11.2px; color: var(--muted); }
.hbqa-x {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 11.2px;
  cursor: pointer;
}
.hbqa-x:hover { color: var(--navy); border-color: var(--navy); }
.hbqa-log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 12px 4px;
  background: #fff;
}
.hbqa-msg { display: flex; margin-bottom: 9px; }
.hbqa-msg.user { justify-content: flex-end; }
.hbqa-bubble {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.9px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hbqa-msg.bot .hbqa-bubble { background: #f2f6fb; border: 1px solid #e2eaf3; color: var(--ink); border-top-left-radius: 3px; }
.hbqa-msg.user .hbqa-bubble { background: var(--navy); border: 1px solid var(--navy); color: #fff; border-top-right-radius: 3px; }
.hbqa-typing { display: inline-flex; gap: 4px; align-items: center; }
.hbqa-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); opacity: .45; animation: hbqa-dot 1.05s infinite; }
.hbqa-typing i:nth-child(2) { animation-delay: .16s; }
.hbqa-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes hbqa-dot {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.hbqa-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 12px 9px; background: #fff; }
.hbqa-chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #36485f;
  font-size: 11.2px;
  cursor: pointer;
  word-break: keep-all;
}
.hbqa-chip:hover { border-color: var(--navy); background: #eef3fa; color: var(--navy); }
.hbqa-form { display: flex; gap: 7px; padding: 9px 12px 6px; border-top: 1px solid var(--line); background: #fff; }
.hbqa-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}
.hbqa-input::placeholder { color: #96a6ba; }
.hbqa-input:focus { outline: 2px solid rgba(11, 37, 69, .16); outline-offset: 1px; border-color: var(--navy); }
.hbqa-send {
  padding: 9px 14px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 12.8px;
  font-weight: 800;
  cursor: pointer;
}
.hbqa-send:hover { background: var(--navy-700); }
.hbqa-send[disabled] { opacity: .55; cursor: progress; }
.hbqa-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  padding: 2px 12px 11px;
  font-size: 10.6px;
  line-height: 1.5;
  color: var(--muted);
  background: #fff;
}
.hbqa-foot span { flex: 1 1 100%; }
.hbqa-foot .open-apply {
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 10.8px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.hbqa-foot .open-apply:hover { border-color: var(--navy); background: #eef3fa; }

@media (max-width: 560px) {
  .hbqa { right: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); }
  .hbqa-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(var(--tabbar-h) + var(--safe-b) + 62px);
    width: auto;
    max-height: 70vh;
  }
  /* 좁은 화면에서는 버튼을 작게 — 본문을 덜 가리도록 짧은 라벨 */
  .hbqa-btn { padding: 9px 12px; font-size: 12px; gap: 6px; }
  .hbqa-lb-full { display: none; }
  .hbqa-lb-short { display: inline; }
}

@media (min-width: 720px) {
  .hub-hero { padding: 34px 32px 28px; }
  .hub-block { padding-top: 28px; }
  .hub-actions .btn { flex: 0 0 auto; min-width: 168px; }
  .hbqa { right: 24px; bottom: 96px; }
}
