/* 2026-10-27 namlaw 기준 구현으로 다시 짠 공통 스타일(greenclean·daecheong 같은 파일, :root 색만 다르다).
   광고는 모바일만 → 모든 화면에서 480px 한 장. 섹션은 짧게(불필요한 스크롤 = 이탈), 제목 핵심어 1개에 포인트 색. */
:root {
  --brand: #1b6b3a;        /* 로고 초록 */
  --brand-deep: #124d29;
  --brand-tint: #eef6f0;
  --accent: #1b6b3a;       /* 행동 버튼 */
  --accent-ink: #fff;
  --accent-deep: #124d29;
  --ink: #17201a;
  --ink-2: #4a554d;
  --ink-3: #7c867f;
  --line: #e3e8e4;
  --bg: #fff;
  --bg-2: #f6f8f6;
  --danger: #d93a2b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 40, 24, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink); background: #e9ece9; line-height: 1.55; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a, button, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[hidden] { display: none !important; }

.page { max-width: 480px; margin: 0 auto; background: var(--bg); min-height: 100vh; box-shadow: 0 0 40px rgba(0,0,0,.06); }
.wrap { padding: 0 20px; }

/* ---------- 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 18px; }
.logo img { height: 30px; width: auto; }
.header-cta { font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }

/* ---------- 버튼 ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 14px 18px; border-radius: 12px; font-size: 17px; font-weight: 800; text-align: center; transition: transform .16s cubic-bezier(.2,.8,.2,1), background-color .16s; }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { background: var(--brand-tint); color: var(--brand-deep); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- 첫 화면 ---------- */
.hero { padding: 22px 20px 20px; background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 78%); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--brand-deep); background: #fff; border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1 { margin-top: 12px; font-size: 27px; line-height: 1.32; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.hero-media { position: relative; margin-top: 14px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: 4px 9px; border-radius: 8px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; list-style: none; }
.hero-points li { font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; }
.hero-points li::before { content: "✓ "; color: var(--brand); font-weight: 800; }

.quick { margin-top: 16px; }
.quick-title { font-size: 15px; font-weight: 800; }
.quick-title span { color: var(--brand); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.quick-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.quick-btn { min-height: 60px; padding: 8px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; font-weight: 800; line-height: 1.25; box-shadow: 0 2px 6px rgba(0,0,0,.04); transition: transform .16s cubic-bezier(.2,.8,.2,1), border-color .16s, background-color .16s; }
.quick-btn small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.quick-btn:active { transform: scale(.96); }
.quick-btn.is-on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); }

