/**
 * Liquid Digital AI Audit Pro - Styles
 * Complete CSS with animations, responsive design, and brand colors
 */

/* ========================================
   ROOT VARIABLES
   ======================================== */
:root {
    --ld-teal: #02acb1;
    --ld-deep-blue: #081420;
    --ld-sandstone: #efe7d5;
    --ld-white: #ffffff;
    --ld-purple: #a182bd;
    --ld-green: #70c987;
    --ld-orange: #f2a67d;

    --ld-font-body: 'Roboto', sans-serif;
    --ld-font-head: 'Canela', Georgia, serif;
}

/* ========================================
   ANIMATED BACKGROUND - FULL TEAL
   ======================================== */
.ld-animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Above background color, below content */
    background: linear-gradient(160deg, #02ACB1 0%, #019499 50%, #017a7e 100%);
    pointer-events: none; /* Allow clicks through */
}

/* Body background matches darkest teal so extended scroll doesn't show white */
body:has(.ld-animated-bg) {
    background: #017a7e;
}

.ld-bubble {
    position: absolute;
    /* White outline bubbles — visible against teal background */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30% 50% 20% 40%;
    animation: transform 20s ease-in-out infinite both alternate,
               movement_one 40s ease-in-out infinite both;
    opacity: 0.4;
}

/* Blob variations with different animations */
.ld-bubble:nth-child(2) {
    height: 350px;
    width: 350px;
    right: -100px;
    top: 50px;
    opacity: 0.5;
    transform: rotate(-180deg);
    animation: transform 30s ease-in-out infinite both alternate,
               movement_three 60s ease-in-out infinite both;
}

.ld-bubble:nth-child(3) {
    height: 600px;
    width: 600px;
    right: 20%;
    bottom: -200px;
    opacity: 0.35;
    animation: transform 25s ease-in-out infinite both alternate,
               movement_two 50s ease-in-out infinite both;
}

.ld-bubble:nth-child(4) {
    height: 400px;
    width: 400px;
    left: -150px;
    top: 40%;
    opacity: 0.45;
    animation: transform 35s ease-in-out infinite both alternate,
               movement_one 70s ease-in-out infinite both;
}

.ld-bubble:nth-child(5) {
    height: 250px;
    width: 250px;
    left: 30%;
    bottom: 100px;
    opacity: 0.3;
    animation: transform 22s ease-in-out infinite both alternate,
               movement_three 45s ease-in-out infinite both;
}

/* Keyframe animations from Liquid Digital theme */
@keyframes transform {
    0%, 100% {
        border-radius: 33% 67% 70% 30% / 30% 30% 70% 70%;
    }
    20% {
        border-radius: 37% 63% 51% 49% / 37% 65% 35% 63%;
    }
    40% {
        border-radius: 36% 64% 64% 36% / 64% 48% 52% 36%;
    }
    60% {
        border-radius: 37% 63% 51% 49% / 30% 30% 70% 70%;
    }
    80% {
        border-radius: 40% 60% 42% 58% / 41% 51% 49% 59%;
    }
}

@keyframes movement_one {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: translate(50%, 20%) rotateY(10deg) scale(1.2);
    }
}

@keyframes movement_two {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: translate(50%, 20%) rotate(-200deg) scale(1.2);
    }
}

@keyframes movement_three {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: translate(4%, 25%) rotate(-150deg) scale(1.6);
    }
}

/* ========================================
   WORDPRESS THEME OVERRIDES
   Header is managed by page-digital-iq-test.php via data-header-style="light"
   which gives a white glass nav with dark text matching other content pages.
   No overrides needed here.
   ======================================== */
/* Hide the default page title since the hero has its own heading */
body:has(.ld-animated-bg) .entry-title,
body:has(.ld-animated-bg) .page-title,
body:has(.ld-animated-bg) #page-header {
    display: none !important;
}

/* ========================================
   BASE STYLES - EXACT V9 MATCH
   ======================================== */
#ld-audit-wrapper {
    font-family: var(--ld-font-body);
    max-width: 1600px; /* HD+ width as requested */
    margin: 0 auto;
    padding: 0 60px 40px 60px; /* No top padding — hero handles its own spacing */
    color: var(--ld-deep-blue);
    line-height: 1.6;
    position: relative;
    z-index: 1; /* Above bubbles */
    min-height: 0;
    overflow: visible !important;
}

#ld-audit-form {
    overflow: visible !important;
    min-height: 0;
    display: none !important; /* Hidden until email gate is completed - override theme's display: flex !important */
}

/* When JavaScript shows the form, it will set inline style which overrides this */
#ld-audit-form[style*="display: block"],
#ld-audit-form[style*="display: flex"] {
    display: block !important;
}

/* Ensure expanding sections work properly */
#ld-advanced-section,
#ld-magic-wand-section {
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

#ld-advanced-section[style*="display: none"],
#ld-magic-wand-section[style*="display: none"] {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.ld-form-section {
    overflow: visible;
    min-height: 0;
}

#ld-audit-wrapper h1,
#ld-audit-wrapper h2,
#ld-audit-wrapper h3,
#ld-audit-wrapper h4 {
    font-family: var(--ld-font-head);
    margin: 0;
    line-height: 1.3;
}

.ld-section {
    background: var(--ld-white);
    border-radius: 24px;
    padding: 60px 50px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ========================================
   EMAIL GATE
   ======================================== */
/* FULL-BLEED HERO — slides behind the sticky dark glass nav
   Matches the theme's hero-section pattern (e.g. /industries/technology-software/)
   Requires the "Digital IQ Audit" page template (registered by plugin) */
#ld-email-gate {
    background: rgba(0, 0, 0, 0.12); /* Subtle dark veil so hero reads distinctly on teal bg */
    color: var(--ld-white);
    text-align: center;
    padding: 160px 60px 80px; /* 160px top clears the ~114px sticky nav */
    margin-top: -90px;         /* Slide up behind the sticky header */
    border-radius: 0;          /* Full-bleed, no rounded corners */
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

/* No fade-out — teal extends full page */
#ld-email-gate::after {
    display: none;
}

/* Eyebrow text above heading */
.ld-gate-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

#ld-email-gate h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ld-white);
}

