/* ==============================================
   모다피닐 브리핑 — style.css
   흰 배경 + 검정/네이비 텍스트 위주의 밋밋한 "게시판·
   약학정보원" 스타일 문서형 레이아웃. 앰버(gold)는
   버튼과 극히 일부 강조에만 아주 드물게 사용한다.
   섹션 배경은 교차시키지 않고 전부 흰색으로 통일한다.
   카드/박스 UI 대신 소제목 + 본문 + 표 위주로 구성한다.
   Pretendard 헤딩 + Noto Sans KR 본문, 무(無)애니메이션.
   ============================================== */

/* 1. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #1c1c1a;
  background: #ffffff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; }
table { border-collapse: collapse; }

/* 2. Tokens */
:root {
  --navy:        #101d2c;
  --navy-soft:   #1b2c40;
  --gold:        #b8843c;
  --gold-deep:   #96692a;
  --bg:          #ffffff;
  --row-tint:    #f6f5f2;   /* 표 줄무늬 전용. 섹션 배경에는 쓰지 않음 */
  --text:        #1c1c1a;
  --text-sub:    #58554d;
  --border:      #dcdad2;
  --radius:      3px;
  --max-w:       1080px;
  --sec-pad:     56px;
  --hdr:         60px;
  --head-font:   'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

/* 3. Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* 4. Section typography — 라벨/헤딩은 검정·네이비 위주, 금색은 쓰지 않음 */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--head-font);
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 28px;
}
/* 강조색은 사이트 전체에서 이 클래스 하나로만, 아주 드물게 사용 */
.accent-gold { color: var(--gold-deep); }

/* 5. Buttons — 상태 변화만 있을 뿐 애니메이션은 없음(즉시 전환). 금색 버튼은 핵심 CTA 1개에만 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  cursor: pointer;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
}
.btn-lg { font-size: 16px; padding: 14px 30px; }
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold-deep); }
.btn-primary:hover { background: var(--gold-deep); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* 텍스트형 링크 — 쇼핑몰/내부 링크 대부분은 이 밑줄 텍스트로 처리 (버튼 남발 방지) */
.text-link { font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--gold-deep); }

