/* ==========================================================================
   Feature Page Styles
   Shared styles for all feature pillar pages (/funcionalidades/:slug/)
   ========================================================================== */

/* Container */
.feature-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* ---------- Hero ---------- */
.feature-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.feature-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.feature-hero__subtitle {
    font-size: 1.25rem;
    color: #4a4a68;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.feature-hero__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ---------- Intro ---------- */
.feature-intro {
    padding: 2rem 0;
}

.feature-intro__text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.5rem;
}

.feature-intro__highlights {
    list-style: none;
    padding: 0;
}

.feature-intro__highlights li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: #333;
}

.feature-intro__highlights li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 700;
}

/* ---------- How It Works ---------- */
.feature-how-it-works {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.feature-how-it-works h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.feature-how-it-works__steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.feature-step {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.feature-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.feature-step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.feature-step p {
    color: #4a4a68;
    line-height: 1.6;
}

/* ---------- Screenshots ---------- */
.feature-screenshots {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.feature-screenshots h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.feature-screenshots__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-screenshot img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.feature-screenshot figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .feature-screenshots__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- FAQ ---------- */
.feature-faq {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.feature-faq h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.feature-faq__item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.feature-faq__item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1a1a2e;
    transition: background-color 0.15s ease;
}

.feature-faq__item summary:hover {
    background: #f9fafb;
}

.feature-faq__item summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 300;
    color: #6b7280;
    flex-shrink: 0;
    margin-left: 1rem;
}

.feature-faq__item[open] summary::after {
    content: "\2212";
}

.feature-faq__item p {
    padding: 0 1.25rem 1rem;
    color: #4a4a68;
    line-height: 1.6;
}

/* ---------- CTA ---------- */
.feature-cta {
    text-align: center;
    padding: 3rem 0 2rem;
    border-top: 1px solid #e5e7eb;
}

.feature-cta .btn--primary {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.feature-cta .btn--primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.feature-cta__secondary {
    display: inline-block;
    margin-top: 1rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.feature-cta__secondary:hover {
    text-decoration: underline;
}

.feature-cta__back {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
}

.feature-cta__back a {
    color: #6b7280;
    text-decoration: none;
}

.feature-cta__back a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ---------- Related Features ---------- */
.related-features {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.related-features h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.related-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.related-card {
    display: block;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.related-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.related-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.375rem;
}

.related-card p {
    font-size: 0.9375rem;
    color: #4a4a68;
    line-height: 1.5;
    margin: 0;
}

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

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    .feature-hero h1 {
        font-size: 2.75rem;
    }

    .feature-hero__subtitle {
        font-size: 1.375rem;
    }

    .feature-page {
        padding: 0 2rem 4rem;
    }
}
