/* ==========================================================================
   DashboardFox Compare Page Styles
   Page-specific styles for compare and vs-* pages
   
   WCAG note: Minimum text size is 14px for secondary/label content.
   All primary readable content is 15px+.
   ========================================================================== */

/* ==========================================================================
   COMPARE HUB PAGE — Value Comparison
   "What's included vs what others charge" two-column layout
   ========================================================================== */

.value-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 48px;
}

.value-col {
    padding: 32px;
}

.value-col-included {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.04) 0%, rgba(22, 163, 74, 0.02) 100%);
    border-right: 1px solid var(--color-border);
}

.value-col-others {
    background: var(--color-surface);
}

.value-col-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.value-col-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.value-col-price {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-success);
    background: var(--color-success-soft);
    padding: 4px 12px;
    border-radius: 100px;
}

.value-col-label {
    font-size: 15px;
    color: var(--color-text-muted);
}

.value-col ul {
    list-style: none;
    display: grid;
    gap: 20px;
}

.value-col li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.value-col li > svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-col-included li > svg {
    color: var(--color-success);
}

.value-col-others li > svg {
    color: var(--color-warning);
    opacity: 0.7;
}

.value-col li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.value-col li strong {
    font-weight: 600;
    color: var(--color-text);
}

.value-col li span {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   COMPARE HUB PAGE — Pricing at Scale (table)
   ========================================================================== */

.pricing-at-scale {
    margin-bottom: 16px;
}

.pricing-at-scale > h3 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--color-text);
}

.pricing-at-scale-note {
    font-size: 15px;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 24px;
}

.pricing-at-scale-cta {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 16px;
}

/* ==========================================================================
   COMPARE HUB PAGE — Comparison Directory
   ========================================================================== */

.compare-directory {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.more-comparisons {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.more-comparisons h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

/* ==========================================================================
   Shared — Comparison Cards (featured)
   ========================================================================== */

.compare-card { 
    background: var(--color-surface); 
    border: 1px solid var(--color-border); 
    border-radius: var(--radius-xl); 
    padding: 28px; 
    transition: all 0.3s; 
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column; 
}
.compare-card:hover { 
    border-color: var(--color-primary); 
    box-shadow: var(--shadow-lg); 
    transform: translateY(-3px); 
}
@media (prefers-reduced-motion: reduce) {
    .compare-card:hover { transform: none; }
}
.compare-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.compare-card.featured { border: 2px solid var(--color-primary); }

.compare-card-header { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    margin-bottom: 14px; 
}
.compare-card-logo { 
    width: 56px; 
    height: 56px; 
    background: var(--color-bg-muted); 
    border-radius: var(--radius-md); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--color-text-muted); 
    overflow: hidden;
    flex-shrink: 0;
}
.compare-card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.compare-card-title { flex-grow: 1; }
.compare-card-title h3 { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.compare-card-title span { font-size: 14px; color: var(--color-text-muted); }
.compare-card-arrow { 
    width: 36px; 
    height: 36px; 
    background: var(--color-primary-soft); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--color-primary); 
    transition: all 0.2s; 
    flex-shrink: 0; 
}
.compare-card:hover .compare-card-arrow { background: var(--color-primary); color: white; }
.compare-card-arrow svg { width: 18px; height: 18px; }

.compare-card-pain { 
    font-size: 15px; 
    color: var(--color-text-secondary); 
    line-height: 1.6; 
    margin-bottom: 16px; 
    flex-grow: 1; 
}

.compare-card-points { list-style: none; margin: 0; }
.compare-card-points li { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 15px; 
    color: var(--color-text-secondary); 
    padding: 4px 0; 
}
.compare-card-points li svg { width: 16px; height: 16px; color: var(--color-success); flex-shrink: 0; }

/* ==========================================================================
   Shared — Other Comparison Cards (smaller grid)
   ========================================================================== */

.other-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.other-card { 
    background: var(--color-surface); 
    border: 1px solid var(--color-border); 
    border-radius: var(--radius-lg); 
    padding: 20px; 
    text-decoration: none; 
    color: inherit; 
    transition: all 0.2s; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}
.other-card:hover { border-color: var(--color-primary); background: var(--color-primary-soft); }
.other-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.other-card-logo { 
    width: 40px; 
    height: 40px; 
    background: var(--color-bg-muted); 
    border-radius: var(--radius-sm); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--color-text-muted); 
    flex-shrink: 0; 
}
.other-card-text h4 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.other-card-text span { font-size: 14px; color: var(--color-text-muted); }

