/* ══════════════════════════════════════════════════════════════════
   SEO Landing Page Template — Shared Styles
   Used by: page-seo-landing.php (and child pages derived from it)
   ══════════════════════════════════════════════════════════════════ */

/* ── Base overrides ── */
.seo-landing-page {
    padding: 0;
    background-color: var(--white);
}

/* ── Container ── */
.sl-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Shared typography ── */
.seo-landing-page h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-heading, 1.25);
}

.seo-landing-page p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.seo-landing-page p:last-child {
    margin-bottom: 0;
}

.sl-section-title {
    text-align: center;
    font-size: 2.1rem;
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 3rem;
}

.sl-text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Prose blocks — allow HTML with proper spacing */
.sl-prose p {
    margin-bottom: 1rem;
}

.sl-prose ul,
.sl-prose ol {
    margin: 1rem 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.sl-prose li {
    margin-bottom: 0.5rem;
}

/* ── Primary CTA Button ── */
.sl-btn-primary {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--border-radius-button, 50px);
    text-decoration: none;
    transition: transform var(--transition-base, 0.3s ease), box-shadow var(--transition-base, 0.3s ease);
    box-shadow: 0 4px 20px rgba(69, 104, 220, 0.25);
}

.sl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(69, 104, 220, 0.35);
}

.sl-btn-primary:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ── Image Placeholder ── */
.sl-image-placeholder {
    background: rgba(69, 104, 220, 0.06);
    border: 2px dashed rgba(69, 104, 220, 0.2);
    border-radius: var(--border-radius, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    min-height: 200px;
}

/* ── Focus states (accessibility) ── */
.seo-landing-page a:focus-visible,
.seo-landing-page summary:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════════
   Section 1: Hero
   ══════════════════════════════════════════════════════════════════ */
.sl-hero {
    background: linear-gradient(170deg, var(--background-primary, #f5f7fa) 0%, var(--white) 100%);
    padding: 8rem 2rem 5rem;
}

.sl-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sl-hero-copy {
    text-align: left;
}

.sl-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sl-hero .sl-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 0 2rem;
    line-height: 1.75;
}

.sl-hero-media {
    max-width: 560px;
}

.sl-hero-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.sl-hero .sl-image-placeholder {
    aspect-ratio: 16 / 10;
}

/* ══════════════════════════════════════════════════════════════════
   Section 2: Problem
   ══════════════════════════════════════════════════════════════════ */
.sl-problem {
    padding: 5rem 2rem;
    background: var(--white);
}

.sl-problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sl-problem-grid:only-child .sl-problem-copy {
    grid-column: 1 / -1;
    max-width: 760px;
    margin: 0 auto;
}

/* When there is no image, the copy spans full width */
.sl-problem-copy:only-child {
    max-width: 760px;
    margin: 0 auto;
}

.sl-problem-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ══════════════════════════════════════════════════════════════════
   Section 3: Solution
   ══════════════════════════════════════════════════════════════════ */
.sl-solution {
    padding: 5rem 2rem;
    background: var(--background-primary, #f5f7fa);
}

.sl-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sl-solution-copy:only-child {
    max-width: 760px;
    margin: 0 auto;
}

.sl-solution-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ══════════════════════════════════════════════════════════════════
   Section 4: How It Works
   ══════════════════════════════════════════════════════════════════ */
.sl-how-it-works {
    padding: 5rem 2rem;
    background: var(--white);
}

.sl-steps {
    max-width: 800px;
    margin: 0 auto;
}

.sl-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.sl-step:last-child {
    margin-bottom: 0;
}

.sl-step-badge {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sl-step-body {
    flex: 1;
    min-width: 0;
}

.sl-step-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 0.35rem;
}

.sl-step-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.sl-step-media {
    margin-top: 1rem;
}

.sl-step-media img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius, 12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ══════════════════════════════════════════════════════════════════
   Section 5: Try It / Sample
   ══════════════════════════════════════════════════════════════════ */
.sl-try-it {
    padding: 5rem 2rem;
    background: var(--background-primary, #f5f7fa);
}

.sl-try-it-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.sl-try-it-copy h2 {
    font-size: 1.8rem;
}

.sl-try-it-generator {
    position: sticky;
    top: 100px;
}

.sl-generator-fallback {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* Hide Advanced Tools accordion on landing pages */
.seo-landing-page .alg-advanced-accordion {
    display: none;
}

/* ══════════════════════════════════════════════════════════════════
   Section 6: Who It's For
   ══════════════════════════════════════════════════════════════════ */
.sl-audiences {
    padding: 5rem 2rem;
    background: var(--white);
}

.sl-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.sl-audience-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius, 12px);
    padding: 2rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-base, 0.3s ease), box-shadow var(--transition-base, 0.3s ease);
}

.sl-audience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.sl-audience-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.sl-audience-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   Section 7a: Stats
   ══════════════════════════════════════════════════════════════════ */
.sl-stats {
    padding: 4rem 2rem;
    background: var(--background-primary, #f5f7fa);
}

.sl-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.sl-stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.sl-stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-top: 0.25rem;
}

.sl-stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ══════════════════════════════════════════════════════════════════
   Section 7b: Testimonials (dark card pattern from webinar)
   ══════════════════════════════════════════════════════════════════ */
.sl-testimonials {
    padding: 5rem 2rem;
    background: #faf9f7;
}

.sl-testimonials h2 {
    text-align: center;
    margin-bottom: 0.75rem;
}

.sl-testimonials-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.sl-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sl-testimonial-card {
    background: #1e1e2e;
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition-base, 0.3s ease), box-shadow var(--transition-base, 0.3s ease);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

/* Photo area */
.sl-author-photo {
    position: relative;
    width: calc(100% - 1.25rem);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, #4568dc, #b06ab3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin: 0.625rem auto 0;
}

.sl-author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    mix-blend-mode: luminosity;
    opacity: 0.92;
}

.sl-initials {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.08em;
}

/* Gradient tint overlay */
.sl-author-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(69, 104, 220, 0.15), rgba(176, 106, 179, 0.15));
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: color;
    border-radius: 14px;
}

