/* ROIGENT — shared site styles
 * 브랜드 규칙: .claude/skills/roigent-brand/SKILL.md
 * 컬러 원본:  brand/color/tokens.css
 *
 * 팔레트 원칙
 *  - 바탕은 화이트, 면 분할은 연한 그레이
 *  - 코랄레드는 프라이머리. CTA·아이콘·큰 숫자 등 결정적인 곳에만
 *  - 블랙은 무게중심(본문·다크 섹션), 세이지는 태그·아이콘 면
 */

/* 서브셋 폰트 — 원본 6.4MB TTF 에서 상용 한글 2,350자만 남겨 440KB woff2 로 압축.
 * 로컬 파일만 사용한다 (CDN 금지 — 브랜드 규칙). */
@font-face {
    font-family: "Pretendard";
    src: url("assets/fonts/pretendard-subset.woff2") format("woff2-variations"),
         url("assets/fonts/pretendard-subset.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

:root {
    /* ===== 사이트 코어 =====
     * CI 확정 4색 중 Deep Brown(#462a2a) 자리는 웹에서 블랙으로 대체한다.
     * 화면을 더 선명하게 가져가기 위한 결정. 코랄·세이지는 CI 그대로 쓴다.
     * 헤더 CI 원본의 워드마크가 실제로 블랙이라 로고와도 어긋나지 않는다. */
    --ink: #000000;
    --coral: #e9483d;
    --sage: #bdd9d1;
    --offwhite: #f1f1f1;

    /* ===== 파생값 — 팔레트 추가가 아니라 위 색들의 명도 변형 ===== */
    --ink-hover: #262626;
    --coral-hover: #d33e34;
    --coral-soft: #fdecea;      /* 코랄 10% 틴트 — 태그·아이콘 면 */
    --link: #b8392e;            /* 본문 링크 전용. 흰 배경 5.7:1 (코랄 3.8:1 은 AA 미달) */
    --sage-soft: #e4f0ec;

    /* ===== 중립 — 화이트 바탕 + 연한 그레이 =====
     * 브라운이 빠졌으므로 웜 틴트를 걷고 순수 그레이로 간다. 이게 더 선명하다. */
    --bg: #ffffff;
    --bg-soft: #f9f9f9;         /* 섹션 교차용 */
    --bg-muted: var(--offwhite);/* 더 강한 면 분할 */
    --bg-dark: var(--ink);
    --border: #e5e5e5;
    --border-soft: #f0f0f0;

    /* ===== 텍스트 — 전부 흰 배경 WCAG AA 이상 ===== */
    --text: #111111;            /* 18.9:1 — 본문. 순수 블랙은 장문에서 눈이 피로해 한 단계 낮췄다 */
    --text-light: #4a4a4a;      /*  8.9:1 — 보조 */
    --text-muted: #6b6b6b;      /*  5.3:1 — 메타·캡션 */

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 18px 36px rgba(0, 0, 0, 0.10);

    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* ===== 구 변수 별칭 =====
     * HTML 인라인 스타일 92곳이 아직 아래 이름을 참조한다.
     * 값만 브랜드 컬러로 돌려두고, 인라인 정리 후 삭제한다.
     *  --accent 는 12px 텍스트에도 쓰이므로 코랄(3.8:1) 대신 --link(5.7:1) 로 연결
     *  --accent-2 는 11곳 모두 다크 배경 위 → 세이지 (블랙 대비 15.6:1) */
    --primary: var(--ink);
    --primary-2: #333333;
    --accent: var(--link);
    --accent-2: var(--sage);
    --accent-soft: var(--coral-soft);
}

html {
    scroll-behavior: smooth;

    /* 오버스크롤(고무줄) 구간의 색.
     * html 에 배경이 없으면 body 의 흰색이 캔버스로 전파돼,
     * 맨 위에서 당길 때 검은 헤더 뒤로 흰 면이 드러난다.
     * 모든 페이지가 헤더·푸터 모두 검은색이라 위아래 어느 쪽으로 당겨도 이어진다. */
    background-color: var(--ink);
}

body {
    /* Pretendard 를 맨 앞에 둔다. -apple-system 이 앞서면 맥에서 영영 적용되지 않는다. */
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont,
                 system-ui, "Malgun Gothic", sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;       /* 한글은 단어 중간에서 끊지 않는다 */
    overflow-wrap: break-word;
}

/* 본문 링크는 --link. 밑줄 색만 코랄로 두어 브랜드를 남긴다. */
a {
    color: var(--link);
    text-decoration: none;
}

.article-body a {
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-underline-offset: 3px;
}

img { max-width: 100%; display: block; }

:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px;
}

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

.container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header / Nav ===== */
header.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
}

.nav .logo { flex: 0 0 auto; }
.nav-links { flex: 1 1 auto; justify-content: center; }

/* ===== 로고 =====
 * CI 원본 이미지를 그대로 쓴다. 비율 변형·간격 조정은 브랜드 금지 사항이므로
 * height 만 지정하고 width 는 auto 로 둔다.
 *  헤더(흰 배경)  → roigent-ci.png       심볼 코랄 + 워드마크 다크
 *  푸터(블랙)     → roigent-ci-light.png 심볼 코랄 + 워드마크 화이트 */