/* ==========================================================================
   Shared — FAQ Section
   ========================================================================== */

.faq-section { 
    background: var(--color-bg-subtle); 
    padding: 80px 24px; 
}
.faq-section .section-header { 
    text-align: center; 
    margin-bottom: 48px; 
}
.faq-section .section-header h2 { 
    font-size: 32px; 
    font-weight: 700; 
    margin-bottom: 12px; 
}
.faq-section .section-header p { 
    font-size: 18px; 
    color: var(--color-text-secondary); 
}

/* ==========================================================================
   Shared — Disclaimers & Inline CTAs
   ========================================================================== */

.table-disclaimer {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg-subtle, #f9fafb);
    border-radius: 0.5rem;
    line-height: 1.6;
}
.table-disclaimer a {
    color: var(--color-text-muted);
    text-decoration: underline;
}

.calculator-cta-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--color-primary-soft);
    border: 1px solid rgba(55, 152, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 16px;
}
.calculator-cta-inline svg { width: 24px; height: 24px; color: var(--color-primary); flex-shrink: 0; }
.calculator-cta-inline span { font-size: 16px; font-weight: 600; color: var(--color-text); }
.calculator-cta-inline .btn { flex-shrink: 0; }

/* Scenario note (annual savings callout) */
.scenario-note {
    font-size: 15px;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(55, 152, 255, 0.06);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 0.5rem 0.5rem 0;
    line-height: 1.6;
}

/* Strikethrough pricing */
s { color: var(--color-text-muted); font-weight: 400; margin-right: 4px; }

/* ==========================================================================
   VS COMPARISON PAGES
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb { 
    max-width: var(--max-width); 
    margin: 0 auto 16px;
    padding: 0;
    text-align: left;
}
.breadcrumb a { 
    color: var(--color-primary); 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 500; 
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb a:focus-visible { 
    outline: 2px solid var(--color-primary); 
    outline-offset: 2px; 
    border-radius: var(--radius-sm); 
}
.breadcrumb span { color: var(--color-text-muted); font-size: 14px; margin: 0 8px; }
.breadcrumb .current { color: var(--color-text-muted); font-size: 14px; margin: 0; }

/* --------------------------------------------------------------------------
   VS Badge (logo vs logo)
   -------------------------------------------------------------------------- */
.vs-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 20px; 
    margin-bottom: 28px; 
}
.vs-badge .logo { 
    width: 80px; 
    height: 80px; 
    background: var(--color-bg-muted); 
    border-radius: var(--radius-lg); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    font-size: 16px; 
    color: var(--color-text-muted); 
    border: 1px solid var(--color-border); 
    overflow: hidden;
}
.vs-badge .logo img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    padding: 12px; 
}
.vs-badge .logo.highlight { 
    background: var(--color-primary-soft); 
    border-color: var(--color-primary); 
    color: var(--color-primary); 
}
.vs-badge .vs { font-size: 20px; font-weight: 700; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   TL;DR Box
   -------------------------------------------------------------------------- */
.tldr-box { 
    background: linear-gradient(135deg, var(--color-primary-soft) 0%, rgba(55,152,255,0.04) 100%); 
    border: 1px solid rgba(55,152,255,0.2); 
    border-radius: var(--radius-xl); 
    padding: 32px; 
    margin-bottom: 32px; 
}
.tldr-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.tldr-header svg { width: 24px; height: 24px; color: var(--color-primary); }
.tldr-header h2 { font-size: 18px; font-weight: 700; }
.tldr-box ul { list-style: none; display: grid; gap: 12px; }
.tldr-box li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.6; }
.tldr-box li svg { width: 20px; height: 20px; color: var(--color-success); flex-shrink: 0; margin-top: 3px; }
.tldr-box li strong { color: var(--color-text); }

/* --------------------------------------------------------------------------
   Pricing Comparison (side by side)
   -------------------------------------------------------------------------- */