/* Bottom fade into dark card */
.sl-author-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, #1e1e2e, transparent);
    z-index: 2;
    pointer-events: none;
    border-radius: 0 0 14px 14px;
}

/* Quote body */
.sl-quote-body {
    padding: 0 1.4rem 1.15rem;
    margin-top: -2.1rem;
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sl-quote-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    font-style: italic;
    margin: 0 0 1.1rem 0;
    font-weight: 400;
}

/* Attribution */
.sl-author-info {
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sl-author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.sl-author-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin-top: 0.15rem;
}

.sl-author-role a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    transition: color var(--transition-base, 0.3s ease);
}

.sl-author-role a:hover {
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════
   Section 8: FAQ Accordion (details/summary)
   ══════════════════════════════════════════════════════════════════ */
.sl-faq {
    padding: 5rem 2rem;
    background: var(--white);
}

.sl-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.sl-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius, 12px);
    margin-bottom: 1rem;
    overflow: hidden;
}

.sl-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background: var(--background-primary, #f5f7fa);
    list-style: none;
    gap: 1rem;
}

/* Remove default marker */
.sl-faq-question::-webkit-details-marker {
    display: none;
}

.sl-faq-question::marker {
    content: '';
}

.sl-faq-question span:first-child {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-gray);
    flex: 1;
}

/* Plus/minus icon */
.sl-faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: transform var(--transition-base, 0.3s ease), background var(--transition-base, 0.3s ease);
}

.sl-faq-icon::before,
.sl-faq-icon::after {
    content: '';
    position: absolute;
    background: var(--primary-blue);
    border-radius: 1px;
}

/* Horizontal bar */
.sl-faq-icon::before {
    width: 14px;
    height: 2px;
}

/* Vertical bar — rotates to 0 when open */
.sl-faq-icon::after {
    width: 2px;
    height: 14px;
    transition: transform var(--transition-base, 0.3s ease);
}

.sl-faq-item[open] .sl-faq-icon {
    background: rgba(69, 104, 220, 0.1);
}

.sl-faq-item[open] .sl-faq-icon::after {
    transform: rotate(90deg);
}

