/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1d4ed8;
    --primary-blue-dark: #1e40af;
    --primary-blue-light: #dbeafe;
    --success-green: #10b981;
    --error-red: #ef4444;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --border-gray: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: #e8e8e8;
    border-bottom: 1px solid #d1d5db;
    height: 4rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
}

header .header-row {
    width: 100%;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-img {
    height: 2.75rem;
    width: auto;
}

.header-login {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-blue);
    border-radius: 0.375rem;
    transition: background-color 0.2s, color 0.2s;
}

.header-login:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: var(--white);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-dark);
}

.headline {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.headline .highlight {
    color: var(--primary-blue);
}

.philosophy-line {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.subhead {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.btn-hero {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.875rem 2.5rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-light);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Section Title (reusable) */
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* How It Works */
.how-it-works {
    padding: 3rem 0;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Screenshot Showcase */
.screenshot-showcase {
    padding: 3rem 0;
}

.showcase-description {
    max-width: 640px;
    margin: 1rem auto 2rem;
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
    text-align: center;
}

.showcase-image-wrapper {
    text-align: center;
}

.showcase-image {
    max-width: 320px;
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.showcase-caption {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

/* Philosophy Section */
.philosophy-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.philosophy-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.philosophy-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-blue);
}

.philosophy-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.philosophy-card p {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Origin Story */
.origin-story {
    padding: 3rem 0;
}

.origin-content {
    max-width: 640px;
    margin: 1.5rem auto 0;
}

.origin-content p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.origin-attribution {
    font-weight: 700;
    color: var(--text-dark) !important;
    font-style: italic;
}

/* FAQ Section */
.faq-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 640px;
    margin: 1.5rem auto 0;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-gray);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    content: '\2212';
}

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

.faq-item p {
    padding: 0 1.25rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
    color: var(--white);
}

.pricing-section .section-title {
    color: var(--white);
}

.pricing-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Sport & Gender Selection */
.sport-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.sport-field label,
.gender-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.sport-field select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    background: var(--white);
    appearance: auto;
}

.sport-field select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.gender-toggle {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    overflow: hidden;
}

.gender-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--white);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    color: var(--text-gray);
    min-height: 44px;
}

.gender-btn:first-child {
    border-right: 1px solid var(--border-gray);
}

.gender-btn:hover {
    background: var(--bg-light);
}

.gender-btn.active {
    background: var(--primary-blue);
    color: var(--white);
}

.coming-soon-note {
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.sport-field select:disabled {
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: default;
    opacity: 1;
}

.gender-btn:disabled {
    cursor: default;
}

.gender-btn:disabled:not(.active) {
    opacity: 0.4;
}

.selection-error {
    text-align: center;
    color: var(--error-red);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Athlete Email Callout */
.athlete-email-callout {
    max-width: 560px;
    margin: 0 auto 1.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--white);
    border: 2px solid #fbbf24;
    border-radius: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9375rem;
    text-align: center;
    line-height: 1.5;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-badge.badge-subtle {
    background: #e8e8e8;
    color: var(--text-dark);
    font-size: 0.6875rem;
    padding: 0.2rem 0.75rem;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray);
}

.card-description {
    color: var(--text-gray);
    font-size: 0.9375rem;
    margin: 0.75rem 0 1.25rem;
}

.btn-checkout {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary-blue);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    min-height: 44px;
}

.btn-checkout:hover {
    background: var(--primary-blue-dark);
}

.btn-checkout:active {
    transform: scale(0.98);
}

.btn-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.consent-line {
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 480px;
    margin: 0 auto;
}

.consent-line a {
    color: #93c5fd;
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--primary-blue);
    border-top: none;
    padding: 2rem 0;
    margin-top: 0;
}

.footer-buttons {
    text-align: center;
    margin-bottom: 1rem;
}

.btn-contact {
    display: inline-block;
    background: var(--white);
    color: var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    min-height: 44px;
}

.btn-contact:hover {
    background: var(--primary-blue-light);
    transform: translateY(-1px);
}

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

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
}

.footer-socials a:hover {
    color: var(--white);
    transform: translateY(-1px);
}

.footer-links {
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.75rem;
}

/* Powered by HourSchool */
.powered-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.powered-by-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.powered-by-logo {
    width: 2rem;
    height: 2rem;
    display: block;
}

/* Prevent iOS Safari auto-zoom on input/select focus (requires >= 16px font-size) */
@media (max-width: 767px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* ============ Responsive ============ */

/* Tablet (640px+) */
@media (min-width: 640px) {
    .headline {
        font-size: 2.75rem;
    }

    .philosophy-line {
        font-size: 1.0625rem;
    }

    .subhead {
        font-size: 1.25rem;
    }

    .stats-row {
        gap: 4rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .steps {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .philosophy-cards {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .sport-selection {
        flex-direction: row;
        align-items: flex-end;
    }

    .sport-field {
        flex: 1;
    }

    .gender-field {
        flex: 0 0 auto;
    }

    .pricing-cards {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: start;
    }
}

/* Desktop (768px+) */
@media (min-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .headline {
        font-size: 3rem;
    }

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

    .how-it-works,
    .screenshot-showcase,
    .philosophy-section,
    .origin-story,
    .pricing-section {
        padding: 4rem 0;
    }
}
