/* =============================================
   Competitor Comparison Pages (/vs/*)
   Shared CSS for all comparison landing pages
   ============================================= */

/* Hero */
.vs-hero {
    padding: calc(var(--il-nav-total-height) + 3rem) 2.5rem 3rem;
    background: linear-gradient(160deg, #f0f4fb 0%, #e5ecf6 100%);
    text-align: center;
}

.vs-hero__inner {
    max-width: 48rem;
    margin: 0 auto;
}

.vs-hero__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-blue);
    background: rgba(21, 71, 188, 0.08);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.vs-hero__headline {
    font-size: 2.25rem;
    font-weight: 700;
    color: #121F31;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.vs-hero__sub {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.vs-hero__ctas {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.vs-hero__proof {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.vs-proof-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #475569;
    font-weight: 500;
}

.vs-proof-item img {
    border-radius: 4px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Core Difference */
.vs-difference {
    padding: 4rem 2.5rem;
    background: #fff;
}

.vs-difference__inner {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.vs-difference__inner h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #121F31;
    margin-bottom: 0.75rem;
}

.vs-difference__sub {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    max-width: 38rem;
    margin: 0 auto 2.5rem;
}

.vs-difference__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
}

.vs-diff-card {
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.vs-diff-card--them {
    background: #fafafa;
}

.vs-diff-card--us {
    background: #f0f4fb;
    border-color: rgba(21, 71, 188, 0.2);
}

.vs-diff-card__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.vs-diff-card--them .vs-diff-card__label { color: #94a3b8; }
.vs-diff-card--us .vs-diff-card__label { color: var(--primary-blue); }

.vs-diff-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #121F31;
    margin-bottom: 0.5rem;
}

.vs-diff-card > p {
    font-size: 0.9375rem;
    color: #475569;
    font-style: italic;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.vs-diff-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.vs-diff-card ul li {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
}

.vs-diff-card--them ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #94a3b8;
}

.vs-diff-card--us ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 700;
}

/* Comparison Table */
.vs-table-section {
    padding: 4rem 2.5rem;
    background: #f8fafc;
}

.vs-table-section__inner {
    max-width: 52rem;
    margin: 0 auto;
}

.vs-table-section__inner h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #121F31;
    text-align: center;
    margin-bottom: 2rem;
}

.vs-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.vs-table thead {
    background: var(--dark-blue);
}

.vs-table thead th {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-align: left;
}

.vs-table thead th:nth-child(2) {
    color: var(--primary-yellow);
}

.vs-table tbody td {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    line-height: 1.5;
}

.vs-table tbody tr:last-child td {
    border-bottom: none;
}

.vs-table__detail {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.vs-table__check {
    color: #16a34a;
    font-weight: 600;
}

.vs-table__x {
    color: #94a3b8;
}

.vs-table-note {
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
    margin-top: 1.25rem;
    font-style: italic;
}

/* Three Pillars */
.vs-pillars {
    padding: 4rem 2.5rem;
    background: #fff;
}

.vs-pillars__inner {
    max-width: 64rem;
    margin: 0 auto;
}

.vs-pillars__inner h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #121F31;
    text-align: center;
    margin-bottom: 2.5rem;
}

.vs-pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.vs-pillar {
    padding: 0;
}

.vs-pillar__number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.vs-pillar h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #121F31;
    margin-bottom: 0.625rem;
}

.vs-pillar p {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}

/* Testimonial */
.vs-testimonial {
    padding: 3rem 2.5rem;
    background: #f8fafc;
}

.vs-testimonial__inner {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
    border-left: none;
    padding-left: 0;
}

.vs-testimonial__inner blockquote {
    font-size: 1.125rem;
    font-style: italic;
    color: #334155;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.vs-testimonial__author strong {
    display: block;
    font-size: 0.875rem;
    color: #121F31;
}

.vs-testimonial__author span {
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* Switching */
.vs-switching {
    padding: 4rem 2.5rem;
    background: #fff;
}

.vs-switching__inner {
    max-width: 52rem;
    margin: 0 auto;
    text-align: center;
}

.vs-switching__inner h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #121F31;
    margin-bottom: 0.5rem;
}

