/* ============================================================
   ReadPlayRise — parent onboarding landing (static mockup)
   Self-contained like /main. Logical properties everywhere so
   the page mirrors for RTL without a second stylesheet.
   ============================================================ */

:root {
    --ink: #16233f;
    --body: #566378;
    --line: #e8ecf2;
    --surface: #ffffff;

    --brand: #ea6f0c;
    --brand-deep: #d95c06;
    --brand-text: #e8690a;
    --brand-tint: #fff4e6;
    --sun: #ffc530;

    --sky: #eaf4fd;
    --sky-line: #cfe4f7;
    --sky-ink: #1f4e79;
    --cream: #fff6e7;
    --leaf: #2f9e49;
    --leaf-tint: #e2f4e1;
    --leaf-ink: #1f7a36;

    --radius: 18px;
    --radius-lg: 26px;
    --radius-pill: 999px;
    --shell: min(1160px, 100% - 2.5rem);
    --ease: cubic-bezier(.22, 1, .36, 1);

    --z-sticky: 10;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--surface);
    color: var(--body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; }

h1, h2, h3, .price-amount {
    color: var(--ink);
    font-family: 'Baloo Bhaijaan 2', 'Cairo', 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

.shell { width: var(--shell); margin-inline: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 52px; padding: .6rem 1.7rem;
    border: 2px solid transparent; border-radius: var(--radius-pill);
    font-weight: 700; font-size: 1.02rem; line-height: 1.2;
    cursor: pointer; white-space: nowrap;
    transition: box-shadow .28s var(--ease), transform .28s var(--ease),
                background-color .28s var(--ease), border-color .28s var(--ease);
}

.btn-primary {
    background: linear-gradient(180deg, var(--brand), var(--brand-deep));
    color: #fff;
    box-shadow: 0 8px 20px rgba(234, 111, 12, .28);
}

.btn-outline {
    background: #fff; color: var(--brand-text); border-color: #f6b27a;
}

.btn-soft {
    background: #f3f8fd; color: var(--ink); border-color: var(--sky-line);
}

.btn-sky {
    background: #d7ebfb; color: var(--ink); border-color: transparent;
}

.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 46px; padding: .45rem 1.25rem; font-size: .95rem; }

.btn-arrow { width: 1.1em; height: 1.1em; flex: none; }
[dir="ltr"] .btn-arrow, [dir="ltr"] .chevron svg { transform: scaleX(-1); }

/* Glow: shared by hover and keyboard focus so both feel the same. */
.btn:focus-visible {
    outline: 2px solid var(--ink); outline-offset: 3px;
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 5px rgba(255, 150, 50, .22), 0 10px 34px rgba(234, 111, 12, .6);
}

.btn-outline:focus-visible, .btn-soft:focus-visible, .btn-sky:focus-visible {
    box-shadow: 0 0 0 5px rgba(255, 150, 50, .16), 0 8px 26px rgba(234, 111, 12, .32);
}

@media (hover: hover) {
    .btn:hover { transform: translateY(-2px); }

    .btn-primary:hover {
        box-shadow: 0 0 0 5px rgba(255, 150, 50, .22), 0 10px 34px rgba(234, 111, 12, .6);
    }

    .btn-outline:hover, .btn-soft:hover, .btn-sky:hover {
        box-shadow: 0 0 0 5px rgba(255, 150, 50, .16), 0 8px 26px rgba(234, 111, 12, .32);
    }

    .btn-outline:hover { border-color: var(--brand); }
    .btn-soft:hover, .btn-sky:hover { border-color: var(--sky-line); }
}

.btn:active { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: var(--z-sticky);
    background: #fff;
    transition: box-shadow .3s var(--ease);
}

.site-header.scrolled { box-shadow: 0 6px 22px rgba(22, 35, 63, .08); }

.header-row {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center;
    gap: 1rem; min-height: 84px;
}

.logo { width: 92px; height: auto; }

.main-nav { display: flex; justify-content: center; gap: .35rem; }

.nav-item {
    padding: .5rem .85rem; border: 0; border-radius: 10px; background: none;
    color: var(--ink); font-weight: 600; font-size: .95rem; cursor: pointer;
    text-decoration: none; white-space: nowrap;
    transition: color .2s, background-color .2s;
}

.nav-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (hover: hover) {
    .nav-item:hover { color: var(--brand-text); background: var(--brand-tint); }
}

