/* SalesBoost RMP — 공통 크롬
   토큰 / 리셋 / 타이포 / 네비 / 버튼 / 섹션 헤더 / 푸터 / 다크 구간 nav 반전.
   solution/index.html과 solution/features/*가 같이 쓴다. 한쪽만 고치지 말 것. */

:root {
    /* SalesBoost BI Colors */
    --blue-1: #0552CC;
    --blue-2: #3D86FA;
    --blue-3: #A0C4FD;
    --blue-4: #D2E3FE;
    --blue-5: #043E9A;
    --blue-tint: #EAF2FE;
    --blue-glow: #7FB2FF;   /* 다크 배경 위 하이라이트 (대비 8.4:1) */
    --green: #BCF354;         /* BI 팔레트 — 이 페이지에서는 안 쓴다(루트·티켓 페이지에 남아 있다) */
    --green-dark: #9ACC3D;
    --black: #000000;
    --navy: #101623;

    /* Neutral gray scale (Toss palette) */
    --gray-50: #F9FAFB;
    --gray-100: #F2F4F6;
    --gray-200: #E5E8EB;
    --gray-300: #B0B8C1;
    --gray-400: #B0B8C1;
    --gray-500: #6B7684;
    --gray-600: #6B7684;
    --gray-700: #333D4B;
    --gray-800: #333D4B;
    --gray-900: #191F28;
    --white: #FFFFFF;

    /* 램프가 300=400 · 500=600 · 700=800 으로 단이 겹쳐 있어 **보조 텍스트용 회색이 없다**.
       `--gray-600`(#6B7684)은 흰 바탕 4.62 지만 --gray-50/100 면 위에서 4.42 로 AA 미달이라
       회색 면 위 보조 텍스트는 전부 이 값을 본다(흰 5.84 / gray-50 5.58 / 블루틴트 5.18).
       기능 페이지에만 있던 `--fp-sub` 를 여기로 올린 것이다 — 푸터·랜딩도 같은 문제였다 */
    --gray-sub: #5C6672;

    /* Flattened legacy gradients (safety net) */
    --gradient-primary: linear-gradient(0deg, var(--blue-1), var(--blue-1));
    --gradient-dark: #101623;

    /* Radius hierarchy */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Neutral shadows */
    --shadow-1: 0 1px 3px rgba(25, 31, 40, 0.06);
    --shadow-2: 0 4px 16px rgba(25, 31, 40, 0.08);
    --shadow-3: 0 16px 40px rgba(25, 31, 40, 0.10);
    --shadow-sm: var(--shadow-1);
    --shadow-md: var(--shadow-2);
    --shadow-cta: var(--shadow-2);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 0.15s;
    --dur-med: 0.4s;
    --dur-reveal: 0.7s;

    /* Fonts */
    --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-number: 'Inter', var(--font-sans);

    /* Spacing */
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    /* 한글이 "지원합니/다."처럼 어절 중간에서 끊기지 않게.
       영문에는 영향이 없고(공백 기준 줄바꿈 유지), 긴 URL 등은 아래로 흘린다 */
    word-break: keep-all;
    overflow-wrap: break-word;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.75rem, 6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 20px; font-weight: 700; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
/* 사이트 헤더. `nav`가 아니라 `body > nav`인 이유 — 본문 안의 breadcrumb도
   `<nav>`라서 요소 셀렉터로 두면 그것까지 position:fixed로 헤더 자리에 올라간다
   (기능 상세 페이지에서 실제로 겪었다). */
body > nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-med) var(--ease-out);
}

nav.scrolled {
    border-bottom-color: var(--gray-100);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img { height: 32px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

/* 접기 직전 구간에서는 항목 간격만 줄여 버틴다 */
@media (min-width: 901px) and (max-width: 1100px) {
    .nav-links { gap: 1.75rem; }
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--blue-1); }

/* 기능 하위 메뉴 — 상세 페이지 셋으로 가는 입구.
   `기능` 자체도 랜딩 `#features` 로 가는 링크다: 손가락에는 hover 가 없으므로
   눌렀을 때 같은 목록을 담은 섹션으로 내려가는 것이 대체 경로가 된다 */
.nav-sub { position: relative; }

.nav-sub > a {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
}

.nav-sub > a::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--dur-fast) var(--ease-out);
}

