/* ==========================================================================
   ChatGPT 광고 (/Ads/ChatGPT)
   페이퍼 톤 에디토리얼 — 대화(스레드)를 시그니처 모티프로 삼는다.
   형제 페이지 Gmarket(블루 SaaS·다크 피날레·순수 CSS 목업)과 의도적으로
   다른 결: 크림 지면, 헤어라인 보더, 실제 제품 스크린샷.
   ========================================================================== */

/* 전역 #container #content { margin-bottom: 12vh } 때문에 크림색 피날레와
   푸터 사이에 흰 띠가 남는다. 이 페이지는 .cg-cta 가 자체 하단 여백을 갖고 있으므로
   전역 여백은 걷어내고 피날레 배경이 푸터까지 이어지게 둔다. */
#container #content {
    margin-bottom: 0;
}

.cg-page {
    /* tokens */
    --cg-ink: #0d0d0d;
    --cg-body: #565656;
    --cg-muted: #8c8c8c;
    --cg-sage: #0f8a6d;
    --cg-sage-deep: #0a5f4b;
    --cg-mint: #a9d8c4;
    --cg-paper: #faf9f7;
    --cg-cream: #f2efe9;
    --cg-line: #e4e0d8;
    --cg-line-soft: #eeebe4;
    --cg-radius: 16px;
    --cg-radius-lg: 24px;
    --cg-sky: linear-gradient(148deg, #a8d5c2 0%, #d9e6dc 42%, #f2ead9 100%);

    background: var(--cg-paper);
    color: var(--cg-ink);
    overflow: hidden;
    word-break: keep-all;
}

.cg-page,
.cg-page * {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    letter-spacing: -0.02em;
    box-sizing: border-box;
}

/* 형제 페이지가 800 굵기로 힘을 주는 것과 달리, 여기서는 600 + 좁은 자간으로
   눌러 쓰는 에디토리얼 위계를 만든다. */
/* 제목은 줄 길이를 고르게, 본문은 마지막 줄에 한 단어만 남지 않게 한다.
   (미지원 브라우저에서는 그냥 무시된다) */
.cg-page h1,
.cg-page h2,
.cg-page h3 {
    text-wrap: balance;
}

.cg-page p,
.cg-page figcaption {
    text-wrap: pretty;
}

/* 제목은 줄 길이를 고르게, 본문은 마지막 줄에 한 단어만 남지 않게 한다.
   (미지원 브라우저에서는 무시된다) */
.cg-page h1,
.cg-page h2,
.cg-page h3 {
    text-wrap: balance;
}

.cg-page p,
.cg-page figcaption {
    text-wrap: pretty;
}

.cg-page .cg-display {
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.22;
}

.cg-container {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   공통 요소
   -------------------------------------------------------------------------- */

.cg-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--cg-sage-deep);
}

.cg-label::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
}

.cg-section {
    padding: 104px 0;
}

.cg-section-head {
    max-width: 660px;
    margin-bottom: 56px;
}

.cg-section-head h2 {
    margin: 0 0 18px;
    font-size: 38px;
    color: var(--cg-ink);
}

.cg-section-head p {
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    color: var(--cg-body);
}

/* 그라디언트 글자 대신 밑줄 하이라이트로 강조한다. */
.cg-mark {
    position: relative;
    white-space: nowrap;
}

.cg-mark::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 0.1em;
    height: 0.34em;
    background: var(--cg-mint);
    opacity: 0.55;
    z-index: -1;
}

.cg-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 40px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--cg-muted);
}

.cg-note::before {
    content: "※";
    flex: none;
    color: var(--cg-sage);
}

.cg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.cg-btn:hover {
    transform: translateY(-2px);
}

.cg-btn:focus-visible {
    outline: 3px solid rgba(15, 138, 109, .4);
    outline-offset: 2px;
}

.cg-btn-primary {
    background: var(--cg-ink);
    color: #fff;
}

.cg-btn-primary:hover {
    background: #000;
    color: #fff;
}

.cg-btn-ghost {
    border-color: var(--cg-line);
    background: transparent;
    color: var(--cg-ink);
}

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

.cg-btn-invert {
    background: #fff;
    color: var(--cg-ink);
}

.cg-btn-invert:hover {
    background: #fff;
    color: #000;
}