.header-actions { display: flex; align-items: center; gap: .75rem; }

.btn-kids-login {
    min-height: 36px; padding: .35rem .7rem; gap: .35rem;
    border: 1px solid var(--brand); background: #fff; color: var(--brand-deep);
    font-size: .8rem; font-weight: 600; text-decoration: none;
}

.btn-kids-login svg { flex: none; }
.btn-kids-login:hover { background: var(--brand-tint); }

.lang-switch {
    display: inline-flex; padding: 3px; gap: 2px;
    background: #f2f5f9; border-radius: var(--radius-pill);
}

.lang-switch a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; min-height: 38px; padding-inline: .4rem;
    border-radius: var(--radius-pill);
    color: var(--body); font-size: .85rem; font-weight: 700; text-decoration: none;
    transition: background-color .2s, color .2s;
}

.lang-switch a[aria-current] { background: #fff; color: var(--brand-text); box-shadow: 0 1px 4px rgba(22, 35, 63, .12); }
.lang-switch a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

@media (hover: hover) {
    .lang-switch a:not([aria-current]):hover { color: var(--ink); }
}

/* ---------- Parent course: an independent offer, outside the plans ---------- */
.parent-course {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem);
    margin-block: .25rem clamp(2.5rem, 5vw, 3.5rem);
    padding: clamp(1.5rem, 2.6vw, 2rem) clamp(1.5rem, 4vw, 3rem);
    background: var(--cream); border: 1px solid #f3e4ce;
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(136, 94, 30, .09), 0 2px 4px rgba(136, 94, 30, .04);
}

.parent-course-head { display: flex; align-items: center; gap: .75rem; }

.parent-course-icon {
    display: grid; place-items: center; flex: none;
    width: 44px; height: 44px; border-radius: 14px;
    background: #fff; color: var(--brand-text);
    box-shadow: 0 4px 10px rgba(234, 111, 12, .14);
}

.parent-course-icon svg { width: 24px; height: 24px; }
.parent-course-title { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); }

.parent-course-copy p {
    max-width: 44rem; margin-block: .6rem 1.25rem;
    font-size: 1.04rem; line-height: 1.8;
}

.parent-course-copy .btn { max-width: 100%; white-space: normal; text-decoration: none; }

.parent-course-art {
    display: grid; place-items: center;
    padding: .75rem;
    border-radius: 22px;
    background: radial-gradient(closest-side, #fff 0%, rgba(255, 255, 255, .55) 70%, transparent 100%);
}

.parent-course-art img { width: 100%; max-width: 280px; height: auto; }

@media (min-width: 1281px) {
    .site-header--parent-course .nav-item { padding-inline: .55rem; font-size: .9rem; }
}

@media (max-width: 1280px) {
    .site-header--parent-course .header-row { grid-template-columns: auto auto; justify-content: space-between; row-gap: 0; }
    .site-header--parent-course .header-actions { grid-column: 2; grid-row: 1; }
    .site-header--parent-course .main-nav { display: flex; grid-column: 1 / -1; grid-row: 2; padding-block-end: .5rem; }
    .site-header--parent-course .nav-item:not(.nav-item--course) { display: none; }
    .site-header--parent-course .nav-item--course { background: var(--brand-tint); color: var(--ink); }
}

@media (max-width: 700px) {
    .parent-course { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: 1.25rem 1.25rem 1.5rem; border-radius: 24px; }
    .parent-course-art { order: -1; padding: 0; }
    .parent-course-art img { max-width: 220px; }
    .parent-course-copy { text-align: center; }
    .parent-course-head { justify-content: center; }
    .parent-course-copy p { margin-inline: auto; }
    .parent-course-copy .btn { width: 100%; }
}

@media (max-width: 360px) {
    .site-header--parent-course .logo { width: 64px; }
    .site-header--parent-course .header-actions { gap: .25rem; }
    .site-header--parent-course .lang-switch a { min-width: 28px; }
    .site-header--parent-course .btn-kids-login { padding-inline: .45rem; gap: .25rem; font-size: .72rem; }
}

/* ---------- Hero ---------- */
.hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
    max-width: 1360px; margin-inline: auto;
}

.hero-copy {
    position: relative;
    padding-block: clamp(1.5rem, 4vw, 3rem);
    padding-inline-start: max(1.25rem, calc((min(100vw, 1360px) - 1160px) / 2));
}

