:root {
    --bg: #F9F8F6;
    --surface: #FFFFFF;
    --accent: #5A544E;
    --text-main: #0A0908;
    --text-dim: #2A2520;
    --border: #E5E2DF;
    --glass: rgba(255, 255, 255, 0.85);
}

* { 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; /* keep-all로도 못 끊는 긴 단어의 넘침 방지 */
}

.eyebrow {
    font-family: "Pretendard", sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.eyebrow::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--accent);
}

.hairline-v { width: 1px; height: 60px; background: var(--border); margin: 40px auto; }

nav {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 80px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 0.5px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 60px;
    z-index: 1000;
}
.logo { font-weight: 600; font-size: 16px; letter-spacing: 0.05em; color: var(--text-main); }
.nav-links { display: flex; gap: 48px; }
.nav-links a { position: relative; text-decoration: none; color: var(--text-dim); font-size: 13px; font-weight: 400; transition: color .3s ease; }
.nav-links a:hover { color: var(--text-main); }
.nav-links a::after {
    content: '';
    position: absolute; left: 0; bottom: -8px;
    width: 100%; height: 1px;
    background: var(--text-main);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s ease;
}
.nav-links a.active { color: var(--text-main); font-weight: 500; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-tel { color: var(--text-main); font-size: 13px; font-weight: 600; text-decoration: none; letter-spacing: 0.03em; }
.nav-cta {
    background: var(--text-main); color: #FFF;
    padding: 10px 24px; font-size: 12px; font-weight: 500;
    text-decoration: none; letter-spacing: 0.02em;
}

section.hero {
    position: relative;
    padding-top: 180px; padding-bottom: 120px;
    width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding-left: 5%; padding-right: 5%;
}
.hero-text h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.25; font-weight: 600; letter-spacing: -0.02em;
    margin-bottom: 40px; color: var(--text-main);
}
.hero-text h1 span { font-weight: 600; color: var(--accent); }
.hero-text p {
    font-size: 18px; color: var(--text-dim);
    max-width: 600px; margin: 0 auto 48px; font-weight: 500;
}
.hero-visual-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    padding: 48px;
    width: 100%; max-width: 700px;
    margin: 60px auto 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}
.time-diff { display: flex; flex-direction: column; gap: 32px; }
.time-row { display: flex; justify-content: space-between; align-items: center; }
.bar-container { flex-grow: 1; margin: 0 40px; height: 1px; background: var(--border); position: relative; }
.bar-fill { position: absolute; left: 0; top: -0.5px; height: 2px; background: var(--accent); }

.cta-button {
    display: inline-block;
    background: transparent; color: var(--text-main);
    padding: 16px 48px;
    border: 1px solid var(--text-main);
    font-weight: 500; font-size: 15px;
    text-decoration: none;
    transition: all .3s ease;
    cursor: pointer; font-family: inherit;
}
.cta-button:hover { background: var(--text-main); color: #FFF; }

.block-section {
    padding: 120px 5%;
    max-width: 1200px; margin: 0 auto;
    border-top: 0.5px solid var(--border);
}
.block-section h2 { font-size: 32px; font-weight: 400; margin-top: 24px; color: var(--text-main); text-wrap: balance; }

.point-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
    margin-top: 80px;
    border: 0.5px solid var(--border);
}
.point-card {
    background: var(--surface);
    padding: 60px 40px;
    display: flex; flex-direction: column; gap: 24px;
}
.point-card h3 { font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--text-main); }
.point-card p { font-size: 14px; color: var(--text-dim); line-height: 1.8; font-weight: 500; }
.point-card .fig { font-size: 26px; font-weight: 500; color: var(--accent); letter-spacing: -0.01em; }
.point-card .fig small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; color: var(--text-dim); }

/* 사례 노트 */
.case-list { margin-top: 80px; border-top: 0.5px solid var(--border); }
.case-row {
    display: grid; grid-template-columns: 140px 1fr 200px;
    gap: 40px; align-items: baseline;
    padding: 40px 0;
    border-bottom: 0.5px solid var(--border);
}
.case-row .no { font-size: 11px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; }
.case-row .desc { font-size: 15px; color: var(--text-dim); font-weight: 500; line-height: 1.8; }
.case-row .result { font-size: 14px; font-weight: 600; color: var(--text-main); text-align: right; }

/* FAQ */
details {
    border-bottom: 0.5px solid var(--border);
    background: transparent;
}
summary {
    list-style: none; cursor: pointer;
    padding: 28px 8px;
    font-weight: 500; font-size: 16px; color: var(--text-main);
    display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 300; font-size: 20px; }
details[open] summary::after { content: "–"; }
details .a { padding: 0 8px 28px; font-size: 14px; color: var(--text-dim); font-weight: 500; line-height: 1.9; max-width: 760px; }

