/* Squash landing (/scorekeeper/squash) — moved out of the page's inline <style>. */
/* ============================================
   PAGE LAYOUT — natural document scroll
   (no snap-scroll; tall hero forms must be reachable)
   ============================================ */
.landing-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .landing-section {
        min-height: auto;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.landing-hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 1.5rem;
    padding-top: calc(80px + 2.5rem);
    justify-content: flex-start;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

/* Squash ball silhouette */
.landing-hero::before {
    content: '';
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    opacity: 0.07;
    background: radial-gradient(circle at 35% 35%, #a78bfa 0%, #8b5cf6 40%, #6d28d9 100%);
    border-radius: 50%;
    box-shadow: 
        inset -30px -30px 60px rgba(0,0,0,0.3),
        inset 15px 15px 30px rgba(255,255,255,0.1);
}

/* Squash court lines */
.landing-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background:
        /* Service box lines */
        linear-gradient(90deg, transparent 20%, rgba(139, 92, 246, 0.8) 20%, rgba(139, 92, 246, 0.8) 20.3%, transparent 20.3%),
        linear-gradient(90deg, transparent 80%, rgba(139, 92, 246, 0.8) 80%, rgba(139, 92, 246, 0.8) 80.3%, transparent 80.3%),
        /* Half court line */
        linear-gradient(0deg, transparent 50%, rgba(139, 92, 246, 0.8) 50%, rgba(139, 92, 246, 0.8) 50.5%, transparent 50.5%),
        /* T-line */
        linear-gradient(90deg, transparent 35%, rgba(139, 92, 246, 0.8) 35%, rgba(139, 92, 246, 0.8) 65%, transparent 65%);
}

/* Hero Layout - Two columns */
.hero-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 1;
}

.hero-form-side {
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
}

.hero-copy-side {
    flex: 0 0 auto;
    max-width: 460px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #8b5cf6;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
    line-height: 1.5;
    max-width: 380px;
}

/* ============================================
   HERO SCOREBOARD PREVIEW
   ============================================ */
.hero-scoreboard-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
}

.preview-game-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.preview-games {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.preview-games .p1 { color: #3b82f6; }
.preview-games .p2 { color: #ef4444; }

.preview-players {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.preview-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.preview-player-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-player-score {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}

.preview-player.p1 .preview-player-score { color: #3b82f6; }
.preview-player.p2 .preview-player-score { color: #ef4444; }

.preview-serving {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #8b5cf6;
}

.preview-vs {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

/* ============================================
   HERO FEATURES MINI
   ============================================ */
.hero-features-mini {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.hero-feature-item i {
    color: #22c55e;
    font-size: 0.875rem;
}

/* ============================================
   HERO SOCIAL PROOF
   ============================================ */
.hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 0.75rem;
    margin-top: 1.25rem;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.proof-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.proof-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.proof-label i {
    color: #f59e0b;
}

.proof-divider {
    width: 1px;
    height: 2rem;
    background: var(--border-color);
}

/* Mobile: Stack hero layout */
@media (max-width: 850px) {
    .hero-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-copy-side {
        text-align: center;
        max-width: 100%;
    }

    .hero-badge {
        justify-content: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-features-mini {
        align-items: center;
    }

    .hero-scoreboard-preview {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-social-proof {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .proof-number {
        font-size: 1rem;
    }

    .proof-label {
        font-size: 0.625rem;
    }
}

/* ============================================
   MATCH SETUP FORM
   ============================================ */
.match-setup-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.setup-section {
    margin-bottom: 0.75rem;
}

.setup-section:last-child {
    margin-bottom: 0;
}

/* Section Groups with icons */
.setup-group {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.setup-group:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.setup-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.setup-group-header i {
    font-size: 1rem;
    color: #8b5cf6;
}

.setup-group-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.setup-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

/* Player Name Inputs */
.player-inputs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.375rem;
}

.player-input-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
    min-width: 0;
}

.player-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.vs-divider {
    flex-shrink: 0;
    padding: 0 0.25rem;
}

.vs-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

.player-badge.p1 {
    background: #3b82f6;
}

.player-badge.p2 {
    background: #ef4444;
}

/* Server badge in toggle options */
.server-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #fff;
    margin-right: 0.375rem;
}

.server-badge.p1 {
    background: #3b82f6;
}

.server-badge.p2 {
    background: #ef4444;
}

.toggle-option i {
    margin-right: 0.25rem;
}

.player-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 0.5rem 0.625rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.player-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.player-input::placeholder {
    color: var(--text-tertiary);
}

/* Toggle Options */
.toggle-options {
    display: flex;
    gap: 0.375rem;
}

.toggle-option {
    flex: 1;
    padding: 0.5rem 0.625rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.toggle-option:hover {
    border-color: var(--text-tertiary);
    color: var(--text-primary);
}

.toggle-option.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.toggle-option small {
    display: block;
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-top: 0.125rem;
}

.toggle-option.active small {
    color: rgba(139, 92, 246, 0.7);
}
/* Start Match Button */
.start-match-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.start-match-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.start-match-btn:active {
    transform: translateY(0);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.landing-features {
    background: var(--bg-secondary);
    padding: 3rem 1.5rem;
    justify-content: center;
}

.features-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #8b5cf6;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.375rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.landing-how-it-works {
    background: var(--bg-primary);
    padding: 3rem 1.5rem;
    justify-content: center;
}

.steps-list {
    max-width: 600px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .match-setup-card {
        padding: 1.25rem;
    }

    .toggle-option {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }

    .toggle-option small {
        display: none;
    }
}
