/* 동거동락 임대인 랜딩 — 소재팩 권장 색(#059E7A · #E8F8F3 · #103E35) 기준 */

:root {
  --primary: #059E7A;
  --primary-hover: #04876A;
  --primary-ink: #037A5E;     /* 흰 바탕 위 작은 초록 글씨 (대비 확보) */
  --mint: #E8F8F3;
  --mint-2: #F3FBF8;
  --ink: #103E35;             /* 제목 */
  --text: #4A5A55;            /* 본문 */
  --muted: #7C8A86;
  --line: #E3ECE8;
  --page: #FFFFFF;
  --card: #FFFFFF;

  --radius: 14px;
  --radius-lg: 24px;
  --pill: 9999px;
  --wrap: 1120px;
  --gutter: 16px;
  --shadow: 0 6px 24px rgba(16, 62, 53, .07);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --hand: "Nanum Pen Script", cursive;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--page);
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(5, 158, 122, .45); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* 줄바꿈 제어: br-sm 은 모바일에서만, br-lg 는 PC 에서만 */
.br-lg { display: none; }
@media (min-width: 1024px) { .br-lg { display: inline; } .br-sm { display: none; } }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 8px;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background-color .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.arrow { font-weight: 400; }

/* 주소 입력 */
.address-form { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.address-field {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
}
.address-field img { width: 20px; height: 20px; flex-shrink: 0; }
.address-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink);
}
.address-field input::placeholder { color: #A3AFAB; }
.address-field:focus-within { border-color: var(--primary); }
.address-field.is-invalid { border-color: #D0442C; }
@media (min-width: 768px) {
  .address-form { flex-direction: row; max-width: 500px; gap: 0; }
  .address-field { flex: 1; border-radius: 8px 0 0 8px; border-right: 0; }
  .address-form .btn { border-radius: 0 8px 8px 0; min-height: 56px; }
}

/* 1. 히어로 */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F4FBF8 0%, #FFFFFF 100%); }
.hero-visual { position: absolute; top: 0; right: 0; width: 58%; height: 280px; }
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%), linear-gradient(to bottom, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 55%), linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-composite: intersect;
}
.hero-inner { position: relative; padding-top: 40px; padding-bottom: 40px; }
.hero-title { font-size: clamp(28px, 7.4vw, 46px); font-weight: 800; line-height: 1.3; letter-spacing: -.03em; color: var(--ink); }
.hero-lead { margin-top: 12px; font-size: 15px; color: var(--text); }
@media (max-width: 767px) {
  .hero-title { max-width: 72%; }
  .hero-lead { max-width: 62%; }
  .hero-lead { font-size: 14px; }
}
@media (min-width: 768px) {
  .hero-visual { width: 56%; height: 100%; }
  .hero-visual img { object-position: 40% 0%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%); mask-image: linear-gradient(to right, transparent 0%, #000 28%); }
  .hero-inner { padding-top: 72px; padding-bottom: 80px; min-height: 380px; }
  .hero-lead { margin-top: 16px; font-size: 16px; }
  .address-form { margin-top: 32px; }
}
@media (min-width: 1024px) { .hero-inner { min-height: 440px; padding-top: 88px; } }

/* 섹션 공통 */
.section { padding: 32px 0; }
.section-tight { padding: 20px 0; }
@media (min-width: 768px) { .section { padding: 48px 0 32px; } .section-tight { padding: 24px 0; } }
.section-title { font-size: clamp(20px, 3.6vw, 26px); font-weight: 800; line-height: 1.35; letter-spacing: -.02em; color: var(--ink); }
.section-title-sm { font-size: clamp(18px, 2.6vw, 20px); }
.section-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* 아이콘 */
.icon-circle { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--mint); }
.icon-circle img { width: 28px; height: 28px; }
.icon-plain { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; }
.icon-plain img { width: 36px; height: 36px; }
.chev { width: 8px; height: 8px; flex-shrink: 0; margin-left: auto; border-right: 2px solid var(--primary); border-top: 2px solid var(--primary); transform: rotate(45deg); }

