:root {
    color-scheme: light;
    --zp-ai-bg: #ffffff;
    --zp-ai-surface: #ffffff;
    --zp-ai-surface-2: #f7f7f8;
    --zp-ai-border: #e5e7eb;
    --zp-ai-border-strong: #d7d9dd;
    --zp-ai-text: #202123;
    --zp-ai-muted: #6b7280;
    --zp-ai-soft: #9ca3af;
    --zp-ai-accent: #0A84FF;
    --zp-ai-accent-hover: #0071DB;
    --zp-ai-accent-contrast: #ffffff;
    --zp-ai-user: #f4f4f4;
    --zp-ai-shadow: 0 8px 30px rgba(0, 0, 0, .06);
}

html[data-zp-theme="dark"] {
    color-scheme: dark;
    --zp-ai-bg: #212121;
    --zp-ai-surface: #2f2f2f;
    --zp-ai-surface-2: #272727;
    --zp-ai-border: #424242;
    --zp-ai-border-strong: #555;
    --zp-ai-text: #ececec;
    --zp-ai-muted: #b4b4b4;
    --zp-ai-soft: #8a8a8a;
    --zp-ai-accent: #0A84FF;
    --zp-ai-accent-hover: #3399FF;
    --zp-ai-accent-contrast: #ffffff;
    --zp-ai-user: #303030;
    --zp-ai-shadow: 0 12px 36px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.zp-ai-landing {
    margin: 0;
    background: var(--zp-ai-bg);
    color: var(--zp-ai-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background .2s ease, color .2s ease;
}

.zp-ai-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 28px;
    background: color-mix(in srgb, var(--zp-ai-bg) 92%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
}

.zp-ai-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--zp-ai-text);
    text-decoration: none;
    min-width: 0;
}
.zp-ai-brand-logo {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}
.zp-ai-brand-name { font-weight: 760; letter-spacing: -.025em; font-size: 17px; }
.zp-ai-version {
    border: 1px solid var(--zp-ai-border);
    border-radius: 999px;
    padding: 3px 7px;
    color: var(--zp-ai-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.zp-ai-nav { display: flex; align-items: center; gap: 8px; }
.zp-ai-nav-link,
.zp-ai-primary-cta {
    text-decoration: none;
    font-size: 15px;
    font-weight: 620;
    white-space: nowrap;
}
.zp-ai-nav-link { color: var(--zp-ai-muted); padding: 9px 10px; }
.zp-ai-nav-link:hover { color: var(--zp-ai-text); }
.zp-ai-primary-cta {
    background: var(--zp-ai-accent);
    color: var(--zp-ai-accent-contrast);
    border-radius: 999px;
    padding: 10px 15px;
    margin-left: 2px;
}
.zp-ai-primary-cta:hover { background: var(--zp-ai-accent-hover); }
.zp-ai-theme-toggle {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--zp-ai-muted);
    cursor: pointer;
}
.zp-ai-theme-toggle:hover { background: var(--zp-ai-surface-2); color: var(--zp-ai-text); }
.zp-ai-theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zp-ai-theme-toggle .is-moon { display: none; }
html[data-zp-theme="dark"] .zp-ai-theme-toggle .is-sun { display: none; }
html[data-zp-theme="dark"] .zp-ai-theme-toggle .is-moon { display: block; }

.zp-ai-chat-section {
    min-height: min(760px, calc(100vh - 64px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 76px 20px 84px;
}
.zp-ai-chat-shell { width: min(100%, 1040px); margin: 0 auto; }
.zp-ai-intro { text-align: center; margin-bottom: 34px; transition: margin .25s ease; }
.zp-ai-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--zp-ai-muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.zp-ai-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--zp-ai-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--zp-ai-accent) 14%, transparent); }
.zp-ai-intro h1 {
    margin: 0;
    font-size: clamp(38px, 5.6vw, 56px);
    line-height: 1.1;
    letter-spacing: -.045em;
    font-weight: 650;
}
.zp-ai-intro p { margin: 17px auto 0; max-width: 700px; color: var(--zp-ai-muted); font-size: 19px; line-height: 1.65; }
.zp-ai-chat-shell.has-messages .zp-ai-intro { margin-bottom: 22px; }
.zp-ai-chat-shell.has-messages .zp-ai-intro h1 { font-size: clamp(31px, 3.8vw, 42px); }
.zp-ai-chat-shell.has-messages .zp-ai-intro p,
.zp-ai-chat-shell.has-messages .zp-ai-kicker { display: none; }

