/* ============================================================
   seo-sections.css
   Styling for new SEO-driven content sections (Features,
   How It Works, Use Cases, Showcase, FAQ, CTA).
   Matches existing design tokens from styles.css.
   ============================================================ */

/* Accessibility helpers */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Header nav links (new) */
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

@media (max-width: 640px) {
    .nav-link {
        display: none;
    }
}

/* Hero CTAs */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.hero-trustline {
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================================
   Section base
   ============================================================ */
.seo-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.seo-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-lead {
    text-align: center;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ============================================================
   Features
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================================
   How It Works (numbered steps)
   ============================================================ */
.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 880px;
    margin: 0 auto;
}

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

.step-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.step-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.step-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================================
   Use Cases
   ============================================================ */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.usecase-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.usecase-card:hover {
    background-color: var(--bg-card);
    transform: translateY(-2px);
}

.usecase-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.usecase-card h3 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.usecase-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================================
   Showcase (before/after)
   ============================================================ */
.showcase-figure {
    margin: 0 auto;
    max-width: 960px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
}

.showcase-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background-color: var(--bg-secondary);
}

.showcase-figure figcaption {
    margin-top: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.showcase-figure figcaption strong {
    color: var(--text-primary);
}

.showcase-fallback {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-item summary h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.faq-answer {
    padding: 0 1.25rem 1.15rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.faq-answer p {
    margin: 0;
}

/* ============================================================
   CTA section
   ============================================================ */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: var(--radius-xl);
    padding: 3rem 1.5rem;
    margin-top: 5rem;
    color: #fff;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.cta-section .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--primary-hover);
}

/* ============================================================
   Footer extras
   ============================================================ */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-credit {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-credit a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ============================================================
   Noscript warning
   ============================================================ */
.noscript-warning {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffe69c;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    z-index: 9999;
}

[data-theme="dark"] .noscript-warning {
    background-color: #3a2f00;
    color: #fff3cd;
    border-color: #664d03;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .usecase-card,
    .skip-link {
        transition: none !important;
    }
}
