/*
    그날엔클린 랜딩 스타일 (2026-10-15 리디자인).
    근거: docs/design-refs-2026-10-15.md (Mobbin 섹션·화면 패턴). 내용·섹션 순서·클래스 이름은
    공통 템플릿과 같게 두고 시각만 바꿨다.
    - 색은 로고 장미색 하나(--brand) + 먹색(--ink) + 따뜻한 미색(--paper). 청록·하늘색은 로고와 부딪혀 뺐다.
    - 이모지 아이콘·여러 색 카드·과한 그림자 대신 번호 라벨, 얇은 선, 옅은 틴트로 구분한다.
    - 강조는 섹션 제목 둘째 구절(<em>)과 숫자 라벨에만 브랜드색을 쓴다.
*/

:root {
    --brand: #db5d66;        /* 로고 글자색 그대로 */
    --brand-strong: #c4434e; /* 흰 글씨를 올리는 버튼용(대비 확보) */
    --brand-deep: #a8363f;
    --brand-tint: #fbeceb;
    --brand-tint-2: #f6dcdc;
    --ink: #221c1d;
    --ink-2: #4f4547;
    --ink-3: #8a7f80;
    --line: #ece5e3;
    --paper: #faf6f4;
    --white: #ffffff;
    --danger: #c62f3b;
    --radius: 20px;
    --max-width: 560px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
    color: var(--ink);
    background: var(--white);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3 { margin: 0; word-break: keep-all; }
p { margin: 0; word-break: keep-all; }
em { font-style: normal; }
button { line-height: 1.6; cursor: pointer; }
.swiper { margin-top: 8px; cursor: grab; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }

.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; background-color: transparent; border: 0; }
.logo-img { height: 30px; width: auto; }

/* 헤더 오른쪽: 전화(아톡비즈 070). 번호가 바로 읽히게 굵게, 브랜드색 바탕 */
.header-call { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-strong); color: var(--white); padding: 9px 14px 9px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; transition: background-color 0.15s ease; border: 0; }
.header-call::after { display: none; }

.ico-phone { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Layout helpers ---------- */
.section { max-width: var(--max-width); margin: 0 auto; padding: 64px 20px; text-align: center; }

/* 섹션 머리 작은 라벨(Hims·Function 패턴) */
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-deep); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }

.section h2 { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.35; }

.section h2 em, .hero h1 em { color: var(--brand); }

.section-desc { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* ---------- Hero ---------- */
.hero { max-width: var(--max-width); margin: 0 auto; padding: 16px 20px 48px; text-align: center; }

.hero-brand { display: flex; justify-content: center; margin-bottom: 12px; }

/* 375×812 첫 화면 안에 견적 버튼이 들어오도록 로고·사진 높이를 줄였다(2026-10-15, 버튼 top 756→549px, 하단 바 732px) */
.hero-logo-img { width: 150px; height: auto; }

.hero-banner { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }

.hero-banner img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 40% 50%; }

.hero-badges { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

.badge { font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.hero h1 { font-size: 30px; font-weight: 800; line-height: 1.32; color: var(--ink); letter-spacing: -0.035em; }

.hero-sub { margin-top: 14px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }

.hero-sub strong { color: var(--ink); font-weight: 700; box-shadow: inset 0 -0.45em 0 var(--brand-tint-2); }

.hero-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

.hero-trust { margin: 22px 0 0; padding: 18px 18px; list-style: none; display: flex; flex-direction: column; gap: 10px; text-align: left; background: var(--paper); border-radius: 16px; font-size: 14.5px; color: var(--ink); font-weight: 500; }

.hero-trust li { position: relative; padding-left: 28px; }

/* 체크 표시: 글리프 대신 그린 체크(브랜드색 원) */
.hero-trust li::before { content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 24px; border-radius: 14px; font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; border: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--brand-strong); color: var(--white); }

.btn-primary::after { content: "→"; font-weight: 600; transition: transform 0.15s ease; }

@media (hover: hover) {
    .btn-primary:hover { background: var(--brand-deep); }
    .btn-primary:hover::after { transform: translateX(3px); }
}

.btn-block { width: 100%; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:disabled::after { content: none; }

/* ---------- Factsheet ---------- */
.checklist-section { background: var(--paper); max-width: none; }

.checklist-section > * { max-width: calc(var(--max-width) - 40px); margin-left: auto; margin-right: auto; }

.factsheet { margin-top: 28px; margin-bottom: 0; background: var(--white); border-radius: 16px; padding: 4px 20px; text-align: left; }

.fact-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 15px 0; align-items: baseline; border-bottom: 1px solid var(--line); }

.fact-row:last-child { border-bottom: none; }

.fact-label { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }

.fact-value { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }

.checklist-result { margin-top: 20px; text-align: center; }

#checklistMsg { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 14px; line-height: 1.5; }

/* ---------- Strengths ---------- */
.strength-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 0; text-align: left; border-top: 1px solid var(--line); }