.hero-rays {
    position: absolute; inset-block-start: .4rem; inset-inline-start: max(.6rem, calc((min(100vw, 1360px) - 1160px) / 2 - 1.4rem));
    width: 48px; height: 48px;
}

[dir="ltr"] .hero-rays, [dir="ltr"] .deco-rays { transform: scaleX(-1); }

.hero-title {
    font-size: var(--h1);
    --h1: clamp(2.3rem, 1.3rem + 3vw, 3.7rem);
    line-height: 1.22;
}

html:not([lang="ar"]) .hero-title { --h1: clamp(2rem, 1.25rem + 2.2vw, 3.05rem); }
html[lang="fr"] .hero-title { --h1: clamp(1.9rem, 1rem + 2.1vw, 2.75rem); }

.hero-line { display: block; text-wrap: balance; }
.hero-line--accent { color: var(--brand-text); }

/* Typing: everything stays in flow, so the headline never reflows. */
html.js .hero-title .hero-line { visibility: hidden; }
html.js .hero-title .typed { visibility: visible; }

.caret { position: relative; }

.caret::after {
    content: ''; position: absolute;
    inset-block: .08em .02em; inset-inline-start: .05em;
    width: .07em; min-width: 3px; border-radius: 2px;
    background: currentColor; visibility: visible;
}

.caret--blink::after { animation: caret-blink 1.05s step-end infinite; }

@keyframes caret-blink { 50% { opacity: 0; } }

.hero-sub {
    max-width: 34rem; margin-block-start: 1rem;
    font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); line-height: 1.75;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-block-start: 1.6rem; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-block-start: 1.4rem; }

.chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .4rem .9rem; border-radius: var(--radius-pill);
    background: #f3f7fc; color: var(--ink); font-size: .88rem; font-weight: 600;
}

.chip svg { width: 18px; height: 18px; flex: none; }

.hero-photo { justify-self: end; width: 100%; }

