/* =========================================
   SPEDIA UNI FONTS
   ========================================= */

@font-face {
    font-family: "Al Qabas";
    src: url("../fonts/AlQabasRegular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Al Qabas";
    src: url("../fonts/AlQabasBold.ttf") format("truetype");
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   SPEDIA UNI — DESIGN SYSTEM
   ========================================= */

:root {
    --turquoise: #0dbbc3;
    --turquoise-dark: #079da4;

    --navy: #0b1f3a;

    --cyan-light: #ddf8f9;
    --gray-light: #f5f7fa;

    --success: #22c55e;
    --warning: #f59e0b;

    --white: #ffffff;
    --dark: #111827;
    --gray: #6b7280;

    --border: rgba(11, 31, 58, 0.09);

    --shadow-sm:
        0 10px 30px rgba(11, 31, 58, 0.07);

    --shadow-lg:
        0 35px 80px rgba(11, 31, 58, 0.14);

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 32px;

    --page-width: 1180px;
}


/* =========================================
   RESET
   ========================================= */

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

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

body {
    margin: 0;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ffffff 55%,
            #f7fbfc 100%
        );

    color: var(--navy);

    font-family:
        "Al Qabas",
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;

    overflow-x: hidden;
}

a {
    color: inherit;
}


/* =========================================
   NAVIGATION
   ========================================= */

.site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;

    padding:
        max(18px, env(safe-area-inset-top))
        20px
        0;
}

.nav-container {
    width: 100%;
    max-width: var(--page-width);

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;

    text-decoration: none;
}

.brand-mark {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--turquoise);
    color: var(--white);

    font-size: 23px;
    font-weight: 900;
    font-style: italic;

    box-shadow:
        0 8px 20px rgba(13, 187, 195, 0.24);
}

.brand-copy {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.brand-copy strong {
    font-size: 19px;
    letter-spacing: -0.5px;
}

.brand-copy small {
    width: fit-content;

    margin-top: 4px;
    padding: 2px 8px;

    border-radius: 20px;

    background: var(--turquoise);
    color: var(--white);

    font-size: 8px;
    font-weight: 800;
}

.nav-login {
    min-height: 43px;

    display: flex;
    align-items: center;

    padding: 0 17px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.82);

    color: var(--navy);

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    backdrop-filter: blur(15px);
}


/* =========================================
   HERO
   ========================================= */

.hero {
    position: relative;

    min-height: 100svh;

    display: flex;
    align-items: center;

    padding:
        105px
        20px
        45px;

    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: var(--page-width);

    margin: 0 auto;

    display: grid;
    gap: 34px;
}

.hero-copy {
    text-align: right;
}

.eyebrow {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 17px;

    padding: 8px 12px;

    border: 1px solid rgba(13, 187, 195, 0.18);
    border-radius: 999px;

    background: rgba(221, 248, 249, 0.62);

    color: var(--turquoise-dark);

    font-size: 12px;
    font-weight: 800;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--turquoise);

    box-shadow:
        0 0 0 5px rgba(13, 187, 195, 0.12);
}

.hero h1 {
    max-width: 750px;

    margin: 0;

    color: var(--navy);

    font-size: clamp(38px, 10.8vw, 72px);
    line-height: 1.06;

    letter-spacing: -1.5px;
}

.hero h1 span {
    display: block;

    margin-top: 4px;

    color: var(--turquoise);
}

.hero-description {
    max-width: 600px;

    margin: 19px 0 0;

    color: var(--gray);

    font-size: clamp(15px, 4vw, 19px);
    line-height: 1.85;

    font-weight: 500;
}

.hero-actions {
    margin-top: 25px;
}

.button {
    min-height: 56px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    padding: 0 22px;

    border-radius: 17px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 800;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.button svg {
    width: 19px;
    height: 19px;
}

.button--primary {
    width: 100%;

    background: var(--turquoise);
    color: var(--white);

    box-shadow:
        0 15px 35px rgba(13, 187, 195, 0.24);
}

.button--primary:active {
    transform: scale(0.98);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;

    margin-top: 20px;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 6px;

    color: var(--gray);

    font-size: 11px;
    font-weight: 700;
}

.proof-icon {
    width: 18px;
    height: 18px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(34, 197, 94, 0.1);
    color: var(--success);

    font-size: 10px;
    font-weight: 900;
}


/* =========================================
   PRODUCT MOCKUP
   ========================================= */

.product-stage {
    position: relative;

    width: 100%;
    max-width: 390px;

    margin: 2px auto 0;

    display: flex;
    justify-content: center;

    perspective: 1000px;
}

.phone {
    position: relative;
    z-index: 2;

    width: min(72vw, 270px);

    padding: 8px;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 37px;

    background: var(--navy);

    box-shadow: var(--shadow-lg);

    transform:
        rotate(-2deg)
        translateY(5px);
}

.phone::before {
    content: "";

    position: absolute;
    z-index: 5;

    top: 14px;
    left: 50%;

    width: 72px;
    height: 20px;

    transform: translateX(-50%);

    border-radius: 20px;

    background: var(--navy);
}

.phone-screen {
    min-height: 440px;

    padding: 43px 13px 18px;

    border-radius: 30px;

    background:
        linear-gradient(
            180deg,
            #f8fcfd 0%,
            #ffffff 100%
        );

    overflow: hidden;
}

.phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 13px;

    border-bottom: 1px solid var(--border);

    color: var(--gray);

    font-size: 9px;
    font-weight: 700;
}

.mini-logo {
    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: var(--turquoise);
    color: var(--white);

    font-weight: 900;
}

.course-heading {
    padding: 17px 2px 12px;
}

.course-heading small {
    color: var(--turquoise);

    font-size: 9px;
    font-weight: 900;
}

.course-heading h2 {
    margin: 3px 0 13px;

    color: var(--navy);

    font-size: 21px;
    letter-spacing: -0.6px;
}

.progress-row {
    display: flex;
    justify-content: space-between;

    color: var(--gray);

    font-size: 8px;
}

.progress-row strong {
    color: var(--turquoise);
}

.progress {
    height: 5px;

    margin-top: 6px;

    border-radius: 10px;

    background: #e9eef1;

    overflow: hidden;
}

.progress span {
    display: block;

    width: 38%;
    height: 100%;

    border-radius: inherit;

    background: var(--turquoise);
}

.lesson-card {
    display: grid;
    grid-template-columns: 34px 1fr 18px;
    align-items: center;
    gap: 9px;

    margin-top: 8px;
    padding: 11px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--white);
}

.lesson-card--active {
    border-color: rgba(13, 187, 195, 0.17);

    background:
        linear-gradient(
            135deg,
            rgba(221, 248, 249, 0.72),
            #ffffff
        );
}

.lesson-number {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--gray-light);
    color: var(--navy);

    font-size: 9px;
    font-weight: 900;
}

.lesson-card--active .lesson-number {
    background: var(--turquoise);
    color: var(--white);
}

.lesson-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.lesson-info small {
    color: var(--turquoise);

    font-size: 6px;
    font-weight: 900;
}

.lesson-info strong {
    margin-top: 2px;

    overflow: hidden;

    color: var(--navy);

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-info span {
    margin-top: 2px;

    color: var(--gray);

    font-size: 7px;
}

.lesson-arrow {
    color: var(--gray);

    font-size: 12px;
}


/* =========================================
   FLOATING UI
   ========================================= */

.float-card {
    position: absolute;
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 11px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.9);

    box-shadow: var(--shadow-sm);

    backdrop-filter: blur(14px);
}

.float-card small,
.float-card strong {
    display: block;
}

.float-card small {
    color: var(--gray);

    font-size: 7px;
}

.float-card strong {
    margin-top: 2px;

    color: var(--navy);

    font-size: 8px;
}

.float-card--quiz {
    top: 85px;
    left: -1px;

    animation:
        floatCard 4.2s ease-in-out infinite;
}

.float-icon {
    width: 26px;
    height: 26px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: rgba(34, 197, 94, 0.11);
    color: var(--success);

    font-size: 12px;
    font-weight: 900;
}

.float-card--teacher {
    right: -4px;
    bottom: 80px;

    animation:
        floatCard 4.7s ease-in-out 0.5s infinite;
}

.teacher-avatar {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--navy);
    color: var(--white);

    font-size: 10px;
    font-weight: 900;
}


/* =========================================
   BACKGROUND SHAPES
   ========================================= */

.hero-shape {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(2px);
}

.hero-shape--one {
    width: 290px;
    height: 290px;

    top: 15%;
    left: -190px;

    background:
        rgba(13, 187, 195, 0.08);
}

.hero-shape--two {
    width: 220px;
    height: 220px;

    right: -150px;
    bottom: 8%;

    background:
        rgba(221, 248, 249, 0.7);
}


/* =========================================
   SCROLL HINT
   ========================================= */

.scroll-hint {
    display: none;
}


/* =========================================
   ANIMATION
   ========================================= */

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}


/* =========================================
   TABLET + DESKTOP
   ========================================= */

@media (min-width: 760px) {

    .site-header {
        padding:
            25px
            35px
            0;
    }

    .hero {
        padding:
            120px
            35px
            60px;
    }

    .hero-container {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(330px, 0.72fr);

        align-items: center;

        gap: 70px;
    }

    .hero-copy {
        grid-column: 1;
    }

    .product-stage {
        grid-column: 2;
        grid-row: 1;

        max-width: 430px;
    }

    .button--primary {
        width: auto;
        min-width: 220px;
    }

    .phone {
        width: 285px;
    }

    .phone-screen {
        min-height: 500px;
    }

    .float-card--quiz {
        left: -25px;
    }

    .float-card--teacher {
        right: -25px;
    }
}


/* =========================================
   LARGE DESKTOP
   ========================================= */

@media (min-width: 1100px) {

    .nav-login:hover {
        border-color:
            rgba(13, 187, 195, 0.28);

        color: var(--turquoise-dark);
    }

    .button--primary:hover {
        background: var(--turquoise-dark);

        transform: translateY(-2px);

        box-shadow:
            0 20px 45px rgba(13, 187, 195, 0.28);
    }

    .phone {
        width: 305px;
    }
}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 360px) {

    .hero {
        padding-right: 17px;
        padding-left: 17px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero-description {
        font-size: 14px;
    }

    .phone {
        width: 235px;
    }

    .phone-screen {
        min-height: 405px;
    }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================
   OFFICIAL SPEDIA UNI LOGO
   ========================================= */

.brand-logo {
    display: block;
    width: 112px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 420px) {
    .brand-logo {
        width: 105px;
    }
}


/* =========================================
   WHATSAPP SUPPORT
   ========================================= */

.whatsapp-help {
    width: 100%;

    display: grid;
    grid-template-columns: 46px 1fr 26px;
    align-items: center;
    gap: 11px;

    margin-top: 15px;
    padding: 11px 13px;

    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            rgba(34, 197, 94, 0.07),
            rgba(255, 255, 255, 0.92)
        );

    color: var(--navy);

    text-decoration: none;

    box-shadow:
        0 10px 30px rgba(11, 31, 58, 0.05);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.whatsapp-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: #22c55e;
    color: #ffffff;

    box-shadow:
        0 9px 22px rgba(34, 197, 94, 0.2);
}

.whatsapp-icon svg {
    width: 25px;
    height: 25px;
}

.whatsapp-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    text-align: right;
}

.whatsapp-copy small {
    color: var(--gray);

    font-size: 10px;
    font-weight: 400;
}

.whatsapp-copy strong {
    margin-top: 1px;

    color: var(--navy);

    font-size: 14px;
    font-weight: 700;
}

.whatsapp-copy > span {
    margin-top: 2px;

    color: #16a34a;

    font-size: 10px;
    font-weight: 700;

    text-align: right;
}

.whatsapp-arrow {
    color: #16a34a;

    font-size: 20px;
    font-weight: 700;
}

@media (min-width: 760px) {

    .whatsapp-help {
        max-width: 390px;
    }
}

@media (min-width: 1100px) {

    .whatsapp-help:hover {
        transform: translateY(-2px);

        border-color: rgba(34, 197, 94, 0.28);

        box-shadow:
            0 15px 35px rgba(11, 31, 58, 0.08);
    }
}


/* =========================================
   OFFERS & PACKAGES
   ========================================= */