.strength-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }

.strength-num { grid-row: span 2; font-size: 15px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.6; }

.strength-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

.strength-card p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- Process (세로 타임라인) ---------- */
.process-section { background: var(--ink); max-width: none; color: var(--white); }

.process-section > * { max-width: calc(var(--max-width) - 40px); margin-left: auto; margin-right: auto; }

.eyebrow-dark { background: rgba(255, 255, 255, 0.1); color: #f3b9bd; }

.process-section h2 { color: var(--white); }
.process-section h2 em { color: #f08f96; }
.process-section .section-desc { color: #bfb3b4; }

.process-steps { margin-top: 34px; padding: 0; list-style: none; text-align: left; position: relative; }

.process-step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding-bottom: 26px; }

/* 단계 사이 세로선 */
.process-step:not(:last-child)::before { content: ""; position: absolute; left: 17.5px; top: 40px; bottom: 4px; width: 1px; background: rgba(255, 255, 255, 0.18); }

.step-num { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #f08f96; color: #f08f96; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }

.process-step h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; padding-top: 5px; }

.process-step p { margin-top: 4px; font-size: 14.5px; line-height: 1.6; color: #cfc4c5; }

/* ---------- Before / After ---------- */
.ba-list { margin-top: 32px; display: flex; flex-direction: column; text-align: left; }
.ba-item { background: var(--paper); border-radius: var(--radius); padding: 18px 14px 14px; }
.ba-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin: 0 4px 14px; }
.ba-num { font-size: 14px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-pair figure, .ba-extra { position: relative; margin: 0; border-radius: 12px; overflow: hidden; }
.ba-pair img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.ba-tag { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; }
.ba-before { background: rgba(255, 255, 255, 0.92); color: var(--ink-2); }
.ba-after { background: var(--brand-strong); color: var(--white); }
.ba-extra { margin-top: 8px; }
.ba-extra img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.ba-extra figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.62)); color: var(--white); font-size: 14px; font-weight: 600; }
.ba-cta { margin-top: 28px; }

/* ---------- Types ---------- */
.types-section { padding-top: 24px; }

.type-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }

.type-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: border-color 0.15s ease; }

@media (hover: hover) { .type-card:hover { border-color: var(--brand-tint-2); } }

.type-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.type-body { padding: 14px 14px 16px; }

.type-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

.type-card p { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

.type-card .type-sub { margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--brand-deep); }

/* ---------- Form ---------- */
.form-section { background: var(--paper); max-width: none; padding-bottom: 72px; }

.form-section > * { max-width: calc(var(--max-width) - 40px); margin-left: auto; margin-right: auto; }

.lead-form { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; text-align: left; background: var(--white); border-radius: var(--radius); padding: 24px 18px; }

.form-row { display: flex; flex-direction: column; gap: 8px; }

.form-row > label { font-size: 14px; font-weight: 700; color: var(--ink); }

.req { color: var(--brand); }
.opt { color: var(--muted, #8a8a8a); font-weight: 400; font-size: .9em; }

.form-row input[type="text"], .form-row input[type="tel"] { padding: 15px 15px; border-radius: 12px; border: 1.5px solid transparent; font-size: 16px; background: #f4f0ef; color: var(--ink); font-family: inherit; transition: border-color 0.15s ease, background 0.15s ease; width: 100%; }
.form-row input::placeholder { color: #aaa0a1; }
.form-row input:focus { outline: none; border-color: var(--brand); background: var(--white); }
.tel_wrap { display: flex; align-items: center; gap: 8px; }

/* 청소 분야: 알약 칩(Mindtrip·Mesh 패턴). 라디오 자체는 접근성 위해 남기고 시각만 숨긴다. */
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }

.radio-item { position: relative; display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all 0.15s ease; }

.radio-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.radio-item:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); }

.radio-item:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.5; cursor: pointer; word-break: keep-all; }

.consent input { margin-top: 1px; width: 18px; height: 18px; accent-color: var(--brand-strong); flex-shrink: 0; }

.form-msg { font-size: 14.5px; text-align: center; min-height: 18px; }

