/* ============================================================
   인생비서 랜딩 — 디자인 시스템
   ============================================================ */
:root {
  --blue: #3157D5;
  --blue-dark: #2646b3;
  --navy: #182A5A;
  --lavender: #7569E8;
  /* 연한 라벤더 칩 위 텍스트용 — --lavender는 3.7:1로 AA 미달 */
  --lavender-text: #5B4FD6;
  --coral: #FF6B45;
  --coral-dark: #ef5a34;
  /* 흰 배경 위 작은 텍스트용 — --coral은 2.8:1로 WCAG AA 미달이라 텍스트에 쓰지 말 것 */
  --coral-text: #D1421A;
  --bg-gray: #F7F9FC;
  --bg-blue: #EEF3FF;
  --white: #ffffff;
  --ink: #252A34;
  --muted: #697386;
  --line: #E6EAF2;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(24, 42, 90, 0.08);
  --shadow-soft: 0 4px 16px rgba(24, 42, 90, 0.06);
  --shadow-form: 0 18px 50px rgba(24, 42, 90, 0.14);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; word-break: keep-all; overflow-wrap: break-word; letter-spacing: -0.02em; }
/* 한글 줄바꿈 균형: 마지막 줄에 한 단어만 남는(고아) 현상을 줄인다 */
h1, h2, h3,
.section-title, .hero-title, .guarantee-title, .final-cta-title, .quiz-q, .brand-msg,
.section-desc, .hero-sub, .hero-desc, .final-cta-sub, .hero-form-sub, .quiz-done-desc,
.review-text, .reason-card p, .recommend-card p, .calc3-explain, .amount-note, .quiz-done-desc,
.hero-below-msg, .hero-below-desc {
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.only-mo { display: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 800px; }

.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-title { font-size: 38px; line-height: 1.3; }
.section-desc { margin-top: 16px; font-size: 18px; color: var(--muted); }
.accent { color: var(--coral); }
[data-guarantee].is-hidden-guarantee { display: none !important; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: inherit; font-weight: 700;
  border-radius: 999px; transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
  padding: 14px 26px; font-size: 16px; white-space: nowrap; word-break: keep-all;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(49, 87, 213, 0.25); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-accent { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 69, 0.3); }
.btn-accent:hover { background: var(--coral-dark); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid #cdd9f7; padding: 12px 20px; font-size: 15px; }
.btn-outline:hover { background: var(--bg-blue); border-color: var(--blue); }
.btn-lg { padding: 17px 32px; font-size: 18px; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
/* 전체 폭 버튼은 좁은 화면에서 줄바꿈 허용 — nowrap 이면 min-content 가 컨테이너를 밀어낸다 */
.btn-block { display: flex; width: 100%; min-width: 0; white-space: normal; text-align: center; line-height: 1.35; }

/* ============================================================
   헤더
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { box-shadow: 0 2px 14px rgba(24,42,90,0.08); border-bottom-color: var(--line); }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 11px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 999px; }
.header-call { color: var(--navy); min-width: 42px; min-height: 42px; justify-content: center; }
.header-call:hover { background: var(--bg-gray); }
.header-ico { color: var(--blue); display: inline-flex; }

/* ============================================================
   히어로 (좌 브랜드+모델 / 우 폼)
   ============================================================ */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eef3ff 0%, var(--bg-gray) 100%); padding: 56px 0 72px; }
.hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 52px; align-items: center; }
.hero-copy { position: relative; }