.ld-email-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.ld-benefits {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ld-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ld-benefit-icon {
    font-size: 1.8rem;
}

.ld-benefit-label {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Social Proof Stats */
.ld-social-proof {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0 35px;
    flex-wrap: wrap;
}

.ld-proof-item {
    font-size: 0.95rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ld-proof-item strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    display: inline-block;
}

.ld-email-input-group {
    display: flex;
    gap: 15px;
    max-width: 650px;
    margin: 0 auto 30px;
}

#ld-email-input {
    flex: 1;
    padding: 20px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-family: var(--ld-font-body);
}

#ld-start-btn {
    padding: 20px 45px;
    background: var(--ld-deep-blue);
    color: var(--ld-white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#ld-start-btn:hover {
    background: #0a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Consent checkbox — inline with role field (2-column) */
.ld-consent-group { margin: 0; }

.ld-consent-column {
    display: flex;
    align-items: flex-end;
    padding-bottom: 2px;
}

/* Override .ld-email-capture-box label specificity (0,1,1) — needs 0,2,0 to win */
.ld-email-capture-box .ld-consent-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    line-height: 1.35;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.ld-email-capture-box .ld-consent-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #02ACB1;
}

.ld-consent-label a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.ld-consent-error {
    font-size: 0.72rem;
    color: #FCA5A5;
    margin-top: 4px;
    margin-left: 22px;
    margin-bottom: 0;
}

.ld-consent-error-state .ld-email-capture-box .ld-consent-label { color: #FCA5A5; }

/* Input quality hints — audit form */
.ld-quality-hint {
    font-size: 0.8rem;
    color: #B45309;
    background: #FEF3C7;
    border-left: 3px solid #F59E0B;
    padding: 6px 10px;
    margin-top: 4px;
    border-radius: 0 4px 4px 0;
    display: none;
}

.ld-quality-nudge {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #92400E;
    margin-bottom: 16px;
}

/* Email Capture Box with Name + Email */
.ld-email-capture-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 40px auto 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ld-email-capture-box .ld-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.ld-email-capture-box .ld-form-group {
    margin-bottom: 0;
}

.ld-email-capture-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ld-deep-blue);
}

.ld-email-capture-box input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid rgba(2, 172, 177, 0.3);
    font-size: 1rem;
    font-family: var(--ld-font-body);
    transition: all 0.3s ease;
}

.ld-email-capture-box input:focus {
    outline: none;
    border-color: var(--ld-teal);
    box-shadow: 0 0 0 3px rgba(2, 172, 177, 0.1);
}

.ld-email-capture-box #ld-start-btn {
    width: 100%;
    padding: 18px;
    margin-bottom: 15px;
}

.ld-email-capture-box .ld-privacy-note {
    text-align: center;
    margin: 0;
}

/* Inline Error Validation */
.ld-field-error {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.ld-email-capture-box input.ld-error {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* ========================================
   PROGRESS BAR - V9 ANIMATED STYLE
   ======================================== */
.ld-progress-section {
    background: linear-gradient(135deg, rgba(2, 172, 177, 0.08), rgba(107, 203, 119, 0.08));
    padding: 30px 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 2px solid rgba(2, 172, 177, 0.2);
    width: 100%;
}
.ld-progress-wrapper {
    margin-bottom: 0;
}

.ld-progress-bar {
    background: #f0f0f0;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.ld-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ld-teal), var(--ld-green));
    width: 25%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.ld-progress-label {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin: 0;
}

/* ========================================
   FORM SECTIONS
   ======================================== */
.ld-form-section {
    margin-bottom: 40px;
}

.ld-section-header {
    background: var(--ld-sandstone);
    padding: 30px 40px;
    border-radius: 16px;
    border-left: 5px solid var(--ld-teal);
    margin-bottom: 30px;
}

.ld-section-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--ld-deep-blue);
}

.ld-section-header p {
    margin: 0;
    color: #555;
}

.ld-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.ld-form-group {
    display: flex;
    flex-direction: column;
}

.ld-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ld-deep-blue);
    font-size: 0.95rem;
}

.ld-form-group input,
.ld-form-group select,
.ld-form-group textarea {
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--ld-font-body);
    transition: all 0.3s ease;
    background: var(--ld-white);
}

.ld-form-group input:focus,
.ld-form-group select:focus,
.ld-form-group textarea:focus {
    outline: none;
    border-color: var(--ld-teal);
    box-shadow: 0 0 0 4px rgba(2, 172, 177, 0.1);
}

.ld-form-group textarea {
    resize: vertical;
    line-height: 1.6;
}

/* ========================================
   UNLOCK SECTION (HERO STYLE)
   ======================================== */
.ld-unlock-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    margin: 40px 0;
    border: 3px solid var(--ld-teal);
}

.ld-unlock-content h3 {
    font-size: 1.6rem;
    color: var(--ld-deep-blue);
    margin-bottom: 15px;
}

.ld-unlock-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.ld-unlock-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--ld-teal) 0%, #028f94 100%);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(2, 172, 177, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ld-unlock-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ld-unlock-btn:hover::before {
    width: 300px;
    height: 300px;
}

.ld-unlock-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(2, 172, 177, 0.4);
}

.ld-unlock-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.ld-unlock-benefit {
    font-size: 0.95rem;
    color: #555;
}

/* ========================================
   ADVANCED SECTION (PROMPT BOXES)
   ======================================== */
.ld-prompt-box {
    background: #fafafa;
    padding: 30px;
    border-radius: 16px;
    border-left: 5px solid var(--ld-teal);
    margin-bottom: 25px;
    position: relative;
}

.ld-prompt-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ld-deep-blue);
    font-size: 1rem;
}

.ld-field-hint {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 12px;
    font-style: italic;
}

.ld-prompt-box textarea {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: var(--ld-font-body);
    margin-bottom: 10px;
}

.ld-char-counter {
    font-size: 0.85rem;
    color: #999;
    text-align: right;
    margin-bottom: 10px;
}

.ld-ai-assist-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.ld-ai-assist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.ld-ai-assist-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   AI EXPAND APPROVAL BAR
   ======================================== */
.ld-ai-approval-bar {
    background: linear-gradient(135deg, #e6f7f7 0%, #f0fdf4 100%);
    border: 2px solid var(--ld-teal);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 12px;
    animation: fadeInUp 0.4s ease-out;
}

.ld-ai-approval-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.ld-ai-approval-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ld-teal);
    letter-spacing: 0.5px;
}

.ld-ai-approval-hint {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

.ld-ai-approval-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.ld-ai-approve-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ld-deep-blue);
    user-select: none;
    margin: 0;
}

.ld-ai-approve-label input[type="checkbox"] {
    display: none;
}

.ld-ai-approve-checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--ld-teal);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
    background: white;
}