.form-msg:empty { display: none; }
.form-msg.success { color: #1d7a45; font-weight: 700; }
.form-msg.error { color: var(--danger); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a99d9e; padding: 36px 20px 108px; text-align: center; font-size: 12.5px; line-height: 1.85; }

.footer-logo-chip { display: inline-flex; background: var(--white); padding: 9px 16px; border-radius: 10px; margin-bottom: 12px; }

.footer-logo-img { height: 24px; width: auto; }

.footer-copy { margin-top: 10px; color: #7b6f70; }

.footer-slogan { color: #e9dfe0; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.footer-meta a { color: #e9dfe0; font-weight: 700; }

/* ---------- Responsive (tablet/desktop) ---------- */
@media (min-width: 640px) {
    .hero h1 { font-size: 38px; }
    .section h2 { font-size: 30px; }
}

/* ---------- 지역 안내(build_regions.py, 2026-10-21) ---------- */
.region-section { text-align: left; padding-top: 24px; }
.region-section h2, .region-section .section-desc { text-align: left; }
.region-crumb { font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; }
.region-crumb a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
.region-crumb span { margin: 0 4px; }
.region-crumb strong { color: var(--ink-2); font-weight: 600; }
.region-sub { margin: 24px 0 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.region-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.region-chip { display: inline-flex; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 13.5px; color: var(--ink-2); }
@media (hover: hover) { .region-chip:hover { border-color: var(--brand); color: var(--brand-deep); } }
.region-facts { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.region-faq details { border-bottom: 1px solid var(--line); padding: 12px 2px; }
.region-faq summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink); }
.region-faq p { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
/* 지역 안내 접기(2026-10-21): 폼 아래 한 줄만 보이고, 눌러야 펼쳐진다 */
.region-section { padding-top: 8px; padding-bottom: 40px; }
.region-more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.region-more > summary { list-style: none; cursor: pointer; padding: 14px 28px 14px 2px; position: relative; }
.region-more > summary::-webkit-details-marker { display: none; }
.region-more > summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--ink-3); }
.region-more[open] > summary::after { content: "−"; }
.region-more > summary h2 { display: inline; font-size: 14.5px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.region-more-hint { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.region-body { padding: 4px 2px 16px; }

/* ---------- 2026-10-23 v3 압축(클래리티 근거) ---------- */
.section { padding: 40px 18px; }
.hero { padding: 8px 18px 20px; }
.hero-banner img { max-height: 200px; object-fit: cover; }
.hero h1 { margin-top: 14px; }
.hero-trust { margin: 12px 0 0; padding: 0; background: none; flex-direction: row; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 12.5px; }
.hero-trust li { padding: 5px 10px; border-radius: 999px; background: var(--paper); }
.hero-trust li::before { display: none; }
.form-section { padding-top: 24px; }
.swipe-hint { margin-top: 14px; font-size: 12.5px; color: var(--ink-2); text-align: right; }
.strength-grid, .ba-list, .process-steps { display: flex; flex-direction: row; border-top: 0; margin-top: 8px; padding-bottom: 6px; }
.strength-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; padding-right: 10px; height: auto; }
.ba-extra { display: none; }
.process-step { padding: 14px; border-radius: 14px; background: rgba(255,255,255,0.06); }
.process-steps::before, .process-step::before, .process-step::after { display: none !important; }
.type-grid { gap: 8px; margin-top: 18px; }
.type-img { height: 96px; object-fit: cover; }
.type-body p { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.factsheet .fact-row { padding: 8px 0; }

/* ---------- 2026-10-26 v4 폼 시작률(클래리티 근거) ---------- */
.form-assure { margin: 10px 0 8px; font-size: 12.5px; color: var(--ink-2); text-align: center; }

/* ---------- 2026-10-26 v5(점검 결과): 오류 칸 표시·폼 위 전화·모바일 터치 ---------- */
html { -webkit-tap-highlight-color: transparent; }
.field-error input[type=text], .field-error input[type=tel] { border-color: #d93c3c !important; box-shadow: 0 0 0 3px rgba(217,60,60,.12); }
.field-error .radio-group, .consent.field-error { outline: 2px solid rgba(217,60,60,.55); outline-offset: 4px; border-radius: 12px; }

/* 청소 가이드(/guide, 2026-10-28) — 질문 h1·직답·근거. 랜딩 히어로 자리에 들어간다 */
.guide-article { padding-top: 20px; }
.guide-h1 { font-size: 24px; line-height: 1.35; letter-spacing: -0.02em; margin: 6px 0 12px; }
.guide-answer { font-size: 16px; line-height: 1.6; background: var(--brand-soft, #fdf0f1); border-left: 4px solid var(--brand); padding: 12px 14px; border-radius: 8px; margin: 0 0 8px; }
.guide-meta { font-size: 12px; color: var(--ink-3); margin: 0 0 16px; }
.guide-h2 { font-size: 18px; margin: 22px 0 8px; }
.guide-article p { line-height: 1.7; margin: 0 0 8px; }
.guide-steps, .guide-check, .guide-list { padding-left: 20px; margin: 8px 0 12px; line-height: 1.7; }
.guide-list li { margin-bottom: 12px; }
.guide-table-wrap { overflow-x: auto; margin: 8px 0 12px; }
.guide-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.guide-table th, .guide-table td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.guide-table th { background: var(--bg-2, #f6f6f6); }
.guide-cta { display: grid; gap: 8px; margin-top: 18px; }