/* ============================================================
   GISAPLAN — 응시자격 설계 시스템 v2
   아트디렉션: 엔지니어링 스펙시트 / 대시보드
   - 각진 모서리(0~4px), 1px 라인, 모노스페이스 데이터 표기
   - 좌측 정렬 · 섹션 인덱스 · 판정표/케이스 로그/파이프라인
   ============================================================ */

:root {
    --bg: #0B0F14;
    --surface: #121820;
    --surface-2: #0E141B;
    --accent: #4FA3E3;
    --ok: #46C288;
    --warn: #E8B44C;
    --danger: #E06A5A;
    --text-main: #E9EEF3;
    --text-body: #B9C5CF; /* 본문 문단용 — 다크 배경 대비 약 9:1 */
    --text-dim: #8DA0B0;  /* 캡션·라벨 전용 (대비 약 6.8:1) */
    --border: rgba(255, 255, 255, 0.10);
    --line: #1D2732;
    --line-soft: rgba(255, 255, 255, 0.06);
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

::selection { background: var(--accent); color: var(--bg); }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* 공통 레이아웃 */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* 모노 라벨 (발행 글에서도 사용 — 클래스명 유지) */
.metadata {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}
.metadata::before {
    content: '';
    width: 10px; height: 2px;
    background: var(--accent);
}

/* ============================================================
   NAV — 상단 풀와이드 얇은 바 (s1의 플로팅 필과 정반대)
   ============================================================ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 58px;
    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(20px, 4vw, 40px);
    z-index: 1000;
}
.logo {
    font-weight: 800; font-size: 16px; letter-spacing: -0.02em;
    color: var(--text-main);
    display: inline-flex; align-items: center; gap: 10px;
    white-space: nowrap;
}
.logo-tag {
    font-family: var(--mono);
    font-size: 9px; font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--accent);
    border: 1px solid rgba(79, 163, 227, 0.45);
    padding: 2px 6px;
    border-radius: 2px;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 13px; font-weight: 500;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover { color: var(--text-main); border-color: var(--line); }
.nav-links a.active { color: var(--accent); border-color: rgba(79, 163, 227, 0.4); }
.nav-links a::after { content: none; }
.nav-idx {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--accent);
    vertical-align: 2px;
    margin-right: 5px;
    opacity: .85;
}
.nav-cta {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 2px;
    display: inline-flex; align-items: center;
    min-height: 44px;
    padding: 0 20px;
    font-size: 12.5px; font-weight: 700; text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }

/* ============================================================
   HERO — 좌측 텍스트 + 우측 응시자격 판정표
   ============================================================ */
section.hero {
    position: relative;
    padding: 168px 0 110px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse 70% 55% at 78% 20%, rgba(79, 163, 227, 0.10), transparent 62%),
        linear-gradient(180deg, #0D1219 0%, var(--bg) 100%);
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.5) 60%, transparent 95%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.5) 60%, transparent 95%);
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}
.sys-line {
    font-family: var(--mono);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--accent);
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 26px;
    text-transform: uppercase;
}
.sys-line::before { content: ''; width: 26px; height: 2px; background: var(--accent); }
.sys-line .sys-dim { color: var(--text-dim); letter-spacing: 0.14em; }
.hero-copy h1 {
    font-size: clamp(33px, 4.4vw, 56px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-lead {
    font-size: 16.5px;
    color: var(--text-body);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.75;
}
.hero-lead strong { color: var(--text-main); font-weight: 600; }
.hero-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; }
.hero-note {
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.05em;
    color: var(--text-dim);
}
.hero-note b { color: var(--ok); font-weight: 600; }

/* 판정표 (스펙 테이블) */
.spec-sheet {
    position: relative;
    background: rgba(14, 20, 27, 0.9);
    border: 1px solid var(--line);
    border-radius: 2px;
}
.spec-sheet::before, .spec-sheet::after {
    content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.spec-sheet::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.spec-sheet::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.spec-head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.spec-title { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.spec-ref { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--text-dim); text-align: right; }
.spec-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table { width: 100%; min-width: 320px; border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td {
    padding: 11px 18px;
    text-align: left;
    border-top: 1px solid var(--line-soft);
    vertical-align: top;
}
.spec-table thead th {
    font-family: var(--mono);
    font-size: 9.5px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-dim);
    border-top: 0;
    padding-top: 13px; padding-bottom: 9px;
}
.spec-table tbody th { font-weight: 500; color: var(--text-dim); font-size: 12.5px; white-space: nowrap; }
.spec-table tbody td { color: var(--text-main); }
.spec-table .hl td {
    font-family: var(--mono);
    font-weight: 600; font-size: 14px;
    color: var(--accent);
    background: rgba(79, 163, 227, 0.07);
}
.spec-table .hl th { color: var(--text-main); font-weight: 700; background: rgba(79, 163, 227, 0.07); }
.badge-ok {
    font-family: var(--mono);
    font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
    color: var(--ok);
    border: 1px solid rgba(70, 194, 136, 0.45);
    border-radius: 2px;
    padding: 1px 6px;
    display: inline-block;
}
.spec-foot {
    padding: 12px 18px 14px;
    border-top: 1px solid var(--line);
    font-size: 11px; color: var(--text-dim); line-height: 1.7;
}

/* ============================================================
   버튼 — 각진 사각 + 호버 색 반전
   ============================================================ */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 15px 30px;
    font-weight: 700; font-size: 15px;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .18s ease, color .18s ease;
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 15px 30px;
    font-weight: 600; font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   섹션 공통 — 인덱스 헤더 + 수평 룰
   ============================================================ */
.sec { padding: 104px 0 110px; border-top: 1px solid var(--line); }
.sec-alt { background: var(--surface-2); }
.sec-head {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px 48px;
    align-items: start;
    margin-bottom: 54px;
}
.sec-no {
    font-family: var(--mono);
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent);
    padding-top: 8px;
    display: flex; flex-direction: column; gap: 8px;
}
.sec-no::after { content: ''; width: 26px; height: 2px; background: var(--accent); }
.sec-head h2 {
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.28;
    text-wrap: balance;
}
.sec-note { grid-column: 2; font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.sec-foot { margin-top: 26px; font-size: 11.5px; color: var(--text-dim); }

/* ============================================================
   PAIN — 번호 진단 리스트 (카드 금지)
   ============================================================ */
.diag-list { list-style: none; border-bottom: 1px solid var(--line); }
.diag-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 150px;
    gap: 20px 32px;
    padding: 36px 18px 36px 0;
    border-top: 1px solid var(--line);
    position: relative;
    transition: background .2s ease;
}
.diag-item::before {
    content: ''; position: absolute; left: -18px; top: 0; bottom: 0;
    width: 2px; background: transparent;
    transition: background .2s ease;
}
.diag-item:hover { background: rgba(79, 163, 227, 0.03); }
.diag-item:hover::before { background: var(--accent); }
.diag-no {
    font-family: var(--mono);
    font-size: 30px; font-weight: 600;
    color: var(--accent);
    line-height: 1;
    padding-top: 4px;
}
.diag-no small { display: block; font-size: 9px; letter-spacing: 0.16em; color: var(--text-dim); margin-top: 8px; font-weight: 600; }
.diag-body h3 { font-size: 18.5px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.45; }
.diag-body p { font-size: 14.5px; color: var(--text-body); line-height: 1.8; max-width: 640px; }
.diag-tag {
    font-family: var(--mono);
    font-size: 9.5px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-dim);
    text-align: right;
    padding-top: 8px;
}
.diag-tag b { color: var(--warn); font-weight: 600; display: block; margin-top: 6px; }