.ld-ai-approve-checkmark::after {
    content: '';
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

.ld-ai-approve-label input:checked + .ld-ai-approve-checkmark {
    background: var(--ld-teal);
    border-color: var(--ld-teal);
}

.ld-ai-approve-label input:checked + .ld-ai-approve-checkmark::after {
    transform: rotate(45deg) scale(1);
}

.ld-ai-approve-text {
    line-height: 1;
}

.ld-ai-revert-btn {
    background: transparent;
    color: #999;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ld-ai-revert-btn:hover {
    color: #d32f2f;
    border-color: #d32f2f;
    background: #fff5f5;
}

.ld-ai-approval-bar.ld-ai-approved {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

/* ========================================
   MAGIC WAND SECTION - SPECIAL FEATURE
   ======================================== */
.ld-magic-wand-section {
    background: linear-gradient(135deg, #f8f4ff 0%, #fff8f0 100%);
    border: 2px solid #e8d5ff;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0 30px;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.12);
    animation: fadeInUp 0.6s ease-out;
}

.ld-magic-wand-header {
    text-align: center;
    margin-bottom: 30px;
}

.ld-magic-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

.ld-magic-wand-header h3 {
    color: #7c3aed;
    font-size: 2rem;
    margin: 0 0 10px;
    font-weight: 700;
}

.ld-magic-wand-header p {
    font-size: 1.2rem;
    color: #6b21a8;
    font-weight: 600;
    margin: 0;
}

.ld-magic-wand-section .ld-prompt-box {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.ld-magic-wand-section .ld-ai-assist-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.ld-magic-wand-section .ld-ai-assist-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
    transform: translateY(-2px);
}

.ld-consent-wrapper {
    background: #f9f9f9;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 30px 0 20px;
    border-left: 4px solid var(--ld-teal);
}

.ld-consent-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.ld-consent-label input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--ld-teal);
}

.ld-consent-text {
    flex: 1;
}

.ld-privacy-link {
    color: var(--ld-teal);
    text-decoration: underline;
    font-weight: 600;
}

.ld-privacy-link:hover {
    color: #028f94;
}

/* ========================================
   FORM ACTIONS
   ======================================== */
.ld-form-actions {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.ld-btn-submit {
    background: linear-gradient(135deg, var(--ld-teal) 0%, #028f94 100%);
    color: white;
    padding: 22px 60px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(2, 172, 177, 0.3);
    transition: all 0.3s ease;
}

.ld-btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(2, 172, 177, 0.4);
}

.ld-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   LOADING STATE
   ======================================== */
#ld-loading {
    text-align: center;
    padding: 80px 50px;
}

.ld-loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--ld-teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#ld-loading h3 {
    font-size: 2rem;
    color: var(--ld-deep-blue);
    margin-bottom: 15px;
}

.ld-loading-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.ld-loading-time {
    font-size: 0.9rem;
    color: #999;
}

/* ========================================
   REPORT OUTPUT - HEADER
   ======================================== */
.ld-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    align-items: start;
}

.ld-header-left h1 {
    font-size: 3rem;
    color: var(--ld-deep-blue);
    margin-bottom: 25px;
}

.ld-score-display {
    text-align: center;
    margin: 30px 0;
}

.ld-score-number {
    font-size: 5rem;
    font-weight: bold;
    color: var(--ld-teal);
    font-family: var(--ld-font-head);
}

