/* Homepage first screen: live chatbot preview on the visitor's own website */
.lp-section {
    background:
        radial-gradient(900px 420px at 85% 10%, rgba(99, 102, 241, 0.10), transparent 70%),
        radial-gradient(700px 380px at 0% 100%, rgba(16, 185, 129, 0.08), transparent 70%),
        #f6f7fb;
    padding: 48px 0 56px;
    border-bottom: 1px solid #e5e7eb;
}

.lp-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #065f46;
    background: #d1fae5;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.lp-section .lp-title {
    font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 14px;
}

.lp-title span {
    color: #4338ca;
}

.lp-lead {
    font-size: 1.08rem;
    color: #374151;
    margin-bottom: 20px;
    max-width: 34rem;
}

.lp-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.lp-input-row {
    display: flex;
    background: #fff;
    border: 2px solid #111827;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
}

.lp-input-row:focus-within {
    box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.25), 0 12px 32px rgba(17, 24, 39, 0.12);
}

.lp-input-row input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 16px 18px;
    font-size: 1.05rem;
    color: #111827;
    background: transparent;
}

.lp-input-row input[aria-invalid="true"] {
    background: #fef2f2;
}

.lp-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0 24px;
    min-height: 56px;
    cursor: pointer;
}

.lp-submit:hover {
    background: #312e81;
}

.lp-submit:focus-visible,
.lp-again:focus-visible,
.lp-cta:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 2px;
}

.lp-submit[disabled] {
    cursor: progress;
    opacity: 0.85;
}

.lp-spinner,
.lp-loading-ring {
    display: none;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: lp-spin 0.8s linear infinite;
}

.lp-spinner {
    width: 18px;
    height: 18px;
}

.lp-section[data-state="loading"] .lp-spinner {
    display: inline-block;
}

@keyframes lp-spin {
    to { transform: rotate(360deg); }
}

.lp-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 10px;
}

.lp-help {
    font-size: 0.85rem;
    color: #4b5563;
    margin: 0;
}

.lp-status {
    font-size: 0.95rem;
    margin-top: 10px;
}

.lp-status:empty {
    display: none;
}

.lp-status--error {
    color: #991b1b;
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    padding: 10px 12px;
}

.lp-status--info {
    color: #1f2937;
}

.lp-points {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    font-size: 0.92rem;
    color: #374151;
}

.lp-points li::before {
    content: "\2713";
    color: #059669;
    font-weight: 700;
    margin-right: 6px;
}

.lp-browser {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.16);
    overflow: hidden;
}

.lp-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.lp-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #f87171;
}

.lp-dot:nth-child(2) { background: #fbbf24; }
.lp-dot:nth-child(3) { background: #34d399; }

.lp-browser-url {
    margin-left: 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #fff;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.85rem;
    color: #4b5563;
}

.lp-stage {
    position: relative;
    height: 560px;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

.lp-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

.lp-placeholder,
.lp-loading,
.lp-error-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.lp-placeholder[hidden],
.lp-loading[hidden],
.lp-error-panel[hidden],
.lp-frame[hidden],
.lp-result[hidden] {
    display: none;
}

.lp-mock {
    width: min(340px, 100%);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e0e7ff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(67, 56, 202, 0.12);
    text-align: left;
}

.lp-mock-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.lp-mock-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #c7d2fe;
}

.lp-mock-title {
    width: 55%;
    height: 12px;
    border-radius: 6px;
    background: #e0e7ff;
}

.lp-mock-bubble {
    font-size: 0.88rem;
    border-radius: 14px;
    padding: 9px 12px;
    margin-bottom: 8px;
    max-width: 85%;
}

.lp-mock-bot {
    background: #f3f4f6;
    color: #374151;
}

.lp-mock-user {
    margin-left: auto;
    background: #111827;
    color: #fff;
}

.lp-mock-faint {
    height: 34px;
    width: 60%;
    opacity: 0.6;
}

.lp-placeholder-text {
    margin: 18px 0 0;
    font-weight: 600;
    color: #4338ca;
}

.lp-loading p {
    margin-top: 16px;
    color: #374151;
    font-weight: 600;
}

.lp-loading-ring {
    display: inline-block;
    width: 44px;
    height: 44px;
    border-color: #c7d2fe;
    border-top-color: #4338ca;
}

.lp-error-panel {
    color: #7f1d1d;
}

.lp-error-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.lp-error-panel p {
    max-width: 30rem;
}

.lp-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.lp-result-text {
    margin: 0;
    font-size: 0.95rem;
    color: #1f2937;
    flex: 1 1 260px;
}

.lp-result-text:focus {
    outline: none;
}

.lp-result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lp-cta,
.lp-again {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}

.lp-cta {
    background: #059669;
    color: #fff;
}

.lp-cta:hover {
    background: #047857;
    color: #fff;
}

.lp-again {
    background: #fff;
    color: #111827;
    border: 2px solid #111827;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .lp-section {
        padding: 28px 0 40px;
    }

    .lp-stage {
        height: 520px;
    }
}

@media (max-width: 575.98px) {
    .lp-section .lp-title {
        font-size: 1.75rem;
    }

    .lp-lead {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .lp-input-row {
        flex-direction: column;
    }

    .lp-input-row input {
        font-size: 16px;
        padding: 14px 16px;
        border-bottom: 1px solid #e5e7eb;
    }

    .lp-submit {
        justify-content: center;
        min-height: 52px;
    }

    .lp-points {
        grid-template-columns: 1fr;
    }

    .lp-stage {
        height: 480px;
    }

    .lp-result-actions,
    .lp-result-actions > * {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-spinner,
    .lp-loading-ring {
        animation-duration: 2.5s;
    }
}

/* The product block below keeps its former h1 look as a second-level heading. */
#ai-chatbot-block h2.h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    #ai-chatbot-block h2.h1 { font-size: 2.5rem; }
}

@media (max-width: 767.98px) {
    #ai-chatbot-block h2.h1 { font-size: 2rem; margin-bottom: 1rem; }
}
