/* Tool landing page styles (hero, search, features, steps, FAQ).
   Shared by the Story / Post / Reel / Highlight viewer pages.
   Extracted from per-page inline <style> blocks (identical across pages). */

.hero-section {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(80px, 12vh, 120px) 20px 0;
    text-align: center;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
    max-width: 630px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    .badge {
        margin-bottom: 14px;
    }
    .hero-title {
        margin-bottom: 14px;
    }
}

.hero-section .search-container {
    max-width: 540px;
    margin: 0 auto 25px;
}

.hero-section .search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.hero-section .search-box:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.08);
}

.hero-section .at-symbol {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-tertiary);
    user-select: none;
}

.hero-section .search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    background: transparent;
    color: var(--text-primary);
    padding: 12px 0;
}

.hero-section .search-box input::placeholder {
    color: var(--text-tertiary);
}

.hero-section .search-btn {
    background: var(--search-btn-bg);
    color: var(--search-btn-color);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .search-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.hero-section .search-btn svg {
    width: 20px;
    height: 20px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap;
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, margin-bottom 0.4s ease;
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    overflow: hidden;
}

.stats.hidden {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    margin-bottom: 0;
}

.hero-section .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.hero-section .stat-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.feature {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    transition: all 0.2s ease;
}

.feature:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    color: var(--accent-color);
}

.feature-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Lower sections - Hidden initially, shown when not searching */
.lower-sections {
    margin-top: 26px;
}

.lower-sections.pushed-down {
    display: none;
}

.steps {
    max-width: 900px;
    margin: 0 auto 70px;
    padding: 0 20px;
}

.steps-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.step {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px 24px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--text-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq {
    max-width: 750px;
    margin: 70px auto;
    padding: 0 20px;
}

.faq-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.faq-a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.story-viewer-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.story-viewer-link:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
    .stats {
        gap: 24px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Recent Follows gateway CTA (homepage funnel) */
.recent-follows-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: 540px;
    margin: -6px auto 30px;
    padding: 14px 22px;
    background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.14), rgba(var(--accent-color-rgb), 0.04));
    border: 1px solid rgba(var(--accent-color-rgb), 0.35);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.recent-follows-cta:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(var(--accent-color-rgb), 0.20);
    transform: translateY(-2px);
}

.recent-follows-cta svg {
    width: 26px;
    height: 26px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.recent-follows-cta__text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.35;
}

.recent-follows-cta__text strong {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.recent-follows-cta__sub {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .recent-follows-cta {
        gap: 12px;
        padding: 12px 16px;
        margin: 0 auto 24px;
    }
    .recent-follows-cta__text strong {
        font-size: 0.9rem;
    }
    .recent-follows-cta__sub {
        font-size: 0.78rem;
    }
}
