/* ========================================
   GPR Renewal — 무빈소 가족장 · 미니 장례식 (Mini Funeral) Page
   tokens from renew.css (:root)
   ======================================== */

.rn-minifuneral { background: var(--cream-100); }

/* --- 공통 타이포 --- */
.mf-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-600);
  text-transform: uppercase;
}
.mf-heading {
  font-family: 'Noto Serif KR', serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 14px 0 0;
  color: var(--ink-900);
  word-break: keep-all;
  text-wrap: pretty;
}
.mf-lead {
  font-size: 16px;
  color: var(--ink-500);
  line-height: 1.85;
  margin: 16px auto 0;
  max-width: 760px;
  word-break: keep-all;
}
.mf-sec__head {
  text-align: center;
  margin-bottom: 48px;
}

/* ========================================
   01. PRICE BAND — 정찰제 대표 금액
   ======================================== */
.mf-price {
  padding: 88px 0 96px;
  background: var(--surface-deep, var(--green-900));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.mf-price__ornament {
  position: absolute;
  right: -180px;
  top: -180px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,185,120,0.22), transparent 70%);
  pointer-events: none;
}
.mf-price__inner { position: relative; z-index: 2; }
.mf-price__head { text-align: center; margin-bottom: 44px; }
.mf-price__head .mf-eyebrow { color: var(--gold-400); }
.mf-price__head .mf-heading { color: #fff; }
.mf-price__head .mf-lead { color: rgba(255,255,255,0.78); }

.mf-price__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.mf-price__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(220,185,120,0.32);
  border-radius: 18px;
  padding: 34px 36px;
  backdrop-filter: blur(6px);
}
.mf-price__card-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-400);
  margin-bottom: 12px;
}
.mf-price__card-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
}
.mf-price__card-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.mf-price__card-num span {
  font-family: 'Pretendard', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--gold-400);
  margin-left: 6px;
}
.mf-price__card-desc {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  word-break: keep-all;
}

.mf-price__note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.mf-price__chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.01em;
}

/* ========================================
   02. PROMISE — 변하지 않는 약속
   ======================================== */
.mf-promise { padding: 100px 0; }
.mf-promise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mf-promise__card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 12px 28px rgba(31,46,29,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mf-promise__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(31,46,29,0.12);
}
.mf-promise__no {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-600);
  letter-spacing: 0.16em;
}
.mf-promise__title {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--green-800);
  margin: 8px 0 14px;
}
.mf-promise__desc {
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.75;
  margin: 0;
  word-break: keep-all;
}

/* ========================================
   03. PRODUCT — 장례 상품
   ======================================== */
.mf-product {
  padding: 100px 0;
  background: var(--cream-200);
}
.mf-product__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.mf-product__card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px 40px;
  box-shadow: 0 16px 40px rgba(31,46,29,0.08);
  position: relative;
}
.mf-product__card--primary {
  border: 2px solid var(--gold-500);
  /* 카드 배경은 테마 변수(다크 테마에서 흰 배경 → 글씨 안 보임), 하단 골드 워시로만 강조 */
  background: linear-gradient(180deg, rgba(217,184,95,0) 58%, rgba(217,184,95,0.10) 100%), var(--card-bg, #fff);
}
.mf-product__tag {
  position: absolute;
  top: -14px;
  left: 32px;
  padding: 6px 14px;
  background: var(--gold-500);
  /* 배경이 항상 골드 → 다크 테마의 밝은 green-900 대신 고정 딥톤 */
  color: #241f10;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.mf-product__name {
  font-family: 'Noto Serif KR', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 6px;
}
.mf-product__card--primary .mf-product__name { color: var(--green-800); }
.mf-product__sub {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0 0 20px;
  word-break: keep-all;
}
.mf-product__strike {
  font-size: 14px;
  color: var(--ink-300);
  text-decoration: line-through;
}
.mf-product__price {
  font-family: 'Noto Serif KR', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.mf-product__price-note {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0 0 22px;
  word-break: keep-all;
}
.mf-product__list {
  list-style: none;
  padding: 22px 0 0;
  margin: 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 12px;
}
.mf-product__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink-500);
  word-break: keep-all;
}
.mf-product__list li strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-900);
}
.mf-product__list li span { text-align: right; }