.pricing-comparison { 
    background: var(--color-bg-subtle); 
    border: 1px solid var(--color-border); 
    border-radius: var(--radius-xl); 
    padding: 32px; 
    margin: 0 0 32px; 
}
.pricing-comparison > h3 { 
    font-size: 18px; 
    font-weight: 700; 
    margin-bottom: 8px; 
    text-align: center; 
    margin-top: 0; 
}
.pricing-comparison > p { 
    font-size: 15px; 
    color: var(--color-text-muted); 
    text-align: center; 
    margin-bottom: 24px; 
}
.pricing-vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pricing-col { 
    background: var(--color-surface); 
    border: 1px solid var(--color-border); 
    border-radius: var(--radius-lg); 
    padding: 28px; 
}
.pricing-col.highlight { border: 2px solid var(--color-primary); position: relative; }
.pricing-col.highlight::before { 
    content: 'Recommended'; 
    position: absolute; 
    top: -12px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--color-primary); 
    color: white; 
    font-size: 13px; 
    font-weight: 700; 
    padding: 4px 14px; 
    border-radius: 100px; 
    letter-spacing: 0.02em;
}
.pricing-col-header { 
    text-align: center; 
    padding-bottom: 20px; 
    border-bottom: 1px solid var(--color-border-subtle); 
    margin-bottom: 20px; 
}

/* Brand identifier — logo + product name */
.pricing-col-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}
.pricing-col-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.pricing-col-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.pricing-col-header h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--color-text-secondary); }
.pricing-col-header .price { font-size: 40px; font-weight: 800; color: var(--color-text); letter-spacing: -0.02em; }
.pricing-col-header .price-note { font-size: 15px; color: var(--color-text-muted); display: block; margin-top: 4px; }
.pricing-col ul { list-style: none; }
.pricing-col li { 
    font-size: 15px; 
    color: var(--color-text-secondary); 
    padding: 10px 0; 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    border-bottom: 1px solid var(--color-border-subtle); 
    line-height: 1.5;
}
.pricing-col li:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   Feature Comparison Table (VS pages)
   -------------------------------------------------------------------------- */
.feature-table-wrapper { 
    overflow-x: auto; 
    border: 1px solid var(--color-border); 
    border-radius: var(--radius-lg); 
    margin: 0; 
    background: var(--color-surface); 
}
.feature-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.feature-table th, 
.feature-table td { 
    padding: 14px 20px; 
    text-align: left; 
    border-bottom: 1px solid var(--color-border-subtle); 
    font-size: 15px; 
}
.feature-table thead th { 
    font-weight: 600; 
    color: var(--color-text); 
    background: var(--color-bg-muted); 
    border-bottom: 1px solid var(--color-border); 
}
.feature-table th:not(:first-child), 
.feature-table td:not(:first-child) { text-align: center; }
.feature-table td { color: var(--color-text-secondary); }
.feature-table td:first-child { color: var(--color-text); }
.feature-table th.highlight-col { background: var(--color-primary); color: white; }
.feature-table td.highlight-col { background: rgba(55, 152, 255, 0.04); }
.feature-table tbody tr:hover { background: var(--color-bg-subtle); }
.feature-table tbody tr:hover td.highlight-col { background: rgba(55, 152, 255, 0.08); }
.feature-table tbody tr:last-child td { border-bottom: none; }
.feature-table .check { color: var(--color-success); }
.feature-table .x { color: var(--color-text-muted); }
.feature-table .category-row td { 
    background: var(--color-bg-subtle); 
    font-weight: 600; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 0.03em; 
    color: var(--color-text-muted); 
    padding: 12px 20px; 
    border-top: 1px solid var(--color-border); 
    border-bottom: 1px solid var(--color-border); 
}
.feature-table tbody tr:first-child.category-row td { border-top: none; }

/* --------------------------------------------------------------------------
   When to Choose (side by side cards)
   -------------------------------------------------------------------------- */