/* 2. 대신하는 일 — 모바일은 목록, PC 는 카드 3개 */
.task-list { display: grid; gap: 10px; margin-top: 16px; }
.task-card {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.task-card:hover, .model-card:hover, .extra-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.task-body { display: grid; gap: 2px; min-width: 0; }
.task-body strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.task-body span { font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (min-width: 768px) {
  .task-list { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
  .task-card { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 24px; }
  .task-card .icon-circle { width: 56px; height: 56px; }
  .task-card .icon-circle img { width: 32px; height: 32px; }
  .task-card .chev { display: none; }
  .task-body { gap: 10px; }
  .task-body strong { font-size: 18px; }
  .task-body span { font-size: 14px; }
}

/* 3. 관리 방식 */
.model-band { position: relative; }
.model-visual { display: none; }
.model-list { display: grid; gap: 10px; margin-top: 16px; }
.model-card {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
@media (min-width: 768px) {
  .model-band { overflow: hidden; background: linear-gradient(90deg, var(--mint) 0%, var(--mint-2) 60%); border-radius: var(--radius-lg); padding: 40px 32px 32px; }
  .model-copy { position: relative; }
  .model-list { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; max-width: 640px; }
  .model-card { padding: 18px 20px; border-color: transparent; box-shadow: var(--shadow); }
}
@media (min-width: 1024px) {
  .model-band { padding: 44px 48px 40px; min-height: 300px; }
  .model-visual { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 46%; }
  .model-visual img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%); mask-image: linear-gradient(to right, transparent 0%, #000 35%);
  }
  .handwrite {
    position: absolute; left: -90px; top: 40px; z-index: 1;
    font-family: var(--hand); font-size: 28px; line-height: 1.25; color: var(--primary); transform: rotate(-8deg);
  }
  .model-list { max-width: 680px; position: relative; z-index: 2; }
}

/* 4. 숫자 */
.proof { display: grid; gap: 0; margin-top: 12px; }
.proof li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.proof li:first-child { border-top: 0; }
.proof small { display: block; font-size: 12px; color: var(--muted); }
.proof strong { display: block; font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.3; letter-spacing: -.01em; }
.proof strong.proof-text { font-size: 17px; color: var(--ink); margin-bottom: 2px; }
.proof span { display: block; font-size: 13px; color: var(--muted); }
@media (min-width: 768px) {
  .proof { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
  .proof li { border-top: 0; padding: 8px 24px; border-left: 1px solid var(--line); }
  .proof li:first-child { border-left: 0; padding-left: 0; }
  .proof .icon-circle { width: 56px; height: 56px; }
}

/* 5. 함께 이용하면 좋은 서비스 */
.extras { display: grid; gap: 10px; margin-top: 12px; }
.extra-card {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 10px 16px 10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.thumb { display: grid; place-items: center; width: 64px; height: 52px; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: var(--mint); }
.thumb img { width: 30px; height: 30px; }
.thumb-photo img { width: 100%; height: 100%; object-fit: cover; }
.extra-body { display: grid; gap: 2px; min-width: 0; }
.extra-body strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.extra-body span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.go { display: none; font-size: 13px; font-weight: 700; color: var(--primary-ink); margin-top: 6px; }
@media (min-width: 768px) {
  .extras { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
}
@media (min-width: 1024px) {
  .extras { grid-template-columns: repeat(4, 1fr); }
  .extra-card { align-items: flex-start; padding: 12px; gap: 12px; }
  .thumb { width: 76px; height: 76px; }
  .thumb img { width: 36px; height: 36px; }
  .extra-card .chev { display: none; }
  .go { display: block; }
}

/* 6. 하단 CTA */
.closing { padding: 32px 0 56px; }
.closing-title { font-size: clamp(18px, 2.6vw, 20px); font-weight: 800; color: var(--ink); line-height: 1.4; }
@media (min-width: 768px) {
  .closing { padding: 40px 0 72px; text-align: center; }
  .address-form-center { margin: 20px auto 0; }
}

/* 무료 견적 신청 창 */
.quote {
  width: 100%; max-width: 560px; max-height: 100dvh; margin: auto auto 0; padding: 0;
  border: 0; border-radius: 20px 20px 0 0; background: #fff; color: var(--text);
}
.quote::backdrop { background: rgba(16, 62, 53, .5); }
@media (min-width: 600px) { .quote { margin: auto; border-radius: 20px; max-height: 92dvh; } }
.quote-form { display: grid; gap: 14px; padding: 24px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { .quote-form { padding: 28px 32px 28px; } }
.quote-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; margin: -24px calc(-1 * var(--gutter)) 0; padding: 20px var(--gutter) 8px; background: #fff; }
@media (min-width: 600px) { .quote-head { margin: -28px -32px 0; padding: 24px 32px 8px; } }
.quote-head h2 { font-size: 20px; font-weight: 800; color: var(--ink); }
.quote-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--mint); cursor: pointer; position: relative; }
.quote-close::before, .quote-close::after { content: ""; position: absolute; left: 11px; top: 17px; width: 14px; height: 2px; background: var(--ink); transform: rotate(45deg); }
.quote-close::after { transform: rotate(-45deg); }
.quote-sub { font-size: 14px; color: var(--muted); margin-top: -6px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-size: 14px; font-weight: 700; color: var(--ink); padding: 0; }
.field b { color: var(--primary); }
.field input[type=text], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #F7FAF9; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--primary); background-color: #fff; }
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: #F7FAF9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059E7A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center/16px no-repeat; }
.field [aria-invalid=true] { border-color: #D0442C; background-color: #FFF6F4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: var(--pill); cursor: pointer; border: 1px solid var(--line); background: #F7FAF9; font-size: 14px; font-weight: 600; }
.chip input:checked + span { border-color: var(--primary); background: var(--mint); color: var(--primary-ink); }
.chip input:focus-visible + span { outline: 3px solid rgba(5, 158, 122, .45); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.consent-detail summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.consent-detail p { margin-top: 8px; font-size: 13px; color: var(--muted); background: #F7FAF9; border-radius: 8px; padding: 12px 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; font-weight: 700; min-height: 1.4em; }
.form-status.ok { color: var(--primary-ink); }
.form-status.err { color: #D0442C; }
.quote [hidden] { display: none !important; }
.consult-success { min-height: 340px; padding: 44px 28px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.consult-success-mark { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--primary-ink); font-size: 32px; font-weight: 800; }
.consult-success h2 { margin: 8px 0 0; color: var(--ink); font-size: 24px; line-height: 1.35; }
.consult-success p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.6; }
.consult-success button { min-width: 160px; margin-top: 16px; }
.consult-success small { color: var(--muted); font-size: 12px; }