.ld-score-label {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

.ld-quadrant-badge {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 20px 0;
}

.ld-badge-stumbling {
    background: linear-gradient(135deg, var(--ld-green), #5bb876);
    color: white;
}

.ld-badge-soaring {
    background: linear-gradient(135deg, var(--ld-teal), #028f94);
    color: white;
}

.ld-badge-sleeping {
    background: linear-gradient(135deg, var(--ld-orange), #e89564);
    color: white;
}

.ld-badge-stagnating {
    background: linear-gradient(135deg, var(--ld-purple), #8f71a8);
    color: white;
}

.ld-quadrant-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

/* Executive Summary - PROMINENT */
.ld-executive-summary {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 3px solid var(--ld-teal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    margin-top: 35px;
}

.ld-executive-summary h4 {
    margin: 0 0 18px 0;
    color: var(--ld-teal);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ld-executive-summary p {
    margin: 0;
    line-height: 1.9;
    color: #222;
    font-size: 1.2rem;
}

/* Executive Summary - Full Width Version */
.ld-executive-summary-full {
    background: linear-gradient(135deg, #e6f7f7 0%, #f0fdf4 100%);
    border: 3px solid var(--ld-teal);
    border-radius: 20px;
    padding: 50px;
    margin: 40px 0;
    box-shadow: 0 12px 40px rgba(2, 172, 177, 0.15);
    position: relative;
    overflow: hidden;
}

.ld-executive-summary-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--ld-teal), var(--ld-green));
}

.ld-executive-summary-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ld-executive-summary-full h3 {
    color: var(--ld-teal);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 35px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(2, 172, 177, 0.15);
}

.ld-executive-summary-full p {
    font-size: 1.3rem;
    line-height: 2;
    color: #222;
    margin: 0;
}

.ld-summary-arrow {
    font-size: 2.5rem;
    color: var(--ld-teal);
    margin-top: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   QUADRANT MATRIX (2x2)
   ======================================== */
.ld-matrix-wrapper {
    position: relative;
    padding-bottom: 45px;
    padding-left: 50px;
}

.ld-matrix-container {
    width: 100%;
    aspect-ratio: 1/1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    background: #ddd;
    padding: 6px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.ld-quadrant {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.95rem;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
}

.ld-q-stumbling {
    background: linear-gradient(135deg, #70c987, #5bb876);
}

.ld-q-soaring {
    background: linear-gradient(135deg, #02acb1, #028f94);
}

.ld-q-sleeping {
    background: linear-gradient(135deg, #f2a67d, #e89564);
}

.ld-q-stagnating {
    background: linear-gradient(135deg, #a182bd, #8f71a8);
}

/* Axes */
.ld-axis-x {
    position: absolute;
    bottom: -38px;
    width: 100%;
    left: 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ld-deep-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.ld-axis-arrow-left,
.ld-axis-arrow-right {
    font-size: 1.4rem;
    color: var(--ld-teal);
}

.ld-axis-y {
    position: absolute;
    left: -45px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ld-deep-blue);
    gap: 8px;
}

.ld-axis-y-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.ld-axis-arrow-up,
.ld-axis-arrow-down {
    font-size: 1.4rem;
    color: var(--ld-teal);
    display: block;
    line-height: 1;
}

/* Animated Pin */
.ld-pin {
    position: absolute;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 5px solid var(--ld-deep-blue);
    border-radius: 50%;
    z-index: 100;
    transform: translate(-50%, 50%);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.5),
                0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ld-pin-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ld-deep-blue);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    font-weight: bold;
    font-family: var(--ld-font-head);
}

.ld-pin-tooltip::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    margin-left: -7px;
    border-width: 7px;
    border-style: solid;
    border-color: var(--ld-deep-blue) transparent transparent transparent;
}

/* ========================================
   QUICK WIN BOX
   ======================================== */
.ld-quick-win-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d6 100%);
    border: 4px solid var(--ld-orange);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(242, 166, 125, 0.25);
    text-align: center;
    margin: 50px 0;
}

.ld-quick-win-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.ld-quick-win-box h3 {
    font-size: 2.4rem;
    color: var(--ld-deep-blue);
    margin-bottom: 20px;
}

.ld-quick-win-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.ld-quick-win-task {
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    border-left: 6px solid var(--ld-orange);
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 30px auto;
    max-width: 700px;
    text-align: left;
}

.ld-quick-win-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin: 25px 0;
}

.ld-quick-win-cta {
    background: linear-gradient(135deg, var(--ld-orange) 0%, #e89564 100%);
    color: white;
    padding: 22px 50px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(242, 166, 125, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 20px 0;
}

.ld-quick-win-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(242, 166, 125, 0.5);
}

.ld-quick-win-note {
    font-size: 0.95rem;
    color: #666;
    margin-top: 20px;
}

/* ========================================
   SECTION CARDS (PRESENCE & TECH)
   ======================================== */
.ld-section-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.ld-section-head {
    background: var(--ld-sandstone);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ld-section-head h2 {
    font-size: 2rem;
    color: var(--ld-deep-blue);
}

.ld-section-score-badge {
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--ld-teal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ld-section-body {
    padding: 40px;
}

.ld-narrative {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.ld-narrative p {
    margin-bottom: 20px;
}

/* Read More/Less Toggle */
.ld-narrative-short {
    display: block;
}

.ld-narrative-full {
    display: none;
}

.ld-read-more-btn {
    background: transparent;
    border: none;
    color: var(--ld-teal);
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    text-decoration: underline;
    display: inline;
}

.ld-read-more-btn:hover {
    color: #028f94;
    text-decoration: none;
}

.ld-read-more-btn.expanded {
    color: var(--ld-teal);
}

/* ========================================
   PILLAR CARDS
   ======================================== */
.ld-pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.ld-pillar-card {
    background: #fafafa;
    padding: 25px;
    border-radius: 16px;
    border-left: 5px solid var(--ld-teal);
    transition: all 0.3s ease;
}

.ld-pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.ld-pillar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ld-pillar-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--ld-deep-blue);
}

.ld-pillar-score-circle {
    width: 50px;
    height: 50px;
    position: relative;
}

.ld-pillar-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--ld-teal);
}

.ld-circle {
    fill: none;
    stroke: var(--ld-teal);
    stroke-width: 3;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
}

@keyframes progress {
    from {
        stroke-dasharray: 0, 100;
    }
}

.ld-pillar-badges {
    margin-bottom: 15px;
}

.ld-pillar-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
}

.bg-foundation {
    background: linear-gradient(135deg, #ffe6e6, #ffd4d4);
    color: #c7354f;
}

.bg-foundation-dim {
    background: transparent;
    border: 1px solid #ffe6e6;
    color: #c7354f;
    opacity: 0.5;
}

.bg-ai {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    color: #00838f;
}

.bg-ai-dim {
    background: transparent;
    border: 1px solid #e0f7fa;
    color: #00838f;
    opacity: 0.5;
}

.ld-pillar-badge.active {
    font-weight: 700;
    opacity: 1;
}

.ld-pillar-recommendation {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Pillar CTA */
.ld-pillar-cta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.ld-pillar-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--ld-teal) 0%, #028f94 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(2, 172, 177, 0.25);
    transition: all 0.3s ease;
}

.ld-pillar-cta-btn:hover {
    background: linear-gradient(135deg, #028f94 0%, #027277 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 172, 177, 0.35);
}

/* ========================================
   QUICK WIN BOX - V9 CONVERSION OPTIMIZED
   ======================================== */
.ld-quick-win-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d6 100%);
    border: 4px solid var(--ld-orange);
    border-radius: 24px;
    padding: 50px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(242, 166, 125, 0.25);
}

.ld-quick-win-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 166, 125, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ld-quick-win-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.ld-quick-win-box h3 {
    font-family: var(--ld-font-head);
    font-size: 2.4rem;
    text-align: center;
    margin: 0 0 15px 0;
    color: var(--ld-deep-blue);
    line-height: 1.3;
}

.ld-quick-win-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.ld-quick-win-task {
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    margin: 25px auto;
    max-width: 700px;
    font-size: 1.2rem;
    line-height: 1.7;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
    text-align: center;
}

.ld-quick-win-task em {
    display: block;
    margin-top: 8px;
    font-size: 1.15rem;
    color: #333;
}

/* Quick Win Stats Row */
.ld-quick-win-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.ld-quick-win-stat {
    text-align: center;
}

.ld-quick-win-stat strong {
    display: block;
    font-size: 1.8rem;
    color: var(--ld-deep-blue);
    font-weight: 800;
}

.ld-quick-win-stat span {
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
}

.ld-quick-win-box p {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.ld-quick-win-cta-wrapper {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 30px;
}

.ld-quick-win-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--ld-orange) 0%, #e89564 100%);
    color: white;
    padding: 22px 50px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(242, 166, 125, 0.4);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.ld-quick-win-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ld-quick-win-cta:hover::before {
    width: 300px;
    height: 300px;
}

.ld-quick-win-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(242, 166, 125, 0.5);
}

.ld-quick-win-cta-text {
    position: relative;
    z-index: 1;
}

.ld-quick-win-trust {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

/* ========================================
   INDUSTRY BENCHMARK COMPARISON
   ======================================== */
.ld-benchmark-section {
    background: #f8f9fa;
    padding: 60px 50px;
    border-radius: 20px;
    margin: 60px 0;
    border: 2px solid #e0e0e0;
}

.ld-benchmark-header {
    text-align: center;
    margin-bottom: 50px;
}

.ld-benchmark-header h2 {
    color: var(--ld-deep-blue);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.ld-benchmark-header p {
    color: #666;
    font-size: 1.1rem;
}

.ld-benchmark-chart {
    max-width: 900px;
    margin: 0 auto 40px;
}

.ld-benchmark-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.ld-benchmark-label {
    min-width: 150px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ld-deep-blue);
    text-align: right;
}

.ld-benchmark-bar-container {
    flex: 1;
    height: 50px;
    background: #e0e0e0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.ld-benchmark-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    border-radius: 10px;
    transition: width 1.5s ease-out;
    animation: slideIn 1.5s ease-out;
}

.ld-user-bar {
    background: linear-gradient(90deg, #ffa726, #ff9800);
}

.ld-target-bar {
    background: linear-gradient(90deg, var(--ld-teal), var(--ld-green));
}

.ld-benchmark-value {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ld-benchmark-insight {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #ffa726;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.ld-benchmark-gap-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.ld-benchmark-gap-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.ld-benchmark-gap-text strong {
    color: #ff9800;
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        width: 0;
    }
}

/* ========================================
   FINAL CTA SECTION - V9 IRRESISTIBLE
   ======================================== */
.ld-cta-section {
    background: linear-gradient(135deg, var(--ld-deep-blue) 0%, #0a1a2e 100%);
    padding: 70px 60px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(8, 20, 32, 0.3);
    color: white;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.ld-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(2, 172, 177, 0.15) 0%, transparent 60%);
    animation: pulse 6s ease-in-out infinite;
}

.ld-cta-content {
    position: relative;
    z-index: 1;
}

.ld-cta-eyebrow {
    display: inline-block;
    background: rgba(2, 172, 177, 0.2);
    color: var(--ld-teal);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 20px;
}

.ld-cta-section h3 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: white;
}

.ld-cta-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.ld-cta-section p {
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* V9 Value Props */
.ld-cta-value-props {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 35px 0;
}

.ld-cta-value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

.ld-cta-value-item::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--ld-teal);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
}

.ld-cta-button-wrapper {
    margin: 40px 0 30px 0;
}

.ld-cta-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ld-cta-benefit {
    text-align: center;
}

.ld-cta-benefit-icon {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.ld-cta-benefit-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.ld-cta-benefit-text {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
}

.ld-cta-urgency {
    color: var(--ld-orange);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 20px 0;
}

.ld-cta-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--ld-teal) 0%, #028f94 100%);
    color: white;
    padding: 24px 60px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(2, 172, 177, 0.4);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.ld-cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ld-cta-primary:hover::before {
    width: 350px;
    height: 350px;
}

.ld-cta-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(2, 172, 177, 0.5);
}

.ld-cta-primary-text {
    position: relative;
    z-index: 1;
}

.ld-cta-secondary {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ld-cta-secondary-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.ld-cta-secondary .ld-report-actions {
    justify-content: center;
}

.ld-cta-secondary .ld-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    backdrop-filter: blur(10px);
}

.ld-cta-secondary .ld-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.ld-cta-trust {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
    margin-bottom: 10px;
    font-style: italic;
}

.ld-cta-free-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    font-style: italic;
}

