@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #2E8B57; /* SeaGreen to match the app */
    --background-color: #A28B71; /* Woody Brown */
    --text-on-dark: #f5f5f5; /* Off-white for readability */
    --secondary-text-on-dark: #f1e9e9; /* Lighter gray for subtitles */
    
    --text-on-light: #333333; /* Dark gray for text on cards */
    --secondary-text-on-light: #4a4a4a;

    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-background: #f0f0f0; /* Light grey */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-on-dark);
    line-height: 1.6;
}

header {
    background: var(--header-background);
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    position: relative;
}

nav {
    /* The nav tag is now just a semantic wrapper */
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-background);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.logo {
    height: 50px;
}

h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

main {
    padding: 1.5rem;
    text-align: center;
}

.hero {
    padding: 0rem 1rem 2rem;
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.catchphrase {
    font-size: 2rem;
    font-style: italic;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 1.5rem 0;
}

.hero .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--secondary-text-on-dark);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(46, 139, 87, 0.4);
}

.cta-button:hover {
    background-color: #256d44; /* Darker green */
    transform: translateY(-3px);
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(245, 245, 245, 0.3); /* A subtle line color */
    width: 75%;
    margin: 3rem auto 0; /* 3rem top, auto horizontal, 0 bottom */
}

.features {
    padding: 3rem 1rem;
}

.features h3 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
}

/* Underline effect for the heading */
.features h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.feature-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    max-width: 320px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-light);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 0;
}

.status-note {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.card p {
    font-size: 1rem;
    color: var(--secondary-text-on-light);
}

.content-page {
    background-color: var(--card-background);
    color: var(--text-on-light);
    padding: 2rem 3rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: left;
}

.content-page h2, .content-page h3 {
    color: var(--primary-color);
}

.content-page h3 {
    margin-top: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.updated-date {
    font-style: italic;
    color: #888;
    margin-bottom: 1.5rem;
}

.disclaimer {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 5px;
    padding: 1rem;
    margin: 2rem 0;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

.early-access-note {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-style: italic;
    color: var(--text-on-light);
    font-size: 0.9rem;
}

.header-donate-btn {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.header-donate-btn:hover {
    background-color: #256d44;
    transform: translateY(-50%) scale(1.05);
}

.mobile-header-extras {
    display: none; /* Hidden by default on desktop */
}


@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-header-extras {
        display: block;
        text-align: center;
        padding: 0rem 1rem 0;
        margin-top: -2rem;
        margin-bottom: -.5rem;
    }
    
    .mobile-header-extras p {
        font-style: italic;
        margin-bottom: 0.75rem;
    }
    
    .mobile-header-extras .header-donate-btn {
        display: inline-block;
        position: static;
        transform: none;
        margin: 0 auto;
    }
    
    .mobile-header-extras .header-donate-btn:hover {
        transform: scale(1.05);
    }
    
    .logo {
        height: 40px; /* Make logo slightly smaller on mobile */
    }


    header {
        padding: 1rem;
    }

    nav {
        padding: 0.5rem 1rem;
        width: auto; /* Allow nav to size naturally */
    }

    main {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 0.25rem 0 2rem;
    }

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

    .hero .subtitle {
        font-size: 1rem;
    }
    
    .features h3 {
        font-size: 1.8rem;
    }

    .feature-cards {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .card {
        max-width: 90%;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 2rem 2.5rem;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    color: var(--text-on-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.8rem;
}

.modal-support-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-support-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s ease;
    font-size: 1rem;
}

.modal-support-links a:hover {
    transform: scale(1.03);
}

.patreon-modal-link { background-color: #f96854; }
.patreon-modal-link .fab { font-size: 1.2rem; }

.kofi-modal-link { background-color: #13c3ff; }
.kofi-modal-link img { height: 24px; }

.bmac-modal-link {
    padding: 0; /* The image button has its own padding */
    background-color: transparent;
}
.bmac-modal-link img { 
    height: 48px; 
    border-radius: 8px;
}

footer a {
    color: #2E8B57; /* Primary color for consistency */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-legal {
    font-size: 0.9rem;
    color: #ccc;
} 