.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    display: block;
    height: 34px;
    width: auto;
}

footer .logo img { height: 30px; }

/* 이미지 로고로 교체되기 전 텍스트 워드마크가 남아 있을 때의 대비값 */
.logo { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.5px; }
.logo span { color: var(--coral); }

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

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

/* 15px 이라 코랄은 대비 미달. 명도를 낮춰 상태를 표현한다. */
.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

/* 헤더 CTA 는 블랙. 코랄은 본문 CTA 에만 남겨 희소성을 지킨다. */
.nav-cta {
    background: var(--ink);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

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

.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ===== Buttons =====
 * 코랄 배경 위 흰 글자는 3.85:1. WCAG 는 18.66px 이상 굵은 글자에 3:1 을 적용하므로
 * 버튼 라벨을 19px/700 으로 고정한다. 이 아래로 줄이면 AA 가 깨진다. */
.btn-primary, .btn-secondary, .btn-accent {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.02em;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

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

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

.btn-secondary {
    background: white;
    color: var(--ink);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover { border-color: var(--ink); }

.btn-accent {
    background: var(--ink);
    color: white;
}

.btn-accent:hover { background: var(--ink-hover); }

/* ===== Hero / Page Header =====
 * CI 가 플랫하고 단정하다. 그라데이션과 장식 블롭은 쓰지 않는다. */
.page-hero {
    padding: 80px 0 60px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-soft);
}

/* 세이지 칩 + 블랙 글자 — CI 승인 조합 */
.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--sage-soft);
    color: var(--ink);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;   /* 워드마크가 가늘어 800 이상은 브랜드 인상과 어긋난다 */
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    max-width: 820px;
}

.page-hero .lead {
    font-size: 19px;
    color: var(--text-light);
    max-width: 680px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== Sections ===== */
section.block { padding: 90px 0; }
section.block.tight { padding: 60px 0; }
section.block.soft { background: var(--bg-soft); }
section.block.muted { background: var(--bg-muted); }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-eyebrow {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.022em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-light);
}

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
    background: white;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

/* 테두리는 그래픽 요소라 코랄 사용 가능 (비텍스트 대비 3:1 기준 충족) */
.card:hover {
    border-color: var(--coral);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Concept A — 선 중심 지오메트릭 아이콘.
 * 연한 그레이 면 위에 잉크 선, 코랄 포인트 하나. */
.card-icon {
    width: 56px; height: 56px;
    /* 서비스 상세의 일러스트 아이콘과 같은 민트 면을 쓴다 */
    background: var(--sage-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 18px;
}

.card-icon .svc-icon {
    width: 33px;
    height: 33px;
    display: block;
}

/* 다크 카드 위에서는 면과 선을 반전 */
.card-icon--invert {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== CTA Card =====
 * 다크 섹션은 블랙. 그라데이션 없음. */
.cta-card {
    background: var(--ink);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    color: white;
}

/* 블랙 면 위 코랄 심볼. 여기가 콘텐츠 안에서 심볼이 가장 잘 작동하는 자리다. */
.cta-card .cta-symbol {
    height: 44px;
    width: auto;
    margin: 0 auto 24px;
}

.cta-card h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.022em;
    line-height: 1.3;
}

.cta-card p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* 블랙 위에서는 코랄을 그대로 쓴다 (대비 확보) */
.cta-card .btn-primary {
    background: var(--coral);
    color: white;
}

.cta-card .btn-primary:hover { background: var(--coral-hover); }

.cta-card .btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-card .btn-secondary:hover { border-color: white; }

/* ===== Footer ===== */
footer.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand .logo span { color: var(--sage); }  /* 블랙 배경 → 세이지 */
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.footer-col ul { list-style: none; }
/* 링크가 아닌 항목(주소 등)도 링크와 같은 크기로 맞춘다.
 * font-size 를 .footer-col a 에만 두면 <a> 가 없는 li 는 16px 기본값을 그대로 받는다. */
.footer-col li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.72); }

/* ===== Article (Insights detail) ===== */
.article-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 14px;
}

.article-meta .tag {
    background: var(--sage-soft);
    color: var(--ink);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.article-body {
    padding: 40px 0 80px;
    font-size: 17px;
    line-height: 1.85;
    color: var(--text);
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin: 48px 0 16px;
    letter-spacing: -0.5px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 32px 0 12px;
}

.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 600; }

.article-body blockquote {
    border-left: 3px solid var(--coral);
    padding: 14px 0 14px 20px;
    margin: 24px 0;
    color: var(--ink);
    background: var(--bg-soft);
    border-radius: 0 8px 8px 0;
}

