/* ==============================================
   두타놀 정보 — style.css
   팔레트: 차콜/블랙 + 코퍼(구리) 액센트, 크림 바탕
   ============================================== */

/* 1. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-weight: 400;
  color: #1c1912;
  background: #f7f3ec;
  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; }

/* 2. Tokens */
:root {
  --ink:        #17140f;
  --ink-soft:   #24201a;
  --copper:     #b5651d;
  --copper-dark:#8f4f16;
  --copper-tint:#f0dfc8;
  --cream:      #f7f3ec;
  --cream-alt:  #eee6d6;
  --text:       #1c1912;
  --text-sub:   #5c5344;
  --text-inv:   #f2ede2;
  --text-inv-sub: #b8ae9c;
  --border:     #ddd2ba;
  --border-dark:#3a352b;
  --radius:     0px;
  --max-w:      1120px;
  --sec-pad:    84px;
  --hdr:        60px;
}

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

/* 4. Section typography */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}
.eyebrow.on-dark { color: #d99a5c; }
.section-title {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 46px;
}
.section-title.on-dark { color: var(--text-inv); }
.accent { color: var(--copper); }

/* 5. Buttons — rectangular, bold, no gradients */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
}
.btn-lg { font-size: 16px; padding: 16px 34px; }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); font-weight: 800; }
.btn-white:hover { background: var(--copper-tint); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* 6. Header — dark charcoal bar + underline tab nav (no dropdown, no header CTA button) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ink);
  border-bottom: 1px solid var(--border-dark);
}
.hdr-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--hdr);
  display: flex;
  align-items: center;
  gap: 30px;
}
.hdr-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.hdr-logo .logo-mark { width: 24px; height: 24px; flex-shrink: 0; }
.hdr-logo .logo-text {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-inv);
}

/* 밑줄 탭(underline tabs) 메뉴 — 버튼/필 형태 금지, 텍스트+선택시 밑줄만 */
.hdr-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex: 1;
  height: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hdr-nav::-webkit-scrollbar { display: none; }
.hdr-nav a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-inv-sub);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .18s, border-color .18s;
}
.hdr-nav a:hover { color: var(--text-inv); }
.hdr-nav a.active { color: var(--text-inv); border-bottom-color: var(--copper); }

/* 8. Info banner */
.info-banner {
  background: var(--ink-soft);
  border-bottom: 1px solid var(--border-dark);
  text-align: center;
  padding: 9px 24px;
  font-size: 12px;
  color: var(--text-inv-sub);
  line-height: 1.6;
}

/* 9. Hero — full charcoal block */
.hero {
  background: var(--ink);
  padding: 92px 0 0;
  text-align: center;
  color: var(--text-inv);
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--copper);
  padding: 6px 18px;
  border-radius: var(--radius);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--text-inv);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-inv-sub);
  line-height: 1.75;
  margin-bottom: 38px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Bento stat grid under hero */