.nav-sub:hover > a::after,
.nav-sub:focus-within > a::after { transform: translateY(1px) rotate(225deg); }

.nav-sub-list {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 1;
    min-width: 190px;
    margin-top: 22px;
    padding: 0.5rem;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    box-shadow: var(--shadow-3);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out),
                visibility var(--dur-fast);
}

/* 링크에서 목록까지 내려가는 동안 포인터가 빈 자리를 지난다 — 그 사이를 덮어
   두지 않으면 메뉴가 손에서 빠져나간다. 목록이 떠 있을 때만 잡히면 된다 */
.nav-sub-list::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 22px;
}

.nav-sub:hover > .nav-sub-list,
.nav-sub:focus-within > .nav-sub-list {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-sub-list a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.nav-sub-list a:hover {
    background: var(--blue-tint);
    color: var(--blue-1);
}

.nav-cta {
    background: var(--blue-1);
    color: var(--white) !important;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.nav-cta:hover {
    background: var(--blue-5);
}

.nav-cta:active {
    transform: scale(0.97);
}

.lang-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-pill);
    padding: 3px;
}

.lang-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    padding: 0.35rem 0.85rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: color var(--dur-fast) ease, background var(--dur-fast) ease, transform var(--dur-fast) ease;
    font-family: var(--font-sans);
}

.lang-btn:hover {
    color: var(--gray-900);
}

.lang-btn:active {
    transform: scale(0.97);
}

.lang-btn.active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-1);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 데스크톱 메뉴가 로고와 부딪히기 시작하는 지점에서 접는다 — 항목이 일곱이라
   EN 라벨 기준 900px 아래로는 어떤 간격을 줘도 한 줄에 안 선다(실측) */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        display: none;
        gap: 0;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        display: block !important;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(5, 82, 204, 0.08);
    }

    .nav-links li a:hover {
        background: rgba(5, 82, 204, 0.04);
    }

    .nav-links .nav-cta {
        margin: 1rem 2rem;
        text-align: center;
        border-radius: 8px;
        display: block;
    }

    /* 언어 토글 칸 — 하위 목록의 마지막 항목까지 잡지 않도록 직계로 묶는다 */
    .nav-links > li:last-child {
        padding: 1rem 2rem;
    }

    /* 오버레이에는 hover 가 없다 — 하위 목록을 펼친 채로 들여쓰기만 준다 */
    .nav-sub > a::after { display: none; }

    .nav-sub-list {
        position: static;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-sub-list::before { display: none; }

    .nav-links .nav-sub-list a {
        padding-left: 3.2rem;
        border-radius: 0;
        font-size: 14px;
        color: var(--gray-600);
    }

    .lang-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: background var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--blue-1);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-5);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-800);
    border: none;
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-dark {
    background: var(--gray-900);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--black);
}

/* 다크 CTA 위의 강조 버튼 — 챕터 .accent·체크 아이콘과 같은 하이라이트 색이다(--navy 대비 8.4:1).
   blue-1 배경에 다크 버튼을 얹는 안은 대비가 2.4~2.7:1로 WCAG 1.4.11(3:1)에 못 미쳐 접었다. */
.btn-glow {
    background: var(--blue-glow);
    color: var(--gray-900);
    font-weight: 700;
}

.btn-glow:hover {
    background: #A5C9FF;
}

