/*
 * Studio UI V2
 * Scoped visual layer only. Keep business IDs and JavaScript untouched.
 */

body.studio-ui-v2-enabled {
    --studio-v2-bg: #f5f7fb;
    --studio-v2-surface: rgba(255, 255, 255, 0.94);
    --studio-v2-surface-strong: #ffffff;
    --studio-v2-border: rgba(15, 23, 42, 0.1);
    --studio-v2-text: #0f172a;
    --studio-v2-muted: #64748b;
    --studio-v2-primary: #2563eb;
    --studio-v2-accent: #f59e0b;
    --studio-v2-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    background:
        radial-gradient(circle at 16% 8%, rgba(37, 99, 235, 0.08), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, var(--studio-v2-bg) 100%);
    color: var(--studio-v2-text);
}

body.studio-ui-v2-enabled .studio-container {
    gap: 0;
    background: transparent;
}

body.studio-ui-v2-enabled .studio-left,
body.studio-ui-v2-enabled .studio-right {
    background: transparent;
}

body.studio-ui-v2-enabled .studio-left {
    border-right: 1px solid var(--studio-v2-border);
}

body.studio-ui-v2-enabled .studio-header {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--studio-v2-border);
    backdrop-filter: blur(18px);
}

body.studio-ui-v2-enabled .studio-logo span,
body.studio-ui-v2-enabled .preview-title {
    letter-spacing: 0;
}

body.studio-ui-v2-enabled .studio-progress,
body.studio-ui-v2-enabled .studio-calculation-status,
body.studio-ui-v2-enabled .preview-card,
body.studio-ui-v2-enabled .paywall-banner,
body.studio-ui-v2-enabled .pdf-download-section {
    background: var(--studio-v2-surface);
    border: 1px solid var(--studio-v2-border);
    box-shadow: var(--studio-v2-shadow);
    backdrop-filter: blur(16px);
}

body.studio-ui-v2-enabled .studio-progress {
    margin: 1rem 1.25rem 0;
    border-radius: 16px;
    padding: 1rem;
}

body.studio-ui-v2-enabled .studio-question-container {
    padding: 1.25rem;
}

body.studio-ui-v2-enabled .question-card,
body.studio-ui-v2-enabled .preview-section,
body.studio-ui-v2-enabled .preview-metric-card,
body.studio-ui-v2-enabled .studio-credit-pack-panel {
    background: var(--studio-v2-surface-strong);
    border: 1px solid var(--studio-v2-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.studio-ui-v2-enabled .question-card {
    border-radius: 18px;
}

body.studio-ui-v2-enabled .studio-right {
    padding: 1.25rem;
}

body.studio-ui-v2-enabled .preview-card {
    border-radius: 22px;
    overflow: hidden;
}

body.studio-ui-v2-enabled .preview-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--studio-v2-primary);
    border: 1px solid rgba(37, 99, 235, 0.16);
}

body.studio-ui-v2-enabled .preview-section-title,
body.studio-ui-v2-enabled .paywall-banner-title {
    color: var(--studio-v2-text);
}

body.studio-ui-v2-enabled .btn,
body.studio-ui-v2-enabled .paywall-action-btn,
body.studio-ui-v2-enabled .pdf-download-btn {
    border-radius: 12px;
    font-weight: 700;
}

body.studio-ui-v2-enabled .btn-primary,
body.studio-ui-v2-enabled .paywall-action-btn.primary,
body.studio-ui-v2-enabled .pdf-download-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.25);
}

body.studio-ui-v2-enabled .btn-secondary {
    background: #ffffff;
    border: 1px solid var(--studio-v2-border);
    color: var(--studio-v2-text);
}

body.studio-ui-v2-enabled .studio-nav {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--studio-v2-border);
    backdrop-filter: blur(18px);
}

body.studio-ui-v2-enabled .paywall-banner {
    border-left: 4px solid var(--studio-v2-accent);
    color: var(--studio-v2-text);
}

