/* 기능 안내 페이지 공용 CSS — 빌드 때 landing/guide.css로 복사된다.
   토큰 값은 landing/index.html의 최종 적용값과 같아야 한다(다크: DESIGN.md, 라이트: 랜딩 화이트·딥그린). */
:root {
  color-scheme: dark;
  --bg: #12182B; --surface: #1E2640; --surface-high: #2A3353;
  --gold: #E5C185; --button: #E5C185; --on-button: #12182B; --accent: #E5C185;
  --text: #FFFFFF; --text-sub: #A5A9B4; --link: #5DADE2; --heading: #FFFFFF;
  --line: rgba(229, 193, 133, .22); --header: rgba(18, 24, 43, .94); --shadow: rgba(0, 0, 0, .24);
  --footer-bg: #05070F; --footer-ink: #565D70; --footer-strong: #727890;
  --hero-bg: linear-gradient(135deg, #1E2640 0%, #12182B 100%);
  --sans: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF; --surface: #F8FAF9; --surface-high: #E5EBE8;
  --gold: #123E34; --button: #123E34; --on-button: #FFFFFF; --accent: #E67E22;
  --text: #1F2937; --text-sub: #5F6B66; --link: #123E34; --heading: #123E34;
  --line: #E5EBE8; --header: rgba(255, 255, 255, .95); --shadow: rgba(18, 62, 52, .09);
  --footer-bg: #F3F5F4; --footer-ink: #AFB7B3; --footer-strong: #97A19C;
  --hero-bg: linear-gradient(135deg, #0E3028 0%, #1A5346 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.75; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px 20px; background: var(--button); color: var(--on-button); z-index: 30; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }

/* 테마별 이미지: 라이트가 기본이다 */
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }

/* 헤더 — 랜딩 헤더와 같은 모양 */
header.site { position: sticky; top: 0; z-index: 10; background: var(--header); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.bar { max-width: 1200px; margin: 0 auto; min-height: 72px; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; color: var(--heading); text-decoration: none; }
.logo img { width: 44px; height: 44px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text-sub); cursor: pointer; font-size: 14px; }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 18px; height: 18px; color: var(--gold); }
.theme-moon, :root[data-theme="light"] .theme-sun { display: none; }
:root[data-theme="light"] .theme-moon { display: block; }
.btn-nav { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--button); color: var(--on-button); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn-nav:hover { filter: brightness(.92); }

/* 첫 화면 — 랜딩 히어로와 같은 그라디언트 */
.hero { background: var(--hero-bg); color: #FFFFFF; padding: 56px 0; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.crumb { font-size: 14px; color: rgba(255, 255, 255, .72); margin-bottom: 12px; }
.crumb a { color: inherit; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.3; font-weight: 800; letter-spacing: -.035em; margin-bottom: 16px; }
.summary { font-size: 17px; color: rgba(255, 255, 255, .86); margin-bottom: 28px; max-width: 34em; }
.hero-shot img { max-height: 520px; width: auto; margin: 0 auto; border-radius: 24px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .5); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .25s var(--ease); }
.btn-primary { background: #FFFFFF; color: #123E34; }
:root[data-theme="dark"] .btn-primary { background: #E5C185; color: #12182B; }
.btn-secondary { border: 1px solid rgba(255, 255, 255, .5); color: #FFFFFF; }
.btn:hover { transform: translateY(-2px); }

/* 본문 */
.prose { max-width: 760px; padding-top: 56px; }
.prose h2, .block h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.4; font-weight: 800; letter-spacing: -.03em; color: var(--heading); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; color: var(--heading); margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--heading); }
.prose blockquote { margin: 20px 0; padding: 16px 20px; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 16px 16px 0; color: var(--text); }
.shot { display: flex; justify-content: center; margin: 24px 0; }
.shot img { max-height: 480px; width: auto; border-radius: 20px; border: 1px solid var(--line); }

.block { max-width: 760px; }
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.case h3 { font-size: 17px; color: var(--heading); margin-bottom: 8px; line-height: 1.5; }
.case p { color: var(--text-sub); font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; min-height: 44px; font-weight: 600; color: var(--text); }
.faq summary:hover { color: var(--gold); }
.faq details p { color: var(--text-sub); padding: 0 0 18px; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.related-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--text); background: var(--surface); }
.related-card strong { color: var(--heading); }
.related-card span { color: var(--text-sub); font-size: 14px; }
.related-card:hover { border-color: var(--gold); }
.download { margin-top: 56px; margin-bottom: 56px; padding: 40px 32px; border-radius: 24px; background: var(--hero-bg); color: #FFFFFF; text-align: center; max-width: 1032px; }
.download h2 { color: #FFFFFF; margin-top: 0; }
.download p { color: rgba(255, 255, 255, .86); margin-bottom: 24px; }
.download .cta-row { justify-content: center; }

/* 면책 문구와 푸터 — 랜딩 푸터와 같은 모양 */
.disclaimer { max-width: 1032px; margin: 0 auto 24px; padding: 0 24px; font-size: 13px; color: var(--text-sub); text-align: center; }
footer { background: var(--footer-bg); color: var(--footer-ink); padding: 40px 0; font-size: 12px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
footer .brand { color: var(--footer-strong); font-weight: 600; font-size: 21px; text-decoration: none; }
.links, .guide-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.links a, .guide-links a, footer p a { min-height: 44px; display: inline-flex; align-items: center; color: var(--footer-ink); text-decoration: none; }
.links a:hover, .guide-links a:hover, footer p a:hover { color: var(--footer-strong); }
.guide-links { margin-bottom: 12px; }
footer p { margin-bottom: 6px; }
footer .footer-contact { margin-bottom: 14px; color: var(--footer-strong); }

@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .bar { padding: 10px 16px; }
  .logo { font-size: 1.15rem; }
  .theme-label { display: none; }
  .hero { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-shot img { max-height: 420px; }
  .cases { grid-template-columns: 1fr; }
  .download { margin: 40px 16px; padding: 32px 20px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .links, .guide-links { gap: 0 12px; }
  .disclaimer { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
