/* 공동운용(Co-GP) 비고객 초대 안내 랜딩 스타일
   - 본문은 사이트 공통 다크 테마와 달리 라이트 테마
   - 공통 푸터(footer.js) 때문에 common.css를 먼저 불러오므로, 기본 리셋은 common.css에 맡기고
     본문에 영향을 주는 전역 규칙(body/heading/a)만 여기서 덮어씀 */

:root {
    --cogp-text-primary: #212529;
    --cogp-text-secondary: #343a40;
    --cogp-text-tertiary: #495057;
    --cogp-text-quaternary: #868e96;
    --cogp-text-disabled: #adb5bd;
    --cogp-divider-01: #dee2e6;
    --cogp-divider-02: #e9ecef;
    --cogp-vc: #635bff;
    --cogp-vc-hover: #5249e6;
    --cogp-bg-vc: #eef2ff;
    --cogp-bg-soft: #f8faff;
    --cogp-dark: #111827;
}

body.cogp-page {
    background: #fff;
    color: var(--cogp-text-primary);
    word-break: keep-all;
}

/* :where()로 명시도를 0으로 두어 컴포넌트 스타일을 덮어쓰지 않게 함 */
:where(.cogp-wrap) ul {
    list-style: none;
}

:where(.cogp-wrap) img {
    display: block;
    max-width: 100%;
}

/* common.css의 h1~h6 기본 여백 제거 */
.cogp-wrap :is(h1, h2, h3) {
    margin: 0;
}

/* 레이아웃 래퍼 */
.cogp-wrap,
.cogp-wrap main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cogp-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 70px;
    line-height: normal;
}

/* 공통 푸터: 본문이 라이트 테마라 글자색을 다시 지정하고, 본문 하단 여백과 겹치는 margin 제거 */
.cogp-page .main-footer {
    margin-top: 0;
    color: var(--text-primary);
}

/* 버튼 */
.cogp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 13px;
    border: 1px solid var(--cogp-vc);
    border-radius: 8px;
    background: var(--cogp-vc);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* color는 common.css의 a:hover 색을 막기 위해 다시 지정 */
.cogp-btn:hover {
    background: var(--cogp-vc-hover);
    border-color: var(--cogp-vc-hover);
    color: #fff;
}

.cogp-btn-secondary {
    border-color: var(--cogp-divider-01);
    background: #fff;
    color: var(--cogp-text-primary);
}

.cogp-btn-secondary:hover {
    border-color: var(--cogp-text-disabled);
    background: #f8f9fa;
    color: var(--cogp-text-primary);
}

.cogp-btn:focus-visible {
    outline: 3px solid rgba(99, 91, 255, 0.4);
    outline-offset: 2px;
}

/* 헤더 */
.cogp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 64px;
}

.cogp-logo img {
    width: 110px;
    height: 22px;
    object-fit: cover;
}

.cogp-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 뱃지 */
.cogp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #c7d2fe;
    border-radius: 17px;
    background: var(--cogp-bg-vc);
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
}

.cogp-badge-blue {
    border-color: #38a1ff;
    background: #e5f1fc;
    color: #38a1ff;
}

/* 히어로 */
.cogp-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0 40px;
}

.cogp-hero-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    min-width: 0;
}

.cogp-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.cogp-hero-title {
    font-size: clamp(32px, 4.6vw, 56px);
    font-weight: 700;
    line-height: 1.36;
    color: var(--cogp-text-primary);
}

.cogp-hero-desc {
    font-size: 18px;
    font-weight: 600;
    line-height: 34px;
    color: var(--cogp-text-quaternary);
}

.cogp-hero-card {
    display: flex;
    flex: 0 0 420px;
    flex-direction: column;
    gap: 10px;
    padding: 26px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    background: #f8fafc;
}

.cogp-hero-card-logo {
    width: 86px;
    height: 17px;
    object-fit: cover;
}

.cogp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
}

.cogp-chips li {
    padding: 6px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    color: var(--cogp-text-tertiary);
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    white-space: nowrap;
}

/* 섹션 공통 */
.cogp-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
}

.cogp-section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 10px;
}

.cogp-section-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.44;
    color: var(--cogp-text-secondary);
}

.cogp-section-sub {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--cogp-text-disabled);
}

/* 문제 제기 카드 */
.cogp-problems {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cogp-problem {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--cogp-divider-02);
    border-radius: 18px;
}

.cogp-problem-head {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cogp-problem-num {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    height: 30px;
    border-radius: 20px;
    background: var(--cogp-bg-vc);
    color: var(--cogp-vc);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
}

.cogp-problem-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
    color: var(--cogp-dark);
}

.cogp-problem-desc {
    flex: 1;
    font-size: 16px;
    line-height: 24px;
    color: var(--cogp-text-tertiary);
}

.cogp-problem-list {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: var(--cogp-bg-soft);
}

.cogp-problem-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
}

.cogp-problem-list ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    line-height: 18px;
    color: var(--cogp-text-secondary);
}

/* 동기화 다이어그램 */
.cogp-sync {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 20px 30px;
    border-radius: 26px;
    background: var(--cogp-bg-soft);
}

.cogp-sync-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 10px;
}

.cogp-operator {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0 20px 10px;
}

.cogp-operator-screen {
    width: 100%;
    height: 300px;
    border: 1px solid rgba(199, 217, 242, 0.8);
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(38, 59, 115, 0.12);
    object-fit: cover;
}

