/* --- v1.1.3 --- */
/* --- General Setup & Variables --- */
:root {
    --bg-color: #f0f2f5; /* A slightly lighter version of #c4cddc for better contrast */
    --primary-green: #2f894d;
    --accent-yellow: #fad044;
    --dark-text: #333a45;
    --light-text: #666;
    --card-bg: #ffffff;
    --border-color: #dfe3e8;
    --font-family: 'Nunito Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family), sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--dark-text);
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--dark-text);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-green);
}

p {
    margin-bottom: 1rem;
    color: var(--light-text);
    font-size: 1.1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a4d2b;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

.nav-logo img {
    width: 48px;
    height: 48px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-text);
}

.cta-button {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #1a4d2b;
    color: white;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-text);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem 20px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.download-buttons {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.download-buttons img {
    height: 50px;
    width: auto;
    transition: transform 0.2s ease;
}

.download-buttons a:hover img {
    transform: scale(1.05);
}


/* --- Features Section --- */
.features-section {
    padding: 4rem 20px;
    background-color: var(--card-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-card .feature-img {
    max-width: 100%;
    height: 300px; /* Or a fixed height you prefer */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}


.feature-card h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

/* --- About Section --- */
.about-section {
    padding: 4rem 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
}

/* --- Contact Section --- */
.contact-section {
    padding: 4rem 20px;
    background-color: var(--card-bg);
}

.contact-section p {
    text-align: center;
}

.feedback-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.feedback-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feedback-form input[type="email"],
.feedback-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family), sans-serif;
    font-size: 1rem;
}

.feedback-form button[type="submit"] {
    background-color: var(--primary-green);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    width: 100%;
    transition: background-color 0.3s ease;
}

.feedback-form button[type="submit"]:hover {
    background-color: #1a4d2b;
}

#form-feedback-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}
#form-feedback-message.success {
    background-color: #e6ffed; border: 1px solid #34c759; color: #22863a; display: block;
}
#form-feedback-message.error {
    background-color: #ffebee; border: 1px solid #ff5252; color: #c62828; display: block;
}

.contact-options {
    text-align: center;
    margin-top: 2rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-text);
    color: #a0aec0;
    padding: 2rem 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.footer-links a {
    color: white;
    font-weight: 700;
    padding: 0.25rem 0.75rem; /* Add padding for better tap targets */
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

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

.footer-version {
    font-size: 0.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        gap: 0.25rem;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
     .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    section.hero-section .hero-content {
        width: 100%;
        margin: 2rem 2rem 0 2rem;
    }
    
    .download-buttons {
        justify-content: center;
        height: 50px;
        width: auto;
        margin: 2rem 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* --- Legal Page Specific Styles --- */
.legal-section {
    padding: 4rem 20px;
    background-color: var(--card-bg);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.legal-container h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--dark-text);
}

.legal-container h2 {
    font-size: 1.6rem;
    text-align: left;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-container h3 {
    font-size: 1.2rem;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.legal-container p, .legal-container li {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.legal-container ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.legal-container strong {
    color: var(--dark-text);
    font-weight: 700;
}

/* --- Invitation Page Specific Styles --- */
.invitation-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 20px;
    min-height: calc(100vh - 160px); /* Full height minus header and footer */
}

.invitation-card {
    max-width: 650px;
    width: 100%;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.invitation-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.invitation-card h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--dark-text);
}

.invitation-card > p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.invitation-cta {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.invitation-cta p {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.invitation-cta .download-buttons {
    justify-content: center;
}

.read-more-link {
    margin-top: 2rem;
}

.read-more-link a {
    font-size: 0.9rem;
    color: var(--light-text);
    text-decoration: underline;
}

/* --- Tutorial Page Specific Styles --- */
.tutorial-layout {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    gap: 3rem;
}

.tutorial-nav {
    flex: 0 0 250px; /* Do not grow, do not shrink, base width 250px */
    position: sticky;
    top: 100px; /* 80px header height + 20px margin */
    align-self: flex-start; /* Important for sticky positioning */
    height: calc(100vh - 120px);
}

.tutorial-nav h3 {
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.tutorial-nav ul {
    list-style: none;
}

.tutorial-nav .nav-topic {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--light-text);
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.tutorial-nav .nav-topic:hover {
    background-color: var(--border-color);
    color: var(--dark-text);
}

.tutorial-nav .nav-topic.active {
    background-color: var(--primary-green);
    color: white;
}

.tutorial-content {
    flex: 1;
    min-width: 0; /* Prevents flexbox overflow issues */
}

.tutorial-content section {
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

.tutorial-content section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tutorial-content h1 {
    font-size: 2.8rem;
}

.tutorial-content h2 {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.tutorial-content .lead {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 2rem;
}

.no-cents-box {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.tutorial-screenshot {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 1.5rem;
    display: block;
}

/* Responsive adjustments for tutorial */
@media (max-width: 992px) {
    .tutorial-layout {
        flex-direction: column;
    }
    .tutorial-nav {
        position: static;
        height: auto;
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 1rem;
        margin-bottom: 2rem;
    }
    .tutorial-nav h3 {
        text-align: center;
    }
    .tutorial-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

.read-more-tutorials {
    padding-top: 2rem;
    text-align: center;
}

/* --- Philosophy Page Specific Styles --- */
.philosophy-section {
    padding: 4rem 20px;
    background-color: var(--card-bg);
}

.philosophy-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-container h1 {
    font-size: 2.8rem;
    color: var(--dark-text);
}

.philosophy-container .lead {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin: 0 auto 3rem auto;
    max-width: 700px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.philosophy-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.philosophy-card h3 {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.philosophy-container .conclusion {
    font-size: 1.2rem;
    font-weight: 700;
    max-width: 700px;
    margin: 0 auto;
    color: var(--dark-text);
}

/* --- Privacy Page Specific Styles --- */
.privacy-approach-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: left;
    margin-bottom: 2rem;
}

.privacy-approach-card h2 {
    font-size: 1.6rem;
    color: var(--primary-green);
    text-align: left;
    margin-bottom: 1rem;
}

.privacy-approach-card ol,
.privacy-approach-card ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.privacy-approach-card li {
    margin-bottom: 0.5rem;
}

.honest-thought-box {
    background-color: #e6f4ea; /* Light green background */
    border: 1px solid var(--primary-green);
    color: #1a4d2b;
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
}

.honest-thought-box h3 {
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.honest-thought-box p {
    color: #1a4d2b;
}

/* --- Navigation Active State --- */
.nav-menu .nav-link.active {
    color: var(--primary-green);
}

section[id] {
    scroll-margin-top: 100px; /* Offset for the 80px header + 20px of extra space */
}

/* --- 404 Error Page Specific Styles --- */
.error-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 20px;
    min-height: calc(100vh - 160px); /* Full height minus header and footer */
}

.error-card {
    max-width: 600px;
    width: 100%;
}

.error-card h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--dark-text);
}

.error-card p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.error-card .cta-button {
    display: inline-block; /* Make the button behave correctly */
}