/* ==============================================
   피라세탐 정보 — style.css
   카드 없음 / 문서형 구분선 레이아웃 / 라벤더는 포인트로만
   ============================================== */

/* 1. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #232323;
  background: #fdfcfa;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }
hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* 2. Tokens — 무채색 위주, 라벤더는 포인트 컬러로만 */
:root {
  --purple:        #6f5aa3;
  --purple-deep:   #574686;
  --purple-soft:   #f1ecf9;
  --ink:           #232323;
  --ink-sub:       #6b6b6b;
  --paper:         #fdfcfa;
  --paper-alt:     #f2f1ee;
  --line:          #dedcd6;
  --amber:         #8a6a2f;
  --rose:          #9c3f52;
  --mono:          ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius-md:      10px;
  --max-w:          1080px;
  --sec-pad:        66px;
}

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

/* 4. Typography */
h1, h2, h3, h4 {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
}
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-sub);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 32px;
}
.accent { color: var(--purple); }

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.btn-lg { font-size: 16px; padding: 15px 32px; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--paper-alt); }
.btn-white { background: #fff; color: var(--purple-deep); }
.btn-white:hover { background: var(--purple-soft); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* 6. Header — 중앙 로고 + 아래 가운데 메뉴 행 */
.site-header { background: var(--paper); padding: 30px 0 0; }
.hdr-top { display: flex; justify-content: center; }
.hdr-logo { display: flex; align-items: center; gap: 10px; }
.hdr-logo .logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--purple);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hdr-logo .logo-mark svg { width: 17px; height: 17px; }
.hdr-logo .logo-text { font-size: 19px; font-weight: 800; color: var(--ink); }

.hdr-nav-center { margin-top: 20px; background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav-row { max-width: var(--max-w); margin: 0 auto; padding: 12px 24px; display: flex; justify-content: center; align-items: center; gap: 34px; }
.nav-row a { font-size: 14px; font-weight: 700; color: var(--ink-sub); white-space: nowrap; }
.nav-row a.active, .nav-row a:hover { color: var(--purple-deep); }

/* 7. 안내 배너 */
.info-banner { background: var(--purple-soft); text-align: center; padding: 10px 24px; font-size: 12.5px; color: var(--purple-deep); line-height: 1.6; }

/* 8. Hero — 가운데 정렬이 아닌, 좁은 폭의 좌측 정렬 텍스트 블록 */
.hero { padding: 56px 0 46px; text-align: left; }
.hero .container { max-width: 660px; margin-left: auto; margin-right: auto; }
.hero h1 {
  font-size: clamp(26px, 4.6vw, 38px);
  line-height: 1.42;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero-sub { font-size: clamp(15px, 2vw, 16.5px); color: var(--ink-sub); line-height: 1.85; margin-bottom: 28px; font-weight: 400; }
.hero-cta { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }

.hero-stats { margin-top: 38px; display: flex; justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 22px; }
.hero-stats > div { flex: 1; text-align: left; padding: 0 16px 0 0; border-left: 1px solid var(--line); padding-left: 16px; }
.hero-stats > div:first-child { border-left: none; padding-left: 0; }
.hero-stats strong { display: block; font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.hero-stats span { font-size: 11.5px; color: var(--ink-sub); line-height: 1.4; }

/* 9. 핵심 정보 — 카드 없이 구분선으로만 나눈 링크 목록 (finpecia의 아이콘 카드 그리드와 의도적으로 다른 구조) */
.cards-section { padding: var(--sec-pad) 0; }
.link-rows { border-top: 1px solid var(--ink); }
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.link-row .lr-text { flex: 1; }
.link-row .lr-title { display: block; font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.link-row .lr-desc { display: block; font-size: 13.5px; color: var(--ink-sub); line-height: 1.7; font-weight: 400; }
.link-row .lr-arrow { flex-shrink: 0; font-size: 20px; color: var(--purple); }

/* 10. Overview table — 라벨 열을 대문자 캡션처럼 처리한 스펙시트 스타일 */
.overview-section { padding: var(--sec-pad) 0; background: var(--paper-alt); }
.overview-table { width: 100%; border-collapse: collapse; font-size: 14.5px; border-top: 1px solid var(--ink); }
.overview-table th {
  width: 168px;
  background: transparent;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-sub);
  padding: 16px 16px 16px 2px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.overview-table td { padding: 14px 2px 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); line-height: 1.75; font-weight: 400; }

/* 11. Mechanism — num-list 재사용 (아래 20번 정의) */
.mechanism-section { padding: var(--sec-pad) 0; }
.mech-footnote { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: left; font-size: 13px; color: var(--ink-sub); line-height: 1.8; }
.mech-footnote strong { color: var(--ink); }

/* 12. Bottom CTA — 페이지당 하나뿐인 의도적 강조 색면 */
.bottom-cta { background: var(--purple); padding: var(--sec-pad) 0; text-align: center; color: #fff; }
.bottom-cta h2 { font-size: clamp(20px, 3.5vw, 28px); line-height: 1.45; margin-bottom: 14px; }
.bottom-cta .sub { font-size: 15px; opacity: .85; margin-bottom: 26px; line-height: 1.75; font-weight: 400; }
.bottom-cta .notice { margin-top: 18px; font-size: 12px; opacity: .6; }

/* 13. 인라인 반복 CTA */
.inline-cta { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.inline-cta p { font-size: 12px; color: var(--ink-sub); margin-top: 10px; }

/* 14. Footer */
.site-footer { background: #202020; padding: 42px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { font-size: 16px; font-weight: 800; color: #fff; }
.footer-disclaimer { font-size: 12px; line-height: 1.9; color: #a8a8a8; max-width: 720px; font-weight: 400; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: #929292; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: #6f6f6f; }

/* 15. Breadcrumb */
.breadcrumb { padding: 14px 0; font-size: 13px; color: var(--ink-sub); display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--ink-sub); }
.breadcrumb a:hover { color: var(--purple); }

/* 16. Page hero */
.page-hero { background: var(--paper); padding: 40px 0 34px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(22px, 4vw, 30px); line-height: 1.4; color: var(--ink); margin-bottom: 12px; }
.page-hero .lead { font-size: 15px; color: var(--ink-sub); line-height: 1.85; max-width: 600px; font-weight: 400; }

/* 17. Content sections */
.content-sec { padding: 46px 0; }
.content-sec.bg-alt { background: var(--paper-alt); }
.content-h2 { font-size: clamp(18px, 2.5vw, 23px); line-height: 1.4; color: var(--ink); margin-bottom: 16px; }
.content-body { font-size: 15px; color: var(--ink-sub); line-height: 1.9; font-weight: 400; }
.content-body p + p { margin-top: 14px; }
.content-body strong { color: var(--ink); font-weight: 700; }

/* 18. Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 18px; border-top: 2px solid var(--ink); }
.data-table thead th {
  background: transparent;
  color: var(--ink-sub);
  font-weight: 700;
  padding: 10px 14px 10px 2px;
  text-align: left;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
}
.data-table tbody td { padding: 12px 14px 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink-sub); line-height: 1.7; vertical-align: top; font-weight: 400; }
.pill { font-weight: 800; font-size: 12.5px; margin-right: 4px; white-space: nowrap; }
.pill-warn { color: var(--amber); }
.pill-info { color: var(--purple-deep); }
.pill-stop { color: var(--rose); }

/* 19. Highlight / Disclaimer boxes */
.highlight-box { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; font-size: 14px; color: var(--ink-sub); line-height: 1.85; margin-top: 22px; font-weight: 400; }
.highlight-box strong { color: var(--purple-deep); }
.disclaimer-box { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; font-size: 13px; color: var(--ink-sub); line-height: 1.9; margin-top: 22px; font-weight: 400; }
.disclaimer-box strong { color: var(--amber); }
.caution-box { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; font-size: 13px; color: var(--ink-sub); line-height: 1.9; margin-top: 22px; font-weight: 400; }
.caution-box strong { color: var(--rose); }

/* 20. num-list — 아이콘/뱃지/카드 없이 순수 카운터 기반 번호 목록.
      mechanism-section과 subpage의 단계 설명에 공통으로 사용 */
.num-list { counter-reset: nl; margin-top: 18px; border-top: 1px solid var(--line); }
.num-list li { counter-increment: nl; list-style: none; position: relative; padding: 20px 0 20px 36px; border-bottom: 1px solid var(--line); }
.num-list li::before {
  content: counter(nl) ".";
  position: absolute;
  left: 0; top: 20px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink-sub);
  font-size: 13px;
}
.num-list h4 { font-size: 15px; color: var(--ink); margin-bottom: 6px; font-weight: 700; }
.num-list p { font-size: 13.5px; color: var(--ink-sub); line-height: 1.75; font-weight: 400; max-width: 640px; }

/* 21. FAQ — 기본 detail/summary 느낌의 플레인 목록 */
.faq-list { margin-top: 24px; border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 17px 2px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  background: none; border: none; cursor: pointer; text-align: left; line-height: 1.5;
}
.faq-q .faq-toggle-ico { flex-shrink: 0; font-size: 18px; font-weight: 400; color: var(--ink-sub); width: 18px; text-align: center; }
.faq-a { display: none; font-size: 14px; color: var(--ink-sub); line-height: 1.9; font-weight: 400; }
.faq-item.open .faq-a { display: block; }
.faq-a-inner { padding: 0 2px 18px; }

/* 22. CTA — 서브페이지 하단, 상단 구분선만으로 표시 (박스/테두리 없음) */
.cta-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 28px 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.cta-card-text h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; line-height: 1.4; }
.cta-card-text p { font-size: 14px; color: var(--ink-sub); line-height: 1.7; font-weight: 400; }
.cta-notice { font-size: 12px; color: var(--ink-sub); margin-top: 8px; line-height: 1.6; }
.cta-btns { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

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

/* 24. Responsive */
@media (max-width: 900px) {
  .cta-card { flex-direction: column; text-align: center; align-items: flex-start; }
  .cta-btns { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  :root { --sec-pad: 44px; }

  .hero-stats { flex-wrap: wrap; row-gap: 16px; }
  .hero-stats > div { flex: 1 1 45%; }
  .hero-stats > div:nth-child(2n+1) { border-left: none; padding-left: 0; }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 12px; }

  .link-row { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* 모바일: 가로 스크롤 칩 메뉴 */
  .nav-row { justify-content: flex-start; overflow-x: auto; gap: 10px; padding: 12px 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-row::-webkit-scrollbar { display: none; }
  .nav-row a { flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; color: var(--ink-sub); }
  .nav-row a.active { background: var(--purple); border-color: var(--purple); color: #fff; }
}
@media (max-width: 480px) {
  .data-table { font-size: 13px; }
  .data-table thead th, .data-table tbody td { padding: 10px 8px; }
  .overview-table th { width: 100px; font-size: 11px; padding: 12px 8px; }
  .overview-table td { font-size: 13px; padding: 12px 0 12px 8px; }
  .num-list li { padding-left: 30px; }
}