.offers-section {
    position: relative;

    padding:
        64px 0 70px;

    background:
        linear-gradient(
            180deg,
            #f8fcfd 0%,
            #ffffff 100%
        );

    overflow: hidden;
}

.section-container {
    width: 100%;
    max-width: var(--page-width);

    margin: 0 auto;
}

.section-heading {
    padding: 0 20px;
}

.section-kicker {
    display: inline-block;

    margin-bottom: 7px;

    color: var(--turquoise-dark);

    font-size: 12px;
    font-weight: 700;
}

.section-heading h2 {
    max-width: 580px;

    margin: 0;

    color: var(--navy);

    font-size: clamp(29px, 8vw, 47px);
    line-height: 1.15;

    letter-spacing: -1px;
}

.section-heading > p {
    max-width: 430px;

    margin: 11px 0 0;

    color: var(--gray);

    font-size: 14px;
    line-height: 1.7;
}


/* Horizontal mobile experience */

.offers-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(86vw, 355px);

    gap: 13px;

    margin-top: 26px;
    padding:
        5px 20px
        22px;

    overflow-x: auto;
    overscroll-behavior-inline: contain;

    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 20px;

    scrollbar-width: none;
}

.offers-scroller::-webkit-scrollbar {
    display: none;
}


/* Card */

.offer-card {
    position: relative;

    min-height: 370px;

    display: flex;
    flex-direction: column;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 25px;

    background: var(--white);

    box-shadow:
        0 18px 50px rgba(11, 31, 58, 0.07);

    scroll-snap-align: start;

    overflow: hidden;

    transition:
        transform 200ms ease,
        box-shadow 200ms ease;
}

.offer-card::before {
    content: "";

    position: absolute;

    width: 145px;
    height: 145px;

    top: -75px;
    left: -65px;

    border-radius: 50%;

    background:
        rgba(13, 187, 195, 0.07);

    pointer-events: none;
}

.offer-card--featured {
    border-color:
        rgba(13, 187, 195, 0.32);

    background:
        linear-gradient(
            145deg,
            rgba(221, 248, 249, 0.55) 0%,
            #ffffff 47%
        );

    box-shadow:
        0 22px 60px rgba(13, 187, 195, 0.11);
}


/* Top labels */

.offer-top {
    position: relative;
    z-index: 2;

    min-height: 31px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.offer-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.offer-badge,
.offer-university,
.discount-pill {
    display: inline-flex;
    align-items: center;

    min-height: 27px;

    padding: 0 9px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 700;
}

.offer-badge {
    background: var(--turquoise);
    color: var(--white);
}

.offer-university {
    background: var(--gray-light);
    color: var(--gray);
}

.discount-pill {
    flex-shrink: 0;

    background:
        rgba(245, 158, 11, 0.1);

    color: #d97706;
}


/* Content */

.offer-body {
    position: relative;
    z-index: 2;

    flex: 1;

    padding-top: 27px;
}

.offer-body h3 {
    margin: 0;

    color: var(--navy);

    font-size: 26px;
    line-height: 1.25;

    letter-spacing: -0.5px;
}

.offer-body > p {
    max-width: 285px;

    margin: 9px 0 0;

    color: var(--gray);

    font-size: 13px;
    line-height: 1.7;
}

.offer-note {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: 17px;
    padding: 8px 10px;

    border-radius: 11px;

    background:
        rgba(13, 187, 195, 0.07);

    color: var(--turquoise-dark);

    font-size: 11px;
    font-weight: 700;
}

.offer-note span {
    color: var(--turquoise);
}


/* Price */

.offer-price {
    margin-top: 22px;
}

.old-price {
    display: block;

    margin-bottom: 1px;

    color: #9ca3af;

    font-size: 12px;

    text-decoration: line-through;
}

.current-price {
    display: flex;
    align-items: baseline;
    gap: 5px;

    color: var(--navy);
}

.current-price strong {
    font-size: 38px;
    line-height: 1;
    letter-spacing: -1px;
}

.current-price span {
    color: var(--gray);

    font-size: 13px;
    font-weight: 700;
}


/* CTA */

.offer-cta {
    position: relative;
    z-index: 2;

    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 20px;
    padding: 0 17px;

    border-radius: 15px;

    background: var(--navy);
    color: var(--white);

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 180ms ease,
        background 180ms ease;
}

.offer-card--featured .offer-cta {
    background: var(--turquoise);
}

.offer-cta > span {
    font-size: 18px;
}


/* Swipe hint */

.offers-swipe-hint {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 20px;

    color: #9ca3af;

    font-size: 10px;
    font-weight: 400;
}

.swipe-arrow {
    color: var(--turquoise);

    font-size: 16px;

    animation:
        swipeHint 1.6s ease-in-out infinite;
}

@keyframes swipeHint {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-5px);
    }
}


/* Desktop */

@media (min-width: 760px) {

    .offers-section {
        padding:
            90px 35px
            100px;
    }

    .section-heading {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 40px;

        padding: 0;
    }

    .section-heading > p {
        margin: 0 0 5px;
    }

    .offers-scroller {
        grid-auto-flow: initial;
        grid-auto-columns: initial;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 17px;

        margin-top: 38px;
        padding: 0 0 20px;

        overflow: visible;
    }

    .offers-swipe-hint {
        display: none;
    }
}


@media (min-width: 1100px) {

    .offer-card:hover {
        transform: translateY(-5px);

        box-shadow:
            0 25px 65px rgba(11, 31, 58, 0.1);
    }

    .offer-cta:hover {
        background: var(--turquoise-dark);
    }
}


/* =========================================
   MOBILE READABILITY PASS
   ========================================= */

@media (max-width: 759px) {

    .nav-login {
        min-height: 48px;
        padding: 0 17px;

        font-size: 15px;
    }

    .hero {
        padding-top: 110px;
    }

    .eyebrow {
        font-size: 14px;
    }

    .hero h1 {
        font-size: clamp(40px, 11.5vw, 50px);
        line-height: 1.12;
    }

    .hero-description {
        font-size: 17px;
        line-height: 1.8;
    }

    .button {
        min-height: 59px;
        font-size: 17px;
    }

    .proof-item {
        font-size: 13px;
    }

    .whatsapp-copy small {
        font-size: 12px;
    }

    .whatsapp-copy strong {
        font-size: 16px;
    }

    .whatsapp-copy > span {
        font-size: 12px;
    }

    .section-kicker {
        font-size: 14px;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .section-heading > p {
        font-size: 16px;
    }

    .offer-card {
        min-height: 410px;
        padding: 22px;
    }

    .offer-badge,
    .offer-university,
    .discount-pill {
        min-height: 31px;
        padding: 0 11px;

        font-size: 11px;
    }

    .offer-body h3 {
        font-size: 30px;
    }

    .offer-body > p {
        font-size: 15px;
        line-height: 1.75;
    }

    .offer-note {
        padding: 10px 12px;

        font-size: 13px;
    }

    .old-price {
        font-size: 14px;
    }

    .current-price strong {
        font-size: 43px;
    }

    .current-price span {
        font-size: 15px;
    }

    .offer-cta {
        min-height: 57px;

        font-size: 16px;
    }

    .offers-swipe-hint {
        font-size: 12px;
    }
}


/* =========================================
   OFFER DETAIL PAGE
   ========================================= */

.offer-detail-page {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7fbfc 55%,
            #ffffff 100%
        );
}

.detail-header {
    width: 100%;
    max-width: 900px;

    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 0 auto;
    padding:
        max(17px, env(safe-area-inset-top))
        20px
        10px;
}

.detail-back {
    min-height: 44px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 13px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--white);

    color: var(--navy);

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

.detail-logo {
    width: 105px;
    height: auto;
}

.detail-main {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    padding-bottom: 115px;
}


/* Detail Hero */

.detail-hero {
    position: relative;

    margin: 18px 15px 0;
    padding: 28px 22px;

    border: 1px solid rgba(13, 187, 195, 0.16);
    border-radius: 29px;

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(13, 187, 195, 0.14),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #effcfc 0%,
            #ffffff 58%
        );

    box-shadow:
        0 20px 60px rgba(11, 31, 58, 0.07);

    overflow: hidden;
}

.detail-hero::after {
    content: "S";

    position: absolute;

    left: -13px;
    bottom: -65px;

    color: rgba(13, 187, 195, 0.06);

    font-size: 210px;
    font-weight: 900;
    line-height: 1;

    transform: rotate(-10deg);

    pointer-events: none;
}

.detail-tags {
    position: relative;
    z-index: 2;

    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.detail-badge,
.detail-university {
    min-height: 31px;

    display: inline-flex;
    align-items: center;

    padding: 0 11px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}

.detail-badge {
    background: var(--turquoise);
    color: var(--white);
}

.detail-university {
    background: var(--white);
    color: var(--navy);

    border: 1px solid var(--border);
}

.detail-hero h1 {
    position: relative;
    z-index: 2;

    max-width: 650px;

    margin: 23px 0 0;

    color: var(--navy);

    font-size: clamp(38px, 11vw, 64px);
    line-height: 1.08;

    letter-spacing: -1px;
}

.detail-subtitle {
    position: relative;
    z-index: 2;

    max-width: 580px;

    margin: 13px 0 0;

    color: var(--gray);

    font-size: 17px;
    line-height: 1.8;
}

.detail-highlight {
    position: relative;
    z-index: 2;

    width: fit-content;

    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 21px;
    padding: 11px 13px;

    border-radius: 13px;

    background: rgba(13, 187, 195, 0.09);

    color: var(--turquoise-dark);

    font-size: 14px;
    font-weight: 700;
}

.detail-highlight-icon {
    color: var(--turquoise);
}

.detail-price-row {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;

    margin-top: 27px;
}

.detail-old-price {
    display: block;

    color: #9ca3af;

    font-size: 14px;

    text-decoration: line-through;
}

.detail-price > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.detail-price strong {
    color: var(--navy);

    font-size: 46px;
    line-height: 1;
}

.detail-price div span {
    color: var(--gray);

    font-size: 15px;
    font-weight: 700;
}

.detail-saving {
    padding: 9px 11px;

    border-radius: 11px;

    background: rgba(245, 158, 11, 0.1);

    color: #d97706;

    font-size: 12px;
    font-weight: 700;
}


/* Generic detail sections */

.detail-section {
    padding: 55px 20px 0;
}

.detail-kicker {
    color: var(--turquoise-dark);

    font-size: 14px;
    font-weight: 700;
}

.detail-section h2,
.detail-final h2 {
    margin: 6px 0 0;

    color: var(--navy);

    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.2;

    letter-spacing: -0.7px;
}

.detail-intro p {
    max-width: 680px;

    margin: 15px 0 0;

    color: var(--gray);

    font-size: 17px;
    line-height: 1.9;
}


/* Subjects */

.detail-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.subjects-count {
    flex-shrink: 0;

    padding: 7px 10px;

    border-radius: 10px;

    background: var(--cyan-light);

    color: var(--turquoise-dark);

    font-size: 12px;
    font-weight: 700;
}

.subjects-list {
    display: grid;
    gap: 10px;

    margin-top: 22px;
}

.subject-card {
    display: grid;
    grid-template-columns: 45px 1fr 28px;
    align-items: center;
    gap: 12px;

    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--white);

    box-shadow:
        0 10px 30px rgba(11, 31, 58, 0.045);
}

.subject-number {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--turquoise);
    color: var(--white);

    font-size: 13px;
    font-weight: 700;
}

.subject-copy {
    min-width: 0;
}

.subject-copy small {
    color: var(--turquoise-dark);

    font-size: 11px;
    font-weight: 700;
}

.subject-copy h3 {
    margin: 2px 0 0;

    color: var(--navy);

    font-size: 19px;
    line-height: 1.25;
}

.subject-copy p {
    margin: 4px 0 0;

    color: var(--gray);

    font-size: 13px;
    line-height: 1.55;
}

.subject-check {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(34, 197, 94, 0.1);
    color: var(--success);

    font-size: 12px;
    font-weight: 700;
}


/* Benefits */

.benefits-list {
    display: grid;
    gap: 9px;

    margin-top: 22px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px;

    border-radius: 15px;

    background: var(--white);

    border: 1px solid var(--border);
}

.benefit-item > span {
    width: 29px;
    height: 29px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: rgba(13, 187, 195, 0.09);
    color: var(--turquoise);

    font-size: 12px;
    font-weight: 700;
}