/* ---------- 신청서 ---------- */
.form-card { margin: 0 16px; padding: 20px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 64px; }
.form-card-top { margin-top: 4px; }
.form-title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.form-title em { font-style: normal; color: var(--brand); }
.form-desc { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.lead-form { margin-top: 14px; display: grid; gap: 12px; border-radius: 12px; }
.lead-form.is-flash { animation: flash .9s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(27,107,58,.0); } 30% { box-shadow: 0 0 0 6px var(--brand-tint); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
.field { display: grid; gap: 6px; border: 0; }
.field > label, .field > legend { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input[type=text], .field input[type=tel] { width: 100%; height: 52px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-2); font-size: 16px; transition: border-color .15s, background-color .15s; }
.field input::placeholder { color: #a3aba6; }
.field input:focus { outline: none; border-color: var(--brand); background: #fff; }
.field.is-error input, .field.is-error .chip span { border-color: var(--danger); }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chips.cols-2 { grid-template-columns: repeat(2, 1fr); }
.chips.cols-4 { grid-template-columns: repeat(4, 1fr); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 4px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-2); font-size: 14.5px; font-weight: 700; text-align: center; line-height: 1.25; transition: border-color .15s, background-color .15s, color .15s; }
.chip input:checked + span { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.consent { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.consent-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.consent-check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.consent-check.is-error span { color: var(--danger); }
.consent-more { font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; padding: 6px 0; }
.form-note { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.form-msg { font-size: 14px; font-weight: 700; color: var(--danger); text-align: center; min-height: 0; }
.form-msg:empty { display: none; }

.form-done { text-align: center; padding: 16px 4px; outline: none; }
.done-ico { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); }
.done-ico svg { width: 30px; height: 30px; }
.done-title { margin-top: 12px; font-size: 20px; font-weight: 800; }
.done-desc { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- 섹션 공통 ---------- */
.section { padding: 34px 20px; }
.section.alt { background: var(--bg-2); }
.sec-title { font-size: 22px; line-height: 1.38; font-weight: 800; letter-spacing: -0.035em; }
.sec-title::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--brand); margin-bottom: 10px; }
.sec-title em { font-style: normal; color: var(--brand); }
.sec-desc { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.sec-cta { margin-top: 18px; }

/* 청소 전·후: 한 화면 격자(가로 넘김 금지), 누르면 크게 */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ba-item { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-align: left; }
.ba-item img { width: 100%; aspect-ratio: 724 / 450; object-fit: cover; }
.ba-item span { display: block; padding: 7px 9px; font-size: 13px; font-weight: 700; }
.ba-note { margin-top: 8px; font-size: 12px; color: var(--ink-3); }

/* 고민 → 답 */
.worry-list { display: grid; gap: 8px; margin-top: 16px; }
.worry-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.worry-row b { display: block; font-size: 15.5px; font-weight: 800; }
.worry-row b::before { content: "“"; color: var(--brand); }
.worry-row b::after { content: "”"; color: var(--brand); }
.worry-row span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }
.worry-row svg { width: 18px; height: 18px; stroke: var(--ink-3); fill: none; stroke-width: 2; }

/* 핵심 정보 요약 */
.facts { margin-top: 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.fact { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 12px 14px; font-size: 14px; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact dt { font-weight: 700; color: var(--ink-3); }
.fact dd { font-weight: 600; }
.fact dd b { color: var(--brand-deep); }

/* 강점: 2칸 작은 카드 */
.strengths { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; list-style: none; }
.strengths li { padding: 14px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.strengths .s-ico { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); }
.strengths .s-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.strengths b { display: block; margin-top: 8px; font-size: 14.5px; font-weight: 800; }
.strengths span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }

/* 현장 사진: 썸네일 한 줄 */
.team-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.team-row button { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.team-row img { width: 100%; height: 100%; object-fit: cover; }

/* 사람(변호사 등) 카드 */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.person { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--bg-2); }
.person p { padding: 8px 10px 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.person p b { display: block; font-size: 15px; color: var(--ink); }
.group-photo { margin-top: 10px; border-radius: 12px; overflow: hidden; }
.group-photo figcaption { padding: 8px 2px 0; font-size: 12.5px; color: var(--ink-3); }

/* 진행: 가로 3칸 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 12px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; }
.steps b { display: block; margin-top: 7px; font-size: 14px; font-weight: 800; line-height: 1.3; }
.steps span { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-2); line-height: 1.4; }

/* 자주 묻는 질문 */
.faq { margin-top: 14px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 10px; padding: 15px 2px; font-size: 15px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 18px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 2px 15px; font-size: 14px; color: var(--ink-2); }

.final { padding: 34px 0 30px; background: var(--brand-tint); }
.final .sec-title, .final .sec-desc { padding: 0 20px; }
.final .form-card { margin-top: 16px; }

/* ---------- 푸터 ---------- */
.site-footer { padding: 26px 20px 110px; background: #f2f4f2; font-size: 12.5px; color: var(--ink-3); }
.footer-logo img { height: 26px; width: auto; opacity: .85; }
.footer-info { margin-top: 12px; display: grid; gap: 3px; }
.footer-info div { display: flex; gap: 8px; }
.footer-info dt { flex: none; min-width: 84px; font-weight: 600; }
.footer-privacy { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); text-decoration: underline; }
.footer-copy { margin-top: 8px; }

/* ---------- 하단 고정 바 ---------- */
.sticky-bar { position: fixed; left: 50%; bottom: 0; z-index: 40; width: 100%; max-width: 480px; transform: translateX(-50%); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.sticky-bar.is-pre, .sticky-bar.is-hidden { transform: translate(-50%, 110%); opacity: 0; pointer-events: none; }
.sticky-bar .btn { min-height: 54px; }
.sticky-bar .btn small { font-size: 12.5px; font-weight: 600; opacity: .85; }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,16,12,.6); }
.modal-box { width: 100%; max-width: 440px; max-height: 86vh; overflow: auto; padding: 22px 20px 18px; border-radius: 16px; background: #fff; }
.modal-box h2 { font-size: 18px; font-weight: 800; }
.privacy-list { margin: 12px 0 16px; display: grid; gap: 10px; font-size: 13.5px; }
.privacy-list dt { font-weight: 700; }
.privacy-list dd { color: var(--ink-2); }
.modal-photo { padding: 10px; }
.modal-photo img { width: 100%; border-radius: 10px; }
.modal-photo .btn { margin-top: 10px; min-height: 48px; }

/* ---------- 떠오르기(1회) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease var(--d, 0s), transform .5s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
@media (hover: hover) { .quick-btn:hover { border-color: var(--brand); } .ba-item:hover img, .team-row button:hover img { opacity: .9; } }