.ld-cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}

.ld-cta-social-proof {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ld-cta-testimonial {
    max-width: 600px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
}

.ld-cta-testimonial-author {
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    color: var(--ld-teal);
    font-size: 0.9rem;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
}

.ld-testimonial-author {
    font-style: normal;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* ========================================
   ERROR DISPLAY
   ======================================== */
.ld-error-section {
    text-align: center;
    padding: 60px 40px;
}

.ld-error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.ld-error-section h3 {
    font-size: 2rem;
    color: var(--ld-deep-blue);
    margin-bottom: 15px;
}

.ld-error-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.ld-error-details {
    margin-top: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ld-error-details summary {
    cursor: pointer;
    color: var(--ld-teal);
    font-weight: 600;
    margin-bottom: 10px;
}

.ld-error-details pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.85rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.ld-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ld-text-center {
    text-align: center;
}

.ld-mt-40 {
    margin-top: 40px;
}

.ld-mb-40 {
    margin-bottom: 40px;
}

/* ========================================
   RESPONSIVE DESIGN - V9 BREAKPOINTS
   ======================================== */

/* Large Desktop */
@media (max-width: 1600px) {
    #ld-audit-wrapper {
        max-width: 1200px;
        padding: 0 40px 40px 40px;
    }

    #ld-email-gate {
        padding: 150px 40px 60px;
    }
}

/* Medium Desktop */
@media (max-width: 1200px) {
    #ld-audit-wrapper {
        max-width: 1000px;
        padding: 0 30px 40px 30px;
    }

    #ld-email-gate {
        padding: 140px 30px 55px;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .ld-header-grid {
        grid-template-columns: 1fr;
    }

    .ld-matrix-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Tablet */
@media (max-width: 900px) {
    #ld-audit-wrapper {
        max-width: 100%;
        padding: 0 15px 15px 15px;
    }

    #ld-email-gate {
        padding: 130px 20px 45px;
    }

    .ld-grid-2 {
        grid-template-columns: 1fr;
    }

    .ld-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ld-form-row {
        grid-template-columns: 1fr;
    }

    /* Capture box name/email stacked on tablet too */
    .ld-email-capture-box .ld-form-row {
        grid-template-columns: 1fr;
    }

    .ld-benchmark-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ld-benchmark-label {
        text-align: left;
        min-width: auto;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    #ld-audit-wrapper {
        padding: 0 10px 10px 10px;
    }

    .ld-section {
        padding: 35px 20px;
        border-radius: 16px;
    }

    #ld-email-gate {
        padding: 160px 20px 40px;
    }

    #ld-email-gate h2 {
        font-size: 2.2rem;
    }

    .ld-email-subtitle {
        font-size: 1.1rem;
    }

    .ld-email-capture-box {
        padding: 25px 20px;
    }

    .ld-email-capture-box .ld-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ld-email-capture-box input {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .ld-header-left h1 {
        font-size: 2.2rem;
    }

    .ld-score-number {
        font-size: 4rem;
    }

    .ld-pillar-grid {
        grid-template-columns: 1fr;
    }

    .ld-cta-section {
        padding: 50px 20px;
        border-radius: 16px;
    }

    .ld-cta-section h3 {
        font-size: 2rem;
    }

    .ld-cta-primary {
        padding: 18px 35px;
        font-size: 1.15rem;
    }

    .ld-cta-value-props {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding-left: 20px;
    }

    .ld-quick-win-box {
        padding: 30px 20px;
    }

    .ld-quick-win-box h3 {
        font-size: 1.8rem;
    }

    .ld-quick-win-cta {
        padding: 16px 30px;
        font-size: 1.1rem;
    }

    .ld-executive-summary-full {
        padding: 35px 20px;
    }

    .ld-executive-summary-full h3 {
        font-size: 1.4rem;
    }

    .ld-executive-summary-full p {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .ld-section-body {
        padding: 25px 20px;
    }

    .ld-section-head {
        padding: 20px;
    }

    .ld-section-head h2 {
        font-size: 1.5rem;
    }

    .ld-benchmark-section {
        padding: 35px 20px;
    }

    .ld-benchmark-header h2 {
        font-size: 1.6rem;
    }

    .ld-benchmark-insight {
        flex-direction: column;
        gap: 12px;
    }

    .ld-section-header {
        padding: 20px;
    }

    .ld-section-header h3 {
        font-size: 1.4rem;
    }

    .ld-progress-section {
        padding: 20px;
    }

    .ld-form-group input,
    .ld-form-group select,
    .ld-form-group textarea {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .ld-prompt-box {
        padding: 20px;
    }

    .ld-magic-wand-section {
        padding: 25px 20px;
    }

    .ld-magic-wand-header h3 {
        font-size: 1.5rem;
    }

    .ld-unlock-section {
        padding: 30px 20px;
    }

    .ld-unlock-benefits {
        flex-direction: column;
        gap: 10px;
    }

    .ld-benefits {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 24px;
    }
    .ld-benefit {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }
    .ld-benefit-icon {
        font-size: 1.2rem;
    }
    .ld-benefit-label {
        font-size: 0.8rem;
    }

    .ld-social-proof {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .ld-matrix-wrapper {
        padding-left: 40px;
        padding-bottom: 40px;
    }

    .ld-axis-y {
        left: -38px;
        font-size: 0.7rem;
    }

    .ld-axis-x {
        font-size: 0.7rem;
        bottom: -32px;
    }

    .ld-cta-testimonial {
        font-size: 0.9rem;
    }

    .ld-minimal-input-nudge {
        padding: 25px 20px;
    }
}

/* Mobile Portrait - Full width, everything stacked */
@media (max-width: 600px) {
    #ld-audit-wrapper {
        padding: 0 6px 6px 6px;
    }

    .ld-section {
        padding: 30px 15px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    #ld-email-gate {
        padding: 155px 15px 35px;
    }

    #ld-email-gate h2 {
        font-size: 1.8rem;
    }

    .ld-email-subtitle {
        font-size: 1rem;
    }

    .ld-email-capture-box {
        padding: 20px 15px;
        margin-top: 25px;
    }

    .ld-email-capture-box .ld-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ld-consent-column {
        padding-bottom: 0;
        padding-top: 4px;
    }

    #ld-start-btn {
        padding: 16px;
        font-size: 1rem;
    }

    .ld-gate-eyebrow {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .ld-header-left h1 {
        font-size: 1.8rem;
    }

    .ld-score-number {
        font-size: 3.5rem;
    }

    .ld-quadrant-badge {
        padding: 8px 20px;
        font-size: 0.95rem;
    }

    .ld-cta-section h3 {
        font-size: 1.6rem;
    }

    .ld-cta-section p {
        font-size: 1rem;
    }

    .ld-cta-primary {
        padding: 16px 30px;
        font-size: 1.05rem;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .ld-cta-button-wrapper {
        margin: 25px 0 15px;
    }

    .ld-form-row {
        gap: 15px;
        margin-bottom: 15px;
    }

    .ld-quick-win-box h3 {
        font-size: 1.5rem;
    }

    .ld-quick-win-task {
        font-size: 1rem;
        padding: 15px;
    }

    .ld-quick-win-cta {
        padding: 14px 25px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .ld-btn-submit {
        padding: 18px 40px;
        font-size: 1.1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .ld-section-cta-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .ld-pillar-cta-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        display: block;
    }

    .ld-unlock-btn {
        padding: 16px 30px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .ld-nudge-cta {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* Very Small Mobile (iPhone SE etc) */
@media (max-width: 400px) {
    #ld-email-gate h2 {
        font-size: 1.5rem;
    }

    .ld-header-left h1 {
        font-size: 1.6rem;
    }

    .ld-score-number {
        font-size: 3rem;
    }

    .ld-cta-section h3 {
        font-size: 1.4rem;
    }

    .ld-section-head h2 {
        font-size: 1.3rem;
    }

    .ld-executive-summary-full h3 {
        font-size: 1.2rem;
    }

    .ld-benchmark-header h2 {
        font-size: 1.3rem;
    }
}

/* ========================================
   MICRO-ANIMATIONS - ATTENTION GRABBING
   ======================================== */

/* Fade in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide in from bottom */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale in */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse effect */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Glow effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(2, 172, 177, 0.3);
    }
    50% {
        box-shadow: 0 12px 40px rgba(2, 172, 177, 0.5);
    }
}

/* Highlight box pulse */
@keyframes highlight-pulse {
    0%, 100% {
        background-color: white;
        transform: scale(1);
    }
    50% {
        background-color: #fff9f0;
        transform: scale(1.02);
    }
}

/* Apply animations */
.ld-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.ld-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.ld-slide-in-up {
    animation: slideInUp 0.7s ease-out forwards;
}

.ld-scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

.ld-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.ld-btn-glow {
    animation: glow 2s ease-in-out infinite;
}

.ld-highlight-box {
    animation: highlight-pulse 3s ease-in-out infinite;
}

.ld-score-animate {
    animation: scaleIn 0.8s ease-out 0.5s forwards;
}

/* ========================================
   SECTION CTA BOX
   ======================================== */
.ld-section-cta-box {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 3px solid var(--ld-teal);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.ld-section-cta-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ld-deep-blue);
    margin: 0 0 20px 0;
}

.ld-section-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--ld-teal) 0%, #028f94 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(2, 172, 177, 0.3);
    transition: all 0.3s ease;
}

