:root {
    --purple: #7845de;
    --yellow: #ffd44e;
    --ink: #403452;
    --cream: #fff9eb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

button:focus-visible, a:focus-visible {
    outline: 3px solid #352077;
    outline-offset: 5px;
}
.header {
    background: #fffdf7;
    border-bottom: 1px solid #eee5d5;
    position: sticky;
    top: 0;
    z-index: 10;
}
.nav-container {
    max-width: 1250px;
    margin: auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--purple);
    font-size: 22px;
    font-weight: 900;
}
.brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.brand strong { color: #e44b8d; }
nav {
    display: flex;
    gap: 24px;
    font-weight: 700;
}
nav a:hover { color: var(--purple); }
.menu-toggle {
    display: none;
    border: 0;
    background: #ede3ff;
    color: var(--purple);
    border-radius: 12px;
    padding: 8px 14px;
}
.container {
    max-width: 1250px;
    margin: auto;
    padding: 24px;
}
.hero {
    border-radius: 32px;
    overflow: hidden;
    background: white;
    box-shadow: 0 12px 40px #76539b12;
}
.hero-landscape {
    height: 340px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 15% 110%,
            #b8e77c 0 35%, transparent 36%),
        radial-gradient(ellipse at 90% 115%,
            #85d66b 0 43%, transparent 44%),
        linear-gradient(#7cd8fa, #eafaff 68%, #c6ee91);
}
.hero-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 10px 14px #487b5140);
}
.sun {
    position: absolute;
    right: 12%;
    top: 5%;
    font-size: 76px;
}
.cloud {
    position: absolute;
    font-size: 85px;
}
.cloud-one { left: 10%; top: 3%; }
.cloud-two { right: 29%; top: 9%; }
.butterfly {
    position: absolute;
    font-size: 40px;
    animation: flutter 4s ease-in-out infinite;
}
.butterfly-one { left: 23%; top: 46%; }
.butterfly-two {
    right: 19%;
    top: 53%;
    animation-delay: 1s;
}
.flowers {
    position: absolute;
    bottom: 8px;
    font-size: clamp(25px, 5vw, 65px);
    white-space: nowrap;
}
@keyframes flutter {
    50% { transform: translateY(-14px) rotate(8deg); }
}
.hero-content {
    padding: 38px 20px 46px;
    text-align: center;
}
.eyebrow {
    color: #7845de;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}
h1, h2, h3 { line-height: 1.2; }
h1 {
    color: #493184;
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: -2px;
    margin: 15px 0;
}
h1 span { color: #e74e91; }
h2 {
    color: var(--purple);
    font-size: clamp(26px, 4vw, 38px);
    margin: 12px 0;
}
.hero-content p {
    font-size: 19px;
    margin: 16px auto 24px;
}
.actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 30px;
    border: 0;
    font-weight: 800;
    transition: transform .2s, box-shadow .2s;
}
.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 16px #44336622;
}
.purple { background: var(--purple); color: white; }
.yellow { background: var(--yellow); color: #574000; }
.section {
    padding: 50px 0 10px;
    scroll-margin-top: 110px;
}
.section-heading {
    text-align: center;
    margin-bottom: 26px;
}
.section-heading p { margin: 8px 0; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.category {
    background: var(--tile);
    border: 2px solid #ffffffaa;
    border-radius: 24px;
    padding: 24px 14px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink);
    transition: transform .2s, box-shadow .2s;
}
.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px #4b34601a;
}
.category-icon { font-size: 54px; }
.category strong { font-size: 20px; }
.category small { font-size: 14px; }
.explore {
    font-size: 13px;
    font-weight: 800;
    color: #6042a5;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.feature {
    padding: 30px;
    border-radius: 28px;
}
.feature h3 {
    color: #51348c;
    font-size: 25px;
    margin: 12px 0;
}
.feature-icon { font-size: 54px; }
.pink { background: #ffe0ef; }
.blue { background: #dcefff; }
.green { background: #dff5d2; }
.orange { background: #ffe5cc; }
.parents {
    margin: 55px 0 20px;
    padding: 40px 24px;
    text-align: center;
    border-radius: 28px;
    background: #eee3ff;
    scroll-margin-top: 110px;
}
footer {
    background: #5833a7;
    color: white;
    padding: 40px 20px;
    text-align: center;
}
footer img { width: 90px; height: 90px; }
footer a { text-decoration: underline; }
dialog {
    width: min(92vw, 580px);
    max-height: 90vh;
    border: 0;
    border-radius: 28px;
    padding: 0;
    background: #fff9eb;
    color: var(--ink);
}
dialog::backdrop { background: #231638aa; }
.dialog-content {
    position: relative;
    padding: 35px 24px;
    text-align: center;
}

.close-dialog {
    position: absolute;
    right: 14px;
    top: 8px;
    font-size: 30px;
    background: transparent;
    border: 0;
    color: var(--ink);
}
#activity-visual {
    font-size: 58px;
    padding: 18px;
    background: #fff;
    border-radius: 20px;
    overflow-wrap: anywhere;
}
#activity-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.answer {
    background: #e9dfff;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 16px;
    color: #45316b;
    font-weight: 800;
}
.answer.correct { background: #bdeba9; }
.answer.incorrect { background: #ffe2bd; }
#activity-feedback {
    min-height: 26px;
    font-weight: 800;
}
#next-question:disabled {
    opacity: .5;
    cursor: not-allowed;
}
@media (max-width: 760px) {
    .nav-container { flex-wrap: wrap; padding: 10px 16px; }
    .brand { font-size: 18px; }
    .brand img { width: 48px; height: 48px; }
    .menu-toggle { display: block; }
    nav { display: none; width: 100%; flex-wrap: wrap; }
    nav.open { display: flex; padding: 10px 0; }
    .container { padding: 14px; }
    .hero-landscape { height: 240px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category { min-height: 180px; padding: 14px 8px; }
    .category strong { font-size: 17px; }
    .category-icon { font-size: 42px; }
    .feature-grid { grid-template-columns: 1fr; }
    .hero-content p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