/* ============================================================
   RECORDS — 케이스 로그 (표/파일 스타일)
   ============================================================ */
.case-log { border: 1px solid var(--line); border-radius: 2px; background: var(--bg); }
.sec-alt .case-log { background: var(--surface-2); }
.case-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px 36px;
    padding: 30px 28px;
    border-top: 1px solid var(--line);
}
.case-row:first-child { border-top: 0; }
.case-meta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.case-id {
    font-family: var(--mono);
    font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
    color: var(--accent);
}
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tags span {
    font-family: var(--mono);
    font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em;
    color: var(--text-dim);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 2px 7px;
}
.case-status {
    font-family: var(--mono);
    font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em;
    color: var(--ok);
}
.case-body blockquote { font-size: 14.5px; line-height: 1.85; color: var(--text-main); font-weight: 400; }
.case-who {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-size: 12px; color: var(--text-dim);
}
.case-who b { color: var(--text-main); font-weight: 600; }
.case-next { background: rgba(79, 163, 227, 0.05); }
.case-next .case-body p { font-size: 14.5px; color: var(--text-body); line-height: 1.8; margin-bottom: 18px; }
.case-next .case-body p strong { color: var(--text-main); }

/* ============================================================
   PROCESS — 가로 파이프라인
   ============================================================ */