.hero-photo img {
    width: 100%;
    -webkit-mask-image: var(--fade-x), linear-gradient(to top, transparent 0, #000 9%);
    mask-image: var(--fade-x), linear-gradient(to top, transparent 0, #000 9%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

[dir="rtl"] .hero-photo img { --fade-x: linear-gradient(to right, #000 74%, transparent 100%); }
[dir="ltr"] .hero-photo img { --fade-x: linear-gradient(to left, #000 74%, transparent 100%); }

/* Past the hero's max width the photo no longer touches the viewport edge. */
@media (min-width: 1361px) {
    .hero-photo img { --fade-x: linear-gradient(to right, transparent 0, #000 12%, #000 76%, transparent 100%) !important; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.25rem, 4vw, 3rem); }

.sec-title {
    text-align: center;
    font-size: clamp(1.65rem, 1.35rem + 1.2vw, 2.2rem);
}

.sec-title::after, .band-title::after {
    content: ''; display: block; width: 46px; height: 3px;
    margin: .6rem auto 0; border-radius: 3px; background: var(--brand);
    transition: transform .7s var(--ease) .15s;
}

html.js .reveal:not(.in).sec-title::after,
html.js .reveal:not(.in) .band-title::after { transform: scaleX(0); }

/* ---------- Why ---------- */
.why-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem; margin-block-start: 1.75rem;
}

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}

.why-card { position: relative; padding: 1.4rem 1.1rem 1.5rem; text-align: center; }
.why-card img { width: 72px; height: 72px; margin-inline: auto; margin-block-end: .8rem; }
.why-card h3 { font-size: 1.14rem; }
.why-card p { margin-block-start: .35rem; font-size: .95rem; }

@media (hover: hover) {
    .why-card:hover, .step:hover, .plan:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(22, 35, 63, .09);
    }
}

/* ---------- Curriculum ---------- */
.curriculum {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center; gap: 1.5rem;
    width: min(1300px, 100%); margin-inline: auto;
    padding: 1.1rem clamp(1.25rem, 5vw, 5rem);
    background: var(--cream);
    border-radius: clamp(0px, 3vw, 28px);
}

.band-title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem); }

.curriculum-copy p { margin-block-start: .5rem; font-size: 1.08rem; }

.curriculum-copy { text-align: center; }

.curriculum-art { position: relative; }
.curriculum-art img { width: 100%; max-width: 350px; margin-inline: auto; }

.deco-rays { position: absolute; width: 40px; height: 40px; }
.curriculum-art .deco-rays { inset-block-start: 6%; inset-inline-end: 4%; }

/* ---------- Steps ---------- */
.steps {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center; gap: .9rem; margin-block-start: 1.75rem;
}

.step {
    display: flex; align-items: center; gap: 1rem; height: 100%;
    padding: 1.1rem 1.25rem;
}

.step img { width: 53px; height: 54px; flex: none; }
.step h3 { font-size: 1.2rem; }
.step p { font-size: .94rem; }

.chevron { display: grid; place-items: center; color: var(--ink); }
.chevron svg { width: 20px; height: 20px; }

/* ---------- Pricing ---------- */
.pricing-comparison {
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid #e4e9f2; border-radius: 30px;
    background: linear-gradient(135deg, #f3f6fc, #faf8f4);
    box-shadow: 0 14px 40px rgba(22, 35, 63, .06);
}

#plans > .sec-title {
    font-size: clamp(1.85rem, 1.35rem + 1.7vw, 2.5rem);
    margin-block-end: .4rem;
}

.plans {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem; align-items: stretch; margin-block-start: 2.1rem;
}

#paid-plans { gap: clamp(.65rem, 1.2vw, 1rem); margin-block-start: 2.65rem; }

.plan {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    padding: 1.6rem 1.2rem 1.25rem;
}

#paid-plans .plan {
    min-height: 448px; padding: 2rem 1rem 1.4rem;
    border: 1px solid #e3e8ee; border-radius: 22px;
    background: #fff; text-align: center;
    box-shadow: 0 8px 18px rgba(22, 35, 63, .08), 0 2px 4px rgba(22, 35, 63, .04);
    transition: transform .26s var(--ease), border-color .26s var(--ease),
                box-shadow .26s var(--ease);
}

#paid-plans .plan--featured {
    isolation: isolate; border: 2px solid var(--brand);
    background: linear-gradient(160deg, #fff5e6, #fffdf9 65%); scale: 1.055; translate: 0 -9px;
    box-shadow: 0 12px 22px rgba(143, 77, 32, .17), 0 3px 6px rgba(143, 77, 32, .08);
}

#paid-plans .plan--featured::before {
    content: ''; position: absolute; z-index: -1;
    inset: -6px; border-radius: 27px; pointer-events: none;
    box-shadow: 0 0 28px rgba(234, 111, 12, .24);
    opacity: .28; animation: pricing-ambient 5s ease-in-out infinite alternate;
    transition: opacity .26s var(--ease);
}

@keyframes pricing-ambient { to { opacity: .65; } }

@media (hover: hover) {
    #paid-plans .plan:hover {
        transform: translateY(-6px); border-color: #e7aa75;
        box-shadow: 0 14px 32px rgba(22, 35, 63, .1);
    }

    #paid-plans .plan--featured:hover {
        transform: translateY(-8px) scale(1.01);
        border-color: #d95c06;
        box-shadow: 0 18px 38px rgba(143, 77, 32, .17);
    }

    #paid-plans .plan--featured:hover::before { animation: none; opacity: .8; }
    #paid-plans .plan .btn:hover { transform: translateY(-2px); }
}

#paid-plans .plan:focus-within { border-color: var(--brand); }

.plan--schools {
    align-items: center; text-align: center;
    grid-column: 1 / -1;
    background: var(--sky); border-color: transparent;
}

.plan h3 { font-size: 1.22rem; }
.plan-icon {
    display: grid; place-items: center; flex: none;
    width: 52px; height: 52px; margin: 0 auto .9rem;
    border: 1px solid #e0e8f5; border-radius: 17px;
    background: #edf3ff; color: #345a97;
    box-shadow: 0 4px 10px rgba(52, 90, 151, .08);
}
.plan-icon svg { width: 28px; height: 28px; }
.plan--featured .plan-icon {
    background: #ffe7c6; border-color: #ffd49b; color: #ac4b06;
}
#paid-plans .plan h3 {
    height: 2.5em; color: var(--ink);
    font-size: 1.25rem; line-height: 1.25;
}

