/* ── Live demo page styles (shared across en/ru/he) ─────────────────────────
   The /{lang}/demo/ markup has always used this vocabulary - .demo-widget-frame,
   .demo-try-item, .dti-icon, .demo-step-card - and no stylesheet has ever
   defined it. The page therefore rendered as a column of bare text: the emoji
   on its own line, the widget with no frame, the CTA box indistinguishable from
   a paragraph. Measured on production 2026-09-29.

   Kept in the same visual language as check-site.css: white cards on a light
   section, #2563EB accent, 12-16px radii, slate text. RTL is handled by the
   page being inside dir="rtl" on /he/ - no per-rule mirroring is needed because
   the layout here is flow-based, with the two logical inline-start paddings
   written as padding-inline-start. */

/* ── Section shells ─────────────────────────────────────────────────────── */
.demo-section {
    padding: 8px 0 72px;
}

.demo-how-section {
    padding: 72px 0;
    background: var(--bg-light-secondary, #F8F9FB);
    border-top: 1px solid #E8ECF3;
}

/* ── The widget column ──────────────────────────────────────────────────── */
.demo-widget-frame {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .09);
}

/* Sits above the chat like a device label, not like body copy. */
.demo-widget-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: #475569;
    padding: 2px 4px 12px;
}

/* The "this is really running" dot. Slow pulse: a fast one reads as an alarm. */
.demo-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--status-success, #10B981);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .55);
    animation: demo-live-pulse 2.4s ease-out infinite;
    flex: none;
}

@keyframes demo-live-pulse {
    70%  { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* The embedded chat fills the frame it was given rather than the 480px the
   widget falls back to, so the frame never shows a strip of dead space. */
.demo-widget-frame .slcb-window {
    height: 100% !important;
    border-radius: 12px;
}

/* ── "What to try" column ───────────────────────────────────────────────── */
.demo-try-title {
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: 800;
    color: var(--text-on-light-primary, #0F172A);
    margin-bottom: 10px;
}

.demo-try-sub {
    font-size: .97rem;
    line-height: 1.6;
    color: var(--text-on-light-secondary, #475569);
    margin-bottom: 26px;
}

.demo-try-list {
    display: grid;
    gap: 12px;
}

.demo-try-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #E8ECF3;
    border-radius: 14px;
    padding: 14px 16px;
    transition: border-color .18s, transform .18s, box-shadow .18s;
}

.demo-try-item:hover {
    border-color: #C7D6F5;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.dti-icon {
    flex: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    border-radius: 11px;
    background: var(--icon-bg-blue, #EFF6FF);
}

.dti-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-on-light-primary, #0F172A);
    margin-bottom: 3px;
}

.dti-text {
    font-size: .87rem;
    line-height: 1.55;
    color: var(--text-on-light-muted, #64748B);
}

/* ── CTA under the list ─────────────────────────────────────────────────── */
.demo-cta-box {
    margin-top: 28px;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #F1F5FF 0%, #EEF7F4 100%);
    border: 1px solid #DCE6FA;
}

.demo-cta-text {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--text-on-light-secondary, #334155);
    margin-bottom: 16px;
}

/* ── Three steps ────────────────────────────────────────────────────────── */
.demo-step-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid #E8ECF3;
    border-radius: 16px;
    padding: 28px 24px 24px;
    transition: border-color .18s, transform .18s, box-shadow .18s;
}

.demo-step-card:hover {
    border-color: #C7D6F5;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
}

.demo-step-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #2563EB;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 14px;
}

.demo-step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-on-light-primary, #0F172A);
    margin-bottom: 8px;
}

.demo-step-card p {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--text-on-light-secondary, #475569);
    margin: 0;
}

.demo-step-card code {
    background: #F1F5F9;
    border-radius: 5px;
    padding: 1px 5px;
    font-size: .85em;
    color: #0F172A;
}

/* ── Narrow screens: the chat column comes first, so it must not be tall
      enough to push the reasons to try it below two screenfuls. ─────────── */
@media (max-width: 991.98px) {
    .demo-widget-frame {
        margin-bottom: 28px;
    }
}

/* Motion is decoration here; the pulse is the only thing that moves. */
@media (prefers-reduced-motion: reduce) {
    .demo-live-dot { animation: none; }
    .demo-try-item, .demo-step-card { transition: none; }
    .demo-try-item:hover, .demo-step-card:hover { transform: none; }
}
