/* ============================================================
   Content Generator page (Views/Home/ContentGenerator). The hero holds the 3D scene
   (animations/content-scene): Ajebhom writes the article beside it and talks in a speech bubble (.cs-bubble,
   placed by the scene). Then numbers, the problem, the six agents, content types, human writing, Google, the free
   trial, the form and packs (base styles: components/content-form), FAQ and the final call to action.
   Classes start with cgp-, the scene's own with cs-.
   ============================================================ */

.cgp-page {
    overflow-x: clip;
}

.cgp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 22px;
}

.cgp-sample {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ds-red) !important;
}

/* ---------- HERO ---------- */
.cgp-hero {
    position: relative;
    padding: 50px 0 34px;
}

.cgp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: center;
}

.cgp-hero-text .ds-h1 {
    margin-top: 18px;
    font-size: 44px;
}

    .cgp-hero-text .ds-h1 .colored-text {
        display: block;
    }

/* the topic box */
.cgp-ask {
    margin-top: 26px;
    max-width: 560px;
}

    .cgp-ask label {
        display: block;
        font-size: 14px;
        font-weight: 700;
        color: var(--ds-ink);
        margin-bottom: 8px;
    }

.cgp-ask-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    padding-inline-start: 20px;
    border-radius: var(--ds-r-pill);
    border: 1.5px solid var(--ds-input-line);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-md);
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .cgp-ask-row:focus-within {
        border-color: var(--ds-red);
        box-shadow: var(--ds-ring), var(--ds-shadow-md);
    }

    .cgp-ask-row input {
        flex: 1;
        min-width: 0;
        height: 44px;
        border: none;
        background: none;
        font-size: 16px;
        color: var(--ds-ink);
    }

        .cgp-ask-row input:focus {
            outline: none;
        }

        .cgp-ask-row input::placeholder {
            color: var(--ds-placeholder);
        }

/* ---------- the 3D stage ---------- */
/* a fixed aspect ratio (830 x 580, on phones 360 x 640): the scene frames itself by it, and the first-frame posters
   are rendered at it (theme/images/posters), so poster and scene line up at any width */
.cgp-stage {
    position: relative;
    aspect-ratio: 830 / 580;
    border-radius: var(--ds-r-xl);
    background: radial-gradient(ellipse 60% 55% at 55% 55%, var(--ds-glow) 0%, transparent 72%);
}

    .cgp-stage .cs-canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

/* the fallback still, where the scene does not run (no WebGL, reduced motion, failed to load); it stands where
   the 3D robot would */
.cgp-poster {
    position: absolute;
    left: 70%;
    top: 57%;
    width: auto;
    height: 52%;
    transform: translate(-50%, -50%);
}

/* where the scene runs, the robot appears with it (rising in), never as a still first */
.cgp-3d .cgp-poster {
    display: none;
}

/* the scene's first frame, until the scene draws (only where the scene runs; .ds-day / .ds-night pick the theme) */
.cgp-first {
    position: absolute !important;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
}

    .cgp-first img {
        display: block;
        width: 100%;
        height: 100%;
    }

.cgp-3d .cgp-stage:not(.is-live) .cgp-first {
    visibility: visible;
}

/* the speech bubble: its tip points at the robot's head (left/top set by the scene) */
.cs-bubble {
    position: absolute;
    z-index: 2;
    width: min(360px, 90%);
    transform: translate(-50%, calc(-100% - 14px));
    padding: 12px 16px 14px;
    border-radius: 18px;
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    border-top: 3px solid var(--ds-red);
    box-shadow: var(--ds-shadow-md);
    color: var(--ds-ink);
}

    .cs-bubble::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -9px;
        width: 18px;
        height: 18px;
        margin-left: -9px;
        background: var(--ds-surface);
        border-right: 1px solid var(--ds-line);
        border-bottom: 1px solid var(--ds-line);
        transform: rotate(45deg);
    }

    .cs-bubble[hidden] {
        display: none;
    }

.cs-bubble-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-bubble-icon {
    flex: none;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-red);
    color: #FFF;
    font-family: var(--ds-mono);
    font-size: 13px;
    font-weight: 700;
}

.cs-bubble b {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    line-height: 1.6;
}