.when-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
.when-card { 
    border: 1px solid var(--color-border); 
    border-radius: var(--radius-lg); 
    padding: 28px; 
    background: var(--color-surface); 
}
.when-card.highlight { 
    border: 1px solid rgba(22, 163, 74, 0.3); 
    background: rgba(22, 163, 74, 0.03);
    border-top: 4px solid var(--color-success);
}
.when-card h4 { 
    font-size: 17px; 
    font-weight: 700; 
    margin-bottom: 16px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.when-card h4 svg { width: 20px; height: 20px; }
.when-card.highlight h4 { color: var(--color-success); }
.when-card.highlight h4 svg { color: var(--color-success); }
.when-card ul { list-style: none; }
.when-card li { 
    font-size: 15px; 
    color: var(--color-text-secondary); 
    padding: 7px 0; 
    padding-left: 20px; 
    position: relative; 
    line-height: 1.55; 
    border-bottom: 1px solid var(--color-border-subtle);
}
.when-card li:last-child { border-bottom: none; }
.when-card li::before { 
    content: '→'; 
    position: absolute; 
    left: 0; 
    color: var(--color-text-muted); 
    font-weight: 600; 
}
.when-card.highlight li::before { color: var(--color-success); }

/* --------------------------------------------------------------------------
   Bottom Line — Dark gradient section (matches final-cta visual weight)
   -------------------------------------------------------------------------- */
.bottom-line-section {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2440 100%);
    padding: 80px 24px;
}

.bottom-line-section .section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.bottom-line {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.bottom-line-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.bottom-line-icon svg {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.9);
}

.bottom-line h2 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
}

.bottom-line p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: left;
}
.bottom-line p:last-of-type { margin-bottom: 0; }
.bottom-line p strong { color: white; }

.bottom-line-cta {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.bottom-line-cta .btn-primary {
    background: white;
    color: #1a3a5c;
    font-size: 17px;
    padding: 16px 32px;
}
.bottom-line-cta .btn-primary:hover {
    background: var(--color-bg-muted);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.bottom-line-note {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Callout Box (used on some VS pages)
   -------------------------------------------------------------------------- */
.callout { 
    background: var(--color-success-soft); 
    border: 1px solid rgba(22,163,74,0.2); 
    border-radius: var(--radius-lg); 
    padding: 24px; 
    margin: 32px 0; 
    display: flex; 
    align-items: flex-start; 
    gap: 16px; 
}
.callout-icon { 
    width: 44px; 
    height: 44px; 
    background: var(--color-success); 
    border-radius: var(--radius-md); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    flex-shrink: 0; 
}
.callout-icon svg { width: 22px; height: 22px; }
.callout-content h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.callout-content p { font-size: 15px; color: var(--color-text-secondary); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Other Comparisons Links (VS pages)
   -------------------------------------------------------------------------- */
.other-comparisons { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--color-border); }
.other-comparisons h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--color-text-muted); }
.other-links { display: flex; flex-wrap: wrap; gap: 12px; }
.other-links a { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 10px 16px; 
    background: var(--color-bg-muted); 
    border: 1px solid var(--color-border); 
    border-radius: var(--radius-md); 
    font-size: 14px; 
    font-weight: 600; 
    color: var(--color-text); 
    text-decoration: none; 
    transition: all 0.2s; 
}
.other-links a:hover { 
    border-color: var(--color-primary); 
    background: var(--color-primary-soft); 
    color: var(--color-primary); 
}
.other-links a:focus-visible { 
    outline: 2px solid var(--color-primary); 
    outline-offset: 2px; 
}
.other-links a svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   VS Section (content blocks on VS pages)
   -------------------------------------------------------------------------- */
.vs-section { margin-bottom: 48px; }
.vs-section h2 { 
    font-size: 26px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}
.vs-section h2 svg { width: 28px; height: 28px; color: var(--color-primary); }
.vs-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; margin-top: 28px; }
.vs-section p { font-size: 17px; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 16px; }
.vs-section p strong { color: var(--color-text); }

/* --------------------------------------------------------------------------
   Pain Grid (VS pages — "What X users tell us")
   Kept for other VS pages that may still use it
   -------------------------------------------------------------------------- */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.pain-item {
    padding: 1.5rem;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 0.75rem;
}
.pain-icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}
.pain-icon svg { width: 100%; height: 100%; }
.pain-item h4 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; line-height: 1.3; }
.pain-item p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.6; margin: 0; }

