/* ======================================
   ATHLEOS DESIGN SYSTEM
   Ivy League Modern Aesthetic
   ====================================== */

/* --- Design Tokens --- */
:root {
    /* Colors */
    --color-hunter: #2D5A47;
    --color-hunter-dark: #1E3D30;
    --color-navy: #1E3A5F;
    --color-charcoal: #2C2C2C;
    --color-charcoal-light: #4A4A4A;
    --color-cream: #FAF8F5;
    --color-cream-dark: #F0EDE8;
    --color-gold: #B8956E;
    --color-gold-light: #D4B896;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-xxl: 120px;

    /* Shadows */
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-button: 0 2px 8px rgba(45, 90, 71, 0.3);

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-charcoal);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--color-charcoal-light);
}

.highlight {
    color: var(--color-hunter);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
    padding: var(--space-xxl) 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(184, 149, 110, 0.12);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.hero-title {
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    color: var(--color-charcoal-light);
}

/* --- Waitlist Form --- */
.waitlist-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.waitlist-form input[type="email"] {
    flex: 1;
    min-width: 240px;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-sans);
    font-size: 16px;
    border: 2px solid var(--color-cream-dark);
    border-radius: var(--radius-md);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-hunter);
    box-shadow: 0 0 0 3px rgba(45, 90, 71, 0.1);
}

.waitlist-form button {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: var(--color-hunter);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: var(--shadow-button);
}

.waitlist-form button:hover {
    background: var(--color-hunter-dark);
    transform: translateY(-1px);
}

.waitlist-form button:active {
    transform: translateY(0);
}

.form-note {
    font-size: 14px;
    color: var(--color-charcoal-light);
    margin-top: var(--space-sm);
    opacity: 0.7;
}

/* --- Expanded Form --- */
.waitlist-form--compact .form-row {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.waitlist-form--expanded {
    max-width: 600px;
    flex-direction: column;
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-charcoal);
}

.form-field .required {
    color: var(--color-gold);
}

.form-field input,
.form-field select {
    padding: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    border: 2px solid var(--color-cream-dark);
    border-radius: var(--radius-md);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--color-hunter);
    box-shadow: 0 0 0 3px rgba(45, 90, 71, 0.1);
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A4A4A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-submit {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: var(--color-hunter);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    box-shadow: var(--shadow-button);
}

.form-submit:hover {
    background: var(--color-hunter-dark);
    transform: translateY(-1px);
}

.form-submit:active {
    transform: translateY(0);
}

/* --- Pain Points Section --- */
.pain-section {
    padding: var(--space-xxl) 0;
    background: white;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.pain-card {
    background: var(--color-cream);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.pain-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.pain-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-navy);
}

.pain-card p {
    font-size: 15px;
    line-height: 1.7;
}

/* --- Solution Section --- */
.solution-section {
    padding: var(--space-xxl) 0;
    background: var(--color-cream);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
}

.solution-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--color-hunter);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.solution-number {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.solution-card h3 {
    color: var(--color-hunter);
    margin-bottom: var(--space-xs);
}

.solution-tagline {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-charcoal-light);
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.solution-card>p:not(.solution-tagline) {
    margin-bottom: var(--space-md);
}

.solution-example {
    background: var(--color-cream);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.8;
}

.example-label {
    display: block;
    font-weight: 600;
    color: var(--color-charcoal);
}

/* --- Stats Section --- */
.stats-section {
    padding: var(--space-xl) 0;
    background: var(--color-navy);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Philosophy Section --- */
.philosophy-section {
    padding: var(--space-xxl) 0;
    background: white;
}

.philosophy-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-charcoal);
    border-left: none;
    padding: 0;
}

.philosophy-quote strong {
    color: var(--color-hunter);
}

/* --- Answer Blocks Section --- */
.answer-section {
    padding: var(--space-xxl) 0;
    background: white;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: var(--space-md);
}

.answer-block {
    background: var(--color-cream);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--color-navy);
}

.answer-block h3 {
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.answer-block h4 {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-charcoal);
    margin: var(--space-md) 0 var(--space-sm);
}

.answer-block p {
    margin-bottom: var(--space-sm);
    font-size: 15px;
    line-height: 1.7;
}

.answer-block ul {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-sm);
}

.answer-block ul li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-charcoal-light);
}

.answer-block ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: 600;
}

.roster-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-sm) 0 var(--space-md);
    font-size: 15px;
}

