/* Layout: 모바일 한 줄 컬럼(최대 560px). 섹션 = 색이 바뀌는 챕터(파랑 → 검정 → 흰색 → 검정 → 연파랑 → 흰색 → 흰색).
   제목은 가운데 정렬, 핵심 단어 하나만 강조색. 단일 테마(밝기 전환 없음)로 색을 모두 명시. */
/* 나눔스퀘어 네오: 네이버 한글 웹폰트 공식 CDN */
@font-face { font-family: "NanumSquareNeo"; font-weight: 300; font-display: swap; src: url("https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-aLt.woff") format("woff"); }
@font-face { font-family: "NanumSquareNeo"; font-weight: 400; font-display: swap; src: url("https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.woff") format("woff"); }
@font-face { font-family: "NanumSquareNeo"; font-weight: 700; font-display: swap; src: url("https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-cBd.woff") format("woff"); }
@font-face { font-family: "NanumSquareNeo"; font-weight: 800; font-display: swap; src: url("https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-dEb.woff") format("woff"); }
@font-face { font-family: "NanumSquareNeo"; font-weight: 900; font-display: swap; src: url("https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-eHv.woff") format("woff"); }

:root {
  --blue: #2B7FF2;
  --blue-deep: #1D62CC;
  --sky: #E4EFFF;
  --white: #FFFFFF;
  --ink: #111317;
  --ink-soft: #5E6772;
  --line: #E3E8EE;
  --dark: #15171A;
  --card-dark: #202328;
  --line-dark: #30353C;
  --on-dark: #F3F5F7;
  --on-dark-soft: #A6AEB8;
  --green: #45D160;
  --green-ink: #0C1F10;
  --neon: #6CF25C;
  --red: #FF4D4F;
  --kakao: #FEE500; /* 카카오 공식 노랑 */
  --kakao-ink: #191919;
  --red-ink: #D92D30; /* 흰 바탕 위 빨간 글씨 (대비 4.5 이상) */
  --bar: #DCE3EC;
  --focus: #FFD43B;

  --font: "NanumSquareNeo", "NanumSquare Neo OTF", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.875rem, 1.4rem + 2.2vw, 2.375rem);

  --radius: 20px;
  --gutter: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: var(--text-base); font-weight: 400; line-height: 1.65; letter-spacing: -0.025em;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
.wrap { max-width: 560px; margin: 0 auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.note { font-size: var(--text-xs); color: var(--ink-soft); }

/* 버튼 */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; text-decoration: none;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
  width: 100%; min-height: 56px; padding: 8px 20px; border-radius: 999px;
  background: var(--green); color: var(--green-ink); font-size: var(--text-lg); line-height: 1.25; text-align: center;
  letter-spacing: -0.035em; /* <button>은 바깥 자간을 물려받지 않아 직접 지정 */
  transition: transform .12s ease, filter .12s ease;
}
.btn small { font-size: var(--text-xs); font-weight: 500; opacity: .8; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; } /* 신청 보내는 중 */
.btn.light { background: var(--white); color: var(--blue-deep); }
.btn.ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); font-size: var(--text-base); min-height: 52px; }

/* 상단 바 */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px; }
.brand { font-weight: 900; font-size: var(--text-lg); color: var(--blue); letter-spacing: -0.035em; text-decoration: none; }
.badge { font-size: var(--text-xs); font-weight: 700; color: var(--green); border: 1.5px solid var(--green); border-radius: 8px; padding: 4px 10px; white-space: nowrap; }

