/* ============================================================================
   ecolab-church · 메인 허브 스타일 (hub.css)
   ----------------------------------------------------------------------------
   · 개척교회 서브도메인 무료 분양 프로젝트의 중심 안내 페이지 전용 스타일.
   · 색상은 :root 변수로 정리 — 톤 변경 시 변수만 수정하세요.
   · 따뜻하고 신뢰감 있는 톤. 12개 템플릿 팔레트를 색상칩으로 반영합니다.
   ============================================================================ */

/* ----------------------------- 테마 변수 ----------------------------------- */
:root {
  /* 브랜드(허브) 색 — 따뜻한 신뢰감: 딥 틸·따뜻한 골드·크림 */
  --ink:          #1d2530;   /* 본문 진한 텍스트 */
  --ink-soft:     #54606e;   /* 보조 텍스트 */
  --ink-faint:    #8a95a1;   /* 흐린 텍스트 */
  --bg:           #fbf9f4;   /* 따뜻한 크림 배경 */
  --bg-warm:      #f4eee2;   /* 섹션 교차 배경 */
  --card:         #ffffff;   /* 카드 */
  --line:         #e7e0d2;   /* 경계선 */
  --line-soft:    #f0ebdf;

  --brand:        #0d6e6e;   /* 딥 틸 (메인 브랜드) */
  --brand-deep:   #095454;
  --brand-soft:   #e3f0ef;
  --gold:         #c2a14d;   /* 골드 포인트 */
  --gold-soft:    #f0e6cb;
  --coral:        #ef6b5b;   /* 따뜻한 강조 */

  --ok:           #2f7d4f;
  --warn:         #c0552f;

  --shadow-sm: 0 1px 2px rgba(29,37,48,.06), 0 2px 6px rgba(29,37,48,.05);
  --shadow-md: 0 6px 18px rgba(29,37,48,.08), 0 2px 6px rgba(29,37,48,.05);
  --shadow-lg: 0 18px 50px rgba(29,37,48,.14);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1120px;

  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Noto Serif KR", serif;
}

/* ----------------------------- 리셋/기본 --------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* 키보드 포커스 가시성 (접근성) */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 스킵 링크 */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ----------------------------- 레이아웃 유틸 ----------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 860px; }
.section { padding: 84px 0; }
.section--warm { background: var(--bg-warm); }
.section--brand {
  background: linear-gradient(160deg, var(--brand-deep), var(--brand));
  color: #fff;
}
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section--brand .eyebrow { color: #fff; background: rgba(255,255,255,.16); }
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
}
.section-lead {
  margin-top: 14px;
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 60ch;
}
.section--brand .section-lead { color: rgba(255,255,255,.85); }
.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; }
.section-lead--center { margin-left: auto; margin-right: auto; }

