/* ============================================
   Features page (/features)
   Uses the shared design tokens from base.css.
   .feature-card is restyled here because the home page rules live in
   home.css, which this page does not load.
   ============================================ */

.features-page {
    max-width: 1140px;
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */

.features-hero {
    text-align: center;
    margin-bottom: var(--pm-space-8);
}

.features-hero h1 {
    color: var(--pm-dark);
    font-weight: 700;
    margin-bottom: var(--pm-space-4);
}

.features-hero__lead {
    color: var(--pm-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto var(--pm-space-4);
}

.features-hero__free {
    display: inline-flex;
    align-items: center;
    gap: var(--pm-space-2);
    background: var(--pm-surface-1);
    border: 1.5px solid var(--pm-primary);
    border-radius: var(--pm-radius-lg);
    color: var(--pm-primary-dark);
    padding: var(--pm-space-3) var(--pm-space-5);
    margin: 0;
    font-weight: 500;
}

/* ----------------------------------------
   Table of contents
   ---------------------------------------- */

.features-toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--pm-space-2);
    margin-bottom: var(--pm-space-8);
}

.features-toc a {
    border: 1.5px solid var(--pm-border-light);
    border-radius: var(--pm-radius-md);
    padding: var(--pm-space-2) var(--pm-space-4);
    color: var(--pm-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all var(--pm-transition-base);
}

.features-toc a:hover {
    border-color: var(--pm-primary);
    color: var(--pm-primary);
}

/* ----------------------------------------
   Sections
   ---------------------------------------- */

.features-section {
    margin-bottom: var(--pm-space-8);
    scroll-margin-top: 90px;
}

.features-section h2 {
    color: var(--pm-dark);
    font-weight: 700;
    margin-bottom: var(--pm-space-3);
}

.features-section__intro {
    color: var(--pm-muted);
    line-height: 1.7;
    max-width: 780px;
    margin-bottom: var(--pm-space-6);
}

/* ----------------------------------------
   Feature cards
   ---------------------------------------- */

.features-page .feature-card {
    border: none;
    background: var(--pm-surface-1);
    box-shadow: var(--pm-shadow-sm);
    border-radius: var(--pm-radius-lg);
    transition: transform var(--pm-transition-base), box-shadow var(--pm-transition-base);
}

.features-page .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-lg);
}

.features-page .feature-card .pm-card__body {
    padding: var(--pm-space-5);
}

.features-page .feature-card__icon {
    font-size: 1.5rem;
    color: var(--pm-secondary);
    margin-bottom: var(--pm-space-3);
}

.features-page .feature-card .pm-card__title {
    color: var(--pm-dark);
    font-weight: 600;
    font-size: 1.0625rem;
    margin-bottom: var(--pm-space-3);
}

.features-page .feature-card p {
    color: var(--pm-muted);
    line-height: 1.65;
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* ----------------------------------------
   Call to action
   ---------------------------------------- */

.features-cta {
    text-align: center;
    background: var(--pm-surface-1);
    border-radius: var(--pm-radius-lg);
    box-shadow: var(--pm-shadow-sm);
    padding: var(--pm-space-8) var(--pm-space-5);
    margin-top: var(--pm-space-8);
}

.features-cta h2 {
    color: var(--pm-dark);
    font-weight: 700;
    margin-bottom: var(--pm-space-3);
}

.features-cta p {
    color: var(--pm-muted);
    max-width: 620px;
    margin: 0 auto var(--pm-space-5);
    line-height: 1.7;
}

.features-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--pm-space-3);
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */

@media (max-width: 768px) {
    .features-hero__lead {
        font-size: 1rem;
    }

    .features-hero__free {
        display: flex;
        text-align: left;
    }
}