body.studio-ui-v2-enabled .pdf-download-section {
    border-left: 4px solid #10b981;
}

body.studio-ui-v2-enabled .paywall-banner p,
body.studio-ui-v2-enabled .paywall-banner span,
body.studio-ui-v2-enabled .paywall-banner strong,
body.studio-ui-v2-enabled .paywall-banner small,
body.studio-ui-v2-enabled .paywall-banner div {
    color: inherit;
}

body.studio-ui-v2-enabled .paywall-helper,
body.studio-ui-v2-enabled .paywall-account-note,
body.studio-ui-v2-enabled .paywall-selected-info {
    color: var(--studio-v2-muted);
}

body.studio-ui-v2-enabled .paywall-account-note,
body.studio-ui-v2-enabled .paywall-actions {
    background: #f8fafc;
    border: 1px solid var(--studio-v2-border);
}

body.studio-ui-v2-enabled .paywall-option,
body.studio-ui-v2-enabled .studio-credit-pack-card {
    background: #ffffff;
    border: 1px solid var(--studio-v2-border);
    color: var(--studio-v2-text);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

body.studio-ui-v2-enabled .paywall-option:hover,
body.studio-ui-v2-enabled .studio-credit-pack-card:hover {
    background: #f8fafc;
    border-color: rgba(37, 99, 235, 0.28);
}

body.studio-ui-v2-enabled .paywall-option.recommended {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-color: var(--studio-v2-accent);
    color: var(--studio-v2-text);
}

body.studio-ui-v2-enabled .paywall-option-name,
body.studio-ui-v2-enabled .studio-credit-pack-name {
    color: var(--studio-v2-text);
}

body.studio-ui-v2-enabled .paywall-option-price,
body.studio-ui-v2-enabled .studio-credit-pack-price {
    color: var(--studio-v2-primary);
}

body.studio-ui-v2-enabled .paywall-option-level,
body.studio-ui-v2-enabled .paywall-option-desc,
body.studio-ui-v2-enabled .studio-credit-pack-desc,
body.studio-ui-v2-enabled .studio-credit-pack-heading {
    color: var(--studio-v2-muted);
    opacity: 1;
}

body.studio-ui-v2-enabled .studio-credit-pack-panel {
    color: var(--studio-v2-text);
}

body.studio-ui-v2-enabled .studio-credit-pack-buy {
    background: var(--studio-v2-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

body.studio-ui-v2-enabled .paywall-credit-btn {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, 0.18);
    color: var(--studio-v2-primary);
    font-weight: 800;
}

body.studio-ui-v2-enabled .paywall-credit-btn:hover {
    background: #dbeafe;
}

body.studio-ui-v2-enabled .studio-v2-method-note,
body.studio-ui-v2-enabled .studio-v2-unlock-guide,
body.studio-ui-v2-enabled .studio-v2-preview-contract,
body.studio-ui-v2-enabled .studio-v2-paywall-contract {
    display: grid;
    gap: 0.65rem;
    margin: 0.875rem 0;
}

body.studio-ui-v2-enabled .studio-v2-method-note {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.studio-ui-v2-enabled .studio-v2-method-card,
body.studio-ui-v2-enabled .studio-v2-unlock-card,
body.studio-ui-v2-enabled .studio-v2-preview-contract-card {
    display: grid;
    gap: 0.35rem;
    border: 1px solid var(--studio-v2-border);
    background: rgba(248, 250, 252, 0.88);
    border-radius: 14px;
    padding: 0.75rem;
    color: var(--studio-v2-text);
}

body.studio-ui-v2-enabled .studio-v2-method-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

body.studio-ui-v2-enabled .studio-v2-method-card strong,
body.studio-ui-v2-enabled .studio-v2-unlock-card strong,
body.studio-ui-v2-enabled .studio-v2-preview-contract-card strong,
body.studio-ui-v2-enabled .studio-v2-paywall-contract strong {
    display: block;
    font-size: 0.76rem;
    line-height: 1.2;
}

body.studio-ui-v2-enabled .studio-v2-method-card p,
body.studio-ui-v2-enabled .studio-v2-unlock-card p,
body.studio-ui-v2-enabled .studio-v2-preview-contract-card p,
body.studio-ui-v2-enabled .studio-v2-paywall-contract p,
body.studio-ui-v2-enabled .studio-v2-pdf-note {
    margin: 0;
    color: var(--studio-v2-muted);
    font-size: 0.67rem;
    line-height: 1.45;
}

body.studio-ui-v2-enabled .studio-v2-method-icon,
body.studio-ui-v2-enabled .studio-v2-unlock-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--studio-v2-primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
}

body.studio-ui-v2-enabled .studio-v2-unlock-guide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.studio-ui-v2-enabled .studio-v2-unlock-card {
    align-content: start;
}

body.studio-ui-v2-enabled .studio-v2-preview-contract {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.studio-ui-v2-enabled .studio-v2-preview-contract-card {
    padding: 0.7rem;
}

body.studio-ui-v2-enabled .studio-v2-preview-kicker,
body.studio-ui-v2-enabled .studio-v2-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--studio-v2-primary);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    letter-spacing: 0;
}

body.studio-ui-v2-enabled .studio-v2-paywall-contract {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: stretch;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 16px;
    padding: 0.85rem;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.92), rgba(255, 255, 255, 0.9));
}