.hero-bento {
  margin-top: 56px;
  border-top: 1px solid var(--border-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-bento > div {
  padding: 30px 16px;
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-bento > div:last-child { border-right: none; }
.hero-bento strong { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; color: var(--copper); }
.hero-bento span { font-size: 12px; color: var(--text-inv-sub); text-align: center; }

/* 10. Cards section (cream) */
.cards-section { background: var(--cream); padding: var(--sec-pad) 0; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.card-icon {
  width: 46px; height: 46px;
  background: var(--ink);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--copper); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-card h3 { font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.3; }
.info-card p { font-size: 13px; color: var(--text-sub); line-height: 1.7; flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 800; color: var(--copper);
  margin-top: 6px; transition: gap .18s;
}
.card-link:hover { gap: 7px; }
.card-link svg { width: 13px; height: 13px; stroke: var(--copper); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* 11. Overview table */
.overview-section { padding: var(--sec-pad) 0; background: var(--cream-alt); }
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.overview-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.overview-table th {
  width: 160px; background: var(--cream-alt); font-weight: 700; color: var(--text-sub);
  padding: 15px 18px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; white-space: nowrap;
}
.overview-table td { padding: 15px 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; }

/* 12. Mechanism — dark block, bento steps */
.mechanism-section { background: var(--ink); padding: var(--sec-pad) 0; color: var(--text-inv); }
.mech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.mech-step {
  background: var(--ink-soft);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 30px 24px;
}
.mech-step .step-num { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--copper); margin-bottom: 16px; }
.mech-icon {
  width: 50px; height: 50px; background: var(--copper); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.mech-icon svg { width: 25px; height: 25px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mech-step h4 { font-size: 16px; font-weight: 800; color: var(--text-inv); margin-bottom: 8px; line-height: 1.35; }
.mech-step p { font-size: 13px; color: var(--text-inv-sub); line-height: 1.7; }
.mech-footnote { margin-top: 32px; font-size: 13px; color: var(--text-inv-sub); border-top: 1px solid var(--border-dark); padding-top: 24px; }
.mech-footnote strong { color: var(--copper); font-weight: 800; }

/* 13. Compact comparison teaser (index) */
.compare-teaser { background: #fff; padding: var(--sec-pad) 0; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; }
.compare-col.is-dut { background: var(--ink); border-color: var(--ink); }
.compare-col h4 { font-size: 17px; font-weight: 900; margin-bottom: 14px; letter-spacing: -0.02em; }
.compare-col.is-dut h4 { color: var(--copper); }
.compare-col:not(.is-dut) h4 { color: var(--text); }
.compare-col ul { display: flex; flex-direction: column; gap: 9px; }
.compare-col li { font-size: 13.5px; line-height: 1.6; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.compare-col.is-dut li { color: var(--text-inv-sub); border-bottom-color: var(--border-dark); }
.compare-col:not(.is-dut) li { color: var(--text-sub); }
.compare-col li:last-child { border-bottom: none; padding-bottom: 0; }
.compare-col li strong { display: block; color: inherit; font-weight: 800; margin-bottom: 2px; }
.compare-col.is-dut li strong { color: var(--text-inv); }
.compare-col:not(.is-dut) li strong { color: var(--text); }
.compare-more { text-align: center; margin-top: 24px; }

/* 14. Bottom CTA — copper solid block */
.bottom-cta { background: var(--copper); padding: var(--sec-pad) 0; text-align: center; color: #fff; }
.bottom-cta h2 { font-size: clamp(23px, 3.6vw, 38px); font-weight: 900; line-height: 1.26; letter-spacing: -0.03em; margin-bottom: 14px; }
.bottom-cta .sub { font-size: 15px; opacity: .92; margin-bottom: 34px; line-height: 1.7; }
.bottom-cta .notice { margin-top: 20px; font-size: 12px; opacity: .75; }

/* 14b. 본문 인라인 텍스트 링크 (구매정보 안내용 — 버튼/플로팅 요소 아님) */
.inline-link {
  color: var(--copper-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.inline-link:hover { color: var(--copper); }

/* 14c. 섹션 간격 변형 유틸 — 규칙적인 배경 교차/균일 여백을 깨기 위한 용도 */
.pad-sm { padding-top: 40px !important; padding-bottom: 40px !important; }
.pad-lg { padding-top: 104px !important; padding-bottom: 104px !important; }
.pad-xl { padding-top: 128px !important; padding-bottom: 96px !important; }

/* 15. Footer */
.site-footer { background: var(--ink); padding: 46px 0; border-top: 1px solid var(--border-dark); }
.footer-inner { display: flex; flex-direction: column; gap: 17px; }
.footer-brand { font-size: 15px; font-weight: 800; color: var(--text-inv); }
.footer-disclaimer { font-size: 12px; line-height: 1.9; color: var(--text-inv-sub); max-width: 720px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: #8a8172; }
.footer-links a:hover { color: var(--copper); }
.footer-copy { font-size: 12px; color: #6b6355; }

/* 16. Breadcrumb */
.breadcrumb {
  padding: 13px 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); transition: color .18s; }
.breadcrumb a:hover { color: var(--copper); }

/* 17. Page hero (sub-pages) — dark */
.page-hero { background: var(--ink); padding: 54px 0 46px; color: var(--text-inv); }
.page-hero .eyebrow { margin-bottom: 11px; }
.page-hero h1 { font-size: clamp(27px, 4.2vw, 44px); font-weight: 900; line-height: 1.2; letter-spacing: -0.035em; color: var(--text-inv); margin-bottom: 13px; }
.page-hero .lead { font-size: 15px; color: var(--text-inv-sub); line-height: 1.8; max-width: 620px; }

/* 18. Content sections */
.content-sec { padding: 58px 0; background: #fff; }
.content-sec.bg-alt { background: var(--cream); }
.content-h2 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 900; line-height: 1.3; letter-spacing: -0.025em; color: var(--text); margin-bottom: 22px; }
.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; }

/* 19. Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 24px; }
.data-table thead th { background: var(--ink); color: var(--copper); font-weight: 800; padding: 12px 16px; text-align: left; font-size: 13px; }
.data-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text); line-height: 1.7; vertical-align: top; }
.data-table tbody tr:nth-child(even) td { background: var(--cream); }
.data-table tbody tr:last-child td { border-bottom: none; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: var(--radius); margin-right: 4px; white-space: nowrap; }
.tag-warn { background: #f3e2c6; color: #6b4a12; }
.tag-info { background: var(--copper-tint); color: var(--copper-dark); }
.tag-stop { background: #ecd6ce; color: #8a2f18; }

/* 20. Highlight / Disclaimer / Caution boxes — full box, no left accent bars */
.highlight-box {
  background: var(--copper-tint); border-radius: var(--radius); padding: 22px 26px;
  font-size: 14px; color: var(--text); line-height: 1.85; margin-top: 24px;
}
.highlight-box strong { color: var(--copper-dark); }
.disclaimer-box {
  background: var(--cream-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; font-size: 13px; color: var(--text-sub); line-height: 1.9; margin-top: 24px;
}
.caution-box {
  background: var(--ink); border-radius: var(--radius);
  padding: 20px 24px; font-size: 13px; color: var(--text-inv-sub); line-height: 1.9; margin-top: 24px;
}
.caution-box strong { color: var(--copper); }

/* 21. Steps */
.step-list { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
.step-item { display: flex; gap: 18px; align-items: flex-start; }
.step-badge {
  width: 34px; height: 34px; border-radius: var(--radius); background: var(--ink); color: var(--copper);
  font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.step-content h4 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.step-content p { font-size: 13.5px; color: var(--text-sub); line-height: 1.75; }

/* 22. Timeline */
.timeline-list { display: flex; flex-direction: column; margin-top: 34px; }
.tl-item { display: flex; gap: 20px; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-aside { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 42px; }
.tl-dot { width: 40px; height: 40px; border-radius: var(--radius); background: var(--ink); color: var(--copper); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tl-line { flex: 1; width: 2px; background: var(--border); margin-top: 8px; }
.tl-item:last-child .tl-line { display: none; }
.tl-body { padding-top: 8px; }
.tl-body h4 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.tl-body p { font-size: 14px; color: var(--text-sub); line-height: 1.8; }
.tl-badge { display: inline-block; font-size: 11px; font-weight: 800; color: var(--copper-dark); background: var(--copper-tint); padding: 3px 11px; border-radius: var(--radius); margin-bottom: 7px; }

/* 23. FAQ accordion */
.faq-list { margin-top: 32px; }
.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: 16px;
  padding: 19px 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 svg { flex-shrink: 0; stroke: var(--copper); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s; width: 18px; height: 18px; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .28s ease; font-size: 14px; color: var(--text-sub); line-height: 1.9; }
.faq-a-inner { padding-bottom: 20px; }
.faq-item.open .faq-a { max-height: 800px; }

/* 24. CTA card */
.cta-card {
  background: var(--ink); border-radius: var(--radius); padding: 38px 42px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 50px;
}
.cta-card-text h3 { font-size: 20px; font-weight: 900; letter-spacing: -0.025em; color: var(--text-inv); margin-bottom: 7px; line-height: 1.3; }
.cta-card-text p { font-size: 14px; color: var(--text-inv-sub); line-height: 1.7; }
.cta-notice { font-size: 12px; color: #837a6a; margin-top: 9px; line-height: 1.5; }
.cta-btns { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* 25. Shopping mall CTA card (buy.html) */
.shop-cta-card {
  background: var(--ink); border-radius: var(--radius); padding: 40px 42px; margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.shop-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--copper); margin-bottom: 9px; }
.shop-name { font-size: 23px; font-weight: 900; letter-spacing: -0.025em; color: var(--text-inv); margin-bottom: 7px; }
.shop-desc { font-size: 14px; color: var(--text-inv-sub); line-height: 1.7; }
.shop-notice { font-size: 12px; color: #837a6a; margin-top: 9px; line-height: 1.5; }
.shop-cta-btns { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* 25b. 항상 따라다니는 구매 안내 버튼 (전 페이지 공통, 외부 쇼핑몰 연결) */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  border: 2px solid var(--ink);
}
@media (max-width: 480px) {
  .float-cta { right: 14px; bottom: 14px; padding: 12px 18px; font-size: 13px; }
}

/* 26. 가로 스크롤 테이블 래퍼 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); margin-top: 24px; }
.table-scroll .data-table { margin-top: 0; min-width: 520px; }
.table-scroll.tall { max-height: 420px; overflow-y: auto; border: 1px solid var(--border); }
.table-scroll.tall .data-table thead th { position: sticky; top: 0; z-index: 1; }

/* 27. Responsive */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .mech-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .hero-bento { grid-template-columns: repeat(2, 1fr); }
  .hero-bento > div:nth-child(2) { border-right: none; }
  .hero-bento > div { border-bottom: 1px solid var(--border-dark); }
  .cta-card { flex-direction: column; text-align: center; }
  .cta-btns { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 768px) {
  :root { --sec-pad: 54px; --hdr: 52px; }
  .hdr-nav { gap: 2px; }
  .hdr-nav a { padding: 0 11px; font-size: 13px; }
  .overview-table th { width: 106px; font-size: 13px; }
  .overview-table td { font-size: 13px; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-bento { grid-template-columns: 1fr; }
  .hero-bento > div { border-right: none; }
  .cta-card { padding: 26px 22px; }
  .shop-cta-card { padding: 26px 22px; }
  .data-table { font-size: 13px; }
  .data-table thead th, .data-table tbody td { padding: 10px 12px; }
}