.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.article-body th {
    background: var(--bg-muted);
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.article-body td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.article-body tr:last-child td { border-bottom: none; }

/* ===== Insights list ===== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.post-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    display: block;
}

.post-card:hover {
    border-color: var(--coral);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.post-card .tag {
    display: inline-block;
    background: var(--sage-soft);
    color: var(--ink);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.post-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.post-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 18px;
}

.post-card .post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* Case Analysis 는 코랄 틴트, 이론/모델 글은 세이지 틴트로 구분 */
.post-card .tag-case,
.article-meta .tag-case {
    background: var(--coral-soft);
    color: var(--link);
}

.post-card .tag-theory,
.article-meta .tag-theory {
    background: var(--sage-soft);
    color: var(--ink);
}

/* ===== Form ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-row { display: flex; flex-direction: column; }
.form-row.full { grid-column: 1 / -1; }

.form-row label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(233, 72, 61, 0.14);
}

.form-row textarea { min-height: 120px; resize: vertical; }

.form-row .help {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ===== Stats ===== */
.stat {
    text-align: center;
    padding: 24px 16px;
}

/* 44px 이므로 코랄이 가장 강하게 작동하는 자리 */
.stat-num {
    font-size: 44px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-num span { color: var(--coral); }

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== Misc ===== */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

.checklist { list-style: none; margin: 20px 0; }

.checklist li {
    padding: 10px 0 10px 32px;
    position: relative;
    color: var(--text);
}

/* 체크 마크는 아이콘 취급 — 비텍스트 대비 3:1 기준 충족 */
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 22px; height: 22px;
    background: var(--coral);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ===== Article 부속 요소 ===== */
.article-body .callout {
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin: 32px 0;
}

.article-body .callout p:last-child { margin-bottom: 0; }

.article-body .check-item { margin-bottom: 28px; }

.article-body .check-item .q {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.5;
}

.article-body .check-item p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 0;
}

.article-source {
    border-top: 1px solid var(--border);
    margin-top: 48px;
    padding-top: 24px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

.page-hero .article-meta {
    margin-top: 24px;
    margin-bottom: 0;
    align-items: center;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .page-hero { padding: 60px 0 40px; }
    .page-hero h1 { font-size: 34px; }
    .page-hero .lead { font-size: 17px; }
    .section-title { font-size: 28px; }
    section.block { padding: 60px 0; }
    .card-grid, .card-grid.two, .card-grid.four,
    .post-grid, .form-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .cta-card { padding: 48px 24px; }
    .cta-card h2 { font-size: 26px; }
    .article-body { font-size: 16px; }
    .article-body h2 { font-size: 22px; }
    .btn-primary, .btn-secondary, .btn-accent { font-size: 18px; padding: 14px 26px; }
}

@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { text-align: center; }
}

/* ═══════════════════════════════════════════════
   블랙 히어로 — .dark-top 이 붙은 페이지에만 적용
   ═══════════════════════════════════════════════ */
/* ===== 상단 검은 블록 ===== */

.dark-top .site-header {
    background: var(--ink);
    border-bottom: none;
    /* 스크롤해도 헤더는 검게 유지된다 — 상단이 계속 브랜드 면으로 읽힌다 */
}

.dark-top .nav-links a {
    color: rgba(255, 255, 255, 0.72);
}

.dark-top .nav-links a:hover,
.dark-top .nav-links a.active {
    color: #ffffff;
}

/* 검은 헤더 위에서는 반전 — 흰 버튼 + 검은 글자 (21:1) */
.dark-top .nav-cta {
    background: #ffffff;
    color: var(--ink) !important;
}

.dark-top .nav-cta:hover {
    background: var(--sage);
}

.dark-top .menu-toggle { color: #ffffff; }

/* ===== 히어로 ===== */

.dark-top .page-hero {
    background: var(--ink);
    border-bottom: none;
    padding: 96px 0 104px;
    /* 기본 상속색을 밝게 잡아둔다. 이게 없으면 히어로에 클래스 없는 텍스트를
     * 넣었을 때 body 의 #111 을 물려받아 검은 면에서 보이지 않는다. */
    color: rgba(255, 255, 255, 0.78);
}

/* 세이지 아웃라인 칩 — 검은 면에서 세이지가 가장 정확히 읽힌다 (15.6:1) */
.dark-top .page-hero .eyebrow {
    background: transparent;
    color: var(--sage);
    box-shadow: inset 0 0 0 1px rgba(189, 217, 209, 0.45);
}

.dark-top .page-hero h1 {
    color: #ffffff;
    font-size: 52px;
}

/* 검은 배경에서는 코랄 원색을 그대로 쓴다 — 5.5:1 로 흰 배경(3.8:1)보다 오히려 산다.
 * 흰 배경일 때 --link 로 눌러 쓰던 제약이 여기서는 없다. */
.dark-top .page-hero h1 span {
    color: var(--coral) !important;
}

.dark-top .page-hero .lead {
    color: rgba(255, 255, 255, 0.78);
}

/* 검은 면 위 코랄 버튼 — 대비가 충분해 가장 강한 CTA 가 된다 */
.dark-top .page-hero .btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.38);
}