.zp-ai-conversation { display: none; margin: 0 auto 18px; max-height: 430px; overflow-y: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.zp-ai-chat-shell.has-messages .zp-ai-conversation { display: block; }
.zp-ai-message { display: flex; margin: 0 0 20px; }
.zp-ai-message.is-user { justify-content: flex-end; }
.zp-ai-message.is-assistant { justify-content: flex-start; }
.zp-ai-message-bubble { max-width: min(88%, 700px); font-size: 17px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.zp-ai-message.is-user .zp-ai-message-bubble { background: var(--zp-ai-user); padding: 11px 16px; border-radius: 18px; }
.zp-ai-message.is-assistant .zp-ai-message-bubble { padding: 4px 4px; }
.zp-ai-assistant-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--zp-ai-muted); font-size: 14px; font-weight: 700; }
.zp-ai-assistant-dot {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--zp-ai-surface);
    border: 1px solid var(--zp-ai-border);
    color: transparent;
    font-size: 0;
}
.zp-ai-assistant-dot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.zp-ai-typing { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; }
.zp-ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--zp-ai-soft); animation: zpAiBounce 1.15s infinite ease-in-out; }
.zp-ai-typing i:nth-child(2) { animation-delay: .13s; }
.zp-ai-typing i:nth-child(3) { animation-delay: .26s; }
@keyframes zpAiBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

