/* ========================================
   GEO·AEO 페이지 전용 컴포넌트
   dark-theme.css 의 변수(--ink / --accent 등)를 그대로 쓴다.
======================================== */

/* 1. 페이지 안 앵커 내비 (헤더 아래 고정) */
.page-nav {
    position: sticky;
    top: 72px;
    z-index: 900;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.page-nav ul {
    display: flex;
    justify-content: center;
    gap: 34px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.page-nav ul::-webkit-scrollbar { display: none; }

.page-nav a {
    display: block;
    padding: 16px 2px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.page-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* 2. 업종 칩 */
.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
}

.chip {
    padding: 8px 18px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--on-dark-soft);
}

.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.chips-light .chip { border-color: var(--border-strong); color: var(--ink-soft); }
.chips-light .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 3. AI 대화 목업 */
.chat-mock {
    max-width: 620px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.10);
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
}

.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }

.chat-body { padding: 22px 20px 24px; }

.chat-q {
    display: inline-block;
    background: var(--accent-tint);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 14px 14px 4px 14px;
    margin-left: auto;
    margin-bottom: 18px;
}

.chat-q-row { display: flex; justify-content: flex-end; }

.chat-a { font-size: 15px; line-height: 1.9; color: var(--ink-soft); }
.chat-a li { margin-bottom: 9px; list-style: none; }
.chat-a ol { padding: 0; margin: 0 0 16px; }
.chat-a strong { color: var(--ink); }

.chat-miss {
    margin-top: 4px;
    padding: 13px 15px;
    border-left: 3px solid var(--accent);
    background: var(--accent-tint);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--accent-dark);
    border-radius: 0 8px 8px 0;
}

/* 4. 업종별 카드 */
.field-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 28px;
    height: 100%;
    transition: var(--transition);
}

.field-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 22px 42px rgba(0,0,0,.09); }
.field-card h3 { font-size: 21px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.field-card > p { font-size: 15px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 20px; }

.q-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.q-list { list-style: none; padding: 0; margin: 0; }

.q-list li {
    font-size: 14px;
    color: var(--ink-soft);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 13px;
    margin-bottom: 8px;
}

/* 5. 2열 비교 */
.compare-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.cmp {
    border-radius: 16px;
    padding: 32px 30px;
    border: 1px solid var(--border);
    background: var(--card-bg);
}

.cmp.bad { background: var(--bg-alt); }
.cmp.good { border-color: var(--accent); box-shadow: 0 18px 40px var(--accent-glow); }

.cmp-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 5px 11px;
    border-radius: 20px;
    margin-bottom: 16px;
    background: var(--border);
    color: var(--ink-muted);
}

.cmp.good .cmp-tag { background: var(--accent-tint); color: var(--accent); }
.cmp h3 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.cmp .cmp-sub { font-size: 14px; color: var(--ink-muted); margin-bottom: 22px; }
.cmp ul { list-style: none; padding: 0; margin: 0; }

.cmp li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
    padding-left: 26px;
    position: relative;
    margin-bottom: 12px;
}

.cmp.bad li::before { content: '✗'; position: absolute; left: 0; color: var(--ink-muted); font-weight: 800; }
.cmp.good li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.cmp-join {
    max-width: 1000px;
    margin: 34px auto 0;
    text-align: center;
    font-size: 19px;
    line-height: 1.9;
    color: var(--ink-soft);
}

.cmp-join strong { color: var(--ink); }

/* 6. 사례 */
.case-wrap {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 26px;
    max-width: 1120px;
    margin: 0 auto;
    align-items: start;
}

.case-list { display: flex; flex-direction: column; gap: 12px; }

.case-item {
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
}

.case-item.on { border-color: var(--accent); box-shadow: 0 12px 26px var(--accent-glow); }
.case-item .ci-name { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.case-item .ci-num { font-size: 14px; color: var(--ink-muted); font-weight: 600; }
.case-item .ci-num b { color: var(--accent); font-weight: 800; }

.case-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 30px 26px;
}

.case-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.case-big { font-size: 46px; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -1.5px; }
.case-big span { font-size: 22px; font-weight: 800; }
.case-delta { text-align: right; font-size: 14px; color: var(--ink-muted); }
.case-delta b { display: block; font-size: 24px; color: var(--accent); font-weight: 900; }

.case-sub { font-size: 13px; font-weight: 800; letter-spacing: 0.5px; color: var(--ink-muted); margin: 26px 0 14px; }

.engine-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; font-size: 14px; }
.engine-row .en { width: 90px; flex-shrink: 0; font-weight: 700; color: var(--ink); }
.engine-bar { flex: 1; height: 7px; border-radius: 4px; background: var(--border); overflow: hidden; }
.engine-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.engine-row .val { width: 108px; text-align: right; color: var(--ink-muted); font-weight: 600; }
.engine-row .val b { color: var(--ink); font-weight: 800; }

.qtrack { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 18px; }
.qtrack-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 8px 0; color: var(--ink-soft); }
.qtrack-row b { color: var(--accent); font-weight: 800; white-space: nowrap; }

.case-note { max-width: 1120px; margin: 22px auto 0; text-align: center; font-size: 13px; line-height: 1.8; color: var(--ink-muted); }

/* 7. 가격 카드 */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 940px; margin: 0 auto; }

.plan {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 34px 32px 32px;
    display: flex;
    flex-direction: column;
}

.plan.hi { border-color: var(--accent); box-shadow: 0 20px 44px var(--accent-glow); }
.plan-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.5px; color: var(--accent); margin-bottom: 12px; }
.plan h3 { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.45; margin-bottom: 18px; }
.plan .price { font-size: 30px; font-weight: 900; color: var(--ink); letter-spacing: -0.5px; }
.plan .price small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-muted); margin-top: 6px; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }

.plan li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
    padding-left: 26px;
    position: relative;
    margin-bottom: 12px;
}

.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* 8. 채울 자리 표시 (사례 수치 확정 전) */
.todo {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #8a6d00;
    background: #fff4cc;
    border: 1px solid #f0dda0;
    border-radius: 6px;
    padding: 3px 9px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
    .case-wrap { grid-template-columns: 1fr; }
    .case-list { flex-direction: row; overflow-x: auto; }
    .case-item { min-width: 220px; }
}

@media (max-width: 768px) {
    .page-nav { top: 64px; }
    .page-nav ul { gap: 22px; justify-content: flex-start; padding: 0 25px; }
    .page-nav a { font-size: 14px; padding: 13px 2px; }

    .chat-mock { border-radius: 13px; }
    .chat-body { padding: 18px 16px 20px; }

    .compare-2, .plan-grid { grid-template-columns: 1fr; gap: 18px; }
    .cmp, .plan { padding: 26px 22px; }
    .cmp-join { font-size: 16px; }

    .case-panel { padding: 24px 20px 22px; }
    .case-big { font-size: 36px; }
    .engine-row { font-size: 13px; gap: 9px; }
    .engine-row .en { width: 72px; }
    .engine-row .val { width: 92px; }
    .qtrack-row { flex-direction: column; gap: 4px; }
}

/* 앵커로 바로 들어와도 제목이 가리지 않게 */
#problem, #fields, #solution, #cases, #start, #plans, #faq {
    scroll-margin-top: 132px;
}

/* ========================================
   9. INSIGHT — 글 카드 + 본문
======================================== */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.ins-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.ins-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 24px 44px rgba(0,0,0,.12); }
.ins-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark); }
.ins-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.ins-card:hover .ins-thumb img { transform: scale(1.04); }
.ins-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.ins-card h3 { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.5; margin-bottom: 10px; }
.ins-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.75; flex: 1; margin-bottom: 18px; }
.ins-go { font-size: 14px; font-weight: 700; color: var(--accent); }

/* 본문 */
.article { max-width: 760px; margin: 0 auto; }
.article .lead {
    font-size: 20px;
    line-height: 1.95;
    color: var(--ink);
    font-weight: 600;
    padding: 26px 28px;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    margin-bottom: 56px;
}
.article h2 {
    font-size: 27px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.45;
    margin: 56px 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-strong);
}
.article h2:first-of-type { margin-top: 0; }
.article p { font-size: 17px; line-height: 2.0; color: var(--ink-soft); margin-bottom: 20px; }
.article strong { color: var(--ink); font-weight: 700; }
.article code {
    font-family: Consolas, monospace;
    font-size: 15px;
    background: var(--accent-tint);
    color: var(--accent-dark);
    padding: 2px 7px;
    border-radius: 5px;
}
.article pre {
    background: var(--dark);
    color: rgba(255,255,255,.85);
    font-family: Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.9;
    padding: 22px 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 22px;
}
.article blockquote {
    margin: 0 0 22px;
    padding: 20px 24px;
    background: var(--dark);
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.85;
    font-weight: 600;
}
.article-end {
    margin-top: 60px;
    padding: 34px 30px;
    background: var(--accent-tint);
    border: 1px solid rgba(214,24,43,.16);
    border-radius: 14px;
    text-align: center;
}
.article-end p { font-size: 17px; color: var(--ink); margin-bottom: 22px; font-weight: 600; line-height: 1.8; }

@media (max-width: 1024px) { .insight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .insight-grid { grid-template-columns: 1fr; gap: 18px; }
    .ins-body { padding: 20px 20px 22px; }
    .article .lead { font-size: 17px; padding: 20px 20px; margin-bottom: 40px; }
    .article h2 { font-size: 21px; margin: 42px 0 16px; }
    .article p { font-size: 16px; line-height: 1.9; }
    .article pre { font-size: 11.5px; padding: 16px 14px; }
    .article-end { padding: 26px 20px; }
}

/* 본문 안의 표 / 목록 / 체크리스트 */
.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0 26px;
    font-size: 15.5px;
}
.article thead th {
    background: var(--dark);
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 13px 16px;
    line-height: 1.6;
}
.article thead th:first-child { border-radius: 10px 0 0 0; }
.article thead th:last-child { border-radius: 0 10px 0 0; }
.article tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--ink-soft);
    line-height: 1.75;
    vertical-align: top;
}
.article tbody tr:nth-child(even) td { background: var(--bg-alt); }
.article tbody td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

.article ul, .article ol { margin: 0 0 24px; padding-left: 0; list-style: none; }
.article ul li {
    position: relative;
    padding-left: 26px;
    font-size: 17px;
    line-height: 1.95;
    color: var(--ink-soft);
    margin-bottom: 11px;
}
.article ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.article ol { counter-reset: n; }
.article ol li {
    position: relative;
    counter-increment: n;
    padding-left: 34px;
    font-size: 17px;
    line-height: 1.95;
    color: var(--ink-soft);
    margin-bottom: 11px;
}
.article ol li::before {
    content: counter(n);
    position: absolute;
    left: 0;
    top: 4px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 26px 12px;
    margin-bottom: 26px;
}
.check .check-t { font-size: 14px; font-weight: 800; color: var(--accent); margin-bottom: 14px; letter-spacing: .3px; }
.check ul { margin-bottom: 0; }
.check ul li { font-size: 16px; }
.check ul li::before { top: 13px; }

@media (max-width: 768px) {
    .article table { font-size: 13.5px; display: block; overflow-x: auto; white-space: nowrap; }
    .article thead th, .article tbody td { padding: 10px 12px; }
    .article ul li, .article ol li { font-size: 16px; }
    .check { padding: 20px 18px 10px; }
}