.cs-bubble small {
    font-family: var(--ds-mono);
    font-size: 11px;
    color: var(--ds-muted);
}

.cs-bubble p {
    margin-top: 6px !important;
    font-size: 14px;
    line-height: 1.95;
    color: var(--ds-text);
}

    .cs-bubble p:empty {
        display: none;
    }

/* "working on it" dots while a step runs */
.cs-dots {
    display: none;
    gap: 5px;
    margin-top: 8px;
    padding-inline-start: 40px;
}

.cs-bubble.is-thinking .cs-dots {
    display: flex;
}

.cs-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ds-red);
    animation: cgp-dot 1s ease-in-out infinite;
}

    .cs-dots i:nth-child(2) {
        animation-delay: .15s;
    }

    .cs-dots i:nth-child(3) {
        animation-delay: .3s;
    }

@keyframes cgp-dot {
    0%, 60%, 100% { transform: none; opacity: .35; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* ---------- the six steps under the stage ---------- */
.cgp-rail {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

    .cgp-rail li {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding-block: 6px;
        padding-inline: 8px 14px;
        border-radius: var(--ds-r-pill);
        background: var(--ds-surface);
        border: 1px solid var(--ds-line);
        font-size: 13px;
        font-weight: 600;
        color: var(--ds-muted);
        transition: background .3s ease, color .3s ease, border-color .3s ease;
    }

        .cgp-rail li i {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--ds-soft);
            font-size: 11px;
        }

        .cgp-rail li.is-done {
            color: var(--ds-ink);
            border-color: var(--ds-tint-line);
        }

            .cgp-rail li.is-done i {
                background: var(--ds-red-soft);
                color: var(--ds-red);
            }

        .cgp-rail li.is-active {
            background: var(--ds-red);
            border-color: var(--ds-red);
            color: #FFF;
            box-shadow: 0 8px 18px rgba(201, 29, 19, 0.22);
        }

            .cgp-rail li.is-active i {
                background: rgba(255, 255, 255, 0.2);
                color: #FFF;
            }

/* ---------- shared bits of the sections ---------- */
.cgp-tile {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-red-soft);
    color: var(--ds-red);
    font-size: 18px;
}

/* ---------- NUMBERS ---------- */
.cgp-stats-section {
    padding: 34px 0 0;
}

.cgp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    border: 1px solid var(--ds-line-soft);
    box-shadow: var(--ds-shadow-sm);
}

    .cgp-stats > div {
        padding: 22px 18px;
        text-align: center;
    }

        .cgp-stats > div + div {
            border-inline-start: 1px solid var(--ds-line-soft);
        }

    .cgp-stats b {
        display: block;
        font-size: 40px;
        line-height: 1.25;
        color: var(--ds-red);
    }

    .cgp-stats span {
        font-size: 14px;
        color: var(--ds-text);
    }

.cgp-stat-pre {
    display: block;
    font-size: 12px !important;
    color: var(--ds-muted) !important;
    margin-bottom: -4px;
}

/* ---------- 01 THE PROBLEM ---------- */
.cgp-problem {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    max-width: 1060px;
    margin: 0 auto;
}

.cgp-problem-robot {
    width: 100%;
    height: auto;
}

.cgp-problem-list {
    display: grid;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .cgp-problem-list li {
        display: flex;
        gap: 16px;
        padding: 20px 22px;
        border-radius: var(--ds-r-lg);
        background: var(--ds-surface);
        border: 1px solid var(--ds-line-soft);
        border-inline-start: 4px solid var(--ds-red);
        box-shadow: var(--ds-shadow-sm);
    }

    .cgp-problem-list h3,
    .cgp-agents h3,
    .cgp-points h3 {
        font-size: 17px;
        font-weight: 700;
        line-height: 1.6;
    }

    .cgp-problem-list p,
    .cgp-agents p,
    .cgp-points p {
        margin-top: 4px !important;
        font-size: 15px;
        line-height: 1.95;
        color: var(--ds-text);
    }

/* ---------- 02 THE SIX AGENTS ---------- */
.cgp-agents {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .cgp-agents li {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 24px 22px;
        border-radius: var(--ds-r-lg);
        background: var(--ds-bg);
        border: 1px solid var(--ds-line);
    }

.cgp-agent-no {
    position: absolute;
    top: 18px;
    inset-inline-end: 20px;
    font-size: 28px;
    font-weight: 700;
    color: var(--ds-tint-line);
}

.cgp-agent-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ds-red);
}

