/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #dcfce7;
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-muted: #9ca3af;
  --bg: #ffffff;
  --bg-gray: #f6f8f7;
  --line: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --header-h: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* display 를 지정한 요소에도 hidden 속성이 먹도록 */
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 800px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--primary-dark); }
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn--lg { padding: 15px 28px; font-size: 17px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover { transform: none; background: var(--primary); }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.logo__img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.logo__text em { font-style: normal; color: var(--primary); }
.br-mobile { display: none; }

.nav { display: flex; gap: 28px; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav__link:hover { color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: 8px; }

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-h) + 70px) 0 90px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(22, 163, 74, 0.09), transparent),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(22, 163, 74, 0.06), transparent),
    var(--bg);
  overflow: hidden;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 980px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  60% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}

.hero__title {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero__title strong { color: var(--primary); }
.hero__desc { font-size: 17px; color: var(--ink-soft); margin-bottom: 28px; }

.hero__cta { margin-bottom: 18px; box-shadow: 0 8px 22px rgba(22, 163, 74, 0.32); }
.hero__note { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 26px; }

.hero__trust { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero__trust li { font-size: 14px; color: var(--ink-soft); font-weight: 500; }

/* ===== Stats ===== */
.stats { background: var(--ink); color: #fff; padding: 44px 0; }
.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num, .stat__suffix { font-size: 34px; font-weight: 800; color: #4ade80; }
.stat__label { font-size: 14px; color: #d1d5db; margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--gray { background: var(--bg-gray); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}
.section__desc { font-size: 16px; color: var(--ink-soft); }

/* ===== Features ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--primary-light);
  border-radius: 14px;
  margin-bottom: 18px;
}
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ===== Steps ===== */
.steps { display: flex; align-items: stretch; gap: 16px; }
.step {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
}
.step__num {
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50%;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }
.step__arrow { align-self: center; font-size: 22px; color: var(--ink-muted); flex-shrink: 0; }

/* ===== 비교표 ===== */
.compare { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare__scroll { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 460px; }
.compare th, .compare td {
  padding: 16px 18px;
  font-size: 15px;
  text-align: center;
  border-bottom: 1px solid #f1f3f5;
  white-space: nowrap;
}
.compare thead th { background: #fafbfc; font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.compare thead th.is-primary { background: var(--primary-light); color: var(--primary-dark); }
.compare tbody th { text-align: left; font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.compare td.is-primary { background: rgba(22, 163, 74, 0.045); font-weight: 700; color: var(--primary-dark); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare__note { margin-top: 12px; font-size: 13px; color: var(--ink-muted); text-align: center; }

/* ===== 후기 ===== */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.review__stars { color: #f59e0b; font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.review p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.review__by { font-size: 13.5px; font-weight: 700; color: var(--ink-muted); }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq__item summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--primary); }
.faq__item p { padding: 0 22px 20px; font-size: 15px; color: var(--ink-soft); }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-banner p { font-size: 17px; opacity: 0.92; margin-bottom: 30px; }
.cta-banner p strong { color: #fef08a; }

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 52px 0 96px;
  font-size: 13.5px;
}
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; }
.footer__logo { display: flex; align-items: center; gap: 10px; }
.footer__logo .logo__img { width: 32px; height: 32px; }
.footer__brand .logo__text { font-size: 18px; font-weight: 800; color: #fff; }
.footer__brand .logo__text em { color: #4ade80; }
.footer__brand p { margin-top: 8px; }
.footer__info { grid-column: 1; }
.footer__info p { margin-bottom: 4px; }
.footer__copy { margin-top: 14px; color: #64748b; }
.footer__links {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer__links a:hover { color: #fff; }

/* ===== 신청 퍼널 ===== */
.funnel {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.funnel.is-open { display: flex; }
.funnel__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(3px); }
.funnel__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  max-height: min(760px, 92vh);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: funnelIn 0.25s ease;
}
@keyframes funnelIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.funnel__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  flex-shrink: 0;
}
.funnel__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.funnel__back, .funnel__close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: none;
  border: none;
  color: var(--ink);
}
.funnel__back { left: 8px; }
.funnel__close { right: 8px; }
.funnel__back svg, .funnel__close svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.funnel__back:hover, .funnel__close:hover { color: var(--ink-muted); }

.funnel__progress { height: 3px; background: var(--line); flex-shrink: 0; }
.funnel__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}

.funnel__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.fstep { display: none; padding: 28px 24px 32px; }
.fstep.is-active { display: block; }
.fstep__q {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.fstep__q em { font-style: normal; color: #f97316; }
.fstep__hint { margin: -14px 0 22px; font-size: 14px; color: var(--ink-muted); }

/* 선택형 옵션 */
.options { display: flex; flex-direction: column; gap: 12px; }
.option {
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.option:hover { border-color: var(--primary); color: var(--primary-dark); }
.option.is-selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }

/* 인트로 */
.fintro { padding: 0 0 32px; }
.fintro__visual { display: block; width: 100%; height: auto; background: #eef2f7; }
.fintro__inner { padding: 26px 24px 0; }
.fintro__title { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.fintro__desc { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 22px; }
.fintro__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.fintro__list li { display: flex; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.fintro__list li::before { content: "✓"; color: var(--primary); font-weight: 800; }

/* 연락처 입력 */
.ffield { margin-bottom: 22px; }
.ffield__label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.ffield__row { display: flex; align-items: flex-end; gap: 10px; }
.ffield > .ffield__input { width: 100%; }
.ffield__input {
  flex: 1;
  min-width: 0;
  padding: 10px 2px;
  font-size: 17px;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.2s;
}
.ffield__input::placeholder { color: #c9ced6; }
.ffield__input:focus { outline: none; border-bottom-color: var(--primary); }
.ffield__input:disabled { color: var(--ink-muted); }
.ffield__btn {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.ffield__btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); }
.ffield__btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ffield__timer {
  flex-shrink: 0;
  min-width: 50px;
  padding-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
  text-align: center;
}

.fmsg { margin: -10px 0 18px; font-size: 13.5px; line-height: 1.5; color: #dc2626; }
.fmsg.is-success { color: var(--primary-dark); }

.fconsent { display: flex; gap: 9px; margin: 4px 0 20px; font-size: 13.5px; color: var(--ink-soft); }
.fconsent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.fconsent a { color: var(--ink-soft); text-decoration: underline; }
.fconsent a:hover { color: var(--primary-dark); }

/* 완료 */
.fdone { text-align: center; padding: 40px 24px 44px; }
.fdone__icon {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--primary-light);
  border-radius: 50%;
}
.fdone__title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.fdone__desc { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 26px; }

/* ===== 하단 고정 CTA (모바일) ===== */
.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 140;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.stickybar .btn { width: 100%; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Floating Kakao Channel Chat ===== */
.kakao-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #fee500;
  color: #191919;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kakao-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22); }
.kakao-float__icon { width: 24px; height: 24px; flex-shrink: 0; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .features__grid, .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; }
  .step__arrow { transform: rotate(90deg); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .header .logo__text { display: none; }
  .br-mobile { display: inline; }

  .section { padding: 68px 0; }
  .hero { padding: calc(var(--header-h) + 48px) 0 64px; }
  .stats__inner { gap: 16px; }
  .stat__num, .stat__suffix { font-size: 24px; }
  .features__grid, .reviews__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; }

  /* 하단 고정 CTA 를 노출하고 카카오 버튼을 그 위로 올린다. */
  .stickybar { display: block; }
  .kakao-float { right: 14px; bottom: 76px; padding: 12px; }
  .kakao-float__label { display: none; }
  .kakao-float__icon { width: 28px; height: 28px; }

  /* 퍼널은 전체 화면으로 */
  .funnel { padding: 0; }
  .funnel__card { max-width: none; height: 100%; max-height: none; border-radius: 0; }
  .fstep__q { font-size: 19px; }
  .option { font-size: 15px; padding: 15px 16px; }
}