.benefit-item strong {
    color: var(--navy);

    font-size: 15px;
    line-height: 1.5;
}


/* Final conversion */

.detail-final {
    position: relative;

    margin: 60px 15px 0;
    padding: 34px 22px;

    border-radius: 28px;

    background: var(--navy);
    color: var(--white);

    overflow: hidden;
}

.detail-final-mark {
    position: absolute;

    left: -13px;
    bottom: -56px;

    color: rgba(255, 255, 255, 0.04);

    font-size: 190px;
    font-weight: 900;
}

.detail-final .detail-kicker {
    position: relative;
    z-index: 2;

    color: #6ee7eb;
}

.detail-final h2 {
    position: relative;
    z-index: 2;

    color: var(--white);
}

.detail-final p {
    position: relative;
    z-index: 2;

    max-width: 540px;

    margin: 13px 0 0;

    color: rgba(255, 255, 255, 0.7);

    font-size: 16px;
    line-height: 1.8;
}

.detail-buy-button {
    position: relative;
    z-index: 2;

    min-height: 59px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 23px;
    padding: 0 18px;

    border-radius: 16px;

    background: var(--turquoise);
    color: var(--white);

    text-decoration: none;

    font-size: 17px;
    font-weight: 700;
}

.detail-whatsapp {
    position: relative;
    z-index: 2;

    display: block;

    margin-top: 17px;

    color: rgba(255, 255, 255, 0.75);

    text-align: center;
    text-decoration: none;

    font-size: 13px;
}


/* Sticky mobile purchase bar */

.mobile-buy-bar {
    position: fixed;
    z-index: 50;

    right: 10px;
    bottom:
        max(
            10px,
            env(safe-area-inset-bottom)
        );
    left: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;

    padding: 9px 9px 9px 14px;

    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: 19px;

    background: rgba(255, 255, 255, 0.94);

    box-shadow:
        0 15px 50px rgba(11, 31, 58, 0.16);

    backdrop-filter: blur(18px);
}

.mobile-buy-bar > div {
    display: flex;
    flex-direction: column;
}

.mobile-buy-bar small {
    color: var(--gray);

    font-size: 10px;
}

.mobile-buy-bar strong {
    color: var(--navy);

    font-size: 16px;
}

.mobile-buy-bar > a {
    min-height: 51px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border-radius: 14px;

    background: var(--turquoise);
    color: var(--white);

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;
}


@media (min-width: 760px) {

    .detail-header {
        padding-right: 35px;
        padding-left: 35px;
    }

    .detail-hero {
        margin-right: 35px;
        margin-left: 35px;

        padding: 45px;
    }

    .detail-section {
        padding-right: 55px;
        padding-left: 55px;
    }

    .subjects-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .benefits-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .detail-final {
        margin-right: 35px;
        margin-left: 35px;

        padding: 45px;
    }

    .detail-buy-button {
        width: fit-content;
        min-width: 230px;
        gap: 40px;
    }

    .detail-whatsapp {
        width: fit-content;
    }

    .mobile-buy-bar {
        display: none;
    }
}


/* =========================================
   HOMEPAGE CONTENT
   ========================================= */

.home-container {
    width: 100%;
    max-width: var(--page-width);

    margin: 0 auto;
    padding: 0 20px;
}

.compact-heading {
    max-width: 590px;
}

.compact-heading h2,
.teacher-content h2,
.live-copy h2,
.social-heading h2,
.home-final h2 {
    margin: 6px 0 0;

    color: var(--navy);

    font-size: clamp(32px, 8.8vw, 52px);
    line-height: 1.12;

    letter-spacing: -1px;
}

.compact-heading h2 span,
.teacher-content h2 span,
.live-copy h2 span,
.home-final h2 span {
    color: var(--turquoise);
}

.compact-heading > p,
.social-heading > p {
    margin: 13px 0 0;

    color: var(--gray);

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================
   STUDY EXPERIENCE
   ========================================= */

.experience-section {
    padding: 68px 0;

    background: var(--white);
}

.study-demo {
    margin-top: 27px;
    padding: 19px;

    border: 1px solid var(--border);
    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #f4fcfc,
            #ffffff
        );

    box-shadow:
        0 16px 45px rgba(11, 31, 58, 0.06);
}

.study-demo__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.study-demo__top > div {
    display: flex;
    flex-direction: column;
}

.study-demo__top small {
    color: var(--turquoise-dark);

    font-size: 10px;
    font-weight: 700;
}

.study-demo__top strong {
    margin-top: 3px;

    color: var(--navy);

    font-size: 18px;
}

.study-progress {
    color: var(--turquoise);

    font-size: 20px;
    font-weight: 700;
}

.study-track {
    height: 7px;

    margin-top: 15px;

    border-radius: 20px;

    background: #e7eef0;

    overflow: hidden;
}

.study-track span {
    display: block;

    width: 38%;
    height: 100%;

    border-radius: inherit;

    background: var(--turquoise);

    transform-origin: right;
}

.study-journey {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;

    margin-top: 16px;
}

.journey-item {
    min-width: 0;

    padding: 12px 8px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--white);

    text-align: center;
}

.journey-item--active {
    border-color:
        rgba(13, 187, 195, 0.25);

    background: var(--cyan-light);
}

.journey-icon {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    margin: 0 auto 7px;

    border-radius: 10px;

    background: var(--gray-light);
    color: var(--navy);

    font-size: 11px;
}

.journey-item--active .journey-icon {
    background: var(--turquoise);
    color: var(--white);
}

.journey-item div {
    display: flex;
    flex-direction: column;
}

.journey-item small {
    color: #9ca3af;

    font-size: 8px;
}

.journey-item strong {
    margin-top: 2px;

    color: var(--navy);

    font-size: 11px;
    line-height: 1.35;
}


/* Feature cards */

.feature-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 11px;
}

.feature-card {
    min-height: 180px;

    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 19px;

    background: var(--white);
}

.feature-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--cyan-light);
    color: var(--turquoise-dark);

    font-size: 14px;
    font-weight: 700;
}

.feature-card h3 {
    margin: 14px 0 0;

    color: var(--navy);

    font-size: 17px;
    line-height: 1.35;
}

.feature-card p {
    margin: 6px 0 0;

    color: var(--gray);

    font-size: 13px;
    line-height: 1.65;
}


/* =========================================
   TEACHER SUPPORT
   ========================================= */

.teacher-section {
    padding: 15px 0 65px;

    background: var(--white);
}

.teacher-card {
    padding: 25px 20px;

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            #effbfc,
            #ffffff
        );

    border: 1px solid
        rgba(13, 187, 195, 0.13);
}

.teacher-content p,
.live-copy p {
    margin: 13px 0 0;

    color: var(--gray);

    font-size: 16px;
    line-height: 1.8;
}


/* Chat */

.chat-demo {
    max-width: 420px;

    margin: 27px auto 0;
    padding: 15px;

    border-radius: 21px;

    background: var(--white);

    box-shadow:
        0 18px 50px rgba(11, 31, 58, 0.09);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--border);
}

.chat-avatar {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--turquoise);
    color: var(--white);

    font-weight: 700;
}

.chat-header > div {
    display: flex;
    flex-direction: column;
}

.chat-header strong {
    color: var(--navy);

    font-size: 14px;
}

.chat-header small {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-top: 2px;

    color: var(--gray);

    font-size: 10px;
}

.chat-header i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--success);
}

.chat-message {
    width: fit-content;
    max-width: 83%;

    margin-top: 11px;
    padding: 10px 12px;

    border-radius: 14px;

    font-size: 13px;
    line-height: 1.55;
}

.chat-message--student {
    margin-right: auto;

    background: var(--gray-light);
    color: var(--navy);

    border-bottom-left-radius: 4px;
}

.chat-message--teacher {
    margin-left: auto;

    background: var(--turquoise);
    color: var(--white);

    border-bottom-right-radius: 4px;
}

.typing {
    width: 47px;

    display: flex;
    justify-content: center;
    gap: 3px;

    margin-top: 8px;
    margin-left: auto;
    padding: 8px;

    border-radius: 12px;

    background: var(--gray-light);
}

.typing span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #9ca3af;

    animation:
        typingDot 1.2s infinite;
}

.typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.45;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}


/* =========================================
   PRIVATE LIVE
   ========================================= */

.live-section {
    padding: 0 0 70px;

    background: var(--white);
}

.live-card {
    position: relative;

    padding: 27px 20px;

    border-radius: 27px;

    background: var(--navy);
    color: var(--white);

    overflow: hidden;
}

.live-card::before {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    top: -130px;
    left: -110px;

    border-radius: 50%;

    background:
        rgba(13, 187, 195, 0.15);
}

.live-label {
    position: relative;
    z-index: 2;

    width: fit-content;

    display: flex;
    align-items: center;
    gap: 7px;

    color: #7de7eb;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.live-label > span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #ef4444;

    box-shadow:
        0 0 0 5px
        rgba(239, 68, 68, 0.12);

    animation:
        livePulse 1.7s infinite;
}

@keyframes livePulse {
    50% {
        box-shadow:
            0 0 0 9px
            rgba(239, 68, 68, 0);
    }
}

.live-copy {
    position: relative;
    z-index: 2;
}

.live-copy h2 {
    color: var(--white);
}

.live-copy p {
    color: rgba(255,255,255,.68);
}

.live-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 18px;
}

.live-benefits span {
    padding: 7px 9px;

    border: 1px solid
        rgba(255,255,255,.09);
    border-radius: 9px;

    background:
        rgba(255,255,255,.05);

    color: rgba(255,255,255,.85);

    font-size: 11px;
}


/* Live visual */

.live-visual {
    position: relative;
    z-index: 2;

    max-width: 400px;

    margin: 27px auto 0;
}

.live-window {
    position: relative;

    min-height: 230px;

    padding: 13px;

    border: 1px solid
        rgba(255,255,255,.11);
    border-radius: 20px;

    background:
        rgba(255,255,255,.07);

    box-shadow:
        0 25px 60px
        rgba(0,0,0,.16);
}

.live-window-top {
    display: flex;
    align-items: center;
    gap: 6px;

    color: rgba(255,255,255,.55);

    font-size: 9px;
    font-weight: 700;
}

.live-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #ef4444;
}

.screen-share {
    height: 160px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-top: 10px;

    border-radius: 14px;

    background: var(--white);

    color: var(--navy);
}

.screen-share > span {
    color: var(--turquoise);

    font-size: 37px;
}

.screen-share strong {
    margin-top: 3px;

    font-size: 17px;
}

.screen-share small {
    margin-top: 3px;

    color: var(--gray);

    font-size: 9px;
}

.teacher-video {
    position: absolute;

    right: 23px;
    bottom: 23px;

    width: 65px;
    height: 53px;

    display: flex;
    align-items: flex-end;

    padding: 6px;

    border: 2px solid var(--navy);
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            var(--turquoise),
            #087e84
        );

    color: var(--white);

    font-size: 7px;
}

.recording-chip {
    width: fit-content;

    margin:
        -9px auto 0;
    padding: 9px 12px;

    border-radius: 999px;

    background: var(--white);
    color: var(--navy);

    box-shadow:
        0 10px 30px rgba(0,0,0,.15);

    font-size: 10px;
    font-weight: 700;
}

.recording-chip span {
    margin-left: 4px;

    color: #ef4444;
}


/* =========================================
   SOCIAL PROOF
   ========================================= */

.social-section {
    padding: 67px 0;

    background:
        linear-gradient(
            180deg,
            #f8fcfd,
            #ffffff
        );

    text-align: center;
}

.social-heading {
    max-width: 580px;

    margin: 0 auto;
}

.student-stack {
    display: flex;
    justify-content: center;

    margin-top: 27px;

    direction: ltr;
}

.student-avatar {
    position: relative;

    width: 68px;
    height: 68px;

    margin-left: -13px;

    display: grid;
    place-items: center;

    border: 4px solid var(--white);
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--cyan-light),
            #d9e4e8
        );

    box-shadow:
        0 10px 30px rgba(11,31,58,.09);

    overflow: hidden;
}

.student-avatar span {
    color: var(--gray);

    font-size: 7px;
}

.student-avatar--1 {
    transform: rotate(-5deg);
}

.student-avatar--2 {
    transform: translateY(-7px);
}

.student-avatar--3 {
    transform: translateY(2px);
}

