/* Keys on ChatGPT — the /chatgpt landing page.
   Scoped to .cg- so it cannot reach into the rest of the marketing site.
   Designed for someone holding a phone: one clear action, large targets,
   short lines. */

:root {
    --cg-ink: #0d1b3e;
    --cg-ink-soft: #55607d;
    --cg-line: #e3e7f2;
    --cg-brand: #0f1597;
    --cg-brand-dark: #0a0f6b;
    --cg-wash: #f6f8fd;
    --cg-key: #21afe5;
}

.cg-hero,
.cg-section {
    padding: 72px 0;
    color: var(--cg-ink);
}

.cg-hero {
    padding-top: 56px;
    background: linear-gradient(180deg, #ffffff 0%, var(--cg-wash) 100%);
}

.cg-section-alt {
    background: var(--cg-wash);
}

.cg-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff4d6;
    color: #7a5600;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.cg-h1 {
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.5px;
    margin-bottom: 18px;
    text-wrap: balance;
}

.cg-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--cg-ink-soft);
    max-width: 34em;
    margin-bottom: 26px;
}

.cg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.cg-btn {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: transform .12s ease, background .2s ease;
}

    .cg-btn:focus-visible {
        outline: 3px solid var(--cg-key);
        outline-offset: 3px;
    }

    .cg-btn:hover {
        transform: translateY(-1px);
        text-decoration: none;
    }

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

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

.cg-btn-ghost {
    background: #fff;
    color: var(--cg-brand);
    border: 1.5px solid var(--cg-line);
}

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

.cg-note {
    font-size: 14px;
    color: var(--cg-ink-soft);
    max-width: 34em;
}

/* The example conversation */
.cg-chat {
    background: #fff;
    border: 1px solid var(--cg-line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 44px rgba(13, 27, 62, .08);
}

.cg-chat-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

    .cg-chat-bar span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--cg-line);
    }

.cg-msg {
    border-radius: 14px;
    padding: 12px 15px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.cg-msg-user {
    background: var(--cg-wash);
    margin-left: 18%;
}

.cg-msg-keys {
    background: #fff;
    border: 1px solid var(--cg-line);
}

    .cg-msg-keys strong {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: var(--cg-brand);
        margin-bottom: 6px;
    }

    .cg-msg-keys p {
        margin: 0 0 10px;
    }

.cg-keys {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cg-key {
    border: 1.5px solid var(--cg-line);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

    .cg-key em {
        display: block;
        font-style: normal;
        font-weight: 400;
        font-size: 11px;
        color: var(--cg-ink-soft);
        margin-top: 2px;
    }

.cg-key-img {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.cg-chat-foot {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--cg-brand);
    font-weight: 600;
}

.cg-chat-caption {
    margin: 12px 0 0;
    font-size: 11px;
    color: var(--cg-ink-soft);
}

/* Sections */
.cg-h2 {
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    text-wrap: balance;
}

.cg-h2-left {
    text-align: left;
    margin-bottom: 8px;
}

.cg-sub {
    text-align: center;
    color: var(--cg-ink-soft);
    margin-bottom: 34px;
}

.cg-card,
.cg-step {
    background: #fff;
    border: 1px solid var(--cg-line);
    border-radius: 14px;
    padding: 24px;
    height: 100%;
}

    .cg-card h3,
    .cg-step h3 {
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .cg-card p,
    .cg-step p {
        font-size: 15px;
        line-height: 1.6;
        color: var(--cg-ink-soft);
        margin: 0;
    }

.cg-step-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cg-brand);
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}

.cg-provider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--cg-line);
    border-radius: 16px;
    padding: 30px;
}

    .cg-provider p {
        color: var(--cg-ink-soft);
        margin: 0;
        max-width: 46em;
    }

/* FAQ */
.cg-faq {
    max-width: 780px;
    margin: 0 auto;
}

    .cg-faq details {
        background: #fff;
        border: 1px solid var(--cg-line);
        border-radius: 12px;
        padding: 16px 20px;
        margin-bottom: 10px;
    }

    .cg-faq summary {
        cursor: pointer;
        font-weight: 700;
        font-size: 16px;
    }

    .cg-faq summary::-webkit-details-marker {
        color: var(--cg-brand);
    }

    .cg-faq p {
        margin: 10px 0 0;
        color: var(--cg-ink-soft);
        font-size: 15px;
        line-height: 1.6;
    }

.cg-fine {
    max-width: 780px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 13px;
    color: var(--cg-ink-soft);
}

@media (max-width: 991px) {
    .cg-hero .col-lg-6 + .col-lg-6 {
        margin-top: 34px;
    }
}

@media (max-width: 575px) {
    .cg-hero,
    .cg-section {
        padding: 48px 0;
    }

    .cg-msg-user {
        margin-left: 8%;
    }

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

    .cg-btn {
        width: 100%;
        text-align: center;
    }

    .cg-provider {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cg-btn {
        transition: none;
    }

        .cg-btn:hover {
            transform: none;
        }
}