/* ── 챕터 1 · 파랑 히어로: 후킹 + 차종 가격 카드 2열 ── */
.hero { background: var(--blue); color: var(--white); padding-block: 32px 44px; overflow: hidden; }
.hero .wrap { display: grid; gap: 18px; justify-items: center; text-align: center; }
/* 후킹: '더이상'(작게) → '허위견적은 그만!'(아주 크게, 허위견적에 빨간 줄) → '진짜 견적만'(형광 블록) */
.kv { display: grid; justify-items: center; gap: 6px; margin-block: 4px 8px; }
.kv-pre { font-size: clamp(1.75rem, 9vw, 2.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1.2; color: var(--white); }
.kv-main { font-size: clamp(2.75rem, 14vw, 4.25rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.065em; color: var(--white); }
.kv-strike { position: relative; display: inline-block; }
.kv-strike::after { /* 왼쪽에서 그어지는 빨간 줄 */
  content: ""; position: absolute; left: -4%; right: -4%; top: 50%; height: .14em; border-radius: 999px; background: var(--red);
  transform-origin: left center; transform: rotate(-6deg) scaleX(0); animation: kv-strike .55s cubic-bezier(.16,1,.3,1) .35s forwards;
}
@keyframes kv-strike { to { transform: rotate(-6deg) scaleX(1); } }
.kv-chip {
  margin-top: 14px; font-size: clamp(1.25rem, 6.4vw, 1.875rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1.25;
  color: var(--ink); background: var(--neon); padding: 6px 14px; border-radius: 10px;
  box-shadow: 0 5px 0 var(--ink); transform: rotate(-2deg);
}

/* 가격 카드: 사진 + 보증금 30%·선납금 30%(작게) + 무보증(크게, 검정 띠) */
/* 차종 탭: 파란 바탕 위 알약형 세그먼트. 고른 탭만 흰색으로 떠 보이게 */
.hero-tabs { display: inline-flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.16); border-radius: 999px; margin-bottom: -6px; }
.hero-tabs [role="tab"] {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: var(--text-sm); font-weight: 800; letter-spacing: -0.03em;
  color: var(--white); background: transparent; padding: 8px 16px; min-height: 40px; border-radius: 999px;
  transition: background-color 150ms, color 150ms, transform 150ms;
}
.hero-tabs [role="tab"]:hover:not([aria-selected="true"]) { background: rgba(255,255,255,.22); }
.hero-tabs [role="tab"]:active { transform: scale(.97); }
.hero-tabs [role="tab"][aria-selected="true"] { color: var(--blue-deep); background: var(--white); box-shadow: 0 6px 16px -8px rgba(5,30,80,.7); }
.hero-tabs [role="tab"]:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
@media (max-width: 359px) { .hero-tabs [role="tab"] { padding-inline: 11px; } } /* 탭 4개가 320px에서도 한 줄 */
.price-empty { grid-column: 1 / -1; padding: 28px 12px; text-align: center; font-weight: 700; color: rgba(255,255,255,.8); }
/* 카드가 8장 넘는 탭의 '더 보기': 흰 테두리 알약, 카드 바로 아래 */
.price-more {
  appearance: none; cursor: pointer; font: inherit; font-size: var(--text-sm); font-weight: 800; letter-spacing: -0.03em;
  color: var(--white); background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px;
  padding: 10px 22px; min-height: 44px; margin-top: -6px; transition: background-color 150ms, transform 150ms;
}
.price-more:hover { background: rgba(255,255,255,.24); }
.price-more:active { transform: scale(.97); }
.price-more:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
.price-grid { margin: 4px 0 0; padding: 0; list-style: none; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard {
  appearance: none; border: 0; padding: 0; font: inherit; cursor: pointer; width: 100%; height: 100%;
  position: relative; display: grid; grid-template-rows: auto 1fr auto auto auto; overflow: hidden; text-align: left;
  background: var(--white); color: var(--ink); border-radius: 16px; letter-spacing: -0.035em;
  box-shadow: 0 14px 30px -18px rgba(5,30,80,.65); transition: transform .12s ease, box-shadow .12s ease;
  --pad: clamp(13px, 4.2vw, 18px); /* 카드 안쪽 좌우 여백 (머리글·가격 줄·무보증 바 공통) */
}
.pcard:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--neon), 0 18px 34px -18px rgba(5,30,80,.7); }
.pcard:active { transform: scale(.98); }
/* 카드 머리글: 작은 줄(브랜드 · 연료) + 큰 차명. 한 줄 넘치면 말줄임 */
.pcard-head { display: grid; gap: 2px; padding: calc(var(--pad) + 2px) var(--pad) 0; line-height: 1.2; min-width: 0; }
.pcard-sub { font-size: clamp(.6875rem, 3vw, .75rem); font-weight: 700; color: var(--ink-soft); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-name { font-size: clamp(1.0625rem, 4.8vw, 1.25rem); font-weight: 900; color: var(--ink); letter-spacing: -0.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 사진 칸은 카드 폭에 맞춘 비율(대부분 차 사진 720×300대). 고정 높이면 납작한 차는 이름 아래가 비어 보임 */
.pcard-img { aspect-ratio: 9 / 4; align-self: start; padding: 4px 10px 4px; display: flex; align-items: flex-end; justify-content: center; }
.pcard-img picture { display: contents; }
.pcard-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.pcard-row, .pcard-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 6px; padding: 8px var(--pad); font-size: var(--text-xs); font-weight: 700; }
.pcard-row { color: var(--ink-soft); }
.pcard-row { flex-wrap: nowrap; padding-block: 6px 12px; font-size: clamp(.6875rem, 3.2vw, .8125rem); white-space: nowrap; } /* 작은 선납금 줄은 항상 한 줄 */
.pcard-row b { margin-left: auto; font-size: inherit; font-weight: 800; }
.pcard-row:has(+ .pcard-row) { padding-block: 10px 0; } /* 작은 줄 두 개는 붙여서 */
.pcard-bar { background: var(--dark); color: var(--white); padding-block: 12px 13px; }
.pcard-bar { --num-size: clamp(1.0625rem, 4.6vw, 1.375rem); }
.pcard-bar b { margin-left: auto; font-size: var(--num-size); line-height: 1.3; font-weight: 900; color: var(--neon); letter-spacing: -0.05em; white-space: nowrap; }
/* 100만원 이상(수입차)은 7자리라 글자만 한 단계 작게 — 390px대에서도 한 줄 유지. 줄 높이는 정상 글자와 같게 고정해 한 탭에 섞여도 바 높이가 같음 */
.pcard-bar b.long { font-size: clamp(.9375rem, 4vw, 1.25rem); line-height: calc(var(--num-size) * 1.3); }
/* 좁은 폭에서는 무보증 금액을 항상 아랫줄로. 안 그러면 자릿수에 따라 한 줄/두 줄이 섞여 카드 높이가 들쭉날쭉해짐 */
@media (max-width: 389px) { .pcard-bar b { flex: 1 0 100%; } }
.price-basis { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; font-size: var(--text-xs); color: rgba(255,255,255,.85); margin-top: -6px; }
/* 임시 가격: 실제 견적으로 바꾸기 전까지 눈에 띄게 '미완성' 표시 */
.pending-tag { color: #FFE08A; font-weight: 800; border: 1.5px dashed #FFD43B; border-radius: 6px; padding: 1px 8px; }

.btn.dark { background: var(--ink); color: var(--white); }
.hero-check {
  appearance: none; background: none; border: 0; cursor: pointer; font: inherit; letter-spacing: inherit;
  font-size: var(--text-sm); color: rgba(255,255,255,.88); text-decoration: underline; text-underline-offset: 4px; margin-top: -6px;
}
.hero-check b { color: var(--white); font-weight: 800; }
.note.on-blue { color: rgba(255,255,255,.72); }


/* ── 챕터 공통 ── */
.chapter { padding-block: 72px; }
.chapter > .wrap { display: grid; gap: 32px; }
.chapter.dark { background: var(--dark); color: var(--on-dark); }
.chapter.sky { background: var(--sky); color: var(--ink); }
.chapter.white { background: var(--white); color: var(--ink); }
.chapter.white + .chapter.white { border-top: 1px solid var(--line); } /* 흰 섹션이 이어지면 구분선 */
.sec-head { display: grid; gap: 10px; text-align: center; justify-items: center; }
.sec-head .lead { font-size: var(--text-base); font-weight: 500; color: var(--ink-soft); }
.sec-head h2 { font-size: var(--text-xl); line-height: 1.3; }
.sec-head h2 em { font-style: normal; color: var(--blue); }
.chapter.dark .sec-head .lead, .chapter.dark .note { color: var(--on-dark-soft); }
.chapter.dark .sec-head h2 em { color: var(--neon); }

/* 싼 이유 카드 */
.reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.reason { background: var(--sky); border-radius: var(--radius); padding: 24px 22px; display: grid; gap: 4px; justify-items: start; }
.reason-no { font-size: var(--text-xs); font-weight: 800; color: var(--white); background: var(--blue); padding: 3px 10px; border-radius: 999px; }
.reason h3 { font-size: clamp(1.625rem, 7.2vw, 2rem); font-weight: 900; line-height: 1.3; letter-spacing: -0.05em; color: var(--ink); margin-top: 10px; }
.reason h3 em { font-style: normal; color: var(--blue); }
.reason-desc { width: 100%; font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.6; margin-top: 12px; padding-top: 14px; border-top: 1px dashed #B9CCE8; }

/* ── 챕터 5 · 페이지 안 신청 폼 시트 ── */
.sheet { background: var(--white); border-radius: 24px; padding: 22px 18px; box-shadow: 0 20px 50px -30px rgba(20,60,140,.45); }
.sheet .fn-form { margin-top: 0; }

fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
legend { font-weight: 800; font-size: var(--text-base); padding: 0; margin-bottom: 10px; }
.opts { display: grid; gap: 8px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: grid; place-items: center; text-align: center; min-height: 50px; padding: 6px 4px;
  border: 1.5px solid var(--line); border-radius: 14px; font-size: var(--text-sm); font-weight: 500; line-height: 1.3;
  transition: border-color .12s, background .12s, color .12s;
}
.opt span small { display: block; font-size: var(--text-xs); color: var(--ink-soft); font-weight: 400; }
.opt input:hover + span { border-color: #B9C4D2; }
.opt input:checked + span { border-color: var(--blue); background: #EEF5FF; color: var(--blue-deep); font-weight: 800; }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }


.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: var(--text-sm); }
.field input {
  font: inherit; font-size: var(--text-lg); min-height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #F7F9FC; color: var(--ink); width: 100%;
}
.field input:focus { border-color: var(--blue); outline: none; background: var(--white); }
.err { color: #D92D20; font-size: var(--text-xs); font-weight: 500; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
details.terms { font-size: var(--text-xs); color: var(--ink-soft); margin-top: 6px; }
details.terms summary { cursor: pointer; }

.done { display: grid; gap: 12px; }
.done .check { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.done h2 { font-size: var(--text-lg); }
.done p { color: var(--ink-soft); }
.summary { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: var(--text-sm); }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 700; }

/* ── 챕터 2 · 선납금 함정 ── */
.trap { display: grid; gap: 18px; }
.price-tag { background: var(--white); color: var(--ink); border-radius: 16px; padding: 18px 20px; display: grid; gap: 2px; justify-items: start; transform: rotate(-1.2deg); }
.price-tag .ad-label { font-size: var(--text-xs); color: var(--ink-soft); }
.price-tag .big { font-size: 2.25rem; font-weight: 900; letter-spacing: -0.055em; line-height: 1.15; }
.price-tag .fine { font-size: var(--text-sm); font-weight: 700; white-space: nowrap; color: var(--ink); position: relative; margin: 20px 0 12px 16px; letter-spacing: -0.035em; }
.price-tag .fine b { color: var(--red-ink); font-weight: 900; font-size: var(--text-lg); }
.price-tag .fine::after { content: ""; position: absolute; inset: -13px -18px; border: 3px solid var(--red); border-radius: 999px; }
.trap-math { margin: 0; padding: 0 20px 4px; overflow: hidden; list-style: none; display: grid; background: var(--card-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.trap-math li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line-dark); color: var(--on-dark-soft); font-size: var(--text-sm); }
.trap-math b { color: var(--white); font-size: var(--text-lg); font-weight: 800; white-space: nowrap; }
.trap-math li > span { white-space: nowrap; }
@media (max-width: 359px) {
  .trap-math b { font-size: var(--text-base); }
  .price-tag .fine { font-size: var(--text-xs); margin-left: 14px; }
  .price-tag .fine::after { inset: -12px -14px; }
  .price-tag .fine b { font-size: var(--text-base); }
}
.trap-math .down > span { white-space: normal; }
/* 먼저 내는 선납금: 빨간 띠로 따로 띄워 가장 먼저 눈에 들어오게 */
.trap-math .down { margin: 0 -20px; padding: 16px 20px; background: rgba(255, 77, 79, 0.12); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; color: var(--white); font-weight: 700; align-items: center; }
.trap-math .down b { color: var(--red); font-size: clamp(1.375rem, 7vw, 2rem); font-weight: 900; letter-spacing: -0.045em; }
.trap-math .total { border-bottom: 0; color: var(--white); font-weight: 800; font-size: var(--text-base); }
.trap-math .total b { font-size: clamp(1.375rem, 7vw, 2rem); font-weight: 900; color: var(--neon); letter-spacing: -0.045em; }
.trap-note { font-size: var(--text-base); color: var(--on-dark-soft); text-align: center; line-height: 1.7; }
.trap-note b { color: var(--white); font-weight: 800; }

/* 네온 테두리 카드 (야핏 가격 카드 방식) */
.glow {
  border: 2px solid transparent; border-radius: var(--radius); padding: 20px 22px;
  background: linear-gradient(var(--card-dark), var(--card-dark)) padding-box,
              linear-gradient(125deg, var(--neon), var(--blue) 50%, #B66CFF) border-box;
  box-shadow: 0 0 28px -4px rgba(108,242,92,.45);
}

/* 같은 목돈, 보증금이면? — 선납금 vs 보증금 4년 실제 비용 표. 보증금 칸(.pick)만 네온 */

/* ── 최저가 맞춤 보장: 네온 테두리 카드 + 3단계 ── */
.match { display: grid; gap: 20px; }
.match-seal { justify-self: center; font-size: var(--text-sm); font-weight: 900; letter-spacing: -0.03em; color: var(--green-ink); background: var(--neon); padding: 5px 14px; border-radius: 999px; }
.match-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.match-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.match-steps li > b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); font-weight: 900; letter-spacing: 0; }
.match-steps h3 { font-size: var(--text-base); line-height: 1.4; color: var(--white); }
.match-steps p { margin-top: 2px; font-size: var(--text-sm); color: var(--on-dark-soft); }
.match-fine { margin-top: -16px; font-size: var(--text-xs); color: var(--on-dark-soft); text-align: center; }

/* ── 챕터 6 · 혜택 카드: 번호 + 3D 아이콘 + 짧은 제목 + 두 줄 설명 ── */
.sec-sub { font-size: var(--text-base); font-weight: 500; color: var(--ink-soft); }
/* 카드 3장: 휴대폰은 2열(남는 1장은 가운데), 넓은 화면은 3열 */
.perks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.perk { flex: 0 0 calc(50% - 5px); position: relative; background: #F2F5F9; border-radius: var(--radius); padding: 22px 10px 20px; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; }
@media (min-width: 540px) { .perk { flex-basis: calc((100% - 20px) / 3); } }
.perk-no {
  position: absolute; top: 12px; left: 12px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--white); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0;
}
.perk-icon { display: contents; }
.perk img { width: 64px; height: 64px; margin: 12px 0 6px; }
.perk h3 { font-size: 1.125rem; font-weight: 900; letter-spacing: -0.045em; line-height: 1.35; }
.perk p { font-size: var(--text-xs); color: var(--ink-soft); line-height: 1.6; }

/* ── 챕터 7 · FAQ ── */
.faq-list details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq-list summary { cursor: pointer; font-weight: 800; font-size: var(--text-base); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--blue); font-weight: 900; font-size: var(--text-lg); line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin-top: 10px; color: var(--ink-soft); font-size: var(--text-sm); }

footer { background: #F3F5F7; padding-block: 32px 40px; }
footer .wrap { display: grid; gap: 6px; font-size: var(--text-xs); color: var(--ink-soft); }
.footer-link { justify-self: start; color: var(--ink); font-weight: 800; }
details.terms a { color: var(--blue); font-weight: 700; }

/* ── 개인정보처리방침 (privacy.html) ── */
.back { font-size: var(--text-sm); font-weight: 700; color: var(--blue); text-decoration: none; }
.policy { padding-block: 40px 72px; }
.policy h1 { font-size: var(--text-xl); line-height: 1.3; }
.policy .lede { margin-top: 12px; font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.75; }
.policy section { margin-top: 36px; display: grid; gap: 10px; }
.policy h2 { font-size: var(--text-lg); letter-spacing: -0.04em; }
.policy p, .policy li { font-size: var(--text-sm); line-height: 1.75; }
.policy ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.policy .table-wrap { overflow-x: auto; }
.policy table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--text-xs); }
.policy th, .policy td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.6; }
.policy th { background: #F3F5F7; font-weight: 800; }
.policy .todo { background: #FFF3BF; padding: 0 4px; border-radius: 4px; font-weight: 800; } /* 아직 정해지지 않은 값 */
body:has(.policy) { padding-bottom: 0; } /* 처리방침 페이지에는 하단 고정 바가 없음 */

/* 하단 고정 바 */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--dark);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); transition: transform .25s ease;
}
.dock.away { transform: translateY(110%); }
.dock .inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.dock .from { font-size: var(--text-xs); color: var(--on-dark-soft); line-height: 1.3; flex: none; }
.dock .from b { display: block; font-size: var(--text-base); color: var(--white); font-weight: 800; }
.dock .btn { min-height: 50px; font-size: var(--text-base); }
/* 카톡 문의 버튼: 카카오 공식 노랑 + 검정 말풍선 */
.kakao-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; padding: 0 16px; border-radius: 999px; background: var(--kakao); color: var(--kakao-ink);
  font-size: var(--text-sm); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap;
}
.kakao-btn:hover { filter: brightness(0.97); }
.kakao-btn:active { transform: scale(.98); }
.kakao-btn:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; }
.kakao-ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.kakao-btn.wide { justify-self: start; margin-block: 10px 4px; font-size: var(--text-base); padding: 0 22px; }
.dock .btn { flex: 1; min-width: 0; }
@media (max-width: 419px) {
  .dock .from { display: none; }
  .dock .inner { gap: 8px; }
  .dock .btn { padding-inline: 12px; font-size: var(--text-sm); }
  .dock .kakao-btn { padding-inline: 14px; }
}
@media (max-width: 359px) { .dock .kakao-btn { width: 50px; padding: 0; } .dock .kakao-btn span { display: none; } .dock .kakao-btn .kakao-ico { width: 24px; height: 24px; } } /* 아주 좁은 폰: 카톡은 말풍선만 (aria-label로 이름 유지) */ /* 폰: 카톡 문의 + 견적 받기 두 버튼이 한 줄에 들어가게 왼쪽 문구 숨김 */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .kv-strike::after { transform: rotate(-6deg) scaleX(1); } /* 줄 긋는 연출 없이 바로 표시 */
}