.cogp-sync-center {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.cogp-sync-bubble {
    padding: 18px 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(51, 64, 115, 0.1);
    color: var(--cogp-text-secondary);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.cogp-sync-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    background: linear-gradient(90deg, #5273ff, #855cff);
    box-shadow: 0 18px 34px rgba(56, 82, 229, 0.25);
    color: #fff;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
}

.cogp-sync-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cogp-sync-label strong {
    color: var(--cogp-text-secondary);
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
}

.cogp-sync-label span {
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--cogp-text-quaternary);
    font-size: 16px;
    white-space: nowrap;
}

/* 베네핏 바 */
.cogp-benefits {
    display: flex;
    align-items: center;
    gap: 34px;
    width: 100%;
    max-width: 1120px;
    padding: 24px 36px;
    border: 1px solid #c7dbf5;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(41, 59, 115, 0.08);
}

/* 항목 폭을 콘텐츠 기준으로 나눠 "●●"처럼 넓은 아이콘에서도 설명이 줄바꿈되지 않게 함 */
.cogp-benefit {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.cogp-benefit + .cogp-benefit {
    padding-left: 34px;
    border-left: 1px solid #b8c9e5;
}

.cogp-benefit-icon {
    flex: 0 0 auto;
    color: #475eff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.cogp-benefit-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cogp-benefit-texts strong {
    color: var(--cogp-text-secondary);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.cogp-benefit-texts span {
    color: var(--cogp-text-quaternary);
    font-size: 16px;
    line-height: 1.2;
}

/* 함께 관리하는 정보 (다크 섹션) */
.cogp-scope {
    display: flex;
    flex-direction: column;
    gap: 21px;
    padding: 40px 32px;
    border-radius: 28px;
    background: var(--cogp-dark);
}

.cogp-scope-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
}

.cogp-scope-titles {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 6px;
    min-width: min(100%, 480px);
}

.cogp-scope-titles .cogp-section-title {
    color: #fff;
}

.cogp-scope-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.cogp-scope-tags li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 165px;
    height: 38px;
    border-radius: 26px;
    background: #fff;
    color: var(--cogp-dark);
    font-size: 16px;
    font-weight: 700;
}

.cogp-scope-tags li:first-child {
    background: var(--cogp-vc);
    color: #fff;
}

.cogp-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cogp-scope-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 104px;
    padding: 24px 24px 24px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.cogp-scope-card::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 21px;
    width: 6px;
    border-radius: 4px;
    background: var(--cogp-vc);
}

.cogp-scope-card strong {
    color: var(--cogp-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
}

.cogp-scope-card span {
    color: #6b7280;
    font-size: 15px;
    line-height: 21px;
}

/* 반응형 */
@media (max-width: 1100px) {
    .cogp-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .cogp-hero-card {
        flex: 0 0 auto;
    }

    .cogp-sync-row {
        flex-direction: column;
        gap: 24px;
    }

    .cogp-operator {
        flex: 0 0 auto;
        width: 100%;
        max-width: 436px;
    }

    .cogp-scope-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .cogp-benefits {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 24px;
    }

    .cogp-benefit + .cogp-benefit {
        padding-top: 20px;
        padding-left: 0;
        border-top: 1px solid #b8c9e5;
        border-left: 0;
    }

    .cogp-benefit-icon {
        flex-basis: 64px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .cogp-wrap {
        padding: 0 16px 48px;
    }

    .cogp-header {
        height: 56px;
    }

    /* 좁은 화면에서는 보조 버튼을 숨겨 헤더가 넘치지 않게 함 */
    .cogp-header-buttons .cogp-btn-secondary {
        display: none;
    }

    .cogp-hero {
        padding: 12px 0 24px;
    }

    .cogp-hero-titles {
        gap: 24px;
    }

    .cogp-hero-title {
        font-size: clamp(26px, 7.4vw, 32px);
    }

    .cogp-hero-desc,
    .cogp-section-sub {
        font-size: 16px;
        line-height: 1.7;
    }

    .cogp-hero-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .cogp-chips li {
        padding: 5px 14px;
        font-size: 14px;
    }

    .cogp-section-title {
        font-size: 22px;
    }

    .cogp-problem-title {
        font-size: 19px;
    }

    .cogp-sync {
        padding: 16px 12px 20px;
        border-radius: 20px;
    }

    .cogp-sync-row {
        padding: 4px;
    }

    .cogp-operator {
        padding: 0 0 10px;
    }

    .cogp-operator-screen {
        height: auto;
        aspect-ratio: 396 / 300;
    }

    .cogp-sync-bubble {
        padding: 14px 24px;
        font-size: 17px;
    }

    .cogp-sync-icon {
        width: 88px;
        height: 88px;
        font-size: 50px;
    }

    .cogp-sync-label strong {
        font-size: 20px;
    }

    .cogp-sync-label span {
        font-size: 14px;
    }

    .cogp-benefit-texts strong {
        font-size: 18px;
    }

    .cogp-benefit-texts span {
        font-size: 15px;
    }

    .cogp-scope {
        padding: 28px 16px;
        border-radius: 20px;
    }

    .cogp-scope-head,
    .cogp-scope-tags {
        padding: 4px;
    }

    .cogp-scope-tags li {
        width: auto;
        padding: 0 18px;
        font-size: 14px;
    }

    .cogp-scope-grid {
        grid-template-columns: 1fr;
    }
}