.student-avatar--4 {
    transform: rotate(5deg) translateY(-4px);
}

.testimonial-placeholder {
    max-width: 550px;

    margin: 26px auto 0;
    padding: 22px;

    border: 1px dashed
        rgba(13,187,195,.25);
    border-radius: 21px;

    background: var(--white);
}

.quote-mark {
    color: var(--turquoise);

    font-size: 42px;
    line-height: .7;
}

.testimonial-placeholder p {
    margin: 11px 0 0;

    color: var(--navy);

    font-size: 18px;
    line-height: 1.7;
    font-weight: 700;
}

.testimonial-placeholder small {
    display: block;

    margin-top: 9px;

    color: var(--gray);

    font-size: 11px;
}


/* =========================================
   FINAL CTA
   ========================================= */

.home-final {
    padding: 10px 0 70px;

    background: var(--white);
}

.home-final-card {
    position: relative;

    padding: 35px 22px;

    border-radius: 29px;

    background:
        linear-gradient(
            145deg,
            #effcfc,
            #ffffff
        );

    border: 1px solid
        rgba(13,187,195,.15);

    text-align: center;

    overflow: hidden;
}

.final-glow {
    position: absolute;

    width: 220px;
    height: 220px;

    top: -160px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        rgba(13,187,195,.15);

    filter: blur(20px);
}

.final-small {
    position: relative;

    color: var(--turquoise-dark);

    font-size: 13px;
    font-weight: 700;
}

.home-final h2 {
    position: relative;

    font-size: clamp(39px, 11vw, 62px);
}

.home-final p {
    position: relative;

    max-width: 470px;

    margin: 13px auto 0;

    color: var(--gray);

    font-size: 16px;
    line-height: 1.8;
}

.home-final-button {
    position: relative;

    min-height: 59px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 23px;
    padding: 0 18px;

    border-radius: 16px;

    background: var(--turquoise);
    color: var(--white);

    text-decoration: none;

    font-size: 17px;
    font-weight: 700;

    box-shadow:
        0 15px 35px
        rgba(13,187,195,.2);
}

.final-whatsapp {
    position: relative;

    display: block;

    margin-top: 16px;

    color: var(--gray);

    text-decoration: none;

    font-size: 13px;
}

.final-whatsapp strong {
    color: #16a34a;
}


/* =========================================
   SCROLL REVEAL
   ========================================= */

.js .reveal {
    opacity: 0;

    transform:
        translateY(24px)
        scale(.985);

    transition:
        opacity 650ms
        cubic-bezier(.2,.8,.2,1),

        transform 650ms
        cubic-bezier(.2,.8,.2,1);
}

.js .reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

.feature-grid .reveal:nth-child(2) {
    transition-delay: 70ms;
}

.feature-grid .reveal:nth-child(3) {
    transition-delay: 120ms;
}

.feature-grid .reveal:nth-child(4) {
    transition-delay: 170ms;
}


/* =========================================
   DESKTOP
   ========================================= */

@media (min-width: 760px) {

    .home-container {
        padding: 0 35px;
    }

    .experience-section,
    .social-section {
        padding-top: 95px;
        padding-bottom: 95px;
    }

    .study-demo {
        padding: 27px;
    }

    .feature-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 14px;
    }

    .teacher-card,
    .live-card {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(340px, .8fr);

        align-items: center;
        gap: 60px;

        padding: 45px;
    }

    .chat-demo,
    .live-visual {
        margin-top: 0;
    }

    .home-final-card {
        padding: 65px 40px;
    }

    .home-final-button {
        width: 260px;

        margin-right: auto;
        margin-left: auto;
    }
}


/* =========================================
   SPEDIA NUMBERS
   ========================================= */

.stats-section {
    padding: 15px 0 70px;

    background: var(--white);
}

.stats-heading {
    text-align: center;
}

.stats-heading h2 {
    max-width: 550px;

    margin: 6px auto 0;

    color: var(--navy);

    font-size: clamp(30px, 8vw, 45px);
    line-height: 1.2;
}

.stats-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;

    margin-top: 25px;
}

.stat-card {
    min-width: 0;

    padding: 20px 7px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f5fcfc
        );

    text-align: center;
}

.stat-card strong {
    color: var(--navy);

    font-size: clamp(25px, 8vw, 42px);
    line-height: 1;

    letter-spacing: -1px;
}

.stat-card > span {
    color: var(--turquoise);

    font-size: 20px;
    font-weight: 700;
}

.stat-card small {
    display: block;

    margin-top: 7px;

    color: var(--gray);

    font-size: 13px;
    font-weight: 700;
}


/* =========================================
   DOWNLOAD APP
   ========================================= */

.download-section {
    padding: 0 0 70px;

    background: var(--white);
}

.download-card {
    position: relative;

    padding: 28px 20px 0;

    border: 1px solid
        rgba(13, 187, 195, .16);

    border-radius: 29px;

    background:
        linear-gradient(
            145deg,
            #effcfc 0%,
            #ffffff 65%
        );

    overflow: hidden;
}

.download-copy {
    position: relative;
    z-index: 3;
}

.download-copy h2 {
    margin: 6px 0 0;

    color: var(--navy);

    font-size: clamp(34px, 9vw, 52px);
    line-height: 1.13;

    letter-spacing: -1px;
}

.download-copy h2 span {
    display: block;

    color: var(--turquoise);
}

.download-copy > p {
    margin: 13px 0 0;

    color: var(--gray);

    font-size: 16px;
    line-height: 1.8;
}


/* Device feature */

.device-feature {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 19px;
    padding: 13px;

    border: 1px solid
        rgba(13, 187, 195, .12);

    border-radius: 16px;

    background:
        rgba(255,255,255,.75);
}

.device-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--cyan-light);
    color: var(--turquoise-dark);

    font-size: 21px;
}

.device-feature > div {
    display: flex;
    flex-direction: column;
}

.device-feature strong {
    color: var(--navy);

    font-size: 14px;
}

.device-feature small {
    margin-top: 3px;

    color: var(--gray);

    font-size: 12px;
    line-height: 1.55;
}


/* Store buttons */

.store-buttons {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-top: 17px;
}

.store-button {
    min-width: 0;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 7px 9px;

    border-radius: 14px;

    background: var(--navy);
    color: var(--white);

    text-decoration: none;
}

.store-button > span:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;

    text-align: left;
    direction: ltr;
}

.store-button small {
    color:
        rgba(255,255,255,.65);

    font-size: 7px;
}

.store-button strong {
    margin-top: 1px;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 13px;
    white-space: nowrap;
}

.store-symbol {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 25px;
}

.play-symbol {
    color: var(--turquoise);

    font-size: 20px;
}


/* Phone composition */

.download-visual {
    position: relative;

    height: 310px;

    margin-top: 30px;
}

.download-phone {
    position: absolute;

    width: 185px;
    height: 315px;

    padding: 9px;

    border-radius: 29px;

    background: var(--navy);

    box-shadow:
        0 25px 60px
        rgba(11,31,58,.16);
}

.download-phone > div {
    height: 100%;

    padding: 30px 13px 15px;

    border-radius: 22px;

    background: var(--white);
}

.download-phone--front {
    z-index: 2;

    right: 50%;

    transform:
        translateX(36%)
        rotate(-4deg);
}

.download-phone--back {
    z-index: 1;

    left: 50%;

    opacity: .68;

    transform:
        translateX(-23%)
        translateY(27px)
        rotate(7deg);
}

.download-phone--back > div {
    display: flex;
    flex-direction: column;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            var(--cyan-light),
            #ffffff
        );
}

.download-phone--back span,
.download-phone--front > span {
    color: var(--turquoise-dark);

    font-size: 8px;
    font-weight: 700;
}

.download-phone--back strong {
    margin-top: 4px;

    color: var(--navy);

    font-size: 19px;
}

.download-phone--back small {
    margin-top: 4px;

    color: var(--gray);

    font-size: 9px;
}

.download-mini-logo {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    margin-bottom: 23px;

    border-radius: 9px;

    background: var(--turquoise);
    color: var(--white);

    font-weight: 700;
}

.download-phone--front > strong {
    display: block;

    margin: 4px 0 17px;

    color: var(--navy);

    font-size: 20px;
}

.download-course {
    margin-top: 8px;
    padding: 11px;

    border-radius: 12px;

    background: var(--gray-light);

    color: var(--navy);

    font-size: 11px;
    font-weight: 700;
}

.download-course small {
    display: block;

    margin-top: 4px;

    color: var(--gray);

    font-size: 8px;
    font-weight: 400;
}


/* =========================================
   STRONGER LIVE ANIMATION
   ========================================= */

.live-visual {
    animation:
        liveVisualFloat
        5s ease-in-out infinite;
}

@keyframes liveVisualFloat {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(.3deg);
    }

    50% {
        transform:
            translateY(-9px)
            rotate(-.4deg);
    }
}

.screen-share > span {
    animation:
        mathPulse
        3s ease-in-out infinite;
}

@keyframes mathPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
        color: var(--turquoise-dark);
    }
}

.teacher-video {
    animation:
        teacherVideoFloat
        4s ease-in-out infinite;
}

@keyframes teacherVideoFloat {

    0%,
    100% {
        transform:
            translate(0, 0);
    }

    50% {
        transform:
            translate(-4px, -5px);
    }
}

.recording-chip {
    animation:
        recordingFloat
        3.8s ease-in-out infinite;
}

@keyframes recordingFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.recording-chip > span {
    animation:
        recordingPulse
        1.4s ease-in-out infinite;
}

@keyframes recordingPulse {

    50% {
        opacity: .3;
    }
}


/* Desktop */

@media (min-width: 760px) {

    .stats-grid {
        max-width: 800px;

        margin-right: auto;
        margin-left: auto;

        gap: 15px;
    }

    .stat-card {
        padding: 30px 15px;
    }

    .download-card {
        min-height: 520px;

        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(380px, .85fr);

        align-items: center;
        gap: 50px;

        padding: 45px 45px 0;
    }

    .download-visual {
        height: 475px;

        margin-top: 0;
    }

    .download-phone {
        width: 215px;
        height: 390px;

        top: 70px;
    }

    .store-buttons {
        width: fit-content;

        grid-template-columns:
            repeat(2, 170px);
    }
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    padding: 42px 0 30px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    width: 125px;
    height: auto;
}

.footer-social {
    margin-top: 22px;
}

.footer-follow {
    display: block;
    color: var(--gray);
    font-size: 13px;
}

.social-handle {
    display: block;
    margin-top: 2px;
    color: var(--navy);
    font-size: 22px;
    direction: ltr;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
}

.social-links a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid rgba(13, 187, 195, .2);
    border-radius: 999px;
    background: var(--cyan-light);
    color: var(--navy);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform .2s ease,
        background .2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    background: #fff;
}

.footer-copy {
    margin-top: 25px;
    color: var(--gray);
    font-size: 11px;
}


/* =========================================
   INTERACTIVE QUIZ
   ========================================= */

.quiz-section {
    padding: 5px 0 70px;
    background: var(--white);
}

.quiz-card {
    position: relative;
    padding: 27px 20px;
    border: 1px solid rgba(13, 187, 195, .14);
    border-radius: 28px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(13, 187, 195, .10),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #f5fcfc,
            #ffffff
        );

    overflow: hidden;
}

.quiz-copy {
    position: relative;
    z-index: 2;
}

.quiz-copy h2 {
    margin: 6px 0 0;
    color: var(--navy);
    font-size: clamp(34px, 9vw, 52px);
    line-height: 1.12;
    letter-spacing: -1px;
}

.quiz-copy h2 span {
    display: block;
    color: var(--turquoise);
}

.quiz-copy > p {
    margin: 13px 0 0;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
}

.quiz-copy-points {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 17px;
}

.quiz-copy-points span {
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(13, 187, 195, .08);
    color: var(--turquoise-dark);
    font-size: 11px;
    font-weight: 700;
}


/* Quiz UI */

.quiz-demo {
    position: relative;
    max-width: 390px;
    margin: 28px auto 0;
    padding: 18px;

    border: 1px solid rgba(11, 31, 58, .08);
    border-radius: 24px;

    background: #fff;

    box-shadow:
        0 25px 60px rgba(11, 31, 58, .10);

    overflow: hidden;
}

.quiz-demo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz-demo-top > div:first-child {
    display: flex;
    flex-direction: column;
}