body.studio-ui-v2-enabled .studio-v2-paywall-copy {
    display: grid;
    gap: 0.35rem;
}

body.studio-ui-v2-enabled .studio-v2-paywall-proof {
    display: grid;
    gap: 0.35rem;
}

body.studio-ui-v2-enabled .studio-v2-paywall-proof span {
    display: flex;
    align-items: center;
    min-height: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: #ffffff;
    color: var(--studio-v2-text);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.3rem 0.55rem;
}

body.studio-ui-v2-enabled #caPotentielSection,
body.studio-ui-v2-enabled #topCompetitorsSection,
body.studio-ui-v2-enabled #scoreBreakdownSection,
body.studio-ui-v2-enabled #swotSection,
body.studio-ui-v2-enabled #nextStepsSection {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07) !important;
}

body.studio-ui-v2-enabled #scoreBreakdownSection,
body.studio-ui-v2-enabled #swotSection {
    background: rgba(255, 255, 255, 0.94) !important;
}

body.studio-ui-v2-enabled .studio-v2-pdf-note {
    margin-top: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    background: rgba(236, 253, 245, 0.85);
    color: #047857;
}

@media (max-width: 1024px) {
    body.studio-ui-v2-enabled .studio-container {
        min-height: 100vh;
    }

    body.studio-ui-v2-enabled .studio-left {
        border-right: 0;
    }

    body.studio-ui-v2-enabled .studio-right {
        padding: 1rem;
    }

    body.studio-ui-v2-enabled .studio-progress {
        margin: 0.75rem;
    }
}

@media (max-width: 640px) {
    body.studio-ui-v2-enabled .studio-question-container {
        padding: 0.875rem;
    }

    body.studio-ui-v2-enabled .studio-right {
        padding: 0.875rem;
    }

    body.studio-ui-v2-enabled .preview-card,
    body.studio-ui-v2-enabled .question-card {
        border-radius: 16px;
    }

    body.studio-ui-v2-enabled .studio-v2-method-note,
    body.studio-ui-v2-enabled .studio-v2-unlock-guide,
    body.studio-ui-v2-enabled .studio-v2-preview-contract,
    body.studio-ui-v2-enabled .studio-v2-paywall-contract {
        grid-template-columns: 1fr;
    }

    body.studio-ui-v2-enabled .studio-v2-paywall-proof {
        grid-template-columns: 1fr;
    }
}
