/* CaseIQ — shared inner marketing pages */

:root {
    --sp-warm-white: #fafaf8;
    --sp-neutral: #f4f4f2;
    --sp-border: #e8e8e6;
    --sp-navy: #1a2332;
    --sp-img-shadow: 0 16px 40px rgba(44, 62, 80, 0.08);
    --sp-img-radius: 14px;
}

[lang="he"] body.site-page,
[dir="rtl"] body.site-page {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.site-page {
    background: var(--white);
    color: var(--text-dark);
    overflow-x: clip;
}

.site-page .site-main {
    overflow-x: clip;
}

.site-page img,
.site-page video {
    max-width: 100%;
    height: auto;
}

.site-page .sp-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-inline: -1rem;
    padding-inline: 1rem;
}

.site-page .sp-table-scroll::after {
    content: '';
    display: block;
    height: 0;
}

.site-page .sp-table-scroll table {
    min-width: 520px;
}

.site-logo-link {
    text-decoration: none;
    color: inherit;
}

/* Page hero */
.sp-hero {
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
    background: var(--sp-warm-white);
    border-bottom: 1px solid var(--sp-border);
}

.sp-hero--plain {
    background: var(--white);
}

.sp-hero-inner {
    max-width: 720px;
}

.sp-hero-inner--wide {
    max-width: 880px;
}

.sp-hero-inner--center {
    text-align: center;
    margin-inline: auto;
}

.sp-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-purple);
    margin-bottom: 0.85rem;
}

.sp-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--sp-navy);
    margin: 0 0 1rem;
}

.sp-lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--text-gray);
    margin: 0 0 1.5rem;
    max-width: 36rem;
}

.sp-hero-inner--center .sp-lead {
    margin-inline: auto;
}

.sp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.sp-hero-inner--center .sp-hero-cta {
    justify-content: center;
}

/* Sections */
.sp-section {
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.sp-section--alt {
    background: var(--sp-neutral);
}

.sp-section-head {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--sp-navy);
    margin: 0 0 0.85rem;
}

.sp-section-copy {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-gray);
    margin: 0 0 1.25rem;
    max-width: 34rem;
}

.sp-section-head--center,
.sp-section-copy--center {
    text-align: center;
    margin-inline: auto;
}

/* Split editorial */
.sp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.sp-split--reverse .sp-split-visual {
    order: -1;
}

.sp-img {
    width: 100%;
    height: auto;
    border-radius: var(--sp-img-radius);
    box-shadow: var(--sp-img-shadow);
    border: 1px solid var(--sp-border);
}

.sp-ui-proof {
    background: var(--white);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-img-radius);
    box-shadow: var(--sp-img-shadow);
    padding: 1.25rem;
}

.sp-ui-proof img {
    width: 100%;
    border-radius: 8px;
}

.sp-bullet-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.sp-bullet-list li {
    position: relative;
    padding-inline-start: 1.35rem;
    margin-bottom: 0.55rem;
    color: var(--text-gray);
    font-size: 0.98rem;
}

.sp-bullet-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-purple);
}

/* Workflow flow */
.sp-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.35rem;
    padding: 2rem 0;
}

.sp-flow-step {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sp-navy);
}

.sp-flow-arrow {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 1.1rem;
}

.sp-flow-end {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-purple);
}

/* Timeline (demo steps) */
.sp-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.sp-timeline-step {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--sp-border);
    border-radius: 12px;
}

.sp-timeline-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--primary-purple-light);
    color: var(--primary-purple);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.sp-timeline-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sp-navy);
    margin: 0;
}

/* Persona tabs */
.sp-persona-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--sp-border);
    padding-bottom: 0.75rem;
}

.sp-persona-tab {
    padding: 0.55rem 1rem;
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    background: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sp-persona-tab.is-active,
.sp-persona-tab:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    background: var(--primary-purple-light);
}

.sp-persona-panel {
    display: none;
}

.sp-persona-panel.is-active {
    display: block;
}

.sp-persona-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2rem 0;
}

.sp-persona-story h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--sp-navy);
    margin: 0 0 1rem;
}

.sp-persona-pain {
    font-style: italic;
    color: var(--text-gray);
    border-inline-start: 3px solid var(--primary-purple);
    padding-inline-start: 1rem;
    margin: 1rem 0;
}

/* Security blocks */
.sp-security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.sp-security-block {
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--sp-border);
    border-radius: 12px;
}

.sp-security-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sp-navy);
    margin: 0 0 0.65rem;
}

.sp-security-block p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Video */
.sp-video-wrap {
    position: relative;
    border-radius: var(--sp-img-radius);
    overflow: hidden;
    box-shadow: var(--sp-img-shadow);
    border: 1px solid var(--sp-border);
    background: var(--sp-navy);
}

.sp-video-wrap video {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--sp-navy);
}

.sp-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(26, 35, 50, 0.35);
    border: none;
    cursor: pointer;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.sp-video-play:hover {
    background: rgba(26, 35, 50, 0.48);
}

