/* =============================================================
   섹션 수직 패딩 통일
   widocs-section: 96px / merged sections: 120px → 96px 로 맞춤
   audience-split: 56px (내비게이션 성격의 컴팩트 섹션)
   ============================================================= */

/* merged theme 섹션 패딩을 widocs-section 기준 96px 로 통일 */
.problem,
.solution,
.service,
.business,
.process,
.cta {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* 768px 이하 모바일 통일 */
@media (max-width: 768px) {
  section.widocs-section,
  .problem,
  .solution,
  .service,
  .business,
  .process,
  .cta {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* =============================================================
   Hero + Trust Bar Mobile Responsive Fixes
   ============================================================= */

/* ── 900px: 1열 전환 시 히어로 높이·패딩 정리 ── */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 110px 5% 64px;
    align-items: flex-start;
  }

  .hero-grid {
    gap: 48px;
  }

  /* 텍스트 블록 중앙 정렬 */
  .hero > .hero-grid > div:first-child {
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  /* 통계 카드: 2×2 그리드 유지 */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ── 768px: merged CSS 의 수평 패딩 0 덮어쓰기 수정 ── */
@media (max-width: 768px) {
  .hero {
    padding: 100px 5% 56px !important;
  }

  /* Trust bar 간격 축소 */
  .trust-bar {
    gap: 20px;
    padding: 16px 5%;
  }

  .trust-item {
    font-size: 12px;
    gap: 8px;
  }

  .trust-icon {
    width: 24px;
    height: 24px;
  }

  .trust-icon svg {
    width: 12px;
    height: 12px;
  }
}

/* ── 520px: 소형 모바일 세부 조정 ── */
@media (max-width: 520px) {
  .hero {
    padding: 90px 5% 48px !important;
  }

  /* 통계 카드: 520px 이하에서도 2×2 유지 (1열 스택 방지) */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .stat-card {
    padding: 18px 14px;
  }

  .stat-num {
    font-size: 28px;
  }

  .stat-num span {
    font-size: 18px;
  }

  .stat-label {
    font-size: 12px;
  }

  /* 버튼 전체 너비로 세로 정렬 */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* Trust bar: 2열 그리드로 정렬 */
  .trust-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    justify-items: start;
  }

  .trust-item {
    width: 100%;
  }
}


/* =============================================================
   Problem Conclusion — 모바일 여백 조정
   ============================================================= */
@media (max-width: 600px) {
  .problem-conclusion {
    padding: 28px 20px;
  }
}

/* =============================================================
   Business Model — PC 2열 레이아웃 보정
   main.css 의 @media(max-width:1024px) 에서 1열로 바꿔버리는 규칙을
   min-width:769px 에서 강제로 2열로 복원
   ============================================================= */
@media (min-width: 769px) {
  .business-inner {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
  }

  .business-models {
    justify-content: space-between;
  }

  .business-model-item {
    flex: 1;
  }

  /* position 중복 선언 버그 해소 — sticky + relative 공존 문제 */
  .business-highlight {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .business-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* =============================================================
   Hero — stat-card 카드 가시성 강화
   기존 rgba(255,255,255,0.05) 는 네이비 배경에서 거의 안 보임
   ============================================================= */
.stat-card {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* =============================================================
   Problem Section — 텍스트 색상 명시 보강
   reveal 애니메이션이 늦게 트리거될 경우에도
   배경과 텍스트 색이 뒤바뀌는 현상 방지
   ============================================================= */
.problem {
  background: #0d1b33;
  color: #ffffff;
}

.problem .section-header h2,
.problem-stat-num,
.problem-stat h4 {
  color: #ffffff;
}

.problem .section-header p,
.problem-stat p {
  color: rgba(255, 255, 255, 0.72);
}

/* =============================================================
   CTA 섹션 — 버튼 가시성 수정
   배경색(--navy-mid = #0f63d8)과 btn-primary 배경(--teal = #0f63d8)이
   동일해서 버튼이 보이지 않는 문제 수정
   ============================================================= */
.cta-section .btn-primary {
  background: #ffffff;
  color: var(--navy);
}
.cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}
.cta-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
}
.cta-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
}

/* ── Hero 브랜드명 강조 ── */
.hero h1 .hero-brand {
  color: var(--teal-light);
  font-weight: 800;
}

/* ── 400px 이하: 매우 좁은 화면 ── */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 28px;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   Audience Split Section
   ============================================================= */
.audience-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.audience-panel {
  padding: 56px 6%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: filter 0.25s ease;
  cursor: pointer;
}

.audience-panel:hover {
  filter: brightness(1.05);
}

/* 환자 패널 — 밝은 틸 */
.audience-patient {
  background: #e8f7f5;
  padding-left: max(6%, calc((100vw - 1200px) / 2));
}

/* 의사 패널 — 진한 네이비 */
.audience-doctor {
  background: #0a459d;
  padding-right: max(6%, calc((100vw - 1200px) / 2));
}

/* 눈썹 배지 */
.audience-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  width: fit-content;
}

.audience-patient .audience-eyebrow {
  background: #0a459d;
  color: #ffffff;
}

.audience-doctor .audience-eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: #93c5fd;
}

/* 제목 */
.audience-title {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
}

.audience-patient .audience-title {
  color: #082f4a;
}

.audience-doctor .audience-title {
  color: #ffffff;
}

/* 설명 */
.audience-desc {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.audience-patient .audience-desc {
  color: #3d6476;
}

.audience-doctor .audience-desc {
  color: rgba(255, 255, 255, 0.68);
}

/* 항목 목록 */
.audience-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.audience-list li {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audience-list li::before {
  content: '✓';
  font-size: 12px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audience-patient .audience-list li {
  color: #0d3d52;
}

.audience-patient .audience-list li::before {
  background: #0a459d;
  color: #ffffff;
}

.audience-doctor .audience-list li {
  color: rgba(255, 255, 255, 0.88);
}

.audience-doctor .audience-list li::before {
  background: rgba(255, 255, 255, 0.15);
  color: #93c5fd;
}

/* 하단 CTA 텍스트 */
.audience-cta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: letter-spacing 0.2s ease;
}

.audience-patient .audience-cta {
  color: #0a459d;
}

.audience-doctor .audience-cta {
  color: #93c5fd;
}

.audience-panel:hover .audience-cta {
  letter-spacing: 1px;
}

/* ── 섹션 상단 대상 태그 배지 ── */
.audience-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.audience-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.audience-tag--patient {
  background: #e8f7f5;
  color: #0a459d;
  border: 1px solid rgba(10, 69, 157, 0.2);
}

.audience-tag--doctor {
  background: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

/* ── 모바일: 패널 세로 전환 ── */
@media (max-width: 720px) {
  .audience-split {
    grid-template-columns: 1fr;
  }

  .audience-panel {
    padding: 44px 5%;
  }

  .audience-title {
    font-size: 22px;
  }
}