/* 스크롤 등장 */
.cg-motion-ready .cg-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}

.cg-motion-ready .cg-reveal.is-in {
    opacity: 1;
    transform: none;
}

.cg-motion-ready .cg-delay-100 { transition-delay: .09s; }
.cg-motion-ready .cg-delay-200 { transition-delay: .18s; }
.cg-motion-ready .cg-delay-300 { transition-delay: .27s; }

/* --------------------------------------------------------------------------
   ① Hero
   -------------------------------------------------------------------------- */

.cg-hero {
    position: relative;
    padding: 96px 0 104px;
    background:
        radial-gradient(720px 460px at 88% -6%, rgba(169, 216, 196, .5), transparent 66%),
        radial-gradient(560px 420px at 6% 8%, rgba(242, 234, 217, .75), transparent 70%),
        var(--cg-paper);
}

.cg-hero .cg-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    align-items: center;
    gap: 56px;
}

.cg-hero h1 {
    position: relative;
    z-index: 0;
    margin: 0 0 26px;
    font-size: 46px;
    color: var(--cg-ink);
}

.cg-hero-sub {
    margin: 0;
    max-width: 520px;
    font-size: 18px;
    line-height: 1.75;
    color: var(--cg-body);
}

.cg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.cg-hero-actions form {
    display: inline;
    margin: 0;
}

/* 시그니처: 대화 스레드 */
.cg-thread {
    position: relative;
    padding: 26px 22px 24px;
    border: 1px solid var(--cg-line);
    border-radius: var(--cg-radius-lg);
    background: #fff;
    box-shadow: 0 30px 70px -40px rgba(13, 13, 13, .35);
}

.cg-thread-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cg-line-soft);
    font-size: 13px;
    font-weight: 600;
    color: var(--cg-muted);
}

.cg-thread-bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cg-line);
}

.cg-thread-bar span {
    margin-left: 6px;
}

.cg-msg-user {
    max-width: 82%;
    margin: 0 0 22px auto;
    padding: 12px 16px;
    border-radius: 18px 18px 4px 18px;
    background: var(--cg-cream);
    font-size: 14px;
    line-height: 1.6;
    color: var(--cg-ink);
}

.cg-msg-ai {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.cg-avatar {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--cg-line);
    background: #fff;
    position: relative;
}

.cg-avatar::before,
.cg-avatar::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--cg-ink);
}

.cg-avatar::before {
    inset: 6px 5px;
    transform: rotate(28deg);
}

.cg-avatar::after {
    inset: 6px 5px;
    transform: rotate(-28deg);
}

.cg-lines {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.cg-lines i {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: var(--cg-line-soft);
}

.cg-lines i:nth-child(1) { width: 94%; }
.cg-lines i:nth-child(2) { width: 82%; }
.cg-lines i:nth-child(3) { width: 60%; }

/* 한 줄씩 그려지는 타이핑 */
.cg-motion-ready .cg-thread.is-in .cg-lines i {
    transform-origin: left center;
    animation: cg-typing .5s cubic-bezier(.22, .61, .36, 1) both;
}

.cg-motion-ready .cg-thread.is-in .cg-lines i:nth-child(1) { animation-delay: .25s; }
.cg-motion-ready .cg-thread.is-in .cg-lines i:nth-child(2) { animation-delay: .45s; }
.cg-motion-ready .cg-thread.is-in .cg-lines i:nth-child(3) { animation-delay: .65s; }

@keyframes cg-typing {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.cg-adcard {
    display: flex;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--cg-line);
    border-radius: 14px;
    background: var(--cg-paper);
}

.cg-motion-ready .cg-thread.is-in .cg-adcard {
    animation: cg-rise .6s cubic-bezier(.22, .61, .36, 1) .85s both;
}

@keyframes cg-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.cg-adcard-thumb {
    flex: none;
    width: 62px;
    height: 62px;
    border-radius: 10px;
    background: var(--cg-sky);
}

.cg-adcard-body {
    min-width: 0;
}

.cg-adcard-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cg-body);
}

.cg-adcard-brand em {
    font-style: normal;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--cg-cream);
    color: var(--cg-muted);
    font-weight: 600;
    letter-spacing: 0;
}

.cg-adcard strong {
    display: block;
    margin: 6px 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cg-ink);
}