.sp-video-play.is-hidden {
    display: none;
}

.sp-video-play-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 24px rgba(121, 54, 233, 0.35);
}

/* Accordion */
.sp-accordion-item {
    border-bottom: 1px solid var(--sp-border);
}

.sp-accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 0;
    background: none;
    border: none;
    text-align: start;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--sp-navy);
    cursor: pointer;
}

.sp-accordion-trigger:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
    border-radius: 4px;
}

.sp-accordion-trigger::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--primary-purple);
    flex-shrink: 0;
}

.sp-accordion-item.is-open .sp-accordion-trigger::after {
    content: '−';
}

.sp-accordion-panel {
    padding: 0 0 1.15rem;
    color: var(--text-gray);
    line-height: 1.65;
    font-size: 0.98rem;
}

.sp-accordion-panel[hidden] {
    display: none;
}

.sp-faq-category {
    margin-bottom: 2.5rem;
}

.sp-faq-category h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin: 0 0 0.5rem;
}

.sp-faq-search {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--sp-border);
    border-radius: 10px;
    font-size: 1rem;
}

.sp-faq-search:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(121, 54, 233, 0.12);
}

/* CTA block */
.sp-cta {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--sp-warm-white);
    border-top: 1px solid var(--sp-border);
}

.sp-cta--compact {
    padding: 4.5rem 0;
}

.sp-cta-inner {
    text-align: center;
    max-width: 560px;
    margin-inline: auto;
}

.sp-cta-inner h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    color: var(--sp-navy);
    margin: 0 0 0.75rem;
}

.sp-cta-inner p {
    color: var(--text-gray);
    margin: 0 0 1.25rem;
}

.sp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.sp-crosslink {
    text-align: center;
    padding: 1.5rem 0 0;
}

.sp-crosslink a {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
}

.sp-crosslink a:hover {
    text-decoration: underline;
}

/* Legal layout */
.sp-legal {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.sp-legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.sp-legal-toc {
    position: sticky;
    top: 6rem;
    font-size: 0.9rem;
}

.sp-legal-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-legal-toc a {
    display: block;
    padding: 0.35rem 0;
    color: var(--text-gray);
    text-decoration: none;
}

.sp-legal-toc a:hover {
    color: var(--primary-purple);
}

.sp-legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sp-navy);
    margin: 2rem 0 0.65rem;
}

.sp-legal-content h2:first-child {
    margin-top: 0;
}

.sp-legal-content p,
.sp-legal-content li {
    color: var(--text-gray);
    line-height: 1.65;
    font-size: 0.98rem;
}

.sp-legal-content ul {
    padding-inline-start: 1.25rem;
    margin: 0.5rem 0 1rem;
}

.sp-legal-meta {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.sp-placeholder {
    background: #fff8e6;
    border: 1px dashed #e6c200;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #7a6500;
}

/* Login gateway */
.sp-login-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    box-shadow: var(--sp-img-shadow);
    text-align: center;
}

.sp-login-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
}

.sp-login-card p {
    color: var(--text-gray);
    margin: 0 0 1.5rem;
}

.sp-login-secondary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sp-border);
    font-size: 0.95rem;
    color: var(--text-gray);
}

.sp-login-secondary .sp-hero-cta {
    justify-content: center;
    margin-top: 0.75rem;
}

/* 404 */
.sp-404 {
    text-align: center;
    padding: 5rem 0;
}

.sp-404 h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
}

/* Contact extras */
.sp-checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}

.sp-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.92rem;
    cursor: pointer;
}

.sp-trust-copy {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 1rem;
    line-height: 1.5;
}

.sp-trust-copy a {
    color: var(--primary-purple);
}

/* Modal */
.sp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(26, 35, 50, 0.75);
    padding: 1rem;
}

.sp-modal.is-open {
    display: flex;
}

.sp-modal-inner {
    position: relative;
    width: min(960px, 100%);
    background: var(--sp-navy);
    border-radius: 12px;
    overflow: hidden;
}

.sp-modal-inner video {
    width: 100%;
    display: block;
}

.sp-modal-close {
    position: absolute;
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: 1.35rem;
    cursor: pointer;
    line-height: 1;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 968px) {
    .sp-split,
    .sp-persona-story,
    .sp-security-grid {
        grid-template-columns: 1fr;
    }

    .sp-split--reverse .sp-split-visual {
        order: 0;
    }

    .sp-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .sp-legal-layout {
        grid-template-columns: 1fr;
    }

    .sp-legal-toc {
        position: static;
    }

    .sp-checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-page .btn,
    .site-page .btn-large {
        min-height: 44px;
    }

    .site-page .sp-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .site-page .sp-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .site-page .sp-title {
        font-size: clamp(2rem, 8vw, 2.625rem);
    }
}

@media (max-width: 560px) {
    .sp-timeline {
        grid-template-columns: 1fr;
    }

    .sp-flow {
        flex-direction: column;
    }

    .sp-flow-arrow {
        transform: rotate(90deg);
    }
}