.zp-ai-composer {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-height: 64px;
    padding: 11px 11px 11px 18px;
    border: 1px solid var(--zp-ai-border-strong);
    border-radius: 26px;
    background: var(--zp-ai-surface);
    box-shadow: var(--zp-ai-shadow);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.zp-ai-composer:focus-within { border-color: color-mix(in srgb, var(--zp-ai-text) 36%, var(--zp-ai-border)); box-shadow: 0 10px 36px rgba(0, 0, 0, .08); }
.zp-ai-composer textarea {
    flex: 1;
    min-height: 40px;
    max-height: 160px;
    resize: none;
    overflow-y: auto;
    border: 0;
    outline: 0;
    padding: 9px 2px 5px;
    background: transparent;
    color: var(--zp-ai-text);
    font: inherit;
    font-size: 17px;
    line-height: 1.5;
}
.zp-ai-composer textarea::placeholder { color: var(--zp-ai-soft); }
.zp-ai-send {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--zp-ai-accent);
    color: var(--zp-ai-accent-contrast);
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.zp-ai-send:hover { transform: translateY(-1px); background: var(--zp-ai-accent-hover); }
.zp-ai-send:disabled { opacity: .32; cursor: not-allowed; transform: none; }
.zp-ai-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.zp-ai-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 17px; }
.zp-ai-chips button {
    border: 1px solid var(--zp-ai-border);
    background: transparent;
    color: var(--zp-ai-muted);
    border-radius: 999px;
    padding: 9px 13px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.zp-ai-chips button:hover {
    border-color: color-mix(in srgb, var(--zp-ai-accent) 42%, var(--zp-ai-border));
    color: var(--zp-ai-accent);
    background: color-mix(in srgb, var(--zp-ai-accent) 7%, var(--zp-ai-surface));
}
.zp-ai-chips button:disabled { opacity: .45; cursor: not-allowed; }
.zp-ai-disclaimer { margin: 14px 0 0; text-align: center; color: var(--zp-ai-soft); font-size: 12px; line-height: 1.5; }

.zp-ai-slide-section,
.zp-ai-solutions,
.zp-ai-proof,
.zp-ai-bottom-link { width: min(calc(100% - 40px), 1120px); margin-left: auto; margin-right: auto; }
.zp-ai-slide-section { padding: 88px 0 80px; border-top: 1px solid var(--zp-ai-border); overflow: hidden; }
.zp-ai-section-heading { text-align: center; max-width: 700px; margin: 0 auto 34px; }
.zp-ai-section-heading > span { display: block; margin-bottom: 10px; color: var(--zp-ai-accent); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.zp-ai-section-heading h2 { margin: 0; font-size: clamp(30px, 3.7vw, 42px); letter-spacing: -.035em; line-height: 1.18; font-weight: 650; }
.zp-ai-section-heading p { margin: 14px auto 0; color: var(--zp-ai-muted); font-size: 17px; line-height: 1.7; }

/* Make the existing cover-flow animation match the new minimalist shell. */
.zp-ai-slide-section .zp-cover-flow { margin: 0 auto; }
.zp-ai-slide-section .zp-cover-flow-card { background: var(--zp-ai-surface) !important; border-color: var(--zp-ai-border) !important; box-shadow: 0 12px 40px rgba(0,0,0,.07) !important; }
.zp-ai-slide-section .zp-cover-flow-card-copy h3,
.zp-ai-slide-section .zp-cover-flow-card-copy p,
.zp-ai-slide-section .zp-cover-flow-card-copy b { color: var(--zp-ai-text) !important; }
.zp-ai-slide-section .zp-cover-flow-card-copy > span { color: var(--zp-ai-accent) !important; }
.zp-ai-slide-section .zp-cover-flow-nav { background: var(--zp-ai-surface) !important; border-color: var(--zp-ai-border) !important; color: var(--zp-ai-text) !important; }
.zp-ai-slide-section .zp-cover-flow-card-copy > span { font-size: 14px !important; }
.zp-ai-slide-section .zp-cover-flow-card-copy h3 { font-size: 28px !important; }
.zp-ai-slide-section .zp-cover-flow-card-copy p { font-size: 19px !important; }
.zp-ai-slide-section .zp-cover-flow-card-copy b { font-size: 16px !important; }

.zp-ai-solutions { padding: 90px 0 76px; border-top: 1px solid var(--zp-ai-border); }
.zp-ai-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.zp-ai-card { border: 1px solid var(--zp-ai-border); border-radius: 20px; padding: 24px; background: var(--zp-ai-surface); min-height: 260px; display: flex; flex-direction: column; }
.zp-ai-card-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--zp-ai-border); color: var(--zp-ai-accent); margin-bottom: 28px; }
.zp-ai-card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zp-ai-card h3 { margin: 0 0 11px; font-size: 21px; letter-spacing: -.02em; }
.zp-ai-card p { margin: 0; color: var(--zp-ai-muted); font-size: 16px; line-height: 1.72; }
.zp-ai-card a { margin-top: auto; padding-top: 24px; color: var(--zp-ai-text); text-decoration: none; font-size: 14px; font-weight: 700; }
.zp-ai-card a span { color: var(--zp-ai-accent); }

.zp-ai-proof { padding: 58px 0 42px; border-top: 1px solid var(--zp-ai-border); text-align: center; }
.zp-ai-proof p { margin: 0; color: var(--zp-ai-muted); font-size: 17px; }
.zp-ai-proof strong { color: var(--zp-ai-text); font-weight: 700; }
.zp-ai-logo-row { margin-top: 25px; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 58px); flex-wrap: wrap; opacity: .42; filter: grayscale(1); }
.zp-ai-logo-row span { color: var(--zp-ai-text); font-size: 13px; font-weight: 850; letter-spacing: .13em; }
.zp-ai-bottom-link { padding: 24px 0 52px; text-align: center; }
.zp-ai-bottom-link a { color: var(--zp-ai-muted); font-size: 15px; text-decoration: none; font-weight: 650; }
.zp-ai-bottom-link a:hover { color: var(--zp-ai-text); }
.zp-ai-bottom-link span { color: var(--zp-ai-accent); }