.ld-section-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(2, 172, 177, 0.4);
}

/* ========================================
   ENHANCED PILLAR CTA
   ======================================== */
.ld-pillar-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.ld-pillar-cta-btn {
    display: inline-block;
    background: transparent;
    color: var(--ld-teal);
    padding: 12px 24px;
    border: 2px solid var(--ld-teal);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ld-pillar-cta-btn:hover {
    background: var(--ld-teal);
    color: white;
    transform: translateX(5px);
}

/* ========================================
   ENHANCED QUICK WIN STYLES
   ======================================== */
.ld-quick-win-description {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin: 25px auto;
    max-width: 700px;
}

.ld-quick-win-trust {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 20px;
}

/* ========================================
   MINIMAL INPUT NUDGE
   ======================================== */
.ld-minimal-input-nudge {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border: 2px solid #ffcc02;
    border-radius: 16px;
    padding: 35px 40px;
    margin: 40px 0;
    text-align: center;
}

.ld-nudge-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.ld-minimal-input-nudge h3 {
    color: #1a365d;
    font-size: 1.6rem;
    margin: 0 0 15px 0;
}

.ld-minimal-input-nudge p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 15px;
}

.ld-nudge-cta {
    display: inline-block;
    background: linear-gradient(135deg, #00acc1 0%, #26c6da 100%);
    color: white !important;
    text-decoration: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,172,193,0.3);
}