.cg-adcard p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--cg-body);
}

/* --------------------------------------------------------------------------
   ② 결정의 순간 (타임라인)
   -------------------------------------------------------------------------- */

.cg-moments {
    background: var(--cg-cream);
}

.cg-rail {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-top: 46px;
}

.cg-rail::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 6px;
    right: 6px;
    height: 1px;
    background: linear-gradient(90deg, var(--cg-line), var(--cg-sage) 88%);
}

.cg-moment {
    position: relative;
    padding-right: 12px;
}

.cg-moment::before {
    content: "";
    position: absolute;
    top: -43px;
    left: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid var(--cg-line);
    background: var(--cg-cream);
}

.cg-moment.is-hit::before {
    border-color: var(--cg-sage);
    background: var(--cg-sage);
    box-shadow: 0 0 0 5px rgba(15, 138, 109, .16);
}

.cg-moment-step {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cg-muted);
}

.cg-moment.is-hit .cg-moment-step {
    color: var(--cg-sage-deep);
}

.cg-moment h3 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--cg-ink);
}

.cg-moment p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--cg-body);
}

.cg-moment-tag {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--cg-sage);
    font-size: 13px;
    font-weight: 600;
    color: var(--cg-sage-deep);
}

/* --------------------------------------------------------------------------
   ③ 노출 방식
   -------------------------------------------------------------------------- */

.cg-split {
    display: grid;
    grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.cg-split.is-flipped {
    grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
}

.cg-shot {
    margin: 0;
    border: 1px solid var(--cg-line);
    border-radius: var(--cg-radius-lg);
    background: #fff;
    overflow: hidden;
}

.cg-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.cg-shot figcaption {
    padding: 12px 18px 14px;
    border-top: 1px solid var(--cg-line-soft);
    font-size: 13px;
    line-height: 1.55;
    color: var(--cg-muted);
}

/* 화면 두 컷을 겹쳐 쌓아 "만들고 → 확인한다" 순서를 보여준다. */
.cg-shot-stack {
    display: grid;
    gap: 18px;
}

.cg-shot-stack .cg-shot:last-child {
    margin-left: 40px;
}

.cg-facts {
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--cg-line);
}

.cg-facts li {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--cg-line);
}

.cg-facts li::before {
    content: none;
}

.cg-facts dt,
.cg-facts .cg-facts-key {
    font-size: 14px;
    font-weight: 600;
    color: var(--cg-ink);
}

.cg-facts .cg-facts-val {
    font-size: 15px;
    line-height: 1.7;
    color: var(--cg-body);
}

/* --------------------------------------------------------------------------
   ④ 집행 방식
   -------------------------------------------------------------------------- */

.cg-operate {
    background: var(--cg-cream);
}

.cg-steps {
    counter-reset: cg-step;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--cg-line);
}

.cg-steps li {
    position: relative;
    padding: 26px 0 26px 62px;
    border-bottom: 1px solid var(--cg-line);
}

.cg-steps li::before {
    counter-increment: cg-step;
    content: counter(cg-step);
    position: absolute;
    top: 26px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--cg-ink);
    font-size: 14px;
    font-weight: 600;
    color: var(--cg-ink);
}

.cg-steps strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--cg-ink);
}

.cg-steps p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--cg-body);
}

/* --------------------------------------------------------------------------
   ⑤ 성과 측정
   -------------------------------------------------------------------------- */

.cg-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--cg-line);
    border-radius: var(--cg-radius);
    overflow: hidden;
}

.cg-metrics li {
    padding: 22px 24px 24px;
    background: #fff;
}

.cg-metrics li::before {
    content: none;
}

.cg-metrics li + li {
    border-left: 1px solid var(--cg-line);
}

.cg-metrics dt,
.cg-metrics .cg-metric-key {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cg-muted);
}

.cg-metrics .cg-metric-val {
    display: block;
    font-size: 15px;
    line-height: 1.65;
    color: var(--cg-body);
}

/* --------------------------------------------------------------------------
   ⑥ 신뢰 원칙
   -------------------------------------------------------------------------- */

.cg-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--cg-line);
    border-bottom: 1px solid var(--cg-line);
}

.cg-principles li {
    padding: 36px 34px 40px;
}

