/* ============================================
   FABSOFT POSITIONING COMPONENTS
   Created: 2026-02-09
   Updated: 2026-02-09 (cleanup: removed dead flagship CSS,
   added button/badge size modifiers)
   Purpose: Shared styles for the repositioned
   homepage and products page. Suite-first
   positioning with balanced product exposure.
   ============================================ */

/* --- CSS Variables (extend fabsoft-variables) --- */
:root {
    --pos-accent-purple: #6e56d5;
    --pos-accent-green: #00C853;
    --pos-badge-popular: #0071E3;
    --pos-badge-trial: #00C853;
    --pos-badge-enterprise: #1D1D1F;
}

/* ============================
   BRAND STATEMENT BAR
   ============================ */
.brand-statement {
    background: #1D1D1F;
    color: #F5F5F7;
    text-align: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ============================
   HERO TAGLINE
   ============================ */
.hero-tagline {
    display: inline-block;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pos-accent-purple, #6e56d5);
    margin-bottom: 12px;
}

/* ============================
   SUITE BENEFITS SECTION
   ============================ */
.benefits-section {
    padding: 80px 24px;
    background: #F5F5F7;
}

.benefits-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.benefits-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.benefits-section-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 600;
    color: #1D1D1F;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.benefits-section-subtitle {
    font-size: 18px;
    color: #86868B;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.benefit-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}

.benefit-icon--search { background: linear-gradient(135deg, #6e56d5 0%, #75d5ff 100%); }
.benefit-icon--organize { background: linear-gradient(135deg, #00C853 0%, #69F0AE 100%); }
.benefit-icon--formats { background: linear-gradient(135deg, #0071E3 0%, #00A8E3 100%); }
.benefit-icon--speed { background: linear-gradient(135deg, #FF9500 0%, #FFCC02 100%); }

.benefit-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 8px;
}

.benefit-content p {
    font-size: 15px;
    color: #86868B;
    line-height: 1.6;
    margin: 0;
}

.benefit-proof {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pos-accent-green, #00C853);
    margin-top: 8px;
}

/* ============================
   CHALLENGE SECTION SOLUTION LINKS
   ============================ */
.challenge-solution {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #86868B;
}

.challenge-solution a {
    color: #0071E3;
    font-weight: 500;
    text-decoration: none;
}

.challenge-solution a:hover {
    text-decoration: underline;
}

/* ============================
   PROBLEM SELECTOR
   ============================ */
.problem-selector {
    padding: 80px 24px;
    background: #FFFFFF;
}

.problem-selector-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.problem-selector-header {
    text-align: center;
    margin-bottom: 48px;
}

.problem-selector-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 600;
    color: #1D1D1F;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.problem-selector-subtitle {
    font-size: 18px;
    color: #86868B;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.problem-card {
    background: #F5F5F7;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.problem-card:hover {
    background: #FFFFFF;
    border-color: #0071E3;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.1);
}

.problem-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    background: #FFFFFF;
}

.problem-card-content {
    flex: 1;
}

.problem-card-problem {
    font-size: 16px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 4px;
    line-height: 1.4;
}

.problem-card-product {
    font-size: 13px;
    color: #86868B;
    margin: 0 0 8px;
}

.problem-card-cta {
    font-size: 14px;
    font-weight: 500;
    color: #0071E3;
}

.problem-card-cta .arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.problem-card:hover .problem-card-cta .arrow {
    transform: translateX(4px);
}

.problem-fallback {
    text-align: center;
    padding: 24px;
    font-size: 16px;
    color: #86868B;
}

.problem-fallback a {
    color: #0071E3;
    font-weight: 500;
    text-decoration: none;
}

.problem-fallback a:hover {
    text-decoration: underline;
}

/* ============================
   PRODUCT SHOWCASE (Homepage mini-grid)
   ============================ */
.product-showcase {
    padding: 80px 24px;
    background: #F5F5F7;
}

.product-showcase-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.product-showcase-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 600;
    color: #1D1D1F;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.product-showcase-subtitle {
    font-size: 18px;
    color: #86868B;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.product-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
}

.product-showcase-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-showcase-card:hover {
    border-color: #0071E3;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.product-showcase-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
}

.product-showcase-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 8px;
}

.product-showcase-card p {
    font-size: 14px;
    color: #86868B;
    line-height: 1.5;
    margin: 0 0 12px;
}

.product-showcase-cta {
    margin-top: 40px;
}

/* ============================
   PROGRESSIVE CTA SECTION
   Used on both Homepage and Products page
   ============================ */
.progressive-cta {
    padding: 80px 24px;
    background: linear-gradient(135deg, #F5F5F7 0%, #E8F4FD 100%);
    text-align: center;
}

.progressive-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.progressive-cta-headline {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    color: #1D1D1F;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.progressive-cta-subtext {
    font-size: 18px;
    color: #86868B;
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.progressive-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

/* ============================
   OTHER SOLUTIONS SENTENCE (kept for fallback)
   ============================ */
.other-solutions {
    padding: 48px 24px;
    text-align: center;
    background: #F5F5F7;
    border-top: 1px solid #D2D2D7;
}

.other-solutions-text {
    font-size: 17px;
    color: #86868B;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.other-solutions-text a {
    color: #0071E3;
    font-weight: 500;
    text-decoration: none;
}

.other-solutions-text a:hover {
    text-decoration: underline;
}

/* ============================
   BADGES
   ============================ */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--sm {
    font-size: 10px;
    padding: 4px 10px;
}

.badge-popular {
    background: var(--pos-badge-popular, #0071E3);
    color: #FFFFFF;
}

.badge-trial {
    background: var(--pos-badge-trial, #00C853);
    color: #FFFFFF;
}

.badge-enterprise {
    background: var(--pos-badge-enterprise, #1D1D1F);
    color: #FFFFFF;
}

/* ============================
   SPECIALIZED SOLUTIONS GRID
   (Products page)
   ============================ */
.specialized-section {
    padding: 64px 24px;
    background: #FFFFFF;
}

.specialized-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.specialized-section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
    color: #1D1D1F;
    letter-spacing: -0.02em;
}

.specialized-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.specialized-card {
    background: #F5F5F7;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.specialized-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    background: #FFFFFF;
}

.specialized-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.specialized-card-icon {
    width: 48px;
    height: 48px;
}

.specialized-card-name {
    font-size: 20px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0;
}

.specialized-card-bestfor {
    font-size: 13px;
    color: #0071E3;
    font-weight: 500;
    margin-bottom: 12px;
}

.specialized-card-description {
    font-size: 15px;
    color: #86868B;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.specialized-card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.specialized-card-ctas {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* ============================
   COMPARISON TABLE ENHANCEMENTS
   ============================ */
.recommended-indicator {
    color: #0071E3;
    font-weight: 700;
    font-size: 16px;
}

.comparison-highlight {
    background: rgba(0, 113, 227, 0.04) !important;
}

/* ============================
   STICKY CTA BAR (Products page)
   ============================ */
.pl-sticky-cta {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    z-index: 998;
    transition: bottom 0.3s ease;
    padding: 12px 24px;
}

.pl-sticky-cta.visible {
    bottom: 0;
}

.pl-sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pl-sticky-text {
    font-size: 16px;
    font-weight: 600;
    color: #1D1D1F;
}

.pl-sticky-buttons {
    display: flex;
    gap: 12px;
}

/* ============================
   SHARED BUTTON STYLES
   ============================ */
.btn-pos-primary {
    display: inline-block;
    background: #0071E3;
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-pos-primary:hover {
    background: #0077ED;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
    color: #FFFFFF;
}

.btn-pos-primary--sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-pos-trial {
    display: inline-block;
    background: var(--pos-accent-green, #00C853);
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-pos-trial:hover {
    background: #00B548;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
    color: #FFFFFF;
}

.btn-pos-trial--sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-pos-secondary {
    display: inline-block;
    color: #0071E3;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.btn-pos-secondary:hover {
    text-decoration: underline;
}

/* ============================
   PRODUCTS PAGE INTRO
   ============================ */
.pl-intro {
    padding: 120px 24px 60px;
    background: #F5F5F7;
    text-align: center;
}

.pl-intro-inner {
    max-width: 800px;
    margin: 0 auto;
}

.pl-intro h1 {
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1D1D1F;
    margin: 0 0 20px;
}

.pl-intro-subtitle {
    font-size: clamp(16px, 2.5vw, 19px);
    color: #86868B;
    line-height: 1.6;
    margin: 0;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specialized-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .progressive-cta-buttons {
        flex-direction: row;
    }

    .pl-sticky-cta {
        padding: 16px 40px;
    }
}

@media (min-width: 1024px) {
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .product-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .progressive-cta {
        padding: 100px 60px;
    }

    .progressive-cta-headline {
        font-size: 40px;
    }
}