.ld-nudge-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,172,193,0.4);
    text-decoration: none;
    color: white !important;
}

/* ========================================
   REPORT ACTIONS (Share & Email)
   ======================================== */
.ld-report-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.ld-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #1a365d;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ld-action-btn:hover {
    background: linear-gradient(135deg, #00acc1 0%, #26c6da 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,172,193,0.3);
}

.ld-action-icon {
    font-size: 1.2em;
}

/* ========================================
   MODAL DIALOGS
   ======================================== */
.ld-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.ld-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: ldModalFadeIn 0.3s ease-out;
}

@keyframes ldModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ld-modal-content h3 {
    color: #1a365d;
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    text-align: center;
}

.ld-modal-content p {
    color: #666;
    text-align: center;
    margin: 0 0 25px 0;
    font-size: 1rem;
}

.ld-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ld-modal-close:hover {
    color: #333;
}

.ld-modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ld-modal-form input {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.ld-modal-form input:focus {
    outline: none;
    border-color: var(--ld-teal);
    box-shadow: 0 0 0 3px rgba(0,172,193,0.1);
}

.ld-modal-btn {
    background: linear-gradient(135deg, #00acc1 0%, #26c6da 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,172,193,0.3);
}

.ld-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,172,193,0.4);
}

.ld-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ld-modal-message {
    margin-top: 15px;
    text-align: center;
    font-size: 0.95rem;
}

.ld-modal-message .ld-success {
    color: #00897b;
    font-weight: 600;
}

.ld-modal-message .ld-error {
    color: #d32f2f;
    font-weight: 600;
}

