/* hira-dental/style.css — Dala-inspired dark system v3
   순수 블랙 캔버스 · 단일 바이올렛 액센트 · 헤어라인 보더 · 필 컨트롤
   그림자/그라디언트 없이 대비와 여백으로 깊이 표현. 기존 클래스·변수명 유지. */

:root {
  /* 캔버스·표면 */
  --bg-1: #000000;
  --bg-2: #050507;
  --bg-3: #0b0b0f;
  --surface: #0a0a0e;
  --border: rgba(255, 255, 255, 0.10);
  /* 단일 액센트: 채도 높은 바이올렛 (구 변수명 유지) */
  --plum: #8052ff;          /* Plum Voltage — 유일한 채색 채움 */
  --plum-light: #a07fff;
  --gold: #ffb829;          /* Amber Spark — 외곽선·라벨 전용, CTA 금지 */
  --teal: #15846e;          /* Lichen — 장식 전용 */
  --red: #f87171;
  /* 타이포 — 블랙 위에서 빛나는 화이트 */
  --text-1: #ffffff;
  --text-2: #bdbdbd;        /* Ash */
  --text-3: #9a9a9a;        /* Smoke */
  --font: 'Pretendard', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --radius: 24px;
  --radius-sm: 24px;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  word-break: keep-all; overflow-wrap: break-word;
  font-family: var(--font);
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.75;
  letter-spacing: 0.01em; /* 본문: 블랙 위 가독성 위해 살짝 양수 트래킹 */
  -webkit-font-smoothing: antialiased;
}