.brand-label { display: inline-block; font-size: 13.5px; font-weight: 800; color: var(--blue); background: #e0e9ff; padding: 7px 14px; border-radius: 999px; }
.brand-msg { margin-top: 18px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.hero-title { margin-top: 14px; font-size: 54px; line-height: 1.16; font-weight: 800; color: var(--navy); }
.hero-title .accent { color: var(--coral); }
.hero-sub { margin-top: 16px; font-size: 20px; font-weight: 600; color: var(--ink); }
.hero-sub strong { color: var(--blue); }
.hero-desc { margin-top: 13px; font-size: 16.5px; color: var(--muted); max-width: 330px; }
.hero-sub { max-width: 330px; }
.hero-chips { max-width: 330px; }
.hero-chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li { position: relative; padding: 7px 14px 7px 30px; font-size: 13px; font-weight: 700; color: var(--blue); background: #fff; border: 1px solid #d9e2fb; border-radius: 999px; }
.hero-chips li::before { content: ""; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/9px no-repeat; }

/* 모델 이미지 */
/* 모델: 제목 아래(오른쪽 하단)에 배치해 제목·폼과 겹치지 않게 함 */
/* 모델: 배경을 투명 처리한 컷아웃이라 히어로에 그대로 얹어도 자연스럽게 합성됨 */
.hero-model { position: absolute; top: 300px; right: -14px; width: 196px; z-index: 1; pointer-events: none; }
.hero-model.is-missing { display: none; }
.hero-model picture { display: block; }
.hero-model-img { width: 100%; height: auto; }
/* 말풍선: 모델 머리 위쪽에 띄워 얼굴과 겹치지 않게 함 */
.hero-model-bubble { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; line-height: 1.4; padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow-soft); white-space: nowrap; text-align: center; }
.hero-model-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }

/* 모바일: 히어로 압축을 위해 상세 설명·태그를 폼 아래로 이동 (기본은 숨김, .only-mo가 제어) */
.hero-below { margin-top: 0; }

/* 상담 폼 카드 */
.hero-form-wrap { position: relative; z-index: 5; scroll-margin-top: 76px; }
.hero-form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-form); padding: 30px 30px 24px; }
.hero-form-title { font-size: 24px; font-weight: 800; color: var(--navy); }
.hero-form-sub { margin-top: 8px; font-size: 15px; color: var(--muted); }
.lead-form { margin-top: 20px; }
.lead-form #submitBtn { margin-top: 14px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 8px; }
.form-fieldset { min-width: 0; border: 0; margin: 0 0 16px; padding: 0; }
.form-fieldset > legend { display: block; float: left; width: 100%; padding: 0; font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 8px; }
.form-fieldset > legend + * { clear: both; }
.req { color: var(--coral-text); }
.form-row input[type="text"], .form-row input[type="tel"] { width: 100%; height: 50px; padding: 0 15px; font-size: 16px; font-family: inherit; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.form-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,87,213,0.12); }
.radio-group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radio-item { position: relative; cursor: pointer; }
.radio-item.radio-wide { grid-column: span 3; }
.radio-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-item span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--muted); transition: all .15s; }
.radio-item.radio-wide span { border-radius: 999px; min-height: 44px; }
.radio-item input:checked + span { background: var(--bg-blue); border-color: var(--blue); color: var(--blue); }
.radio-item input:focus-visible + span { box-shadow: 0 0 0 3px rgba(49,87,213,0.2); }

/* ----- 동의: 접이식 전체 동의 ----- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.consent-box { margin-top: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.consent-all { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 4px 12px; cursor: pointer; }
.consent-all-main { font-weight: 700; font-size: 14px; padding: 8px 0; }
.consent-all-main em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 13px; }
.consent-expand { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: none; padding: 0; color: var(--muted); cursor: pointer; border-radius: 10px; }
.consent-expand svg { width: 20px; height: 20px; transition: transform .2s ease; }
.consent-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.consent-expand:hover { background: var(--bg-gray); color: var(--navy); }

.consent-details { border-top: 1px solid var(--line); padding: 4px 12px 10px; }
.consent-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.consent-main { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); font-weight: 600; cursor: pointer; padding: 7px 0; }
.consent-main input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--blue); cursor: pointer; }
.consent-view { flex-shrink: 0; background: none; border: none; font-family: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px; min-height: 32px; }
.consent-terms { margin: 2px 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.6; background: var(--bg-gray); border-radius: 10px; padding: 12px 14px; }

/* 제3자 제공 동의: 법정 고지 5개 항목 */
.consent-terms dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.consent-terms dt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.consent-terms dd { margin: 0; }
.consent-terms .consent-unset { color: #c0380f; font-weight: 700; } /* 연회색 배경 위 대비 확보 */

.consent-error { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--coral-text); line-height: 1.5; }
.consent-box.has-error { border-color: var(--coral-text); }

