/* 
---------------------------------------------
Table of contents
---------------------------------------------
01. font & reset css
02. general
03. header
04. hero
05. features
06. how-it-works
07. about
08. pricing
09. footer
10. responsive
--------------------------------------------- 
*/

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

:root {
    --primary-color: #0F7C10;
    /* A fresh, healthy green */
    --secondary-color: #2ECC71;
    /* A lighter, vibrant green */
    --dark-color: #34495e;
    /* A deep, neutral blue-gray for text */
    --gray-color: #7f8c8d;
    /* A softer gray */
    --light-gray-color: #f8f9f9;
    /* A very light gray for backgrounds */
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

/* 02. general */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--gray-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
    box-shadow: 0 14px 28px rgba(46, 204, 113, 0.4);
    color: var(--white-color);
}

/* 03. header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: var(--white-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul {
    display: flex;
    gap: 30px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-color);
}

nav ul li a {
    font-weight: 500;
    color: var(--dark-color);
}

header .cta-button {
    padding: 10px 20px;
}

/* 04. hero */
#hero {
    padding-top: 150px;
    padding-bottom: 100px;
    padding-left: 5%;
    padding-right: 5%;
    background-color: var(--light-gray-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 40px;
}

.social-btns {
    display: flex;
    gap: 1rem;
}

.stores {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.6;
    justify-content: flex-start;
}

.coming-soon-btn {
    width: 220px;
}

.app-store-download-btn {
    width: 220px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-family);
    transition: transform 0.2s ease, background-color 0.2s ease;
    background-color: #000;
    border: 1px solid #444;
}

.app-btn:hover {
    transform: scale(1.05);
    background-color: #111;
    color: #fff;
}

.app-btn i {
    font-size: 2rem;
}

.app-btn p {
    margin: 0;
    line-height: 1.2;
    text-align: left;
    font-size: 0.8rem;
    color: var(--white-color)
}

.app-btn .big-txt {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
}

.hero-image-stack {
    position: relative;
    width: 40%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stacked-card {
    position: absolute;
    width: 80%;
    max-width: 320px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.stacked-card[data-index="1"] {
    transform: rotate(-12deg) translate(-20%, -15%);
    z-index: 1;
}

.stacked-card[data-index="2"] {
    transform: rotate(-15deg) translate(-45%, 10%);
    z-index: 2;
}

.stacked-card[data-index="3"] {
    transform: rotate(9deg) translate(30%, -10%);
    z-index: 3;
}

.stacked-card.active {
    transform: scale(1.25) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

/* 05. features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    width: 90%;
    margin: 0 auto;
}

.feature-item {
    padding: 40px 30px;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background-color: var(--light-gray-color);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: var(--primary-color);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 2;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* 06. how-it-works */
#how-it-works {
    background-color: var(--light-gray-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
    width: 80%;
    margin: 0 auto;
}

.step {
    flex-basis: 30%;
}

.step span {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* 07. about */
#about {
    background-color: var(--white-color);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 80%;
    margin: 0 auto;
}

.about-content img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content p {
    font-size: 1.1rem;
    font-style: italic;
    max-width: 600px;
}

/* 08. pricing */
#pricing {
    background-color: var(--white-color);
}

.pricing-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    padding: 40px;
    text-align: center;
}

.pricing-toggle {
    display: inline-flex;
    background: var(--light-gray-color);
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 30px;
}

.toggle-btn {
    padding: 10px 25px;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--gray-color);
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.price-display {
    margin-bottom: 20px;
}

.price-display .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.price-display .billing-cycle {
    font-size: 1.1rem;
    color: var(--gray-color);
}

.plan-description {
    color: var(--gray-color);
    margin-bottom: 30px;
}

.plan-details ul {
    text-align: left;
    display: inline-block;
    margin-bottom: 40px;
}

.plan-details ul li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.plan-details ul li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.cancel-note {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: var(--gray-color);
}

/* FAQ Section */
#faq {
    background-color: var(--light-gray-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container details {
    background: var(--white-color);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-container summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-container summary::-webkit-details-marker {
    display: none;
}

.faq-container summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-container details[open] summary::after {
    transform: rotate(45deg);
}

.faq-container details p {
    padding: 0 20px 20px;
    color: var(--gray-color);
    line-height: 1.8;
}

.legal-content {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 2rem 4rem;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray-color);
    padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

.legal-content li {
    margin-bottom: 0.5rem;
}


#founder {
    background-color: var(--light-gray-color);
}


/* 09. community */
#community {
    text-align: center;
    background-color: var(--white-color);
}

#community .social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

#community .social-media .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--white-color);
    color: var(--dark-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#community .social-media .social-icon:hover {
    color: var(--white-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#community .social-media .instagram:hover {
    background-color: #E1306C;
    /* Instagram Pink */
}

#community .social-media .twitter:hover {
    background-color: #000000;
    /* X Black */
}

#community .social-media .social-icon i {
    font-size: 24px;
}


/* 10. footer */
footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--light-gray-color);
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white-color);
}

/* Data Sources Section */
#about .section-heading p {
    max-width: 800px;
    margin: 0 auto;
}

.source-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.source-logos img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.source-logos a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.source-logo-other {
    font-weight: 600;
    color: var(--gray-color);
}

/* 11. responsive */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-content,
    .hero-image-stack {
        max-width: 100%;
    }

    .hero-image-stack {
        margin-top: 120px;
        min-height: 300px;
    }

    .stacked-card {
        max-width: 280px;
        width: 98%;
        /* Make cards a bit larger on mobile */
    }

    .stacked-card[data-index="1"] {
        transform: rotate(1deg) translate(0%, -25%);
    }

    .stacked-card[data-index="2"] {
        transform: rotate(-12deg) translate(-50%, -10%);
    }

    .stacked-card[data-index="3"] {
        transform: rotate(9deg) translate(50%, 8%);
    }


    .stacked-card.active {
        transform: scale(1.2) rotate(0deg) !important;
    }

    .social-btns {
        flex-direction: column;
        align-items: center;
    }

    .stores {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    #how-it-works,
    #pricing {
        padding-left: 20px;
        padding-right: 20px;
    }

    .faq-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
    }

    .features-grid,
    .pricing-plans,
    .steps,
    .about-content {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 30px;
    }

    .pricing-plans {
        align-items: center;
    }

    .legal-content {
        padding: 1.5rem;
        margin: 100px auto 30px;
    }

    .source-logos {
        gap: 20px;
        max-width: 90%;
        margin: 0 auto;
    }

    .source-logos img {
        max-height: 40px;
    }

    .source-logos a {
        flex-basis: calc(33.33% - 20px);
        display: flex;
        justify-content: center;
    }
}