/* Mid-page CTA (override for compare pages if needed) */
.mid-cta {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 48px 0;
}
.mid-cta-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.mid-cta-content p { font-size: 16px; color: var(--color-text-secondary); margin: 0; }

/* Diff CTA — used in sections that don't use the dark bottom-line */
.diff-cta { 
    text-align: center; 
    margin-top: 48px; 
    padding-top: 48px; 
    border-top: 1px solid var(--color-border); 
}
.diff-cta-note { 
    display: block; 
    margin-top: 12px; 
    font-size: 14px; 
    color: var(--color-text-muted); 
}

/* --------------------------------------------------------------------------
   Credibility line (matches all other pages)
   -------------------------------------------------------------------------- */
.page-header .credibility {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Why Teams Switch — Step Flow (matches other pages' step patterns)
   -------------------------------------------------------------------------- */
.switch-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.switch-step {
    flex: 0 1 280px;
    text-align: center;
    padding: 28px 20px;
    position: relative;
}
.switch-step-num {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    margin: 0 auto 16px;
}
.switch-step-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.switch-step-icon svg { width: 28px; height: 28px; }
.switch-icon-red { background: rgba(214, 53, 32, 0.08); color: #d63520; }
.switch-icon-amber { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.switch-icon-green { background: var(--color-success-soft); color: var(--color-success); }
.switch-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.switch-step p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.switch-step-arrow {
    display: flex;
    align-items: center;
    padding-top: 72px;
    color: var(--color-border);
}
.switch-step-arrow svg { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   Final CTA (matches self-hosted and other pages)
   -------------------------------------------------------------------------- */
.cmp-final-cta {
    background: linear-gradient(135deg, #1e4a8a 0%, #152d4a 100%);
    color: white;
    padding: 80px 24px;
    text-align: center;
}
.cmp-final-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}
.cmp-final-cta h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
}
.cmp-final-cta-content > p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}
.cmp-final-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.cmp-final-cta .btn-primary {
    background: white;
    color: #1e4a8a;
}
.cmp-final-cta .btn-primary:hover {
    background: var(--color-bg-muted);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cmp-final-cta .btn-ghost {
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
.cmp-final-cta .btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}
.cmp-final-cta-values {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.cmp-final-cta-value {
    font-size: 14px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cmp-final-cta-value svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .compare-directory { grid-template-columns: 1fr; }
    .other-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Hub page */
    .value-comparison { grid-template-columns: 1fr; }
    .value-col-included { border-right: none; border-bottom: 1px solid var(--color-border); }
    .other-grid { grid-template-columns: 1fr; }
    
    /* Switch flow */
    .switch-flow { flex-direction: column; align-items: center; }
    .switch-step { flex: none; width: 100%; max-width: 400px; }
    .switch-step-arrow { padding-top: 0; transform: rotate(90deg); padding: 4px 0; }
    
    /* Final CTA */
    .cmp-final-cta { padding: 60px 24px; }
    .cmp-final-cta-buttons { flex-direction: column; }
    .cmp-final-cta-values { flex-direction: column; gap: 12px; align-items: center; }
    
    /* VS pages */
    .page-header-cta { flex-direction: column; }
    .pricing-vs-grid { grid-template-columns: 1fr; }
    .when-grid { grid-template-columns: 1fr; }
    .vs-badge .logo { width: 60px; height: 60px; font-size: 14px; }
    .callout { flex-direction: column; }
    .other-links { flex-direction: column; }
    .other-links a { justify-content: center; }
    .calculator-cta-inline { flex-direction: column; text-align: center; gap: 12px; }
    .pain-grid { grid-template-columns: 1fr; }
    .mid-cta { flex-direction: column; text-align: center; }
    
    /* Bottom line */
    .bottom-line-section { padding: 60px 24px; }
}

@media (max-width: 480px) {
    .value-col { padding: 24px 20px; }
    .pricing-col { padding: 20px; }
}

.pricing-vs-grid-three {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .pricing-vs-grid-three {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   TL;DR STAT CARDS
   ========================================================================== */

/* Competitor attribution header */
.tldr-competitor-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(214, 53, 32, 0.05);
    border: 1px solid rgba(214, 53, 32, 0.15);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 14px;
    font-weight: 700;
    color: #d63520;
}
.tldr-competitor-header svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.tldr-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(55, 152, 255, 0.15);
    border: 1px solid rgba(214, 53, 32, 0.15);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}
.tldr-stat {
    background: var(--color-surface);
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid rgba(214, 53, 32, 0.1);
}
.tldr-stat:last-child { border-right: none; }
.tldr-stat-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #d63520;
}
.tldr-stat-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 4px;
}
.tldr-stat-note {
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text-muted);
}

/* TL;DR list — key headline + detail pattern */
.tldr-box li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    flex-direction: column;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-subtle);
}
.tldr-box li:last-child { border-bottom: none; padding-bottom: 0; }
.tldr-box li .tldr-li-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}
.tldr-box li svg { margin-top: 2px; }
.tldr-li-key {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    display: block;
    margin-bottom: 2px;
}
.tldr-li-detail {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.55;
    display: block;
}