/* ---------- 03 CONTENT TYPES ---------- */
.cgp-types {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cgp-type {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 22px;
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    border: 1px solid var(--ds-line-soft);
    border-top: 4px solid var(--ds-red);
    box-shadow: var(--ds-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .cgp-type:hover {
        transform: translateY(-4px);
        box-shadow: var(--ds-shadow-md);
    }

    .cgp-type b {
        margin-top: 6px;
        font-size: 19px;
        color: var(--ds-ink);
    }

    .cgp-type p {
        flex: 1;
        font-size: 14px;
        line-height: 1.95;
        color: var(--ds-text);
    }

.cgp-type-news {
    border-top-color: var(--ds-ink);
}

.cgp-type-cta {
    font-size: 14px;
    font-weight: 700;
    color: var(--ds-red);
}

    .cgp-type-cta i {
        font-size: 11px;
        margin-inline-start: 4px;
    }

/* ---------- 04 HUMAN WRITING ---------- */
.cgp-vs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 0 12px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.cgp-vs-card {
    height: 100%;
    padding: 24px;
    border-radius: var(--ds-r-lg);
    background: var(--ds-bg);
    border: 1px solid var(--ds-line);
}

    .cgp-vs-card p {
        margin-top: 12px !important;
        font-size: 16px;
        line-height: 2.05;
    }

.cgp-vs-before p {
    color: var(--ds-muted);
}

.cgp-vs-after {
    background: var(--ds-surface);
    border: 2px solid var(--ds-red);
    box-shadow: var(--ds-shadow-md);
}

    .cgp-vs-after p {
        color: var(--ds-ink);
    }

.cgp-vs-mid {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-red);
    color: #FFF;
}

.cgp-vs-note {
    margin-top: 10px !important;
    text-align: center;
    font-size: 12px;
    color: var(--ds-muted);
}

.cgp-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 0;
    list-style: none;
}

    .cgp-points li {
        display: flex;
        gap: 14px;
    }

/* ---------- GOOGLE ---------- */
.cgp-google-section {
    padding-bottom: 40px;
}

.cgp-google {
    display: flex;
    align-items: center;
    gap: 26px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 36px;
    border-radius: var(--ds-r-xl);
    background: var(--ds-tint);
    border: 1px solid var(--ds-tint-line);
}

.cgp-google-icon {
    flex: none;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-red);
    color: #FFF;
    font-size: 28px;
}

.cgp-google h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
}

.cgp-google p {
    margin-top: 6px !important;
    font-size: 15px;
    line-height: 2;
}

/* ---------- FREE TRIAL (cg- markup) ---------- */
.cgp-trial {
    padding: 0 0 20px;
}

.cgp-trial .cg-trial-panel {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 30px 40px;
    padding-inline-start: 200px;
    border-radius: var(--ds-r-xl);
    background: radial-gradient(ellipse 70% 140% at 0% 0%, #DE3328 0%, var(--ds-red) 45%, var(--ds-red-dark) 100%);
    color: #FFF;
    box-shadow: 0 24px 60px rgba(201, 29, 19, 0.2);
}

:root[data-theme="dark"] .cgp-trial .cg-trial-panel {
    background: linear-gradient(135deg, #1F1214 0%, #160E10 100%);
    border: 1px solid #3B2325;
    border-top: 3px solid var(--ds-red);
}

/* Ajebhom (in love) leans out of the band's start edge */
.cgp-trial-robot {
    position: absolute;
    inset-inline-start: 10px;
    bottom: -6px;
    width: 190px;
    height: auto;
}

.cgp-trial .cg-trial-body {
    flex: 1;
    min-width: 240px;
}

    .cgp-trial .cg-trial-body h2 {
        font-size: 26px;
        font-weight: 700;
        color: #FFF;
    }

    .cgp-trial .cg-trial-body p {
        margin-top: 6px !important;
        color: #FFDCD9;
    }

:root[data-theme="dark"] .cgp-trial .cg-trial-body p {
    color: var(--ds-text);
}

.cgp-trial .cg-trial-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 14px 0 8px;
}

    .cgp-trial .cg-trial-steps li {
        counter-increment: step;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
    }

        .cgp-trial .cg-trial-steps li::before {
            content: counter(step);
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.2);
            font-family: var(--ds-mono);
            font-size: 12px;
        }

