/* --- Variables --- */
:root {
    --color-bg-oatmeal: #F2F0E6;
    --color-text-juniper: #2A4B44;
    --color-accent-terracotta: #C66B52;
    --color-accent-terracotta-hover: #b05d46;
    --color-white-soft: #fafafa;
    --font-headline: 'Lora', serif;
    --font-body: 'Nunito', sans-serif;
    --container-width: 1100px;
    --border-radius-soft: 16px;
    --shadow-soft: 0 10px 30px -5px rgba(42, 75, 68, 0.15);
}

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

body {
    background-color: var(--color-bg-oatmeal);
    background-image: radial-gradient(circle at center, #F2F0E6 0%, #ebe8db 100%);
    color: var(--color-text-juniper);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-headline);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-juniper);
}

p {
    font-size: 1.1rem;
    color: var(--color-text-juniper);
    opacity: 0.9;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-2-uneven {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.text-center {
    text-align: center;
}

/* --- Buttons & UI --- */
.btn-primary {
    background-color: var(--color-accent-terracotta);
    color: var(--color-white-soft);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: var(--font-body);
}

.btn-primary:hover {
    background-color: var(--color-accent-terracotta-hover);
}

.btn-secondary {
    display: inline-block;
    color: var(--color-accent-terracotta);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--color-accent-terracotta);
    padding-bottom: 2px;
}

.rounded-shadow-image {
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-soft);
}

/* --- Sections --- */
.navbar {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand-login {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-juniper);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border: 1.5px solid var(--color-text-juniper);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.nav-brand-login:hover {
    background: var(--color-text-juniper);
    color: var(--color-white-soft);
}

.brand-logo {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.8rem;
}

.hero-section {
    padding: 3rem 0 5rem 0;
}

.hero-subtext {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.waitlist-form-container {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 2rem;
    border-radius: var(--border-radius-soft);
    border: 1px solid rgba(42, 75, 68, 0.1);
    max-width: 450px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.signup-form {
    display: flex;
    gap: 0.5rem;
}

.signup-form input {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid rgba(42, 75, 68, 0.2);
    border-radius: 50px;
    background-color: var(--color-white-soft);
    font-family: var(--font-body);
    color: var(--color-text-juniper);
    outline: none;
}

.privacy-subtext {
    font-size: 0.85rem;
    margin-top: 0.8rem;
    opacity: 0.7;
}

.how-it-works-section {
    padding: 5rem 0;
    background-color: rgba(42, 75, 68, 0.03);
}

.section-header {
    margin-bottom: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg-oatmeal);
    border-radius: var(--border-radius-soft);
    border: 1px solid rgba(42, 75, 68, 0.05);
}

.step-icon {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    color: var(--color-accent-terracotta);
    margin-bottom: 1rem;
}

.vibe-section {
    padding: 5rem 0;
}

.footer-cta {
    padding: 5rem 0 2rem 0;
    background-color: var(--color-text-juniper);
    color: var(--color-bg-oatmeal);
}

.footer-cta h2,
.footer-cta p {
    color: var(--color-bg-oatmeal);
}

.centered-form {
    max-width: 500px;
    margin: 2rem auto;
}

.copyright {
    margin-top: 3rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- MODAL STYLES (This is what hides/shows the comic) --- */
.modal {
    display: none;
    /* THIS IS THE KEY: Hides it by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(42, 75, 68, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-soft);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--color-bg-oatmeal);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--color-accent-terracotta);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .grid-2,
    .grid-3,
    .grid-2-uneven {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-section {
        text-align: center;
        padding-top: 1rem;
    }

    .hero-image-container {
        order: -1;
    }

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

    .modal-content {
        width: 95%;
    }

    .close-btn {
        right: 10px;
    }
}

/* --- SECURITY FIX M10: Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-text-juniper);
    color: var(--color-white-soft);
    padding: 1rem 2rem;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    max-width: var(--container-width);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--color-accent-terracotta);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: var(--color-accent-terracotta-hover);
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.cookie-btn.accept {
    background-color: var(--color-accent-terracotta);
    color: white;
}

.cookie-btn.accept:hover {
    background-color: var(--color-accent-terracotta-hover);
}

.cookie-btn.decline {
    background-color: transparent;
    color: var(--color-white-soft);
    border: 1px solid var(--color-white-soft);
}

.cookie-btn.decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}