.cg-principles li::before {
    content: none;
}

.cg-principles li + li {
    border-left: 1px solid var(--cg-line);
}

.cg-principle-icon {
    display: block;
    width: 26px;
    height: 26px;
    margin-bottom: 20px;
    color: var(--cg-sage);
}

.cg-principle-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cg-principles h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--cg-ink);
}

.cg-principles p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--cg-body);
}

/* --------------------------------------------------------------------------
   ⑦ 피날레: 운영 프로세스 + CTA
   -------------------------------------------------------------------------- */

.cg-finale {
    background: var(--cg-paper);
}

.cg-process {
    padding-bottom: 72px;
}

.cg-flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cg-flow li {
    position: relative;
    padding: 26px 20px 28px;
    border: 1px solid var(--cg-line);
    border-radius: var(--cg-radius);
    background: #fff;
}

.cg-flow li::before {
    content: none;
}

.cg-flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -13px;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--cg-line);
    border-right: 1px solid var(--cg-line);
    transform: translateY(-50%) rotate(45deg);
}

.cg-flow-no {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--cg-sage-deep);
}

.cg-flow strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.45;
    color: var(--cg-ink);
}

.cg-flow p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--cg-body);
}

.cg-cta {
    padding: 0 0 104px;
}

.cg-cta-panel {
    position: relative;
    padding: 72px 56px 76px;
    border-radius: 28px;
    background:
        radial-gradient(620px 340px at 84% 8%, rgba(15, 138, 109, .42), transparent 68%),
        radial-gradient(520px 320px at 8% 96%, rgba(169, 216, 196, .22), transparent 70%),
        var(--cg-ink);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.cg-cta-panel h2 {
    margin: 0 0 14px;
    font-size: 38px;
    color: #fff;
}

.cg-cta-panel p {
    margin: 0 0 34px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .72);
}

.cg-cta-panel form {
    display: inline;
    margin: 0;
}

/* --------------------------------------------------------------------------
   반응형
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .cg-hero {
        padding: 72px 0 84px;
    }

    .cg-hero .cg-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cg-hero h1 {
        font-size: 42px;
    }

    .cg-thread {
        max-width: 460px;
    }

    .cg-section-head h2,
    .cg-cta-panel h2 {
        font-size: 32px;
    }

    .cg-split,
    .cg-split.is-flipped {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cg-shot {
        max-width: 460px;
    }

    .cg-shot-stack .cg-shot:last-child {
        margin-left: 0;
    }

    .cg-rail {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 0;
        padding-left: 28px;
    }

    .cg-rail::before {
        top: 8px;
        bottom: 8px;
        left: 6px;
        right: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, var(--cg-line), var(--cg-sage) 88%);
    }

    .cg-moment {
        padding: 0 0 34px;
    }

    .cg-moment:last-child {
        padding-bottom: 0;
    }

    .cg-moment::before {
        top: 2px;
        left: -28px;
    }

    .cg-flow {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .cg-flow li:not(:last-child)::after {
        content: none;
    }
}

@media (max-width: 768px) {
    .cg-section {
        padding: 72px 0;
    }

    .cg-hero h1 {
        font-size: 34px;
    }

    .cg-hero-sub {
        font-size: 16px;
    }

    .cg-section-head {
        margin-bottom: 40px;
    }

    .cg-section-head h2,
    .cg-cta-panel h2 {
        font-size: 27px;
    }

    .cg-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cg-facts li {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .cg-metrics,
    .cg-principles {
        grid-template-columns: 1fr;
    }

    .cg-metrics li + li,
    .cg-principles li + li {
        border-left: 0;
        border-top: 1px solid var(--cg-line);
    }

    .cg-principles li {
        padding: 30px 0 32px;
    }

    .cg-flow {
        grid-template-columns: 1fr;
    }

    .cg-cta {
        padding-bottom: 72px;
    }

    .cg-cta-panel {
        padding: 52px 24px 56px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .cg-hero h1 {
        font-size: 29px;
    }

    .cg-msg-user {
        max-width: 90%;
    }

    .cg-thread {
        padding: 22px 16px 20px;
    }

    .cg-steps li {
        padding-left: 50px;
    }

    .cg-steps li::before {
        width: 30px;
        height: 30px;
    }
}