.roster-table th {
    text-align: left;
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-charcoal-light);
    border-bottom: 2px solid var(--color-navy);
}

.roster-table td {
    padding: var(--space-xs) var(--space-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--color-charcoal);
}

.roster-table tr:last-child td {
    border-bottom: none;
}

.answer-source {
    font-size: 13px;
    color: var(--color-charcoal-light);
    opacity: 0.7;
    margin-top: var(--space-sm);
}

.answer-source a {
    color: var(--color-navy);
    text-decoration: underline;
}

/* --- Comparison Table Section --- */
.comparison-section {
    padding: var(--space-xxl) 0;
    background: var(--color-cream);
}

.comparison-subtitle {
    text-align: center;
    font-size: 1.125rem;
    margin-top: calc(var(--space-lg) * -1 + var(--space-sm));
    margin-bottom: var(--space-lg);
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.comparison-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: white;
    font-size: 15px;
}

.comparison-table thead {
    background: var(--color-charcoal);
}

.comparison-table th {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    color: white;
    white-space: nowrap;
}

.comparison-table th.highlight-col {
    background: var(--color-hunter);
}

.comparison-table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-charcoal-light);
    vertical-align: top;
}

.comparison-table td.highlight-col {
    background: rgba(45, 90, 71, 0.04);
    color: var(--color-hunter);
    font-weight: 500;
}

.comparison-table tbody tr:hover {
    background: var(--color-cream);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
    font-size: 14px;
}

/* --- Infographic Section --- */
.infographic-section {
    padding: var(--space-xxl) 0;
    background: white;
}

.infographic-subtitle {
    text-align: center;
    max-width: 700px;
    margin: calc(var(--space-lg) * -1 + var(--space-sm)) auto var(--space-lg);
    font-size: 1.125rem;
}

.infographic-figure {
    text-align: center;
    margin: 0;
}

.infographic-figure img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.infographic-figure figcaption {
    margin-top: var(--space-md);
    font-size: 14px;
    font-style: italic;
    color: var(--color-charcoal-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Venues Section --- */
.venues-section {
    padding: var(--space-xxl) 0;
    background: var(--color-cream);
}

.venues-subtitle {
    text-align: center;
    font-size: 1.125rem;
    margin-top: calc(var(--space-lg) * -1 + var(--space-sm));
    margin-bottom: var(--space-lg);
}

.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.venue-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.venue-sport {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    margin-bottom: var(--space-xs);
}

.venue-card h3 {
    color: var(--color-hunter);
    margin-bottom: var(--space-sm);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.venue-card>p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.venue-tips {
    list-style: none;
    padding: 0;
}

.venue-tips li {
    padding: var(--space-xs) 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-charcoal-light);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.venue-tips li:first-child {
    border-top: none;
}

/* --- CTA Section --- */
.cta-section {
    padding: var(--space-xxl) 0;
    background: linear-gradient(180deg, var(--color-cream-dark) 0%, var(--color-cream) 100%);
    text-align: center;
}

.cta-title {
    margin-bottom: var(--space-sm);
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.cta-footer {
    margin-top: var(--space-lg);
}

.cta-footer p {
    font-size: 15px;
    font-style: italic;
}

/* --- Footer --- */
.footer {
    padding: var(--space-lg) 0;
    background: var(--color-charcoal);
    text-align: center;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-xs);
}

.footer-copy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: var(--color-hunter);
    color: white;
    font-size: 1.75rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.modal-content h3 {
    margin-bottom: var(--space-xs);
}

.modal-content p {
    margin-bottom: var(--space-md);
}

.modal-close {
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-charcoal);
    background: var(--color-cream);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: var(--color-cream-dark);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-xl) 0;
    }

    .hero-subtitle br {
        display: none;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-form input[type="email"],
    .waitlist-form button {
        width: 100%;
        min-width: unset;
    }

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

    .philosophy-quote br {
        display: none;
    }

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

    .waitlist-form--compact .form-row {
        flex-direction: column;
    }

    .waitlist-form--compact .form-row input,
    .waitlist-form--compact .form-row button {
        width: 100%;
    }

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

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

    .comparison-table {
        font-size: 13px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-xs) var(--space-sm);
    }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast focus states for Parking Lot Test */
:focus-visible {
    outline: 3px solid var(--color-hunter);
    outline-offset: 2px;
}