/* ============================================================
   AI-visibility-audit.css — extracted from AI-visibility-audit.html
   ============================================================ */

:root {
        /* Aligned with the other 5 AIPO Service pages (--brand: #991B2D, etc.) */
        --brand-primary: #991B2D;
        --brand-deep: #6E1320;
        --brand-accent: #CC624A;       /* warm accent — kept for the radar/highlights, no equivalent token on other AIPO pages */
        --brand-gray-dark: #1A1A1A;    /* matches --ink on other AIPO pages */
        --brand-gray-light: #4B4F58;   /* matches --ink-2 on other AIPO pages */
        --bg-soft: #FCEFEF;            /* matches --brand-tint on other AIPO pages */
        --white: #ffffff;
    }

    /* All page styles are scoped under .aipo-page wrapper to avoid bleeding into layouts/main.php navbar/footer. */
    .aipo-page {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        color: var(--brand-gray-dark);
        background: var(--white);
        overflow-x: hidden;
        line-height: 1.6;
    }

    .aipo-page .container-geo-audit { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

    /* --- 1. Banner & Radar --- */
    .hero-banner {
        padding: 100px 0;
        background: linear-gradient(135deg, var(--bg-soft) 0%, #ffffff 100%);
        min-height: 700px;
        display: flex;
        align-items: center;
    }

    .hero-flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        width: 100%;
    }

    .hero-content { flex: 1; z-index: 10; }
    .hero-content h1 { font-family: 'Spectral', Georgia, serif; font-size: 56px; color: var(--brand-deep); margin: 0 0 20px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
    .hero-content .description { font-size: 19px; color: var(--brand-gray-light); margin-bottom: 35px; line-height: 1.65; max-width: 540px; }

    /* Button group layout */
    .banner-btns {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .hero-visual {
        flex: 0 0 580px; 
        height: 580px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .radar-viewport {
        position: relative;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: radial-gradient(circle, #ffffff 0%, rgba(253, 241, 240, 0.5) 70%);
        border: 1px solid rgba(153, 27, 45, 0.05);
    }

    .scanner-line {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 45%; 
        height: 3px;
        background: linear-gradient(to right, transparent, var(--brand-primary));
        transform-origin: 0% 50%; 
        z-index: 5;
        box-shadow: 0 0 10px rgba(153, 27, 45, 0.3);
    }
    
    .scanner-line::after {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 300px;
        background: conic-gradient(from 90deg at 0% 0%, rgba(153, 27, 45, 0.1), transparent);
        transform: translateY(-100%);
        pointer-events: none;
    }

    /* Status label */
    .radar-status { 
        margin-top: 65px; 
        font-size: 16px; 
        color: var(--brand-primary); 
        font-weight: 700; 
        letter-spacing: 3px;
        text-align: center;
        border: 2px solid var(--brand-primary);
        padding: 8px 30px;
        border-radius: 50px;
        background: #fff;
        box-shadow: 0 5px 15px rgba(153, 27, 45, 0.1);
    }

    /* Star element color states */
    .star-element {
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 10px 18px;
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 10;
        white-space: nowrap;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        transform: translate(-50%, -50%);
    }
    
    .star-element.active {
        background: var(--brand-primary); 
        border-color: var(--brand-primary);
        box-shadow: 0 15px 35px rgba(153, 27, 45, 0.4);
        z-index: 30;
        transform: translate(-50%, -50%) scale(1.2);
    }

    .star-label { color: #333; font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
    .star-value { color: var(--brand-primary); font-weight: 900; font-family: 'Arial Black'; transition: color 0.3s; }

    .star-element.active .star-label { color: #ffffff; }
    .star-element.active .star-value { color: #ffffff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

    .size-max .star-value { font-size: 2.6rem; }
    .size-high .star-value { font-size: 1.9rem; }
    .size-minor .star-value { font-size: 1.2rem; color: #888; }

    /* --- 2. Content sections --- */
    .section-padding { padding: 100px 0; }
    .problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .problem-card { background: #fff; border-radius: 20px; padding: 40px 30px; text-align: center; border: 1px solid #eee; }
    .problem-card h4 { font-family: 'Spectral', Georgia, serif; line-height: 1.35; letter-spacing: -0.005em; }
    .img-placeholder { background: #fcfcfc; border-radius: 15px; display: flex; align-items: center; justify-content: center; border: 2px dashed #ddd; color: #aaa; overflow: hidden; }
    .img-lg { height: 280px; margin-bottom: 25px; }

    /* Full-screen section style */
    .full-screen-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 100px 0;
        background: #fff;
    }
    
    .full-screen-section:nth-child(odd) {
        background: var(--bg-soft);
    }

    .feature-block {
        display: flex;
        align-items: center;
        gap: 80px;
        width: 100%;
    }
    
    .feature-block:nth-child(even) {
        flex-direction: row-reverse;
    }
    
    .feature-info {
        flex: 1;
    }
    
    .feature-info h3 {
        font-family: 'Spectral', Georgia, serif;
        font-size: 38px;
        color: var(--brand-primary);
        margin-bottom: 25px;
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: -0.005em;
    }
    
    .feature-info p {
        font-size: 18px;
        color: var(--brand-gray-light);
        margin-bottom: 30px;
        line-height: 1.8;
    }
    
    .feature-info ul {
        list-style: none;
        padding: 0;
        margin-bottom: 40px;
    }
    
    .feature-info li {
        margin-bottom: 15px;
        padding-left: 25px;
        position: relative;
        font-size: 16px;
        color: var(--brand-gray-dark);
    }
    
    .feature-info li:before {
        content: '✓';
        position: absolute;
        left: 0;
        color: var(--brand-primary);
        font-weight: bold;
    }
    
    .feature-visual {
        flex: 1.2;
        border-radius: 40px;
        height: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .feature-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 40px;
    }

    .growth-section { background: #111; color: var(--white); padding: 100px 0; text-align: center; }
    .growth-section h2 { font-family: 'Spectral', Georgia, serif; line-height: 1.2; letter-spacing: -0.01em; }
    .growth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
    .img-placeholder-dark { background: var(--brand-primary); border-radius: 24px; height: 450px; display: flex; align-items: center; justify-content: center; overflow: hidden !important; }
    .img-placeholder-dark img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Cover container proportionally, crop overflow */
        /* Use object-fit: contain to avoid cropping */
        display: block !important; /* Remove default inline image whitespace */
    }

    /* Button styles */
    .btn { padding: 18px 35px; border-radius: 10px; text-decoration: none; font-weight: bold; transition: 0.3s; font-size: 17px; display: inline-block; }
    .btn-primary { background: var(--brand-primary); color: white; }
    .btn-outline { border: 2px solid var(--brand-gray-dark); color: var(--brand-gray-dark); }
    .btn-outline:hover { background: var(--brand-gray-dark); color: #fff; }
    
    /* Video modal styles */
    #videoModal {
        transition: opacity 0.3s ease;
    }
    
    #videoModal.hidden {
        opacity: 0;
        pointer-events: none;
    }
    
    #videoModal:not(.hidden) {
        opacity: 1;
        pointer-events: auto;
    }
    
    #closeModal {
        z-index: 10;
        cursor: pointer;
    }
    
    /* Mobile responsive */
    @media (max-width: 768px) {
        #videoModal .max-w-4xl {
            max-width: 95%;
        }
    }

    /* Image visual enhancements */
    .feature-visual {
        background: #f8f8f8 !important; /* Image background color */
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important; /* Soft shadow */
        padding: 20px !important; /* Padding to separate image from shadow */
    }
    
    .feature-visual img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important; /* Show image completely without cropping */
        border-radius: 40px !important; /* Preserve border radius */
    }