/* 6. 헤더 — 로고 + 햄버거 토글만 노출 (가로 메뉴/쇼핑몰 버튼 없음) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--hdr);
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.hdr-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
}
.hdr-logo { display: flex; align-items: baseline; flex-shrink: 0; }
.hdr-logo .logo-text { font-family: var(--head-font); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.hdr-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.hdr-cart svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle .bars { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle .bars span { display: block; width: 18px; height: 2px; background: var(--text); flex-shrink: 0; }

/* 7. 드롭다운 메뉴 패널 — 홈/서브페이지 3개/쇼핑몰 링크를 한 곳에 제공 */
.nav-panel {
  display: none;
  position: fixed;
  top: var(--hdr);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 199;
  flex-direction: column;
}
.nav-panel.open { display: flex; }
.nav-panel a { display: block; padding: 14px 24px; font-size: 15px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.nav-panel a:last-child { border-bottom: none; }
.nav-panel a.active { font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.nav-panel a:hover { color: var(--navy); }
.nav-panel .panel-shop { font-weight: 700; }

/* 8. Info banner — 색 없이 위/아래 괘선만 있는 공지문 */
.info-banner {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 9px 24px;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* 9. Hero — 흰 배경, 검정/네이비 텍스트. 금색은 단어 하나 정도만 */
.hero { background: #fff; padding: 52px 0 40px; }
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--head-font);
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 18px;
  max-width: 720px;
}
.hero h1 .gold { color: var(--gold-deep); }
.hero-sub { font-size: 15px; color: var(--text-sub); line-height: 1.85; margin-bottom: 24px; max-width: 640px; }
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-facts {
  font-size: 13.5px;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.hero-facts b { color: var(--text); font-weight: 700; }
.hero-facts .sep { margin: 0 10px; color: var(--border); }

/* 11. 핵심 확인 항목 — 카드 대신 소제목+본문+링크로 이어지는 목록형 */
.plain-list { display: flex; flex-direction: column; margin-top: 8px; }
.plain-list-item { padding: 22px 0; border-top: 1px solid var(--border); }
.plain-list-item:last-child { border-bottom: 1px solid var(--border); }
.plain-list-num { display: inline-block; font-family: var(--head-font); font-weight: 700; color: var(--text-sub); font-size: 13px; margin-bottom: 6px; }
.plain-list-item h3 { font-family: var(--head-font); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.plain-list-item p { font-size: 14px; color: var(--text-sub); line-height: 1.75; margin-bottom: 8px; max-width: 640px; }

/* 12. 섹션 공통 — 배경은 항상 흰색, 상단 괘선으로만 구분(교차 틴트 사용 안 함) */
.cards-section,
.overview-section,
.mechanism-section,
.content-sec { background: #fff; padding: var(--sec-pad) 0; }
.content-sec + .content-sec,
.overview-section,
.mechanism-section,
.cards-section + section { border-top: 1px solid var(--border); }
.content-sec.bg-alt { background: #fff; } /* 틴트 교차 패턴 제거 — 항상 흰 배경 */

/* 13. 제품 개요 표 — 정의형 2단 표, 색 채움 없이 괘선만 */
.table-wrap { border-top: 1px solid var(--navy); border-bottom: 1px solid var(--border); }
.overview-table { width: 100%; font-size: 15px; }
.overview-table th {
  width: 150px;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-family: var(--head-font);
  padding: 14px 18px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.overview-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text); line-height: 1.7; }
.overview-table tr:last-child th,
.overview-table tr:last-child td { border-bottom: none; }

/* 14. 작용 원리 — 번호+소제목+본문의 문서형 목록 */
.mech-list { display: flex; flex-direction: column; }
.mech-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.mech-list .mech-row:last-child { border-bottom: 1px solid var(--border); }
.mech-num { font-family: var(--head-font); font-size: 22px; font-weight: 700; color: var(--text-sub); line-height: 1; }
.mech-row h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.mech-row p { font-size: 14px; color: var(--text-sub); line-height: 1.8; max-width: 620px; }
.mech-footnote { margin-top: 22px; font-size: 13px; color: var(--text-sub); line-height: 1.8; }
.mech-footnote strong { color: var(--text); font-weight: 700; }

/* 15. 하단 CTA — 색 블록 없이 흰 배경, 괘선 하나로만 구분 */
.bottom-cta { background: #fff; padding: 52px 0; border-top: 1px solid var(--border); }
.bottom-cta h2 { font-family: var(--head-font); font-size: clamp(20px, 3vw, 28px); font-weight: 700; line-height: 1.45; margin-bottom: 12px; color: var(--text); }
.bottom-cta .sub { font-size: 14px; color: var(--text-sub); margin-bottom: 24px; line-height: 1.8; }
.bottom-cta .notice { margin-top: 16px; font-size: 12px; color: var(--text-sub); }

/* 16. 푸터 — 색 블록 없이 흰 배경 + 괘선, 회색조 텍스트 */
.site-footer { background: #fff; padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { font-family: var(--head-font); font-size: 15px; font-weight: 700; color: var(--text); }
.footer-disclaimer { font-size: 12px; line-height: 1.9; color: var(--text-sub); max-width: 720px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-sub); text-decoration: underline; }
.footer-links a:hover { color: var(--navy); }
.footer-copy { font-size: 12px; color: #8b887f; }

/* 17. Breadcrumb */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-sub); display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--text-sub); text-decoration: underline; }
.breadcrumb a:hover { color: var(--navy); }

/* 18. Page hero (sub-pages) — 흰 배경, 괘선만 */
.page-hero { background: #fff; padding: 40px 0 34px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-family: var(--head-font); font-size: clamp(23px, 3.4vw, 34px); font-weight: 700; line-height: 1.4; color: var(--text); margin-bottom: 12px; }
.page-hero .lead { font-size: 14.5px; color: var(--text-sub); line-height: 1.85; max-width: 620px; }

/* 19. Content sections */
.content-h2 { font-family: var(--head-font); font-size: clamp(19px, 2.3vw, 24px); font-weight: 700; line-height: 1.45; color: var(--text); margin-bottom: 18px; }
.content-body { font-size: 15px; color: var(--text-sub); line-height: 1.9; }
.content-body p + p { margin-top: 14px; }
.content-body strong { color: var(--text); font-weight: 700; }

/* 20. Data table — 색 채움 없이 굵은 밑줄 헤더의 문서형 표 */
.data-table { width: 100%; font-size: 14px; margin-top: 22px; background: #fff; }
.data-table thead th { background: transparent; color: var(--navy); font-weight: 700; padding: 10px 16px; text-align: left; font-size: 13px; border-bottom: 2px solid var(--navy); }
.data-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); line-height: 1.7; vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) td { background: var(--row-tint); }

/* 태그 — 알약/배지 대신 굵은 텍스트 라벨 (중대 항목만 금색 밑줄로 아주 살짝 구분) */
.tag { font-weight: 700; font-size: 13px; white-space: nowrap; }
.tag-warn { color: var(--text); }
.tag-info { color: var(--text-sub); font-weight: 600; }
.tag-stop { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* 21. 안내 박스 — 색 채움 없이 흰 배경 + 괘선만으로 구분 */
.highlight-box,
.disclaimer-box,
.caution-box {
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px 22px;
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.9;
  margin-top: 22px;
}
.highlight-box strong,
.disclaimer-box strong,
.caution-box strong { color: var(--text); }
.caution-box { border-color: var(--navy-soft); }

/* 22. Steps (번호 목록, 문서형) */
.step-list { display: flex; flex-direction: column; margin-top: 22px; }
.step-item { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.step-list .step-item:last-child { border-bottom: 1px solid var(--border); }
.step-badge {
  font-family: var(--head-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
}
.step-badge::after { content: '.'; }
.step-content h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.step-content p { font-size: 13.5px; color: var(--text-sub); line-height: 1.75; }

/* 23. Timeline — 원형 배지 대신 숫자+세로줄의 단순한 목록 */
.timeline-list { display: flex; flex-direction: column; margin-top: 26px; }
.tl-item { display: flex; gap: 18px; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-aside { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 28px; }
.tl-dot { font-family: var(--head-font); font-weight: 700; color: var(--navy); font-size: 15px; }
.tl-line { flex: 1; width: 1px; background: var(--border); margin-top: 6px; }
.tl-item:last-child .tl-line { display: none; }
.tl-body { padding-top: 1px; }
.tl-body h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.tl-body p { font-size: 14px; color: var(--text-sub); line-height: 1.8; }
.tl-badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--text-sub); margin-bottom: 5px; }

/* 24. FAQ accordion — 색 없이 괘선 + 텍스트 기호만 */
.faq-list { margin-top: 26px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  line-height: 1.5;
}
.faq-q .faq-icon { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.faq-q .faq-icon::before, .faq-q .faq-icon::after {
  content: ''; position: absolute; background: var(--navy); top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.faq-q .faq-icon::before { width: 13px; height: 2px; }
.faq-q .faq-icon::after { width: 2px; height: 13px; }
.faq-item.open .faq-q .faq-icon::after { display: none; }
.faq-a { display: none; font-size: 14px; color: var(--text-sub); line-height: 1.9; }
.faq-a-inner { padding-bottom: 18px; }
.faq-item.open .faq-a { display: block; }

/* 25. CTA — 카드 박스 최소화. 괘선 하나로만 구획, 그림자/둥근모서리 없음 */
.cta-card,
.shop-cta-card {
  background: #fff;
  color: var(--text);
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
  border-radius: 0;
}
.cta-card-text h3 { font-family: var(--head-font); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.cta-card-text p { font-size: 14px; color: var(--text-sub); line-height: 1.7; }
.cta-notice { font-size: 12px; color: var(--text-sub); margin-top: 8px; line-height: 1.6; }
.cta-btns, .shop-cta-btns { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

.shop-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-sub); margin-bottom: 8px; }
.shop-name { font-family: var(--head-font); font-size: 19px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.shop-desc { font-size: 14px; color: var(--text-sub); line-height: 1.7; }
.shop-notice { font-size: 12px; color: var(--text-sub); margin-top: 8px; line-height: 1.6; }

/* 26. 가로 스크롤 테이블 래퍼 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 22px; }
.table-scroll .data-table { margin-top: 0; min-width: 560px; }

/* 27. Responsive */
@media (max-width: 900px) {
  .cta-card, .shop-cta-card { flex-direction: column; align-items: stretch; }
  .cta-btns, .shop-cta-btns { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  :root { --sec-pad: 40px; --hdr: 56px; }
  .overview-table th { width: 100px; font-size: 13px; padding: 11px 12px; }
  .overview-table td { font-size: 13px; padding: 11px 12px; }
  .mech-row { grid-template-columns: 46px 1fr; gap: 14px; }
  .mech-num { font-size: 18px; }
}
@media (max-width: 480px) {
  .cta-card, .shop-cta-card { padding: 22px 0; }
  .data-table { font-size: 13px; }
  .data-table thead th, .data-table tbody td { padding: 9px 10px; }
  .step-item { grid-template-columns: 28px 1fr; gap: 10px; }
  .hero-facts .sep { margin: 0 6px; }
}
