/* ===================================================
   Sideline AI — Page-specific Styles
   Extends /css/style.css base
   =================================================== */

:root {
    --sl-accent: #10b981;
    --sl-accent-hover: #059669;
    --sl-dark: #0c1222;
    --sl-dark-card: #151d30;
    --sl-gradient-start: #0f172a;
    --sl-gradient-end: #1a2744;
}

/* Top bar */
.sl-topbar {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.sl-topbar-inner {
    display: flex;
    align-items: center;
}

.sl-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition);
}

.sl-back:hover {
    color: var(--color-accent);
}

.sl-back svg {
    width: 16px;
    height: 16px;
}

.sl-back-logo {
    height: 28px;
    width: auto;
}

/* Sticky section nav */
.sl-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sl-nav::-webkit-scrollbar {
    display: none;
}

.sl-nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    white-space: nowrap;
}

.sl-nav-list a {
    display: block;
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.sl-nav-list a:hover,
.sl-nav-list a.active {
    color: var(--sl-accent);
    border-bottom-color: var(--sl-accent);
}

/* Hero */
.sl-hero {
    padding: 80px 0 64px;
    text-align: center;
    background: linear-gradient(135deg, var(--sl-gradient-start) 0%, var(--sl-gradient-end) 100%);
    color: var(--color-text-inverse);
}

.sl-hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sl-accent);
    margin-bottom: 24px;
}

.sl-hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--color-text-inverse);
    margin-bottom: 8px;
}

.sl-accent {
    color: var(--sl-accent);
}

.sl-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: 24px;
}

.sl-hero-desc {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(248, 250, 252, 0.7);
}

.sl-hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.sl-pill {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sl-accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.08);
}

/* Generic sections */
.sl-section {
    padding: 72px 0;
}

.sl-section--alt {
    background: var(--color-bg-alt);
}

.sl-section--dark {
    background: var(--sl-dark);
    color: var(--color-text-inverse);
}

.sl-section--dark .sl-section-title {
    color: var(--color-text-inverse);
}

.sl-section--dark .sl-section-intro {
    color: rgba(248, 250, 252, 0.7);
}

.sl-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.sl-section-intro {
    text-align: center;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Problem cards */
.sl-problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.sl-problem-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.sl-problem-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.sl-problem-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 16px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.sl-problem-icon svg {
    width: 26px;
    height: 26px;
}

.sl-problem-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.sl-problem-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Platform cards */
.sl-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.sl-platform-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition);
}

.sl-platform-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.sl-platform-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sl-accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 12px;
}

.sl-platform-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.sl-platform-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Steps */
.sl-steps {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.sl-steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.sl-step {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    position: relative;
}

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

.sl-step-marker {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sl-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--color-bg-alt);
}

.sl-step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    padding-top: 2px;
}

.sl-step-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Engagement cards */
.sl-engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.sl-engagement-card {
    text-align: center;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.sl-engagement-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.sl-engagement-emoji {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1;
}

.sl-engagement-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.sl-engagement-card p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* Connectivity */
.sl-connectivity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.sl-connectivity-item h3 {
    font-size: 1.15rem;
    color: var(--sl-accent);
    margin-bottom: 10px;
}

.sl-connectivity-item p {
    color: rgba(248, 250, 252, 0.65);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Network features */
.sl-network-features {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sl-network-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sl-network-feature svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--sl-accent);
    margin-top: 2px;
}

.sl-network-feature h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

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

/* CTA */
.sl-cta {
    text-align: center;
}

.sl-cta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.sl-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--sl-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: background var(--transition), box-shadow var(--transition);
}

.sl-cta-btn:hover,
.sl-cta-btn:focus-visible {
    background: var(--sl-accent-hover);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.sl-cta-btn svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

/* Responsive */
@media (max-width: 640px) {
    .sl-hero {
        padding: 48px 0 40px;
    }

    .sl-section {
        padding: 48px 0;
    }

    .sl-nav-list a {
        padding: 12px 14px;
        font-size: 0.8rem;
    }

    .sl-steps::before {
        left: 19px;
    }

    .sl-step-marker {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .sl-step {
        gap: 16px;
    }

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

    .sl-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .sl-engagement-grid {
        grid-template-columns: 1fr;
    }
}