.quiz-demo-top small {
    color: var(--turquoise-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
}

.quiz-demo-top strong {
    margin-top: 2px;
    color: var(--navy);
    font-size: 16px;
}

.quiz-counter {
    direction: ltr;
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
}

.quiz-current {
    color: var(--turquoise);
    font-size: 18px;
}

.quiz-progress {
    height: 6px;
    margin-top: 13px;
    border-radius: 20px;
    background: #e9eff1;
    overflow: hidden;
}

.quiz-progress > span {
    display: block;
    width: 30%;
    height: 100%;
    border-radius: inherit;
    background: var(--turquoise);

    animation:
        quizProgress 5.2s ease-in-out infinite;
}

.quiz-question {
    margin-top: 22px;
}

.question-label {
    color: #9ca3af;
    font-size: 9px;
    font-weight: 700;
}

.quiz-question h3 {
    margin: 6px 0 0;
    color: var(--navy);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    font-size: 18px;
    line-height: 1.45;
    direction: ltr;
    text-align: left;
}

.quiz-question h3 span {
    color: var(--turquoise-dark);
}


/* Answers */

.quiz-options {
    display: grid;
    gap: 8px;
    margin-top: 17px;
}

.quiz-option {
    position: relative;
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 7px 11px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: #fff;
    color: var(--navy);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    text-align: left;
    direction: ltr;

    pointer-events: none;
}

.quiz-option > span {
    width: 29px;
    height: 29px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--gray-light);

    color: var(--gray);

    font-size: 10px;
    font-weight: 700;
}

.quiz-option strong {
    font-size: 14px;
}

.quiz-option--answer {
    animation:
        selectCorrectAnswer
        5.2s ease-in-out infinite;
}

.quiz-option--answer > span {
    animation:
        selectCorrectLetter
        5.2s ease-in-out infinite;
}

.quiz-check {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    margin-left: auto;

    border-radius: 50%;

    background: #22c55e;
    color: #fff;

    font-size: 11px;
    font-style: normal;
    font-weight: 700;

    opacity: 0;
    transform: scale(.4);

    animation:
        quizCheck
        5.2s ease-in-out infinite;
}


/* Success message */

.quiz-success {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 12px;
    padding: 11px;

    border-radius: 13px;

    background: rgba(34, 197, 94, .08);

    opacity: 0;
    transform: translateY(8px);

    animation:
        quizSuccess
        5.2s ease-in-out infinite;
}

.success-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #22c55e;
    color: #fff;

    font-size: 14px;
    font-weight: 700;
}

.quiz-success > div:last-child {
    display: flex;
    flex-direction: column;
}

.quiz-success strong {
    color: #15803d;
    font-size: 13px;
}

.quiz-success small {
    margin-top: 2px;
    color: var(--gray);
    font-size: 10px;
}


/* Fake tap */

.quiz-tap {
    position: absolute;
    z-index: 5;

    right: 49px;
    top: 219px;

    width: 38px;
    height: 38px;

    border: 1px solid rgba(13, 187, 195, .28);
    border-radius: 50%;

    opacity: 0;

    animation:
        quizTap
        5.2s ease-in-out infinite;

    pointer-events: none;
}

.quiz-tap span {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 8px;
    height: 8px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: var(--turquoise);
}


/* Animation timeline */

@keyframes quizTap {

    0%,
    25% {
        opacity: 0;
        transform: scale(.4);
    }

    31% {
        opacity: 1;
        transform: scale(1);
    }

    38% {
        opacity: 0;
        transform: scale(1.7);
    }

    100% {
        opacity: 0;
    }
}

@keyframes selectCorrectAnswer {

    0%,
    34% {
        border-color: var(--border);
        background: #fff;
        transform: scale(1);
    }

    40%,
    82% {
        border-color: rgba(34, 197, 94, .38);
        background: rgba(34, 197, 94, .07);
        transform: scale(1.015);
    }

    90%,
    100% {
        border-color: var(--border);
        background: #fff;
        transform: scale(1);
    }
}

@keyframes selectCorrectLetter {

    0%,
    34% {
        background: var(--gray-light);
        color: var(--gray);
    }

    40%,
    82% {
        background: #22c55e;
        color: #fff;
    }

    90%,
    100% {
        background: var(--gray-light);
        color: var(--gray);
    }
}

@keyframes quizCheck {

    0%,
    37% {
        opacity: 0;
        transform: scale(.4);
    }

    43%,
    82% {
        opacity: 1;
        transform: scale(1);
    }

    90%,
    100% {
        opacity: 0;
        transform: scale(.4);
    }
}

@keyframes quizSuccess {

    0%,
    42% {
        opacity: 0;
        transform: translateY(8px);
    }

    49%,
    82% {
        opacity: 1;
        transform: translateY(0);
    }

    90%,
    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes quizProgress {

    0%,
    42% {
        width: 30%;
    }

    50%,
    82% {
        width: 40%;
    }

    90%,
    100% {
        width: 30%;
    }
}


/* Desktop */

@media (min-width: 760px) {

    .quiz-card {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(350px, .8fr);

        align-items: center;
        gap: 60px;

        padding: 45px;
    }

    .quiz-demo {
        margin: 0;
    }
}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .quiz-option--answer,
    .quiz-option--answer > span,
    .quiz-check,
    .quiz-success,
    .quiz-progress > span,
    .quiz-tap {
        animation: none !important;
    }
}


/* =========================================
   DOWNLOAD DEVICES — IPHONE + IPAD FIX
   ========================================= */

.download-visual {
    position: relative;
    height: 330px;
    margin-top: 30px;
    overflow: visible;
}


/* Shared device shell */

.download-phone {
    position: absolute;
    padding: 7px;

    border: 2px solid rgba(255,255,255,.12);
    background: var(--navy);

    box-shadow:
        0 25px 60px rgba(11,31,58,.18);

    overflow: hidden;
}

.download-phone > div {
    position: relative;
    height: 100%;

    background: #fff;

    overflow: hidden;
}


/* =========================================
   IPAD — BACK DEVICE
   ========================================= */

.download-phone--back {
    z-index: 1;

    width: 235px;
    height: 285px;

    left: 50%;
    top: 35px;

    padding: 7px;

    border-radius: 24px;

    opacity: 1;

    transform:
        translateX(-62%)
        rotate(5deg);

    animation:
        ipadFloat
        5.5s ease-in-out infinite;
}

.download-phone--back > div {
    padding: 30px 20px;

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #f0fcfc,
            #ffffff
        );
}


/* iPad camera */

.download-phone--back > div::before {
    content: "";

    position: absolute;

    top: 8px;
    left: 50%;

    width: 5px;
    height: 5px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: #9ca3af;
}


/* iPad content */

.download-phone--back span {
    display: block;

    color: var(--turquoise-dark);

    font-size: 8px;
    font-weight: 700;
}

.download-phone--back strong {
    display: block;

    margin-top: 5px;

    color: var(--navy);

    font-size: 19px;
    line-height: 1.25;
}

.download-phone--back small {
    display: block;

    margin-top: 5px;

    color: var(--gray);

    font-size: 9px;
}


/* Fake iPad chapter cards */

.download-phone--back > div::after {
    content:
        "Chapter 03   •   Topics 6";

    position: absolute;

    right: 18px;
    bottom: 25px;
    left: 18px;

    padding: 13px;

    border: 1px solid
        rgba(13,187,195,.18);

    border-radius: 12px;

    background: #fff;

    color: var(--navy);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    direction: ltr;
}


/* =========================================
   IPHONE — FRONT DEVICE
   ========================================= */

.download-phone--front {
    z-index: 3;

    width: 150px;
    height: 300px;

    right: 50%;
    top: 7px;

    padding: 6px;

    border-radius: 28px;

    transform:
        translateX(79%)
        rotate(-5deg);

    animation:
        iphoneFloat
        4.8s ease-in-out infinite;
}

.download-phone--front > div {
    padding:
        37px 12px
        15px;

    border-radius: 21px;
}


/* iPhone Dynamic Island */

.download-phone--front > div::before {
    content: "";

    position: absolute;

    top: 8px;
    left: 50%;

    width: 48px;
    height: 14px;

    transform: translateX(-50%);

    border-radius: 999px;

    background: var(--navy);
}


/* Logo */

.download-mini-logo {
    width: 29px;
    height: 29px;

    display: grid;
    place-items: center;

    margin-bottom: 15px;

    border-radius: 9px;

    background: var(--turquoise);
    color: #fff;

    font-size: 13px;
    font-weight: 700;
}


/* Prevent mobile text clipping */

.download-phone--front > span {
    display: block;

    color: var(--turquoise-dark);

    font-size: 7px;
    font-weight: 700;

    white-space: nowrap;
}

.download-phone--front > strong {
    display: block;

    margin: 4px 0 13px;

    color: var(--navy);

    font-size: 16px;
    line-height: 1.3;

    white-space: normal;
}


/* Course cards */

.download-course {
    width: 100%;

    margin-top: 7px;
    padding: 9px;

    border-radius: 10px;

    background: var(--gray-light);

    color: var(--navy);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    direction: ltr;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.download-course small {
    display: block;

    margin-top: 3px;

    color: var(--gray);

    font-size: 7px;
    font-weight: 400;

    white-space: nowrap;
}


/* =========================================
   DEVICE LABELS
   ========================================= */

.download-phone--back::after {
    content: "iPad";

    position: absolute;

    left: 17px;
    bottom: 11px;

    padding: 5px 8px;

    border-radius: 999px;

    background: var(--navy);
    color: #fff;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 8px;
    font-weight: 700;
}

.download-phone--front::after {
    content: "iPhone";

    position: absolute;

    right: 11px;
    bottom: 9px;

    padding: 5px 7px;

    border-radius: 999px;

    background: var(--turquoise);
    color: #fff;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 7px;
    font-weight: 700;
}


/* =========================================
   DEVICE ANIMATION
   ========================================= */

@keyframes ipadFloat {

    0%,
    100% {
        transform:
            translateX(-62%)
            translateY(0)
            rotate(5deg);
    }

    50% {
        transform:
            translateX(-65%)
            translateY(-7px)
            rotate(3.5deg);
    }
}

@keyframes iphoneFloat {

    0%,
    100% {
        transform:
            translateX(79%)
            translateY(0)
            rotate(-5deg);
    }

    50% {
        transform:
            translateX(83%)
            translateY(-10px)
            rotate(-3deg);
    }
}


/* =========================================
   MOBILE — KEEP BOTH FULLY VISIBLE
   ========================================= */

@media (max-width: 480px) {

    .download-card {
        padding-right: 18px;
        padding-left: 18px;
    }

    .download-visual {
        height: 340px;

        margin-right: -5px;
        margin-left: -5px;
    }

    .download-phone--back {
        width: 220px;
        height: 270px;

        top: 48px;
    }

    .download-phone--front {
        width: 145px;
        height: 292px;

        top: 5px;
    }

}


/* =========================================
   DESKTOP DEVICE COMPOSITION
   ========================================= */

@media (min-width: 760px) {

    .download-visual {
        height: 475px;
    }

    .download-phone--back {
        width: 330px;
        height: 390px;

        top: 80px;

        border-radius: 31px;

        transform:
            translateX(-62%)
            rotate(5deg);
    }

    .download-phone--back > div {
        border-radius: 23px;
        padding: 45px 30px;
    }

    .download-phone--back strong {
        font-size: 25px;
    }

    .download-phone--front {
        width: 190px;
        height: 390px;

        top: 25px;

        border-radius: 34px;
    }

    .download-phone--front > div {
        border-radius: 27px;
        padding:
            48px 16px
            18px;
    }

}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .download-phone--back,
    .download-phone--front {
        animation: none !important;
    }

}


/* =========================================
   DEVICE COMPOSITION V2
   iPad Landscape + clear iPhone
   ========================================= */

.download-visual {
    position: relative;
    height: 330px;
    margin-top: 30px;
    overflow: visible;
}


/* IPAD LANDSCAPE */

.download-phone--back {
    z-index: 1;

    width: 300px;
    height: 205px;

    left: 50%;
    top: 78px;

    padding: 7px;

    border-radius: 22px;

    background: var(--navy);

    opacity: 1;

    transform:
        translateX(-55%)
        rotate(3deg);

    animation:
        ipadLandscapeFloat
        5.5s ease-in-out infinite;
}