.plan-description {
    height: 3.2em; margin-block-start: .2rem; overflow: hidden;
    color: #657187; font-size: .87rem; line-height: 1.6;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}

.plan-exposure { margin-block-start: 1.1rem; }
#paid-plans .plan-exposure {
    margin-block: 1rem 1.25rem; padding: .8rem .5rem;
    border: 1px solid #e8edf5; border-radius: 14px; background: #f6f8fc;
}
#paid-plans .plan--featured .plan-exposure { border-color: #ffe1b8; background: #fff1dc; }
.plan-exposure-amount {
    display: block; color: var(--ink);
    font-size: clamp(1.35rem, 1.8vw, 1.65rem); font-weight: 700; line-height: 1.2;
}
.plan-exposure-label {
    display: block; margin-block-start: .2rem;
    color: #657187; font-size: .79rem; line-height: 1.4;
}

.plan-price {
    margin-block-start: .95rem; color: var(--ink);
    font-size: clamp(1.95rem, 2.8vw, 2.7rem); font-weight: 800;
    line-height: 1.12; white-space: nowrap;
}

#paid-plans .plan-badge {
    position: absolute; inset-block-start: 0; inset-inline-start: 50%;
    transform: translate(50%, -50%);
    max-width: calc(100% - 1rem); padding: .3rem .85rem;
    border-radius: var(--radius-pill); font-size: .78rem;
    font-weight: 700; line-height: 1.35;
    background: #c95204; color: #fff;
    box-shadow: 0 5px 12px rgba(165, 68, 11, .18);
}

[dir="ltr"] #paid-plans .plan-badge { transform: translate(-50%, -50%); }

.plan .btn { margin-block-start: auto; }
#paid-plans .plan .btn {
    min-height: 48px; padding-inline: .5rem; font-size: .92rem;
    transition: transform .24s var(--ease), background-color .24s var(--ease),
                border-color .24s var(--ease), box-shadow .24s var(--ease);
}

#paid-plans .plan .btn-outline {
    border-color: #cdd9ea; color: #24456f; background: #f7faff;
    box-shadow: 0 4px 0 #dce4ef, 0 7px 14px rgba(22, 35, 63, .08);
}

#paid-plans .plan--featured .btn-primary {
    background: linear-gradient(180deg, var(--brand), var(--brand-deep));
    box-shadow: 0 4px 0 #b94e05, 0 9px 18px rgba(234, 111, 12, .25);
}

@media (hover: hover) {
    #paid-plans .plan .btn-outline:hover {
        border-color: var(--brand); color: var(--brand-deep);
        background: #fffaf5;
    }
    #paid-plans .plan--featured .btn-primary:hover {
        background: var(--brand-deep);
        box-shadow: 0 9px 20px rgba(234, 111, 12, .27);
    }
}

#paid-plans .plan .btn:active { transform: scale(.98); }
#paid-plans .plan .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

#paid-plans .plan--enter { opacity: 0; transform: translateY(26px) scale(.98); }
#paid-plans.is-visible .plan--enter {
    opacity: 1; transform: none;
    animation: pricing-card-in .48s var(--ease) var(--card-delay) backwards;
}
#paid-plans.is-visible .plan--enter .plan-price {
    animation: pricing-price-in .36s var(--ease) calc(var(--card-delay) + 110ms) backwards;
}
#paid-plans.is-visible .plan--enter .plan-badge {
    animation: pricing-badge-in .3s var(--ease) calc(var(--card-delay) + 100ms) backwards;
}
@keyframes pricing-card-in {
    from { opacity: 0; transform: translateY(26px) scale(.98); }
    to { opacity: 1; transform: none; }
}
@keyframes pricing-price-in {
    from { opacity: 0; translate: 0 7px; }
    to { opacity: 1; translate: none; }
}
@keyframes pricing-badge-in {
    from { opacity: 0; scale: .9; }
    to { opacity: 1; scale: 1; }
}

