/* ============================================
   Beanstalk - Child Growth Tracker Landing Page
   Brand Colors:
     Primary Green:  #3BA55D
     Dark Green:     #1B5E20
     Light Mint:     #EBF7EB
     White:          #FFFFFF
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #FFFFFF;
}

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

a {
    color: #3BA55D;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, #EBF7EB 0%, #d4efd4 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    margin: 0 auto 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #1B5E20;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3BA55D;
    margin-bottom: 16px;
}

.tagline {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 32px;
    line-height: 1.7;
}

.app-store-badge img {
    height: 54px;
    width: auto;
    display: inline-block;
    transition: transform 0.2s ease;
}

.app-store-badge:hover img {
    transform: scale(1.05);
}

.app-store-badge:hover {
    text-decoration: none;
}

/* --- Screenshots --- */
.screenshots {
    padding: 80px 0;
    background: #FFFFFF;
}

.screenshots h2,
.features h2,
.pricing h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1B5E20;
    margin-bottom: 40px;
}

.screenshot-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.screenshot-item {
    width: calc((100% - 48px) / 3);
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    background: #f0f0f0;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
}

.screenshot-item p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
}

/* --- Features --- */
.features {
    padding: 80px 0;
    background: #EBF7EB;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1B5E20;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* --- Pricing --- */
.pricing {
    padding: 80px 0;
    background: #FFFFFF;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: -24px;
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 720px;
    margin: 0 auto;
}

.pricing-card {
    background: #FFFFFF;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.pricing-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pricing-card.pro {
    border-color: #3BA55D;
    box-shadow: 0 4px 20px rgba(59, 165, 93, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #3BA55D;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1B5E20;
    margin-bottom: 8px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
}

.price-period {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.pricing-features {
    list-style: none;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: #555;
    position: relative;
    padding-left: 28px;
}

.pricing-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #3BA55D;
    font-weight: 700;
    font-size: 1rem;
}

/* --- Footer --- */
footer {
    background: #1B5E20;
    color: #FFFFFF;
    padding: 60px 0 40px;
    text-align: center;
}

.footer-cta {
    margin-bottom: 40px;
}

.footer-cta h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 16px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Responsive --- */

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

    .screenshot-item {
        width: calc((100% - 32px) / 3);
    }

    .screenshot-grid {
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .hero {
        padding: 60px 0 48px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .screenshots h2,
    .features h2,
    .pricing h2 {
        font-size: 1.6rem;
    }

    .screenshot-item {
        width: calc((100% - 12px) / 2);
    }

    .screenshot-grid {
        gap: 12px;
    }

    .screenshots,
    .features,
    .pricing {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .footer-links a {
        display: block;
        margin: 8px 0;
    }

    .footer-cta h2 {
        font-size: 1.3rem;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 16px;
    }

    .screenshot-item {
        width: 100%;
    }

    .screenshot-grid {
        max-width: 260px;
    }
}
