/*
  그날엔클린 랜딩 스타일 (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; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

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; }

/* ---------- 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; }
.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;
}

.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;
}

.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;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
}

.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:last-child { padding-bottom: 0; }

/* 단계 사이 세로선 */
.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;
  gap: 16px;
  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;
}

.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); }

.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;
}

.form-row input::placeholder { color: #aaa0a1; }

.form-row input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
}

/* 청소 분야: 알약 칩(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;
}

.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; }

/* ---------- Sticky bottom CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

.sticky-cta { gap: 8px; }

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  border-radius: 14px;
  font-size: 16.5px;
  font-weight: 700;
}

.sticky-form {
  flex: 0.8;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 15.5px;
}

.sticky-call {
  flex: 1.2;
  gap: 8px;
  padding: 9px 0;
  background: var(--brand-strong);
  color: var(--white);
}

.sticky-call .ico-phone { width: 20px; height: 20px; }

.sticky-call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sticky-call-text small { font-size: 11.5px; font-weight: 600; opacity: 0.85; }

/* ---------- Responsive (tablet/desktop) ---------- */
@media (min-width: 640px) {
  .hero h1 { font-size: 38px; }
  .section h2 { font-size: 30px; }
  .strength-grid { grid-template-columns: 1fr 1fr; column-gap: 28px; }
}