/* ========================================
   04. FEE — 구성품 상세 가격표
   ======================================== */
.mf-fee { padding: 100px 0; }
.mf-fee__box {
  background: var(--card-bg, #fff);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 40px;
  box-shadow: 0 16px 40px rgba(31,46,29,0.06);
}
.mf-fee__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.mf-fee__item:last-child { border-bottom: 0; }
.mf-fee__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  word-break: keep-all;
}
.mf-fee__desc {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-500);
  word-break: keep-all;
}
.mf-fee__price {
  font-family: 'Noto Serif KR', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--green-800);
  text-align: right;
  white-space: nowrap;
}
.mf-fee__price del {
  display: block;
  font-family: 'Pretendard', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-300);
  margin-bottom: 3px;
}

/* ========================================
   05. OPTION — 옵션 변경 및 추가
   ======================================== */
.mf-option {
  padding: 100px 0;
  background: var(--green-50);
}
.mf-option__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.mf-option__card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 8px 20px rgba(31,46,29,0.05);
}
.mf-option__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-600);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.mf-option__name {
  font-family: 'Noto Serif KR', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 10px;
  word-break: keep-all;
}
.mf-option__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-700);
}
.mf-option__price--muted { color: var(--ink-500); font-weight: 500; }

/* ========================================
   06. COMPARE — 타사 비교
   ======================================== */
.mf-compare {
  padding: 100px 0;
  background: var(--cream-200);
}
.mf-compare__scroll { overflow-x: auto; }
.mf-compare__table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg, #fff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(31,46,29,0.08);
  font-size: 15px;
  text-align: center;
}
.mf-compare__table th,
.mf-compare__table td {
  padding: 20px 14px;
  border-bottom: 1px solid var(--line);
  word-break: keep-all;
}
.mf-compare__table tbody tr:last-child th,
.mf-compare__table tbody tr:last-child td { border-bottom: 0; }
.mf-compare__table thead th {
  background: var(--surface-deep, var(--green-900));
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 0;
}
.mf-compare__table thead th.is-gpr {
  color: var(--gold-400);
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  font-weight: 700;
}
.mf-compare__table tbody th {
  font-weight: 600;
  color: var(--ink-700);
  background: var(--cream-100);
  text-align: left;
  padding-left: 24px;
}
.mf-compare__table td { color: var(--ink-500); }
.mf-compare__table td.is-gpr {
  background: rgba(239,211,85,0.10);
  color: var(--green-800);
  font-weight: 700;
}

/* ========================================
   07. REVIEW — 실제 이용 후기
   ======================================== */
.mf-review { padding: 100px 0; }
.mf-review__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mf-review__card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 32px;
  box-shadow: 0 12px 28px rgba(31,46,29,0.06);
  display: flex;
  flex-direction: column;
}
.mf-review__stars {
  color: var(--gold-500);
  font-size: 15px;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.mf-review__text {
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.85;
  margin: 0 0 24px;
  word-break: keep-all;
  flex: 1;
}
.mf-review__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.mf-review__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mf-review__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}
.mf-review__date {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 2px;
}

/* ========================================
   08. FAQ — 자주 묻는 질문 + 안내사항
   ======================================== */
.mf-faq {
  padding: 100px 0;
  background: var(--cream-200);
}
.mf-faq__list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.mf-faq__item {
  background: var(--card-bg, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.mf-faq__btn {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 24px 28px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  word-break: keep-all;
}
.mf-faq__btn::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid var(--gold-600);
  border-bottom: 2px solid var(--gold-600);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}
.mf-faq__btn.is-open::after { transform: rotate(-135deg) translate(-2px, -2px); }
.mf-faq__panel {
  display: none;
  padding: 0 28px 26px;
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.85;
  word-break: keep-all;
}
.mf-faq__panel.is-open { display: block; }
.mf-faq__panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.mf-faq__panel li {
  padding-left: 14px;
  position: relative;
}
.mf-faq__panel li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-600);
  font-weight: 700;
}