.dark-top .page-hero .btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* 아티클 히어로의 날짜·읽는시간. --text-muted 는 검은 면에서 3.9:1 로 미달이라 올린다 */
.dark-top .page-hero .article-meta {
    color: rgba(255, 255, 255, 0.68);   /* 9.4:1 */
}

.dark-top :focus-visible {
    outline-color: var(--sage);
}

/* 검은 블록 다음 섹션은 기본 흰 바탕을 그대로 쓴다.
 * 여기서 background 를 강제하면 `block soft tight` 조합의 회색 면까지 덮어버린다. */

@media (max-width: 900px) {
    .dark-top .page-hero { padding: 64px 0 72px; }
    .dark-top .page-hero h1 { font-size: 36px; }
}

/* ═══════════════════════════════════════════════
   온라인 커피챗 예약 (contact.html)
   왼쪽 달력에서 날짜 → 오른쪽에서 시간 → 연락처 순으로 진행한다.
   구글 캘린더 예약 페이지를 연결하면 #booking-embed 가 이 자리를 대신한다.
   ═══════════════════════════════════════════════ */

#booking-embed:empty { display: none; }
#booking-embed iframe { display: block; width: 100%; min-height: 620px; border: 0; border-radius: var(--radius-lg); }

.booking {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* ── 달력 ── */
.booking__cal {
    background: var(--ink);
    border-radius: var(--radius-lg);
    padding: 26px 24px 22px;
    color: #ffffff;
}

.cal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cal__head strong { font-size: 17px; font-weight: 700; }

.cal__nav {
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,0.24);
    background: transparent;
    color: #ffffff;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.cal__nav:hover:not(:disabled) { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.5); }
.cal__nav:disabled { opacity: 0.3; cursor: default; }

.cal__week, .cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal__week {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-align: center;
}

.cal__pad { aspect-ratio: 1; }

.cal__day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,0.30);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
}

/* 예약 가능한 날만 코랄 테두리로 열려 있음을 알린다 */
.cal__day.is-open {
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 0 0 1.5px var(--coral);
    transition: background 0.15s;
}

.cal__day.is-open:hover { background: rgba(233, 72, 61, 0.22); }

.cal__day.is-picked {
    background: var(--coral);
    color: #ffffff;
    box-shadow: none;
}

.cal__day:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

/* 오늘 — 당일 예약을 받지 않으므로 닫혀 있다. 주말·비운영일과 구분해
 * '오늘이라서 닫혔다' 는 것이 보이도록 회색 테두리를 준다. */
.cal__day.is-today {
    color: rgba(255,255,255,0.55);
    font-weight: 700;
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.28);
}
.cal__day.is-past { color: rgba(255,255,255,0.16); }

/* 지나간 운영일과 오늘 — '마감'.
 * 비운영 요일은 애초에 열린 적이 없으므로 라벨을 붙이지 않는다. */
.cal__day.is-done .cal__num { line-height: 1; }
.cal__done {
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.34);
    white-space: nowrap;
}
.cal__day.is-past .cal__done { color: rgba(255,255,255,0.20); }


.cal__empty {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.68);
}

.cal__legend {
    list-style: none;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.14);
    font-size: 13px;
    line-height: 1.9;
    color: rgba(255,255,255,0.68);
}

.cal__dot {
    display: inline-block;
    width: 11px; height: 11px;
    margin-right: 8px;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1.5px var(--coral);
    vertical-align: -1px;
}

/* ── 오른쪽 패널 ── */
.booking__panel {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    min-height: 320px;
}