.pipeline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    counter-reset: step;
}
.step {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--bg);
    padding: 30px 28px 26px;
    display: flex; flex-direction: column;
}
.step + .step { border-left: 0; }
.step-no {
    font-family: var(--mono);
    font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
    color: var(--accent);
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
}
.step-no::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.step h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-body); line-height: 1.8; flex: 1; }
.step-out {
    margin-top: 22px; padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-family: var(--mono);
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em;
    color: var(--ok);
}
.step-arrow {
    position: absolute; top: 30px; right: -8px; z-index: 2;
    font-family: var(--mono); font-size: 13px; font-weight: 600;
    color: var(--accent);
    background: var(--bg);
    line-height: 1;
    padding: 1px 0;
}

/* ============================================================
   FAQ — 보더 라인 테이블형 (질문·답변 텍스트는 JSON-LD와 일치 유지)
   ============================================================ */
.faq-list { border: 1px solid var(--line); border-radius: 2px; counter-reset: q; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:first-child { border-top: 0; }
.faq-list summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 32px;
    align-items: baseline;
    gap: 8px;
    padding: 22px 24px;
    font-weight: 600; font-size: 15.5px; color: var(--text-main);
    transition: background .15s ease;
}
.faq-list summary:hover { background: rgba(79, 163, 227, 0.04); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
    counter-increment: q;
    content: "Q." counter(q, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
    color: var(--accent);
}
.faq-list summary::after {
    content: "+";
    font-family: var(--mono);
    font-size: 17px; font-weight: 400;
    color: var(--accent);
    text-align: right;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details[open] summary { background: rgba(79, 163, 227, 0.04); }
.faq-list .a {
    padding: 2px 56px 26px 104px;
    font-size: 14px; color: var(--text-body);
    line-height: 1.9;
    max-width: 860px;
}

/* ============================================================
   CALC — 진단 폼
   ============================================================ */
.calc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
}
.calc-copy p { font-size: 15.5px; color: var(--text-body); line-height: 1.85; margin-bottom: 22px; max-width: 520px; }
.calc-copy strong { color: var(--text-main); font-weight: 700; }
.calc-hours {
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.05em;
    color: var(--text-dim);
    display: flex; align-items: center; gap: 10px;
}
.calc-hours::before { content: ''; width: 10px; height: 2px; background: var(--ok); }

.form-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 34px 30px 30px;
}
.form-card::before, .form-card::after {
    content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.form-card::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.form-card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.form-card .field label {
    display: block;
    font-family: var(--mono);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 9px;
}
.form-card input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text-main);
    padding: 13px 14px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color .15s ease;
}
.form-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.form-card input::placeholder { color: rgba(141, 160, 176, 0.45); }
.field { margin-bottom: 20px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text-dim);
    padding: 13px 0;
    min-height: 44px;
    font-size: 13.5px; font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.seg button:hover { border-color: var(--accent); color: var(--text-main); }
.seg button.on {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    border-color: var(--accent);
}
.agree-row {
    display: flex; gap: 9px; align-items: flex-start;
    margin: 4px 0 16px;
    font-size: 12.5px; color: var(--text-dim);
    cursor: pointer; line-height: 1.65;
}
.agree-row input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--accent); flex: none; }
.agree-row a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form-note {
    margin-top: 14px;
    font-size: 12px; letter-spacing: 0.02em;
    color: var(--text-dim);
    text-align: center;
}
.msg { display: none; margin-top: 14px; font-size: 13.5px; font-weight: 600; text-align: center; }
.msg.ok { display: block; color: var(--ok); }
.msg.err { display: block; color: var(--danger); }
.field-err { outline: 2px solid var(--danger) !important; outline-offset: 2px; border-radius: 2px; }