/* ==========================================================================
   COST BAR VISUAL — Power BI page
   ========================================================================== */

.cost-bar-visual {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cbv-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
.cbv-row {
    display: grid;
    grid-template-columns: 160px 1fr 90px;
    align-items: center;
    gap: 16px;
}
.cbv-row-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-align: right;
}
.cbv-bar-track {
    height: 40px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
}
.cbv-bar {
    height: 100%;
    border-radius: var(--radius-md);
    min-width: 8px;
}
.cbv-bar-dfox { background: var(--color-success); }
.cbv-bar-comp  { background: #d63520; }
.cbv-amount {
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}
.cbv-amount-dfox { color: var(--color-success); }
.cbv-amount-comp  { color: #d63520; }
.cbv-note {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-subtle);
}

/* ==========================================================================
   ROLE BAR VISUAL — Tableau page
   ========================================================================== */

.role-bar-visual {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rbv-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
.rbv-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 16px;
}
.rbv-row-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}
.rbv-row-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.rbv-row-total {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}
.rbv-total-dfox { color: var(--color-success); }
.rbv-total-comp  { color: #d63520; }
.rbv-stack {
    height: 56px;
    display: flex;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.rbv-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    overflow: hidden;
}
.rbv-seg-label {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    color: white;
    white-space: nowrap;
}
.rbv-seg strong { font-size: 14px; font-weight: 800; display: block; }
.rbv-seg-dfox     { background: var(--color-success); }
.rbv-seg-creator  { background: #b82e1b; }
.rbv-seg-explorer { background: #d63520; }
.rbv-seg-viewer   { background: #e8643e; }
.rbv-note {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-subtle);
}

/* Responsive */
@media (max-width: 768px) {
    .tldr-stats { grid-template-columns: repeat(2, 1fr); }
    .cbv-row { grid-template-columns: 100px 1fr 70px; }
    .cbv-amount { font-size: 14px; }
    .rbv-row { grid-template-columns: 110px 1fr; }
    .rbv-seg-label { font-size: 14px; }
    .rbv-seg strong { font-size: 14px; }
}

/* ==========================================================================
   COMPARE PAGE ADDITIONS (append to compare.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Logo image fixes — the markup uses compare-card-logo-img directly on <img>
   but existing CSS only targets .compare-card-logo (wrapper div) + child img.
   These rules constrain the standalone img classes.
   -------------------------------------------------------------------------- */
.compare-card-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    padding: 8px;
    background: var(--color-bg-muted);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.other-card-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    padding: 6px;
    background: var(--color-bg-muted);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Final CTA — link color fix.
   .cmp-onprem-note sits on the dark blue gradient so links need to be white.
   -------------------------------------------------------------------------- */
.cmp-onprem-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    display: block;
}

.cmp-onprem-note a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cmp-onprem-note a:hover {
    color: white;
}

/* --------------------------------------------------------------------------
   Not For You Section
   -------------------------------------------------------------------------- */
.not-for-you-section {
    background: var(--color-bg);
}

.not-for-you-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.not-for-you-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-warning, #d97706);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.not-for-you-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 4px;
}

.not-for-you-icon {
    width: 36px;
    height: 36px;
    background: rgba(217, 119, 6, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.not-for-you-icon svg {
    width: 18px;
    height: 18px;
}

.not-for-you-card h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin: 0;
}

.not-for-you-card > p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin: 0;
    flex-grow: 1;
}

.not-for-you-alt {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-subtle);
    margin-top: auto;
}

