/* Add-on page: banner, content card, package card. The demo stays readable without GSAP. */
body[data-current-page="software-connections"] .content-area:has(.lp) {
    max-width: none;
    width: auto;
    min-width: 0;
    margin-left: 0;
    padding: 0;
}

.lp {
    --lp-ink: #0f172a;
    --lp-muted: #475569;
    --lp-line: #e2e8f0;
    --lp-accent: #0284c7;
    --lp-banner: #0c4a6e;
    --lp-soft: #f8fafc;
    --lp-radius: 16px;
    --lp-banner-height: 400px;
    --lp-overlap: 250px;
    color: var(--lp-ink);
}

/* Banner */
.lp-banner {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    height: var(--lp-banner-height);
    padding: 24px 32px;
    overflow: hidden;
    background: var(--lp-banner);
    color: #fff;
}

.lp-banner__art {
    position: absolute;
    inset-block: 0;
    left: 14%;
    width: min(560px, 60%);
    height: 100%;
    color: #fff;
    pointer-events: none;
}

.lp-banner__title,
.lp-banner__back {
    position: relative;
}

.lp-banner__title {
    font-size: clamp(1.25rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.lp-banner__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.lp-banner__back:hover,
.lp-banner__back:focus-visible {
    color: #fff;
    text-decoration: underline;
}

/* Cards */
.lp-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
    margin-block-start: calc(var(--lp-overlap) * -1);
    padding: 0 32px 32px;
}

.lp-card {
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.lp-main {
    position: relative;
    min-width: 0;
    padding: 32px;
}

.lp-logo {
    position: absolute;
    inset-block-start: -56px;
    inset-inline-start: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    color: var(--lp-accent);
    font-size: 2.5rem;
}

.lp-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.lp-main__title {
    margin: 0 0 16px;
    padding-inline-start: 136px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--lp-ink);
}

.lp-main__lead {
    margin: 24px 0 8px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lp-ink);
}

.lp-main__text {
    margin: 0 0 24px;
    line-height: 1.6;
    color: var(--lp-muted);
}

.lp-main__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-block-end: 24px;
    border-radius: 10px;
    object-fit: cover;
}

.lp-main__heading {
    margin: 32px 0 8px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lp-ink);
}

.lp-main__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-inline-start: 20px;
    line-height: 1.5;
    color: var(--lp-muted);
}

/* Package card */
.lp-side {
    position: sticky;
    inset-block-start: 16px;
    padding: 24px;
}

.lp-side__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--lp-ink);
}

.lp-package {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.lp-package th {
    padding: 8px;
    background: var(--lp-soft);
    font-weight: 700;
    color: var(--lp-ink);
    text-align: start;
}

.lp-package td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--lp-line);
    color: var(--lp-muted);
}

/* Tour under the demo */
.lp-tour {
    container-type: inline-size;
}

.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.lp-step {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-block-start: 8px;
    border-top: 2px solid var(--lp-line);
    font-size: 0.8125rem;
    color: var(--lp-muted);
    transition: border-color 0.2s ease;
}

.lp-step b {
    color: var(--lp-ink);
}

.lp-step.is-active {
    border-top-color: var(--lp-accent);
}

/* Demo, laid out like the real inbox */
.lp-demo {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 440px;
    overflow: hidden;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    font-size: 0.8125rem;
    user-select: none;
}

.lp-demo__tabs {
    display: flex;
    flex-shrink: 0;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--lp-line);
    background: var(--lp-soft);
}

.lp-demo__tab {
    padding: 4px 12px;
    border-radius: 999px;
    color: var(--lp-muted);
    font-weight: 700;
    white-space: nowrap;
}

.lp-demo__views {
    position: relative;
    flex: 1;
    min-height: 0;
}

.lp-demo__view {
    position: absolute;
    inset: 0;
    background: #fff;
}

