﻿/* Homepage styles — add to the end of BabyTracker.css */

/* Palette (keeps existing greens in the project) */
:root {
    --brand: rgb(120, 179, 95);
    --brand-2: rgb(153, 183, 83);
    --muted: #6b6b6b;
    --accent: #f59e0b;
    --bg: #ffffff;
    --card-bg: #fbfdf9;
    --radius: 12px;
}

/* Page container */
.home {
    max-width: 980px;
    margin: 32px auto;
    padding: 16px;
    color: #0b1220;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Hero */
.hero {
    background: linear-gradient(180deg, rgba(120,179,95,0.06), rgba(153,183,83,0.02));
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(16,24,40,0.04);
    margin-bottom: 28px;
}

    .hero h1 {
        margin: 0 0 8px;
        color: var(--brand-2);
        font-weight: 700;
        font-size: clamp(1.6rem, 2.6vw, 2.4rem);
        line-height: 1.05;
    }

.lede {
    margin: 0 auto 18px;
    max-width: 760px;
    color: var(--muted);
    font-size: 1.06rem;
}

/* CTAs */
.hero-cta {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background-color: var(--brand);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(16,24,40,0.06);
    transition: transform .08s ease, box-shadow .12s ease, background-color .12s ease;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(16,24,40,0.08);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn:focus {
        outline: 3px solid rgba(120,179,95,0.18);
        outline-offset: 3px;
    }

    .btn.btn-ghost {
        background: transparent;
        color: var(--brand-2);
        border: 1px solid rgba(24,40,24,0.06);
    }

/* Features grid */
.features {
    margin: 28px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feature {
    background: var(--card-bg);
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(16,24,40,0.03);
}

    .feature strong {
        display: block;
        font-size: 1.05rem;
        color: var(--brand-2);
        margin-bottom: 6px;
    }

/* Privacy block */
.privacy {
    margin: 28px 0;
    padding: 18px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,240,0.6), rgba(255,255,240,0.3));
    border: 1px solid rgba(240, 235, 200, 0.6);
}

.privacy-statement {
    margin: 0 0 12px;
    font-weight: 600;
}

.privacy-list {
    margin: 0 0 8px 0;
    padding-left: 1.15rem;
    color: var(--muted);
}

    .privacy-list li {
        margin: 6px 0;
    }

/* How it works */
.how-it-works {
    margin: 28px 0;
}

    .how-it-works ol {
        margin: 8px 0 0 1.25rem;
        color: var(--muted);
    }

/* Footer */
.home-footer {
    margin-top: 28px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Responsive layout: feature grid for wider screens */
@media (min-width: 700px) {
    .feature-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .hero {
        text-align: left;
        padding: 36px;
        display: grid;
        grid-template-columns: 1fr 320px;
        align-items: center;
        gap: 20px;
    }

        .hero .lede {
            margin: 0;
        }

    .hero-cta {
        justify-content: start;
        flex-direction: column;
        align-items: stretch;
    }

        .hero-cta .btn {
            width: 100%;
            max-width: 220px;
        }
}

/* Accessibility helpers */
a, button {
    -webkit-tap-highlight-color: rgba(0,0,0,0.06);
}

    a:focus, button:focus {
        outline-offset: 2px;
    }

/* Small tweaks */
.home p {
    margin: 0 0 10px;
}