.not-for-you-alt svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--color-text-muted);
}

.not-for-you-footer {
    background: var(--color-success-soft);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.not-for-you-footer svg {
    width: 22px;
    height: 22px;
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.not-for-you-footer p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin: 0;
}

.not-for-you-footer a {
    color: var(--color-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Responsive: Not For You grid
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .not-for-you-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .not-for-you-grid {
        grid-template-columns: 1fr;
    }

    .not-for-you-footer {
        flex-direction: column;
        gap: 10px;
    }
}
/* ==========================================================================
   VS-* PAGES — bottom-line-onprem link (extracted from inline <style> blocks)
   ========================================================================== */
.bottom-line-cta .bottom-line-onprem {
    margin-top: 0.875rem;
    font-size: 0.9375rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}
.bottom-line-cta .bottom-line-onprem a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bottom-line-cta .bottom-line-onprem a:hover { text-decoration: none; }
.bottom-line-cta .bottom-line-onprem a:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
    border-radius: 2px;
    text-decoration: none;
}

/* ==========================================================================
   VS-* PAGES — Not right for you callout
   Compact amber callout between feature table and bottom line
   ========================================================================== */
.cmp-not-fit-callout {
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-left: 4px solid #d97706;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    background: rgba(217, 119, 6, 0.04);
    padding: 22px 28px;
}

.cmp-not-fit-callout > p {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin: 0 0 14px 0;
    line-height: 1.6;
}

.cmp-not-fit-callout > p a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.cmp-not-fit-callout > p a:hover {
    text-decoration: underline;
}

.cmp-not-fit-callout ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.cmp-not-fit-callout ul li {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.55;
    padding-left: 18px;
    position: relative;
}

.cmp-not-fit-callout ul li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: #d97706;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.3;
}

/* ============================================================
   ADDITIONS TO COMPARE.CSS
   Append to existing compare.css
   ============================================================ */

/* Status quo card — distinct visual treatment in the directory grid */
.compare-card-status-quo {
    border: 2px dashed var(--color-border, #e2e8f0);
    background: var(--color-surface-alt, #f8faff);
}

.compare-card-status-quo:hover {
    border-color: var(--color-primary, #2563eb);
    border-style: solid;
}

/* Icon in place of a logo image for status quo card */
.compare-card-logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface, #f1f5f9);
    border-radius: 8px;
    flex-shrink: 0;
}

.compare-card-logo-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-secondary, #64748b);
}

/* TL;DR stat bar — used on vs-spreadsheets page */
.tldr-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--color-surface-alt, #f8faff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    padding: 2rem;
    flex-wrap: wrap;
}

.tldr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 2rem;
    gap: 0.5rem;
}

.tldr-stat {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary, #2563eb);
    line-height: 1;
}

.tldr-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary, #64748b);
    max-width: 180px;
    line-height: 1.4;
}

.tldr-divider {
    width: 1px;
    height: 60px;
    background: var(--color-border, #e2e8f0);
    flex-shrink: 0;
}

/* Choose grid — spreadsheets vs DF two-column */
.choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.choose-col h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border, #e2e8f0);
}

.choose-col-us h3 {
    border-color: var(--color-primary, #2563eb);
    color: var(--color-primary, #2563eb);
}

.choose-col-them h3 {
    color: var(--color-text-secondary, #64748b);
}

.choose-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.choose-list li {
    font-size: 0.9375rem;
    color: var(--color-text-secondary, #64748b);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.choose-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--color-border, #cbd5e1);
}

.choose-col-us .choose-list li::before {
    content: "✓";
    color: var(--color-success, #059669);
    font-weight: 700;
}

.choose-col-us .choose-list li {
    color: var(--color-text, #1e293b);
}

/* Switch step icon color — blue variant for vs-spreadsheets */
.switch-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

/* Responsive */
@media (max-width: 640px) {
    .tldr-bar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .tldr-divider {
        width: 60px;
        height: 1px;
    }

    .choose-grid {
        grid-template-columns: 1fr;
    }
}