/* Global palette and typography */
:root {
    --color-primary: #5865f2;
    --color-primary-dark: #3d4bd9;
    --color-secondary: #ff8a5b;
    --color-secondary-dark: #f06b36;
    --color-accent: #4cc9f0;
    --color-surface: #ffffff;
    --color-background: #f6f7ff;
    --color-text: #1f1f3d;
    --color-text-muted: #5a5a7a;
    --shadow-soft: 0 20px 60px rgba(88, 101, 242, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1080px;
    --transition: all 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

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

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

ul[class],
ol[class] {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}

.eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-surface);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.25);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(88, 101, 242, 0.3);
}

.btn--secondary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    box-shadow: 0 12px 30px rgba(240, 107, 54, 0.25);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    box-shadow: 0 18px 40px rgba(240, 107, 54, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow: none;
    padding: 0.7rem 1.4rem;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: rgba(88, 101, 242, 0.5);
    background: rgba(88, 101, 242, 0.08);
}

.btn--light {
    background: var(--color-surface);
    color: var(--color-primary);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.25);
}

.btn--outline {
    background: transparent;
    color: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: rgba(255, 255, 255, 0.15);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 45px rgba(31, 31, 61, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.logo-text {
    display: inline-block;
}

.logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--color-primary);
}

/* Hero */
.hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: radial-gradient(120% 120% at 0% 0%, rgba(88, 101, 242, 0.12) 0%, rgba(246, 247, 255, 0.95) 60%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: -120px;
    background: radial-gradient(400px 400px at 90% 10%, rgba(76, 201, 240, 0.25) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 3rem;
}

.hero-content h1 {
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-size: clamp(2.4rem, 7vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.hero-copy {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.trust-list {
    display: grid;
    gap: 0.6rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.hero-visual {
    max-width: 420px;
    margin: 0 auto;
}

.hero-visual img {
    filter: drop-shadow(0 24px 46px rgba(31, 31, 61, 0.18));
}

/* Stats */
.stats {
    margin-top: -3rem;
    padding-bottom: clamp(3rem, 8vw, 5rem);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.stats-grid article {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

/* Sections */
section {
    padding: clamp(3.5rem, 9vw, 5rem) 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 720px;
    margin-inline: auto;
}

.section-heading h2 {
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 2.6rem);
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section-heading p {
    color: var(--color-text-muted);
}

/* How it works */
.how-it-works {
    background: var(--color-surface);
}

.step-list {
    display: grid;
    gap: 2rem;
}

.step-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.08), rgba(76, 201, 240, 0.08));
    border-radius: var(--radius-md);
    padding: 2rem;
}

.step-number {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--color-primary);
    color: var(--color-surface);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-list h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
}

.step-list p {
    margin: 0;
    color: var(--color-text-muted);
}

/* Families */
.families {
    background: radial-gradient(120% 120% at 100% 0%, rgba(76, 201, 240, 0.16) 0%, rgba(246, 247, 255, 0.8) 55%);
}

.families-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.families-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 2.5rem);
    box-shadow: var(--shadow-soft);
}

.families-card--kids {
    border: 2px solid rgba(76, 201, 240, 0.3);
}

.families-card--parents {
    border: 2px solid rgba(240, 107, 54, 0.25);
}

.families-card h2 {
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-size: 1.9rem;
    margin-bottom: 1.25rem;
}

.families-card ul {
    display: grid;
    gap: 0.85rem;
    color: var(--color-text-muted);
    padding-left: 1.25rem;
    list-style: disc;
}

/* Feature showcase */
.feature-showcase {
    background: var(--color-surface);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: rgba(88, 101, 242, 0.08);
    border-radius: var(--radius-md);
    padding: 2rem;
    min-height: 220px;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.12);
    transition: var(--transition);
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(88, 101, 242, 0.18);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 1.35rem;
    color: var(--color-primary-dark);
}

.feature-card p {
    margin: 0;
    color: var(--color-text-muted);
}

/* Testimonials */
.testimonials {
    background: radial-gradient(120% 120% at 50% 0%, rgba(255, 138, 91, 0.18) 0%, rgba(246, 247, 255, 1) 60%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.testimonial {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 2.2rem;
    box-shadow: var(--shadow-soft);
    font-size: 1rem;
}

.testimonial blockquote {
    margin: 0 0 1rem;
    color: var(--color-text);
    font-style: italic;
}

.testimonial figcaption {
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Safety */
.safety {
    background: var(--color-surface);
}

.safety-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
}

.safety-grid ul {
    display: grid;
    gap: 0.8rem;
    color: var(--color-text-muted);
    padding-left: 1.25rem;
    list-style: disc;
}

/* FAQ */
.faq {
    background: radial-gradient(120% 160% at 0% 50%, rgba(88, 101, 242, 0.12) 0%, rgba(246, 247, 255, 0.9) 45%);
}

.faq-list {
    display: grid;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.faq-list details {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.faq-list details[open] {
    transform: translateY(-4px);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    color: var(--color-text);
}

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

.faq-list p {
    margin: 0.75rem 0 0;
    color: var(--color-text-muted);
}

/* CTA */
.cta {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.92), rgba(76, 201, 240, 0.92));
    color: var(--color-surface);
}

.cta-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta h2 {
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.cta p {
    margin: 0;
}

/* Footer */
.site-footer {
    background: #0f1020;
    color: rgba(255, 255, 255, 0.82);
    padding-top: 3rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding-bottom: 2.5rem;
}

.footer-logo img {
    width: 44px;
    height: 44px;
}

.footer-links {
    display: grid;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--color-accent);
}

.newsletter-form {
    display: grid;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
}

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.footer-meta-links {
    display: flex;
    gap: 1.25rem;
}

.footer-meta-links a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-meta-links a:hover,
.footer-meta-links a:focus-visible {
    color: var(--color-accent);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .btn--ghost {
        order: 2;
    }

    .hero-container {
        text-align: center;
    }

    .hero-copy {
        margin-inline: auto;
    }

    .trust-list {
        padding-left: 0;
        list-style: none;
    }

    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .btn--ghost {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .stats-grid article {
        padding: 1.6rem;
    }

    .step-list li {
        grid-template-columns: 1fr;
    }

    .step-number {
        margin-bottom: 0.75rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
