/* ════════════════════════════════════════════════════════════════
   복DB 랜딩

   토스식 세련된 쉬움 + 중장년 배려.
   - 본문 18px, 보조 16px 이상. 버튼 높이 52px 이상.
   - 굵기는 700 / 600 / 400 세 단계만. 800 은 쓰지 않는다.
   - 브랜드 블루는 #2563EB 하나. 영상(realty-reel)의 UI.brand 와 같은 값이다.
   - 글자는 먹색 두 단계(#1A1A1A / #6B7280) — 영상과 같은 체계.
   ════════════════════════════════════════════════════════════════ */

:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff4ff;

  --ink: #1a1a1a;       /* 제목·수치 */
  --ink-muted: #6b7280; /* 보조 글자 */
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;

  --dark: #111827;
  --dark-card: #1f2937;
  --dark-muted: #cbd2dc;

  --radius: 20px;
  --radius-sm: 14px;
  --section-y: 120px;
  --gutter: 24px;
}

@media (max-width: 720px) {
  :root { --section-y: 80px; --gutter: 20px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
svg text { font-family: var(--font); }

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── 버튼 ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid #93b4f7; outline-offset: 2px; }

.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; border-radius: 12px; }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { background: #e2eaff; }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #f1f5ff; }

/* ── 헤더 ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, .7);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── 공통 섹션 ─────────────────────────────────────────── */

.section { padding: var(--section-y) 0; }
.section-tint { background: var(--bg-soft); }

.kicker {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 12px;
}

.title {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.sub {
  margin-top: 16px;
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 640px;
}
.sub strong { color: var(--ink); font-weight: 600; }

.icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  flex: none;
}
.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── 1. 히어로 ─────────────────────────────────────────── */

.hero {
  padding: 96px 0 0;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(37, 99, 235, .10), transparent 70%),
    var(--bg);
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 16px;
  font-weight: 600;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(40px, 6.4vw, 70px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.hl { color: var(--brand); }

.lead {
  margin-top: 24px;
  font-size: clamp(19px, 2.2vw, 22px);
  color: var(--ink-muted);
}
.lead strong { color: var(--ink); font-weight: 600; }

.cta-row {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-muted);
}

.phones {
  margin: 64px auto 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
}

.phone {
  background: #fff;
  border: 8px solid #1f2937;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(17, 24, 39, .28);
  transform: translateY(40px);
}
.phone svg { display: block; width: 100%; }
.phone-side { width: 214px; opacity: .92; }
.phone-center { width: 250px; transform: translateY(24px); }

/* ── 2. 카드 ───────────────────────────────────────────── */

.grid-3 {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.card h3 { margin-top: 20px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin-top: 10px; color: var(--ink-muted); }

/* ── 3. 차별점 (어두운 배경) ───────────────────────────── */

.section-dark { background: var(--dark); color: #fff; }
.section-dark .kicker { color: #93b4f7; }
.section-dark .sub { color: var(--dark-muted); }
.section-dark .icon { background: rgba(37, 99, 235, .22); }
.section-dark .icon svg { stroke: #93b4f7; }

.diff {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.points { display: grid; gap: 28px; }
.point { display: flex; gap: 18px; }
.point h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.point p { margin-top: 6px; color: var(--dark-muted); }

.diff-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
}
.diff-visual svg { display: block; width: 100%; }

/* ── 4. 비교 ───────────────────────────────────────────── */

.grid-2 {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare {
  padding: 36px 32px;
  border-radius: var(--radius);
}
.compare .tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}
.compare .big {
  margin-top: 20px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.compare .big + p { margin-top: 14px; }

.compare-old { background: var(--bg-soft); color: var(--ink-muted); }
.compare-old .tag { background: #e5e7eb; color: #4b5563; }
.compare-old .big { color: #4b5563; }

.compare-new { background: var(--brand); color: #e8efff; }
.compare-new .tag { background: rgba(255, 255, 255, .18); color: #fff; }
.compare-new .big { color: #fff; }

/* ── 5. 광고 명시사항 ──────────────────────────────────── */

.law {
  padding: 48px 40px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.law .title { margin-top: 20px; }

.badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.chips {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
}

/* ── 6. 단계 ───────────────────────────────────────────── */

.steps {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.step h3 { margin-top: 18px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 6px; color: var(--ink-muted); }

/* ── 7. CTA ────────────────────────────────────────────── */

.cta-box {
  padding: 72px 32px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.cta-box h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.cta-box p { margin-top: 12px; color: #dbe6ff; font-size: 19px; }
.cta-box .btn { margin-top: 32px; }

/* ── 푸터 ─────────────────────────────────────────────── */

.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-desc { margin-top: 14px; font-size: 16px; color: var(--ink-muted); }
.foot-links { display: flex; gap: 64px; }
.foot-links h4 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.foot-links a { display: block; font-size: 16px; color: var(--ink-muted); line-height: 2.1; }
.foot-links a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-muted);
}

/* ── 나타나기 효과 ────────────────────────────────────────
   JS 가 돌 때만 숨긴다(html.js). JS 가 막혀도 글은 보인다.
   '동작 줄이기'를 켠 사람에게는 app.js 가 효과를 아예 걸지 않는다. */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.show { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ── 반응형 ───────────────────────────────────────────── */

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; }
  .diff { grid-template-columns: 1fr; gap: 40px; }
  .diff-visual { max-width: 420px; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero { padding-top: 64px; }
  .phones { margin-top: 48px; }
  .phone-side { display: none; }
  .phone-center { width: min(250px, 72vw); }
  .grid-2 { grid-template-columns: 1fr; }
  .law { padding: 36px 24px; }
  .cta-box { padding: 56px 24px; }
  .foot-links { gap: 40px; }
}

@media (max-width: 480px) {
  .cta-row .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
}
