:root {
    --bc-font-family: Inter, Arial, sans-serif;
    --deck-ink: #172033;
    --deck-muted: #68748d;
    --deck-line: #e1e6f1;
    --deck-soft: #f6f7fb;
    --deck-purple: #6957f5;
    --deck-purple-dark: #4e43d8;
    --deck-blue: #2e67f2;
    --deck-pink: #e83e9d;
    --deck-green: #119873;
    --deck-amber: #d98216;
    --deck-navy: #111b35;
}
html[lang="he"] { --bc-font-family: Heebo, Arial, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--deck-ink);
    background: var(--deck-soft);
    font-family: var(--bc-font-family);
    line-height: 1.65;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.deck-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.deck-header {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    border-bottom: 1px solid rgba(225, 230, 241, .9);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
}
.deck-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; }
.deck-brand-mark {
    display: grid;
    place-items: center;
    justify-content: center;
    width: 100px;
    height: 56px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, #2563eb 0%, #6d5ce7 54%, #ec4899 100%);
    box-shadow: 0 10px 22px rgba(84, 69, 211, .2);
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: -.025em;
    direction: ltr;
    text-align: center;
    unicode-bidi: isolate;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.deck-brand-mark::after {
    content: '';
    position: absolute;
    width: 42%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    inset-block-start: -32%;
    inset-inline-start: -13%;
}
.deck-header-actions, .deck-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.deck-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .65rem 1rem;
    border: 1px solid var(--deck-line);
    border-radius: 12px;
    color: var(--deck-ink);
    background: #fff;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}
.deck-button.primary { border-color: var(--deck-purple); color: #fff; background: var(--deck-purple); }
.deck-button.primary:hover { background: var(--deck-purple-dark); }
.deck-button.blue { border-color: var(--deck-blue); color: #fff; background: var(--deck-blue); }
.deck-hero {
    display: grid;
    place-items: center;
    min-height: 610px;
    margin: 2rem auto;
    padding: 5rem 7vw;
    border-radius: 34px;
    color: #fff;
    text-align: center;
    background: var(--deck-navy);
    box-shadow: 0 28px 90px rgba(17, 27, 53, .2);
}
.deck-hero.crm { background: var(--deck-blue); }
.deck-kicker { display: block; margin-bottom: 1rem; color: #d9d6ff; font-size: .9rem; font-weight: 800; }
.deck-hero.crm .deck-kicker { color: #e8f0ff; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 860px; margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; }
.deck-hero p { max-width: 760px; margin-bottom: 1.8rem; color: #d8ddf0; font-size: 1.1rem; }
.deck-hero.crm p { color: #e8f0ff; }
.deck-price {
    display: inline-flex;
    align-items: baseline;
    gap: .45rem;
    margin: 1rem 0 1.6rem;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    color: var(--deck-purple-dark);
    background: #fff;
}
.deck-hero.crm .deck-price { color: var(--deck-blue); }
.deck-live-demo {
    margin: 2rem 0 3.5rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid var(--deck-line);
    border-radius: 32px;
    background: linear-gradient(145deg, #ffffff 0%, #f7f5ff 100%);
    box-shadow: 0 24px 70px rgba(17, 27, 53, .1);
    scroll-margin-top: 92px;
}
.deck-live-demo.crm-demo { background: linear-gradient(145deg, #ffffff 0%, #f2f7ff 100%); }
.deck-live-demo h2 bdi { white-space: nowrap; }
.deck-demo-heading { max-width: 820px; margin: 0 auto 1.35rem; text-align: center; }
.deck-demo-heading h2 {
    margin: .35rem 0 .65rem;
    color: var(--deck-ink);
    font-size: clamp(1.75rem, 3.4vw, 2.8rem);
    line-height: 1.13;
}
.deck-demo-heading p, .deck-demo-note { color: var(--deck-muted); line-height: 1.75; }
.deck-demo-browser {
    overflow: hidden;
    border: 1px solid #d8ddea;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(39, 47, 72, .14);
}
.deck-demo-browser-top {
    display: flex;
    align-items: center;
    gap: .42rem;
    min-height: 46px;
    padding: 0 1rem;
    direction: ltr;
    border-bottom: 1px solid #e7eaf2;
    background: #f7f8fb;
}
.deck-demo-logo {
    display: grid;
    place-items: center;
    min-width: 74px;
    height: 41px;
    flex: 0 0 auto;
    padding: 0 .55rem;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #2563eb 0%, #6d5ce7 54%, #ec4899 100%);
    font-size: .66rem;
    font-weight: 800;
    direction: ltr;
    text-align: center;
    white-space: nowrap;
}
.deck-demo-browser-top strong { margin-inline-start: auto; color: #667085; font-size: .78rem; }
.deck-demo-frame {
    display: block;
    width: 100%;
    height: min(760px, 76vw);
    min-height: 620px;
    border: 0;
    background: #f6f7fb;
}
.deck-demo-note { margin: .85rem 0 0; text-align: center; font-size: .82rem; }
.deck-price strong { font-size: 2.25rem; line-height: 1; }
.deck-slide {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: 540px;
    margin: 1.35rem 0;
    padding: clamp(2rem, 5vw, 4.5rem);
    overflow: hidden;
    border: 1px solid var(--deck-line);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(17, 27, 53, .07);
}
.deck-slide:nth-of-type(even) { background: #fbfbfe; }
.deck-slide.full { grid-template-columns: 1fr; text-align: center; }
.deck-slide-number { position: absolute; top: 1.25rem; inset-inline-start: 1.4rem; color: var(--deck-muted); font-size: .76rem; font-weight: 800; }
.deck-eyebrow { display: block; margin-bottom: .55rem; color: var(--deck-purple-dark); font-size: .78rem; font-weight: 850; }
.crm-page .deck-eyebrow { color: var(--deck-blue); }
.deck-copy h2 { max-width: 640px; margin-bottom: .85rem; font-size: clamp(1.55rem, 2.5vw, 2.2rem); line-height: 1.16; letter-spacing: -.025em; }
.deck-copy > p { max-width: 680px; color: var(--deck-muted); font-size: 1rem; }
.deck-list { display: grid; gap: .75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.deck-list li { position: relative; padding-inline-start: 1.35rem; font-weight: 700; }
.deck-list li::before { position: absolute; inset-inline-start: 0; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--deck-purple); content: ""; }
.deck-list li:nth-child(2)::before { background: var(--deck-blue); }
.deck-list li:nth-child(3)::before { background: var(--deck-pink); }
.deck-list li:nth-child(4)::before { background: var(--deck-green); }
.deck-visual { padding: 1.2rem; border: 1px solid var(--deck-line); border-radius: 24px; background: var(--deck-soft); }
.metric-grid, .feature-grid, .flow-grid { display: grid; gap: .8rem; }
.metric-grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid { grid-template-columns: repeat(2, 1fr); }
.flow-grid { grid-template-columns: repeat(4, 1fr); }
.metric, .feature, .flow-step {
    padding: 1.1rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 27, 53, .05);
}
.metric strong { display: block; color: var(--deck-blue); font-size: 1.65rem; }
.metric:nth-child(2) strong { color: var(--deck-pink); }
.metric:nth-child(3) strong { color: var(--deck-green); }
.metric span, .feature p, .flow-step p { color: var(--deck-muted); font-size: .82rem; }
.feature h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.feature.purple { background: #eeebff; }
.feature.blue { background: #eaf2ff; }
.feature.pink { background: #fff0f8; }
.feature.green { background: #e8f8f2; }
.flow-step { position: relative; padding-top: 3.25rem; }
.flow-step b { position: absolute; top: .85rem; inset-inline-start: .9rem; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--deck-purple); }
.agent-chat { display: grid; gap: .75rem; }
.agent-message { max-width: 88%; padding: .9rem 1rem; border-radius: 18px; background: #fff; }
.agent-message.user { justify-self: start; color: #fff; background: var(--deck-purple); }
.agent-message small { display: block; margin-top: .35rem; color: var(--deck-muted); }
.integration-note { margin-top: 1rem; padding: .85rem 1rem; border-radius: 14px; color: #8a5b0a; background: #fff4df; font-size: .8rem; font-weight: 750; }
.retention-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: .85rem; padding: .9rem 1rem; border-radius: 14px; background: #fff; }
.retention-row b { color: var(--deck-purple-dark); }
.deck-final { margin: 1.5rem 0 4rem; padding: 4rem 6vw; border-radius: 30px; color: #fff; text-align: center; background: var(--deck-navy); }
.crm-page .deck-final { background: var(--deck-blue); }
.deck-final h2 { margin-bottom: .7rem; font-size: clamp(1.6rem, 2.8vw, 2.35rem); }
.deck-final p { max-width: 720px; margin: 0 auto 1.4rem; color: #d8ddf0; }
.deck-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.8rem 0 3rem; color: var(--deck-muted); font-size: .82rem; }

@media (max-width: 820px) {
    .deck-shell { width: min(100% - 22px, 720px); }
    .deck-header { min-height: 62px; }
    .deck-header-actions .deck-button:not(.primary):not(.blue) { display: none; }
    .deck-hero { min-height: 500px; margin-top: 1rem; padding: 3rem 1.25rem; border-radius: 24px; }
    .deck-live-demo { padding: .75rem; border-radius: 22px; }
    .deck-demo-heading { padding: .5rem .55rem 0; }
    .deck-demo-heading h2 { font-size: 1.65rem; }
    .deck-demo-browser { border-radius: 18px; }
    .deck-demo-browser-top strong { font-size: .66rem; }
    .deck-demo-frame { height: 820px; min-height: 820px; }
    h1 { font-size: clamp(1.8rem, 9vw, 2.45rem); }
    .deck-slide { grid-template-columns: 1fr; min-height: 0; padding: 3.4rem 1.25rem 1.5rem; border-radius: 22px; }
    .deck-copy h2 { font-size: 1.5rem; }
    .metric-grid, .feature-grid { grid-template-columns: 1fr; }
    .flow-grid { grid-template-columns: repeat(2, 1fr); }
    .deck-footer { flex-direction: column; }
}

@media (max-width: 480px) {
    .deck-brand span:last-child { display: none; }
    .deck-button { min-height: 40px; padding: .55rem .75rem; font-size: .78rem; }
    .flow-grid { grid-template-columns: 1fr; }
    .deck-actions { justify-content: center; }
}

@media print {
    @page { size: 13.333333in 7.5in; margin: 0; }
    html, body { width: 1280px; margin: 0; padding: 0; background: #fff; }
    body { direction: rtl; text-align: right; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .deck-header, .deck-live-demo, .deck-final, .deck-footer { display: none !important; }
    main.deck-shell { width: 1280px; margin: 0; }
    .deck-hero, .deck-slide {
        width: 1280px;
        height: 720px;
        min-height: 720px;
        max-height: 720px;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        break-after: page;
        page-break-after: always;
    }
    .deck-hero { padding: 72px 110px; }
    .deck-hero h1 { max-width: 920px; font-size: 56px; }
    .deck-hero p { max-width: 820px; font-size: 21px; }
    .deck-slide {
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
        align-items: center;
        padding: 72px 76px;
        gap: 70px;
        overflow: hidden;
    }
    .deck-slide.full { grid-template-columns: 1fr; }
    .deck-copy h2 { max-width: 100%; font-size: 38px; line-height: 1.16; }
    .deck-copy > p { max-width: 100%; font-size: 19px; line-height: 1.62; }
    .deck-list { gap: 14px; margin-top: 22px; }
    .deck-list li { font-size: 18px; }
    .deck-visual { padding: 22px; }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .flow-grid { grid-template-columns: repeat(4, 1fr); }
    .deck-slide-number { direction: ltr; text-align: left; unicode-bidi: isolate; }
    .deck-copy, .deck-copy h2, .deck-copy p, .deck-list, .deck-list li,
    .feature, .flow-step, .metric, .retention-row, .integration-note, .agent-message {
        direction: rtl;
        text-align: right;
    }
    .deck-slide.full, .deck-slide.full .deck-copy,
    .deck-slide.full .deck-copy h2, .deck-slide.full .deck-copy p { text-align: center; }
    .deck-hero:last-child, .deck-slide:last-of-type { break-after: auto; page-break-after: auto; }
}