.form-call { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; background: var(--bg-blue); color: var(--navy); font-size: 15px; font-weight: 700; }
.form-call svg { color: var(--blue); flex-shrink: 0; }
.form-call b { color: var(--blue); font-weight: 800; }
.form-call:hover { background: #e2eaff; }
.form-guarantee-note { margin-top: 12px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.amount-note { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.5; text-align: center; }
.form-msg { margin-top: 12px; font-size: 15px; font-weight: 600; text-align: center; }
.form-msg.error { color: var(--coral-text); }
.form-msg.success { color: #157f45; }

/* ============================================================
   핵심 혜택 카드 4 (2×2)
   ============================================================ */
.benefits-section { padding: 52px 0; background: #fff; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; text-align: center; box-shadow: var(--shadow-soft); }
.benefit-ico { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 13px; background: var(--bg-blue); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.benefit-ico svg { width: 25px; height: 25px; }
.benefit-num { display: block; font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.benefit-num.accent { color: var(--coral); }
.benefit-label { margin-top: 5px; font-size: 14px; color: var(--muted); }

/* ============================================================
   빠른 메뉴 (모바일 전용)
   ============================================================ */
.quick-menu { display: none; background: #fff; padding: 4px 0 8px; }
.quick-menu-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-menu-inner a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; font-weight: 700; color: var(--navy); line-height: 1.25; }

/* ============================================================
   130% 보상 (딥네이비)
   ============================================================ */
.guarantee-section { background: var(--navy); color: #fff; }
.guarantee-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.guarantee-eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: #aab8e0; letter-spacing: 0.04em; margin-bottom: 16px; }
.guarantee-title { font-size: 40px; line-height: 1.28; font-weight: 800; }
.guarantee-big { color: var(--coral); font-size: 68px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.guarantee-cta { margin-top: 28px; }
.guarantee-calc { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 26px; }
.calc-title { font-size: 14px; font-weight: 700; color: #aab8e0; margin-bottom: 14px; }
.calc-list { list-style: none; margin: 0; padding: 0; }
.calc-list li { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 16px; }
.calc-list li span { color: #c6cee6; }
.calc-list li b { font-weight: 700; font-size: 18px; }
.calc-result { margin-top: 16px; background: rgba(255,107,69,0.14); border: 1px solid rgba(255,107,69,0.35); border-radius: 14px; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; }
.calc-result span { font-weight: 700; }
.calc-result strong { font-size: 26px; font-weight: 800; }
.calc-cond { margin-top: 14px; font-size: 12.5px; color: #a3aecc; line-height: 1.55; }

/* ============================================================
   인생비서가 다른 이유
   ============================================================ */
.reasons-section { background: var(--bg-gray); }
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-soft); }
.reason-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--bg-blue); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.reason-ico svg { width: 27px; height: 27px; }
.reason-card h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.reason-card p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ============================================================
   맞춤 상품 찾기 (퀴즈)
   ============================================================ */
.quiz-section { background: #fff; }
.quiz { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 36px; }
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.quiz-progress-bar { flex: 1; height: 8px; background: #eef1f7; border-radius: 999px; overflow: hidden; }
.quiz-progress-bar span { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .3s ease; }
.quiz-progress-text { font-size: 14px; font-weight: 700; color: var(--muted); }
.quiz-progress-text b { color: var(--blue); }
.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-q { font-size: 21px; font-weight: 800; color: var(--navy); text-align: center; }
.quiz-options { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quiz-options-1col { grid-template-columns: 1fr; }
.quiz-opt { font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; background: var(--bg-gray); border: 2px solid transparent; color: var(--ink); border-radius: 14px; padding: 16px; min-height: 52px; transition: border-color .15s, background .15s, color .15s; }
.quiz-opt:hover { border-color: #c9d5f5; }
.quiz-opt:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,87,213,0.18); }
.quiz-opt.selected { background: var(--bg-blue); border-color: var(--blue); color: var(--blue); }
.quiz-done { text-align: center; }
.quiz-done .quiz-q { margin-bottom: 8px; }
.quiz-done-desc { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.quiz-restart { display: block; margin: 16px auto 0; background: none; border: none; color: var(--muted); font-family: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; min-height: 40px; }

/* ============================================================
   생활 유형별 추천 (PC 4-그리드 / 모바일 가로 스와이프)
   ============================================================ */
.recommend-section { background: var(--bg-blue); }
.recommend-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.recommend-track::-webkit-scrollbar { display: none; }
.recommend-card { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.recommend-tag { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--lavender-text); background: #efedfc; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.recommend-card h3 { font-size: 18.5px; font-weight: 800; color: var(--navy); }
.recommend-card p { margin-top: 8px; font-size: 14px; color: var(--muted); flex: 1; }
.recommend-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.recommend-foot span { font-size: 13.5px; color: var(--muted); }
.recommend-foot b { font-size: 14px; font-weight: 700; color: var(--blue); }

/* 공용 슬라이드 점 */
.slider-dots { display: flex; gap: 0; justify-content: center; }
/* 보이는 점은 9px 그대로, 패딩으로 터치 타깃만 24px 이상 확보 (WCAG 2.5.8) */
.slider-dots .dot { box-sizing: content-box; width: 9px; height: 9px; padding: 8px 7.5px; margin: 0; border-radius: 50%; background: #cfd8ec; background-clip: content-box; border: none; cursor: pointer; transition: background .15s, width .15s; }
.slider-dots .dot.active { background: var(--blue); background-clip: content-box; width: 22px; border-radius: 999px; }
#recommendDots { margin-top: 20px; display: none; }

/* ============================================================
   3년 실부담액 비교
   ============================================================ */
.compare-section { background: #fff; }
.calc3-card { max-width: 680px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 30px; }
.calc3-list { list-style: none; margin: 0; padding: 0; }
.calc3-list li { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.calc3-list li span { color: var(--ink); font-weight: 600; }
.calc3-list li b { font-weight: 700; color: var(--muted); font-size: 14px; }
.calc3-list li.minus span::before { content: "− "; color: var(--coral); font-weight: 800; }
.calc3-list li.total { border-bottom: none; margin-top: 8px; background: var(--bg-blue); border-radius: 12px; padding: 16px 14px; }
.calc3-list li.total span { color: var(--blue); font-weight: 800; font-size: 17px; }
.calc3-list li.total b { color: var(--blue); font-weight: 800; font-size: 15px; }
.calc3-more { margin-top: 12px; }
.calc3-more summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--blue); padding: 8px 0; text-align: center; }
.calc3-more summary::-webkit-details-marker { display: none; }
.calc3-list-extra li:last-child { border-bottom: none; }
.calc3-explain { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; line-height: 1.6; background: var(--bg-gray); border-radius: 12px; padding: 14px; }
.calc3-cta { margin-top: 22px; text-align: center; }

/* ============================================================
   실제 고객 후기 (PC 3-up / 모바일 1 슬라이드)
   ============================================================ */
.review-section { background: var(--bg-gray); }
.review-slider { max-width: var(--wrap); margin: 0 auto; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.review-track::-webkit-scrollbar { display: none; }
.review-card { scroll-snap-align: start; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 26px 24px; display: flex; flex-direction: column; }
.review-badge { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--blue); background: var(--bg-blue); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.review-text { font-size: 17.5px; line-height: 1.6; font-weight: 700; color: var(--ink); flex: 1; }
.review-text::before { content: "“"; color: var(--blue); font-weight: 800; }
.review-text::after { content: "”"; color: var(--blue); font-weight: 800; }
.review-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.review-tag { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--bg-gray); color: var(--muted); }
.review-tag.review-carrier { background: var(--bg-blue); color: var(--blue); }
.review-tag.review-installed { background: #eafaf0; color: #157f45; }
.review-link { margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--blue); min-height: 32px; display: inline-flex; align-items: center; }
.review-link:hover { text-decoration: underline; }
.review-controls { margin-top: 22px; display: none; align-items: center; justify-content: center; gap: 18px; }
.review-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.review-arrow:hover { background: var(--bg-gray); }
.review-arrow svg { width: 22px; height: 22px; }

/* ============================================================
   가입 절차
   ============================================================ */
.process-section { background: #fff; }
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.process-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; text-align: center; box-shadow: var(--shadow-soft); }
.process-num { width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.process-content h3 { font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1.4; }
.process-content p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -12px; width: 24px; height: 2px; background: #c9d5f5; z-index: 1; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { background: var(--bg-blue); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 16.5px; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--radius-sm); }
.faq-item summary::after { content: ""; width: 11px; height: 11px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; flex-shrink: 0; margin-top: -4px; }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq-a { padding: 0 20px 18px; font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ============================================================
   최종 CTA (딥네이비)
   ============================================================ */
.final-cta-section { background: var(--navy); }
.final-cta-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.final-cta-title { font-size: 34px; line-height: 1.32; font-weight: 800; color: #fff; }
.final-cta-title [data-amount] { color: var(--coral); }
.final-cta-sub { margin-top: 16px; font-size: 17px; color: #b9c3de; }
.final-cta-btns { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-call-light { background: #fff; color: var(--navy); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.btn-call-light svg { color: var(--blue); }
.btn-call-light:hover { background: var(--bg-blue); }

/* ============================================================
   푸터
   ============================================================ */
.site-footer { background: var(--navy); color: #b9c3de; padding: 46px 0; text-align: center; }
.footer-logo { display: inline-flex; background: #fff; padding: 9px 14px; border-radius: 10px; margin-bottom: 14px; }
.footer-logo img { height: 30px; width: auto; }
.footer-tag { font-size: 15px; color: #c6cee6; }
.footer-cert { max-width: 520px; margin: 20px auto 0; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-soft); }
.footer-cert img { width: 100%; height: auto; border-radius: 8px; }
.footer-notice { max-width: 720px; margin: 18px auto 0; font-size: 12.5px; color: #8b96b8; line-height: 1.6; }
.footer-biz { margin-top: 18px; font-size: 13px; color: #9aa4c4; line-height: 1.8; }
.footer-biz a { color: #c6cee6; }
.footer-copy { margin-top: 16px; font-size: 12.5px; color: #8b96b8; }

/* ============================================================
   모바일 하단 고정 바
   ============================================================ */
/* ----- 하단 고정 CTA: 좌 상담폼 / 우 전화 (전화가 가장 강하게) ----- */
.sticky-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid #d7deec; padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 28px rgba(24,42,90,0.16); transition: transform .25s ease; }
.sticky-note { text-align: center; font-size: 12px; font-weight: 700; color: var(--coral-text); line-height: 18px; margin-bottom: 5px; }
.sticky-btns { display: flex; gap: 8px; }
.sticky-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 10px; border-radius: 14px; white-space: nowrap; text-align: center; }
.sticky-btn-main { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.sticky-btn-sub { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.25; margin-top: 2px; }
.sticky-btn-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.sticky-form { flex-direction: column; gap: 0; background: var(--bg-blue); color: var(--blue); border: 2px solid var(--blue); }
.sticky-call { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(49,87,213,0.35); }
.sticky-call .sticky-btn-sub { font-size: 14px; letter-spacing: 0.01em; }
.sticky-call-ico { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.18); flex-shrink: 0; }
/* 전화 아이콘 파동: 시선 유도 (모션 최소화 설정 시 자동 정지) */
.sticky-call-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7); animation: callPulse 1.8s ease-out infinite; }
@keyframes callPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.sticky-cta.is-hidden { transform: translateY(140%); }
/* 상담폼이 화면에 보일 때는 중복되는 폼 버튼만 접고 전화는 유지 */
.sticky-cta.is-form-visible .sticky-form, .sticky-cta.is-form-visible .sticky-note { display: none; }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { gap: 34px; }
  .hero-title { font-size: 46px; }
  .hero-model { top: 262px; width: 150px; right: -8px; }
  .hero-model-bubble { display: none; } /* 좁은 폭에서는 말풍선 숨김(공간 부족) */
  .hero-sub, .hero-desc, .hero-chips { max-width: 290px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .guarantee-inner { grid-template-columns: 1fr; gap: 30px; }
  .recommend-track { grid-auto-columns: calc((100% - 20px) / 2); }
}

@media (max-width: 860px) {
  /* 모바일: 히어로 1열 — 브랜드+모델 → 폼, 이후 혜택카드 */
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { padding-bottom: 0; }
  .hero-model { display: none; } /* 721~860(태블릿): 모델 숨김 */
  .review-track { grid-auto-columns: 100%; }
  .review-controls { display: flex; }
  .recommend-track { grid-auto-columns: 86%; }
  #recommendDots { display: flex; }
  /* 가입 절차: 하나의 흰색 패널 + 번호(좌)·내용(우) 그리드 행 */
  .process-steps { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 4px 18px; }
  .process-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; text-align: left; padding: 18px 0; border: none; border-radius: 0; box-shadow: none; }
  .process-step + .process-step { border-top: 1px solid var(--line); }
  .process-num { margin: 0; }
  .process-content { min-width: 0; }
  .process-content h3 { font-size: 17px; }
  .process-content p { font-size: 14px; }
  .process-step:not(:last-child)::after { display: none; }
}

@media (max-width: 720px) {
  .only-mo { display: block; }
  .only-pc { display: none; }
  .section { padding: 54px 0; }
  .wrap { padding: 0 16px; }
  .section-title { font-size: 26px; }
  .section-desc { font-size: 15.5px; }
  .section-head { margin-bottom: 26px; }

  .header-inner { padding: 8px 14px; min-height: 58px; }
  .header-cta { display: none; }
  .logo img { height: 29px; }
  /* 모바일 헤더: 카톡 대신 전화번호를 눈에 띄는 버튼으로 */
  .header-call { background: var(--blue); color: #fff; min-height: 40px; padding: 0 14px; font-size: 15px; gap: 6px; }
  .header-call:hover { background: var(--blue-dark); }
  .header-call .header-ico { color: #fff; }

  /* ===== 모바일 컴팩트 히어로 (좌 65% 텍스트 / 우 35% 모델 absolute) ===== */
  .hero { padding: 18px 0 12px; }
  .hero-inner { padding: 0 16px; }
  .hero-copy { position: relative; padding-right: 38%; min-height: 224px; }
  .brand-label { font-size: 12px; padding: 5px 11px; }
  .hero-title { margin-top: 12px; font-size: 26px; line-height: 1.22; }
  .hero-title-tail { display: block; font-size: 19px; color: var(--navy); margin-top: 2px; }
  .hero-sub { margin-top: 10px; font-size: 14.5px; }

  /* 모델: 히어로 우측 하단, 상반신+손가락, 허리 아래 페이드 */
  .hero-model { display: block; position: absolute; top: auto; right: -10px; bottom: -12px; width: 40%; max-width: 150px; z-index: 0; pointer-events: none; }
  .hero-model-bubble { display: none; }
  .hero-model-img { -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,0) 90%); mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,0) 90%); }

  .hero-form-wrap { margin-top: 14px; }
  .hero-form-card { padding: 22px 18px; border-radius: 20px; }
  .hero-form-title { font-size: 21px; }

  /* 제3자 제공 동의: 모바일에선 2열 그리드가 너무 좁아 세로로 쌓는다 */
  .consent-terms dl { grid-template-columns: 1fr; gap: 0; }
  .consent-terms dt { white-space: normal; margin-top: 10px; }
  .consent-terms dt:first-child { margin-top: 0; }
  .consent-terms dd { margin-bottom: 2px; }

  /* 접힌 동의 영역과 신청 버튼이 한 화면에 들어오도록 세로 여백 축소 */
  .form-row, .form-fieldset { margin-bottom: 10px; }
  .form-row input[type="text"], .form-row input[type="tel"] { height: 48px; }
  .consent-box { margin-top: 10px; }
  .consent-all { padding: 2px 4px 2px 12px; }
  .consent-all-main { padding: 7px 0; font-size: 13.5px; }
  /* 버튼 문구가 한 줄에 들어가도록 (줄바꿈되면 25px 더 길어진다) */
  .lead-form #submitBtn { margin-top: 10px; font-size: 16.5px; padding-left: 16px; padding-right: 16px; }
  .form-call { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; background: var(--bg-blue); color: var(--navy); font-size: 15px; font-weight: 700; }
.form-call svg { color: var(--blue); flex-shrink: 0; }
.form-call b { color: var(--blue); font-weight: 800; }
.form-call:hover { background: #e2eaff; }
.form-guarantee-note { margin-top: 9px; }
  .amount-note { margin-top: 7px; }

  /* 폼 아래로 이동한 브랜드 소개·상세 설명·태그 */
  .hero-below { margin-top: 22px; }
  .hero-below-msg { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.45; }
  .hero-below-desc { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.6; }
  .hero-below-chips { margin-top: 14px; }
  .hero-chips li { font-size: 12px; padding: 6px 12px 6px 27px; }

  .benefits-section { padding: 40px 0; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .benefit-card { padding: 16px 10px; }
  .benefit-ico { width: 40px; height: 40px; margin-bottom: 10px; }
  .benefit-ico svg { width: 22px; height: 22px; }
  .benefit-num { font-size: 20px; }
  .benefit-label { font-size: 12.5px; }

  .quick-menu { display: block; }

  .guarantee-title { font-size: 27px; }
  .guarantee-big { font-size: 54px; }
  .guarantee-calc { padding: 22px; }

  .reason-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .reason-card { padding: 20px 16px; }
  .reason-ico { width: 44px; height: 44px; margin-bottom: 12px; }
  .reason-card h3 { font-size: 16px; }
  .reason-card p { font-size: 13px; }

  .quiz { padding: 24px 18px; }
  .quiz-q { font-size: 18px; }

  .calc3-card { padding: 22px 18px; }
  .final-cta-title { font-size: 25px; }

  /* 섹션 여백 리듬 */
  .reasons-section, .recommend-section, .review-section { padding: 48px 0; }

  /* 긴 CTA: 모바일에선 전체 폭 + 줄바꿈 허용 (320px 가로 스크롤 방지, 터치 타깃도 확대) */
  .final-cta-btns { flex-direction: column; gap: 10px; }
  .calc3-cta .btn, .final-cta-inner .btn, .guarantee-cta, .quiz-done .btn {
    display: flex; width: 100%; white-space: normal; text-align: center;
    padding-left: 18px; padding-right: 18px; line-height: 1.35;
  }

}

@media (max-width: 400px) {
  .hero-copy { padding-right: 36%; min-height: 214px; }
  .hero-title { font-size: 23px; }
  .hero-title-tail { font-size: 17px; }
  .hero-model { max-width: 128px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); } /* 360px 이하도 2열 유지 */
  .radio-item span { font-size: 14px; }
}

/* ============================================================
   모션 최소화 설정 존중 (OS: 동작 줄이기)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 하단 고정 CTA 노출: 860px 이하 (1열 히어로 구간 전체) */
@media (max-width: 860px) {
  .sticky-cta { display: block; }
  body { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
}
