/* ========================================================= */
/* COMPARE PAGE */
/* ========================================================= */

.compare-container{
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
}

.compare-container h1{
    font-size:42px;
    line-height:1.2;
    margin-bottom:20px;
    color:#111827;
}

.compare-intro{
    max-width:850px;
    margin:15px auto 40px;
    text-align:center;
    font-size:18px;
    line-height:1.7;
    color:#555;
}

/* ========================================================= */
/* COMPARE SEO INTRO */
/* ========================================================= */

.compare-seo-intro{
    margin-bottom:40px;
    padding:28px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:22px;
    box-shadow:0 6px 24px rgba(15,23,42,.05);
}

.compare-seo-intro h2{
    margin-top:0;
    margin-bottom:14px;
    font-size:28px;
    line-height:1.4;
    color:#111827;
}

.compare-seo-intro p{
    margin-bottom:14px;
    color:#555;
    line-height:1.8;
    font-size:16px;
}

/* ========================================================= */
/* COMPARE TABLE */
/* ========================================================= */

.compare-table{
    border:1px solid #e5e7eb;
    border-radius:24px;
    overflow:hidden;
    margin-bottom:50px;
    background:#ffffff;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.compare-row{
    display:grid;
    grid-template-columns:220px repeat(auto-fit,minmax(250px,1fr));
    border-bottom:1px solid #e5e7eb;
}

.compare-row:last-child{
    border-bottom:none;
}

.compare-row > div{
    padding:25px;
}

.compare-row.header{
    background:#f9fafb;
}

.compare-row.header > div{
    font-weight:800;
    color:#111827;
}

.compare-tool{
    text-align:center;
    position:relative;
}

.compare-logo{
    width:90px;
    height:90px;
    object-fit:contain;
    margin:auto;
    display:block;
    margin-bottom:15px;
}

.compare-title{
    font-size:22px;
    margin-bottom:15px;
    color:#111827;
}

.compare-visit-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#111827;
    color:#ffffff !important;
    min-height:44px;
    padding:0 20px;
    border-radius:12px;
    text-decoration:none !important;
    font-weight:700;
    margin-top:10px;
    transition:.2s ease;
}

.compare-visit-btn:hover{
    opacity:.9;
    transform:translateY(-2px);
}

.best-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#10b981;
    color:#ffffff;
    padding:6px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
    margin-bottom:15px;
}

.compare-list{
    list-style:none;
    margin:0;
    padding:0;
}

.compare-list li{
    margin-bottom:10px;
    line-height:1.6;
    color:#374151;
}

/* ========================================================= */
/* TOOL ANALYSIS / VERDICT */
/* ========================================================= */

.tool-analysis-section{
    margin-top:60px;
}

.tool-analysis-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:30px;
    margin-bottom:25px;
    box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.ai-verdict{
    margin-top:60px;
}

.verdict-box{
    background:#111827;
    color:#ffffff;
    padding:40px;
    border-radius:22px;
}

/* ========================================================= */
/* RELATED COMPARISONS */
/* ========================================================= */

.related-comparisons{
    margin-top:60px;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.related-compare-card{
    display:block;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:20px;
    text-decoration:none !important;
    color:#111827 !important;
    font-weight:700;
    transition:.2s ease;
    background:#ffffff;
    box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.related-compare-card:hover{
    transform:translateY(-3px);
    border-color:#2563eb;
    color:#2563eb !important;
}

/* ========================================================= */
/* FLOATING COMPARE BUTTON */
/* ========================================================= */

#go-compare{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:9999;
    height:56px;
    padding:0 20px;
    border:none;
    border-radius:999px;
    background:linear-gradient(135deg,#111111,#000000);
    color:#ffffff;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 14px 30px rgba(0,0,0,0.2);
}

#go-compare.active{
    background:linear-gradient(135deg,#16a34a,#22c55e);
}

/* ========================================================= */
/* COMPARE PREVIEW */
/* ========================================================= */

#compare-preview-bar{
    position:fixed;
    right:24px;
    bottom:92px;
    z-index:9999;
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:flex-end;
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:var(--transition);
}

#compare-preview-bar.active{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.compare-preview-items{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.compare-preview-item{
    display:flex;
    align-items:center;
    gap:10px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:999px;
    padding:6px 10px;
    min-height:42px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.compare-preview-item img{
    width:22px;
    height:22px;
    object-fit:cover;
    border-radius:50%;
}

.compare-preview-item span{
    max-width:90px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:11px;
    font-weight:800;
}

.remove-compare{
    width:18px;
    height:18px;
    border:none;
    border-radius:50%;
    background:#f3f4f6;
    color:#111827;
    cursor:pointer;
    font-size:10px;
    font-weight:800;
}

/* ========================================================= */
/* COMPARE SUGGESTIONS / TOOL COMPARISONS */
/* ========================================================= */

.compare-faq{
    margin-top:56px;
}

.compare-suggestions-section,
.tool-comparisons-section{
    max-width:1200px;
    margin:56px auto 0 !important;
    padding:0 !important;
}

.compare-suggestions-section .section-head,
.tool-comparisons-section .section-head{
    display:block !important;
    margin-bottom:24px !important;
}

.compare-suggestions-section .section-head h2,
.tool-comparisons-section .section-head h2{
    font-size:34px !important;
    line-height:1.2 !important;
    margin-bottom:8px !important;
    color:#111827 !important;
}

.compare-suggestions-section .section-head p,
.tool-comparisons-section .section-head p{
    color:#6b7280 !important;
    font-size:15px !important;
}

.tool-comparisons-grid,
.compare-suggestions-grid{
    display:grid !important;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr)) !important;
    gap:22px !important;
    align-items:stretch !important;
}