.download-phone--back > div {
    position: relative;

    height: 100%;

    padding: 25px 22px;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #f1fcfc,
            #ffffff
        );

    overflow: hidden;
}

/* iPad camera */

.download-phone--back > div::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 7px;

    width: 5px;
    height: 5px;

    transform: translateY(-50%);

    border-radius: 50%;

    background: #9ca3af;
}

.download-phone--back span {
    display: block;

    color: var(--turquoise-dark);

    font-size: 8px;
    font-weight: 700;
}

.download-phone--back strong {
    display: block;

    margin-top: 4px;

    color: var(--navy);

    font-size: 18px;
}

.download-phone--back small {
    display: block;

    margin-top: 4px;

    color: var(--gray);

    font-size: 8px;
}

.download-phone--back > div::after {
    content: "Chapter 03     Applications     Topics 5";

    position: absolute;

    right: 20px;
    bottom: 20px;
    left: 20px;

    padding: 11px 12px;

    border: 1px solid rgba(13,187,195,.18);
    border-radius: 11px;

    background: #fff;

    color: var(--navy);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 8px;
    font-weight: 700;

    direction: ltr;
}


/* IPAD LABEL */

.download-phone--back::after {
    content: "iPad";

    position: absolute;

    left: 15px;
    bottom: 9px;

    padding: 4px 7px;

    border-radius: 999px;

    background: var(--navy);
    color: #fff;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 7px;
    font-weight: 700;
}


/* =========================================
   IPHONE PORTRAIT
   ========================================= */

.download-phone--front {
    z-index: 4;

    width: 143px;
    height: 292px;

    right: 50%;
    top: 8px;

    padding: 5px;

    border: 2px solid #23344a;
    border-radius: 30px;

    background: #071c36;

    box-shadow:
        0 25px 55px rgba(11,31,58,.23);

    transform:
        translateX(90%)
        rotate(-5deg);

    animation:
        clearIphoneFloat
        4.8s ease-in-out infinite;
}


/* iPhone screen */

.download-phone--front > div {
    position: relative;

    height: 100%;

    padding:
        38px 11px
        15px;

    border-radius: 23px;

    background: #fff;

    overflow: hidden;
}


/* Dynamic Island */

.download-phone--front > div::before {
    content: "";

    position: absolute;

    top: 8px;
    left: 50%;

    width: 52px;
    height: 16px;

    transform: translateX(-50%);

    border-radius: 999px;

    background: #071c36;

    box-shadow:
        inset 0 0 0 1px
        rgba(255,255,255,.04);
}


/* Side button */

.download-phone--front::before {
    content: "";

    position: absolute;

    top: 78px;
    right: -4px;

    width: 3px;
    height: 47px;

    border-radius: 0 3px 3px 0;

    background: #34465d;
}


/* Volume buttons */

.download-phone--front::after {
    content: "";

    position: absolute;

    top: 75px;
    left: -4px;

    width: 3px;
    height: 30px;

    border-radius: 3px 0 0 3px;

    background: #34465d;

    box-shadow:
        0 39px 0 #34465d;
}


/* iPhone home indicator */

.download-phone--front > div {
    box-shadow:
        inset 0 -7px 0 -5px
        rgba(7,28,54,.55);
}


@keyframes ipadLandscapeFloat {

    0%,
    100% {
        transform:
            translateX(-55%)
            translateY(0)
            rotate(3deg);
    }

    50% {
        transform:
            translateX(-58%)
            translateY(-6px)
            rotate(1.5deg);
    }
}


@keyframes clearIphoneFloat {

    0%,
    100% {
        transform:
            translateX(90%)
            translateY(0)
            rotate(-5deg);
    }

    50% {
        transform:
            translateX(94%)
            translateY(-9px)
            rotate(-3deg);
    }
}


@media (max-width: 390px) {

    .download-visual {
        transform: scale(.92);
        transform-origin: top center;

        margin-bottom: -20px;
    }

}


@media (min-width: 760px) {

    .download-visual {
        height: 450px;
    }

    .download-phone--back {
        width: 430px;
        height: 290px;

        top: 115px;

        border-radius: 29px;
    }

    .download-phone--back > div {
        padding: 40px 35px;

        border-radius: 21px;
    }

    .download-phone--back strong {
        font-size: 25px;
    }

    .download-phone--front {
        width: 185px;
        height: 385px;

        top: 20px;

        border-radius: 37px;
    }

    .download-phone--front > div {
        padding:
            50px 15px
            18px;

        border-radius: 30px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .download-phone--back,
    .download-phone--front {
        animation: none !important;
    }

}


/* =========================================
   DYNAMIC SOCIAL PROOF
   ========================================= */

.social-heading h2 span {
    color: var(--turquoise);
}

.testimonial-avatars {
    display: flex;
    justify-content: center;

    margin-top: 27px;

    direction: ltr;
}

.testimonial-avatars img {
    width: 66px;
    height: 66px;

    margin-left: -12px;

    border: 4px solid #fff;
    border-radius: 50%;

    object-fit: cover;
    object-position: center;

    background: var(--gray-light);

    box-shadow:
        0 10px 30px
        rgba(11,31,58,.12);

    transition:
        transform .3s ease;
}

.testimonial-avatars img:nth-child(1) {
    transform: rotate(-5deg);
}

.testimonial-avatars img:nth-child(2) {
    transform:
        translateY(-7px)
        rotate(2deg);
}

.testimonial-avatars img:nth-child(3) {
    transform:
        translateY(2px)
        rotate(-2deg);
}

.testimonial-avatars img:nth-child(4) {
    transform:
        translateY(-5px)
        rotate(5deg);
}


.testimonial-slider {
    position: relative;

    max-width: 560px;
    min-height: 255px;

    margin:
        25px auto 0;
}

.student-testimonial {
    position: absolute;

    inset: 0;

    padding: 25px 21px;

    border: 1px solid
        rgba(13,187,195,.15);

    border-radius: 24px;

    background: #fff;

    box-shadow:
        0 18px 50px
        rgba(11,31,58,.07);

    text-align: right;

    opacity: 0;

    transform:
        translateX(25px)
        scale(.98);

    pointer-events: none;

    transition:
        opacity .5s ease,
        transform .5s
        cubic-bezier(.2,.8,.2,1);
}

.student-testimonial.is-active {
    opacity: 1;

    transform:
        translateX(0)
        scale(1);

    pointer-events: auto;
}

.testimonial-quote-mark {
    display: block;

    height: 34px;

    color: var(--turquoise);

    font-family: Georgia, serif;

    font-size: 55px;
    line-height: .9;
}

.student-testimonial blockquote {
    margin: 8px 0 0;

    color: var(--navy);

    font-size: 18px;
    line-height: 1.75;

    font-weight: 700;
}

.testimonial-student {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-top: 20px;
}

.testimonial-student img {
    width: 47px;
    height: 47px;

    flex-shrink: 0;

    border-radius: 50%;

    object-fit: cover;
    object-position: center;

    background: var(--gray-light);
}

.testimonial-student > div {
    display: flex;
    flex-direction: column;

    text-align: right;
}

.testimonial-student strong {
    color: var(--navy);

    font-size: 13px;
}

.testimonial-student span {
    margin-top: 2px;

    color: var(--gray);

    font-size: 10px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 6px;

    margin-top: 15px;
}

.testimonial-dot {
    width: 7px;
    height: 7px;

    padding: 0;

    border: 0;
    border-radius: 999px;

    background: #d5dce0;

    cursor: pointer;

    transition:
        width .3s ease,
        background .3s ease;
}

.testimonial-dot.is-active {
    width: 22px;

    background: var(--turquoise);
}

.testimonial-empty {
    max-width: 450px;

    margin: 25px auto 0;
    padding: 20px;

    border: 1px dashed
        rgba(13,187,195,.2);

    border-radius: 18px;

    color: var(--gray);

    font-size: 14px;
}


/* Avatar subtle movement */

.testimonial-avatars img {
    animation:
        testimonialAvatarFloat
        5s ease-in-out infinite;
}

.testimonial-avatars img:nth-child(2) {
    animation-delay: .4s;
}

.testimonial-avatars img:nth-child(3) {
    animation-delay: .8s;
}

.testimonial-avatars img:nth-child(4) {
    animation-delay: 1.2s;
}

@keyframes testimonialAvatarFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -5px;
    }
}


@media (min-width: 760px) {

    .testimonial-slider {
        min-height: 270px;
    }

    .student-testimonial {
        padding: 32px;
    }

    .student-testimonial blockquote {
        font-size: 21px;
    }

    .testimonial-avatars img {
        width: 76px;
        height: 76px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .testimonial-avatars img {
        animation: none !important;
    }

}


/* =========================================
   DYNAMIC SOCIAL LINKS
   ========================================= */

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;

    margin-top: 13px;
}