.booking__step {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.booking__chosen {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}

.booking__panel:not(.is-active) .booking__chosen {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
}

.booking__slots { display: flex; flex-wrap: wrap; gap: 8px; }

.cal__slot {
    padding: 11px 18px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.cal__slot:hover { border-color: var(--ink); }

.cal__slot.is-picked {
    background: var(--coral);
    border-color: var(--coral);
    color: #ffffff;
}

.cal__slot:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

/* ── 연락처 폼 ── */
.booking__form[hidden] { display: none; }

.booking__form {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking__form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.booking__form input,
.booking__form textarea {
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
}

.booking__form input:focus,
.booking__form textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(233, 72, 61, 0.14);
}

.booking__form textarea { resize: vertical; }

.booking__form .btn-primary { margin-top: 4px; width: 100%; text-align: center; }

.booking__note {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .booking { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   아티클 헤드라인 이미지
   CI 의 2×2 블록 모듈로 구성한다. 스톡 일러스트를 쓰지 않기 위한 선택이며,
   검은 히어로에서 본문 흰 면으로 넘어가는 구간을 이어 주는 역할도 한다.
   ═══════════════════════════════════════════════ */

.article-cover {
    margin: 0;
    background: var(--ink);
    line-height: 0;
}

.article-cover img {
    display: block;
    width: 100%;
    height: clamp(180px, 26vw, 320px);
    object-fit: cover;
}

/* ═══════════════════════════════════════════════
   본문 설명 다이어그램 (인라인 SVG)
   페이지 폰트와 컬러 토큰을 그대로 상속받도록 인라인으로 넣는다.
   외부 파일로 빼면 Pretendard 가 적용되지 않는다.
   ═══════════════════════════════════════════════ */

.dgm {
    margin: 40px 0;
    padding: 0;
}

.dgm svg {
    display: block;
    width: 100%;
    height: auto;
    font-family: inherit;
    overflow: visible;
}

.dgm figcaption {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* 텍스트 계열 */
.dgm-t   { font-size: 15px; font-weight: 700; fill: var(--ink); }
.dgm-pt  { font-size: 13px; font-weight: 600; fill: var(--ink); }
.dgm-ax  { font-size: 13px; font-weight: 600; fill: var(--text-muted); }
.dgm-note{ font-size: 13px; font-weight: 400; fill: var(--text-light); }
.dgm-in  { font-size: 14px; font-weight: 700; fill: #ffffff; }
.dgm-inb { font-size: 14px; font-weight: 700; fill: var(--ink); }

/* 선 계열 */
.dgm-grid  { stroke: var(--border); stroke-width: 1; }
.dgm-axis  { stroke: var(--ink); stroke-width: 1.5; }
.dgm-arrow { stroke: var(--text-muted); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.dgm-dash  { stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 5 4; }
.dgm-line  { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dgm-sage  { stroke: #7fb3a4; }   /* 세이지 원색은 흰 면에서 대비가 낮아 명도를 낮춘 선용 값 */
.dgm-ink   { stroke: var(--ink); }
.dgm-coral { stroke: var(--coral); }

@media (max-width: 600px) {
    .dgm svg { font-size: 15px; }
}

/* 목록 카드 썸네일 — 아티클 헤드라인 이미지와 동일한 에셋을 재사용한다 */
.post-card { padding: 0; overflow: hidden; }

.post-card__thumb {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: cover;
    background: var(--ink);
}

.post-card > :not(.post-card__thumb) { margin-left: 28px; margin-right: 28px; }
.post-card > .tag { margin-top: 24px; }
.post-card > .post-meta { padding-bottom: 26px; }

/* 최신 콘텐츠 표시 — 태그 옆에 붙는 작은 배지.
 * 코랄 배경 + 흰 글자는 11px 에서 대비가 부족하므로 --link(5.7:1) 를 쓴다. */
.badge-new {
    display: inline-block;
    margin-left: 6px;
    padding: 4px 9px;
    border-radius: 20px;
    background: var(--link);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    vertical-align: middle;
}

.page-hero .badge-new { background: var(--coral); }

/* 검은 달력 패널 안의 단계 라벨 */
.booking__step--onwhite {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════
   폼 — 동의 항목과 전송 상태 표시
   ═══════════════════════════════════════════════ */

.form-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-light);
    text-align: left;
    cursor: pointer;
}

.form-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px; height: 17px;
    margin-top: 2px;
    accent-color: var(--coral);
    cursor: pointer;
}

.form-consent em { font-style: normal; font-weight: 700; color: var(--link); }
.form-consent a { text-decoration: underline; text-underline-offset: 2px; }

/* 전송 결과 — alert 대신 폼 안에서 상태를 보여준다 */
.form-status {
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.form-status.is-info  { background: var(--bg-muted); color: var(--text); }
.form-status.is-ok    { background: var(--sage-soft); color: var(--ink); font-weight: 600; }
.form-status.is-error { background: var(--coral-soft); color: var(--link); font-weight: 600; }

/* 구독 폼 */
.subscribe { max-width: 480px; margin: 0 auto; }

.subscribe__row { display: flex; gap: 8px; margin-bottom: 12px; }

.subscribe__row input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
}

.subscribe__row input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(233, 72, 61, 0.14);
}

.subscribe__row .btn-primary { font-size: 17px; padding: 12px 24px; }

@media (max-width: 540px) {
    .subscribe__row { flex-direction: column; }
}

/* 비공개 초안 표시 — 목록에서 뺀 페이지가 실수로 공개되지 않도록 화면에서 분명히 알린다 */
.draft-banner {
    background: var(--link);
    color: #ffffff;
    text-align: center;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

/* 독립 분석 고지 박스 — 타사 사례를 다룰 때 관계·근거를 먼저 밝힌다 */
.disclosure {
    background: var(--bg-muted);
    border-left: 3px solid var(--link);
    border-radius: 0 10px 10px 0;
    padding: 22px 26px;
    margin: 0 0 32px;
}

.disclosure__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--link);
    margin-bottom: 12px;
}

.disclosure ul,
.article-source ul {
    margin: 0 0 0 18px;
    font-size: 14px;
    line-height: 1.85;
}

.disclosure li { margin-bottom: 6px; }
.disclosure li:last-child { margin-bottom: 0; }
.article-source li { margin-bottom: 4px; }

/* ═══════════════════════════════════════════════
   언어 전환 (KO / EN)
   ═══════════════════════════════════════════════ */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 14px;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.lang-switch a,
.lang-switch span {
    padding: 5px 9px;
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.lang-switch a:hover { color: var(--ink); background: var(--bg-muted); }

.lang-switch .is-on {
    color: var(--ink);
    background: var(--bg-muted);
}

/* 검은 상단 블록에서는 반전 */
.dark-top .lang-switch a,
.dark-top .lang-switch span { color: rgba(255, 255, 255, 0.6); }
.dark-top .lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.dark-top .lang-switch .is-on { color: #fff; background: rgba(255, 255, 255, 0.14); }

@media (max-width: 900px) {
    .lang-switch { margin-right: 10px; }
}

/* ═══════════════════════════════════════════════
   서비스 상세 안의 단계 카드 (가격 전략 컨설팅)
   ═══════════════════════════════════════════════ */

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.step-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px 26px;
}

.step-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    display: block;
}

.step-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .step-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .step-grid { grid-template-columns: 1fr; }
}

/* ===== FAQ 아코디언 =====
   details/summary 를 쓴다. JS 없이 동작하고 키보드·스크린리더가 그대로 읽는다. */
.faq {
    max-width: 820px;
    margin: 0 auto;
}
.faq__item {
    border-bottom: 1px solid var(--border);
}
.faq__item:first-child {
    border-top: 1px solid var(--border);
}
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
    transition: color 0.15s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--link); }
.faq__q:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
    border-radius: 4px;
}
/* 셰브런 — 아이콘 파일 없이 테두리로 그린다 */
.faq__q::after {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform 0.2s;
}
.faq__item[open] .faq__q::after {
    transform: rotate(-135deg) translate(-3px, -3px);
}
.faq__a {
    padding: 0 4px 26px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-light);
    max-width: 70ch;
}
.faq__a a { color: var(--link); }
.faq__a p + p { margin-top: 12px; }

