/*!
 * SurveyQ Platform © 2025 SocialBrain
 * 콘텐츠 페이지 공용 스타일 — index.html 의 디자인 토큰을 그대로 따른다.
 */

:root {
    --primary: #1E3A5F;
    --primary-hover: #15304D;
    --primary-light: #E8EEF4;
    --accent: #0EA5E9;
    --accent-dark: #0284C7;
    --accent-light: #E0F2FE;
    --success: #10B981;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --shadow-sm: 0 1px 2px rgba(30, 58, 95, 0.05);
    --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.08);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --ease: cubic-bezier(0.33, 1, 0.68, 1);
    --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
}

a { color: var(--accent-dark); }

/* ---------- 네비게이션 ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}
.nav-inner {
    max-width: 1080px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
    width: 32px; height: 32px; border-radius: var(--radius-md);
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 17px;
}
.logo-text { font-weight: 800; font-size: 19px; color: var(--primary); letter-spacing: -0.02em; }
.logo-text-q { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-link {
    text-decoration: none; color: var(--text-secondary);
    font-size: 15px; font-weight: 600; transition: color 150ms var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent-dark); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius-md);
    font-size: 15px; font-weight: 700; text-decoration: none;
    border: none; cursor: pointer; transition: all 150ms var(--ease);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--border-medium); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- 레이아웃 ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--border-light); }
.breadcrumb { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); }
h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; color: var(--primary); }
.lead { margin-top: 16px; font-size: 18px; color: var(--text-secondary); max-width: 720px; }

section.block { padding: 48px 0; border-bottom: 1px solid var(--border-light); }
section.block:last-of-type { border-bottom: none; }
h2 { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); margin-bottom: 8px; }
h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
p { color: var(--text-secondary); margin-bottom: 14px; }
.section-desc { margin-bottom: 24px; }

ul.plain, ol.plain { padding-left: 20px; margin-bottom: 16px; }
ul.plain li, ol.plain li { color: var(--text-secondary); margin-bottom: 8px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
}
.card p:last-child { margin-bottom: 0; }
.card-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 999px;
    background: var(--accent-light); color: var(--accent-dark);
    font-size: 13px; font-weight: 800; margin-bottom: 10px;
}

/* min-width 가 없으면 .tbl-scroll 이 있어도 표가 스크롤되지 않고 찌그러진다.
   좁은 화면에서는 가로 스크롤로 넘기는 편이 읽힌다. */
table.tbl { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
table.tbl th, table.tbl td {
    text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}
table.tbl th { background: var(--bg-secondary); color: var(--primary); font-weight: 700; white-space: nowrap; }
table.tbl td { color: var(--text-secondary); }
.tbl-scroll { overflow-x: auto; }

details.faq {
    border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    padding: 16px 20px; margin-bottom: 12px; background: var(--bg-card);
}
details.faq summary {
    cursor: pointer; font-weight: 700; color: var(--primary); font-size: 16px;
    list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: 'Q. '; color: var(--accent); font-weight: 800; }
details.faq[open] summary { margin-bottom: 10px; }
details.faq p:last-child { margin-bottom: 0; }

.cta {
    margin: 48px 0; padding: 36px; border-radius: var(--radius-xl);
    background: var(--primary-light); border: 1px solid var(--border-light);
}
.cta h2 { margin-bottom: 10px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.note {
    border-left: 3px solid var(--accent); background: var(--bg-secondary);
    padding: 14px 18px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 15px; color: var(--text-secondary); margin-bottom: 16px;
}

/* ---------- 푸터 ---------- */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-light); padding: 44px 0 32px; margin-top: 32px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 { font-size: 14px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-secondary); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--accent-dark); }
.footer-bottom {
    margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-light);
    font-size: 13px; color: var(--text-muted);
}

@media (max-width: 720px) {
    h1 { font-size: 29px; }
    h2 { font-size: 22px; }
    .nav-menu { gap: 14px; }
    .nav-menu .nav-link { display: none; }
    .page-head { padding: 40px 0 28px; }
    .cta { padding: 26px; }
}