/* ========================================
   09. CTA
   ======================================== */
.mf-cta {
  padding: 90px 0 110px;
  text-align: center;
}
.mf-cta__title {
  font-family: 'Noto Serif KR', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 14px;
  word-break: keep-all;
}
.mf-cta__sub {
  font-size: 15px;
  color: var(--ink-500);
  margin: 0 0 30px;
  word-break: keep-all;
}
.mf-cta__row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.mf-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--surface-deep, var(--green-900));
  color: #fff;
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(31,46,29,0.2);
  transition: transform 0.2s ease, color 0.2s ease;
}
.mf-cta__phone:hover { transform: translateY(-2px); color: var(--gold-400); }
.mf-cta__phone--ghost {
  background: transparent;
  color: var(--green-800);
  border: 1px solid var(--green-700);
  box-shadow: none;
}
.mf-cta__phone--ghost:hover { color: var(--green-700); }
.mf-cta__phone em {
  font-family: 'Pretendard', sans-serif;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: 0.12em;
}
.mf-cta__phone--ghost em { color: var(--gold-600); }

.mf-cta__biz {
  margin: 44px auto 0;
  max-width: 720px;
  padding: 24px 28px;
  background: var(--cream-200);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.9;
  word-break: keep-all;
}
.mf-cta__biz strong {
  display: block;
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
}

/* ========================================
   10. 모바일 하단 고정 통화 바
   ======================================== */
.mf-callbar { display: none; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .mf-product__grid,
  .mf-review__grid,
  .mf-promise__grid { grid-template-columns: 1fr 1fr; }
  .mf-product__grid > :last-child,
  .mf-review__grid > :last-child,
  .mf-promise__grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .mf-heading { font-size: 28px; }
  .mf-sec__head { margin-bottom: 36px; }
  .mf-price { padding: 64px 0 72px; }
  .mf-price__cards { grid-template-columns: 1fr; gap: 16px; }
  .mf-price__card { padding: 26px 24px; }
  .mf-price__card-num { font-size: 36px; }

  .mf-promise,
  .mf-product,
  .mf-fee,
  .mf-option,
  .mf-compare,
  .mf-review,
  .mf-faq { padding: 64px 0; }

  .mf-promise__grid,
  .mf-product__grid,
  .mf-review__grid,
  .mf-option__grid { grid-template-columns: 1fr; }
  .mf-product__grid > :last-child,
  .mf-review__grid > :last-child,
  .mf-promise__grid > :last-child { grid-column: auto; }

  .mf-promise__card,
  .mf-product__card { padding: 30px 22px; }
  .mf-fee__box { padding: 8px 22px; }
  .mf-fee__item { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .mf-fee__price { text-align: left; }
  .mf-fee__price del { display: inline-block; margin: 0 8px 0 0; }

  .mf-faq__btn { padding: 20px 22px; font-size: 15.5px; }
  .mf-faq__panel { padding: 0 22px 22px; }

  .mf-cta { padding: 64px 0 100px; }
  .mf-cta__title { font-size: 23px; }
  .mf-cta__row { flex-direction: column; }
  .mf-cta__phone { justify-content: center; font-size: 18px; padding: 16px 24px; }

  /* 하단 고정 통화 바 — 모바일에서만 노출. 푸터가 바에 가리지 않도록 body 여백 확보 */
  body.rn-minifuneral { padding-bottom: 76px; }
  .mf-callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 246, 236, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .mf-callbar__btn {
    flex: 1;
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    background: var(--cream-200);
    color: var(--ink-900);
  }
  .mf-callbar__btn small {
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-500);
    letter-spacing: 0.04em;
  }
  .mf-callbar__btn--primary {
    flex: 1.3;
    background: var(--surface-deep, var(--green-900));
    color: #fff;
  }
  .mf-callbar__btn--primary small { color: var(--gold-400); }

  /* GPR AI검색 런처가 하단 고정 바에 가리지 않도록 바 높이(72px)만큼 위로 올린다 */
  body.rn-minifuneral .ragchat {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}