/* ----------------------------- 버튼 ------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--brand-deep); }
.btn--gold { background: var(--gold); color: #2a2310; box-shadow: var(--shadow-md); }
.btn--gold:hover { background: #d4b765; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--on-dark { background: #fff; color: var(--brand-deep); }
.btn--on-dark:hover { background: #f0fffe; }
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; justify-content: center; }
.btn--kakao { background: #fae100; color: #391b1b; box-shadow: var(--shadow-md); }
.btn--kakao:hover { background: #ffec3d; }

/* ----------------------------- 상단 유틸리티 바 ------------------------- */
.topbar {
  background: var(--brand-deep);
  color: rgba(255,255,255,.92);
  font-size: .86rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-item {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.9);
  padding: 6px 0;
}
.topbar-item:hover { color: #fff; }
.topbar-item b { color: #fff; font-weight: 800; }
.topbar-item .ti-ico { font-size: 1rem; }
.topbar-login {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.14);
  color: #fff; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  transition: background .15s ease;
}
.topbar-login:hover { background: rgba(255,255,255,.26); }

/* SNS 아이콘 묶음 (인라인 SVG는 JS가 주입) */
.sns { display: flex; align-items: center; gap: 8px; }
.sns a {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.sns a:hover { transform: translateY(-2px); }
.sns a svg { width: 18px; height: 18px; }
.sns--top a { background: rgba(255,255,255,.14); }
.sns--top a:hover { background: rgba(255,255,255,.26); }
.sns--top a svg { fill: #fff; }
.sns--footer { margin-top: 18px; }
.sns--footer a { background: rgba(255,255,255,.08); width: 38px; height: 38px; }
.sns--footer a:hover { background: rgba(255,255,255,.18); }
.sns--footer a svg { width: 20px; height: 20px; fill: rgba(255,255,255,.85); }
/* 브랜드 컬러 호버 (선택적 강조) */
.sns a[data-sns="kakao"]:hover { background: #fae100; }
.sns a[data-sns="kakao"]:hover svg { fill: #391b1b; }
.sns a[data-sns="youtube"]:hover { background: #ff0000; }
.sns a[data-sns="youtube"]:hover svg { fill: #fff; }
.sns a[data-sns="instagram"]:hover { background: #d6249f; }
.sns a[data-sns="instagram"]:hover svg { fill: #fff; }
.sns a[data-sns="facebook"]:hover { background: #1877f2; }
.sns a[data-sns="facebook"]:hover svg { fill: #fff; }
.sns a[data-sns="blog"]:hover { background: #03c75a; }
.sns a[data-sns="blog"]:hover svg { fill: #fff; }

@media (max-width: 720px){
  .topbar-hide-sm { display: none; }
  .topbar-inner { min-height: 0; padding-top: 6px; padding-bottom: 6px; }
  .topbar-left, .topbar-right { gap: 10px; }
  .topbar-login { padding: 5px 10px; font-size: .8rem; }
}
@media (max-width: 480px){
  .sns--top { display: none; } /* 좁은 화면에선 상단 SNS 숨김(푸터·플로팅에서 제공) */
}

/* ----------------------------- 헤더/네비 -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
}
.brand .mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--ink-faint); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.nav-links a.nav-cta {
  background: var(--brand);
  color: #fff;
  margin-left: 6px;
}
.nav-links a.nav-cta:hover { background: var(--brand-deep); }
.nav-links a.nav-cta--soft {
  background: var(--gold-soft);
  color: var(--brand-deep);
  margin-left: 6px;
}
.nav-links a.nav-cta--soft:hover { background: #ecdcae; }
/* 모바일 메뉴 안에서만 보이는 로그인 링크 */
.nav-login-mobile { display: none; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.nav-cta,
  .nav-links a.nav-cta--soft { margin-left: 0; text-align: center; }
  .nav-login-mobile { display: block; color: var(--ink-soft); font-weight: 700; }
}

/* ----------------------------- HERO ------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 80% -10%, var(--gold-soft), transparent 60%),
    radial-gradient(900px 480px at 0% 10%, var(--brand-soft), transparent 55%),
    var(--bg);
  padding: 78px 0 92px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: .85rem;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
/* Hero 대표 슬로건(캐치프레이즈) */
.hero-slogan {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.hero-slogan .slogan-main {
  display: block;
  font-size: clamp(1.5rem, 4.2vw, 2.5rem);
  color: var(--brand-deep);
}
.hero-slogan .slogan-main .accent-gold { color: var(--gold); }
.hero-slogan .slogan-tail {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  color: var(--ink);
}
.hero-slogan-sub {
  margin: 0 0 6px;
  font-size: clamp(.96rem, 1.8vw, 1.08rem);
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero-slogan-sub strong { color: var(--brand); font-weight: 800; }
.hero-slogan-sub .slogan-verse {
  display: inline-block;
  font-size: .9em;
  color: var(--ink-faint);
}
.hero-slogan + h1 { margin-top: 6px; }

.hero h1 {
  font-size: clamp(2.05rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--brand); }
.hero h1 .accent-gold { color: var(--gold); }
.hero-sub {
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-faint); }
.pwa-hint {
  margin-top: 14px;
  display: inline-block;
  font-size: .85rem;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px dashed rgba(13,110,110,.3);
  padding: 8px 14px;
  border-radius: 12px;
}
.pwa-hint b { font-weight: 800; }

/* ----------------------------- 신뢰 배지 스트립 ------------------------- */
.trust-strip {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px 22px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
}
.trust-item + .trust-item { border-left: 1px solid var(--line-soft); padding-left: 14px; }
.trust-ico {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: var(--brand-soft);
  border-radius: 12px;
}
.trust-item b { display: block; font-weight: 800; color: var(--ink); font-size: .98rem; }
.trust-item small { display: block; color: var(--ink-soft); font-size: .82rem; }
@media (max-width: 860px){
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .trust-item + .trust-item { border-left: none; padding-left: 0; }
}
@media (max-width: 420px){ .trust-grid { grid-template-columns: 1fr; } }

/* Hero 비주얼: 인라인 SVG 카드(미리보기 미니 목업) */
.hero-visual {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.hero-visual .window-bar {
  display: flex; gap: 6px; padding: 4px 6px 12px;
}
.hero-visual .window-bar i {
  width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block;
}
.hero-visual .window-bar i:nth-child(1){ background:#ef6b5b; }
.hero-visual .window-bar i:nth-child(2){ background:#f3c34e; }
.hero-visual .window-bar i:nth-child(3){ background:#5dc08a; }
.hero-mini {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.hero-stat-float {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
}
.hero-stat-float .num { font-size: 1.5rem; font-weight: 900; color: var(--brand); }
.hero-stat-float .lbl { font-size: .78rem; color: var(--ink-soft); }
.hero-stat-float.f1 { left: -18px; bottom: 36px; }
.hero-stat-float.f2 { right: -14px; top: 28px; }
.hero-stat-float.f2 .num { color: var(--gold); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 460px; }
  .hero-stat-float.f1 { left: 8px; }
  .hero-stat-float.f2 { right: 8px; }
}

/* ----------------------------- 통계 스트립 ------------------------------ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-value {
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  font-weight: 900;
  color: var(--brand-deep);
  line-height: 1.15;
}
.stat-card .stat-label { margin-top: 8px; font-weight: 700; color: var(--ink); }
.stat-card .stat-source { margin-top: 12px; font-size: .78rem; color: var(--ink-faint); }
@media (max-width: 820px){ .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .stat-grid { grid-template-columns: 1fr; } }

/* ----------------------------- 현실 카드 -------------------------------- */
.reality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.reality-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
}
.reality-card h3 { font-size: 1.14rem; font-weight: 800; margin-bottom: 10px; }
.reality-card p { color: var(--ink-soft); font-size: .97rem; }
.reality-card .src {
  margin-top: 14px;
  font-size: .76rem;
  color: var(--ink-faint);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.reality-card .src::before { content: "출처 · "; font-weight: 700; }
@media (max-width: 760px){ .reality-grid { grid-template-columns: 1fr; } }

/* ----------------------------- 방향 카드 -------------------------------- */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dir-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dir-card .dir-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: var(--brand-soft);
  border-radius: 14px;
  margin-bottom: 16px;
}
.dir-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.dir-card p { color: var(--ink-soft); font-size: .95rem; }
.dir-card--brand {
  background: linear-gradient(160deg, var(--brand), var(--brand-deep));
  border-color: transparent;
  color: #fff;
}
.dir-card--brand h3 { color: #fff; }
.dir-card--brand p { color: rgba(255,255,255,.86); }
.dir-card--brand .dir-ico { background: rgba(255,255,255,.16); }
@media (max-width: 880px){ .dir-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .dir-grid { grid-template-columns: 1fr; } }

/* ----------------------------- 왜 디지털 -------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.why-card {
  display: flex;
  gap: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 24px;
}
.why-card .why-num {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-weight: 900;
  background: rgba(255,255,255,.16);
  border-radius: 12px;
  color: #fff;
}
.why-card h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 6px; }
.why-card p { color: rgba(255,255,255,.82); font-size: .95rem; }
@media (max-width: 760px){ .why-grid { grid-template-columns: 1fr; } }

/* ----------------------------- 템플릿 갤러리 ---------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tpl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tpl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tpl-card.is-recommended {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-md);
}
.tpl-thumb {
  height: 116px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.tpl-thumb .tpl-no {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 2.1rem;
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.tpl-disciple {
  position: absolute;
  top: 12px; right: 14px;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.22);
  padding: 4px 10px;
  border-radius: 999px;
}
.tpl-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.tpl-name { font-size: 1.18rem; font-weight: 800; }
.tpl-type { margin-top: 4px; font-size: .9rem; color: var(--ink-soft); }
.tpl-chips { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.chip {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.tpl-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.tpl-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--brand-deep);
  font-size: .95rem;
}
.tpl-link:hover { color: var(--brand); }
.rec-flag {
  display: none;
  font-size: .78rem; font-weight: 800; color: #fff;
  background: var(--brand); padding: 4px 10px; border-radius: 999px;
}
.tpl-card.is-recommended .rec-flag { display: inline-block; }
@media (max-width: 900px){ .gallery-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .gallery-grid { grid-template-columns: 1fr; } }

/* ----------------------------- 스타일 찾기(퀴즈) ----------------------- */
.finder {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 44px);
}
.finder-progress {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--ink-faint); font-weight: 700;
  margin-bottom: 18px;
}
.finder-progress .bar { flex: 1; height: 8px; background: var(--bg-warm); border-radius: 999px; overflow: hidden; }
.finder-progress .bar > span { display: block; height: 100%; width: 25%; background: var(--brand); border-radius: 999px; transition: width .3s ease; }

.finder-step { display: none; }
.finder-step.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.finder-q { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.finder-q small { display: block; font-size: .92rem; font-weight: 500; color: var(--ink-soft); margin-top: 4px; }
.finder-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.opt-btn {
  display: flex; align-items: center; gap: 12px;
  text-align: left;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.opt-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.opt-btn:active { transform: scale(.99); }
.opt-btn .opt-emo { font-size: 1.4rem; }
.opt-btn.selected { border-color: var(--brand); background: var(--brand-soft); }
@media (max-width: 560px){ .finder-options { grid-template-columns: 1fr; } }

.finder-nav { display: flex; justify-content: space-between; margin-top: 26px; }
.finder-back {
  background: transparent; border: none; color: var(--ink-soft); font-weight: 700;
  padding: 10px 6px; border-radius: 8px;
}
.finder-back:hover { color: var(--ink); }
.finder-back[hidden] { visibility: hidden; }

/* 결과 */
.finder-result { display: none; }
.finder-result.active { display: block; animation: fadeUp .4s ease; }
.result-head { text-align: center; margin-bottom: 26px; }
.result-head .kicker { color: var(--brand); font-weight: 800; }
.result-head h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; margin-top: 6px; }
.result-head p { color: var(--ink-soft); margin-top: 8px; }
.result-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 640px; margin: 0 auto; }
.result-cards .rank { position: relative; }
.result-cards .rank .rank-badge {
  position: absolute; top: -10px; left: 14px; z-index: 2;
  font-size: .76rem; font-weight: 800; color: #fff;
  padding: 4px 12px; border-radius: 999px;
}
.result-cards .rank:nth-child(1) .rank-badge { background: var(--brand); }
.result-cards .rank:nth-child(2) .rank-badge { background: var(--gold); color: #2a2310; }
.result-cards .rank:nth-child(3) .rank-badge { background: var(--ink-soft); }
.result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.result-reason {
  margin-top: 10px;
  font-size: .86rem;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 10px;
}
.result-reason b { color: var(--brand-deep); }
.noscript-note { text-align: center; color: var(--ink-soft); }
@media (max-width: 760px){ .result-cards { grid-template-columns: 1fr; } }

/* ----------------------------- 사역자에게/성도에게 --------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.audience-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 28px;
  box-shadow: var(--shadow-sm);
}
.audience-card--pastor { background: var(--brand-soft); border-color: rgba(13,110,110,.2); }
.audience-card--member { background: var(--gold-soft); border-color: rgba(194,161,77,.3); }
.aud-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.aud-ico {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.aud-head h3 { font-size: 1.3rem; font-weight: 800; }
.aud-list { display: grid; gap: 12px; }
.aud-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.6;
}
.aud-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  font-weight: 900; color: var(--brand);
}
.audience-card--member .aud-list li::before { color: var(--warn); }
.aud-list li b { color: var(--brand-deep); }
.audience-card--member .aud-list li b { color: #8a6418; }
.aud-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.aud-note {
  margin-top: 22px;
  font-size: .92rem; font-weight: 700;
  color: #6f5310;
  background: rgba(255,255,255,.6);
  border-radius: 12px;
  padding: 12px 14px;
}
@media (max-width: 820px){ .audience-grid { grid-template-columns: 1fr; } }

/* ----------------------------- 분양 절차 -------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  box-shadow: var(--shadow-sm);
}
.step .step-no {
  counter-increment: step;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.2rem;
  color: #fff; background: var(--brand);
  border-radius: 14px; margin-bottom: 16px;
}
.step .step-no::before { content: counter(step); }
.step h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .94rem; }
.step .step-arrow {
  position: absolute; right: -13px; top: 44px;
  color: var(--line); font-size: 1.4rem; font-weight: 900;
  z-index: 2;
}
.step:last-child .step-arrow { display: none; }
.step .domain-pill {
  display: inline-block; margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem; font-weight: 700;
  color: var(--brand-deep); background: var(--brand-soft);
  padding: 4px 10px; border-radius: 8px;
}
@media (max-width: 880px){ .steps { grid-template-columns: repeat(2,1fr); } .step .step-arrow { display: none; } }
@media (max-width: 480px){ .steps { grid-template-columns: 1fr; } }

/* 신청 폼 */
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.apply-info {
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.apply-info h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.apply-info ul li {
  display: flex; gap: 10px; padding: 8px 0;
  color: var(--ink); font-size: .97rem;
  border-bottom: 1px dashed rgba(13,110,110,.18);
}
.apply-info ul li:last-child { border-bottom: none; }
.apply-info ul li b { color: var(--brand-deep); }
.apply-info .quick-contact {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid rgba(13,110,110,.25);
}
.quick-contact-title { font-weight: 800; color: var(--brand-deep); margin-bottom: 12px; }
.quick-contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-contact-btns .btn { padding: 11px 18px; font-size: .94rem; }
.apply-info .contact-line {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid rgba(13,110,110,.25);
  font-size: .95rem;
}
.apply-info .contact-line a { color: var(--brand-deep); font-weight: 800; }
.form-note--tight { margin: 8px 0 0; }

.apply-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.apply-form h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.apply-form .form-note { font-size: .88rem; color: var(--ink-faint); margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
}
.field textarea { resize: vertical; min-height: 90px; }
.form-msg {
  display: none;
  margin-top: 12px; padding: 12px 14px;
  background: var(--brand-soft); color: var(--brand-deep);
  border-radius: 12px; font-size: .92rem; font-weight: 600;
}
.form-msg.show { display: block; }
@media (max-width: 820px){ .apply-grid { grid-template-columns: 1fr; } }

/* ----------------------------- 가격 안내 (pricing) --------------------- */
/* 스크린리더 전용 텍스트 */
.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;
}

/* 십일조 환원 강조 박스 */
.tithe-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto 44px;
  background: linear-gradient(160deg, var(--brand), var(--brand-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
}
.tithe-banner .tithe-ico {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.9rem;
  background: rgba(255,255,255,.16);
  border-radius: 16px;
}
.tithe-banner .tithe-copy h3 {
  font-size: 1.22rem; font-weight: 900; color: #fff; margin-bottom: 6px;
}
.tithe-banner .tithe-copy p { color: rgba(255,255,255,.9); font-size: .97rem; }
.tithe-banner .tithe-copy b { color: #fff; font-weight: 800; }
@media (max-width: 560px){
  .tithe-banner { flex-direction: column; text-align: center; gap: 14px; padding: 24px 20px; }
}

/* 3단 요금제 카드 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card--featured {
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow-lg);
}
.price-ribbon {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-size: .82rem; font-weight: 800; color: #fff;
  background: var(--brand);
  padding: 6px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.price-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.price-emo {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: var(--brand-soft);
  border-radius: 14px;
  flex: 0 0 auto;
}
.price-name { font-size: 1.35rem; font-weight: 900; }
.price-tag {
  margin-left: auto;
  font-size: .76rem; font-weight: 800;
  color: var(--ink-soft);
  background: var(--bg-warm);
  padding: 4px 11px; border-radius: 999px;
}
.price-tag--brand { color: #fff; background: var(--brand); }
.price-target {
  font-size: .96rem; font-weight: 700; color: var(--ink);
  min-height: 3em;
}
.price-target small { display: inline; font-weight: 500; color: var(--ink-soft); font-size: .86em; }
.price-amount {
  display: flex; align-items: baseline; gap: 4px;
  margin: 16px 0 4px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--brand-deep);
}
.price-amount .price-currency { font-size: 1rem; font-weight: 800; color: var(--ink-soft); }
.price-amount .price-num { font-size: 2.2rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.price-amount .price-unit { font-size: 1.1rem; font-weight: 800; }
.price-period { font-size: .86rem; color: var(--ink-faint); margin-bottom: 18px; }
.price-list { display: grid; gap: 10px; margin-bottom: 18px; }
.price-list li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem; color: var(--ink);
}
.price-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  font-weight: 900; color: var(--brand);
}
.price-tithe {
  margin-bottom: 18px;
  font-size: .9rem;
  color: #6f5310;
  background: var(--gold-soft);
  border: 1px solid rgba(194,161,77,.35);
  border-radius: 12px;
  padding: 12px 14px;
  line-height: 1.55;
}
.price-tithe b { color: #8a6418; font-weight: 800; }
.price-tithe--brand {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-color: rgba(13,110,110,.25);
}
.price-tithe--brand b { color: var(--brand-deep); }
.price-card .btn { margin-top: auto; }
@media (max-width: 900px){ .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* 경쟁 비교 표 */
.compare-wrap { max-width: 880px; margin: 48px auto 0; }
.compare-title {
  text-align: center;
  font-size: 1.2rem; font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
}
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: .92rem;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.compare-table thead th {
  background: var(--bg-warm);
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.compare-table tbody th[scope="row"] {
  font-weight: 700;
  color: var(--ink-soft);
  width: 30%;
}
.compare-table td { color: var(--ink); }
.compare-table small { color: var(--ink-faint); font-size: .82em; }
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .compare-ours {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
}
.compare-table thead th.compare-ours { background: var(--brand); color: #fff; }
.compare-table .compare-ours small { color: var(--brand-deep); }
.compare-note {
  margin-top: 12px;
  text-align: center;
  font-size: .8rem;
  color: var(--ink-faint);
}

/* ----------------------------- FAQ ------------------------------------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem; font-weight: 400; color: var(--brand);
  transition: transform .2s ease;
  flex: 0 0 auto;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--brand-deep); }
.faq-item p {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: .96rem;
}

/* ----------------------------- 푸터 ------------------------------------- */
.site-footer {
  background: #14201f;
  color: rgba(255,255,255,.78);
  padding: 60px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 36px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,.55); }
.footer-mission {
  margin-top: 16px; font-size: .95rem; color: rgba(255,255,255,.7); max-width: 42ch;
}
.footer-col h4 { font-size: .95rem; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; color: rgba(255,255,255,.7); font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-share {
  display: block;
  margin-top: 8px;
  padding: 5px 0;
  background: none; border: none;
  color: rgba(255,255,255,.7);
  font-size: .93rem; font-weight: 600;
  text-align: left;
}
.footer-share:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer-verse { font-family: var(--serif); font-style: italic; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* 공통 모션 */
@media (prefers-reduced-motion: no-preference){
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================================
   플로팅 카카오톡 상담 버튼 (PC·모바일 공통, 우측 하단)
============================================================================ */
.fab-kakao {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fae100;
  color: #391b1b;
  font-weight: 800;
  font-size: .95rem;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fab-kakao:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.fab-kakao-ico {
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
}
.fab-kakao-ico svg { width: 22px; height: 22px; fill: #391b1b; }

/* ============================================================================
   모바일 하단 고정 바 (데스크톱 숨김)
============================================================================ */
.mobile-bar { display: none; }
@media (max-width: 760px){
  .mobile-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 210;
    background: rgba(255,255,255,.97);
    backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(29,37,48,.1);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mb-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    padding: 9px 4px;
    color: var(--ink-soft);
    font-weight: 700;
  }
  .mb-item:hover, .mb-item:focus-visible { color: var(--brand-deep); }
  .mb-ico { font-size: 1.25rem; line-height: 1; }
  .mb-lbl { font-size: .72rem; }
  .mb-item--cta { color: var(--brand); }
  .mb-item--cta .mb-lbl { font-weight: 800; }

  /* 하단 바가 콘텐츠를 가리지 않도록 본문 여백 + 플로팅 버튼 위치 조정 */
  body { padding-bottom: 64px; }
  .fab-kakao {
    bottom: calc(70px + env(safe-area-inset-bottom, 0));
    right: 14px;
    padding: 12px 14px;
  }
}
@media (max-width: 380px){
  .mb-lbl { font-size: .68rem; }
}