/* 폼 */
.report-form {
    background: var(--surface);
    border: 0.5px solid var(--border);
    padding: 56px;
    max-width: 560px; margin: 80px auto 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
    text-align: left;
}
.report-form label {
    display: block;
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 10px; font-weight: 500;
}
.report-form input {
    width: 100%;
    background: var(--bg);
    border: 0.5px solid var(--border);
    color: var(--text-main);
    padding: 15px 16px; font-size: 15px; font-family: inherit;
}
.report-form input:focus { outline: 1px solid var(--text-main); border-color: var(--text-main); }
.field { margin-bottom: 28px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button {
    background: var(--bg);
    border: 0.5px solid var(--border);
    color: var(--text-dim);
    padding: 14px 0; font-size: 14px; font-family: inherit; cursor: pointer;
    transition: all .2s ease; font-weight: 500;
}
.seg button.on { background: var(--text-main); color: #FFF; border-color: var(--text-main); }
.msg { display: none; margin-top: 16px; font-size: 13.5px; font-weight: 600; text-align: center; }
.msg.ok { display: block; color: var(--accent); }
.msg.err { display: block; color: #A33B2E; }

/* 칼럼 목록 (case-list 재사용 형태) */
.insight-row { text-decoration: none; transition: background .2s ease; }
.insight-row:hover { background: var(--surface); }
.insight-row .more { font-size: 12px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }

/* 게시글 (posts/) */
.post-main { max-width: 860px; margin: 0 auto; padding: 160px 5% 100px; }
.post-main h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; margin: 20px 0 12px; color: var(--text-main); text-wrap: balance; }
.post-meta { font-size: 12px; color: var(--text-dim); letter-spacing: 0.05em; margin-bottom: 48px; }
.post-main h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin: 48px 0 16px; color: var(--text-main); }
.post-main p, .post-main li { font-size: 15.5px; color: var(--text-dim); font-weight: 500; 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; }
.post-main th, .post-main td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; color: var(--text-dim); font-weight: 500; }
.post-main th { color: var(--text-main); font-weight: 600; background: var(--surface); }
.post-main a { color: var(--text-main); text-decoration: underline; text-underline-offset: 3px; }
.post-main a.cta-button { text-decoration: none; }
.post-main a.cta-button:hover { color: #FFF; }
.post-cta {
    margin-top: 56px; padding: 40px 32px;
    background: var(--surface); border: 0.5px solid var(--border);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}
.post-cta p { margin-bottom: 20px; }
.post-related { margin-top: 48px; padding-top: 28px; border-top: 0.5px solid var(--border); }
.post-related h2 { margin-top: 0; font-size: 16px; }
.post-related a { display: block; padding: 8px 0; font-size: 14.5px; }

footer { padding: 100px 5% 60px; border-top: 0.5px solid var(--border); background: var(--surface); }

.mbar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
}
.mbar a {
    flex: 1; text-align: center; padding: 16px;
    font-weight: 600; font-size: 14px; text-decoration: none;
    letter-spacing: 0.02em;
}
.mbar .m-tel { background: var(--surface); color: var(--text-main); border-top: 0.5px solid var(--border); }
.mbar .m-cta { background: var(--text-main); color: #FFF; }

/* 데스크톱 레이아웃 전용 강제 줄바꿈: 모바일에선 자연 줄바꿈에 맡김 */
@media (max-width: 968px) {
    .br-pc { display: none; }
}

@media (max-width: 968px) {
    nav { padding: 0 24px; }
    .nav-links, .nav-tel { display: none; }
    /* 360px 화면에서 "학점은행제 플래너"가 통째로 한 줄에 들어가는 크기 (40px 고정 시 어절 단위로 쪼개짐) */
    .hero-text h1 { font-size: clamp(30px, 8.5vw, 44px); }
    /* 카드 패딩·바 여백 축소: 기본값에선 그래프 바가 한 자릿수 px로 찌그러짐 */
    .hero-visual-card { padding: 32px 24px; }
    .bar-container { margin: 0 16px; }
    .point-grid { grid-template-columns: 1fr; }
    .case-row { grid-template-columns: 1fr; gap: 12px; }
    .case-row .result { text-align: left; }
    .block-section { padding: 80px 5%; }
    .report-form { padding: 36px 24px; }
    .mbar { display: flex; }
    body { padding-bottom: 56px; }
    section.hero { padding-top: 140px; padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 뷰포트 밖 섹션은 렌더링 지연 (히어로는 .block-section이 없어 제외됨) */
@supports (content-visibility: auto) {
    .block-section { content-visibility: auto; contain-intrinsic-size: auto 800px; }
}

/* ===== Tailwind CDN 제거 후 대체 유틸리티 (본문에서 실제 사용하는 클래스만) ===== */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mt-6 { margin-top: 24px; }
