/* --- Color Palette --- */
:root {
    --primary-green: #557D55; /* Main green from the theme */
    --dark-bg: #4D3F38; /* Dark Brown/Gray */
    --panel-bg: #4D554C; /* Dark Green/Blue */
    --accent-tan: #86735B;
    --light-text: #BFB8B4;
    --white-text: #f4f4f4;
    --disabled-gray: #888;
    --disabled-text: #ccc;
}

/* --- Font Setup --- */
@font-face {
    font-family: 'Bedstead';
    src: url('assets/bedstead.bold-condensed.otf') format('opentype');
}

/* --- General Styles --- */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--light-text);
    scroll-behavior: smooth;
    line-height: 1.6;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/screenshot.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

h1, h2, h3 {
    font-family: 'Bedstead', sans-serif;
    color: var(--white-text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--light-text);
}

p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1rem auto;
}

a {
    color: var(--accent-tan);
}

/* --- Hero Section --- */
.hero {
    background-color: rgba(0,0,0,0.3); /* Slight overlay to ensure text readability */
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: white;
}

.title-icon {
    height: 3.5rem; /* Match font size */
    margin-right: 1.5rem;
}

.subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-green);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-family: 'Bedstead', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--light-gray);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-color: #6aa86a; /* A slightly lighter green for hover */
    transform: translateY(-2px);
}

.btn-primary.disabled {
    background-color: var(--disabled-gray);
    color: var(--disabled-text);
    cursor: not-allowed;
    border-color: #666;
}

.btn-primary.disabled:hover {
    background-color: var(--disabled-gray);
    transform: none;
}


/* --- Sections --- */
main > section {
    padding: 4rem 2rem;
}

.features {
    background-color: transparent;
}

.feature-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature-item {
    flex-basis: 320px;
    text-align: center;
    background-color: var(--panel-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.feature-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.feature-item .strava-logo {
    width: 100%;
    height: auto;
}

.feature-item h3 {
    font-size: 1.8rem;
    color: var(--light-text);
}

.buy {
    background-color: var(--panel-bg);
    text-align: center;
}

.steam-note {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-top: 1rem;
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        flex-direction: column; /* Stack icon on top of text */
    }
    .title-icon {
        height: 2.5rem;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    .hero {
        min-height: 30vh;
    }
    .feature-list {
        flex-direction: column;
        align-items: center;
    }
}