.social-links a {
    min-width: 100px;
    min-height: 52px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 7px 15px;

    border: 1px solid
        rgba(13,187,195,.18);

    border-radius: 14px;

    background: var(--cyan-light);

    text-decoration: none;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.social-links a strong {
    color: var(--navy);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 12px;
}

.social-links a small {
    margin-top: 2px;

    color: var(--turquoise-dark);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 9px;

    direction: ltr;
}

.social-links a:hover {
    transform: translateY(-3px);

    background: #fff;

    box-shadow:
        0 10px 25px
        rgba(11,31,58,.07);
}


/* =========================================
   LEGAL PAGES
   ========================================= */

.legal-body {
    margin: 0;
    background: #f7fbfc;
    color: var(--navy);
}

.legal-container {
    width: calc(100% - 40px);
    max-width: 820px;
    margin: 0 auto;
}

.legal-header {
    position: sticky;
    z-index: 20;
    top: 0;

    border-bottom: 1px solid rgba(11,31,58,.06);

    background: rgba(255,255,255,.94);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.legal-nav {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-logo {
    display: block;
    width: 110px;
    height: auto;
}

.legal-back {
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.legal-main {
    padding: 50px 0 70px;
}

.legal-hero h1 {
    margin: 8px 0 0;

    color: var(--navy);

    font-size: clamp(36px, 10vw, 58px);
    line-height: 1.15;
}

.legal-hero > p {
    max-width: 650px;

    margin: 15px 0 0;

    color: var(--gray);

    font-size: 16px;
    line-height: 1.9;
}

.legal-updated {
    display: inline-block;

    margin-top: 17px;
    padding: 7px 10px;

    border-radius: 9px;

    background: var(--cyan-light);
    color: var(--turquoise-dark);

    font-size: 10px;
    font-weight: 700;
}

.legal-content {
    margin-top: 30px;
    padding: 24px 19px;

    border: 1px solid rgba(11,31,58,.07);
    border-radius: 24px;

    background: #fff;

    box-shadow:
        0 15px 45px rgba(11,31,58,.04);
}

.legal-content h2 {
    position: relative;

    margin: 35px 0 12px;
    padding-right: 14px;

    color: var(--navy);

    font-size: 21px;
    line-height: 1.45;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h2::before {
    content: "";

    position: absolute;
    top: 5px;
    right: 0;

    width: 4px;
    height: 22px;

    border-radius: 10px;

    background: var(--turquoise);
}

.legal-content > p {
    margin: 9px 0;

    color: #536273;

    font-size: 14px;
    line-height: 2;
}

.legal-bullet {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin: 8px 0;
}

.legal-bullet > span {
    width: 20px;
    height: 20px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    margin-top: 4px;

    border-radius: 50%;

    background: rgba(13,187,195,.10);
    color: var(--turquoise-dark);

    font-size: 8px;
    font-weight: 700;
}

.legal-bullet p {
    margin: 0;

    color: #536273;

    font-size: 14px;
    line-height: 1.9;
}

.legal-footer {
    padding: 28px 0;

    border-top: 1px solid rgba(11,31,58,.06);

    background: #fff;
}

.legal-footer .legal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    color: var(--gray);

    font-size: 10px;
}

.legal-footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-footer-links a {
    color: var(--navy);

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}


@media (min-width: 760px) {

    .legal-main {
        padding-top: 75px;
    }

    .legal-content {
        padding: 38px;
    }

}


/* =========================================
   FOOTER SPACING V2
   ========================================= */

.footer-social {
    width: 100%;
    margin-top: 25px;
}

.footer-legal-links {
    width: 100%;

    margin-top: 38px;
    padding-top: 22px;

    border-top: 1px solid
        rgba(11, 31, 58, .07);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-copy {
    margin-top: 14px;
}


/* Social buttons */

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 9px;

    margin-top: 14px;
}

.social-links a {
    min-width: 100px;
    min-height: 54px;

    padding: 8px 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
}

.social-links a strong {
    line-height: 1.2;
}

.social-links a small {
    display: block;

    margin-top: 3px;

    direction: ltr;
}


/* Mobile: 3 social networks still fit cleanly */

@media (max-width: 480px) {

    .social-links {
        gap: 7px;
    }

    .social-links a {
        min-width: 0;
        flex: 1 1 calc(33.333% - 7px);

        padding-right: 6px;
        padding-left: 6px;
    }

    .footer-legal-links {
        margin-top: 34px;
        padding-top: 20px;
    }

}


/* =========================================
   NAVBAR APP DOWNLOAD
   ========================================= */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-download {
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 12px;

    border: 1px solid
        rgba(13,187,195,.20);

    border-radius: 12px;

    background:
        rgba(13,187,195,.08);

    color: var(--turquoise-dark);

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform .2s ease,
        background .2s ease;
}

.nav-download svg {
    width: 16px;
    height: 16px;

    flex-shrink: 0;
}

.nav-download:hover {
    transform: translateY(-1px);

    background:
        rgba(13,187,195,.13);
}


/* =========================================
   FOOTER APP DOWNLOAD
   ========================================= */

.footer-download {
    width: 100%;

    display: flex;
    justify-content: center;

    margin-top: 30px;
}

.footer-download-link {
    min-width: 185px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    padding: 11px 18px;

    border-radius: 15px;

    background: var(--navy);
    color: #fff;

    text-decoration: none;

    box-shadow:
        0 12px 30px
        rgba(11,31,58,.10);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.footer-download-link:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 35px
        rgba(11,31,58,.15);
}

.footer-download-icon {
    width: 31px;
    height: 31px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--turquoise);

    color: #fff;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 18px;
    font-weight: 700;
}

.footer-download-link > span:last-child {
    display: flex;
    flex-direction: column;

    text-align: right;
}

.footer-download-link small {
    color:
        rgba(255,255,255,.60);

    font-size: 8px;
}

.footer-download-link strong {
    margin-top: 1px;

    color: #fff;

    font-size: 13px;
}


/* Legal links need breathing room */

.footer-download + .footer-legal-links {
    margin-top: 32px;
}


/* =========================================
   MOBILE NAVBAR
   ========================================= */

@media (max-width: 480px) {

    .nav-container {
        gap: 8px;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-download {
        min-height: 38px;

        padding:
            7px 9px;

        border-radius: 10px;

        font-size: 10px;
    }

    .nav-download svg {
        width: 14px;
        height: 14px;
    }

    .nav-login {
        min-height: 38px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding:
            7px 11px;

        white-space: nowrap;
    }

}


/* Extra-small phones */

@media (max-width: 360px) {

    .nav-download span {
        display: none;
    }

    .nav-download {
        width: 38px;
        padding: 0;
    }

    .nav-download svg {
        width: 17px;
        height: 17px;
    }

}


/* =========================================
   SPEDIA INTERACTIVE CAMPAIGN
   ========================================= */

.spedia-game-modal {
    position: fixed;
    z-index: 9999;

    inset: 0;

    display: grid;
    place-items: center;

    padding: 15px;

    font-family:
        "Al Qabas",
        Arial,
        sans-serif;
}

.spedia-game-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(7, 28, 54, .54);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.spedia-game-shell {
    position: relative;
    z-index: 2;

    width: min(100%, 440px);

    max-height: calc(100vh - 30px);

    overflow-y: auto;
    overflow-x: hidden;

    padding: 27px 20px 22px;

    border: 1px solid
        rgba(255,255,255,.8);

    border-radius: 29px;

    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(13,187,195,.15),
            transparent 34%
        ),
        #fff;

    box-shadow:
        0 30px 100px
        rgba(7,28,54,.28);

    scrollbar-width: none;
}

.spedia-game-shell::-webkit-scrollbar {
    display: none;
}


.game-close {
    position: absolute;
    z-index: 20;

    top: 13px;
    left: 13px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid
        rgba(11,31,58,.08);

    border-radius: 50%;

    background:
        rgba(255,255,255,.9);

    color: var(--navy);

    font-family: Arial, sans-serif;

    font-size: 23px;
    line-height: 1;

    cursor: pointer;
}


/* =========================================
   STAGES
   ========================================= */

.game-stage {
    display: none;

    text-align: center;
}

.game-stage.is-active {
    display: block;

    animation:
        gameStageEnter
        .45s
        cubic-bezier(.2,.8,.2,1);
}

@keyframes gameStageEnter {

    from {
        opacity: 0;
        transform:
            translateY(14px)
            scale(.98);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


.game-eyebrow {
    display: inline-flex;

    padding: 6px 10px;

    border-radius: 999px;

    background:
        rgba(13,187,195,.10);

    color: var(--turquoise-dark);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .6px;
}


.game-copy h2,
.wheel-copy h2,
[data-game-stage="win"] h2 {
    max-width: 330px;

    margin: 8px auto 0;

    color: var(--navy);

    font-size: clamp(
        29px,
        8vw,
        39px
    );

    line-height: 1.12;

    letter-spacing: -.7px;
}


.game-copy > p,
.wheel-copy > p {
    max-width: 330px;

    margin: 9px auto 0;

    color: var(--gray);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   TARGET GAME
   ========================================= */

.target-arena {
    position: relative;

    height: 285px;

    margin-top: 11px;

    overflow: hidden;
}


.target-path {
    position: absolute;

    top: 34px;
    right: 12px;
    left: 12px;

    height: 75px;
}


.flying-a {
    position: absolute;

    top: 0;
    left: 0;

    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    border: 3px solid #fff;
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            var(--turquoise),
            #078d94
        );

    color: #fff;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 38px;
    font-weight: 900;

    box-shadow:
        0 15px 35px
        rgba(13,187,195,.28);

    animation:
        flyingGrade
        2.4s
        ease-in-out
        infinite alternate;
}


.flying-a::before,
.flying-a::after {
    content: "";

    position: absolute;

    top: 21px;

    width: 21px;
    height: 11px;

    border-radius:
        70% 20% 70% 20%;

    background:
        rgba(221,248,249,.95);
}

.flying-a::before {
    right: -18px;
    transform: rotate(-20deg);
}

.flying-a::after {
    left: -18px;
    transform: rotate(20deg);
}


@keyframes flyingGrade {

    0% {
        left: 4%;
        transform:
            translateY(5px)
            rotate(-5deg);
    }

    35% {
        transform:
            translateY(-8px)
            rotate(4deg);
    }

    70% {
        transform:
            translateY(8px)
            rotate(-3deg);
    }

    100% {
        left: calc(96% - 64px);

        transform:
            translateY(-3px)
            rotate(5deg);
    }
}


/* Student */

.student-character {
    position: absolute;

    bottom: 8px;
    left: 50%;

    width: 105px;
    height: 150px;

    transform:
        translateX(-50%);
}


.student-head {
    position: absolute;

    top: 5px;
    left: 50%;

    width: 47px;
    height: 47px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background: #d6a071;
}


.student-hair {
    position: absolute;

    top: 1px;
    left: 50%;

    width: 48px;
    height: 23px;

    transform:
        translateX(-50%);

    border-radius:
        25px 25px 8px 8px;

    background: #152238;
}


.student-body {
    position: absolute;

    bottom: 0;
    left: 50%;

    width: 82px;
    height: 98px;

    transform:
        translateX(-50%);

    display: flex;
    justify-content: center;

    padding-top: 19px;

    border-radius:
        32px 32px
        18px 18px;

    background:
        linear-gradient(
            145deg,
            var(--navy),
            #173657
        );

    color:
        rgba(255,255,255,.18);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 34px;
    font-weight: 900;
}


.student-arm {
    position: absolute;

    top: 68px;
    right: 1px;

    width: 48px;
    height: 13px;

    border-radius: 20px;

    background: #d6a071;

    transform:
        rotate(-34deg);

    transform-origin:
        left center;
}


.projectile {
    position: absolute;
    z-index: 10;

    bottom: 128px;
    left: 50%;

    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    transform:
        translateX(-50%)
        scale(0);

    border-radius: 50%;

    background: var(--turquoise);

    color: #fff;

    font-size: 13px;

    opacity: 0;

    box-shadow:
        0 8px 20px
        rgba(13,187,195,.3);
}


/* Throw */

.spedia-game-shell.is-throwing
.projectile {

    animation:
        projectileThrow
        .65s
        cubic-bezier(.2,.75,.3,1)
        forwards;
}


@keyframes projectileThrow {

    0% {
        opacity: 1;

        transform:
            translate(-50%, 0)
            scale(.65);
    }

    65% {
        opacity: 1;

        transform:
            translate(
                -35px,
                -125px
            )
            scale(1);
    }

    100% {
        opacity: 0;

        transform:
            translate(
                -45px,
                -175px
            )
            scale(.65);
    }
}


.spedia-game-shell.is-hit
.flying-a {

    animation: gradeHit .55s ease forwards;
}


@keyframes gradeHit {

    30% {
        transform:
            scale(1.3)
            rotate(-10deg);
    }

    100% {
        transform:
            scale(.15)
            rotate(120deg);

        opacity: 0;
    }
}


/* Sparks */

.game-spark {
    position: absolute;

    color: var(--turquoise);

    font-size: 15px;

    opacity: .3;
}

.spark-1 {
    top: 110px;
    right: 28px;

    animation:
        tinyFloat
        2.5s ease-in-out infinite;
}

.spark-2 {
    top: 139px;
    left: 35px;

    animation:
        tinyFloat
        3s .5s ease-in-out infinite;
}

.spark-3 {
    top: 185px;
    right: 63px;

    animation:
        tinyFloat
        2.8s 1s ease-in-out infinite;
}


@keyframes tinyFloat {

    50% {
        transform:
            translateY(-7px)
            rotate(20deg);

        opacity: .8;
    }
}


.game-instruction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-top: -4px;

    color: var(--gray);

    font-size: 11px;
}


.game-throw-button {
    width: 100%;
    min-height: 57px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 13px;

    border: 0;
    border-radius: 16px;

    background: var(--turquoise);

    color: #fff;

    font-family:
        "Al Qabas",
        Arial,
        sans-serif;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 15px 35px
        rgba(13,187,195,.22);
}


.game-throw-button:disabled {
    opacity: .65;
    cursor: wait;
}


/* =========================================
   WHEEL
   ========================================= */

.wheel-area {
    position: relative;

    width: 285px;
    height: 285px;

    margin:
        29px auto
        20px;
}


.prize-wheel {
    position: absolute;

    inset: 8px;

    border: 8px solid #fff;
    border-radius: 50%;

    background:
        conic-gradient(
            from -90deg,
            #0dbbc3 0deg 90deg,
            #0b1f3a 90deg 180deg,
            #55d7dc 180deg 270deg,
            #dff7f8 270deg 360deg
        );

    box-shadow:
        0 22px 60px
        rgba(11,31,58,.18);

    transition:
        transform 4.2s
        cubic-bezier(.12,.62,.12,1);
}


.wheel-pointer {
    position: absolute;
    z-index: 10;

    top: -12px;
    left: 50%;

    transform:
        translateX(-50%);

    color: #f59e0b;

    font-size: 34px;

    filter:
        drop-shadow(
            0 5px 5px
            rgba(11,31,58,.15)
        );
}


.wheel-center {
    position: absolute;
    z-index: 8;

    top: 50%;
    left: 50%;

    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    transform:
        translate(-50%,-50%);

    border: 6px solid #fff;
    border-radius: 50%;

    background: var(--navy);

    color: #fff;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 25px;
    font-weight: 900;

    box-shadow:
        0 8px 20px
        rgba(11,31,58,.2);
}


.wheel-label {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 82px;

    color: #fff;

    font-size: 11px;
    font-weight: 700;

    text-align: center;

    transform-origin:
        0 0;
}


.wheel-label span {
    display: block;
}


.wheel-status {
    color: var(--gray);

    font-size: 12px;
}


/* =========================================
   WIN SCREEN
   ========================================= */

.win-icon {
    width: 74px;
    height: 74px;

    display: grid;
    place-items: center;

    margin:
        17px auto 12px;

    border-radius: 22px;

    background:
        var(--cyan-light);

    font-size: 36px;

    animation:
        winBounce
        1.7s ease-in-out infinite;
}


@keyframes winBounce {

    50% {
        transform:
            translateY(-5px)
            rotate(4deg);
    }
}


.won-prize {
    margin-top: 21px;

    padding: 17px;

    border: 1px solid
        rgba(13,187,195,.15);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #effcfc,
            #fff
        );
}


.won-prize small {
    display: block;

    color: var(--gray);

    font-size: 10px;
}


.won-prize strong {
    display: block;

    margin-top: 3px;

    color: var(--turquoise-dark);

    font-size: 26px;
    line-height: 1.3;
}


.won-prize p {
    margin: 6px 0 0;

    color: var(--gray);

    font-size: 12px;
    line-height: 1.6;
}


.coupon-box {
    position: relative;

    margin-top: 12px;
    padding: 16px;

    border: 1px dashed
        rgba(11,31,58,.18);

    border-radius: 17px;

    background: #fff;
}


.coupon-box small,
.coupon-box span {
    display: block;

    color: var(--gray);

    font-size: 10px;
}


.coupon-box strong {
    display: block;

    margin: 6px 0;

    color: var(--navy);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 28px;
    letter-spacing: 1.3px;
}


.game-win-cta {
    min-height: 57px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 15px;
    padding: 0 18px;

    border-radius: 16px;

    background: var(--turquoise);

    color: #fff;

    text-decoration: none;

    font-size: 16px;
    font-weight: 700;
}


.game-finish {
    margin-top: 12px;

    padding: 8px 15px;

    border: 0;

    background: transparent;

    color: var(--gray);

    font-family:
        "Al Qabas",
        Arial,
        sans-serif;

    font-size: 11px;

    cursor: pointer;
}


.win-celebration span {
    position: absolute;

    color: #f59e0b;

    font-size: 19px;

    animation:
        confettiFloat
        2.1s ease-in-out infinite;
}


.win-celebration span:nth-child(1) {
    top: 55px;
    right: 28px;
}

.win-celebration span:nth-child(2) {
    top: 105px;
    left: 27px;

    animation-delay: .3s;
}

.win-celebration span:nth-child(3) {
    top: 175px;
    right: 36px;

    animation-delay: .7s;
}

.win-celebration span:nth-child(4) {
    top: 220px;
    left: 32px;

    animation-delay: 1s;
}


@keyframes confettiFloat {

    50% {
        transform:
            translateY(-10px)
            rotate(45deg);

        color: var(--turquoise);
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 420px) {

    .spedia-game-modal {
        padding: 10px;
    }

    .spedia-game-shell {
        width: 100%;

        padding:
            24px 16px
            18px;

        border-radius: 25px;
    }

    .target-arena {
        height: 260px;
    }

    .wheel-area {
        width: 260px;
        height: 260px;
    }

}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .flying-a,
    .game-spark,
    .win-icon,
    .win-celebration span {
        animation: none !important;
    }

}


/* =========================================
   SPEDIA GAME — REAL THROW V2
   ========================================= */

.target-arena {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}


/* -----------------------------
   Draggable arm
   ----------------------------- */

.student-arm {
    z-index: 15;

    cursor: grab;

    touch-action: none;

    transform-origin:
        6px 50%;

    transition:
        filter .15s ease;
}

.student-arm:active,
.student-arm.is-aiming {
    cursor: grabbing;

    filter:
        drop-shadow(
            0 5px 7px
            rgba(13,187,195,.25)
        );
}


.throw-ball {
    position: absolute;

    top: 50%;
    right: -13px;

    width: 29px;
    height: 29px;

    display: grid;
    place-items: center;

    transform:
        translateY(-50%);

    border: 3px solid #fff;
    border-radius: 50%;

    background:
        var(--turquoise);

    color: #fff;

    font-family:
        Arial,
        sans-serif;

    font-size: 12px;

    box-shadow:
        0 7px 18px
        rgba(13,187,195,.35);

    pointer-events: none;
}


/* Make hand easier to grab on mobile */

.student-arm::after {
    content: "";

    position: absolute;

    top: -18px;
    right: -22px;

    width: 58px;
    height: 50px;

    border-radius: 50%;
}


/* -----------------------------
   Real projectile
   ----------------------------- */

.projectile {
    position: absolute;
    z-index: 30;

    width: 29px;
    height: 29px;

    display: none;
    place-items: center;

    left: 0;
    top: 0;
    bottom: auto;

    border: 3px solid #fff;
    border-radius: 50%;

    background:
        var(--turquoise);

    color: #fff;

    font-family:
        Arial,
        sans-serif;

    font-size: 12px;

    opacity: 1;

    transform: none;

    box-shadow:
        0 8px 20px
        rgba(13,187,195,.38);

    pointer-events: none;
}

.projectile.is-flying {
    display: grid;
}


/* Kill old automatic animation */

.spedia-game-shell.is-throwing
.projectile {
    animation: none !important;
}


/* -----------------------------
   Aim trajectory
   ----------------------------- */

.aim-trajectory {
    position: absolute;
    z-index: 8;

    display: none;

    height: 4px;

    border-radius: 999px;

    transform-origin:
        left center;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            90deg,
            rgba(13,187,195,.75)
            0 7px,
            transparent
            7px 14px
        );
}

.aim-trajectory.is-visible {
    display: block;
}


/* -----------------------------
   Attempts / instructions
   ----------------------------- */

.aim-guide {
    margin-top: -3px;
}


.attempts-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: var(--gray);

    font-size: 11px;
}


.attempt-dots {
    direction: ltr;

    display: flex;
    gap: 5px;
}


.attempt-dots i {
    width: 9px;
    height: 9px;

    display: block;

    border-radius: 50%;

    background:
        var(--turquoise);

    box-shadow:
        0 2px 7px
        rgba(13,187,195,.2);

    transition:
        opacity .2s ease,
        transform .2s ease,
        background .2s ease;
}


.attempt-dots i.is-used {
    opacity: .22;
    transform: scale(.75);

    background:
        var(--gray);
}


.throw-feedback {
    min-height: 25px;

    margin-top: 8px;

    color: var(--navy);

    font-size: 12px;
    font-weight: 700;

    transition:
        color .2s ease;
}


.throw-feedback.is-miss {
    color: #d97706;
}


.throw-feedback.is-hit {
    color: var(--turquoise-dark);
}


.throw-help {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 6px;

    margin-top: 8px;
}


.throw-help > span {
    min-height: 51px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 6px 3px;

    border: 1px solid
        rgba(11,31,58,.06);

    border-radius: 11px;

    background:
        rgba(247,250,252,.85);

    color: var(--turquoise-dark);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 9px;
    font-weight: 800;
}


.throw-help strong {
    display: block;

    margin-top: 2px;

    color: var(--navy);

    font-family:
        "Al Qabas",
        Arial,
        sans-serif;

    font-size: 9px;
}


/* -----------------------------
   Hit effect
   ----------------------------- */

.spedia-game-shell.is-hit
.flying-a {
    animation:
        gradeHit
        .55s
        ease
        forwards !important;
}


/* -----------------------------
   Mobile
   ----------------------------- */

@media (max-width: 420px) {

    .throw-help {
        gap: 5px;
    }

    .throw-help > span {
        min-height: 48px;
    }

    .target-arena {
        height: 270px;
    }

}


/* =========================================
   DIRECT AIM POLISH
   ========================================= */

.student-arm {
    transition:
        transform .055s linear,
        filter .15s ease;

    will-change: transform;
}

.student-arm.is-aiming {
    transition:
        transform .035s linear,
        filter .15s ease;
}

.aim-trajectory {
    transition:
        width .06s linear,
        transform .04s linear;
}


/* Make interaction visually obvious */

.student-arm.is-aiming .throw-ball {
    transform:
        translateY(-50%)
        scale(1.12);

    box-shadow:
        0 0 0 7px
        rgba(13,187,195,.10),
        0 8px 22px
        rgba(13,187,195,.35);
}


/* =========================================
   COUPON WIN EXPERIENCE
   ========================================= */

.copy-coupon-button {
    width: 100%;
    min-height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 12px;

    border: 1px solid
        rgba(13,187,195,.20);

    border-radius: 12px;

    background:
        rgba(13,187,195,.08);

    color:
        var(--turquoise-dark);

    font-family:
        "Al Qabas",
        Arial,
        sans-serif;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .15s ease,
        background .15s ease;
}


.copy-coupon-button:active {
    transform: scale(.98);
}


.copy-coupon-button.is-copied {
    background:
        rgba(13,187,195,.14);
}


.coupon-how-to {
    margin-top: 13px;

    padding: 14px;

    border-radius: 16px;

    background:
        #f7fafc;

    text-align: right;
}


.coupon-how-to > strong {
    display: block;

    margin-bottom: 10px;

    color: var(--navy);

    font-size: 13px;
}


.coupon-step {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 8px;

    color: var(--gray);

    font-size: 11px;
    line-height: 1.5;
}


.coupon-step b {
    flex: 0 0 auto;

    width: 23px;
    height: 23px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(13,187,195,.11);

    color:
        var(--turquoise-dark);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    font-size: 10px;
}


@media (max-width: 420px) {

    .coupon-how-to {
        padding: 12px;
    }

    .coupon-step {
        font-size: 11px;
    }

}


/* =========================================
   SPEDIA GAME — DIFFICULTY V3
   Medium difficulty
   ========================================= */

/*
 * Taller playground:
 * more distance between student and A.
 */

.target-arena {
    height: 355px;
}


/*
 * Move the target higher.
 */

.target-path {
    top: 18px;
    height: 105px;
}


/*
 * Faster target + less predictable movement.
 */

.flying-a {
    animation:
        flyingGradeHard
        1.65s
        cubic-bezier(.45,.05,.55,.95)
        infinite alternate;
}


@keyframes flyingGradeHard {

    0% {
        left: 2%;

        transform:
            translateY(18px)
            rotate(-7deg);
    }

    20% {
        transform:
            translateY(-8px)
            rotate(5deg);
    }

    42% {
        transform:
            translateY(21px)
            rotate(-4deg);
    }

    65% {
        transform:
            translateY(-15px)
            rotate(6deg);
    }

    82% {
        transform:
            translateY(9px)
            rotate(-3deg);
    }

    100% {
        left: calc(98% - 64px);

        transform:
            translateY(-11px)
            rotate(7deg);
    }
}


/*
 * Student stays lower so the throw
 * actually has more distance to travel.
 */

.student-character {
    bottom: 2px;
}


/*
 * Keep enough room on mobile.
 */

@media (max-width: 420px) {

    .target-arena {
        height: 335px;
    }

    .target-path {
        top: 15px;
    }

}


/* =========================================
   SPEDIA GAME — MOBILE AIM UX
   ========================================= */

.aim-target {
    position: absolute;
    z-index: 18;

    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    opacity: 0;

    transform:
        translate(-50%, -50%)
        scale(.65);

    border:
        2px solid
        rgba(13,187,195,.95);

    border-radius: 50%;

    pointer-events: none;

    box-shadow:
        0 0 0 5px
        rgba(13,187,195,.10),
        0 5px 18px
        rgba(13,187,195,.25);

    transition:
        opacity .12s ease,
        transform .12s ease;
}


.aim-target::before,
.aim-target::after {
    content: "";

    position: absolute;

    background:
        rgba(13,187,195,.95);

    border-radius: 999px;
}


.aim-target::before {
    width: 12px;
    height: 2px;
}


.aim-target::after {
    width: 2px;
    height: 12px;
}


.aim-target span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        var(--turquoise);

    box-shadow:
        0 0 10px
        rgba(13,187,195,.8);
}


.aim-target.is-visible {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}


/*
 * Make the draggable hand easier to acquire
 * with a thumb without visually enlarging it.
 */
@media (pointer: coarse) {

    .student-arm::after {
        content: "";

        position: absolute;

        top: 50%;
        left: 50%;

        width: 58px;
        height: 58px;

        transform:
            translate(-50%, -50%);

        border-radius: 50%;
    }


    .student-arm.is-aiming .throw-ball {
        box-shadow:
            0 0 0 7px
            rgba(13,187,195,.12),
            0 7px 18px
            rgba(13,187,195,.38);
    }

}