#plans .plans--free {
    grid-template-columns: minmax(0, 1fr); margin-block-start: 1.25rem;
}
.plans--free .plan {
    width: min(100%, 390px); min-height: 320px; justify-self: center;
    align-items: center; justify-content: center; gap: .85rem;
    padding: 2rem 1.35rem 1.5rem; border: 1px solid #edcf9f;
    border-radius: 22px; text-align: center;
    background: radial-gradient(circle at 50% 0, #ffe5a6, transparent 65%), #fffaf0;
    box-shadow: 0 9px 22px rgba(136, 94, 30, .12), 0 2px 4px rgba(136, 94, 30, .05);
    transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.plans--free .plan-icon {
    width: 80px; height: 80px; margin-block-end: .25rem;
    border: 1px solid #f4c971; border-radius: 25px;
    background: linear-gradient(145deg, #fff9e7, #ffdf96); color: #a34c12;
    box-shadow: 0 6px 0 rgba(218, 162, 58, .15), 0 12px 20px rgba(169, 112, 20, .12);
    transform: rotate(-7deg);
}
.plans--free .plan-icon svg { width: 42px; height: 42px; }
.plans--free .plan h3 { font-size: 1.75rem; }
.plans--free .plan-description {
    display: block; height: auto; overflow: visible; max-width: 24ch;
    margin: 0; color: #77562f; font-size: 1rem; line-height: 1.75;
    white-space: pre-line; overflow-wrap: anywhere;
}
.plans--free .plan .btn {
    min-height: 50px; margin-block-start: auto; white-space: normal;
    border-color: #d9a54d; background: #fffdf7; color: #8b4513;
    box-shadow: 0 4px 0 #ecd4ac, 0 7px 14px rgba(136, 94, 30, .1);
}

.pricing-controls { display: none; }

@media (min-width: 601px) {
    #plans { scroll-margin-block-start: 100px; }
    .pricing-comparison {
        display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr);
        align-items: start; gap: 1rem; margin-block-start: 2.65rem;
    }

    .pricing-paid-area { min-width: 0; }

    #plans .pricing-comparison .plans--free {
        align-self: start; margin: 0; padding-block: 1.6rem 1.3rem;
    }
    .pricing-comparison .plans--free .plan {
        width: 100%; min-height: 448px;
    }
    .pricing-comparison .plans--free .plan .btn { margin-block-start: auto; }
    .pricing-comparison .plans--free .plan:focus-visible,
    .pricing-comparison .plans--free .plan:focus-within {
        outline: 2px solid var(--brand); outline-offset: 3px;
    }

    #paid-plans {
        display: flex; width: 100%; gap: 1.4rem; margin: 0;
        padding: 1.6rem .75rem 1.3rem;
        overflow-x: auto; overflow-y: hidden;
        scroll-snap-type: x mandatory; scroll-padding-inline: .75rem;
        overscroll-behavior-inline: contain; scrollbar-width: none;
        cursor: grab;
    }
    #paid-plans::-webkit-scrollbar { display: none; }
    #paid-plans.is-dragging { cursor: grabbing; scroll-snap-type: none; }
    #paid-plans .plan {
        flex: 0 0 calc((100% - 1.4rem) / 2);
        scroll-snap-align: start; user-select: none;
    }
    #paid-plans .plan--featured { scale: 1.025; translate: 0 -6px; }
    #paid-plans .plan:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

    .pricing-controls {
        display: flex; align-items: center; justify-content: center;
        gap: 1.1rem; min-height: 50px;
    }
    .pricing-arrow {
        display: grid; place-items: center; width: 44px; height: 44px;
        padding: 0; border: 1px solid #dce3eb; border-radius: 50%;
        background: #fff; color: var(--ink);
        box-shadow: 0 3px 10px rgba(22, 35, 63, .07); cursor: pointer;
        transition: transform .23s var(--ease), border-color .23s var(--ease),
                    color .23s var(--ease), box-shadow .23s var(--ease);
    }
    .pricing-arrow svg { width: 19px; height: 19px; }
    [dir="rtl"] .pricing-arrow svg { transform: scaleX(-1); }
    .pricing-arrow:disabled { opacity: .4; cursor: default; box-shadow: none; }
    .pricing-arrow:focus-visible, .pricing-dot:focus-visible {
        outline: 2px solid var(--ink); outline-offset: 3px;
    }
    .pricing-arrow:active:not(:disabled) { transform: scale(.94); }
    .pricing-dots { display: flex; align-items: center; justify-content: center; gap: .25rem; }
    .pricing-dot {
        position: relative; width: 24px; height: 30px; padding: 0;
        border: 0; background: transparent; cursor: pointer;
    }
    .pricing-dot::after {
        content: ''; position: absolute; top: 50%; left: 50%;
        width: 7px; height: 7px; border-radius: 50%;
        background: #c7d0dc; transform: translate(-50%, -50%);
        transition: width .23s var(--ease), background-color .23s var(--ease);
    }
    .pricing-dot[aria-current="true"]::after { width: 17px; background: var(--brand); }

    #paid-plans .plan.plan--outgoing {
        animation: pricing-slide-out .42s var(--ease) both;
    }
    #paid-plans .plan.plan--incoming {
        animation: pricing-slide-in .42s var(--ease) both;
    }
    #paid-plans { --slide-out: -10px; --slide-in: 10px; }
    [dir="rtl"] #paid-plans { --slide-out: 10px; --slide-in: -10px; }
    #paid-plans.is-reversing { --slide-out: 10px; --slide-in: -10px; }
    [dir="rtl"] #paid-plans.is-reversing { --slide-out: -10px; --slide-in: 10px; }
    @keyframes pricing-slide-out {
        from { opacity: 1; transform: none; }
        to { opacity: 0; transform: translateX(var(--slide-out)) scale(.98); }
    }
    @keyframes pricing-slide-in {
        from { opacity: 0; transform: translateX(var(--slide-in)) scale(.98); }
        to { opacity: 1; transform: none; }
    }
}