/* ── CTA — 모든 페이지가 같은 다크 CTA로 끝난다 ─────────────────── */
.cta {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    position: relative;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Section Common */
section { padding: var(--space-3xl) 0; }

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title { margin-bottom: 1rem; }

.section-desc {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── 공통 카드 템플릿 ────────────────────────────────────────
   Why · Case Study · Platform Solutions · Dable Intro가
   같은 어휘를 쓴다: [라벨 pill] → [제목] → [설명].
   섹션마다 열 수와 배치는 달라도 채움·모서리·여백·타이포는 하나다. */
.card,
.track-card,
.platform-card {
    min-width: 0;
    background: var(--gray-50);
    border: none;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: box-shadow var(--dur-med) var(--ease-out);
}

.card:hover,
.track-card:hover,
.platform-card:hover {
    box-shadow: var(--shadow-1);
}

/* 라벨은 언제나 맨 위 pill이다 — 아이콘 자리를 대신하면서 의미를 갖는다 */
.card-kicker,
.track-kicker,
.platform-label,
.case-stat-card .stat-label {
    align-self: flex-start;
    margin-bottom: 1.1rem;
    padding: 0.34rem 0.72rem;
    border-radius: var(--radius-pill);
    background: var(--blue-tint);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: var(--blue-1);
}

/* 템플릿 변형 — 카드 우측에 버티컬 사진을 깐다.
   본문 대비가 gray-600 on gray-50 = 4.42:1로 이미 AA 아래라 텍스트 뒤에는
   절대 깔지 않는다. 마스크로 왼쪽에서 완전히 소멸시켜 빈 우측만 채운다. */
.card--media { position: relative; overflow: hidden; }

.card-media {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
    opacity: 0.7;
    -webkit-mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 100%);
    mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 100%);
    pointer-events: none;
}

/* 글자를 62%로 묶어 사진이 시작되는 66% 지점과 물리적으로 떨어뜨린다.
   안 묶으면 EN 설명문이 65%까지 나가 사진 위에 얹힌다(KO는 44%라 안 드러난다) */
.card--media > *:not(.card-media) {
    position: relative;
    z-index: 1;
    max-width: 62%;
}

.card h3,
.track-card h3,
.platform-card h3 {
    margin: 0 0 0.6rem;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--gray-900);
}

.card p,
.track-card p,
.platform-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-sub);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--gray-50);
    color: var(--gray-600);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid var(--gray-100);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (max-width: 1000px) {
    .footer-content {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2.75rem 2rem;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; }
}

.footer-brand img {
    height: 26px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-sub);
}

.footer-links h4 {
    color: var(--gray-900);
    font-size: 15px;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    color: var(--gray-sub);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--dur-fast) ease;
}

.footer-links a:hover { color: var(--blue-1); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    font-size: 14px;
    /* --gray-400(#B0B8C1) 은 --gray-50 면에서 1.92:1 이라 거의 안 보였다 */
    color: var(--gray-sub);
}

/* AEO/GEO용 정의 블록. 다른 섹션과 달리 헤더 리듬(.section-header)을 따르지 않는다 —
   검색·LLM이 통째로 인용할 한 문단이 목적이라 제목이 작고 여백도 좁다 */
.about-definition {
    padding: 40px 2rem;
    background: var(--white);
}

.about-definition .container {
    max-width: 800px;
    text-align: center;
}

.about-definition h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-definition p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-600);
}

/* FAQ (Toss list style) */
.faq-section {
    padding: var(--space-3xl) 2rem;
    background: var(--white);
}

.faq-section .container { max-width: 800px; }

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-section h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gray-900);
}

.faq-list {
    border-top: 1px solid var(--gray-200);
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
    interpolate-size: allow-keywords;
}

.faq-item::details-content {
    transition: height var(--dur-med) var(--ease-out), content-visibility var(--dur-med) allow-discrete;
    height: 0;
    overflow: clip;
}

.faq-item[open]::details-content {
    height: auto;
}

/* FAQ 타이포는 랜딩(.faq-item)과 기능 페이지(.fp-faq details)가 **같은 값**이어야 한다.
   종전에는 질문 1.05rem/1.02rem, 답변 0.95rem/15px 로 갈려 있었고 랜딩 쪽은 그 값이
   인라인 style 로 스무 번 복제돼 있었다(2026-08-25). 값을 바꾸려거든 feature.css 의
   `.fp-faq summary` / `.fp-faq p` 도 같이 바꿀 것. */
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 0.25rem;
    /* 17px 이면 390px 에서 한글 질문이 2줄→3줄이 된다(2026-08-25 실측) — 내림 고정 */
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    list-style: none;
}

