/* ==========================================================================
   Ta3alam m3a Nour — design system
   Fresh childhood palette, rounded shapes, works in RTL (ar) and LTR (fr).
   ========================================================================== */

:root {
    --sky: #4FB6F0;
    --sky-light: #BFE7FF;
    --sky-deep: #1E88D6;
    --sun: #FFC83D;
    --sun-deep: #F5A300;
    --leaf: #6CC24A;
    --leaf-deep: #3E9B2A;
    --sea: #23A9D6;
    --sea-deep: #1479A8;
    --rose: #FF6B8B;
    --rose-deep: #E2466A;
    --grape: #8E6CEF;
    --orange: #FF8A3D;

    --ink: #2B3A55;
    --ink-soft: #5B6B86;
    --line: #E3ECF7;
    --cream: #FFFBF2;
    --card: #FFFFFF;
    --bg: #F4FAFF;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 2px 0 rgba(43, 58, 85, .06), 0 4px 12px rgba(43, 58, 85, .06);
    --shadow: 0 6px 0 rgba(43, 58, 85, .07), 0 14px 30px rgba(43, 58, 85, .10);
    --font: 'Baloo Bhaijaan 2', 'Segoe UI', Tahoma, sans-serif;
    --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--sky-deep); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--sun);
    --btn-shadow: var(--sun-deep);
    --btn-color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .7em 1.5em;
    font: inherit; font-weight: 800; font-size: 1rem;
    color: var(--btn-color);
    background: var(--btn-bg);
    border: 0; border-radius: 999px;
    box-shadow: 0 5px 0 var(--btn-shadow);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s;
    white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 7px 0 var(--btn-shadow); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-shadow); }
