/* ═══════════════════════════════════════
   COST — cost.css
   창업 비용·절차 — 단일 둥근 카드(좌 그레이 / 우 골드 반반) + 중앙 항목 알약 이음새 걸침
   ⚠️ [확정필요/법무] 비교광고(표시광고법) 리스크 — 코드 주석으로만. 화면 노출 수치는 실제 값.
   · 배경 = 디자인 시스템 .section--tint(연노랑 크림)가 govern. .cost 는 transparent(중첩 배경 버그 교정).
═══════════════════════════════════════ */

/* 배경 = .section--tint(theme-phase2) 연노랑이 govern → .cost 자체는 투명(흰색 강제 제거) */
.cost {
  background: transparent;
}
.cost__head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.cost__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--black);
  word-break: keep-all;
}
.cost__title em {
  font-style: normal;
  color: var(--gold);
}
.cost__sub {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--gray3, #666666);
  word-break: keep-all;
}

/* ═══════════════════════════════════════════════════════════
   ⚠️ [확정필요/법무] 창업 비용 비교표 — 비교광고(표시광고법) 리스크.
   · "일반 타사" 특정 경쟁사 지칭 해석 시 명예훼손·영업방해 소지. 대표님·법무 확인 + 출처 확보 전 노출 금지.
   · 구조 = 단일 둥근 카드. 좌 그레이 그라데이션 / 우 골드 그라데이션 반반 + 중앙 항목 다크 알약 이음새 걸침.
   · 색 = 토큰(--black4/--gold/--gold-dark/--white/--gray3)·color-mix. 직접 hex 없음. 행 등장=scroll-reveal(반복재생).
═══════════════════════════════════════════════════════════ */
.cost-compare {
  max-width: 920px;
  margin: 0 auto;
}

/* ── 단일 카드 — 좌 그레이 / 우 골드 반반. 배경은 카드 레벨에서 좌우 50% 깔아
   행마다 끊기지 않고 세로로 이어지는 패널 느낌(⚠️ 행별 배경 분리 금지). 카드 래퍼만 radius/그림자 ── */