/* ============================================================
   INSIGHT — 발행 글 카드 (publish.js 생성 마크업: .problem-card.insight-card)
   ============================================================ */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.problem-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 28px 26px 24px;
    display: flex; flex-direction: column; gap: 14px;
    position: relative;
    transition: border-color .2s ease;
}
.problem-card::before {
    content: ''; position: absolute; top: -1px; left: -1px; right: -1px;
    height: 2px; background: transparent;
    transition: background .2s ease;
}
.problem-card:hover { border-color: rgba(79, 163, 227, 0.5); }
.problem-card:hover::before { background: var(--accent); }
.problem-card h3 { font-size: 16.5px; font-weight: 700; color: var(--text-main); line-height: 1.5; letter-spacing: -0.02em; }
.problem-card p { font-size: 13.5px; color: var(--text-body); line-height: 1.75; }
.insight-card { text-decoration: none; }
.insight-card .more {
    font-family: var(--mono);
    font-size: 10px; font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}
.list-more { margin-top: 40px; }
.list-more a {
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.08em;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px;
    border-bottom: 1px solid var(--accent);
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}
.list-more a svg { width: 13px; height: 13px; stroke: currentColor; }
.list-more a:hover { color: var(--text-main); border-color: var(--text-main); }

/* ============================================================
   OFFICIAL SOURCES
   ============================================================ */
.sources { padding: 64px 0; border-top: 1px solid var(--line); }
.sources-inner {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px 48px;
}
.sources p { font-size: 13.5px; color: var(--text-body); line-height: 1.8; max-width: 620px; margin-bottom: 18px; }
.sources-links { display: flex; gap: 12px; flex-wrap: wrap; }
.sources-links a {
    font-family: var(--mono);
    font-size: 11.5px; letter-spacing: 0.04em;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 2px;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    cursor: pointer;
    transition: border-color .2s ease;
}
.sources-links a svg { width: 12px; height: 12px; stroke: currentColor; }
.sources-links a:hover { border-color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 64px clamp(20px, 5vw, 48px) 72px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 40px; flex-wrap: wrap;
    max-width: 1200px; margin: 0 auto;
}
.footer-left .logo { margin-bottom: 18px; }
.footer-note { font-size: 12px; color: var(--text-dim); display: flex; flex-direction: column; gap: 7px; }
.footer-note a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer-note a:hover { color: var(--accent); }
.footer-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer-right .svc { font-size: 12px; color: var(--text-dim); }
.footer-right .hours {
    font-family: var(--mono);
    font-size: 10.5px; letter-spacing: 0.1em;
    color: var(--accent);
}

/* ============================================================
   게시글 (posts/) — 발행 글이 쓰는 클래스: 이름 유지
   ============================================================ */
.post-main { max-width: 860px; margin: 0 auto; padding: 140px 5% 90px; }
.post-main h1 { font-size: clamp(27px, 4vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; margin: 16px 0 12px; text-wrap: balance; }
.post-meta { font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em; margin-bottom: 40px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.post-main h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 48px 0 16px; padding-left: 14px; border-left: 3px solid var(--accent); line-height: 1.4; }
.post-main p, .post-main li { font-size: 15.5px; color: var(--text-body); font-weight: 400; line-height: 1.9; }
.post-main p { margin-bottom: 16px; }
.post-main ul, .post-main ol { padding-left: 22px; margin-bottom: 16px; }
.post-main strong, .post-main b { color: var(--text-main); font-weight: 600; }
.post-main table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: 14px; border: 1px solid var(--line); }
.post-main th, .post-main td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; color: var(--text-body); font-weight: 400; }
.post-main th { color: var(--text-main); font-weight: 600; background: var(--surface-2); font-size: 13px; }
.post-main a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-main a.btn-primary { color: var(--bg); text-decoration: none; }
.post-main a.btn-primary:hover { color: var(--accent); }
.post-cta {
    margin-top: 56px; padding: 34px 30px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    text-align: center;
    position: relative;
}
.post-cta::before {
    content: ''; position: absolute; top: -1px; left: -1px; right: -1px;
    height: 2px; background: var(--accent);
}
.post-cta p { margin-bottom: 20px; }
.post-related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-related h2 { margin-top: 0; font-size: 15px; border-left: 0; padding-left: 0; font-family: var(--mono); letter-spacing: 0.06em; }
.post-related a { display: block; padding: 8px 0; font-size: 14.5px; }
.post-hero-img { display: block; width: 100%; height: auto; border-radius: 2px; margin: 22px 0 6px; border: 1px solid var(--line); }