@media (min-width: 601px) and (max-width: 1023px) {
    .pricing-comparison { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    #paid-plans .plan { flex-basis: 100%; }
}

@media (min-width: 601px) and (hover: hover) {
    .pricing-comparison .plans--free .plan:hover {
        transform: translateY(-5px); border-color: #d9a54d;
        box-shadow: 0 14px 25px rgba(136, 94, 30, .18);
    }
    .pricing-arrow:hover:not(:disabled) {
        transform: scale(1.06); border-color: var(--brand);
        color: var(--brand-deep); box-shadow: 0 5px 13px rgba(22, 35, 63, .1);
    }
}

.plan--schools img { width: 150px; margin-block-end: .55rem; }
.plan--schools p { margin-block: .45rem 1.1rem; font-size: .95rem; color: var(--sky-ink); }

/* ---------- Final CTA ---------- */
.final {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 2fr) minmax(0, .9fr);
    grid-template-areas: "cta copy art";
    align-items: center; gap: 1.25rem;
    position: relative; min-height: 136px;
    margin-block-start: 3.5rem; padding: .9rem clamp(1.25rem, 3vw, 2.5rem);
    background: linear-gradient(180deg, #ffefd2, #ffe2b4);
    border-radius: var(--radius-lg);
}

.final-cta { grid-area: cta; justify-self: center; }

.final-copy { grid-area: copy; text-align: center; }
.final-copy h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem); }
.final-copy p { margin-block-start: .15rem; color: #5a4a33; font-weight: 600; font-size: 1.05rem; }

.final-art { grid-area: art; align-self: end; margin-block-end: -.9rem; }

.final-art img {
    width: 100%; max-width: 290px; margin-inline: auto;
    margin-block-start: -3.2rem;
}

/* ---------- Footer ---------- */
.site-footer { margin-block-start: 2rem; padding-block: 1rem 1.6rem; }

.footer-row {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.footer-brand img { width: 66px; }
.footer-brand small { font-size: .8rem; }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem; }
.footer-nav .nav-item { font-size: .88rem; font-weight: 500; color: var(--body); }

.social { display: flex; gap: .4rem; }

.social a {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer;
    transition: color .2s, box-shadow .28s var(--ease), background-color .2s;
}

.social svg { width: 22px; height: 22px; }
.social a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

@media (hover: hover) {
    .social a:hover {
        color: var(--brand-text); background: var(--brand-tint);
        box-shadow: 0 0 0 4px rgba(255, 150, 50, .14);
    }
}

/* ---------- Scroll reveal ---------- */
html.js .reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms);
}

html.js .reveal--art { transform: translateY(18px) scale(.95); }

html.js .reveal.in { opacity: 1; transform: none; }

html.js .reveal.settled {
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}

@media (hover: hover) {
    html.js .reveal.settled.why-card:hover,
    html.js .reveal.settled.step:hover,
    html.js .reveal.settled.plan:hover { transform: translateY(-4px); }
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .main-nav { display: none; }
    .header-row { grid-template-columns: auto auto; justify-content: space-between; }
}