@media (max-width: 640px) {
    .faq__q { font-size: 16px; padding: 18px 2px; }
    .faq__a { padding-bottom: 22px; }
}

/* 본문 안에서 정의되는 핵심 용어(ROI, Agent 등).
 * 코랄 #e9483d 은 흰 배경 3.8:1 이라 17px 본문에 못 쓴다 → --link 5.7:1 */
.kw {
    color: var(--link);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════
   모바일 내비게이션
   900px 아래에서 .nav-links 를 숨기기만 하고 대체 수단이 없어
   메뉴 접근이 완전히 막혀 있었다. 햄버거 버튼과 드로어를 붙인다.
   ═══════════════════════════════════════════════ */

/* 햄버거 — 막대 3개를 가상 요소로 그린다 (아이콘 파일 없이) */
.menu-toggle {
    display: none;
    position: relative;
    width: 44px;              /* 손가락 터치 최소 크기 */
    height: 44px;
    flex: 0 0 auto;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--ink);
}
.dark-top .menu-toggle { color: #ffffff; }

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.16s ease;
}
.menu-toggle__bar { top: 21px; }
.menu-toggle__bar::before { content: ""; left: 0; top: -7px; }
.menu-toggle__bar::after  { content: ""; left: 0; top: 7px; }

/* 열리면 X 로 */
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .menu-toggle { display: block; }

    .nav { gap: 12px; padding: 12px 0; }
    .logo img { height: 26px; }

    /* 헤더 CTA 는 모바일에서 접는다.
     * 좁은 폭에서 '가격 전략 진단 →' 이 네 줄로 깨지고 헤더가 148px 까지 커졌다.
     * 드로어 안에 전체 폭 버튼으로 다시 넣으므로 동선은 유지된다. */
    .nav-cta { display: none; }

    /* 드로어 — 헤더 아래에서 펼쳐진다 */
    .nav-links {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--ink);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 8px 0 14px;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: max-height 0.28s ease, opacity 0.2s ease, visibility 0.2s;
    }
    .site-header { position: sticky; }
    .site-header .container { position: relative; }

    .nav-links.is-open {
        max-height: 78vh;
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
    }

    .nav-links li { list-style: none; }
    .nav-links a {
        display: block;
        padding: 15px 20px;          /* 터치 영역 48px 이상 */
        font-size: 17px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
    .nav-links a:hover,
    .nav-links a.active { color: #ffffff; background: rgba(255, 255, 255, 0.06); }

    /* 드로어 안의 CTA — 헤더에서 뺀 버튼을 여기서 살린다 */
    .nav-cta-item { display: block; }
    /* .nav-links a 가 600/17px 로 덮어써서 선택자를 맞춰 준다.
     * 코랄 배경 위 흰 글자는 3.8:1 이라 WCAG 상 19px/700 이상에서만 쓸 수 있다.
     * (브랜드 규칙: 더 작게 가야 하면 배경을 블랙으로 바꾼다) */
    .nav-links a.nav-drawer-cta {
        display: block;
        margin: 14px 20px 2px;
        padding: 15px 20px;
        background: var(--coral);
        color: #ffffff;
        text-align: center;
        border-radius: 10px;
        font-size: 19px;
        font-weight: 700;
        text-decoration: none;
        border-bottom: 0;
    }
    .nav-links a.nav-drawer-cta:hover { background: var(--coral-hover); color: #ffffff; }
}

/* 데스크톱에서는 드로어 전용 CTA 를 숨긴다.
 * a 만 숨기면 li 가 폭 0 인 flex 항목으로 남아 gap 28px 만큼
 * 빈 자리가 생기고 가운데 정렬된 메뉴가 한쪽으로 밀린다. li 째로 숨긴다. */
.nav-cta-item { display: none; }
.nav-drawer-cta { display: none; }

/* ═══════════════════════════════════════════════
   컨택 페이지 2단 레이아웃
   인라인 style 로 박혀 있어 미디어 쿼리가 먹지 않았고,
   393px 에서 우측 aside 가 63px 화면 밖으로 밀려나 있었다.
   ═══════════════════════════════════════════════ */
.contact-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
    align-items: start;
}
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ═══════════════════════════════════════════════
   표 — 좁은 화면에서 페이지를 밀지 않고 표 안에서 가로 스크롤
   ═══════════════════════════════════════════════ */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}
