@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700&family=Noto+Sans+KR:wght@400;500;600&display=swap');

:root {
  --navy: #0f2744;
  --navy-mid: #1a3a5c;
  --teal: #1c8c7e;
  --teal-light: #e8f5f3;
  --amber: #c97b2a;
  --amber-light: #fdf3e3;
  --purple: #6b4fa0;
  --purple-light: #f2eefa;
  --text: #1e1e2e;
  --muted: #5a6070;
  --rule: #d8dce8;
  --bg: #f7f8fc;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', sans-serif; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.85; }

/* ── 헤더 ── */
header { background: var(--navy); padding: 0 24px; position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; height: 58px; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.logo { font-family: 'Noto Serif KR', serif; font-size: 1.2rem; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -.5px; }
.logo span { color: #5ecfc4; }
nav { display: flex; flex-wrap: wrap; gap: 2px; }
nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .82rem; padding: 4px 10px; border-radius: 4px; transition: color .2s; }
nav a:hover { color: #5ecfc4; }

/* ── 히어로 ── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0d4a6b 100%); color: #fff; padding: 60px 24px 50px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 30%, rgba(28,140,126,.25) 0%, transparent 65%); }
.hero-badge { display: inline-block; background: rgba(94,207,196,.18); border: 1px solid rgba(94,207,196,.4); color: #5ecfc4; font-size: .75rem; font-weight: 600; padding: 4px 14px; border-radius: 20px; margin-bottom: 18px; position: relative; }
.hero h1 { font-family: 'Noto Serif KR', serif; font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.38; margin-bottom: 16px; position: relative; }
.hero p { font-size: 1rem; color: rgba(255,255,255,.78); max-width: 600px; margin: 0 auto 22px; position: relative; }
.hero-meta { font-size: .78rem; color: rgba(255,255,255,.45); position: relative; }

/* ── 목차 ── */
.toc-wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.toc { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--teal); border-radius: 8px; padding: 22px 26px; margin: 32px 0 0; }
.toc h2 { font-family: 'Noto Serif KR', serif; font-size: .95rem; color: var(--teal); margin-bottom: 12px; font-weight: 700; }
.toc ol { padding-left: 20px; }
.toc li { margin: 5px 0; }
.toc a { color: var(--navy-mid); text-decoration: none; font-size: .9rem; }
.toc a:hover { color: var(--teal); text-decoration: underline; }

/* ── 메인 ── */
.container { max-width: 820px; margin: 0 auto; padding: 0 20px 80px; }
section { margin-top: 52px; }
h2.section-title { font-family: 'Noto Serif KR', serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); padding-bottom: 10px; border-bottom: 2px solid var(--rule); margin-bottom: 20px; }
h3.sub-title { font-size: 1.05rem; font-weight: 600; color: var(--navy-mid); margin: 26px 0 10px; }
p { margin-bottom: 14px; }

/* ── 테이블 ── */
.price-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .88rem; box-shadow: 0 2px 10px rgba(0,0,0,.06); border-radius: 8px; overflow: hidden; }
.price-table thead tr { background: var(--navy); color: #fff; }
.price-table th { padding: 12px 14px; text-align: left; font-size: .82rem; font-weight: 600; }
.price-table tbody tr { background: var(--white); }
.price-table tbody tr:nth-child(even) { background: #f2f4fa; }
.price-table td { padding: 10px 14px; border-bottom: 1px solid var(--rule); }

/* ── 콜아웃 ── */
.callout { border-radius: 8px; padding: 16px 20px; margin: 22px 0; font-size: .92rem; display: flex; gap: 12px; align-items: flex-start; }
.callout.tip { background: var(--teal-light); border-left: 4px solid var(--teal); }
.callout.warn { background: var(--amber-light); border-left: 4px solid var(--amber); }
.callout.info { background: var(--purple-light); border-left: 4px solid var(--purple); }
.callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.callout-text strong { display: block; margin-bottom: 4px; color: var(--navy); }

/* ── 체크리스트 ── */
.checklist { list-style: none; padding: 0; margin: 14px 0; }
.checklist li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ── 단계 리스트 ── */
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 16px 0; }
.step-list li { counter-increment: step; padding: 14px 0 14px 52px; position: relative; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.step-list li:last-child { border-bottom: none; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 12px; width: 32px; height: 32px; background: var(--navy); color: #fff; font-weight: 700; font-size: .82rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.step-list li strong { color: var(--navy-mid); display: block; margin-bottom: 4px; }

/* ── 비교 카드 ── */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.compare-card { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--teal); border-radius: 8px; padding: 20px; }
.compare-card.alt { border-top-color: var(--amber); }
.compare-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.compare-card ul { list-style: none; padding: 0; font-size: .87rem; }
.compare-card ul li { padding: 5px 0; color: var(--muted); }
.compare-card ul li::before { content: '• '; color: var(--teal); }
.compare-card.alt ul li::before { color: var(--amber); }
.price-badge { display: inline-block; margin-top: 14px; background: var(--teal); color: #fff; padding: 5px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600; }
.compare-card.alt .price-badge { background: var(--amber); }

/* ── 결정 카드 ── */
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.decision-card { border-radius: 10px; padding: 22px; border: 2px solid; }
.decision-card.pina { border-color: var(--teal); background: var(--teal-light); }
.decision-card.duta { border-color: var(--purple); background: var(--purple-light); }
.decision-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.decision-card.pina h4 { color: var(--teal); }
.decision-card.duta h4 { color: var(--purple); }
.decision-card ul { list-style: none; padding: 0; font-size: .87rem; }
.decision-card ul li { padding: 5px 0; }
.decision-card ul li::before { content: '→ '; font-weight: 700; }
.decision-card.pina ul li::before { color: var(--teal); }
.decision-card.duta ul li::before { color: var(--purple); }

/* ── VS 배너 ── */
.vs-banner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 820px; margin: 32px auto 0; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.vs-col { padding: 26px 22px; }
.vs-col.left { border-right: 1px solid var(--rule); text-align: center; }
.vs-col.right { text-align: center; }
.vs-center { background: var(--navy); color: #fff; padding: 20px 16px; text-align: center; font-weight: 700; font-size: 1.1rem; writing-mode: vertical-rl; }
.drug-name { font-family: 'Noto Serif KR', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.drug-brand { font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.drug-stat { font-size: .83rem; margin: 4px 0; }
.drug-stat span { font-weight: 600; }
.drug-price { margin-top: 14px; display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: .82rem; font-weight: 700; }
.drug-price.pina { background: var(--teal-light); color: var(--teal); }
.drug-price.duta { background: var(--purple-light); color: var(--purple); }

/* ── 바 차트 ── */
.rating-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: .87rem; }
.bar-label { width: 100px; color: var(--muted); flex-shrink: 0; }
.bar-wrap { flex: 1; background: #e8eaf2; border-radius: 4px; height: 8px; }
.bar-fill { height: 8px; border-radius: 4px; }
.bar-fill.pina { background: var(--teal); }
.bar-fill.duta { background: var(--purple); }
.bar-val { width: 60px; text-align: right; font-weight: 600; font-size: .82rem; }
.highlight-pina { color: var(--teal); font-weight: 700; }
.highlight-duta { color: var(--purple); font-weight: 700; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq-q { font-weight: 600; color: var(--navy); font-size: .97rem; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 10px; }
.faq-q::before { content: 'Q'; background: var(--navy); color: #fff; width: 24px; height: 24px; border-radius: 50%; font-size: .75rem; font-weight: 700; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.faq-a { color: var(--muted); font-size: .92rem; padding-left: 34px; }

/* ── 관련 글 ── */
.related { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 24px 28px; margin-top: 52px; }
.related h3 { font-family: 'Noto Serif KR', serif; font-size: 1.1rem; color: var(--navy); margin-bottom: 14px; font-weight: 700; }
.related-list { list-style: none; padding: 0; }
.related-list li { border-bottom: 1px solid var(--rule); }
.related-list li:last-child { border-bottom: none; }
.related-list a { display: block; padding: 10px 4px; color: var(--navy-mid); text-decoration: none; font-size: .91rem; transition: all .2s; }
.related-list a:hover { color: var(--teal); padding-left: 8px; }
.related-list a::before { content: '→ '; color: var(--teal); }

/* ── 공유 바 ── */
.share-bar { background: var(--navy); border-radius: 8px; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; margin-top: 48px; flex-wrap: wrap; gap: 12px; }
.share-bar span { color: rgba(255,255,255,.7); font-size: .88rem; }
.share-btn { display: inline-block; padding: 8px 18px; border-radius: 20px; font-size: .82rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: opacity .2s; }
.share-btn:hover { opacity: .85; }
.share-btn.kakao { background: #FEE500; color: #3C1E1E; }
.share-btn.url { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }

/* ── 푸터 ── */
footer { background: var(--navy); color: rgba(255,255,255,.5); text-align: center; padding: 28px 20px; font-size: .8rem; line-height: 1.9; margin-top: 60px; }
footer a { color: rgba(255,255,255,.6); text-decoration: none; }
footer a:hover { color: #5ecfc4; }
footer strong { color: rgba(255,255,255,.8); }

/* ── 홈 카드 그리드 ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 32px 0; }
.card { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--teal); border-radius: 10px; padding: 24px 20px; text-decoration: none; color: var(--text); display: block; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-family: 'Noto Serif KR', serif; font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: .85rem; color: var(--muted); margin: 0; }
.card-tag { display: inline-block; margin-top: 12px; font-size: .75rem; background: var(--teal-light); color: var(--teal); padding: 3px 10px; border-radius: 12px; font-weight: 600; }

/* ── 반응형 ── */
@media(max-width: 600px) {
  header { padding: 0 14px; }
  nav a { font-size: .76rem; padding: 3px 7px; }
  .hero { padding: 40px 16px 36px; }
  h2.section-title { font-size: 1.25rem; }
  .price-table { font-size: .78rem; }
  .price-table th, .price-table td { padding: 8px 9px; }
  .compare-grid, .decision-grid { grid-template-columns: 1fr; }
  .vs-banner { grid-template-columns: 1fr; }
  .vs-center { writing-mode: horizontal-tb; padding: 12px; }
  .vs-col.left { border-right: none; border-bottom: 1px solid var(--rule); }
  .card-grid { grid-template-columns: 1fr; }
}