.cost-compare__card {
  position: relative;
  border-radius: 20px;
  overflow: hidden; /* 좌우 패널을 둥근 모서리로 클립 */
  box-shadow: 0 16px 44px color-mix(in srgb, var(--black4, #1a1a1a) 16%, transparent);
  background:
    /* 우(다폰): 밝은 골드 → 골드 (우측 50%) */
    linear-gradient(
        165deg,
        color-mix(in srgb, var(--gold, #f0c000) 42%, var(--white, #ffffff)) 0%,
        var(--gold, #f0c000) 100%
      )
      100% 0 / 50% 100% no-repeat,
    /* 좌(타사): 흰 → 옅은 그레이 (좌측 50%) */
    linear-gradient(
        165deg,
        color-mix(in srgb, var(--black4, #1a1a1a) 4%, var(--white, #ffffff)) 0%,
        color-mix(in srgb, var(--black4, #1a1a1a) 13%, var(--white, #ffffff)) 100%
      )
      0 0 / 50% 100% no-repeat;
}

/* ── 헤더 + 행 = 하나의 공유 3열 그리드(좌값 1fr / 중앙 알약 / 우값 1fr) → 헤더·값·알약 한 컬럼계로 정렬 ── */
.cost-compare__head,
.cost-compare__row {
  display: grid;
  grid-template-columns: 1fr clamp(110px, 20%, 180px) 1fr;
  align-items: center;
}

/* ── 헤더 — 좌 타사(무채색) / 우 다폰(골드 하이라이트 박스) ── */
.cost-compare__head {
  padding: clamp(18px, 2.6vw, 28px) clamp(14px, 2.4vw, 28px) clamp(12px, 1.8vw, 18px);
}
.cost-compare__other-name {
  grid-column: 1;
  text-align: center;
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gray3, #666666);
}
.cost-compare__da-name {
  grid-column: 3; /* 우값 컬럼과 정렬 */
  justify-self: center;
  padding: clamp(6px, 1vw, 10px) clamp(18px, 2.8vw, 30px);
  border-radius: 999px;
  background: var(--gold-dark, #c9a000); /* 골드 하이라이트 박스 */
  color: var(--white, #ffffff);
  font-weight: 900;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
}

/* ── 행 — 좌값(투명) / 중앙 알약 / 우값(투명). 배경은 카드가 담당 → 행은 투명하게 얹힘 ── */
.cost-compare__row:not(:last-child) {
  border-bottom: 1px dashed color-mix(in srgb, var(--black4, #1a1a1a) 22%, transparent); /* 행 사이 점선 */
}
.cost-compare__other,
.cost-compare__da {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: clamp(84px, 12vw, 116px);
  padding: clamp(16px, 2.4vw, 24px) clamp(12px, 2vw, 20px);
  text-align: center;
  word-break: keep-all;
}
.cost-compare__other {
  grid-column: 1;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--gray3, #666666); /* 좌측 값 = 회색 */
}
.cost-compare__da {
  grid-column: 3;
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--black4, #1a1a1a); /* 우측 값 = 진한 텍스트(다폰 강조) */
}
.cost-compare__other small,
.cost-compare__da small {
  margin-top: 2px;
  font-size: 0.58em;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.85;
}
/* 교육비용 다폰 "x" — 크게 */
.cost-compare__da--none {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

/* 중앙 항목 알약(다크) — 공유 그리드의 중앙 컬럼에 위치 → 좌우 패널 이음새(50%)에 걸쳐 떠 있음 */
.cost-compare__label {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  z-index: 2;
  padding: clamp(8px, 1.2vw, 12px) clamp(16px, 2.6vw, 26px);
  border-radius: 999px;
  background: var(--black4, #1a1a1a);
  color: var(--white, #ffffff);
  font-weight: 800;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  white-space: nowrap;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--black4, #1a1a1a) 38%, transparent); /* 떠 있는 느낌 */
}

/* ── 하단 카피(카드 아래 큰 텍스트) + 골드 강조 2곳 ── */
.cost-compare__closer {
  margin: clamp(24px, 3.4vw, 40px) auto 0;
  text-align: center;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 800;
  line-height: 1.5;
  color: var(--black4, #1a1a1a);
  word-break: keep-all;
}
.cost-compare__hl {
  color: var(--gold-dark, #c9a000); /* 골드 강조(흰/크림 배경 가독 골드 토큰) */
  font-weight: 900;
}

/* ── 반응형 — 모바일: 좌우 → 항목 알약 위 + 타사/다폰 세로 스택(카드 통합감 유지) ── */
@media (max-width: 640px) {
  /* 카드 좌우 split 배경 해제(세로 스택이라 무의미) → 중립 톤. 카드 radius/그림자는 유지 = 통합감 */
  .cost-compare__card {
    background: var(--white, #ffffff);
  }
  .cost-compare__head {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
    padding: clamp(18px, 5vw, 24px);
  }
  .cost-compare__other-name,
  .cost-compare__da-name {
    grid-column: auto;
  }
  .cost-compare__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: clamp(16px, 5vw, 22px);
  }
  .cost-compare__label {
    order: -1; /* 항목 알약을 맨 위로 */
    align-self: center;
  }
  /* 세로 스택에선 좌/우 패널 색을 각 셀이 자체 보유(그리드 컬럼 해제) */
  .cost-compare__other,
  .cost-compare__da {
    grid-column: auto;
    width: 100%;
    min-height: 0;
    border-radius: 12px;
  }
  .cost-compare__other {
    background: color-mix(in srgb, var(--black4, #1a1a1a) 6%, var(--white, #ffffff));
  }
  .cost-compare__da {
    background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--gold, #f0c000) 38%, var(--white, #ffffff)) 0%,
      var(--gold, #f0c000) 100%
    );
  }
}