/* The finished conversation is the static state, without GSAP. */
.lp-demo:not(.is-live) .lp-demo__planner,
.lp-demo:not(.is-live) .lp-demo__stats,
.lp-demo:not(.is-live) .lp-demo__handoffs,
.lp-demo:not(.is-live) .lp-demo__summary,
.lp-demo:not(.is-live) .lp-demo__pack,
.lp-demo:not(.is-live) .lp-doc__unsent,
.lp-demo:not(.is-live) .lp-toast,
.lp-demo:not(.is-live) .lp-typing {
    display: none;
}

.lp-demo__inbox {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 1.7fr) minmax(130px, 0.9fr);
}

.lp-demo__pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #fff;
}

.lp-demo__list {
    border-inline-end: 1px solid var(--lp-line);
}

.lp-demo__lead {
    gap: 8px;
    padding: 12px;
    border-inline-start: 1px solid var(--lp-line);
}

.lp-demo__lead h4 {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
}

.lp-demo__lead b,
.lp-demo__lead small {
    display: block;
}

.lp-demo__lead small {
    margin-block-end: 8px;
    color: var(--lp-muted);
}

.lp-demo__search {
    margin: 8px;
    padding: 6px 8px;
    border: 1px solid var(--lp-line);
    border-radius: 6px;
    color: #94a3b8;
}

.lp-conv {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.lp-avatar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    font-weight: 700;
}

.lp-conv__text {
    flex: 1;
    min-width: 0;
}

.lp-conv__text b,
.lp-conv__text small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lp-conv__text small {
    color: var(--lp-muted);
}

.lp-conv__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lp-accent);
}

.lp-demo__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid var(--lp-line);
    background: var(--lp-soft);
}

.lp-demo__head small {
    color: var(--lp-muted);
    font-variant-numeric: tabular-nums;
}

.lp-demo__messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 12px;
}

.lp-bubble {
    max-width: 82%;
    padding: 8px 12px;
    border-radius: 12px;
    line-height: 1.45;
}

.lp-bubble--in {
    align-self: flex-start;
    background: #f1f5f9;
}

.lp-bubble--out {
    align-self: flex-end;
    background: var(--lp-accent);
    color: #fff;
}

.lp-demo__composer {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-top: 1px solid var(--lp-line);
}

.lp-demo__input {
    flex: 1;
    min-width: 0;
    min-height: 54px;
    padding: 6px 8px;
    border: 1px solid var(--lp-line);
    border-radius: 6px;
    line-height: 1.4;
}

.lp-demo__send,
.lp-demo__open {
    align-self: flex-end;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--lp-accent);
    color: #fff;
    font-weight: 700;
    text-align: center;
}

/* Agent views */
.lp-typing {
    display: flex;
    align-self: flex-end;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #e0f2fe;
}

.lp-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lp-accent);
}

.lp-fact {
    padding: 8px;
    border: 1px solid var(--lp-line);
    border-radius: 8px;
}

.lp-fact small,
.lp-fact b {
    display: block;
}

.lp-fact small {
    margin: 0;
}

.lp-demo__handoffs,
.lp-demo__summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.lp-hand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 8px;
    border: 1px solid var(--lp-line);
    border-radius: 8px;
}

.lp-hand--done {
    opacity: 0.6;
}

.lp-hand__state {
    flex-shrink: 0;
    font-weight: 700;
    color: #b45309;
}

.lp-hand__state--mine {
    color: #15803d;
}

.lp-hand__state--closed {
    color: var(--lp-muted);
}

.lp-hand__context {
    margin-block-start: 8px;
}

.lp-demo__summary {
    align-items: flex-start;
    justify-content: center;
    background: #f1f5f9;
}

.lp-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: min(300px, 100%);
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    font-size: 0.875rem;
    line-height: 1.5;
}

.lp-summary small {
    align-self: flex-end;
    color: var(--lp-muted);
}

/* Documents views */
.lp-demo__docs,
.lp-demo__pack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    padding: 12px;
}

