:root {
    /* Brand Colors */
    --primary: #f2a65a; /* Warm yellow/orange */
    --secondary: #8bcae6; /* Soft sky blue */
    --purple: #8b5cf6; /* Younglings Purple */
    --purple-dark: #6d28d9;
    --pink: #f472b6; /* Accent */
    --pink-dark: #db2777;
    --green: #4ade80; /* Accent */
    --green-dark: #16a34a;
    
    /* Backgrounds */
    --bg-light: #fffdf7;
    --bg-card: rgba(255, 255, 255, 0.9);
    
    /* Text */
    --text-main: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* Shadows & Radii */
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 36px;
    --radius-pill: 9999px;

    /* Transitions */
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================== Shared Components ================== */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--purple-dark);
}

.section-title.text-left {
    text-align: left;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-inverse);
    text-align: center;
    border-radius: var(--radius-pill);
    transition: var(--transition-bounce);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 3px solid transparent;
    cursor: pointer;
}

.primary-cta {
    background-color: var(--primary);
    border-color: #ff9d00;
    font-size: 1.4rem;
}

.primary-cta:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #ff9d00;
    box-shadow: 0 12px 25px rgba(242, 166, 90, 0.4);
}

.cta-purple { background-color: var(--purple); }
.cta-purple:hover { background-color: var(--purple-dark); transform: translateY(-3px) scale(1.02); }

.cta-pink { background-color: var(--pink); }
.cta-pink:hover { background-color: var(--pink-dark); transform: translateY(-3px) scale(1.02); }

.cta-blue { background-color: var(--secondary); border: 2px solid #5aa9ce;}
.cta-blue:hover { background-color: #5aa9ce; transform: translateY(-3px) scale(1.02); }

.cta-yellow { background-color: var(--primary); color: #fff;}
.cta-yellow:hover { background-color: #e69542; transform: translateY(-3px) scale(1.02); }

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-slow {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating { animation: float 6s ease-in-out infinite; }
.floating-slow { animation: float-slow 8s ease-in-out infinite; }


/* ================== Navbar ================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(139, 92, 246, 0.1);
}

.brand-logo { max-height: 50px; }
.brand-text { font-size: 2rem; color: var(--purple); margin: 0; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 700;
    color: var(--purple-dark);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--pink); }

.nav-button {
    background-color: var(--secondary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    transition: var(--transition-bounce);
}

.nav-button:hover {
    transform: scale(1.05);
    background-color: #5aa9ce;
}

/* ================== Hero Section ================== */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    min-height: calc(100vh - 90px);
    padding: 2rem 5% 4rem;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1) 0%, rgba(255, 253, 247, 0) 60%),
                radial-gradient(circle at bottom left, rgba(242, 166, 90, 0.15) 0%, rgba(255, 253, 247, 0) 60%);
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.badge {
    display: inline-block;
    background: var(--pink);
    color: white;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 4rem;
    color: var(--purple-dark);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 700px;
    object-fit: contain;
    filter: drop-shadow(0 25px 25px rgba(0,0,0,0.15));
}

/* ================== Banner ================== */
.banner-section {
    background-color: #fff3cd;
    border-top: 3px dashed #ffc107;
    border-bottom: 3px dashed #ffc107;
    padding: 1.5rem;
    text-align: center;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    color: #856404;
}

.banner-content p {
    margin: 0;
    color: inherit;
}

.banner-icon { font-size: 1.8rem; }

/* ================== Benefits Section ================== */
.benefits-section {
    padding: 6rem 5%;
    background-color: white;
}

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

.benefit-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-glass);
    border: 2px solid rgba(255,255,255,0.4);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 8px;
    background: var(--primary);
}
.benefit-card:nth-child(2)::before { background: var(--pink); }
.benefit-card:nth-child(3)::before { background: var(--secondary); }

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.icon-circle.yellow { background: rgba(242, 166, 90, 0.2); }
.icon-circle.pink { background: rgba(244, 114, 182, 0.2); }
.icon-circle.blue { background: rgba(139, 202, 230, 0.2); }


/* ================== Story Section ================== */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 5%;
    background-color: #f0fdf4; /* Gentle green tint */
}

.story-image-container {
    position: relative;
}

.story-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
}

.quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--green-dark);
    font-weight: 700;
    padding-left: 1.5rem;
    border-left: 5px solid var(--green);
    margin-top: 2rem;
}


/* ================== Purchase Section ================== */
.purchase-section {
    padding: 6rem 5%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, var(--bg-light) 100%);
}

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

.product-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    transition: var(--transition-bounce);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple);
}

.product-card.premium {
    border: 3px solid var(--pink);
    transform: scale(1.05);
    z-index: 2;
}

.product-card.premium:hover {
    transform: scale(1.05) translateY(-8px);
}

.tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

.tag.best-value {
    background: var(--pink);
}

.product-icon, .book-fallback {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.product-mockup img {
    height: 180px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-card p {
    font-size: 1rem;
    flex-grow: 1;
}

.card-cta {
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    width: 100%;
}


/* ================== Newsletter Section ================== */
.newsletter-section {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    max-width: 800px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.newsletter-card h2, .newsletter-card p {
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-pill);
    border: none;
    outline: none;
    flex-grow: 1;
    max-width: 400px;
    font-family: inherit;
    transition: var(--transition-bounce);
    border: 2px solid transparent;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    border-color: var(--primary);
}

.input-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 400px;
    position: relative;
}

.field-error {
    font-size: 0.85rem;
    color: #fee2e2;
    margin-top: 5px;
    font-weight: 600;
    text-align: left;
    padding-left: 1rem;
}

.form-error {
    width: 100%;
    margin-top: 1rem;
    color: #fee2e2;
    font-weight: 700;
}

/* Formspree Loading State */
form[data-fs-submitting] {
    opacity: 0.7;
    pointer-events: none;
}

form[data-fs-submitting] .form-cta {
    position: relative;
    color: transparent;
}

form[data-fs-submitting] .form-cta::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message Styling */
.success-message {
    display: none; /* Controlled by Formspree SDK but we can add styling */
    animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

[data-fs-success]:not(:empty) {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Hide form when success is shown */
form:has(+ [data-fs-success]:not(:empty)),
form:has(+ * + [data-fs-success]:not(:empty)) {
    display: none !important;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.success-message h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.success-message p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.success-cta {
    background: white;
    color: var(--purple-dark);
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.success-cta:hover {
    background: #f8fafc;
    color: var(--purple);
}

@keyframes scale-up {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.form-cta {
    background-color: var(--primary);
    color: white;
}


/* ================== Footer ================== */
.footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #334155;
    padding-bottom: 3rem;
}

.footer-logo {
    filter: brightness(0) invert(1);
    max-width: 150px;
    margin-bottom: 1rem;
}

.brand-footer h2 {
    color: white;
}

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

.footer-links a {
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.social-links a {
    color: #cbd5e1;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: #ffd700;
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
}


/* ================== Media Queries ================== */
@media (max-width: 992px) {
    .hero-section, .story-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title { font-size: 3rem; }
    
    .hero-content, .story-content {
        margin: 0 auto;
    }

    .section-title.text-left { text-align: center; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    
    .navbar { flex-direction: column; gap: 1rem; }
    
    .banner-content { flex-direction: column; gap: 0.5rem; }

    .product-card.premium { transform: scale(1); }
    .product-card.premium:hover { transform: translateY(-8px); }
}
