/* QA / marketing landings — load after Tailwind (see head-includes.html) */

/*
  Липкая шапка (#main-header): z-50 из Tailwind иногда оказывается ниже
  секций с position + z-index (trusted-by, полосы home-page-main).
  Поднимаем слой шапки целиком, чтобы меню/мегаменю и мобильный оверлей не «ломались».
*/
#main-header {
    z-index: 100 !important;
}

/* --- Heebo stack (product pages that previously inlined this) --- */
body.page-ai-customer-service.font-hebrew,
body.page-website-ai-salesman.font-hebrew,
body.page-ai-website-guide.font-hebrew {
    font-family: "Heebo", "Assistant", "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}

/* --- Hero (default: warm gradient; dark #0b1220) --- */
.hero-section {
    background-color: #fff9f5;
    background-image:
        radial-gradient(circle at 110% -10%, rgba(255, 198, 133, 0.52) 0%, rgba(255, 154, 108, 0.42) 36%, rgba(255, 154, 108, 0) 65%),
        radial-gradient(circle at -10% 110%, rgba(255, 228, 196, 0.52) 0%, rgba(255, 218, 185, 0.35) 40%, rgba(255, 218, 185, 0) 70%),
        radial-gradient(circle at 80% 45%, rgba(255, 198, 133, 0.30) 0%, rgba(255, 154, 108, 0.22) 32%, rgba(255, 154, 108, 0) 60%);
}

html.dark .hero-section {
    background-color: #0b1220;
    background-image: none;
}

/* App hub + vertical app landings: dark hero #0f172a */
html.dark .hero-section.hero-section--dark-alt {
    background-color: #0f172a;
    background-image: none;
}

/* --- Section stripes --- */
.qa-section-odd { background-color: #fff9f5; }
.qa-section-even { background-color: #f8fafc; }
html.dark .qa-section-odd { background-color: #0b1220; }
html.dark .qa-section-even { background-color: #0f172a; }

/* --- Cards (long-form landings) --- */
.qa-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(2, 6, 23, 0.06), 0 1px 1px rgba(2, 6, 23, 0.04);
}
html.dark .qa-card {
    background-color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.qa-card-soft-blue { background-color: #eff6ff; border: 2px solid #3B82F6; }
.qa-card-soft-green { background-color: #ecfdf5; border: 2px solid #10B981; }
html.dark .qa-card-soft-blue,
html.dark .qa-card-soft-green { background-color: #1E293B !important; }
.qa-card-purple { background-color: #F5F3FF !important; border: 2px solid #3B82F6; }
html.dark .qa-card-purple {
    background-color: #1e293b !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
}

.qa-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-width: 2px;
    border-style: solid;
    background: #fff;
    margin-bottom: 16px;
}
html.dark .qa-card-icon { background: transparent; }

/* Index home: icon style without white fill */
.home-page-main .qa-card-icon {
    margin-bottom: 12px;
    background: transparent;
}

.qa-card-float {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.qa-card-float:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px -8px rgba(2,6,23,0.15), 0 4px 14px -4px rgba(2,6,23,0.08);
}

/* --- FAQ --- */
.qa-faq-item { transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
.qa-faq-item[open] {
    border-color: #3B82F6 !important;
    background-color: #F8FAFC;
    box-shadow: 0 6px 12px rgba(2, 6, 23, 0.08);
}
html.dark .qa-faq-item[open] {
    background-color: #111827;
    border-color: rgba(59, 130, 246, 0.75) !important;
}
.qa-faq-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.qa-faq-summary::-webkit-details-marker { display: none; }
.qa-faq-question { flex: 1; text-align: center; }
.qa-faq-chevron {
    color: #64748B;
    transition: transform 200ms ease, color 200ms ease;
    flex-shrink: 0;
}
.qa-faq-item[open] .qa-faq-chevron { transform: rotate(180deg); color: #3B82F6; }
.qa-faq-answer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
    text-align: center;
}
html.dark .qa-faq-answer { border-top-color: rgba(255, 255, 255, 0.12); }

/* --- Post-pricing band --- */
.post-pricing-text-bg {
    position: relative;
    margin-top: -1px;
    background:
        radial-gradient(circle at 120% -25%, rgba(255, 198, 133, 0.18) 0%, rgba(255, 154, 108, 0.08) 35%, rgba(255, 154, 108, 0) 65%),
        radial-gradient(circle at -20% 120%, rgba(255, 218, 185, 0.14) 0%, rgba(255, 218, 185, 0) 70%),
        linear-gradient(180deg, #FFF9F5 0%, #FFF6EE 22%, #F6E3D1 58%, #EFD4BD 100%);
}
.post-pricing-text-bg .ambient-blob {
    position: absolute;
    filter: blur(95px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}
.post-pricing-text-bg .blob-1 {
    top: 14%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: #ffdec7;
    border-radius: 50%;
}
.post-pricing-text-bg .blob-2 {
    top: 52%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: #ffe3d9;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}
.post-pricing-text-bg > section { position: relative; z-index: 1; }

html.dark .post-pricing-text-bg { background: #0b1220; }
html.dark .post-pricing-text-bg.post-pricing-text-bg--dark-even,
html.dark .home-page-main > .post-pricing-text-bg { background: #0f172a; }

html.dark .post-pricing-text-bg .ambient-blob { opacity: 0; }
html.dark .post-pricing-text-bg article {
    background-color: #1e293b !important;
    color: #94A3B8 !important;
}
html.dark .post-pricing-text-bg article h3,
html.dark .post-pricing-text-bg article p,
html.dark .post-pricing-text-bg article ul,
html.dark .post-pricing-text-bg article li,
html.dark .post-pricing-text-bg article div { color: inherit !important; }
html.dark .post-pricing-text-bg article .text-\[34px\] { color: #ffffff !important; }
html.dark .post-pricing-text-bg article .qa-price-highlight { color: #F97316 !important; }
html.dark .post-pricing-text-bg .rounded-full.bg-white { background-color: #1e293b !important; }
html.dark .post-pricing-text-bg .rounded-full.bg-\[\#EFF6FF\],
html.dark .post-pricing-text-bg .rounded-full.bg-\[\#FFF0E3\],
html.dark .post-pricing-text-bg .rounded-full.bg-\[\#EEF2FF\],
html.dark .post-pricing-text-bg .rounded-full.bg-\[\#FFF1F2\] { background-color: #334155 !important; }

/* Index: pricing block spacing */
.home-page-main > .post-pricing-text-bg { margin-top: 0; }

/* --- Home page (main): светлая тема — тёплый градиент как у остальных лендингов (.hero-section); тёмная — плита #0b1220 --- */
html.dark .home-page-main .hero-section {
    background-color: #0b1220;
    background-image: none;
}

.qa-mini-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: #F97316;
    box-shadow: 0 4px 12px rgba(249,115,22,0.28);
    transition: all 120ms ease;
}
.qa-mini-cta:hover {
    transform: translateY(-1px);
    background: #EA580C;
    box-shadow: 0 8px 14px rgba(249,115,22,0.34);
}

.robot-slide { transition: opacity 0.5s ease; }

html.dark .home-page-main .qa-card { background-color: #111827 !important; }
html.dark .home-page-main .qa-card-icon { background: transparent; }

html.dark .home-page-main .ai-bot-trusted-band > section {
    background-color: #0f172a !important;
}

/* Главная: без линий и теней между крупными секциями */
.home-page-main > .hero-section,
html.dark .home-page-main > .hero-section {
    box-shadow: none;
}
.home-page-main > .qa-section-odd,
.home-page-main > .post-pricing-text-bg,
.home-page-main > .humanity-section,
html.dark .home-page-main > .qa-section-odd,
html.dark .home-page-main > .post-pricing-text-bg,
html.dark .home-page-main > .humanity-section {
    border-top: none;
    box-shadow: none;
}

.home-page-main > .qa-section-even {
    position: relative;
    z-index: 1;
    border-top: none;
    background-image:
        linear-gradient(to right, rgba(249, 115, 22, 0.08) 0%, rgba(249, 115, 22, 0) min(22vw, 200px)),
        linear-gradient(to left, rgba(59, 130, 246, 0.07) 0%, rgba(59, 130, 246, 0) min(22vw, 200px));
    box-shadow: none;
}
html.dark .home-page-main > .qa-section-even {
    background-color: #0f172a;
    background-image: none;
    box-shadow: none;
}

html.dark .home-page-main > .humanity-section {
    background-color: #0f172a !important;
}
html.dark .home-page-main > .humanity-section .humanity-slider-platform {
    background-color: #0b1220 !important;
}
@media (max-width: 767px) {
    html.dark .home-page-main > .humanity-section .humanity-slider-platform {
        background-color: #0f172a !important;
    }
}

/* --- page-qa-landing (short bot marketing pages) --- */
.page-qa-landing .qa-shell-inner > section {
    background: transparent !important;
    box-shadow: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.page-qa-landing .qa-shell-inner > section.border-t,
.page-qa-landing .qa-shell-inner > section.border-b {
    border: none !important;
    box-shadow: none !important;
}
html.dark .page-qa-landing .ai-bot-trusted-band > section {
    background-color: #0f172a !important;
}

/* --- About --- */
.about-service-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 16rem;
    text-align: start;
}
.about-service-list > li {
    position: relative;
    padding-inline-start: 0.95rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.55;
}
.about-service-list > li:last-child { margin-bottom: 0; }
.about-service-list > li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
}
.about-service-list--blue > li::before { background-color: #2563eb; }
html.dark .about-service-list--blue > li::before { background-color: #60a5fa; }
.about-service-list--orange > li::before { background-color: #ea580c; }
html.dark .about-service-list--orange > li::before { background-color: #fb923c; }
.about-service-list--emerald > li::before { background-color: #059669; }
html.dark .about-service-list--emerald > li::before { background-color: #34d399; }
.about-service-list--violet > li::before { background-color: #7c3aed; }
html.dark .about-service-list--violet > li::before { background-color: #a78bfa; }

/* --- Legal lists --- */
.legal-bullet-list {
    list-style-type: disc;
    list-style-position: inside;
    padding-inline-start: 0;
    margin-inline: auto;
    max-width: 36rem;
    width: 100%;
    text-align: start;
}
.legal-bullet-list > li { padding-inline-start: 0; }
.legal-bullet-list > li::marker { color: #3b82f6; }
html.dark .legal-bullet-list > li::marker { color: #60a5fa; }

/* --- Examples page --- */
.bot-image, .bot-name, .bot-description { cursor: pointer; }

.bot-card {
    cursor: pointer;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
#botGridWrapper .bot-card:hover {
    transform: none;
    box-shadow: 0 14px 28px -6px rgba(2, 6, 23, 0.1), 0 6px 12px -4px rgba(2, 6, 23, 0.05);
}
html.dark #botGridWrapper .bot-card:hover {
    box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.45), 0 6px 16px -6px rgba(0, 0, 0, 0.3);
}
html.dark #botGridWrapper .bot-card {
    background-color: transparent;
    border-color: transparent;
}

.examples-metric-card { background-color: rgba(255, 255, 255, 0.5); }
html.dark .examples-metric-card { background-color: #111827; }

#botEmulatorModal { transition: opacity 0.3s ease; }
#botEmulatorModal.show { opacity: 1; }
#botEmulatorModal .modal-frame {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
#botEmulatorModal.show .modal-frame { transform: scale(1); }
@media (max-width: 768px) {
    #botEmulatorModal .modal-frame {
        width: 360px;
        height: 740px;
        margin: 0;
        max-width: 90vw;
        max-height: 90vh;
    }
}

/* --- Apps hub --- */
.app-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -8px rgba(2,6,23,0.15); }
html.dark .app-card:hover { box-shadow: 0 12px 28px -8px rgba(0,0,0,0.45); }

/* --- AI Humanity component --- */
.humanity-slider-platform .bot-card {
    cursor: pointer;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.humanity-slider-platform .bot-card:hover {
    transform: none;
    box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.12), 0 6px 12px -4px rgba(0, 0, 0, 0.06);
}
html.dark .humanity-slider-platform .bot-card {
    background-color: transparent;
    border-color: transparent;
}
html.dark .humanity-slider-platform .bot-card:hover {
    box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.5), 0 6px 16px -6px rgba(0, 0, 0, 0.35);
    border-color: rgba(59, 130, 246, 0.5);
}
html.dark .humanity-slider-platform .swiper-button-next,
html.dark .humanity-slider-platform .swiper-button-prev { color: #94a3b8; }
html.dark .humanity-slider-platform .swiper-button-next:hover,
html.dark .humanity-slider-platform .swiper-button-prev:hover { color: #e2e8f0; }
html.dark .humanity-slider-platform .swiper-pagination-bullet {
    background: #475569;
    opacity: 0.55;
}
html.dark .humanity-slider-platform .swiper-pagination-bullet-active {
    background: #94a3b8;
    opacity: 1;
}

#aiHumanityBotEmulatorModal { transition: opacity 0.3s ease; }
#aiHumanityBotEmulatorModal.show { opacity: 1; }
#aiHumanityBotEmulatorModal .bg-white {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
#aiHumanityBotEmulatorModal.show .bg-white { transform: scale(1); }
@media (max-width: 768px) {
    #aiHumanityBotEmulatorModal .bg-white {
        width: 360px;
        height: 740px;
        margin: 0;
        max-width: 90vw;
        max-height: 90vh;
    }
}

/* --- ig-direct mock (page uses {{HEAD_INCLUDES}} in some builds) --- */
.ig-phone {
    width: 360px;
    height: 740px;
    border-radius: 2.5rem;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 0;
}
.ig-header {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}
.ig-header-left, .ig-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ig-icon-btn {
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 9999px;
    color: #111827;
}
.ig-icon-btn svg { width: 20px; height: 20px; }
.ig-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
    position: relative;
}
.ig-avatar::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: #fff;
    border-radius: 9999px;
}
.ig-name {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}
.ig-sub {
    font-size: 12px;
    color: #6b7280;
}
.ig-chat {
    flex: 1;
    background: #fafafa;
    padding: 12px 12px 20px;
    overflow-y: auto;
}
.ig-row { display: flex; margin: 8px 0; }
.ig-row.in { justify-content: flex-start; }
.ig-row.out { justify-content: flex-end; }
.ig-bubble {
    max-width: 78%;
    padding: 10px 12px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}
.ig-incoming {
    background: #efefef;
    color: #111827;
    border-top-right-radius: 6px;
}
.ig-outgoing {
    background: #3797F0;
    color: #fff;
    border-top-left-radius: 6px;
}
.ig-time {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin: 10px 0 6px;
}
.ig-inputbar {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.ig-input {
    flex: 1;
    height: 36px;
    border-radius: 18px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
}
.ig-send { width: 28px; height: 28px; border-radius: 9999px; background: #3797F0; display: inline-flex; align-items: center; justify-content: center; }
.ig-send svg { width: 16px; height: 16px; color: #fff; }
.ig-input .ig-icon-btn { color: #6b7280; }