.sl-faq-answer {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.sl-faq-answer p {
    margin: 0 0 0.75rem;
}

.sl-faq-answer p:last-child {
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════════
   Section 9: Final CTA
   ══════════════════════════════════════════════════════════════════ */
.sl-final-cta {
    padding: 5rem 2rem;
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sl-final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

.sl-final-cta .sl-container {
    position: relative;
    z-index: 1;
}

.sl-final-cta h2 {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.sl-final-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.sl-final-cta .sl-btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem 3rem;
    font-size: 1.15rem;
}

.sl-final-cta .sl-btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ══════════════════════════════════════════════════════════════════
   Related / Internal Links
   ══════════════════════════════════════════════════════════════════ */
.sl-related {
    padding: 3rem 2rem;
    background: var(--background-primary, #f5f7fa);
}

.sl-related-links {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.sl-related-links li {
    margin-bottom: 0.5rem;
}

.sl-related-links a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-color: rgba(69, 104, 220, 0.3);
    font-size: 0.95rem;
    transition: color var(--transition-base, 0.3s ease);
}

.sl-related-links a:hover {
    color: var(--dark-gray);
}

/* ══════════════════════════════════════════════════════════════════
   Responsive — Tablet (1024px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sl-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sl-hero-copy {
        text-align: center;
    }

    .sl-hero .sl-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .sl-hero-media {
        max-width: 480px;
        margin: 0 auto;
    }

    .sl-problem-grid,
    .sl-solution-grid {
        grid-template-columns: 1fr;
    }

    .sl-try-it-grid {
        grid-template-columns: 1fr;
    }

    .sl-try-it-generator {
        position: static;
    }

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

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

    .sl-testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   Responsive — Mobile (768px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sl-container {
        padding: 0 1rem;
    }

    /* Hero */
    .sl-hero {
        padding: 6rem 1.25rem 3.5rem;
    }

    .sl-hero h1 {
        font-size: 2rem;
    }

    .sl-hero .sl-hero-subtitle {
        font-size: 1rem;
    }

    /* Shared section title */
    .sl-section-title {
        font-size: 1.5rem !important;
    }

    .seo-landing-page h2 {
        font-size: 1.6rem;
    }

    /* Problem / Solution */
    .sl-problem,
    .sl-solution {
        padding: 3.5rem 1.25rem;
    }

    .sl-problem-grid,
    .sl-solution-grid {
        gap: 2rem;
    }

    /* How It Works */
    .sl-how-it-works {
        padding: 3.5rem 1.25rem;
    }

    .sl-step {
        gap: 1rem;
    }

    .sl-step-badge {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.1rem;
    }

    /* Try It */
    .sl-try-it {
        padding: 3.5rem 1.25rem;
    }

    /* Audiences */
    .sl-audiences {
        padding: 3.5rem 1.25rem;
    }

    .sl-audience-grid {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .sl-stats {
        padding: 3rem 1.25rem;
    }

    .sl-stats-grid {
        gap: 1.5rem;
    }

    .sl-stat-number {
        font-size: 1.6rem;
    }

    .sl-stat-label {
        font-size: 0.82rem;
    }

    .sl-stat-desc {
        font-size: 0.75rem;
    }

    /* Testimonials */
    .sl-testimonials {
        padding: 3.5rem 1.25rem;
    }

    .sl-testimonial-grid {
        max-width: 360px;
    }

    /* FAQ */
    .sl-faq {
        padding: 3.5rem 1.25rem;
    }

    .sl-faq-question {
        padding: 1rem 1.15rem;
    }

    .sl-faq-question span:first-child {
        font-size: 0.95rem;
    }

    .sl-faq-answer {
        padding: 0 1.15rem 1rem;
        font-size: 0.9rem;
    }

    /* Final CTA */
    .sl-final-cta {
        padding: 3.5rem 1.25rem;
    }

    .sl-final-cta h2 {
        font-size: 1.6rem;
    }

    .sl-final-cta p {
        font-size: 0.95rem;
    }

    .sl-final-cta .sl-btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* Related */
    .sl-related {
        padding: 2.5rem 1.25rem;
    }
}

/* ══════════════════════════════════════════════════════════════════
   Responsive — Small phones (400px / 375px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
    .sl-hero h1 {
        font-size: 1.65rem;
    }

    .sl-hero .sl-hero-subtitle {
        font-size: 0.95rem;
    }

    .sl-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .sl-stat-number {
        font-size: 1.4rem;
    }

    .sl-testimonial-grid {
        max-width: 100%;
    }

    .sl-audience-card {
        padding: 1.5rem 1.25rem;
    }
}
