/* client_portal.css — ZSM Digital Client Portal onboarding (light theme) */

body.light-theme .cp-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero ── */

body.light-theme .cp-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 40px 80px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 0, 0, 0.03) 0%, transparent 70%),
        var(--bg-main);
}

body.light-theme .cp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.10) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 72%);
}

body.light-theme .cp-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: cpHeroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

@keyframes cpHeroReveal {
    to { opacity: 1; transform: translateY(0); }
}

body.light-theme .cp-hero .hero-badge {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-gray);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

body.light-theme .cp-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

body.light-theme .cp-hero h1 em {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

body.light-theme .cp-hero h1 strong {
    font-weight: 400;
}

body.light-theme .cp-hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.65;
    max-width: 540px;
    margin: 0 auto 32px;
}

body.light-theme .cp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ── Section headings ── */

body.light-theme .cp-section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}

body.light-theme .cp-section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.15;
}

body.light-theme .cp-section-head h2 .highlight {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

body.light-theme .cp-section-head p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.65;
    margin: 0;
}

/* ── Features ── */

body.light-theme .cp-features {
    padding: 80px 0 100px;
}

body.light-theme .cp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

body.light-theme .cp-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    padding: 28px 26px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

body.light-theme .cp-feature:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

body.light-theme .cp-feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border-line);
    margin-bottom: 18px;
    color: var(--text-dark);
}

body.light-theme .cp-feature-icon svg {
    width: 22px;
    height: 22px;
}

body.light-theme .cp-feature h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

body.light-theme .cp-feature p {
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ── Steps ── */

body.light-theme .cp-steps {
    padding: 0 0 100px;
}

body.light-theme .cp-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    max-width: 720px;
    margin-inline: auto;
}

body.light-theme .cp-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    padding: 28px 32px;
    box-shadow: var(--shadow-card);
}

body.light-theme .cp-step-num {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    padding-top: 4px;
}

body.light-theme .cp-step-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

body.light-theme .cp-step-body p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.65;
    margin: 0;
}

/* ── FAQ ── */

body.light-theme .cp-faq {
    padding: 0 0 80px;
}

body.light-theme .cp-faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

body.light-theme .cp-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

body.light-theme .cp-faq-item summary {
    padding: 20px 24px;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background 0.2s ease;
}

body.light-theme .cp-faq-item summary::-webkit-details-marker {
    display: none;
}

body.light-theme .cp-faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-faint);
    border-bottom: 2px solid var(--text-faint);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-top: -4px;
}

body.light-theme .cp-faq-item[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

body.light-theme .cp-faq-item summary:hover {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .cp-faq-item p {
    padding: 0 24px 20px;
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.65;
}

body.light-theme .cp-faq-item a {
    color: var(--text-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.light-theme .cp-faq-item a:hover {
    color: #000;
}

/* ── CTA ── */

body.light-theme .cp-cta .services-cta {
    padding-top: 0;
    padding-bottom: 100px;
}

body.light-theme .cp-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

/* ── Reveal animations ── */

body.light-theme .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

body.light-theme .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

body.light-theme .stagger-children .reveal:nth-child(2) { transition-delay: 0.06s; }
body.light-theme .stagger-children .reveal:nth-child(3) { transition-delay: 0.12s; }
body.light-theme .stagger-children .reveal:nth-child(4) { transition-delay: 0.18s; }
body.light-theme .stagger-children .reveal:nth-child(5) { transition-delay: 0.24s; }
body.light-theme .stagger-children .reveal:nth-child(6) { transition-delay: 0.30s; }

/* ── Responsive ── */

@media (max-width: 960px) {
    body.light-theme .cp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    body.light-theme .cp-hero {
        padding: 130px 20px 60px;
        min-height: auto;
    }

    body.light-theme .cp-features {
        padding: 60px 0 72px;
    }

    body.light-theme .cp-features-grid {
        grid-template-columns: 1fr;
    }

    body.light-theme .cp-step {
        flex-direction: column;
        gap: 12px;
        padding: 24px;
    }

    body.light-theme .cp-cta .services-cta {
        padding-bottom: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.light-theme .cp-hero-inner,
    body.light-theme .reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