.table-scroll > table { margin: 0; }

@media (max-width: 900px) {
    /* 열이 뭉개지지 않을 최소 폭을 주고, 넘치는 만큼만 스크롤시킨다 */
    .table-scroll > table { min-width: 460px; }
    .article-body table { font-size: 14px; }
    .article-body th,
    .article-body td { padding: 10px 12px; }
}

/* ═══════════════════════════════════════════════
   홈 히어로 우측 비주얼
   .page-hero 는 전 페이지 공용이라, 이 페이지에만 붙는
   --visual 수식 클래스로 범위를 가둔다.
   ═══════════════════════════════════════════════ */
.page-hero--visual {
    position: relative;
    overflow: hidden;
}
/* 텍스트가 이미지 위로 오게 */
.page-hero--visual > .container {
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 34%;
    max-width: 520px;

    /* cover 는 세로로 크게 잘라내 확대된 것처럼 보였다.
     * contain 으로 높이에 맞춰 전체 구도를 보여주고, 오른쪽 끝에 붙인다. */
    object-fit: contain;
    object-position: right center;

    z-index: 0;
    pointer-events: none;

    /* 유리의 쨍한 느낌을 살린다. 마스크로 가장자리를 눌러 놓기 때문에
     * 보정 없이는 전체가 탁해 보인다. */
    filter: saturate(1.18) contrast(1.1);

    /* 왼쪽으로 갈수록 사라지게 해 검은 배경과 이어 붙인다.
     * 페이드 구간을 좁혀(45% 지점에서 완전 불투명) 중심부 색을 살린다. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 14%, #000 45%);
            mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 14%, #000 45%);
}

/* 태블릿 — 폭을 줄이고 더 흐리게 */
@media (max-width: 1100px) {
    .hero-visual { width: 38%; opacity: .9; }
}

/* 모바일 — 텍스트 뒤로 넣고 아주 옅게.
 * 가로 폭이 좁아 옆에 두면 본문을 밀어낸다. */
@media (max-width: 900px) {
    .hero-visual {
        width: 72%;
        max-width: none;
        opacity: .38;
        object-fit: cover;          /* 좁은 화면에서는 질감으로만 쓰므로 채워도 된다 */
        object-position: 60% center;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 34%, #000 100%);
                mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 34%, #000 100%);
    }
}

/* 이미지 대비를 낮춰 흰 글자가 겹쳐도 읽히게 */
@media (max-width: 640px) {
    .hero-visual { opacity: .22; }
}

/* ── 가로형 비주얼 (진단 페이지)
 * 홈은 세로 이미지라 contain 으로 전체를 보여줬지만,
 * 1200×675 가로 이미지를 좁고 긴 상자에 contain 하면 아주 작게 들어간다.
 * cover 로 채우고 유리판이 몰려 있는 오른쪽을 보여준다. */
/* 유리판이 펼쳐지는 '리듬'은 이미지 가운데에 있다.
 * 오른쪽 끝(88%)만 잘라 쓰면 촘촘한 평행선으로만 읽혀 단계가 넘어가는
 * 느낌이 사라진다. 폭을 넓히고 노출 지점을 가운데로 당겨 전개 구간을 보여준다. */
.page-hero--wide .hero-visual {
    width: 52%;
    max-width: 780px;
    object-fit: cover;
    object-position: 42% center;

    /* 톤을 홈 히어로에 맞춘다. 캔버스로 픽셀을 실측해 잡은 값이다.
     *
     *            채도   평균RGB      하이라이트
     *   홈(화면)  87%   200,51,57      59.4%   ← 목표
     *   이 값     86%   203,44,45      60.0%
     *
     * brightness 를 크게 올리는 게 핵심이다. 채도만 낮추면 유리 광택(하이라이트)이
     * 같이 죽어 '같은 유리' 로 안 읽힌다. 밝기로 광택을 살리고 채도로 붉은 기를 뺀다.
     * (.hero-visual 의 기본 saturate(1.18) contrast(1.1) 을 덮어쓰므로 선언 순서 주의) */
    filter: saturate(0.7) contrast(1) brightness(1.75);
    /* 넓어진 만큼 왼쪽 페이드를 길게 잡아 본문과 겹치는 구간을 눌러 준다 */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.4) 26%, #000 58%);
            mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.4) 26%, #000 58%);
}