a { color: var(--plum-light); text-decoration: none; }
a:hover { color: #ffffff; }
:focus-visible { outline: 1.5px solid var(--plum); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(128, 82, 255, 0.35); }

/* ── 레이아웃 ── */
.inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── 헤더: 블랙 위 헤어라인 ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.site-header .logo {
  font-size: 1rem; font-weight: 700; color: var(--text-1);
  letter-spacing: -0.02em; white-space: nowrap;
}
.site-header .logo:hover { color: var(--plum-light); }
.site-header nav { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { font-size: 0.84rem; font-weight: 500; color: var(--text-2); letter-spacing: 0.01em; }
.site-header nav a:hover { color: var(--text-1); }

/* ── 히어로: 보이드 + 바이올렛 글로우 ── */
.hero-section {
  padding: 5rem 0 3.5rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.breadcrumb {
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--text-3); margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--text-2); }
.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 200; letter-spacing: -0.04em; line-height: 1.08; /* 시그니처: 초박형 디스플레이 */
  color: var(--text-1); margin-bottom: 0.8rem;
  text-wrap: balance; word-break: keep-all;
}
.hero-sub { color: var(--text-2); font-size: 1rem; margin-bottom: 1.4rem; max-width: 44em; }
.hero-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* 필 배지 — 헤어라인 + 미세 틴트 */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.3rem 0.85rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid var(--border); color: var(--text-2); background: transparent;
}
.badge-hira   { border-color: rgba(128, 82, 255, 0.45); color: var(--plum-light); }
.badge-law    { border-color: rgba(255, 184, 41, 0.45); color: var(--gold); }
.badge-update { border-color: rgba(21, 132, 110, 0.7); color: #3aa78f; }

/* ── 공지 박스 ── */
.notice-section { padding: 1.75rem 0; }
.notice-box {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: rgba(128, 82, 255, 0.06);
  border: 1px solid rgba(128, 82, 255, 0.22);
  border-radius: var(--radius-sm); padding: 1rem 1.3rem;
}
.notice-icon { font-size: 1rem; color: var(--plum-light); flex-shrink: 0; margin-top: 0.15rem; }
.notice-text { font-size: 0.86rem; color: var(--text-2); }
.notice-text strong { color: var(--text-1); }

/* ── 요약 통계 카드 ── */
.summary-section { padding: 3.75rem 0; }
.section-title {
  font-size: 1.5rem; font-weight: 400; margin-bottom: 1.1rem;
  letter-spacing: -0.03em;
}
.summary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.summary-card { background: var(--bg-1); padding: 1.4rem 1.5rem; }
.summary-label {
  font-size: 0.72rem; font-weight: 600; color: var(--text-3);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.45rem;
}
.summary-value {
  font-size: 2rem; font-weight: 800; color: var(--text-1);
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
}
.summary-value .unit { font-size: 0.95rem; font-weight: 600; margin-left: 0.15rem; color: var(--text-3); }
.summary-value-range { font-size: 1.15rem; font-weight: 700; color: var(--plum-light); font-variant-numeric: tabular-nums; }
.summary-value-text  { font-size: 1rem; font-weight: 700; color: var(--plum-light); }
.summary-desc { font-size: 0.75rem; color: var(--text-3); margin-top: 0.4rem; }

/* ── 비교 표: 헤어라인 디바이더 ── */
.compare-section { padding: 3.75rem 0; }
.section-desc { font-size: 0.86rem; color: var(--text-3); margin-bottom: 1.1rem; }

.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.87rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th {
  background: var(--bg-3); color: var(--text-3);
  padding: 0.8rem 1.1rem; text-align: left;
  font-weight: 600; font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare-table td {
  padding: 0.85rem 1.1rem; color: var(--text-1);
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.price-cell { font-weight: 700; color: var(--plum-light); }
.tfoot-note {
  color: var(--text-3); font-size: 0.74rem; padding: 0.7rem 1.1rem;
  background: var(--bg-3); border-top: 1px solid var(--border);
  font-variant-numeric: normal; text-transform: none; letter-spacing: 0.01em;
}

/* ── 클리닉 카드 ── */
.clinics-section { padding: 3.75rem 0; }
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.clinic-card {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
  transition: border-color 0.15s;
  position: relative; overflow: hidden;
}
.clinic-card:hover { border-color: rgba(128, 82, 255, 0.5); }
.clinic-rank {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: 0.68rem; font-weight: 700; color: var(--text-3);
  letter-spacing: 0.1em;
}
.clinic-name {
  font-size: 1.02rem; font-weight: 700; margin-bottom: 0.45rem;
  padding-right: 2.5rem; letter-spacing: -0.02em;
}
.clinic-meta {
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
  font-size: 0.77rem; color: var(--text-3); margin-bottom: 0.8rem;
}
.clinic-price-row {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid rgba(128, 82, 255, 0.28);
  border-radius: 999px; padding: 0.5rem 1rem; margin-bottom: 0.8rem;
}
.price-label { font-size: 0.73rem; font-weight: 500; color: var(--text-3); letter-spacing: 0.03em; }
.price-value { font-size: 0.98rem; font-weight: 700; color: var(--plum-light); font-variant-numeric: tabular-nums; }
.clinic-addr { font-size: 0.8rem; color: var(--text-2); margin-bottom: 0.35rem; }
.clinic-rmrk { font-size: 0.75rem; color: var(--text-3); margin-bottom: 0.4rem; }
.hira-badge {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; color: var(--text-3);
  border-top: 1px solid var(--border); padding-top: 0.6rem; margin-top: 0.6rem;
  width: 100%; letter-spacing: 0.02em;
}
.no-data { color: var(--text-3); padding: 3rem 1rem; text-align: center; }

/* ── 가이드 카드 ── */
.guide-section { padding: 3.75rem 0; }
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.guide-card {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem 1.4rem;
  transition: border-color 0.15s;
}
.guide-card:hover { border-color: rgba(255, 255, 255, 0.2); }
.guide-card h3 {
  font-size: 0.92rem; font-weight: 700; margin-bottom: 0.55rem;
  color: var(--plum-light); letter-spacing: -0.01em;
}
.guide-card p { font-size: 0.85rem; color: var(--text-2); }

/* ── FAQ ── */
.faq-section { padding: 3.75rem 0; }
.faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  cursor: pointer; padding: 1.05rem 1.4rem;
  font-size: 0.92rem; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--plum); font-size: 1.2rem; font-weight: 500; flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: rgba(255, 255, 255, 0.03); }
.faq-ans {
  padding: 0 1.4rem 1.15rem; font-size: 0.87rem;
  color: var(--text-2); line-height: 1.8;
}

/* ── 출처 ── */
.source-section { padding: 3.75rem 0; }
.source-box {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.source-box h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.source-box ul { padding-left: 1.25rem; }
.source-box li { font-size: 0.84rem; color: var(--text-2); margin-bottom: 0.4rem; }
.source-box a { color: var(--plum-light); }

/* ── 푸터 ── */
.site-footer {
  border-top: 1px solid var(--border); padding: 2.5rem 0 3rem;
  background: var(--bg-1); margin-top: 4rem;
}
.footer-links {
  display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 0.9rem;
}
.footer-links a { font-size: 0.83rem; font-weight: 500; color: var(--text-2); }
.footer-links a:hover { color: var(--text-1); }
.footer-note { font-size: 0.78rem; color: var(--text-3); margin-bottom: 0.5rem; line-height: 1.7; }
.footer-copy { font-size: 0.73rem; color: var(--text-3); }

/* ── CTA: 필 버튼, 단일 액센트 ── */
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.7rem 1.6rem; border-radius: 999px;
  background: var(--plum); color: #fff;
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0;
  transition: background 0.15s;
  margin: 0.25rem 0.5rem 0.25rem 0;
}
.cta-btn:hover { background: #6f42e8; color: #fff; }
.cta-secondary {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-1);
}
.cta-secondary:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.25); color: var(--text-1); }

/* ── 지역 그리드 ── */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.region-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1rem; text-align: center;
  color: var(--text-1); transition: border-color 0.15s;
  min-height: 130px;
}
.region-card:hover { border-color: rgba(128, 82, 255, 0.5); color: var(--text-1); }
.region-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.2rem; letter-spacing: -0.04em; }
.region-sub { font-size: 0.7rem; color: var(--text-3); margin-bottom: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.region-badge {
  font-size: 0.68rem; font-weight: 600;
  padding: 0.22rem 0.7rem; border-radius: 999px;
  background: transparent; color: #3aa78f; border: 1px solid rgba(21, 132, 110, 0.7);
  letter-spacing: 0.03em;
}
.region-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text-1); letter-spacing: -0.02em; }
.region-card p { font-size: 0.8rem; color: var(--text-3); }

/* ── 반응형 ── */
@media (max-width: 720px) {
  .site-header nav { gap: 0.8rem; }
  .site-header nav a { font-size: 0.78rem; }
  .hero-section { padding: 3rem 0 2.25rem; }
  .compare-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .compare-table th, .compare-table td { padding: 0.65rem 0.75rem; font-size: 0.8rem; }
  .clinic-grid, .guide-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-value { font-size: 1.5rem; }
  .cta-btn { width: 100%; justify-content: center; }
}