/* ── 신청 폼: 전체 화면, 한 화면(원하는 차량 · 이름 · 휴대폰 · 동의) ── */
html.fn-open, html.fn-open body { overflow: hidden; }
.funnel {
  position: fixed; inset: 0; z-index: 100; background: var(--white); color: var(--ink);
  display: flex; flex-direction: column; animation: fn-in .28s cubic-bezier(.16,1,.3,1);
}
@keyframes fn-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fn-top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px var(--gutter); max-width: 560px; width: 100%; margin: 0 auto;
}
.fn-brand { font-weight: 900; color: var(--blue); letter-spacing: -0.035em; }
.fn-icon { width: 44px; height: 44px; border: 0; background: none; font: inherit; font-size: 1.375rem; font-weight: 700; color: var(--ink); cursor: pointer; border-radius: 12px; }
.fn-icon:hover { background: #F2F5F9; }
.fn-body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  width: 100%; max-width: 560px; margin: 0 auto; padding: 12px var(--gutter) 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.fn-foot {
  width: 100%; max-width: 560px; margin: 0 auto; display: grid; gap: 8px;
  padding: 10px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
}
.fn-title { font-size: clamp(1.625rem, 1.3rem + 1.6vw, 2rem); font-weight: 800; line-height: 1.32; letter-spacing: -0.045em; outline: none; }
.fn-sub { color: var(--ink-soft); font-size: var(--text-sm); margin-top: -6px; }
.fn-form { display: grid; gap: 18px; margin-top: 8px; }
.field label small { font-weight: 500; color: var(--ink-soft); }
.fn-method legend { font-size: var(--text-sm); margin-bottom: 0; }
.fn-foot-note { font-size: var(--text-xs); color: var(--ink-soft); text-align: center; }
.send-err { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* 봇 거르기용 숨은 칸 */
.funnel .done { gap: 14px; }
@media (prefers-reduced-motion: reduce) { .funnel { animation: none; } }
