/* ── 브랜드 비교 페이지 전용 스타일 ── */

/* 페이지 히어로 */
.page-hero {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 56px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--gray500);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--gray700); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb i { font-size: 10px; }
.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 16px;
  color: var(--gray700);
  margin-bottom: 20px;
}
.page-hero-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page-hero-chips span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray700);
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
}
.page-hero-chips i { color: var(--orange); }

/* 필터 바 */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 20px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray700);
  background: #fff;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }

/* 브랜드 카드 그리드 */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.brand-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.brand-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.bc-head {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bc-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  font-weight: 900;
}
.bc-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.bc-score-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.bc-score-label { font-size: 11px; color: var(--gray500); }
.bc-body { padding: 20px 24px; }
.bc-name { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.bc-tier {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.tier-premium { background: #1a1a2e; color: #fff; }
.tier-mid { background: var(--orange-bg); color: var(--orange); }
.tier-entry { background: var(--gray100); color: var(--gray700); }

.bc-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.bc-spec-row:last-child { border-bottom: none; }
.bc-spec-key { color: var(--gray700); }
.bc-spec-val { font-weight: 600; color: var(--dark); }
.bc-price { font-weight: 700; color: var(--orange); }

/* 전체 비교 테이블 */
.full-compare { min-width: 900px; }


/* ════════════════════════════════════════
   심층 분석표 (Deep Analysis Table)
════════════════════════════════════════ */

/* 섹션 헤더 배지 */
.deep-analysis-wrap {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(47,109,224,.08);
  border: 1.5px solid #e2e8f0;
}

/* 타이틀 배너 */
.da-title-bar {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2F6DE0 100%);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.da-title-bar h2 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 0;
}
.da-title-bar h2 em { color: #fbbf24; font-style: normal; }
.da-title-bar p {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin: 6px 0 0;
}
.da-title-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 12px 18px;
  flex-shrink: 0;
}
.da-title-logo i { color: #fbbf24; font-size: 22px; }
.da-title-logo span { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.4; }
.da-title-logo small { font-size: 10px; color: rgba(255,255,255,.65); display: block; }

/* 테이블 스크롤 컨테이너 */
.da-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.da-table-scroll::-webkit-scrollbar { height: 6px; }
.da-table-scroll::-webkit-scrollbar-track { background: #f1f5f9; }
.da-table-scroll::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }

/* 심층 분석 테이블 */
.da-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-family: 'Noto Sans KR', sans-serif;
}

/* 헤더 행 */
.da-table thead tr {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}
.da-table th {
  padding: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  vertical-align: middle;
  border-right: 1px solid #f1f5f9;
}
.da-table th:last-child { border-right: none; }

/* 항목 헤더 셀 */
.th-item {
  width: 130px;
  min-width: 130px;
  background: #f0f4ff;
  padding: 16px 14px;
  text-align: left !important;
  font-size: 12px;
  font-weight: 800;
  color: #1e3a8a;
  border-right: 2px solid #dde8ff !important;
  position: sticky;
  left: 0;
  z-index: 2;
}

/* 브랜드 헤더 셀 */
.th-brand {
  padding: 16px 10px;
  min-width: 130px;
}
.th-brand-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.th-brand-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  padding: 4px;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.th-brand-name {
  font-size: 12px;
  font-weight: 800;
  color: #111;
  white-space: nowrap;
}
.th-brand-pos {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* 데이터 셀 공통 */
.da-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background .15s;
}
.da-table tbody tr:hover { background: #f8fafc; }
.da-table td {
  padding: 11px 10px;
  text-align: center;
  font-size: 13px;
  color: #334155;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
  line-height: 1.4;
}
.da-table td:last-child { border-right: none; }

/* 항목명 셀 */
.td-item {
  text-align: left !important;
  padding: 11px 14px !important;
  background: #f8faff;
  border-right: 2px solid #dde8ff !important;
  position: sticky;
  left: 0;
  z-index: 1;
  white-space: nowrap;
}
.td-item-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.td-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #2F6DE0;
  flex-shrink: 0;
}
.td-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}

/* 별점 */
.star-wrap { display: flex; align-items: center; justify-content: center; gap: 1px; flex-direction: column; }
.stars { display: flex; gap: 1px; }
.star-full  { color: #fbbf24; font-size: 12px; }
.star-empty { color: #e2e8f0; font-size: 12px; }
.star-note  { font-size: 10px; color: #64748b; margin-top: 2px; }

/* 텍스트 레벨 */
.level-high   { color: #dc2626; font-weight: 700; }
.level-mid    { color: #f59e0b; font-weight: 700; }
.level-low    { color: #22c55e; font-weight: 700; }

/* 특징 요약 행 */
.da-table tr.tr-summary td {
  background: #f0f7ff;
  font-size: 11px;
  color: #475569;
  padding: 10px 10px;
  line-height: 1.5;
}
.da-table tr.tr-summary .td-item { background: #e0ecff; }

/* 구분선 행 */
.da-table tr.tr-divider td {
  background: #f0f4ff;
  padding: 0;
  height: 4px;
}
.da-table tr.tr-divider .td-item { background: #dde8ff; }

/* ── 창업 목적별 추천 ── */
.startup-recommend {
  padding: 24px 20px;
  background: #0f172a;
  border-top: 2px solid #1e3a8a;
}
.startup-recommend-title {
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}
.startup-recommend-title span { color: #fbbf24; }
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.rec-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
}
.rec-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-2px);
}
.rec-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 10px;
}
.rec-purpose {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  margin-bottom: 4px;
  line-height: 1.4;
}
.rec-brand-name {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.rec-btn {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  transition: all .15s;
}
.rec-btn:hover { background: rgba(255,255,255,.15); }

/* 브랜드 로고 이미지 공통 스타일 */
.th-brand-logo-wrap img,
.home-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 추천 카드 로고 */
.rec-logo-wrap {
  width: 72px;
  height: 44px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.rec-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 브랜드 카드 로고 이미지 */
.bc-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
.bc-logo.has-img {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px;
}

/* 주석 */
.da-note {
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

/* 탭 네비게이션 */
.compare-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 36px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-tab-nav::-webkit-scrollbar { display: none; }
.ctab {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ctab:hover { color: #2F6DE0; }
.ctab.active { color: #2F6DE0; border-bottom-color: #2F6DE0; }
.ctab i { font-size: 13px; }


/* ── 반응형 ── */
@media (max-width: 900px) {
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .recommend-grid { grid-template-columns: repeat(3, 1fr); }
  .da-title-bar { padding: 24px 20px; }
  .da-table { min-width: 820px; }
  .th-item, .td-item { width: 110px; min-width: 110px; }
}
@media (max-width: 600px) {
  .brand-grid { grid-template-columns: 1fr; }
  .recommend-grid { grid-template-columns: repeat(2, 1fr); }
  .da-table { min-width: 700px; }
  .th-item, .td-item { width: 90px; min-width: 90px; }
}