/* 브레드크럼 */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); margin-bottom: 18px; overflow: hidden; white-space: nowrap; font-family: var(--mono); }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .6; }
.crumbs .cur { overflow: hidden; text-overflow: ellipsis; font-family: "Pretendard Variable", Pretendard, sans-serif; }

/* ============================================================
   모바일 하단 바 + 반응형
   ============================================================ */
.mbar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
    border-top: 1px solid var(--line);
}
.mbar a {
    flex: 1; text-align: center; padding: 15px;
    font-weight: 700; font-size: 14.5px; text-decoration: none;
}
.mbar .m-tel { background: var(--bg); color: var(--accent); border-right: 1px solid var(--line); }
.mbar .m-cta { background: var(--accent); color: var(--bg); }

.br-pc { display: inline; }

@media (max-width: 968px) {
    .br-pc { display: none; }
    .nav-links { display: none; }

    section.hero { padding: 118px 0 72px; }
    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .hero-copy h1 { font-size: clamp(29px, 8vw, 42px); }
    .hero-lead { font-size: 15.5px; }

    .sec { padding: 76px 0 82px; }
    .sec-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
    .sec-note { grid-column: 1; }

    .diag-item { grid-template-columns: 52px minmax(0, 1fr); gap: 8px 18px; padding: 28px 12px 28px 0; }
    .diag-no { font-size: 22px; }
    .diag-no small { display: none; }
    .diag-tag { grid-column: 2; text-align: left; padding-top: 4px; }
    .diag-tag b { display: inline; margin-left: 8px; }
    .diag-item::before { left: 0; }
    .diag-item:hover { background: transparent; }

    .case-row { grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }
    .case-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }

    .pipeline { grid-template-columns: 1fr; }
    .step + .step { border-left: 1px solid var(--line); border-top: 0; }
    .step-arrow { top: auto; right: auto; bottom: -9px; left: 28px; transform: rotate(90deg); }

    .faq-list summary { grid-template-columns: 52px minmax(0, 1fr) 24px; padding: 18px 16px; font-size: 14.5px; }
    .faq-list .a { padding: 0 20px 22px 20px; }

    .calc-grid { grid-template-columns: 1fr; gap: 40px; }
    .problem-grid { grid-template-columns: 1fr; }
    .sources-inner { grid-template-columns: 1fr; }

    footer { padding-bottom: 84px; }
    .footer-right { text-align: left; align-items: flex-start; }
    .mbar { display: flex; }
    body { padding-bottom: 52px; }
    .post-main { padding-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* 뷰포트 밖 섹션 렌더링 지연 */
@supports (content-visibility: auto) {
    .sec { content-visibility: auto; contain-intrinsic-size: auto 800px; }
}

/* 히어로 로드 모션 (CSS-only, 절제된 스태거) */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > *, .spec-sheet { animation: rise .55s ease both; }
    .hero-copy > :nth-child(2) { animation-delay: .06s; }
    .hero-copy > :nth-child(3) { animation-delay: .12s; }
    .hero-copy > :nth-child(4) { animation-delay: .18s; }
    .spec-sheet { animation-delay: .22s; }
    @keyframes rise {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ============================================================
   레거시 유틸리티 — 이미 발행된 글(post-s4 템플릿)이 참조.
   클래스명 삭제 금지.
   ============================================================ */
.flex { display: flex; }
.block { display: block; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-x-8 { column-gap: 32px; }
.gap-y-4 { row-gap: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.w-full { width: 100%; }
.w-20 { width: 80px; }
.opacity-30 { opacity: 0.3; }
.text-white { color: #FFFFFF; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.text-\[13px\] { font-size: 13px; }
.text-\[14px\] { font-size: 14px; }
.text-\[24px\] { font-size: 24px; }
.text-\[\#8DA0B0\] { color: #8DA0B0; }
.text-\[\#4FA3E3\] { color: #4FA3E3; }
.bg-\[\#0B0F14\] { background-color: #0B0F14; }
.font-bold { font-weight: 700; }
.font-mono { font-family: var(--mono); }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }
.underline { text-decoration: underline; }
.underline-offset-4 { text-underline-offset: 4px; }