.vs-switching__sub {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 2rem;
}

.vs-switching__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    text-align: left;
}

.vs-switching__item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 1.25rem 1.5rem;
}

.vs-switching__item strong {
    display: block;
    font-size: 0.9375rem;
    color: #121F31;
    margin-bottom: 0.375rem;
}

.vs-switching__item p {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* CTA */
.vs-cta {
    padding: 4rem 2.5rem;
    background: linear-gradient(160deg, var(--dark-blue) 0%, var(--middle-blue) 100%);
}

.vs-cta__inner {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.vs-cta__inner h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.vs-cta__inner > p {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.vs-cta__buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.vs-cta__buttons .btn.blue.invert {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.vs-cta__buttons .btn.blue.invert:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.vs-cta__small {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}

/* FAQ */
.vs-faq {
    padding: 4rem 2.5rem;
    background: #fff;
}

.vs-faq .content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #121F31;
    text-align: center;
    margin-bottom: 2rem;
}

.vs-faq__accordion {
    max-width: 40rem;
    margin: 0 auto;
}

.vs-faq__item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.vs-faq__item summary {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #121F31;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vs-faq__item summary::-webkit-details-marker { display: none; }

.vs-faq__item summary::after {
    content: "+";
    font-size: 1.25rem;
    color: #94a3b8;
    font-weight: 400;
    transition: transform 0.2s;
}

.vs-faq__item[open] summary::after {
    content: "−";
}

.vs-faq__item p {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    padding-top: 0.75rem;
    margin: 0;
}

/* Sticky CTA Bar */
.vs-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    padding: 0.75rem 2rem;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.vs-sticky-bar.visible { transform: translateY(0); }

.vs-sticky-bar__text {
    font-size: 0.8125rem;
    color: #475569;
    font-weight: 500;
}

.vs-sticky-bar__text strong { color: #121F31; }

.vs-sticky-bar__btn {
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.vs-sticky-bar__btn:hover {
    background: #0f3a9e;
    color: #fff;
}

.vs-sticky-bar__secondary {
    font-size: 0.75rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.vs-sticky-bar__secondary:hover { text-decoration: underline; }

/* Exit Intent Popup */
.vs-exit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vs-exit-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.vs-exit-popup {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.vs-exit-overlay.visible .vs-exit-popup {
    transform: translateY(0) scale(1);
}

.vs-exit-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.vs-exit-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.vs-exit-popup h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #121F31;
    margin-bottom: 0.5rem;
}

.vs-exit-popup p {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.vs-exit-cta {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--dark-text);
    padding: 0.75rem 1.75rem;
    border-radius: 5px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.vs-exit-cta:hover {
    background: #ffad24;
    box-shadow: 6px 6px 10px 3px #0000001c;
}

.vs-exit-secondary {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--primary-blue);
    text-decoration: none;
}

.vs-exit-secondary:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .vs-hero { padding: 3rem 1.5rem 2.5rem; }
    .vs-hero__headline { font-size: 1.75rem; }
    .vs-hero__ctas { flex-direction: column; align-items: center; }
    .vs-hero__proof { flex-direction: column; align-items: center; }

    .vs-difference { padding: 3rem 1.5rem; }
    .vs-difference__grid { grid-template-columns: 1fr; }

    .vs-table-section { padding: 3rem 1.5rem; }

    .vs-pillars { padding: 3rem 1.5rem; }
    .vs-pillars__grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .vs-switching { padding: 3rem 1.5rem; }
    .vs-switching__grid { grid-template-columns: 1fr; }

    .vs-cta { padding: 3rem 1.5rem; }
    .vs-cta__buttons { flex-direction: column; align-items: center; }

    .vs-faq { padding: 3rem 1.5rem; }

    .vs-sticky-bar__text { display: none; }
    .vs-sticky-bar { justify-content: center; gap: 0.75rem; padding: 0.75rem 1rem; }
    .vs-sticky-bar__secondary { display: none; }
}