.compare-suggestion-card,
.tool-comparison-card{
    display:block !important;
    background:#ffffff !important;
    border:1px solid #e5e7eb !important;
    border-radius:18px !important;
    padding:20px !important;
    color:#111827 !important;
    text-decoration:none !important;
    box-shadow:0 8px 24px rgba(15,23,42,.05) !important;
    transition:.2s ease !important;
}

.compare-suggestion-card strong,
.tool-comparison-card strong{
    color:#111827 !important;
}

.tool-comparison-card span{
    display:block;
    color:#6b7280;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-bottom:8px;
}

.compare-suggestion-card:hover,
.tool-comparison-card:hover{
    transform:translateY(-3px) !important;
    border-color:#2563eb !important;
    color:#2563eb !important;
}

/* ========================================================= */
/* MINI COMPARE LINKS */
/* ========================================================= */

.mini-compare-links{
    margin-top:16px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.mini-compare-links a{
    display:block;
    padding:12px 14px;
    border-radius:14px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    text-decoration:none !important;
    color:#111827;
    font-size:13px;
    font-weight:800;
    transition:.2s ease;
}

.mini-compare-links a:hover{
    background:#000000;
    color:#ffffff;
    transform:translateY(-2px);
}

/* ========================================================= */
/* STICKY MOBILE CTA */
/* ========================================================= */

.sticky-mobile-cta{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    background:#111827;
    padding:15px;
    z-index:9999;
    display:none;
}

.sticky-mobile-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.sticky-mobile-text{
    color:#ffffff;
}

.sticky-mobile-btn{
    background:#ffffff;
    color:#111827;
    padding:10px 18px;
    border-radius:10px;
    text-decoration:none !important;
    font-weight:800;
}

/* ========================================================= */
/* RESPONSIVE */
/* ========================================================= */

@media(max-width:768px){

    .compare-container{
        padding:28px 14px 80px;
    }

    .compare-container h1{
        font-size:32px;
    }

    .compare-row{
        grid-template-columns:1fr;
    }

    .compare-tool{
        min-height:auto;
    }

    .best-badge{
        position:static;
        margin-bottom:10px;
    }

    .tool-comparisons-grid,
    .compare-suggestions-grid,
    .related-grid{
        grid-template-columns:1fr !important;
    }

    .compare-suggestions-section .section-head h2,
    .tool-comparisons-section .section-head h2{
        font-size:28px !important;
    }

    #go-compare{
        right:14px;
        bottom:14px;
    }

    #compare-preview-bar{
        right:14px;
        bottom:78px;
    }

    .sticky-mobile-cta{
        display:block;
    }
}
/* ========================================================= */
/* COMPARE REDESIGN SECTIONS */
/* ========================================================= */

.ai-breadcrumbs{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:24px;
    color:#6b7280;
    font-size:14px;
    font-weight:700;
}

.ai-breadcrumbs a{
    color:#2563eb;
    text-decoration:none !important;
}

.compare-hero{
    position:relative;
    overflow:hidden;
    border-radius:32px;
    padding:56px 44px;
    margin-bottom:34px;
    color:#ffffff;
    background:
        radial-gradient(circle at 82% 20%,rgba(37,99,235,.45),transparent 34%),
        radial-gradient(circle at 10% 90%,rgba(168,85,247,.24),transparent 38%),
        linear-gradient(135deg,#07111f,#111827);
    box-shadow:0 24px 70px rgba(15,23,42,.16);
}

.compare-hero h1{
    max-width:900px;
    margin:18px 0 18px;
    color:#ffffff;
    font-size:58px;
    line-height:1.04;
    letter-spacing:-.04em;
    font-weight:950;
}

.compare-hero .compare-intro{
    max-width:760px;
    margin:0 0 28px;
    text-align:left;
    color:#cbd5e1;
    font-size:18px;
}

.compare-meta-row{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.compare-updated,
.compare-reviewed{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:34px;
    padding:0 13px;
    border-radius:999px;
    background:rgba(255,255,255,.09);
    border:1px solid rgba(255,255,255,.14);
    color:#dbeafe;
    font-size:13px;
}

.compare-toc{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:26px;
}

.compare-toc a{
    display:inline-flex;
    align-items:center;
    min-height:38px;
    padding:0 14px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.15);
    color:#ffffff !important;
    text-decoration:none !important;
    font-size:13px;
    font-weight:800;
}

.compare-toc a:hover{
    background:#2563eb;
    border-color:#2563eb;
}

/* Summary cards */

.compare-summary-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    margin:0 0 42px;
}