@media (max-width: 1023px) {
    .hero { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .hero-copy { padding-inline: 1.25rem; padding-block: 2.5rem .75rem; }
    .hero-rays { inset-inline-start: .9rem; inset-block-start: .3rem; width: 36px; height: 36px; }
    .hero-photo { justify-self: center; width: min(560px, 100% - 2.5rem); padding-block-end: .5rem; }

    .hero-photo img {
        border-radius: var(--radius-lg);
        -webkit-mask-image: none; mask-image: none;
    }

    .why-grid, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plans { row-gap: 1.6rem; }


    .final {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "art" "copy" "cta";
        padding-block: 0 1.5rem;
    }

    .final-art { margin-block-end: 0; }
    .final-art img { max-width: 240px; margin-block-start: -2.4rem; }

    .footer-row { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
    .footer-brand { align-items: center; }
}

@media (max-width: 860px) {
    .steps { grid-template-columns: minmax(0, 1fr); }
    .chevron svg, [dir="ltr"] .chevron svg { transform: rotate(-90deg); }

    .curriculum { grid-template-columns: minmax(0, 1fr); padding-block: 1.75rem; }
}

@media (max-width: 600px) {
    :root { --shell: calc(100% - 2rem); }

    .why-grid, .plans { grid-template-columns: minmax(0, 1fr); }
    .pricing-comparison { display: flex; flex-direction: column; margin-block-start: 1.5rem; }
    .pricing-paid-area { order: 0; min-width: 0; }
    .pricing-comparison .plans--free { order: 1; }
    #paid-plans {
        display: flex; width: calc(100% + 2rem);
        gap: .75rem; margin-inline: -1rem; margin-block-start: 1.8rem;
        padding: 1.2rem 1rem 1.5rem;
        overflow-x: auto; overflow-y: hidden;
        scroll-snap-type: x mandatory; overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    #paid-plans::-webkit-scrollbar { display: none; }
    #paid-plans .plan {
        flex: 0 0 min(78vw, 390px); min-height: 430px;
        padding-inline: 1.3rem; scroll-snap-align: center;
    }
    #paid-plans .plan--featured {
        width: auto; scale: 1; translate: none;
    }
    #paid-plans .plan-price { font-size: clamp(2.45rem, 10vw, 2.85rem); }
    #paid-plans .plan-exposure-amount { font-size: 1.55rem; }
    #paid-plans .plan .btn { min-height: 52px; font-size: 1rem; }
    .logo { width: 72px; }
    .header-row { min-height: 70px; gap: .5rem; }
    .header-actions { gap: .4rem; }
    .lang-switch a { min-width: 32px; min-height: 40px; padding-inline: .2rem; }
    .btn-header { padding-inline: .8rem; font-size: .85rem; }
    .site-header--kids-login .btn-header { display: none; }
    .hero-copy { padding-inline: 1rem; }
    .hero-photo { width: calc(100% - 2rem); }
    .hero-cta .btn { flex: 1 1 100%; }
}

#paid-plans.is-autoplaying { scroll-snap-type: none; scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .btn:hover, .why-card:hover, .step:hover, .plan:hover { transform: none; }
    #paid-plans .plan, #paid-plans .plan:hover,
    #paid-plans .plan--featured:hover { transform: none; translate: none; scale: 1; }
    .pricing-comparison .plans--free .plan:hover { transform: none; }
    #paid-plans .plan .btn:hover, #paid-plans .plan .btn:active { transform: none; }
    .pricing-arrow:hover, .pricing-arrow:active { transform: none; }
    #paid-plans { scroll-behavior: auto; }
}

@media print {
    html.js .reveal { opacity: 1; transform: none; }
    html.js .hero-title .hero-line { visibility: visible; }
}

/* Compact institutional entry; the parent plans remain the primary journey. */
.plan--schools { flex-direction: row; gap: 1.4rem; text-align: start; padding: 1.3rem 1.6rem; }
.plan--schools img { width: 110px; margin: 0; flex: none; }
.plan--schools .school-entry-copy { flex: 1; min-width: 0; }
.plan--schools p { margin: .3rem 0 0; }
.plan--schools .btn { flex: none; text-decoration: none; white-space: normal; text-align: center; max-width: 23rem; }
@media (max-width: 600px) {
    .plan--schools { flex-direction: column; gap: .8rem; text-align: center; }
    .plan--schools img { width: 100px; }
    .plan--schools .btn { width: 100%; }
}

.nav-item, a.btn { text-decoration: none; }
html { scroll-behavior: smooth; scroll-padding-block-start: 7rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