/* 이미지가 넓어졌으므로 본문 줄바꿈 폭을 좁혀 겹침을 피한다 */
.page-hero--wide h1,
.page-hero--wide .lead { max-width: 600px; }

@media (max-width: 1100px) {
    .page-hero--wide .hero-visual { width: 56%; }
    .page-hero--wide h1,
    .page-hero--wide .lead { max-width: 460px; }
}
@media (max-width: 900px) {
    .page-hero--wide .hero-visual {
        width: 100%;
        object-position: 50% center;
    }
    .page-hero--wide h1,
    .page-hero--wide .lead { max-width: none; }
}

/* ═══════════════════════════════════════════════
   About 히어로 — 십자 광원
   CI 심볼의 네거티브 스페이스(십자)와 같은 형태라 정체성 페이지에 맞다.
   ═══════════════════════════════════════════════ */
.page-hero--light { position: relative; overflow: hidden; }
.page-hero--light > .container { position: relative; z-index: 1; }

.hero-light {
    position: absolute;
    /* 빛의 중심을 h1 둘째 줄('든든한 파트너')의 가운데에 맞춘다.
     * 히어로 상단 패딩이 고정이라 국·영문 모두 이 줄의 중심이 243px 에 온다.
     * 퍼센트로 잡으면 리드 문구 길이에 따라 히어로 높이가 달라져 어긋난다. */
    top: 243px;
    /* 오른쪽 끝에 붙이지 않는다. 본문이 끝나는 지점과 화면 오른쪽 사이,
     * 대략 3분의 2 지점에 둬서 문구와 여백을 잇는 역할을 하게 한다. */
    left: 68%;
    transform: translate(-50%, -50%);
    width: 468px;
    height: auto;
    z-index: 0;
    pointer-events: none;

    /* 검은 배경 위의 빛이므로 screen 으로 얹는다.
     * 검정이 투명해져 사각형 경계가 생기지 않는다 — 마스크가 필요 없다. */
    mix-blend-mode: screen;

    /* 흰 코어가 강해 그대로 두면 튄다. 밝기를 낮추고 코랄 쪽으로 당긴다. */
    opacity: 0.5;
    filter: brightness(0.85) saturate(1.15) hue-rotate(4deg);
}

@media (max-width: 1100px) {
    .hero-light { left: 74%; width: 378px; opacity: 0.42; }
}
@media (max-width: 900px) {
    /* 좁은 화면에서는 문구 뒤 은은한 광원으로만 남긴다 */
    .hero-light { left: 78%; width: 324px; opacity: 0.3; }
}

/* ═══════════════════════════════════════════════
   앵커 이동 시 고정 헤더에 가리지 않게
   헤더가 sticky 라 #anchor 로 점프하면 대상이 헤더 뒤로 들어간다.
   ═══════════════════════════════════════════════ */
[id] { scroll-margin-top: 96px; }

@media (max-width: 900px) {
    /* 모바일은 헤더가 68px 로 낮다 */
    [id] { scroll-margin-top: 84px; }
}

/* ══════════════════════════════════════════════
   소개 영상 — About
   무음 자동재생. 소리 있는 자동재생은 브라우저가 막는다.
   ══════════════════════════════════════════════ */
.video-block{
    /* 위아래 여백 없이 영상만. .block 의 90px 패딩을 쓰지 않는다 */
    padding:0; margin:0; line-height:0; font-size:0;
}
/* 폭은 본문 카드와 같은 .container(최대 1200px)에 맞춘다.
 * 화면 끝까지 꽉 채우면 영상만 너무 커 보인다. */
.video-wrap{
    position:relative; width:100%; margin:0;
    aspect-ratio:16/9; overflow:hidden; line-height:0;
    background:var(--ink); border-radius:var(--radius-lg);
}
.video-wrap video{
    width:100%; height:100%; object-fit:cover; display:block;
    background:var(--ink);
}
/* 재생 제어 — 항상 보이되 조용하게 */
.video-btn{
    position:absolute; right:16px; bottom:16px; z-index:2;
    width:40px; height:40px; border-radius:50%; border:0; cursor:pointer;
    background:rgba(0,0,0,.55); color:#fff; font-size:13px; line-height:1;
    display:flex; align-items:center; justify-content:center;
    backdrop-filter:blur(6px); transition:background .15s;
}
.video-btn:hover{background:rgba(0,0,0,.8)}
.video-btn:focus-visible{outline:2px solid var(--coral); outline-offset:2px}

@media (max-width:900px){
    .video-btn{width:36px; height:36px; right:12px; bottom:12px}
}
/* 움직임을 줄이도록 설정한 사용자에게는 자동재생하지 않는다 */
@media (prefers-reduced-motion:reduce){
    .video-wrap video{animation:none}
}
