/* 두뇌톡톡 콘텐츠 페이지 공통 스타일 */
:root {
  --bg: #F3F4EF;
  --bg-warm: #E7E4DE;
  --ink: #232A22;
  --ink-soft: #3B453A;
  --muted: #64705F;
  --muted-2: #7E8A78;
  --line: #E1E5DA;
  --card: #FFFFFF;
  --sage: #3E7C5A;
  --sage-light: #DDE9E0;
  --sage-mid: #EAF1EB;
  --sage-dark: #2E5D42;
  --clay: #C2673F;
  --gold: #B0821F;
  --blue: #3D7A9E;
  --plum: #8A5A86;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', 'Pretendard Variable', -apple-system, 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}
a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 헤더 */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  max-width: 720px; margin: 0 auto; padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.logo {
  font-size: 21px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--sage-light);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.header-cta {
  background: var(--sage); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; display: inline-block; white-space: nowrap;
}
.header-cta:hover { background: var(--sage-dark); text-decoration: none; }

/* 컨테이너 */
.container { max-width: 720px; margin: 0 auto; padding: 32px 20px; }
.container-narrow { max-width: 640px; margin: 0 auto; padding: 32px 20px; }

/* 히어로 */
.hero {
  background: var(--sage); color: #fff; padding: 48px 24px;
  border-radius: 24px; margin-bottom: 32px; text-align: center;
}
.hero-tag { font-size: 14px; font-weight: 700; letter-spacing: 0.05em; color: #CFE4D6; margin-bottom: 8px; }
.hero-title { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.hero-sub { font-size: 18px; color: #DDE9E0; line-height: 1.6; }

/* 섹션 */
.section { margin-bottom: 40px; }
.section-title {
  font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--sage-light);
}
.section-lead { font-size: 18px; color: var(--muted); margin-bottom: 20px; }
.section p { margin-bottom: 16px; color: var(--ink-soft); }
.section strong { color: var(--sage-dark); font-weight: 800; }

/* 카드 */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; margin-bottom: 16px;
}
.card-title {
  font-size: 20px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.card-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
}
.icon-clay { background: var(--clay); }
.icon-gold { background: var(--gold); }
.icon-blue { background: var(--blue); }
.icon-plum { background: var(--plum); }
.icon-sage { background: var(--sage); }

/* 습관 목록 */
.habit-list { display: flex; flex-direction: column; gap: 14px; }
.habit-item {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; display: flex; gap: 16px;
}
.habit-num {
  min-width: 40px; height: 40px; border-radius: 12px;
  background: var(--sage-light); color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.habit-content h3 { font-size: 19px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.habit-content p { font-size: 16px; color: var(--ink-soft); }

/* FAQ */
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  padding: 20px; font-size: 18px; font-weight: 800; color: var(--ink);
  display: flex; align-items: flex-start; gap: 12px;
}
.faq-q::before {
  content: 'Q'; color: var(--sage); font-weight: 800; font-size: 20px; min-width: 22px;
}
.faq-a {
  padding: 0 20px 20px 54px; font-size: 16px; color: var(--ink-soft); line-height: 1.7;
}
.faq-a::before {
  content: 'A'; color: var(--muted-2); font-weight: 800; font-size: 18px;
  display: inline-block; margin-left: -32px; margin-right: 10px; min-width: 22px;
}

/* CTA 박스 */
.cta-box {
  background: var(--sage); color: #fff; padding: 28px 24px;
  border-radius: 20px; text-align: center; margin: 32px 0;
}
.cta-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.cta-box p { color: #CFE4D6; margin-bottom: 20px; font-size: 16px; }
.cta-btn {
  background: #fff; color: var(--sage); padding: 14px 32px; border-radius: 999px;
  font-size: 17px; font-weight: 800; display: inline-block;
}
.cta-btn:hover { background: var(--sage-light); text-decoration: none; }

/* 광고 자리 */
.ad-slot {
  width: 100%; display: flex; justify-content: center;
  padding: 24px 0; margin: 24px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: 90px; background: transparent;
}
.ad-inline {
  width: 100%; display: flex; justify-content: center;
  padding: 20px 0; min-height: 50px;
}

/* 푸터 */
.site-footer {
  background: var(--bg-warm); padding: 32px 20px 40px; margin-top: 60px;
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: 720px; margin: 0 auto; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.footer-links a { color: var(--muted); font-weight: 700; font-size: 15px; }
.footer-note { font-size: 14px; color: var(--muted-2); line-height: 1.6; }
.footer-note strong { color: var(--ink-soft); }

/* 목차 (guide/games에서 사용) */
.toc {
  background: var(--sage-mid); border-radius: 16px; padding: 20px;
  margin-bottom: 32px;
}
.toc-title { font-size: 15px; font-weight: 800; color: var(--sage-dark); margin-bottom: 12px; letter-spacing: 0.02em; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-list a { font-size: 16px; font-weight: 700; color: var(--ink-soft); }
.toc-list a:hover { color: var(--sage); }
.toc-list a::before { content: '→ '; color: var(--muted-2); }

/* 강조 박스 */
.highlight-box {
  background: var(--sage-mid); border-left: 4px solid var(--sage);
  padding: 18px 20px; border-radius: 12px; margin: 20px 0;
}
.highlight-box strong { color: var(--sage-dark); }

/* 모바일 */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: 36px 20px; }
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 16px; }
  .section-title { font-size: 21px; }
  .card, .habit-item, .faq-q, .faq-a { padding: 18px; }
  .faq-a { padding-left: 46px; }
  .container, .container-narrow { padding: 24px 16px; }
  .cta-box { padding: 24px 18px; }
  .header-inner { padding: 12px 16px; }
  .logo { font-size: 18px; }
  .header-cta { padding: 8px 14px; font-size: 13px; }
}
