/* Demo form pages (cms/demo_form.html) */

.demo-page {
    font-family: var(--primary-font, "Golos Text", sans-serif);
    color: var(--lp-ink, #15161d);
    text-align: left;
}

.demo-page__title {
    font-family: var(--alt-font, "Plus Jakarta Sans", sans-serif);
    color: var(--lp-ink, #15161d);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.demo-page__subheader {
    font-family: var(--alt-font, "Plus Jakarta Sans", sans-serif);
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 600;
    line-height: 1.55;
    color: var(--lp-muted, #404455);
    margin: 0 auto 2rem;
    max-width: 100%;
}

/* —— Fake browser chrome around #content —— */
.demo-browser {
    margin: 0 0 1.25rem;
    border-radius: 14px;
    overflow: hidden;
    background: #1a1b22;
    box-shadow:
        0 0 0 1px rgba(21, 22, 29, 0.08),
        0 18px 42px rgba(21, 22, 29, 0.14);
    text-align: left;
}

.demo-browser__chrome {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.9rem;
    background: linear-gradient(180deg, #2a2b33 0%, #1f2027 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-browser__dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.demo-browser__dots span {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #5c5e68;
}

.demo-browser__dots span:nth-child(1) {
    background: #ff5f57;
}

.demo-browser__dots span:nth-child(2) {
    background: #febc2e;
}

.demo-browser__dots span:nth-child(3) {
    background: #28c840;
}

.demo-browser__url {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--primary-font, "Golos Text", sans-serif);
    font-size: 0.82rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-browser__url .lp-icon,
.demo-browser__url i {
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.45);
}

.demo-browser__viewport {
    /* #content — per-page background via page.custom_css */
    min-height: 120px;
    padding: 1.75rem 1.25rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.demo-browser__viewport > * {
    max-width: 100%;
}

@media (min-width: 768px) {
    .demo-browser__viewport {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 575px) {
    .demo-browser {
        border-radius: 10px;
        margin-left: -0.35rem;
        margin-right: -0.35rem;
    }

    .demo-browser__chrome {
        padding: 0.55rem 0.65rem;
        gap: 0.55rem;
    }

    .demo-browser__dots span {
        width: 0.55rem;
        height: 0.55rem;
    }

    .demo-browser__url {
        font-size: 0.72rem;
        padding: 0.35rem 0.55rem;
    }

    .demo-browser__viewport {
        padding: 1.1rem 0.65rem;
    }
}

/* —— page.content —— */
.demo-page .lp-content {
    text-align: left;
    margin-bottom: 0.25rem;
}

/* Theme sets section { padding: 110px 0 } — kill it inside demos */
.demo-page section:not(.demo-closing),
.demo-page .lp-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.demo-page .lp-content .lp-section + .lp-section {
    margin-top: 0.85rem;
    padding-top: 0.85rem !important;
    border-top: 1px solid var(--lp-line, #e4e7f0);
}

.demo-page .lp-content h2,
.demo-page .lp-content h3 {
    font-family: var(--alt-font, "Plus Jakarta Sans", sans-serif);
    color: var(--lp-ink, #15161d);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.demo-page .lp-content h2 {
    font-size: clamp(1.35rem, 3vw, 1.7rem) !important;
    line-height: 1.3 !important;
}

.demo-page .lp-content h3 {
    font-size: 1.12rem !important;
    line-height: 1.35 !important;
}

.demo-page .lp-content p {
    margin-top: 0;
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--lp-muted, #404455);
}

.demo-page .lp-content p:last-child {
    margin-bottom: 0;
}

.demo-page .lp-content p strong,
.demo-page .lp-content li strong {
    color: var(--lp-ink, #15161d);
    font-weight: 600;
}

.demo-page .lp-content ul {
    margin: 0.15rem 0 0.35rem;
    padding: 0;
    list-style: none;
}

.demo-page .lp-content ul li {
    position: relative;
    padding: 0.22rem 0 0.22rem 1.45rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--lp-muted, #404455);
}

.demo-page .lp-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--lp-brand, #2946f3);
    opacity: 0.85;
}

.demo-disclaimer {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0 0 0.85rem;
    padding: 0.85rem 1rem;
    text-align: left;
    border-radius: 12px;
    background: #f7f8fb;
    border: 1px solid var(--lp-line, #e4e7f0);
    color: var(--lp-muted, #404455);
}

.demo-disclaimer__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    background: #eef2ff;
    color: var(--lp-brand, #2946f3);
}

.demo-disclaimer__icon .lp-icon {
    width: 1.15rem;
    height: 1.15rem;
    color: inherit;
}

.demo-disclaimer__body {
    min-width: 0;
}

.demo-disclaimer__label {
    display: inline-block;
    margin: 0 0 0.35rem;
    font-family: var(--alt-font, "Plus Jakarta Sans", sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lp-brand, #2946f3);
}

.demo-disclaimer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--lp-muted, #404455);
}

.demo-disclaimer p strong {
    color: var(--lp-ink, #15161d);
    font-weight: 600;
}

/* —— Closing CTA (under every demo) —— */
.demo-closing {
    margin-top: 1.15rem;
    padding: 1.5rem 1.35rem 1.4rem !important;
    text-align: center;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 80% 70% at 50% 0%, rgba(41, 70, 243, 0.12), transparent 60%),
        linear-gradient(165deg, #eef2ff 0%, #f4f6fb 55%, #ffffff 100%);
    border: 1px solid rgba(41, 70, 243, 0.14);
    box-shadow: 0 12px 28px rgba(41, 70, 243, 0.06);
}

.demo-closing__eyebrow {
    display: inline-block;
    margin: 0 0 0.6rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: rgba(41, 70, 243, 0.1);
    color: var(--lp-brand, #2946f3);
    font-family: var(--alt-font, "Plus Jakarta Sans", sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.demo-closing h2 {
    font-family: var(--alt-font, "Plus Jakarta Sans", sans-serif);
    font-size: clamp(1.35rem, 3.2vw, 1.75rem) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3 !important;
    color: var(--lp-ink, #15161d);
    margin: 0 auto 0.65rem;
    max-width: 80%;
}

.demo-closing__lead {
    margin: 0 auto 1.1rem;
    max-width: 80%;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--lp-muted, #404455);
}

.demo-closing__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 0.85rem;
}

.demo-closing .lp-btn {
    min-width: 12.5rem;
}

.demo-closing .lp-btn--primary .lp-icon {
    color: #fff;
}

.demo-closing .lp-btn--ghost .lp-icon {
    color: var(--lp-brand, #2946f3);
}

.demo-closing__or {
    font-family: var(--alt-font, "Plus Jakarta Sans", sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: #8b90a0;
    padding: 0 0.15rem;
}

.demo-closing .lp-btn--ghost {
    background: #fff;
    border-color: rgba(41, 70, 243, 0.28);
    box-shadow: 0 4px 12px rgba(21, 22, 29, 0.04);
}

.demo-closing .lp-btn--ghost:hover {
    background: #fff;
    border-color: var(--lp-brand, #2946f3);
    box-shadow: 0 8px 18px rgba(41, 70, 243, 0.12);
}

@media (max-width: 767px) {
    .demo-page__title {
        font-size: 1.85rem;
    }

    .demo-page__subheader {
        font-size: 1.2rem;
        margin-bottom: 1.15rem;
    }

    .demo-disclaimer {
        margin-bottom: 0.75rem;
        padding: 0.85rem 0.9rem;
        gap: 0.65rem;
    }

    .demo-disclaimer p {
        font-size: 1.08rem;
        line-height: 1.55;
    }

    .demo-page .lp-content .lp-section + .lp-section {
        margin-top: 0.75rem;
        padding-top: 0.75rem !important;
    }

    .demo-page .lp-content h2 {
        font-size: 1.55rem !important;
        margin-bottom: 0.4rem;
    }

    .demo-page .lp-content h3 {
        font-size: 1.28rem !important;
        margin-bottom: 0.4rem;
    }

    .demo-page .lp-content p,
    .demo-page .lp-content ul li {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .demo-closing {
        padding: 1.35rem 1rem 1.2rem !important;
        margin-top: 1rem;
    }

    .demo-closing h2 {
        font-size: 1.5rem !important;
    }

    .demo-closing__lead {
        font-size: 1.15rem;
    }

    .demo-closing__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .demo-closing .lp-btn {
        width: 100%;
        min-width: 0;
        font-size: 1.05rem;
    }

    .demo-closing__or {
        text-align: center;
    }
}