.lp-docs__bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-docs__filter,
.lp-docs__ghost {
    padding: 6px 12px;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    color: var(--lp-muted);
    font-weight: 700;
    white-space: nowrap;
}

.lp-docs__filter {
    margin-inline-end: auto;
}

.lp-docs__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

.lp-doc {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 64px 44px 68px;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--lp-line);
    border-radius: 8px;
}

.lp-doc--pack {
    grid-template-columns: 34px minmax(0, 1fr) 44px;
}

.lp-doc__tile {
    padding-block: 6px;
    border-radius: 4px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.625rem;
    font-weight: 800;
    text-align: center;
}

.lp-doc__name b,
.lp-doc__name small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lp-doc__name small,
.lp-doc__date {
    color: var(--lp-muted);
}

.lp-doc__cat {
    overflow: hidden;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lp-doc__status {
    display: grid;
}

.lp-doc__status em {
    grid-area: 1 / 1;
    font-style: normal;
    font-weight: 700;
}

.lp-doc__unsent {
    color: #b45309;
}

.lp-doc__sent {
    color: #15803d;
}

.lp-seg--stack {
    flex-direction: column;
}

.lp-field small,
.lp-field span {
    display: block;
}

.lp-field small {
    color: var(--lp-muted);
}

.lp-field span {
    overflow: hidden;
    padding: 4px 8px;
    border: 1px solid var(--lp-line);
    border-radius: 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lp-compose__spacer {
    flex: 1;
}

.lp-toast {
    position: absolute;
    inset-block-end: 12px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    padding: 8px 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.lp-pack__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lp-pack__head b,
.lp-pack__head small {
    display: block;
}

.lp-pack__head small {
    color: var(--lp-muted);
}

.lp-pack__head .lp-demo__send {
    align-self: center;
}

.lp-pack__progress {
    overflow: hidden;
    flex-shrink: 0;
    height: 4px;
    border-radius: 999px;
    background: var(--lp-line);
}

.lp-pack__progress i {
    display: block;
    height: 100%;
    background: var(--lp-accent);
    transform-origin: right center;
}

/* Planner view */
.lp-demo__planner {
    overflow: hidden;
    padding: 8px;
}

.lp-cal {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: auto repeat(3, minmax(0, 1fr));
    gap: 4px;
    height: 100%;
}

.lp-cal__head {
    color: var(--lp-muted);
    font-weight: 700;
    text-align: center;
}

.lp-cal__day {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 4px;
    border: 1px solid var(--lp-line);
    border-radius: 6px;
}

.lp-cal__day small {
    color: var(--lp-muted);
}

.lp-chipcal {
    overflow: hidden;
    padding: 2px 4px;
    border-radius: 4px;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.6875rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lp-chipcal--done {
    background: #dcfce7;
    color: #166534;
}

.lp-compose {
    position: absolute;
    inset-block: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(260px, 100%);
    padding: 12px;
    border-inline-start: 1px solid var(--lp-line);
    background: #fff;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.12);
}

.lp-demo:not(.is-live) .lp-compose {
    display: none;
}

.lp-seg {
    display: flex;
    gap: 4px;
}

.lp-seg__opt {
    flex: 1;
    padding: 4px;
    border: 1px solid var(--lp-line);
    border-radius: 6px;
    color: var(--lp-muted);
    font-weight: 700;
    text-align: center;
}

.lp-compose__media {
    flex: 1;
    min-height: 0;
    border-radius: 8px;
    background: #bae6fd;
}

.lp-compose .lp-demo__send {
    align-self: stretch;
}

/* Data view */
.lp-demo__stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.lp-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-block-end: 8px;
    border: 1px solid var(--lp-line);
    border-radius: 8px;
}

.lp-kpis > div {
    padding: 12px;
    border-inline-start: 1px solid var(--lp-line);
}

.lp-kpis > div:first-child {
    border-inline-start: 0;
}

.lp-kpis small {
    display: block;
    color: var(--lp-muted);
}

.lp-kpis b {
    font-size: 1.25rem;
}

.lp-post {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding-block-end: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.lp-post b {
    font-weight: 600;
    color: var(--lp-muted);
}

.lp-post__thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #bae6fd;
}

.lp-post__thumb--b {
    background: #fde68a;
}

.lp-post__thumb--c {
    background: #bbf7d0;
}

.lp-cursor {
    position: absolute;
    inset-block-start: 0;
    left: 0;
    z-index: 5;
    visibility: hidden;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.3));
}

.lp-ripple {
    position: absolute;
    inset-block-start: 0;
    left: 0;
    z-index: 4;
    visibility: hidden;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 2px solid var(--lp-accent);
    border-radius: 50%;
    pointer-events: none;
}


/* One pane at a time in a narrow card. The scene slides between them. */
@container (max-width: 639px) {
    .lp-demo__inbox {
        display: block;
    }

    .lp-post {
        grid-template-columns: 36px minmax(0, 1fr) auto;
    }

    .lp-post b:last-child {
        display: none;
    }

    .lp-doc {
        grid-template-columns: 34px minmax(0, 1fr) 60px;
    }

    .lp-doc--pack {
        grid-template-columns: 34px minmax(0, 1fr) 44px;
    }

    .lp-doc:not(.lp-doc--pack) .lp-doc__cat,
    .lp-doc:not(.lp-doc--pack) .lp-doc__date,
    .lp-docs__filter {
        display: none;
    }

    .lp-docs__bar {
        justify-content: space-between;
    }

    .lp-demo__pane {
        position: absolute;
        inset: 0;
        border: 0;
    }
}

@media (max-width: 1024px) {
    .lp-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-side {
        position: static;
    }
}

@media (max-width: 767px) {
    .lp {
        --lp-banner-height: 280px;
        --lp-overlap: 170px;
    }

    .lp-banner {
        padding: 16px;
    }

    .lp-banner__art,
    .lp-banner__back span {
        display: none;
    }

    .lp-layout {
        padding: 0 16px 24px;
    }

    .lp-main {
        padding: 20px 16px;
    }

    .lp-logo {
        inset-block-start: -40px;
        inset-inline-start: 16px;
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .lp-logo img {
        width: 44px;
        height: 44px;
    }

    .lp-main__title {
        padding-inline-start: 0;
        padding-block-start: 44px;
    }

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

    .lp-side {
        padding: 16px;
    }
}

/* ── בוט WhatsApp (wa_flows) demo: a small flow canvas + phone preview ── */
.lp-demo--flow { background: #f3f4f6; container-type: inline-size; }
.lp-flow__bar {
    display: flex; align-items: center; gap: 8px; flex: none;
    padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--lp-line);
}
.lp-flow__name { font-weight: 700; color: #0f172a; }
.lp-flow__state { position: relative; display: inline-grid; color: #64748b; font-size: 0.75rem; }
.lp-flow__state > span { grid-area: 1 / 1; }
.lp-flow__state-live { color: #15803d; }
.lp-demo:not(.is-live) .lp-flow__state > span:first-child { visibility: hidden; }
.lp-demo.is-live .lp-flow__state-live { visibility: hidden; }
.lp-flow__spacer { flex: 1; }
.lp-flow__btn { padding: 5px 12px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #0f172a; font-weight: 600; }
.lp-flow__canvas {
    position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
    padding: 16px; overflow: hidden;
    background-image: radial-gradient(circle, #cfd5dd 1px, transparent 1.1px); background-size: 20px 20px;
}
.lp-flow { display: flex; align-items: flex-start; gap: 0; }
.lp-flow__card {
    position: relative; display: flex; flex-direction: column; gap: 6px; width: 168px; padding: 10px;
    border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.05);
}
.lp-flow__card::before { content: ''; position: absolute; inset-inline: 12px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: #0284c7; }
.lp-flow__card--start::before { background: #0f172a; }
.lp-flow__card:last-child::before { background: #c2410c; }
.lp-flow__title { font-size: 0.8125rem; }
.lp-flow__when { color: #64748b; font-size: 0.6875rem; font-weight: 600; }
.lp-flow__row, .lp-flow__bubble {
    padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 7px; background: #f8fafc; color: #334155; line-height: 1.45;
}
.lp-flow__btnrow {
    display: block; padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 7px; overflow: hidden;
    color: #0284c7; font-weight: 600; text-align: center;
}
.lp-flow__btnrow + .lp-flow__btnrow { margin-top: 0; }
.lp-flow__add { align-self: flex-start; padding: 3px 8px; border: 1px dashed #cbd5e1; border-radius: 6px; color: #0284c7; font-size: 0.75rem; font-weight: 600; }
.lp-flow__out { align-self: flex-end; color: #64748b; font-size: 0.75rem; position: relative; padding-inline-end: 14px; }
.lp-flow__out::after { content: ''; position: absolute; inset-inline-end: -16px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 2px solid #94a3b8; background: #94a3b8; }
.lp-flow__link { position: relative; flex: none; width: 44px; height: 2px; margin-top: 64px; background: #94a3b8; transform-origin: right center; }
.lp-flow__link i { position: absolute; left: -2px; top: -4px; border: 5px solid transparent; border-right: 7px solid #94a3b8; border-left: 0; }
.lp-flow__link + .lp-flow__card { margin-top: 0; }
.lp-flow__link:nth-of-type(4) { margin-top: 100px; }

.lp-flow-phone {
    position: absolute; z-index: 3; inset-block: 52px 12px; left: 12px; width: 190px;
    display: flex; flex-direction: column; overflow: hidden;
    border: 6px solid #16181c; border-radius: 26px; background: #efeae2;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24);
}
.lp-demo:not(.is-live) .lp-flow-phone { display: none; }
.lp-flow-phone__head { display: flex; align-items: center; gap: 6px; padding: 8px; background: #f6f6f6; border-bottom: 1px solid #dcdcdc; font-size: 0.75rem; }
.lp-flow-phone__avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #c8d3dc; color: #fff; font-weight: 700; font-size: 0.6875rem; }
.lp-flow-phone__chat { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 8px; font-size: 0.75rem; }
.lp-flow-phone__in { align-self: flex-start; max-width: 88%; padding: 6px 8px; border-radius: 2px 8px 8px 8px; background: #fff; line-height: 1.4; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.lp-flow-phone__btn { align-self: flex-start; width: 88%; padding: 6px; border-radius: 7px; background: #fff; color: #027eb5; text-align: center; font-weight: 600; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.lp-flow-phone__out { align-self: flex-end; margin-top: 4px; padding: 6px 8px; border-radius: 8px 2px 8px 8px; background: #d9fdd3; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.lp-flow-phone__sys { align-self: center; margin-top: 4px; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.9); color: #54656f; font-size: 0.6875rem; text-align: center; }
.lp-demo--flow .lp-toast { z-index: 4; }

/* Same breakpoint as addon-landing.js NARROW_DEMO_WIDTH (the demo's own width). */
@container (max-width: 639px) {
    .lp-flow { flex-direction: column; align-items: center; }
    .lp-flow__card { width: 200px; }
    .lp-flow__link, .lp-flow__link:nth-of-type(4) { width: 2px; height: 20px; margin: 0; transform-origin: center top; }
    .lp-flow__link i { left: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top: 7px solid #94a3b8; border-bottom: 0; }
    .lp-flow__out::after { display: none; }
    .lp-flow__canvas { align-items: flex-start; overflow-y: auto; }
    .lp-flow__card:not(.lp-flow__card--start) .lp-flow__bubble { display: none; }
    .lp-flow-phone { left: 50%; margin-left: -95px; }
}

/* Toast icon (inline SVG; works without Font Awesome on public pages) */
.lp-toast { display: inline-flex; align-items: center; gap: 6px; }
.lp-toast svg { flex-shrink: 0; }

/* Link from the in-app add-on page to its public feature page */
.lp-public-link {
    display: inline-flex; align-items: center; gap: 6px; margin-block: -4px 12px;
    color: var(--lp-accent); font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.lp-public-link:hover { text-decoration: underline; }

/* Campaigns demo: wizard steps, panes on one side, the recipient's phone on the other */
.lp-camp__wizard { display: flex; flex-shrink: 0; gap: 6px; padding: 8px; border-bottom: 1px solid var(--lp-line); background: var(--lp-soft); }
.lp-camp__wstep { display: inline-flex; align-items: center; gap: 6px; padding-block: 4px; padding-inline: 4px 12px; border-radius: 999px; background: #f1f5f9; color: var(--lp-muted); font-weight: 700; white-space: nowrap; }
.lp-camp__wstep i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); color: var(--lp-ink); font-style: normal; font-size: 0.6875rem; }
.lp-camp__wstep:first-child { background: var(--lp-accent); color: #fff; }
.lp-camp__body { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; padding: 16px; }
.lp-camp__panes { position: relative; min-width: 0; }
.lp-camp__pane { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-demo:not(.is-live) .lp-camp__pane:not(:last-child) { display: none; }
.lp-camp__label { color: var(--lp-muted); font-weight: 600; }
.lp-camp__tpl, .lp-camp__src {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    border: 1px solid var(--lp-line); border-radius: 10px; background: #fff;
}
.lp-camp__tpl b { flex: 1; }
.lp-camp__cat { padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--lp-muted); font-size: 0.6875rem; font-weight: 700; }
.lp-camp__ok { display: inline-flex; align-items: center; gap: 4px; color: #15803d; font-size: 0.75rem; font-weight: 700; }
.lp-camp__src { flex-direction: column; align-items: flex-start; gap: 2px; }
.lp-camp__src span { color: var(--lp-muted); }
.lp-camp__count { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin-top: 4px; padding: 12px; border: 1px solid var(--lp-line); border-radius: 10px; background: var(--lp-soft); }
.lp-camp__count small { display: block; color: var(--lp-muted); }
.lp-camp__count b { font-size: 1.375rem; line-height: 1.2; }
.lp-camp__excl { padding-inline-start: 12px; border-inline-start: 1px solid var(--lp-line); }
.lp-camp__excl b { color: #b45309; }
.lp-camp__excl em { display: block; color: var(--lp-muted); font-style: normal; font-size: 0.6875rem; }
.lp-camp__pane .lp-seg__opt { padding: 8px; }
.lp-camp__confirm { align-self: stretch; padding-block: 10px; overflow: hidden; }
.lp-camp__live { overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.lp-camp__bar { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.lp-camp__bar i { display: block; height: 100%; background: #16a34a; transform-origin: right center; }
.lp-camp__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--lp-line); border-radius: 10px; }
.lp-camp__stats span { padding: 10px; border-inline-start: 1px solid var(--lp-line); }
.lp-camp__stats span:first-child { border-inline-start: 0; }
.lp-camp__stats small { display: block; color: var(--lp-muted); }
.lp-camp__stats b { font-size: 1.125rem; }
.lp-camp__phone {
    display: flex; flex-direction: column; overflow: hidden; min-height: 0;
    border: 6px solid #16181c; border-radius: 26px; background: #efeae2;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}
.lp-camp__media { display: block; height: 72px; border-radius: 8px; background: linear-gradient(135deg, #fde68a, #fca5a5); }
.lp-camp__stop { color: #64748b; font-weight: 500; }
.lp-demo--camp .lp-toast { z-index: 4; }

@container (max-width: 639px) {
    .lp-camp__body { grid-template-columns: minmax(0, 1fr); padding: 12px; }
    .lp-camp__phone { display: none; }
    .lp-camp__wstep { padding-inline-end: 8px; font-size: 0.75rem; }
}