.btn:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; }
.btn-sky { --btn-bg: var(--sky); --btn-shadow: var(--sky-deep); --btn-color: #fff; }
.btn-leaf { --btn-bg: var(--leaf); --btn-shadow: var(--leaf-deep); --btn-color: #fff; }
.btn-rose { --btn-bg: var(--rose); --btn-shadow: var(--rose-deep); --btn-color: #fff; }
.btn-white { --btn-bg: #fff; --btn-shadow: #D3E2F2; --btn-color: var(--ink); }
.btn-ghost { --btn-bg: transparent; --btn-shadow: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .6); }
.btn-lg { font-size: 1.15rem; padding: .8em 1.8em; }
.btn-sm { font-size: .9rem; padding: .45em 1.1em; box-shadow: 0 3px 0 var(--btn-shadow); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.logo img { width: 46px; height: 46px; animation: sun-spin 14s linear infinite; }
.logo small { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
@keyframes sun-spin { to { transform: rotate(360deg); } }

.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.main-nav a {
    padding: 8px 14px; border-radius: 999px;
    color: var(--ink); font-weight: 700;
    transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--sky-light); }
.main-nav a.active { background: var(--sun); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 40px; padding: 0 12px;
    border-radius: 999px; border: 2px solid var(--line);
    font-weight: 800; font-size: .9rem; color: var(--ink);
}
.lang-switch:hover { border-color: var(--sky); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; border-radius: 3px; background: var(--ink); transition: transform .2s, opacity .2s; }

.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--sky-light); color: var(--ink); font-weight: 800; }
[dir="rtl"] .user-chip { padding: 4px 4px 4px 14px; }
.user-chip .avatar { width: 34px; height: 34px; }

/* ---------- Hero (sky scene) ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #7FD0FA 0%, #BDE8FF 55%, #E3F6FF 100%);
    padding: 64px 0 170px;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 999px;
    background: #fff; color: var(--rose-deep); font-weight: 800; font-size: .95rem;
    box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 18px 0 14px; color: #17325C; }
.hero h1 .hl { color: var(--rose); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
    content: ''; position: absolute; inset-inline: 0; bottom: .3em; height: .24em; z-index: -1;
    background: var(--sun); border-radius: 999px; opacity: .8;
}
.hero-text { font-size: 1.15rem; color: #34507A; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.stat {
    background: rgba(255, 255, 255, .85); border-radius: var(--radius);
    padding: 10px 18px; box-shadow: var(--shadow-sm); min-width: 110px;
}
.stat strong { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--sky-deep); }
.stat span { font-size: .9rem; font-weight: 700; color: var(--ink-soft); }

.hero-art { position: relative; justify-self: center; width: min(100%, 380px); }
.hero-art .mascot { width: 100%; animation: bob 3.2s ease-in-out infinite; transform-origin: bottom center; }
.speech {
    position: absolute; top: 4%; inset-inline-start: -14%;
    background: #fff; color: var(--ink); font-weight: 800; font-size: 1.1rem;
    padding: 12px 20px; border-radius: 22px; box-shadow: var(--shadow);
    animation: pop-in .6s .3s both cubic-bezier(.3, 1.6, .5, 1);
}
.speech::after {
    content: ''; position: absolute; bottom: -12px; inset-inline-end: 34px;
    border: 12px solid transparent; border-top-color: #fff; border-bottom: 0;
}
.floating-star { position: absolute; font-size: 2rem; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.25) rotate(15deg); opacity: .7; } }

/* clouds & hills shared by hero and kid scene */
.clouds { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cloud {
    position: absolute; width: 140px; height: 46px; background: #fff; border-radius: 999px; opacity: .95;
    animation: drift linear infinite;
}
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 64px; height: 64px; top: -32px; left: 22px; }
.cloud::after { width: 46px; height: 46px; top: -20px; left: 72px; }
.cloud.c1 { top: 12%; animation-duration: 60s; animation-delay: -10s; }
.cloud.c2 { top: 30%; transform: scale(.7); animation-duration: 80s; animation-delay: -40s; }
.cloud.c3 { top: 8%; transform: scale(.55); animation-duration: 70s; animation-delay: -25s; opacity: .8; }
@keyframes drift { from { left: -180px; } to { left: 110%; } }

.hills { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 190px; z-index: 1; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.eyebrow {
    display: inline-block; margin-bottom: 10px; padding: 4px 14px; border-radius: 999px;
    background: var(--sky-light); color: var(--sky-deep); font-weight: 800; font-size: .9rem;
}

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

.card {
    background: var(--card); border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow);
    border: 3px solid transparent;
}

/* steps */
.step { position: relative; text-align: center; padding-top: 48px; }
.step-num {
    position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.7rem; font-weight: 800; color: #fff;
    border: 5px solid #fff; box-shadow: var(--shadow-sm);
}
.step:nth-child(1) .step-num { background: var(--sun); color: var(--ink); }
.step:nth-child(2) .step-num { background: var(--sky); }
.step:nth-child(3) .step-num { background: var(--leaf); }
.step p { color: var(--ink-soft); margin: 0; }

/* feature tiles */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
    flex: none; width: 62px; height: 62px; border-radius: 20px;
    display: grid; place-items: center; font-size: 1.9rem;
}
.feature:nth-child(6n+1) .feature-icon { background: #FFF1C9; }
.feature:nth-child(6n+2) .feature-icon { background: #D9F0FF; }
.feature:nth-child(6n+3) .feature-icon { background: #FFE0E7; }
.feature:nth-child(6n+4) .feature-icon { background: #FFF1C9; }
.feature:nth-child(6n+5) .feature-icon { background: #DDF5D2; }
.feature:nth-child(6n+6) .feature-icon { background: #E9E2FF; }
.feature h3 { font-size: 1.2rem; margin-bottom: 4px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Learning path map (home preview + kid space) ---------- */
.path-map {
    position: relative; direction: ltr;
    aspect-ratio: 16 / 7;
    border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(180deg, #8ED6FB 0%, #CDEFFF 42%, #E8F8FF 60%);
    box-shadow: var(--shadow);
}
.path-map .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.stop {
    position: absolute; transform: translate(-50%, -50%);
    width: 19%; display: flex; flex-direction: column; align-items: center;
    color: var(--ink); z-index: 3;
    transition: transform .2s ease;
}
a.stop:hover { transform: translate(-50%, -54%); }
.stop-bubble {
    position: relative; width: 78%; aspect-ratio: 1;
    border-radius: 50%; padding: 6px;
    background: #fff; box-shadow: 0 8px 0 rgba(0, 0, 0, .08), 0 10px 26px rgba(30, 80, 140, .25);
}
.stop-bubble img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.stop-num {
    position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
    width: 30%; aspect-ratio: 1; border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 800; font-size: clamp(.9rem, 1.6vw, 1.4rem); color: #fff;
    background: var(--stop-color); border: 4px solid #fff; box-shadow: var(--shadow-sm);
}
.stop-lock {
    position: absolute; bottom: 4%; right: 2%;
    width: 26%; aspect-ratio: 1; border-radius: 50%;
    display: grid; place-items: center; background: #2B3A55; color: #fff; font-size: clamp(.7rem, 1.2vw, 1rem);
    border: 3px solid #fff;
}
.stop.locked .stop-bubble img { filter: saturate(.55) brightness(.95); }
.stop-label {
    margin-top: -8%; min-width: 80%; text-align: center;
    padding: 4px 14px 6px; border-radius: 18px;
    background: var(--stop-color); color: #fff;
    box-shadow: 0 5px 0 var(--stop-shadow);
    border: 3px solid rgba(255, 255, 255, .9);
    position: relative; z-index: 2;
}
.stop-label strong { display: block; font-size: clamp(.95rem, 1.7vw, 1.35rem); line-height: 1.2; }
.stop-label span { font-size: clamp(.75rem, 1.2vw, .95rem); font-weight: 700; }
.stop.current .stop-bubble { animation: pulse-ring 1.8s infinite; }
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 200, 61, .9), 0 10px 26px rgba(30, 80, 140, .25); }
    70% { box-shadow: 0 0 0 18px rgba(255, 200, 61, 0), 0 10px 26px rgba(30, 80, 140, .25); }
    100% { box-shadow: 0 0 0 0 rgba(255, 200, 61, 0), 0 10px 26px rgba(30, 80, 140, .25); }
}

.theme-sun { --stop-color: #FFB800; --stop-shadow: #D99400; --theme: var(--sun); --theme-deep: var(--sun-deep); --theme-soft: #FFF3CC; }
.theme-leaf { --stop-color: #43A83A; --stop-shadow: #2F8128; --theme: var(--leaf); --theme-deep: var(--leaf-deep); --theme-soft: #E1F5D6; }
.theme-sea { --stop-color: #2F6FD0; --stop-shadow: #1F51A0; --theme: var(--sea); --theme-deep: var(--sea-deep); --theme-soft: #D8F1FB; }
.theme-grape { --stop-color: #7A5AE0; --stop-shadow: #5B3FB0; --theme: var(--grape); --theme-deep: #6A4FD0; --theme-soft: #EEE8FF; }
.theme-rose { --stop-color: #E2364F; --stop-shadow: #B32239; --theme: var(--rose); --theme-deep: var(--rose-deep); --theme-soft: #FFE1E7; }

/* ---------- Exercise preview cards (home) ---------- */
.ex-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg); padding: 18px;
    background: linear-gradient(180deg, #DDF2FF, #F2FAFF);
    box-shadow: var(--shadow); min-height: 290px;
    display: flex; flex-direction: column;
}
.ex-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ex-chip {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--sky-deep); color: #fff; font-size: 1.1rem; flex: none;
}
.ex-question {
    flex: 1; text-align: center; background: #fff; border-radius: 999px;
    padding: 6px 16px; font-weight: 800; font-size: 1.15rem; direction: rtl;
}
.ex-score { background: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .9rem; color: var(--sun-deep); white-space: nowrap; }
.ex-people { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin-top: auto; }
.ex-people .character { height: 150px; width: auto; }
.ex-people .character-boy, .ex-people .character-girl { height: 112px; }
.ex-people .pick { cursor: pointer; border-radius: 16px; padding: 4px; transition: background .15s, transform .15s; }
.ex-people .pick:hover { background: rgba(255, 255, 255, .8); transform: translateY(-4px); }
.ex-people .pick.right { background: #DDF5D2; outline: 3px solid var(--leaf); }
.ex-people .pick.wrong { animation: shake .4s; background: #FFE0E7; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.slots { display: flex; justify-content: center; gap: 10px; margin: 8px 0 16px; }
.slot { width: 64px; height: 64px; border-radius: 16px; border: 3px dashed #A9C6E3; background: rgba(255, 255, 255, .6); }
.tiles { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tile { width: 70px; height: 70px; border-radius: 18px; background: #fff; padding: 4px; box-shadow: var(--shadow-sm); border: 3px solid var(--line); }
.tile .avatar { width: 100%; height: 100%; }
.ex-bravo { align-items: center; justify-content: center; text-align: center; background: linear-gradient(180deg, #FFF3CC, #FFFBF2); }
.ex-bravo .big-star { font-size: 4.5rem; line-height: 1; animation: twinkle 2s infinite; }
.ex-bravo h3 { font-size: 1.8rem; color: var(--rose-deep); direction: rtl; margin: 8px 0 14px; }

/* ---------- Packs ---------- */
.packs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.pack {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius-lg); padding: 34px 28px 28px;
    box-shadow: var(--shadow); border: 4px solid transparent;
    transition: transform .2s;
}
.pack:hover { transform: translateY(-6px); }
.pack.featured { border-color: var(--sun); transform: scale(1.03); }
.pack.featured:hover { transform: scale(1.03) translateY(-6px); }
.pack-ribbon {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    background: var(--rose); color: #fff; font-weight: 800; font-size: .9rem;
    padding: 4px 18px; border-radius: 999px; box-shadow: 0 4px 0 var(--rose-deep); white-space: nowrap;
}
.pack-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; margin-bottom: 14px; }
.pack-leaf .pack-icon { background: #DDF5D2; }
.pack-sky .pack-icon { background: #D9F0FF; }
.pack-sun .pack-icon { background: #FFF1C9; }
.pack h3 { font-size: 1.5rem; margin-bottom: 4px; }
.pack-desc { color: var(--ink-soft); min-height: 3.2em; }
.pack-price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 18px; }
.pack-price strong { font-size: 2.6rem; line-height: 1; color: var(--ink); }
.pack-price span { color: var(--ink-soft); font-weight: 700; }
.pack ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.pack li { position: relative; padding-inline-start: 32px; margin-bottom: 10px; }
.pack li::before {
    content: '✓'; position: absolute; inset-inline-start: 0; top: 2px;
    width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    background: var(--leaf); color: #fff; font-size: .8rem; font-weight: 800;
}

.notice {
    display: flex; gap: 14px; align-items: flex-start;
    background: #FFF6D9; border: 3px solid #FFE08A; border-radius: var(--radius);
    padding: 16px 20px; color: #6B5313;
}
.notice-icon { font-size: 1.6rem; line-height: 1.2; }
.notice-info { background: #E4F4FF; border-color: #B5E0FB; color: #1D4E7A; }
.notice-success { background: #E6F7DE; border-color: #B9E6A5; color: #2C6420; }
.notice-danger { background: #FFE6EB; border-color: #FFBACA; color: #8A1F37; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 2px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: start; font-weight: 700; }
.compare thead th { background: var(--sky-light); font-weight: 800; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--leaf-deep); font-weight: 800; font-size: 1.2rem; }
.no { color: #B8C4D6; font-size: 1.2rem; }

.faq details { background: #fff; border-radius: var(--radius); padding: 16px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--sky-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
    position: relative; overflow: hidden; text-align: center;
    background: linear-gradient(180deg, #8ED6FB, #D9F2FF);
    padding: 60px 0 120px;
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); color: #17325C; position: relative; z-index: 2; }
.page-hero p { font-size: 1.15rem; color: #34507A; max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero .hills { height: 110px; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--grape), #B18CFF);
    border-radius: var(--radius-lg); padding: 48px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .92; font-size: 1.1rem; }
.cta-band img { width: 140px; flex: none; }
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-band::before { width: 220px; height: 220px; top: -90px; inset-inline-end: 20%; }
.cta-band::after { width: 120px; height: 120px; bottom: -50px; inset-inline-start: 30%; }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }

/* ---------- Pack request modal ---------- */
.modal { border: 0; padding: 0; background: transparent; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--ink); }
.modal::backdrop { background: rgba(43, 58, 85, .45); }
.modal-card { position: relative; padding: 30px; }
.modal-card h2 { font-size: 1.4rem; margin: 0 0 6px; padding-inline-end: 36px; }
.modal-intro { color: var(--ink-soft); margin: 0 0 18px; }
.modal-card textarea.input { min-height: 90px; }
.modal-close { position: absolute; top: 16px; inset-inline-end: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 1rem; cursor: pointer; }
.modal-close:hover { background: var(--sky-light); }
.form-section { border: 0; padding: 0; margin: 0 0 28px; }
.form-section legend {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}
.form-section legend span {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--sky); color: #fff; font-size: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label, .field-label { display: block; font-weight: 700; margin-bottom: 6px; }
.input {
    width: 100%; font: inherit; color: var(--ink);
    padding: 12px 16px; border-radius: 16px;
    border: 3px solid var(--line); background: #FAFDFF;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(79, 182, 240, .2); background: #fff; }
.input.is-invalid { border-color: var(--rose); }
textarea.input { min-height: 140px; resize: vertical; }
.hint { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.error { font-size: .9rem; color: var(--rose-deep); font-weight: 700; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--leaf); }
.ltr-input { direction: ltr; text-align: left; }

.choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 16px; border: 3px solid var(--line); background: #FAFDFF;
    font-weight: 800; transition: all .15s;
}
.choice input:checked + .choice-box { border-color: var(--sky); background: #E4F4FF; }
.choice input:focus-visible + .choice-box { box-shadow: 0 0 0 4px rgba(79, 182, 240, .3); }

.avatar-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.avatar-pick .choice-box { padding: 6px; justify-content: center; border-radius: 50%; aspect-ratio: 1; }
.avatar-pick .avatar { width: 100%; height: auto; }
.avatar-pick input:checked + .choice-box { border-color: var(--sun-deep); background: #FFF3CC; transform: scale(1.08); }

.pack-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pack-pick .choice-box { flex-direction: column; align-items: flex-start; gap: 2px; height: 100%; padding: 14px 16px; }
.pack-pick .choice-box small { font-weight: 600; color: var(--ink-soft); }
.pack-pick .choice-box b { font-size: 1.3rem; color: var(--sky-deep); }
.pack-pick input:checked + .choice-box { border-color: var(--leaf); background: #EEF9E8; }

.auth-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: 50px 0 80px; }
.auth-art { text-align: center; }
.auth-art img { width: min(320px, 80%); margin: 0 auto 10px; animation: bob 3.2s ease-in-out infinite; }
.auth-art h1 { font-size: 2.3rem; color: #17325C; }
.auth-art p { color: var(--ink-soft); font-size: 1.1rem; }
.auth-switch { text-align: center; margin: 18px 0 0; color: var(--ink-soft); }
.auth-switch a { font-weight: 800; }
.auth-register { grid-template-columns: .55fr 1.45fr; align-items: start; }
.auth-register .auth-art { position: sticky; top: 110px; }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.about-intro img { width: min(300px, 80%); margin: 0 auto; }
.values { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.value-pill { padding: 10px 22px; border-radius: 999px; font-weight: 800; background: #fff; box-shadow: var(--shadow-sm); border: 3px solid var(--line); }
.value-pill:nth-child(5n+1) { border-color: var(--sun); }
.value-pill:nth-child(5n+2) { border-color: var(--sky); }
.value-pill:nth-child(5n+3) { border-color: var(--rose); }
.value-pill:nth-child(5n+4) { border-color: var(--leaf); }
.value-pill:nth-child(5n+5) { border-color: var(--grape); }
.module-cards .card { display: flex; gap: 18px; align-items: center; padding: 18px; }
.module-cards img { width: 110px; height: 110px; border-radius: 24px; object-fit: cover; flex: none; }
.module-cards h3 { margin-bottom: 4px; }
.module-cards p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: start; }
.contact-info li { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; font-weight: 700; }
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info .ci { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--sky-light); font-size: 1.3rem; flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: #17325C; color: #C9D8EE; padding: 60px 0 0; margin-top: 40px; position: relative; }
.site-footer::before {
    content: ''; position: absolute; top: -38px; left: 0; right: 0; height: 40px;
    background: radial-gradient(circle at 20px -6px, transparent 26px, #17325C 27px) 0 0 / 40px 40px repeat-x;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .logo small { color: #9FB4D4; }
.site-footer h4 { color: #fff; font-size: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #C9D8EE; }
.site-footer a:hover { color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; flex-wrap: wrap; }

/* ---------- Flash ---------- */
.flash { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: min(92vw, 560px); animation: pop-in .4s both, fade-out .4s 5s forwards; box-shadow: var(--shadow); }
@keyframes fade-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .packs-grid { grid-template-columns: repeat(2, 1fr); }
    .pack.featured { transform: none; }
    .auth-register { grid-template-columns: 1fr; }
    .auth-register .auth-art { position: static; }
    .auth-register .auth-art img { width: 180px; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; margin-inline-start: auto; }
    .main-nav {
        position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: #fff; padding: 12px 20px 20px; border-bottom: 3px solid var(--line);
        display: none; margin: 0;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 16px; }
    .header-actions .btn-register { display: none; }
    .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero { padding: 40px 0 140px; }
    .hero-inner, .about-intro, .contact-grid, .auth-wrap { grid-template-columns: 1fr; }
    .hero-art { width: 230px; order: -1; }
    .speech { inset-inline-start: 72%; top: -4%; font-size: .95rem; white-space: nowrap; }
    .auth-art img { width: 180px; }
    .cta-band { flex-direction: column; text-align: center; padding: 36px 24px; }
    .cta-band img { width: 110px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }

    /* path map becomes a vertical zig-zag */
    .path-map { aspect-ratio: auto; padding: 30px 16px 40px; display: flex; flex-direction: column; gap: 26px; }
    .path-map .scene { display: none; }
    .path-map::before {
        content: ''; position: absolute; top: 40px; bottom: 40px; left: 50%; width: 10px; transform: translateX(-50%);
        background: repeating-linear-gradient(180deg, #F3D89A 0 16px, transparent 16px 26px); border-radius: 10px;
    }
    .stop { position: relative; left: auto !important; top: auto !important; transform: none; width: 56%; }
    a.stop:hover { transform: translateY(-4px); }
    .stop-odd { align-self: flex-start; }
    .stop-even { align-self: flex-end; }
    .stop-label strong { font-size: 1.2rem; }
    .stop-label span { font-size: .9rem; }
    .stop-num { font-size: 1.2rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .section { padding: 56px 0; }
    .grid-2, .grid-3, .grid-4, .packs-grid, .form-row, .pack-pick { grid-template-columns: 1fr; }
    .avatar-pick { grid-template-columns: repeat(3, 1fr); }
    .form-card { padding: 24px 18px; }
    .header-inner { gap: 10px; }
    .logo { font-size: 1.1rem; }
    .logo small { display: none; }
    .logo img { width: 40px; height: 40px; }
    .header-actions .btn-login { display: none; }
    .user-chip span { display: none; }
    .user-chip { padding: 4px !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .compare th, .compare td { padding: 10px 8px; font-size: .9rem; }
    .ex-people .character { height: 120px; }
    .ex-people .character-boy, .ex-people .character-girl { height: 90px; }
}

/* mobile-only nav links */
.only-mobile { display: none; }
@media (max-width: 860px) { .main-nav .only-mobile { display: block; } }

/* ==========================================================================
   Parents' reviews: the rating form (child space) and the cards (home page)
   ========================================================================== */
.feedback-wrap { max-width: 720px; margin: 0 auto; }
.feedback-intro { color: var(--ink-soft); font-size: 1.05rem; }
.field .help { display: block; margin-top: 6px; color: var(--ink-soft); font-size: .9rem; }
.rate-field { border: 0; padding: 0; margin: 0 0 18px; }
/* 5 → 1 in the page, shown 1 → 5: hovering or checking a star lights it and the ones before it */
.rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label {
    font-size: clamp(2.6rem, 9vw, 3.4rem); line-height: 1; cursor: pointer; color: #D3DCE6;
    transition: color .15s, transform .2s cubic-bezier(.3, 1.6, .5, 1); -webkit-tap-highlight-color: transparent;
}
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #FFC83D; text-shadow: 0 3px 0 #E8A800; }
.rate:hover input:checked ~ label:not(:hover):not(:hover ~ label) { color: #D3DCE6; text-shadow: none; }
.rate label:hover { transform: scale(1.15) rotate(-6deg); }
.rate input:checked + label { animation: pop-in .4s cubic-bezier(.3, 1.8, .5, 1); }
.rate input:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.rate-level { min-height: 1.5em; font-weight: 800; color: var(--sun-deep); }

.review { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.review-stars { color: #FFC83D; font-size: 1.5rem; letter-spacing: 2px; text-shadow: 0 2px 0 #E8A800; }
.review-stars span { color: #D3DCE6; text-shadow: none; }
.review blockquote { margin: 0; flex: 1; font-size: 1.05rem; line-height: 1.6; white-space: pre-line; }
.review blockquote::before { content: '“'; font-size: 2.4rem; line-height: 0; vertical-align: -.45em; color: var(--sky); margin-inline-end: 4px; }
.review figcaption { font-weight: 800; color: var(--ink-soft); }
/* one or two reviews stay centred */
.grid.reviews { display: flex; flex-wrap: wrap; justify-content: center; }
.grid.reviews .review { flex: 1 1 280px; max-width: 370px; }
