/* ==========================================================================
   GymBoard Marketing — Comparison Page Styles
   Loaded alongside style.css; uses the same CSS variables and design tokens.
   ========================================================================== */

/* --- Breadcrumb --- */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--text);
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: var(--text-dim);
}

/* --- Compare Hero --- */
.compare-hero {
    text-align: center;
    padding: 2rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.compare-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #f9fafb, #d4d4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.compare-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* --- Quick Verdict --- */
.quick-verdict {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.quick-verdict p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* --- Comparison Table --- */
.compare-table-wrapper {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.compare-table thead th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
}

/* Feature name column */
.compare-table td:first-child,
.compare-table th:first-child {
    font-weight: 600;
    color: var(--text);
}

/* GymBoard column highlight */
.compare-table td:nth-child(2),
.compare-table th:nth-child(2) {
    background: rgba(34, 197, 94, 0.05);
    border-left: 3px solid var(--green);
}

/* Competitor column */
.compare-table td:nth-child(3),
.compare-table th:nth-child(3) {
    color: var(--text-muted);
}

/* Status indicators */
.check::before {
    content: "\2713";
    color: var(--green);
    font-weight: 700;
    font-size: 1.1rem;
}

.cross::before {
    content: "\2717";
    color: var(--text-dim);
    font-weight: 700;
    font-size: 1.1rem;
}

.partial::before {
    content: "~";
    color: var(--yellow);
    font-weight: 700;
    font-size: 1.2rem;
}

/* --- Compare CTA --- */
.compare-cta {
    text-align: center;
    padding: 4rem 2rem;
    margin: 0 auto;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.05));
    border-radius: 16px;
    margin-bottom: 4rem;
}

.compare-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.compare-cta p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Differentiators --- */
.differentiators {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.differentiators h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.differentiators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.differentiator-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}

.differentiator-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.differentiator-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.differentiator-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.differentiator-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- Pricing Compare --- */
.pricing-compare {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.pricing-compare h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.pricing-highlight {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.pricing-highlight .scenario {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pricing-highlight .price-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 2rem;
    flex-wrap: wrap;
}

.pricing-highlight .price-item {
    text-align: center;
}

.pricing-highlight .price-item .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.pricing-highlight .price-item .amount {
    font-size: 2rem;
    font-weight: 800;
}

.pricing-highlight .price-item .amount.ours {
    color: var(--green);
}

.pricing-highlight .price-item .amount.theirs {
    color: var(--text-dim);
}

.pricing-highlight .price-item .period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* --- Pros & Cons --- */
.pros-cons {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pros-cons h2 {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pros-list,
.cons-list {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
}

.pros-list h3,
.cons-list h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pros-list ul,
.cons-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-list li,
.cons-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    line-height: 1.5;
}

.pros-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.cons-list li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: var(--text-dim);
    font-weight: 700;
}

/* --- Best For --- */
.best-for {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.best-for h2 {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.best-for-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
}

.best-for-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.best-for-item p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- Compare FAQ --- */
.compare-faq {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.compare-faq h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.compare-faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.compare-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.compare-faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.compare-faq-question::after {
    content: "\25BC";
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.compare-faq-item.open .compare-faq-question::after {
    transform: rotate(180deg);
}

.compare-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.compare-faq-item.open .compare-faq-answer {
    grid-template-rows: 1fr;
}

.compare-faq-answer-inner {
    overflow: hidden;
}

.compare-faq-answer-inner p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* --- Cross Links --- */
.cross-links {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.cross-links h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.cross-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cross-links li {
    display: flex;
    align-items: center;
}

.cross-links li:not(:last-child)::after {
    content: "\00B7";
    margin-left: 0.5rem;
    color: var(--text-dim);
    font-size: 1.25rem;
}

.cross-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.cross-links a:hover {
    color: var(--text);
}

/* ==========================================================================
   Responsive — 768px breakpoint
   ========================================================================== */

@media (max-width: 768px) {
    .breadcrumb {
        padding-top: 5rem;
    }

    .compare-hero {
        padding: 1.5rem 1rem 3rem;
    }

    .compare-hero h1 {
        font-size: 1.75rem;
    }

    .compare-hero p {
        font-size: 1rem;
    }

    .quick-verdict {
        margin: 0 1rem 3rem;
        padding: 1.25rem 1.5rem;
    }

    .compare-table-wrapper {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }

    .compare-cta {
        margin: 0 1rem 3rem;
        padding: 3rem 1.5rem;
    }

    .compare-cta h2 {
        font-size: 1.5rem;
    }

    .differentiators {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }

    .differentiators h2 {
        font-size: 1.5rem;
    }

    .differentiators-grid {
        grid-template-columns: 1fr;
    }

    .pricing-compare {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }

    .pricing-compare h2 {
        font-size: 1.5rem;
    }

    .pricing-highlight .price-row {
        flex-direction: column;
        gap: 1rem;
    }

    .pros-cons {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin-bottom: 3rem;
    }

    .pros-cons h2 {
        font-size: 1.5rem;
    }

    .best-for {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin-bottom: 3rem;
    }

    .best-for h2 {
        font-size: 1.5rem;
    }

    .compare-faq {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }

    .compare-faq h2 {
        font-size: 1.5rem;
    }

    .cross-links {
        padding: 2rem 1rem;
    }

    .cross-links ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cross-links li:not(:last-child)::after {
        display: none;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .differentiator-card,
    .compare-faq-question::after,
    .compare-faq-answer {
        transition-duration: 0.01ms !important;
    }
}