.cgp-trial .cg-trial-sample {
    font-size: 14px;
    color: #FFF !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

:root[data-theme="dark"] .cgp-trial .cg-trial-cta {
    background: var(--ds-red);
    color: #FFF !important;
}

/* ---------- 05 START + PRICING ---------- */
.cgp-start {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* Ajebhom says the intro above the form */
.cgp-say {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: -10px;
}

    .cgp-say img {
        flex: none;
        width: 120px;
        height: auto;
    }

    .cgp-say p {
        position: relative;
        margin-bottom: 26px !important;
        padding: 12px 16px;
        border-radius: 16px;
        background: var(--ds-surface);
        border: 1px solid var(--ds-line);
        box-shadow: var(--ds-shadow-sm);
        font-size: 15px;
        line-height: 1.9;
        color: var(--ds-ink);
    }

.cgp-form-card {
    position: relative;
    scroll-margin-top: 96px; /* clear of the sticky header when the hero's topic box scrolls here */
    padding: 26px;
    border-radius: var(--ds-r-xl);
    background: var(--ds-surface);
    border: 1px solid var(--ds-line-soft);
    border-top: 4px solid var(--ds-red);
    box-shadow: var(--ds-shadow-md);
}

.cgp-pricing h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
}

.cgp-pricing > p {
    margin: 8px 0 20px !important;
    font-size: 15px;
    line-height: 2;
}

/* the packs: one row each, the price on the end side */
.cgp-pricing .cg-packs {
    display: grid;
    gap: 12px;
}

.cgp-pricing .cg-pack {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name price" "caption price" "features cta";
    align-items: center;
    gap: 4px 18px;
    padding: 18px 20px;
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    border: 1px solid var(--ds-line-soft);
    box-shadow: var(--ds-shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .cgp-pricing .cg-pack:hover {
        border-color: var(--ds-red);
        box-shadow: var(--ds-shadow-md);
        transform: translateY(-2px);
    }

    .cgp-pricing .cg-pack:nth-child(2) {
        border: 2px solid var(--ds-red);
    }

/* ---------- 06 FAQ ---------- */
.cgp-faq-wrap {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.cgp-faq-robot {
    position: sticky;
    top: 110px;
    width: 100%;
    height: auto;
}

.cgp-faq {
    display: grid;
    gap: 10px;
}

    .cgp-faq details {
        border-radius: var(--ds-r-md);
        background: var(--ds-bg);
        border: 1px solid var(--ds-line);
        transition: border-color .2s ease;
    }

        .cgp-faq details[open] {
            border-color: var(--ds-tint-line);
            background: var(--ds-surface);
        }

    .cgp-faq summary {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 700;
        color: var(--ds-ink);
        cursor: pointer;
        list-style: none;
    }

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

        .cgp-faq summary::after {
            content: "\f067";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            margin-inline-start: auto;
            font-size: 12px;
            color: var(--ds-red);
            transition: transform .2s ease;
        }

    .cgp-faq details[open] summary::after {
        transform: rotate(45deg);
    }

    .cgp-faq details p {
        padding: 0 20px 18px;
        font-size: 15px;
        line-height: 2;
    }

/* ---------- FINAL CTA ---------- */
.cgp-end {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    padding: 40px 50px;
    border-radius: var(--ds-r-xl);
    background: radial-gradient(ellipse 70% 140% at 0% 0%, #DE3328 0%, var(--ds-red) 45%, var(--ds-red-dark) 100%);
    box-shadow: 0 24px 60px rgba(201, 29, 19, 0.22);
}

:root[data-theme="dark"] .cgp-end {
    background: linear-gradient(135deg, #1F1214 0%, #160E10 100%);
    border: 1px solid #3B2325;
    border-top: 3px solid var(--ds-red);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* the robot: an exported still that floats gently */
.cgp-end-robot {
    display: block;
    width: 100%;
    height: auto;
    margin: -40px 0 -50px;
    animation: cgp-float 3.2s ease-in-out infinite;
}

@keyframes cgp-float {
    50% { transform: translateY(-10px); }
}

.cgp-end .ds-h2 {
    margin-top: 0 !important;
    color: #FFF;
}

    .cgp-end .ds-h2 .colored-text {
        color: #FFF;
        text-decoration-color: rgba(255, 255, 255, 0.28);
    }

:root[data-theme="dark"] .cgp-end .ds-h2 .colored-text {
    color: var(--ds-red);
}

.cgp-end-text p {
    margin-top: 8px !important;
    font-size: 17px;
    color: #FFDCD9;
}

:root[data-theme="dark"] .cgp-end-text p {
    color: var(--ds-text);
}

.cgp-btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFF !important;
}

    .cgp-btn-outline:hover {
        background: rgba(255, 255, 255, 0.12);
    }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .cgp-hero-text .ds-h1 {
        font-size: 36px;
    }


    .cgp-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cgp-agents {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* below lg the stage goes under the text; tall enough for the article under the robot on a phone */
@media (max-width: 991px) {
    .cgp-hero {
        padding: 34px 0 28px;
    }

    .cgp-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .cgp-hero-text .ds-h1 {
        font-size: 30px;
        line-height: 1.7;
    }


    .cgp-end {
        grid-template-columns: minmax(0, 1fr);
        padding: 30px 24px 36px;
        text-align: center;
    }

    .cgp-end-robot {
        width: 180px;
        margin: -10px auto -20px;
    }

    .cgp-end .cgp-actions {
        justify-content: center;
    }

    .cgp-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .cgp-stats > div:nth-child(3) {
            border-inline-start: none;
        }

        .cgp-stats > div:nth-child(n + 3) {
            border-top: 1px solid var(--ds-line-soft);
        }

    .cgp-problem {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .cgp-problem-robot {
        width: 170px;
        margin: 0 auto;
    }

    .cgp-vs {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        justify-items: center;
    }

    /* the arrow points down to the edited text (the rtl arrow is a left arrow) */
    .cgp-vs-mid {
        transform: rotate(90deg);
    }

    html[dir="rtl"] .cgp-vs-mid {
        transform: rotate(-90deg);
    }

    .cgp-points {
        grid-template-columns: minmax(0, 1fr);
    }

    .cgp-google {
        flex-direction: column;
        text-align: center;
        padding: 28px 22px;
    }

    .cgp-trial .cg-trial-panel {
        padding: 150px 24px 28px;
    }

    .cgp-trial-robot {
        inset-inline-start: 50%;
        top: -30px;
        bottom: auto;
        width: 170px;
        transform: translateX(-50%);
    }

    html[dir="rtl"] .cgp-trial-robot {
        transform: translateX(50%);
    }

    .cgp-start {
        grid-template-columns: minmax(0, 1fr);
    }

    .cgp-faq-wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .cgp-faq-robot {
        position: static;
        width: 150px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .cgp-hero-text .ds-h1 {
        font-size: 26px;
    }

    .cgp-ask-row {
        padding-inline-start: 14px;
    }

        .cgp-ask-row .ds-btn {
            padding: 0 14px;
        }

    .cgp-stage {
        aspect-ratio: 360 / 640;
    }

    .cs-bubble p {
        font-size: 13px;
    }

    /* on a phone the robot stands centred above the article */
    .cgp-poster {
        left: 50%;
        top: 36%;
        height: 40%;
    }

    .cgp-rail li span {
        display: none;
    }

    .cgp-rail li {
        padding: 4px;
    }

    .cgp-end .ds-btn {
        flex: 1 1 100%;
    }

    .cgp-agents,
    .cgp-types {
        grid-template-columns: minmax(0, 1fr);
    }

    .cgp-form-card {
        padding: 20px 16px;
    }

    .cgp-say img {
        width: 72px;
    }

    .cgp-say p {
        font-size: 14px;
    }

    .cgp-pricing .cg-pack {
        grid-template-columns: 1fr;
        grid-template-areas: "name" "caption" "price" "features" "cta";
    }

    .cgp-pricing .cg-pack-price,
    .cgp-pricing .cg-pack-cta {
        justify-self: start;
    }

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

@media (prefers-reduced-motion: reduce) {
    .cs-dots i,
    .cgp-end-robot {
        animation: none;
    }
}