@media (max-width: 760px) {
    .zp-ai-header { height: 58px; padding: 0 14px; }
    .zp-ai-brand-name { display: none; }
    .zp-ai-version { display: none; }
    .zp-ai-nav { gap: 3px; }
    .zp-ai-nav-link { padding: 8px 6px; font-size: 13px; }
    .zp-ai-primary-cta { padding: 9px 12px; font-size: 13px; }
    .zp-ai-theme-toggle { width: 34px; height: 34px; }
    .zp-ai-chat-section { min-height: calc(100vh - 58px); padding: 54px 14px 62px; align-items: flex-start; }
    .zp-ai-intro { margin-top: 8vh; }
    .zp-ai-intro h1 { font-size: 39px; }
    .zp-ai-intro p { font-size: 17px; }
    .zp-ai-chat-shell.has-messages .zp-ai-intro { margin-top: 0; }
    .zp-ai-message-bubble { max-width: 94%; font-size: 16px; }
    .zp-ai-composer { border-radius: 22px; min-height: 58px; padding-left: 14px; }
    .zp-ai-chips { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
    .zp-ai-chips::-webkit-scrollbar { display: none; }
    .zp-ai-chips button { flex: 0 0 auto; }
    .zp-ai-slide-section, .zp-ai-solutions, .zp-ai-proof, .zp-ai-bottom-link { width: min(calc(100% - 28px), 1120px); }
    .zp-ai-slide-section, .zp-ai-solutions { padding-top: 66px; padding-bottom: 62px; }
    .zp-ai-card-grid { grid-template-columns: 1fr; }
    .zp-ai-slide-section .zp-cover-flow-card-copy > span { font-size: 12px !important; }
    .zp-ai-slide-section .zp-cover-flow-card-copy h3 { font-size: 20px !important; }
    .zp-ai-slide-section .zp-cover-flow-card-copy b { font-size: 14px !important; }
    .zp-ai-card { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Public AI -> human solution analyst handoff */
.zp-ai-help-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.zp-ai-help-row .zp-ai-disclaimer { margin: 0; font-size: 13px; }
.zp-ai-analyst-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--zp-ai-accent);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.zp-ai-analyst-link:hover { text-decoration: underline; }
.zp-ai-analyst-link:disabled { opacity: .5; cursor: default; text-decoration: none; }

.zp-ai-handoff {
    margin-top: 22px;
    border: 1px solid var(--zp-ai-border);
    border-radius: 20px;
    padding: 22px;
    background: var(--zp-ai-surface-2);
    box-shadow: 0 16px 46px rgba(0, 0, 0, .06);
}
.zp-ai-handoff[hidden] { display: none !important; }
.zp-ai-handoff-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.zp-ai-handoff-head > div > span {
    display: block;
    color: var(--zp-ai-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.zp-ai-handoff-head h2 {
    margin: 0;
    color: var(--zp-ai-text);
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -.02em;
}
.zp-ai-handoff-head p {
    margin: 7px 0 0;
    color: var(--zp-ai-muted);
    font-size: 14px;
    line-height: 1.6;
}
.zp-ai-handoff-close {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--zp-ai-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.zp-ai-handoff-close:hover { background: var(--zp-ai-surface); color: var(--zp-ai-text); }
.zp-ai-handoff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.zp-ai-handoff-grid label { display: grid; gap: 6px; }
.zp-ai-handoff-grid label > span {
    color: var(--zp-ai-muted);
    font-size: 13px;
    font-weight: 650;
}
.zp-ai-handoff-grid input,
.zp-ai-handoff-grid select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--zp-ai-border-strong);
    border-radius: 12px;
    padding: 9px 11px;
    background: var(--zp-ai-surface);
    color: var(--zp-ai-text);
    font: inherit;
    font-size: 15px;
    outline: none;
}
.zp-ai-handoff-grid input:focus,
.zp-ai-handoff-grid select:focus {
    border-color: color-mix(in srgb, var(--zp-ai-accent) 70%, var(--zp-ai-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--zp-ai-accent) 12%, transparent);
}
.zp-ai-handoff-note {
    margin: 10px 0 0;
    color: var(--zp-ai-soft);
    font-size: 12px;
}
.zp-ai-handoff-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.zp-ai-handoff-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 10px 17px;
    background: var(--zp-ai-accent);
    color: var(--zp-ai-accent-contrast);
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.zp-ai-handoff-actions button:hover { background: var(--zp-ai-accent-hover); transform: translateY(-1px); }
.zp-ai-handoff-actions button:disabled { opacity: .5; cursor: wait; transform: none; }
.zp-ai-handoff-result {
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
}
.zp-ai-handoff-result.is-success {
    background: color-mix(in srgb, var(--zp-ai-accent) 10%, var(--zp-ai-surface));
    color: var(--zp-ai-text);
    border: 1px solid color-mix(in srgb, var(--zp-ai-accent) 30%, var(--zp-ai-border));
}
.zp-ai-handoff-result.is-error {
    background: color-mix(in srgb, #dc2626 8%, var(--zp-ai-surface));
    color: var(--zp-ai-text);
    border: 1px solid color-mix(in srgb, #dc2626 25%, var(--zp-ai-border));
}

@media (max-width: 760px) {
    .zp-ai-handoff { padding: 18px; border-radius: 18px; }
    .zp-ai-handoff-grid { grid-template-columns: 1fr; }
    .zp-ai-handoff-actions button { width: 100%; }
}

/* --------------------------------------------------------------------------
   Configurable public background modes
   -------------------------------------------------------------------------- */
body.zp-ai-landing {
    --zp-landing-bg-start: var(--zp-landing-light-start, #ffffff);
    --zp-landing-bg-middle: var(--zp-landing-light-middle, #dff4ff);
    --zp-landing-bg-end: var(--zp-landing-light-end, #eef8ff);
    --zp-landing-bg-angle: var(--zp-landing-light-angle, 180deg);
    --zp-landing-bg-gradient: var(--zp-landing-light-gradient, linear-gradient(180deg, #ffffff 0%, #dff4ff 50%, #eef8ff 100%));
    position: relative;
    isolation: isolate;
    background: var(--zp-landing-bg-gradient, var(--zp-ai-bg));
    background-attachment: fixed;
}

body.zp-ai-landing::before,
body.zp-ai-landing::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

body.zp-ai-landing[data-zp-background-style="gradient"]::before {
    background:
        radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--zp-landing-bg-middle, #dff4ff) 48%, transparent) 0, transparent 30%),
        radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--zp-ai-accent) 10%, transparent) 0, transparent 26%);
}

body.zp-ai-landing[data-zp-background-style="graph"]::before {
    background-image:
        linear-gradient(color-mix(in srgb, var(--zp-ai-accent) 8%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--zp-ai-accent) 8%, transparent) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.28) 64%, transparent 94%);
}

body.zp-ai-landing[data-zp-background-style="graph"]::after {
    background: radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--zp-landing-bg-middle, #dff4ff) 52%, transparent) 0, transparent 42%);
}

body.zp-ai-landing[data-zp-background-style="animated"]::before {
    inset: -18%;
    background:
        radial-gradient(circle at 22% 32%, color-mix(in srgb, var(--zp-ai-accent) 18%, transparent) 0, transparent 28%),
        radial-gradient(circle at 74% 20%, color-mix(in srgb, var(--zp-landing-bg-middle, #dff4ff) 70%, transparent) 0, transparent 30%),
        radial-gradient(circle at 58% 76%, color-mix(in srgb, var(--zp-landing-bg-end, #eef8ff) 82%, transparent) 0, transparent 30%);
    filter: blur(22px);
    animation: zpLandingAura 18s ease-in-out infinite alternate;
}

body.zp-ai-landing[data-zp-background-style="animated"]::after {
    inset: -12%;
    background:
        radial-gradient(circle at 78% 62%, color-mix(in srgb, #7dd3fc 18%, transparent) 0, transparent 26%),
        radial-gradient(circle at 32% 70%, color-mix(in srgb, #a5b4fc 14%, transparent) 0, transparent 24%);
    filter: blur(28px);
    animation: zpLandingAuraReverse 22s ease-in-out infinite alternate;
}

@keyframes zpLandingAura {
    0% { transform: translate3d(-2%, -1%, 0) scale(1); }
    55% { transform: translate3d(3%, 2%, 0) scale(1.05); }
    100% { transform: translate3d(-1%, 4%, 0) scale(1.02); }
}

@keyframes zpLandingAuraReverse {
    0% { transform: translate3d(3%, 2%, 0) scale(1.04); }
    100% { transform: translate3d(-4%, -2%, 0) scale(.98); }
}

html[data-zp-theme="dark"] body.zp-ai-landing {
    --zp-landing-bg-start: var(--zp-landing-dark-start, #111827);
    --zp-landing-bg-middle: var(--zp-landing-dark-middle, #182235);
    --zp-landing-bg-end: var(--zp-landing-dark-end, #0B1220);
    --zp-landing-bg-angle: var(--zp-landing-dark-angle, 180deg);
    --zp-landing-bg-gradient: var(--zp-landing-dark-gradient, linear-gradient(180deg, #111827 0%, #182235 50%, #0B1220 100%));
}

html[data-zp-theme="dark"] body.zp-ai-landing[data-zp-background-style="graph"]::before {
    background-image:
        linear-gradient(rgba(10,132,255,.085) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,132,255,.085) 1px, transparent 1px);
}

@media (prefers-reduced-motion: reduce) {
    body.zp-ai-landing[data-zp-background-style="animated"]::before,
    body.zp-ai-landing[data-zp-background-style="animated"]::after {
        animation: none;
    }
}

/* Compact ChatGPT-style conversation after the first question. */
.zp-ai-chat-shell.has-messages {
    width: min(100%, 1180px);
}

.zp-ai-chat-shell.has-messages .zp-ai-intro {
    margin-bottom: 12px;
}

.zp-ai-chat-shell.has-messages .zp-ai-intro h1 {
    font-size: clamp(26px, 3vw, 34px);
}

.zp-ai-chat-shell.has-messages .zp-ai-conversation {
    max-height: 360px;
    margin-bottom: 10px;
    padding-bottom: 2px;
}

.zp-ai-chat-shell.has-messages .zp-ai-message {
    margin-bottom: 8px;
}

.zp-ai-chat-shell.has-messages .zp-ai-message-bubble {
    max-width: min(94%, 1020px);
    font-size: 16px;
    line-height: 1.5;
}

.zp-ai-chat-shell.has-messages .zp-ai-message.is-user .zp-ai-message-bubble {
    padding: 8px 12px;
    border-radius: 16px;
}

.zp-ai-chat-shell.has-messages .zp-ai-message.is-assistant .zp-ai-message-bubble {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 8px;
    align-items: start;
    padding: 3px 2px;
}

.zp-ai-chat-shell.has-messages .zp-ai-assistant-label {
    margin: 0;
    min-height: 26px;
}

.zp-ai-chat-shell.has-messages .zp-ai-assistant-label > span:last-child {
    display: none;
}

.zp-ai-chat-shell.has-messages .zp-ai-message.is-assistant [data-zp-stream-text],
.zp-ai-chat-shell.has-messages .zp-ai-message.is-assistant .zp-ai-typing {
    grid-column: 2;
}

.zp-ai-chat-shell.has-messages .zp-ai-composer {
    min-height: 58px;
    border-radius: 22px;
    padding: 8px 9px 8px 16px;
}

.zp-ai-chat-shell.has-messages .zp-ai-send {
    width: 40px;
    height: 40px;
}

.zp-ai-chat-shell.has-messages .zp-ai-chips {
    margin-top: 10px;
}

body.zp-ai-landing[data-zp-background-enabled="0"]::before,
body.zp-ai-landing[data-zp-background-enabled="0"]::after {
    display: none;
}

body.zp-ai-landing.zp-ai-chat-active .zp-ai-chat-section {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 56px;
}

.zp-ai-chat-shell.has-messages .zp-ai-chips {
    display: none;
}

.zp-ai-chat-shell.has-messages .zp-ai-help-row {
    margin-top: 7px;
}

/* V7: force readable foreground colors when the public page is in dark theme. */
html[data-zp-theme="dark"] body.zp-ai-landing {
    --zp-ai-bg: #16181c;
    --zp-ai-surface: #24272d;
    --zp-ai-surface-2: #1e2127;
    --zp-ai-border: #3b4049;
    --zp-ai-border-strong: #535a66;
    --zp-ai-text: #f3f6fb;
    --zp-ai-muted: #c0c7d2;
    --zp-ai-soft: #9ca7b5;
    --zp-ai-user: #30343b;
    color: var(--zp-ai-text) !important;
}

html[data-zp-theme="dark"] body.zp-ai-landing main,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-chat-section,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-chat-shell,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-intro,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-intro h1,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-intro p,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-message-bubble,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-message.is-assistant [data-zp-stream-text],
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-message.is-assistant .zp-ai-typing,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-message.is-user .zp-ai-message-bubble,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-composer textarea,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-section-heading h2,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-card h3,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-proof strong {
    color: var(--zp-ai-text) !important;
    -webkit-text-fill-color: currentColor !important;
}

html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-assistant-label,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-help-row,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-disclaimer,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-card p,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-section-heading p {
    color: var(--zp-ai-muted) !important;
    -webkit-text-fill-color: currentColor !important;
}

html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-composer {
    background: rgba(36, 39, 45, .96) !important;
    border-color: var(--zp-ai-border-strong) !important;
}

html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-message.is-user .zp-ai-message-bubble {
    background: var(--zp-ai-user) !important;
}

html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-header {
    background: rgba(22, 24, 28, .92) !important;
    border-bottom-color: rgba(148, 163, 184, .14) !important;
}

/* Restored configurable header can contain more links than the minimalist V6 header. */
.zp-ai-nav {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.zp-ai-nav::-webkit-scrollbar { display: none; }
.zp-ai-nav .zp-public-lang-menu { flex: 0 0 auto; }
@media (max-width: 1180px) {
    .zp-ai-nav-link { font-size: 13px; padding-inline: 7px; }
    .zp-ai-brand-name { display: none; }
}

/* V7 — inline example report: chart + Excel-style grid inside landing AI. */
.zp-ai-inline-report {
    width: min(calc(100% - 34px), 1120px);
    margin: 4px 0 14px 34px;
    padding: 13px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 12px 34px rgba(15,23,42,.06);
    backdrop-filter: blur(14px);
    color: #1f2937;
}

.zp-ai-inline-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.zp-ai-inline-report-head > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.zp-ai-inline-report-head span {
    width: fit-content;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(10,132,255,.10);
    color: #0969c7;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
}

.zp-ai-inline-report-head strong { color: #111827; font-size: 14px; line-height: 1.3; }
.zp-ai-inline-report-head small,
.zp-ai-inline-report-meta { color: #64748b; font-size: 10.5px; }

.zp-ai-inline-report-head button {
    min-height: 30px;
    padding: 0 10px;
    flex: 0 0 auto;
    border: 1px solid rgba(10,132,255,.24);
    border-radius: 9px;
    background: rgba(10,132,255,.07);
    color: #0969c7;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}


.zp-ai-inline-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 7px;
    margin-bottom: 10px;
    overflow-x: auto;
}

.zp-ai-inline-kpi {
    min-width: 120px;
    padding: 8px 10px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: rgba(248,250,252,.92);
}

.zp-ai-inline-kpi span,
.zp-ai-inline-kpi strong { display: block; }
.zp-ai-inline-kpi span { color: #64748b; font-size: 9.5px; font-weight: 750; }
.zp-ai-inline-kpi strong { margin-top: 3px; color: #0f172a; font-size: 13px; line-height: 1.25; font-variant-numeric: tabular-nums; }

html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-kpi { background: #242930; border-color: #46505d; }
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-kpi span { color: #aeb8c5; }
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-kpi strong { color: #f3f6fb; }

.zp-ai-inline-chart {
    height: 210px;
    margin-bottom: 10px;
    padding: 8px;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: rgba(255,255,255,.9);
}

.zp-ai-inline-chart canvas { width: 100% !important; height: 100% !important; }

.zp-ai-inline-chart-fallback {
    height: 100%;
    overflow: auto;
    display: grid;
    align-content: center;
    gap: 5px;
}

.zp-ai-inline-chart-fallback[hidden] { display: none !important; }
.zp-ai-inline-chart-fallback > div { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 7px; align-items: center; font-size: 10px; }
.zp-ai-inline-chart-fallback i { display: block; height: 7px; border-radius: 999px; background: #0A84FF; }

.zp-ai-inline-grid-wrap {
    width: 100%;
    max-height: 250px;
    overflow: auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.zp-ai-inline-grid {
    width: 100%;
    min-width: max-content;
    border-collapse: collapse;
    font-family: "Aptos", "Segoe UI", Arial, sans-serif;
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
}

.zp-ai-inline-grid th,
.zp-ai-inline-grid td {
    padding: 5px 8px;
    border: 1px solid #dbe2ea;
    text-align: left;
    white-space: nowrap;
}

.zp-ai-inline-grid th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f1f5f9;
    color: #334155;
    font-weight: 850;
}

.zp-ai-inline-grid td { color: #334155; background: #fff; }
.zp-ai-inline-grid tr:nth-child(even) td:not(.zp-ai-row-number) { background: #fbfdff; }
.zp-ai-inline-grid .zp-ai-row-number { position: sticky; left: 0; z-index: 1; width: 36px; text-align: center; background: #f8fafc; color: #64748b; }
.zp-ai-inline-grid thead .zp-ai-row-number { z-index: 3; background: #e9eef5; }
.zp-ai-inline-report-meta { margin-top: 7px; }

html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-report {
    border-color: rgba(148,163,184,.24);
    background: rgba(30,33,39,.92);
    color: #f3f6fb;
    box-shadow: 0 14px 38px rgba(0,0,0,.2);
}

html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-report-head strong,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-report-head small,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-report-meta {
    color: #e5eaf1 !important;
    -webkit-text-fill-color: currentColor !important;
}

html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-report-head small,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-report-meta { color: #aeb8c5 !important; }

html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-chart,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-grid-wrap { background: #20242a; border-color: #46505d; }
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-grid th { background: #2c323a; color: #e5eaf1; border-color: #46505d; }
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-grid td { background: #20242a; color: #e5eaf1; border-color: #3b4550; }
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-grid tr:nth-child(even) td:not(.zp-ai-row-number) { background: #242930; }
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-inline-grid .zp-ai-row-number { background: #2c323a; color: #aeb8c5; }

/* Cover remaining dark-theme foreground elements that used legacy hard-coded colors. */
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-nav-link,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-brand-name,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-version,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-chips button,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-handoff,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-handoff h2,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-handoff label,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-handoff input,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-handoff select,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-handoff textarea {
    color: #f3f6fb !important;
    -webkit-text-fill-color: currentColor !important;
}

html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-chips button,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-handoff,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-handoff input,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-handoff select,
html[data-zp-theme="dark"] body.zp-ai-landing .zp-ai-handoff textarea {
    background: rgba(36,39,45,.94) !important;
    border-color: #4b5563 !important;
}

@media (max-width: 720px) {
    .zp-ai-inline-report { width: calc(100% - 4px); margin-left: 2px; }
    .zp-ai-inline-chart { height: 180px; }
}