.faq-item > p {
    padding: 0 0.25rem 1.4rem;
    font-size: 15px;
    line-height: 1.75;
    color: var(--gray-600);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    flex: none;
    font-family: var(--font-number);
    font-size: 20px;
    font-weight: 400;
    color: var(--gray-500);
    transition: color 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    color: var(--blue-1);
}

.faq-item summary:hover {
    color: var(--blue-1);
}

/* Animations */
.animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.06s; }
.animate-delay-2 { transition-delay: 0.12s; }
.animate-delay-3 { transition-delay: 0.18s; }
.animate-delay-4 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .animate {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn, .nav-cta, .lang-btn, .card,
    .platform-card, .faq-item::details-content {
        transition: none;
    }

    .roll .roll-bar,
    .roll.animate:not(.visible) .roll-bar {
        clip-path: none;
        transition: none;
    }
}

/* ============================================================
   NAV — 다크 섹션 구간에서 반전
   ============================================================ */
nav.on-dark {
    background: rgba(16, 22, 35, 0.82);
}

nav.on-dark.scrolled {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

nav.on-dark .logo img {
    filter: brightness(0) invert(1);
}

nav.on-dark .mobile-menu-btn span {
    background: var(--white);
}

nav.on-dark .lang-toggle {
    background: rgba(255, 255, 255, 0.14);
}

nav.on-dark .lang-btn {
    color: rgba(255, 255, 255, 0.72);
}

nav.on-dark .lang-btn.active {
    background: rgba(255, 255, 255, 0.94);
    color: var(--gray-900);
}

/* 모바일 메뉴는 흰 오버레이라 데스크톱에서만 링크 색을 반전한다 */
@media (min-width: 901px) {
    nav.on-dark .nav-links a { color: rgba(255, 255, 255, 0.88); }
    nav.on-dark .nav-links a:hover { color: var(--white); }
    nav.on-dark .nav-cta {
        background: var(--white);
        color: var(--blue-1) !important;
    }
    nav.on-dark .nav-cta:hover { background: var(--blue-4); }
    /* 패널은 다크 구간에서도 흰 상자다 — 위 반전이 여기까지 내려오면 글자가 사라진다 */
    nav.on-dark .nav-sub-list a { color: var(--gray-700); }
    nav.on-dark .nav-sub-list a:hover { color: var(--blue-1); }
}



/* ── 다크 챕터 레이아웃 ─────────────────────────────────────────
   랜딩 #how와 기능 상세 페이지가 같은 어휘를 쓴다:
   [번호 원] → [2줄 헤드라인] → [한 문장] + 넓은 쪽의 목업.
   980px 아래 1열 전환은 `.chapter, .chapter.is-flip` 둘 다 눌러야 한다 —
   미디어쿼리는 특이도를 올려주지 않아서 flip 챕터만 2열로 남는다. */
.chapters {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-3xl) 2rem;
}

.chapters .section-title { color: var(--white); }

.chapters .section-desc { color: rgba(255, 255, 255, 0.65); }

.chapter {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4rem;
    align-items: center;
    padding: 4.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 뒤집힌 챕터는 열 비율도 같이 뒤집는다 — 안 그러면 짧아진 설명문이
   넓은 열에 놓여 오른쪽이 휑하게 빈다 */
.chapter.is-flip {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.chapter.is-flip .chapter-text { order: 2; }

.chapter-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-family: var(--font-number);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.1rem;
}

.chapter-text h3 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 0.9rem;
}

.chapter-text h3 .accent { color: var(--blue-glow); }

.chapter-text > p {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
}

.chapter-visual {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 980px) {
    .chapter, .chapter.is-flip { grid-template-columns: 1fr; gap: 2.25rem; padding: 3.25rem 0; }
    .chapter.is-flip .chapter-text { order: 0; }
}