.summary-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:22px;
    padding:24px;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.summary-card span{
    display:block;
    color:#6b7280;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-bottom:10px;
}

.summary-card strong{
    display:block;
    color:#111827;
    font-size:18px;
    line-height:1.35;
}

/* Highlights */

.compare-highlights{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
    margin:0 0 48px;
}

.highlight-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:30px;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.highlight-card h2{
    margin:0 0 18px;
    color:#111827;
    font-size:28px;
    line-height:1.25;
}

.highlight-card p{
    color:#4b5563;
    font-size:16px;
    line-height:1.8;
}

/* Choose section */

.choose-tool-section{
    margin:56px 0;
}

.choose-tool-section h2,
.compare-seo-content h2,
.compare-methodology h2,
.related-comparisons h2,
.related-alternatives h2,
.compare-next-action h2,
.ai-verdict h2,
.compare-faq h2{
    margin:0 0 22px;
    color:#111827;
    font-size:34px;
    line-height:1.2;
}

.choose-tool-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}

.choose-tool-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:28px;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.choose-tool-card h3{
    margin:0 0 12px;
    color:#111827;
    font-size:22px;
}

.choose-tool-card p{
    color:#4b5563;
    line-height:1.8;
}

/* SEO content */

.compare-seo-content,
.compare-methodology,
.related-alternatives,
.compare-next-action{
    margin:56px 0 0;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:34px;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.compare-seo-content p,
.compare-methodology p,
.compare-next-action p{
    color:#4b5563;
    line-height:1.8;
    font-size:16px;
}

.methodology-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin-top:24px;
}

.methodology-card{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:22px;
}

.methodology-card h3{
    margin:0 0 10px;
    color:#111827;
    font-size:20px;
}

.methodology-card p{
    margin:0;
    font-size:14px;
}

/* Verdict improvement */

.verdict-box h3{
    margin:0 0 14px;
    color:#ffffff;
    font-size:28px;
}

.verdict-box p{
    color:#d1d5db;
    line-height:1.8;
    font-size:16px;
}

/* Related and next */

.related-alternatives .related-grid{
    margin-top:10px;
}

.compare-next-action{
    text-align:center;
}

.compare-next-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    padding:0 22px;
    border-radius:14px;
    background:#000000;
    color:#ffffff !important;
    text-decoration:none !important;
    font-weight:900;
    margin-top:18px;
}

.compare-next-btn:hover{
    background:#111827;
    transform:translateY(-2px);
}

/* New mobile CTA */

.mobile-compare-cta{
    display:none;
    position:fixed;
    left:14px;
    right:14px;
    bottom:14px;
    z-index:9998;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    background:#111827;
    color:#ffffff;
    border:1px solid rgba(255,255,255,.12);
    border-radius:20px;
    padding:14px 16px;
    box-shadow:0 20px 50px rgba(15,23,42,.25);
}

.mobile-compare-text span{
    display:block;
    color:#9ca3af;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    margin-bottom:3px;
}

.mobile-compare-text strong{
    display:block;
    color:#ffffff;
    font-size:15px;
}

.mobile-compare-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:0 14px;
    border-radius:12px;
    background:#ffffff;
    color:#111827 !important;
    text-decoration:none !important;
    font-weight:900;
    white-space:nowrap;
}

.back-to-top{
    position:fixed;
    right:18px;
    bottom:90px;
    width:44px;
    height:44px;
    border:none;
    border-radius:50%;
    background:#2563eb;
    color:#ffffff;
    font-size:20px;
    font-weight:900;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transform:translateY(8px);
    transition:.2s ease;
    z-index:9998;
    box-shadow:0 12px 30px rgba(37,99,235,.3);
}

.back-to-top.active{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

/* Compatibility with old sticky class */

.sticky-mobile-cta{
    display:none !important;
}

/* ========================================================= */
/* COMPARE REDESIGN RESPONSIVE */
/* ========================================================= */

@media(max-width:1000px){

    .compare-summary-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .methodology-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){

    .compare-hero{
        padding:42px 22px;
        border-radius:24px;
    }

    .compare-hero h1{
        font-size:36px;
    }

    .compare-hero .compare-intro{
        font-size:16px;
    }

    .compare-summary-grid,
    .compare-highlights,
    .choose-tool-grid{
        grid-template-columns:1fr;
    }

    .highlight-card,
    .choose-tool-card,
    .compare-seo-content,
    .compare-methodology,
    .related-alternatives,
    .compare-next-action{
        padding:24px;
        border-radius:22px;
    }

    .choose-tool-section h2,
    .compare-seo-content h2,
    .compare-methodology h2,
    .related-comparisons h2,
    .related-alternatives h2,
    .compare-next-action h2,
    .ai-verdict h2,
    .compare-faq h2{
        font-size:28px;
    }

    .mobile-compare-cta{
        display:flex;
    }

    body{
        padding-bottom:86px;
    }
}