/* Mobile responsiveness for modals */
@media (max-width: 768px) {
    .ld-modal-content {
        margin: 20% auto;
        padding: 30px 20px;
        width: 95%;
    }

    .ld-report-actions {
        flex-direction: column;
    }

    .ld-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   V4.0.0 — SPIDER CHART (PENTAGON)
   ======================================== */
.ld-spider-section {
    text-align: center;
    margin: 40px 0;
    background: white;
    border-radius: 20px;
    padding: 50px 40px 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.ld-spider-section h3 {
    font-size: 1.8rem;
    color: var(--ld-deep-blue);
    margin: 0 0 10px 0;
}

.ld-spider-section > p {
    color: #666;
    font-size: 1rem;
    margin: 0 0 30px;
}

.ld-spider-chart-wrapper {
    display: inline-block;
    max-width: 440px;
    width: 100%;
}

.ld-spider-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.ld-spider-caption {
    font-size: 13px;
    color: var(--ld-deep-blue);
    margin-top: 12px;
    opacity: 0.65;
    font-style: italic;
}

/* ========================================
   V4.0.0 — OVERALL NARRATIVE SECTION
   ======================================== */
.ld-overall-narrative {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.ld-overall-narrative h3 {
    font-size: 1.8rem;
    color: var(--ld-deep-blue);
    margin: 0 0 25px 0;
}

.ld-overall-narrative p {
    line-height: 1.85;
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.ld-overall-narrative p:last-child {
    margin-bottom: 0;
}

/* ========================================
   V4.0.0 — 5-PILLAR GRID
   ======================================== */
.ld-pillar-section {
    margin: 40px 0;
}

.ld-pillar-section > h3 {
    font-size: 1.8rem;
    color: var(--ld-deep-blue);
    margin: 0 0 25px 0;
}

.ld-pillar-grid-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 0;
}

@media (max-width: 900px) {
    .ld-pillar-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ld-pillar-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   V4.0.0 — PILLAR CARD (HORIZONTAL BAR)
   ======================================== */

.ld-pillar-card {
    background: #fafafa;
    padding: 28px 25px;
    border-radius: 16px;
    border-left: 5px solid var(--ld-teal);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ld-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    background: white;
}

.ld-pillar-card.score-high  { border-left-color: var(--ld-teal); }
.ld-pillar-card.score-mid   { border-left-color: #F59E0B; }
.ld-pillar-card.score-low   { border-left-color: #EF6C3E; }

.ld-pillar-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ld-deep-blue);
    margin-bottom: 14px;
    line-height: 1.3;
}

.ld-pillar-score-bar-wrapper {
    margin-bottom: 10px;
}

.ld-pillar-bar-track {
    width: 100%;
    height: 10px;
    background: #e8e8e8;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.ld-pillar-bar-fill {
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ld-pillar-bar-fill.fill-high { background: linear-gradient(90deg, var(--ld-teal), #028f94); }
.ld-pillar-bar-fill.fill-mid  { background: linear-gradient(90deg, #F59E0B, #D97706); }
.ld-pillar-bar-fill.fill-low  { background: linear-gradient(90deg, #EF6C3E, #DC5626); }

.ld-pillar-score-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-align: right;
}

.ld-pillar-badge-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.ld-badge-priority {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    color: #c62828;
}

.ld-badge-future {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    color: #00697a;
}

.ld-pillar-recommendation {
    font-size: 0.93rem;
    line-height: 1.65;
    color: #555;
    flex: 1;
    margin-bottom: 14px;
}

.ld-creative-thread {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--ld-teal);
    opacity: 0.88;
    margin-bottom: 16px;
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px solid rgba(2, 172, 177, 0.15);
}

.ld-pillar-micro-cta {
    display: inline-block;
    color: var(--ld-teal);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1.5px solid var(--ld-teal);
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: auto;
    align-self: flex-start;
}

.ld-pillar-micro-cta:hover {
    background: var(--ld-teal);
    color: white;
    transform: translateX(4px);
    text-decoration: none;
}

/* ========================================
   V4.0.0 — MATRIX SECTION WRAPPER
   ======================================== */
.ld-matrix-section {
    margin: 40px 0;
}

.ld-matrix-section > h3 {
    font-size: 1.8rem;
    color: var(--ld-deep-blue);
    margin: 0 0 10px 0;
}

.ld-matrix-section > p {
    color: #666;
    font-size: 1rem;
    margin: 0 0 30px;
    max-width: 700px;
}

.ld-matrix-section .ld-section {
    margin-bottom: 0;
}

/* ========================================
   V4.0.0 — SCORE HEADER SECTION
   ======================================== */
.ld-score-header-section {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.ld-score-header-section .ld-score-number {
    font-size: 6rem;
}

.ld-score-header-section .ld-score-label {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ========================================
   V4.0.0 — RESPONSIVE ADDITIONS
   ======================================== */
@media (max-width: 768px) {
    .ld-spider-section {
        padding: 35px 20px 30px;
    }

    .ld-overall-narrative {
        padding: 35px 20px;
    }

    .ld-overall-narrative h3 {
        font-size: 1.4rem;
    }

    .ld-pillar-section > h3,
    .ld-matrix-section > h3,
    .ld-spider-section h3 {
        font-size: 1.4rem;
    }

    .ld-score-header-section {
        padding: 35px 20px;
    }

    .ld-score-header-section .ld-score-number {
        font-size: 4.5rem;
    }
}

@media (max-width: 600px) {
    .ld-spider-section {
        padding: 25px 15px 20px;
    }

    .ld-overall-narrative {
        padding: 25px 15px;
    }

    .ld-score-header-section {
        padding: 25px 15px;
    }

    .ld-score-header-section .ld-score-number {
        font-size: 3.8rem;
    }

    .ld-pillar-card {
        padding: 20px 18px;
    }

    .ld-pillar-micro-cta {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ========================================
   V4.0.1 — SPIDER + EXEC SUMMARY ROW
   ======================================== */
.ld-spider-exec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    align-items: start;
}

/* Zero out standalone margins when nested in the row */
.ld-spider-exec-row .ld-spider-section,
.ld-spider-exec-row .ld-executive-summary-full {
    margin: 0;
}

/* Stack on tablet */
@media (max-width: 900px) {
    .ld-spider-exec-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   V4.0.1 — HIGH SCORE CALLOUT
   ======================================== */
.ld-high-score-callout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border: 2px solid #F59E0B;
    border-left: 6px solid #F59E0B;
    border-radius: 16px;
    padding: 28px 30px;
    margin: 0 0 40px 0;
}

.ld-high-score-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 2px;
}

.ld-high-score-body strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ld-deep-blue);
    margin-bottom: 8px;
}

.ld-high-score-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

@media (max-width: 600px) {
    .ld-high-score-callout {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
}

/* ========================================
   ABM / INDUSTRY MODE — PRESET FIELDS
   ======================================== */
.ld-preset-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ld-sandstone);
    border: 2px solid rgba(2, 172, 177, 0.25);
    border-radius: 12px;
    padding: 14px 20px;
    min-height: 52px;
}

.ld-preset-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ld-teal);
    white-space: nowrap;
    flex-shrink: 0;
}

.ld-preset-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ld-deep-blue);
}

/* ========================================
   v4.1.0 — ROLE DROPDOWN AT EMAIL GATE
   ======================================== */

/* Full-width form group — spans both grid columns */
.ld-form-group-full {
    grid-column: 1 / -1;
}

/* Role select inherits the same look as text inputs in the email gate */
.ld-email-capture-box select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid rgba(2, 172, 177, 0.3);
    font-size: 1rem;
    font-family: var(--ld-font-body);
    background: #fff;
    color: var(--ld-deep-blue);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2302acb1' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: all 0.3s ease;
}

.ld-email-capture-box select:focus {
    outline: none;
    border-color: var(--ld-teal);
    box-shadow: 0 0 0 3px rgba(2, 172, 177, 0.1);
}

.ld-email-capture-box select.ld-error {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* ========================================
   v4.1.0 — SOFT-LOCK EDIT TOGGLE
   ======================================== */

/* Pencil button appended to preset chips */
.ld-preset-edit-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.45;
    padding: 0 6px;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    align-self: center;
}

.ld-preset-edit-btn:hover {
    opacity: 1;
}

.ld-preset-edit-btn:focus {
    outline: 2px solid var(--ld-teal);
    border-radius: 3px;
    opacity: 1;
}

/* Input revealed when the user unlocks a preset chip */
.ld-preset-unlocked-input {
    border: 2px solid var(--ld-teal) !important;
    background: #fff !important;
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--ld-font-body);
    color: var(--ld-deep-blue);
    transition: box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ld-preset-unlocked-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 172, 177, 0.15);
}

/* ========================================
   FAQ SECTION
   ======================================== */
.ld-faq-section {
    /* Sits inside #ld-audit-wrapper — inherits its max-width and centering */
    background: var(--ld-sandstone) !important; /* warm sandstone, distinct from white form cards */
    box-shadow: none !important;
    margin-top: 0;
}

.ld-faq-header {
    margin-bottom: 2.5rem;
}

.ld-faq-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ld-teal);
    margin-bottom: 0.6rem;
}

.ld-faq-title {
    font-family: var(--ld-font-head);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ld-deep-blue);
    margin: 0;
    line-height: 1.2;
}

.ld-faq-list {
    border-top: 1px solid rgba(8, 20, 32, 0.15);
}

.ld-faq-item {
    border-bottom: 1px solid rgba(8, 20, 32, 0.15);
}

.ld-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--ld-font-body);
    transition: opacity 0.2s ease;
}

.ld-faq-question:hover {
    opacity: 0.75;
}

.ld-faq-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ld-deep-blue);
    line-height: 1.4;
}

.ld-faq-icon {
    flex-shrink: 0;
    color: var(--ld-teal);
    transition: transform 0.3s ease;
}

.ld-faq-question[aria-expanded="true"] .ld-faq-icon {
    transform: rotate(45deg);
}

.ld-faq-question[aria-expanded="true"] .ld-fiq-v {
    transform-origin: center;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.ld-faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.ld-faq-answer[aria-hidden="false"] {
    max-height: 600px;
}

.ld-faq-answer-inner {
    padding: 0 2rem 1.5rem 0; /* right pad + bottom pad; answer aligns under question text */
    color: #445;
    line-height: 1.75;
}

.ld-faq-answer-inner p {
    margin: 0;
    font-size: 0.95rem;
}

.ld-faq-answer-inner a {
    color: var(--ld-teal);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ld-faq-title {
        font-size: 1.7rem;
    }
    .ld-faq-answer-inner {
        padding-right: 1rem;
    }
}
