/* =========================================
   KINEDU — WARM LIGHT EDITION (FINAL)
   Personality: Warm + Expert · Playful + Modern
   Theme: Light, kid-friendly, professional
   ========================================= */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ====== LIGHT WARM PALETTE ====== */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F8FB;
    --bg-warm: #F0F6FF;
    --bg-cream: #EFF5FF;
    --bg-soft-blue: #EEF5FF;
    --bg-soft-green: #ECFBEF;
    --bg-soft-pink: #FFF0F6;
    --bg-soft-orange: #FFF7EB;
    --bg-soft-purple: #F4F0FF;
    --bg-soft-teal: #ECFCF9;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAFBFE;
    --bg-glass: rgba(255,255,255,0.78);

    /* ====== KINEDU BRAND COLORS ====== */
    --kinedu-blue: #2B8BE4;
    --kinedu-green: #4CD964;
    --kinedu-orange: #FFC033;
    --kinedu-pink: #E84D8A;

    /* Extended palette */
    --accent-blue: #2B8BE4;
    --accent-blue-light: #5AABF5;
    --accent-green: #4CD964;
    --accent-green-light: #7AE88E;
    --accent-orange: #FFC033;
    --accent-orange-light: #FFD470;
    --accent-pink: #E84D8A;
    --accent-pink-light: #F07AAD;
    --accent-purple: #7B5CE8;
    --accent-magenta: #D946EF;
    --accent-cyan: #38D0E8;
    --accent-teal: #2DD4BF;
    --accent-yellow: #FFE566;
    --accent-coral: #FF7B6B;

    /* Text hierarchy */
    --text-primary: #1A1D2E;
    --text-secondary: #4A5068;
    --text-tertiary: #8B93A7;
    --text-dim: #C4CAD8;

    /* Borders */
    --border: rgba(0,0,0,0.06);
    --border-hover: rgba(0,0,0,0.12);
    --border-colored: rgba(43,139,228,0.12);

    /* Spacing */
    --section-pad: 80px;

    /* Radius — extra rounded = friendly */
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-full: 100px;

    /* Shadows — soft & warm */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.04);
    --shadow-glow-blue: 0 8px 32px rgba(43,139,228,0.18);
    --shadow-glow-green: 0 8px 32px rgba(76,217,100,0.14);
    --shadow-glow-pink: 0 8px 32px rgba(232,77,138,0.14);
    --shadow-glow-orange: 0 8px 32px rgba(255,192,51,0.18);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(180deg, #FFFFFF 0%, #EEF5FF 30%, #E8F1FE 55%, #EEF5FF 75%, #FFFFFF 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.65;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

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

/* --- ANIMATED GRADIENT TEXT — Kinedu Brand --- */
.gradient-shift {
    background: linear-gradient(120deg, var(--kinedu-blue), var(--kinedu-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-shift-alt {
    background: linear-gradient(120deg, var(--kinedu-green), var(--kinedu-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- SECTION COMMON --- */
.section-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.sec-header {
    text-align: center;
    margin-bottom: 48px;
}

.sec-tag {
    display: inline-block;
    padding: 8px 22px;
    background: var(--bg-soft-blue);
    border: 1px solid rgba(43,139,228,0.1);
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--kinedu-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
}

.sec-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: var(--text-primary);
    margin-bottom: 18px;
}

.sec-title-left {
    text-align: left;
}

.sec-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

/* =========================================
   NAVBAR — Floating pill (warm light)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 20px 32px;
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Prevent the sticky navbar from covering anchor targets when jumping to #faq, #pricing, etc. */
section[id], div[id] { scroll-margin-top: 96px; }

.navbar.scrolled {
    padding: 8px 32px;
}

.nav-pill {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--r-full);
    pointer-events: all;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.navbar.scrolled .nav-pill {
    height: 52px;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
    max-width: 900px;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 10;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo-img {
    height: 30px;
    width: auto;
    display: block;
}

.mobile-only {
    display: none !important;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    position: relative;
}

.nav-links a {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: color 0.3s ease, background 0.3s ease;
    position: relative;
    padding: 7px 16px;
    border-radius: var(--r-full);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--kinedu-blue);
    background: rgba(43, 139, 228, 0.08);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 2px;
    gap: 0;
    flex-shrink: 0;
}

.lang-btn {
    padding: 9px 13px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    border-radius: var(--r-full);
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: white;
    color: var(--kinedu-blue);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.lang-toggle--mobile {
    display: none;
}

.nav-login {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: all 0.25s ease;
    padding: 8px 16px;
    border-radius: var(--r-full);
}

.nav-login:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
}

.nav-cta {
    padding: 10px 26px;
    background: var(--kinedu-blue);
    color: white;
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
    border: none;
}

.nav-cta:hover {
    background: #1D7DD9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(43,139,228,0.25);
}

.nav-schools {
    padding: 10px 22px;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.nav-schools:hover {
    color: var(--kinedu-blue);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-hamburger:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-hamburger span {
    width: 18px;
    height: 1.5px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger → X animation */
.nav-hamburger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================================
   HERO — Split layout: Phone LEFT, Text RIGHT
   ========================================= */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 110px 0 60px;
    overflow: hidden;
    background: var(--bg-cream);
}

/* Animated gradient orbs — hidden for clean bg */
.hero-orbs {
    display: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.22;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(43,139,228,0.18);
    top: -200px;
    left: 20%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: rgba(76,217,100,0.16);
    bottom: -100px;
    left: 10%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(232,77,138,0.12);
    top: 30%;
    right: 5%;
    animation: orbFloat3 18s ease-in-out infinite;
}

.orb-4 {
    width: 280px;
    height: 280px;
    background: rgba(255,192,51,0.14);
    bottom: 20%;
    left: 40%;
    animation: orbFloat2 22s ease-in-out infinite reverse;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 40px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -30px) scale(1.15); }
}

/* Grid overlay — hidden for clean bg */
.hero-grid {
    display: none;
}

/* Noise texture — hidden for clean bg */
.hero-noise {
    display: none;
}

/* --- Split layout container --- */
.hero-split {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- Phone column (LEFT) --- */
.hero-phone-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Text column (RIGHT) --- */
.hero-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* --- Hero Headline --- */
.hero-headline {
    font-size: clamp(2.8rem, 4.5vw, 4rem);
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.035em;
    animation: fadeUp 0.8s ease 0.15s forwards;
    opacity: 0;
    color: var(--text-primary);
}

.hero-headline .line {
    display: block;
}

/* --- Hero Subtitle --- */
.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.75;
    margin-bottom: 12px;
    animation: fadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-proof {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 36px;
    letter-spacing: 0.01em;
    animation: fadeUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* --- Hero CTA Buttons --- */
.hero-ctas {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    animation: fadeUp 0.8s ease 0.45s forwards;
    opacity: 0;
    align-self: center;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    animation: fadeUp 0.8s ease 0.65s forwards;
    opacity: 0;
}
.store-badge {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.store-badge:hover {
    transform: scale(1.04);
    opacity: 0.9;
}
.store-badge img {
    height: 44px;
    width: 148px;
    object-fit: contain;
    border-radius: 8px;
}

.btn-hero-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 22px 80px;
    border-radius: var(--r-full);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    z-index: 1;
}

.btn-hero-primary .btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--kinedu-blue), var(--kinedu-green));
    z-index: -1;
    border-radius: inherit;
}

.btn-hero-primary .btn-text {
    position: relative;
    z-index: 1;
}

/* Mobile/Desktop text toggle */
.btn-text--mobile {
    display: none;
}

.btn-hero-primary svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 10px 36px rgba(43,139,228,0.3),
        0 4px 16px rgba(76,217,100,0.12);
}

.btn-hero-primary:hover svg {
    transform: translateX(3px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 30px;
    border-radius: var(--r-full);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-hero-secondary:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* --- Hero Trust Row (stats inline) --- */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.trust-item:first-child {
    padding-left: 0;
}

.trust-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.trust-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.trust-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-val--blue { color: var(--kinedu-blue); }
.trust-val--green { color: var(--kinedu-green); }
.trust-val--orange { color: var(--kinedu-orange); }
.trust-val--pink { color: var(--kinedu-pink); }

.trust-label {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.trust-sep {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
}

.device-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
        rgba(43,139,228,0.12) 0%,
        rgba(76,217,100,0.06) 40%,
        transparent 70%
    );
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.15); }
}

/* ===== HERO PHONE IMAGE ===== */
.hero-phone-img {
    position: relative;
    z-index: 2;
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
}


/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border-radius: 13px;
    border: 2px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    padding-top: 8px;
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 8px;
    background: linear-gradient(180deg, var(--kinedu-blue), var(--kinedu-green));
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   PROBLEM STATEMENT — Illuminating text
   ========================================= */
.problem {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
}

.problem-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,192,51,0.06) 0%, rgba(232,77,138,0.03) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.problem-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.15rem, 2.1vw, 1.7rem);
    font-weight: 700;
    line-height: 1.38;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    letter-spacing: -0.02em;
}

.problem-text .word {
    color: var(--text-dim);
    transition: color 0.5s ease, text-shadow 0.5s ease;
    display: inline-block;
    margin-right: 0.18em;
}

.problem-text .word.lit {
    color: var(--text-primary);
}

/* Focal phrase — single calm brand gradient, both states */
.problem-text .word.accent,
.problem-text .word.accent.lit {
    background: linear-gradient(120deg, var(--kinedu-blue), var(--kinedu-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.problem-source {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: 16px;
    letter-spacing: 0.01em;
}

/* =========================================
   WHY RIGHT NOW — Science section
   ========================================= */
.why-now {
    padding: 40px 0 50px;
    position: relative;
}

.why-now-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.why-now-scenes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 680px;
    margin: 0 auto 30px;
}

.wn-scene {
    background: #FFFFFF;
    border: 1px solid rgba(43, 139, 228, 0.10);
    border-radius: 20px;
    padding: 16px 14px 12px;
    box-shadow: 0 6px 24px rgba(14, 40, 80, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wn-scene:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(14, 40, 80, 0.11);
}

.wn-scene img {
    width: 100%;
    height: 132px;
    object-fit: contain;
}

.wn-scene figcaption {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--kinedu-blue);
}

@media (max-width: 640px) {
    .why-now-scenes {
        gap: 9px;
        margin-bottom: 24px;
    }
    .wn-scene {
        padding: 10px 7px 9px;
        border-radius: 14px;
        gap: 6px;
    }
    .wn-scene img {
        height: 84px;
    }
    .wn-scene figcaption {
        font-size: 0.58rem;
        letter-spacing: 0.06em;
    }
}

.why-now-stat {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.why-now-stat .gradient-shift {
    font-weight: 800;
}

.why-now-source {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.why-now-body {
    font-size: clamp(0.92rem, 1.5vw, 1.02rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.why-now-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--kinedu-blue);
    background: #FFFFFF;
    border: 1.5px solid rgba(43, 139, 228, 0.35);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(43, 139, 228, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.why-now-cta strong {
    font-weight: 800;
}

.why-now-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 24px rgba(43, 139, 228, 0.20);
    border-color: var(--kinedu-blue);
    background: var(--bg-soft-blue);
}

/* =========================================
   STATS — Minimal inline (Opal-style)
   ========================================= */
.stats {
    padding: 40px 0;
    background: transparent;
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.stat-item {
    position: relative;
    text-align: center;
    padding: 16px 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.stat-item.reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stat-item:hover .stat-num {
    transform: scale(1.08);
}

.stat-num {
    transition: transform 0.3s ease;
}

/* Divider between items */
.stat-item + .stat-item {
    border-left: 1px solid rgba(0,0,0,0.08);
}

/* Hide glow elements */
.stat-glow { display: none; }

.stat-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

/* Subtle gradient on numbers */
.stat-item:nth-child(1) .stat-num {
    background: linear-gradient(135deg, var(--kinedu-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-item:nth-child(2) .stat-num {
    background: linear-gradient(135deg, var(--kinedu-green), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-item:nth-child(3) .stat-num {
    background: linear-gradient(135deg, var(--kinedu-orange), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-item:nth-child(4) .stat-num {
    background: linear-gradient(135deg, var(--kinedu-pink), var(--accent-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 0;
}

.stat-sub {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    display: block;
}

/* =========================================
   LOGOS
   ========================================= */
.logos-section {
    padding: 36px 0;
    border-top: none;
    border-bottom: none;
    background: var(--bg-secondary);
}

.logos-title {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 28px;
}

.logos-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.logos-track {
    display: flex;
    gap: 70px;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.logo-item {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color 0.3s;
    letter-spacing: -0.02em;
}

/* Logo items hover — cycle brand colors */
.logo-item:nth-child(4n+1):hover { color: var(--kinedu-blue); }
.logo-item:nth-child(4n+2):hover { color: var(--kinedu-green); }
.logo-item:nth-child(4n+3):hover { color: var(--kinedu-orange); }
.logo-item:nth-child(4n+4):hover { color: var(--kinedu-pink); }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================================
   FEATURES — VERTICAL STACK LAYOUT
   ========================================= */
.features {
    padding: 50px 0 var(--section-pad);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.features-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Individual feature row --- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 36px;
    padding: 48px 40px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    overflow: hidden;
}

.feature-row:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Reversed layout (image on right) */
.feature-row--reversed {
    direction: rtl;
}
.feature-row--reversed > * {
    direction: ltr;
}

/* --- Image side --- */
.feature-row__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-row__image-wrap {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.feature-row__image-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--r-lg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-row:hover .feature-row__image-wrap img {
    transform: scale(1.03) translateY(-4px);
}

/* --- Text side --- */
.feature-row__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-row__num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    opacity: 1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 2px;
}

/* Each feature number solid-filled in its own accent color (matches the tag) */
[data-color="green"] .feature-row__num { color: #3BB54A; }
[data-color="pink"] .feature-row__num { color: var(--accent-pink); }
[data-color="orange"] .feature-row__num { color: #E8913A; }
[data-color="blue"] .feature-row__num { color: #3DA1E0; }
[data-color="purple"] .feature-row__num { color: #8B5CF6; }

/* Feature tag pill */
.feature-tag {
    display: inline-block;
    width: fit-content;
    padding: 6px 18px;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

[data-color="green"] .feature-tag {
    color: #3BB54A;
    background: rgba(76, 217, 100, 0.1);
    border: 1px solid rgba(76, 217, 100, 0.15);
}
[data-color="orange"] .feature-tag {
    color: #E8913A;
    background: rgba(255, 168, 66, 0.1);
    border: 1px solid rgba(255, 168, 66, 0.15);
}
[data-color="blue"] .feature-tag {
    color: #3DA1E0;
    background: rgba(93, 184, 232, 0.1);
    border: 1px solid rgba(93, 184, 232, 0.15);
}
[data-color="pink"] .feature-tag {
    color: var(--accent-pink);
    background: var(--bg-soft-pink);
    border: 1px solid rgba(232, 77, 138, 0.12);
}
[data-color="purple"] .feature-tag {
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.feature-row__text h3 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.feature-row__text p {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 440px;
}

/* Scroll reveal for feature rows */
.feature-row.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-row.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Step color accents */

.step-icon-lg {
    font-size: 3.2rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* =========================================
   SCIENCE SECTION
   ========================================= */
.science {
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.science-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.science-desc {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.science-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sci-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.sci-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
    transform: translateX(6px);
}

/* Unique border glow per sci-card */
.sci-card:nth-child(1):hover { border-color: rgba(43,139,228,0.15); box-shadow: var(--shadow-md), -4px 0 20px rgba(43,139,228,0.05); }
.sci-card:nth-child(2):hover { border-color: rgba(76,217,100,0.15); box-shadow: var(--shadow-md), -4px 0 20px rgba(76,217,100,0.05); }
.sci-card:nth-child(3):hover { border-color: rgba(255,192,51,0.2); box-shadow: var(--shadow-md), -4px 0 20px rgba(255,192,51,0.06); }

.sci-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.sci-text strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.sci-text span {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* Graph card */
.graph-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 36px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.graph-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--kinedu-blue);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.06;
    top: -50px;
    right: -50px;
    pointer-events: none;
}

.graph-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-primary);
    margin-bottom: 28px;
    text-align: center;
}

.graph-bars-wrap {
    display: flex;
    justify-content: center;
    gap: 48px;
    align-items: flex-end;
    height: 200px;
    padding: 0 20px;
}

.graph-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
    justify-content: flex-end;
    flex: 1;
    max-width: 80px;
}

.graph-bar-outer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.graph-bar {
    width: 100%;
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12px;
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 0;
}

.graph-bar span {
    font-size: 0.82rem;
    font-weight: 700;
}

.gb-dim {
    background: rgba(0,0,0,0.04);
}

.gb-dim span {
    color: var(--text-tertiary);
}

.gb-glow {
    background: linear-gradient(180deg, var(--kinedu-blue), var(--kinedu-green));
    box-shadow: 0 0 40px rgba(43,139,228,0.15);
}

.gb-glow span {
    color: white;
}

.graph-lbl {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.graph-note {
    font-size: 0.68rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}

/* Impact cards */
.impact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.impact-card {
    text-align: center;
    padding: 22px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.impact-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.impact-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    background: linear-gradient(135deg, var(--kinedu-green), var(--kinedu-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.impact-txt {
    font-size: 0.73rem;
    color: var(--text-tertiary);
    font-weight: 500;
    display: block;
}


/* =========================================
   TESTIMONIALS — App Store Review Cards
   ========================================= */
.testimonials {
    padding: var(--section-pad) 0;
    background: rgba(255, 255, 255, 0.45);
}

/* --- Masonry Grid --- */
.reviews-masonry {
    columns: 3;
    column-gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Individual Review Card --- */
.review-card {
    break-inside: avoid;
    margin-bottom: 20px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    transform: rotate(var(--tilt, 0deg));
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
    border-radius: 2px;
}

.review-card:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

/* --- Card Header --- */
.review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-card__stars {
    font-size: 0.82rem;
    color: #fbbf24;
    letter-spacing: 1.5px;
}

.review-card__source {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* --- Review Body --- */
.review-card__body {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Author --- */
.review-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.review-card__name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Scroll reveal for review cards */
.review-card.reveal {
    opacity: 0;
    transform: translateY(30px) rotate(var(--tilt, 0deg));
    transition:
        opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card.reveal.active {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt, 0deg));
}

/* Testimonials — Community blurb */
.testi-community {
    text-align: center;
    max-width: 560px;
    margin: 48px auto 0;
}

.testi-community-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.testi-community-sub {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
}


/* =========================================
   PRICING
   ========================================= */
.pricing {
    padding: 50px 0 var(--section-pad);
    background: transparent;
}

/* --- Trial header --- */
.trial-header {
    text-align: center;
    margin-bottom: 40px;
}

.trial-intro {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.trial-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.trial-price {
    background: linear-gradient(135deg, var(--kinedu-blue), var(--kinedu-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trial-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.trial-accent {
    color: var(--kinedu-blue);
    font-weight: 600;
}

/* --- Horizontal timeline --- */
.trial-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

/* Horizontal connecting line */
.tl-line {
    position: absolute;
    top: 32px;
    left: calc(16.66% + 32px);
    right: calc(16.66% + 32px);
    height: 2px;
    background: linear-gradient(90deg, var(--kinedu-blue), var(--kinedu-blue) 66%, var(--border));
}

/* Each step */
.tl-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Icon circles */
.tl-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.tl-step:hover .tl-icon {
    transform: scale(1.08);
}

.tl-icon--green {
    background: rgba(43, 139, 228, 0.1);
    color: var(--kinedu-blue);
}

.tl-icon--green-light {
    background: rgba(43, 139, 228, 0.1);
    color: var(--kinedu-blue);
}

.tl-icon--gray {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    border: 1px solid var(--border);
}

/* Day label */
.tl-day {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

/* Description */
.tl-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 200px;
}

.tl-muted {
    color: var(--text-tertiary);
    font-size: 0.78rem;
}

/* Footnote */
.trial-footnote {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-top: 40px;
}

/* CTA button */
.trial-cta-area {
    text-align: center;
    margin-top: 28px;
}

.btn-trial {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 17px 40px;
    border-radius: var(--r-full);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    overflow: hidden;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--kinedu-blue), var(--kinedu-green));
}

.btn-trial:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(43, 139, 228, 0.25);
}

.trial-note {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 14px;
}

/* =========================================
   FAQ
   ========================================= */
.faq {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.5);
}

.faq-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 36px;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.25s;
}

.faq-item:hover {
    border-color: rgba(43, 139, 228, 0.35);
    box-shadow: 0 8px 24px rgba(14, 27, 44, 0.06);
}

.faq-item.open {
    border-color: rgba(43, 139, 228, 0.4);
    background: linear-gradient(180deg, rgba(43, 139, 228, 0.05), #fff 60%);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.2s;
}

.faq-question:hover { color: var(--kinedu-blue); }

.faq-chevron {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(43, 139, 228, 0.08);
    color: var(--kinedu-blue);
    transition: transform 0.3s, background 0.2s, color 0.2s;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    background: var(--kinedu-blue);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    max-height: 420px;
}

.faq-answer p {
    padding: 0 24px 22px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================================
   FINAL CTA
   ========================================= */
.final-cta {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.cta-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}

.cta-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--kinedu-blue);
    top: -150px;
    left: -100px;
    animation: orbFloat2 20s ease-in-out infinite;
}

.cta-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--kinedu-green);
    bottom: -150px;
    right: -100px;
    animation: orbFloat3 18s ease-in-out infinite;
}

.cta-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--kinedu-pink);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat1 22s ease-in-out infinite;
}

.cta-headline {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 1;
}

.btn-cta-main {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.cta-note {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    position: relative;
    z-index: 1;
}

/* =========================================
   FOOTER — Dark contrast
   ========================================= */
.footer {
    background: #2B8BE4;
    border-top: none;
    padding: 48px 0 28px;
}

.footer-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: block;
    margin-bottom: 12px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    max-width: 280px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: white;
    border-color: white;
    color: #2B8BE4;
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    font-size: 0.85rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-col a {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    padding: 5px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

/* =========================================
   SCROLL REVEAL
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        padding: 0 24px;
    }

    .hero-phone-col {
        order: -1;
    }

    .hero-text-col {
        align-items: center;
        text-align: center;
    }

    .hero-phone-img {
        width: 180px;
    }

    .device-glow {
        width: 300px;
        height: 300px;
    }

    .hero-headline {
        font-size: clamp(2.4rem, 6vw, 3.2rem);
    }

    .hero-sub {
        max-width: 480px;
    }

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

    .store-badges {
        justify-content: center;
    }
    .store-badge img {
        height: 40px;
        width: 135px;
    }

    .hero-trust {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .trust-item {
        padding: 0 16px;
    }

    .trust-item:first-child {
        padding-left: 16px;
    }

    .nav-schools {
        display: none;
    }

    .feature-row {
        gap: 32px;
        padding: 36px 32px;
    }

    .science-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sec-title-left {
        text-align: center;
    }

    .science-desc {
        text-align: center;
    }

    .science-cards {
        max-width: 440px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 48px;
    }

    .nav-pill {
        position: relative;
        padding: 0 20px;
        height: 52px;
        justify-content: center;
    }

    .nav-hamburger {
        position: absolute;
        right: 12px;
    }

    .nav-links, .nav-actions { display: none; }
    .nav-hamburger { display: flex; }

    /* --- Mobile menu backdrop --- */
    .nav-menu-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-menu-backdrop.visible {
        display: block;
        opacity: 1;
    }

    /* --- Slide-in sidebar from right --- */
    .nav-pill.menu-open {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 40px;
        gap: 2px;
        z-index: 9999;
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.08);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.35s;
        overflow-y: auto;
        display: flex !important;
        transform: translateX(100%);
        visibility: hidden;
        border-left: 1px solid rgba(0, 0, 0, 0.06);
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-hamburger.active {
        position: fixed;
        top: 16px;
        right: 20px;
        z-index: 10000;
    }

    .nav-links a {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-primary);
        padding: 14px 20px;
        border-radius: 14px;
        width: 100%;
        transition: all 0.2s ease;
        letter-spacing: -0.01em;
        /* iOS Safari touch fix */
        touch-action: manipulation;
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: rgba(43, 139, 228, 0.1);
        display: block;
    }

    .nav-links a:hover {
        background: linear-gradient(135deg, rgba(43, 139, 228, 0.06), rgba(76, 217, 100, 0.04));
        transform: translateX(4px);
    }

    .nav-links a.active {
        color: var(--kinedu-blue);
        background: linear-gradient(135deg, rgba(43, 139, 228, 0.1), rgba(76, 217, 100, 0.05));
        font-weight: 700;
    }

    .nav-links .mobile-only {
        display: flex !important;
    }

    .nav-links .nav-cta.mobile-only {
        margin-top: 16px;
        padding: 15px 24px;
        font-size: 0.95rem;
        text-align: center;
        justify-content: center;
        border-radius: 14px;
        background: linear-gradient(135deg, var(--kinedu-blue), var(--kinedu-green));
        color: #fff;
        font-weight: 700;
        letter-spacing: 0.02em;
        box-shadow: 0 4px 16px rgba(43, 139, 228, 0.25);
        transition: all 0.3s ease;
    }

    .nav-links .nav-cta.mobile-only:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 24px rgba(43, 139, 228, 0.35);
    }

    .lang-toggle--mobile {
        display: flex;
        margin-top: 20px;
        justify-content: center;
    }


    /* --- HERO MOBILE — Opal-style clean layout --- */
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }

    .hero-split {
        gap: 0;
    }

    .hero-phone-col {
        margin-bottom: 0;
    }

    .hero-phone-img {
        width: 220px;
    }

    .device-glow {
        width: 220px;
        height: 220px;
    }

    .hero-headline {
        font-size: clamp(1.85rem, 7.5vw, 2.4rem);
        letter-spacing: -0.035em;
        margin-bottom: 12px;
        line-height: 1.12;
    }

    .hero-sub {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 28px;
        max-width: 320px;
        color: var(--text-tertiary);
    }

    /* Hide secondary elements — keep it clean like Opal */
    .hero-proof {
        display: none;
    }

    .hero-trust {
        display: none !important;
    }

    .trust-sep {
        display: none;
    }

    /* Single CTA — pill style */
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn-hero-primary {
        width: auto;
        min-width: 260px;
        justify-content: center;
        padding: 16px 40px;
        font-size: 1rem;
        border-radius: 60px;
    }

    .btn-hero-secondary {
        display: none;
    }

    /* Swap CTA text for mobile */
    .btn-text--desktop {
        display: none;
    }

    .btn-text--mobile {
        display: inline;
    }

    .btn-hero-primary .btn-arrow {
        display: none;
    }

    /* --- STATS MOBILE --- */
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .stat-item {
        padding: 14px 16px;
        border-left: none !important;
    }

    .stat-item:nth-child(2n) {
        border-left: 1px solid rgba(0,0,0,0.08) !important;
    }

    .stat-item:nth-child(n+3) {
        border-top: 1px solid rgba(0,0,0,0.08);
    }

    .stat-num {
        font-size: 1.7rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    .stat-sub {
        font-size: 0.65rem;
    }

    /* --- FEATURES MOBILE --- */
    .features {
        padding: 40px 0;
    }

    .features-stack {
        gap: 24px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 20px;
        gap: 20px;
        border-radius: 24px;
    }

    .feature-row--reversed {
        direction: ltr;
    }

    .feature-row__image {
        order: -1;
    }

    .feature-row__image-wrap {
        max-width: 220px;
    }

    .feature-row__text {
        align-items: center;
    }

    .feature-row__text h3 {
        font-size: 1.35rem;
    }

    .feature-row__text p {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .feature-row__num {
        font-size: 2rem;
        margin-bottom: -4px;
    }

    /* --- TESTIMONIALS MOBILE — Horizontal scroll --- */
    .reviews-masonry {
        columns: unset;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 4px 16px;
        max-width: 100%;
        scrollbar-width: none;
    }

    .reviews-masonry::-webkit-scrollbar {
        display: none;
    }

    .review-card {
        width: calc(50% - 5px);
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 16px 14px;
        margin-bottom: 0;
        transform: rotate(0deg);
    }

    .review-card:hover {
        transform: translateY(-2px);
    }

    .review-card__body {
        font-size: 0.78rem;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .review-card__stars {
        font-size: 0.72rem;
    }

    .review-card__source {
        font-size: 0.6rem;
    }

    .review-card__name {
        font-size: 0.72rem;
    }

    .review-card__author {
        padding-top: 8px;
    }

    /* --- PROBLEM/QUOTE MOBILE --- */
    .problem {
        padding: 32px 0;
    }

    .problem-text {
        font-size: 1.3rem;
        line-height: 1.32;
    }

    .problem-source {
        font-size: 0.78rem;
        margin-top: 12px;
    }

    /* --- WHY NOW MOBILE --- */
    .why-now {
        padding: 22px 0 32px;
    }

    .why-now-body {
        font-size: 0.88rem;
    }

    /* --- LOGOS MOBILE --- */
    .logos-section {
        padding: 24px 0;
    }

    .logos-title {
        font-size: 0.65rem;
        margin-bottom: 18px;
    }

    .logo-item {
        font-size: 1.1rem;
    }

    /* --- PRICING MOBILE --- */
    .pricing {
        padding: 40px 0;
    }

    .trial-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .trial-timeline {
        gap: 8px;
    }

    .tl-icon {
        width: 48px;
        height: 48px;
    }

    .tl-icon svg {
        width: 20px;
        height: 20px;
    }

    .tl-line {
        top: 24px;
    }

    .tl-day {
        font-size: 0.85rem;
    }

    .tl-label {
        font-size: 0.78rem;
        max-width: 160px;
    }

    /* --- FAQ MOBILE --- */
    .faq {
        padding: 32px 0;
    }

    .faq-title {
        font-size: 1.15rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 16px 18px;
    }

    .faq-answer p {
        font-size: 0.88rem;
        padding: 0 18px 18px;
    }

    /* --- COMMUNITY BLURB MOBILE --- */
    .testi-community {
        margin-top: 32px;
    }

    .testi-community-title {
        font-size: 1.1rem;
    }

    .testi-community-sub {
        font-size: 0.85rem;
    }

    /* --- SECTION HEADERS MOBILE --- */
    .sec-header {
        margin-bottom: 28px;
    }

    .sec-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .sec-desc {
        font-size: 0.92rem;
    }

    /* --- GRAPH / SCIENCE MOBILE --- */
    .graph-card {
        padding: 24px;
    }

    .science-cards {
        gap: 12px;
    }


    .impact-row {
        grid-template-columns: 1fr;
    }

    /* --- FOOTER MOBILE --- */
    .footer {
        padding: 36px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 100%;
        font-size: 0.82rem;
    }

    .footer-col h4 {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .footer-col a {
        font-size: 0.78rem;
        padding: 4px 0;
    }

    .footer-bottom {
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 96px 0 28px;
    }

    .hero-split {
        gap: 0;
        padding: 0 20px;
    }

    .hero-headline {
        font-size: 1.65rem;
        letter-spacing: -0.035em;
    }

    .hero-sub {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 24px;
        max-width: 280px;
    }

    .hero-phone-img {
        width: 200px;
    }

    .device-glow {
        width: 260px;
        height: 260px;
    }

    .btn-hero-primary {
        min-width: 220px;
        padding: 14px 36px;
        font-size: 0.95rem;
    }

    /* --- SECTIONS --- */
    .sec-title {
        font-size: 1.5rem;
    }

    .sec-tag {
        font-size: 0.62rem;
    }

    .sec-desc {
        font-size: 0.85rem;
    }

    /* --- PROBLEM --- */
    .problem {
        padding: 20px 0;
    }

    .problem-text {
        font-size: 1.18rem;
        line-height: 1.3;
        max-width: 340px;
    }

    .problem-source {
        margin-top: 10px;
    }

    /* --- WHY NOW --- */
    .why-now {
        padding: 14px 0 26px;
    }

    .why-now-scenes {
        margin-bottom: 18px;
    }

    .why-now-content {
        padding: 0 8px;
    }

    .why-now-body {
        font-size: 0.82rem;
    }

    .why-now-cta {
        font-size: 0.82rem;
    }

    /* --- STATS --- */
    .stat-item {
        padding: 10px 12px;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    /* --- FEATURES --- */
    .features-stack {
        gap: 16px;
    }

    .feature-row {
        padding: 20px 16px;
        border-radius: 20px;
        gap: 16px;
    }

    .feature-row__image-wrap {
        max-width: 180px;
    }

    .feature-row__text h3 {
        font-size: 1.2rem;
    }

    .feature-row__text p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .feature-row__num {
        font-size: 1.6rem;
    }

    .feature-tag {
        font-size: 0.68rem;
        padding: 4px 14px;
    }

    /* --- TESTIMONIALS --- */
    .review-card {
        width: calc(50% - 5px);
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        padding: 14px 12px;
    }

    .review-card__body {
        font-size: 0.78rem;
        line-height: 1.55;
        -webkit-line-clamp: 5;
    }

    .review-card__stars {
        font-size: 0.7rem;
    }

    .review-card__source {
        font-size: 0.6rem;
    }

    .review-card__name {
        font-size: 0.72rem;
    }

    .review-card__author {
        padding-top: 6px;
    }

    .review-card__header {
        gap: 4px;
    }

    /* --- LOGOS --- */
    .logos-track {
        gap: 40px;
    }

    .logo-item {
        font-size: 0.95rem;
    }

    /* --- PRICING --- */
    .trial-headline {
        font-size: 1.8rem;
    }

    .trial-timeline {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        max-width: 260px;
    }

    .tl-line {
        display: none;
    }

    .tl-icon {
        width: 48px;
        height: 48px;
    }

    .tl-label {
        max-width: none;
        font-size: 0.78rem;
    }

    .btn-trial {
        padding: 14px 32px;
        font-size: 0.88rem;
    }

    .trial-note {
        font-size: 0.72rem;
    }

    /* --- FAQ --- */
    .faq-question {
        font-size: 0.9rem;
        padding: 15px 16px;
    }

    .faq-answer p {
        font-size: 0.84rem;
        padding: 0 16px 16px;
        padding-bottom: 12px;
    }

    /* --- FOOTER --- */
    .footer-wrap {
        padding: 0 16px;
    }

    .footer-grid {
        gap: 20px;
    }

    .nav-logo-img {
        height: 24px;
    }
}


/* =========================================
   COMPREHENSIVE MOBILE POLISH (≤ 600px and ≤ 380px)
   Cubre: live-classes, science, founder, articles, browse, index
   ========================================= */

/* ── ≤600px: tablet/large mobile fixes ── */
@media (max-width: 600px) {
    /* Global section padding */
    :root { --section-pad: 36px; }

    /* Prevent horizontal overflow anywhere */
    html, body { overflow-x: hidden; }

    /* Sticky nav: keep pill clear of edges */
    .nav-pill { margin: 0 12px; max-width: calc(100vw - 24px); }

    /* Store badges row — stack on very small */
    .store-row { flex-wrap: wrap; justify-content: center; }
    .store-badge img { height: 38px; width: auto; }

    /* ── LIVE-CLASSES ── */
    .lc-hero-grid { gap: 24px !important; }
    .lc-expert-card { flex: 0 0 88% !important; min-width: 0; }
    .lc-expert-stack { flex-wrap: wrap; gap: 6px; }
    .lc-expert-stack-avatar { width: 38px !important; height: 38px !important; }
    .lc-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .lc-compare { min-width: 480px; }
    .lc-compare th, .lc-compare td { padding: 12px 14px !important; font-size: 0.85rem; }
    .lc-class-time { min-width: 54px !important; font-size: 0.78rem; }
    .lc-class-title { font-size: 0.85rem !important; line-height: 1.35; }
    .lc-class-row { padding: 10px 12px !important; }
    .lc-store-row img { height: 38px !important; width: auto !important; }
    .lc-cta-sm { padding: 10px 18px !important; font-size: 0.85rem; }
    .lc-steps { gap: 12px !important; }
    .lc-step { padding: 18px 16px !important; }

    /* ── SCIENCE ── */
    .science-img-wrapper { max-width: 280px; margin: 0 auto; }
    .partners-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .domain-card { padding: 22px 16px 18px; }
    .info-card { padding: 28px 20px; }
    .catalyst-features { gap: 14px; }

    /* ── ARTICLES (blog) ── */
    .kb-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 20px; }
    .kb-search-panel { left: 0 !important; right: 0 !important; max-width: 100%; }
    .kb-stage-row { grid-template-columns: repeat(2, 1fr) !important; }
    .kb-pills { -webkit-overflow-scrolling: touch; padding-left: 16px; padding-right: 16px; }

    /* ── FOUNDER ── */
    .founder-hero { padding: 100px 0 56px !important; }
    .founder-photo-wrapper { width: clamp(140px, 42vw, 200px) !important; height: auto !important; }
    .founder-photo-wrapper img { width: 100% !important; height: auto !important; }
    .founder-quote-inner { padding: 28px 22px !important; }
    .founder-name { font-size: 1.1rem !important; }
    .founder-title { font-size: 0.85rem !important; }

    /* ── INDEX (extra polish) ── */
    .features-stack { padding: 0 4px; }
    .stat-card { padding: 18px 14px !important; }
    .pricing-card { padding: 24px 18px !important; }
    .pricing-features li { font-size: 0.86rem; }

    /* ── BROWSE (extra polish — already has rules) ── */
    .kb-browse-main { padding: 0 16px !important; }
    .kb-topic-section { padding: 36px 0 !important; }
    .kb-topic-h2 { font-size: 22px !important; }
    .kb-topic-icon { width: 40px !important; height: 40px !important; border-radius: 12px; }
    .kb-topic-icon svg { width: 20px; height: 20px; }
    .kb-topic-desc { margin-left: 0 !important; font-size: 13.5px; }
    .kb-topic-see-all { font-size: 12.5px !important; padding: 6px 12px !important; }

    /* Logos marquee — slower scroll feel */
    .logos-track { gap: 28px; }
    .logo-item { font-size: 0.85rem; }
}

/* ── ≤380px: small mobile precision fixes ── */
@media (max-width: 380px) {
    /* Hamburger menu: shouldn't be 300px wide on tiny phones */
    .nav-links { width: calc(100vw - 32px) !important; max-width: 320px; padding: 72px 18px 32px !important; }

    /* Reviews go single column on smallest screens */
    .review-card {
        width: calc(100% - 5px) !important;
        min-width: calc(100% - 5px) !important;
        max-width: calc(100% - 5px) !important;
        padding: 16px 14px !important;
    }
    .review-card__body { font-size: 0.85rem !important; -webkit-line-clamp: unset !important; }

    /* Hero typography — slightly tighter */
    .hero-headline { font-size: 1.5rem !important; }
    .hero-sub { font-size: 0.82rem !important; max-width: 280px; }
    .btn-hero-primary { min-width: 200px !important; padding: 13px 28px !important; font-size: 0.9rem !important; }

    /* Section titles tighter */
    .sec-title { font-size: 1.35rem !important; }

    /* Footer single column on tiny */
    .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    .ksf-cols { flex-direction: column !important; gap: 28px !important; }

    /* Live-classes coach cards full width */
    .lc-expert-card { flex: 0 0 92% !important; }
    .lc-section-title { font-size: 1.4rem !important; }
    .lc-hero-headline { font-size: 1.7rem !important; }

    /* Founder hero compact */
    .founder-hero { padding: 88px 0 48px !important; }
    .founder-grid { gap: 20px !important; padding: 0 18px !important; }

    /* Browse hero & search */
    .kb-browse-hero { padding: 32px 0 28px !important; }
    .kb-browse-hero h1 { font-size: 28px !important; }
    .kb-browse-hero p { font-size: 14.5px !important; }
    .kb-browse-search { padding: 6px 6px 6px 14px !important; }
    .kb-browse-search button { padding: 9px 14px !important; font-size: 13px !important; }
    .kb-browse-search input { font-size: 14px !important; }

    /* Articles hero */
    .kb-hero-center { max-width: 100% !important; padding: 0 4px; }

    /* Science hero & cards */
    .science-hero h1 { font-size: 1.85rem !important; }
    .stat-big-num { font-size: 2.4rem !important; }
}


/* =========================================
   KINEDU.COM FOOTER (.ksf) — shared across blog articles + landing pages
   ========================================= */
.ksf { background: #4376D0; color: rgba(255,255,255,.85); font-family: var(--font, 'Plus Jakarta Sans', sans-serif); }
.ksf-inner { max-width: 1200px; margin: 0 auto; padding: 56px 40px 44px; display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.15); }
.ksf-brand { max-width: 320px; }
.ksf-logo { height: 34px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.ksf-tagline { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.78); margin-bottom: 24px; }
.ksf-social { display: flex; gap: 10px; }
.ksf-social-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); transition: background .15s, border-color .15s; text-decoration: none; }
.ksf-social-btn:hover { background: rgba(255,255,255,.18); border-color: white; color: white; }
.ksf-cols { display: flex; gap: 72px; }
.ksf-col h5 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: white; margin-bottom: 16px; }
.ksf-col a { display: block; font-size: 14px; color: rgba(255,255,255,.72); text-decoration: none; padding: 5px 0; transition: color .15s; }
.ksf-col a:hover { color: white; }
.ksf-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 40px; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }
@media (max-width: 760px) {
  .ksf-inner { flex-direction: column; padding: 40px 20px 32px; gap: 36px; }
  .ksf-brand { max-width: 100%; }
  .ksf-cols { gap: 40px; }
  .ksf-bottom { padding: 20px; }
}

/* Article page back-to-blog link */
.kb-art-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #2B8BE4;
  text-decoration: none;
  margin-bottom: 18px;
  padding: 6px 14px 6px 10px;
  border-radius: 99px;
  background: rgba(43,139,228,.08);
  transition: background .15s, transform .15s;
}
.kb-art-back:hover { background: rgba(43,139,228,.15); transform: translateX(-2px); }
.kb-art-back svg { width: 14px; height: 14px; flex-shrink: 0; }


/* =========================================
   BLOG ARTICLE — APP CTA SECTION
   Used at the bottom of every /blog/*.html article
   ========================================= */
.kb-app-cta {
  margin: 64px 0;
  background: linear-gradient(135deg, #2B8BE4 0%, #5BB5F0 50%, #5DD0A5 100%);
  border-radius: 32px;
  padding: 56px;
  color: white;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(43,139,228,0.25), 0 8px 20px rgba(43,139,228,0.12);
}
.kb-app-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.kb-app-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93,208,165,0.30) 0%, transparent 65%);
  pointer-events: none;
}
.kb-app-cta-content { position: relative; z-index: 1; }
.kb-app-cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.kb-app-cta-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5DD0A5;
  box-shadow: 0 0 0 3px rgba(93,208,165,0.35);
}
.kb-app-cta h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 14px;
  text-wrap: balance;
  color: white;
}
.kb-app-cta p {
  font-size: 16px;
  opacity: 0.95;
  max-width: 460px;
  margin-bottom: 28px;
  line-height: 1.55;
  color: white;
}
.kb-app-cta .stores { display: flex; gap: 12px; flex-wrap: wrap; }
.kb-app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  background: #0E1B2C;
  border-radius: 12px;
  color: white !important;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(14,27,44,0.25);
}
.kb-app-store-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(14,27,44,0.35); }
.kb-app-store-badge svg { flex-shrink: 0; }
.kb-app-store-badge div { display: flex; flex-direction: column; line-height: 1.1; }
.kb-app-store-badge small {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 1px;
}
.kb-app-store-badge div > *:last-child {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.kb-app-cta-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.kb-app-cta-stat {
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  padding: 22px 20px;
  transition: transform .2s, background .2s;
}
.kb-app-cta-stat:hover { transform: translateY(-2px); background: rgba(255,255,255,0.22); }
.kb-app-cta-stat .num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: white;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.kb-app-cta-stat .num span.star { color: #FFD93D; font-size: 22px; }
.kb-app-cta-stat .lbl {
  font-size: 12.5px;
  opacity: 0.92;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: white;
}
@media (max-width: 900px) {
  .kb-app-cta { grid-template-columns: 1fr; gap: 32px; padding: 44px 36px; }
  .kb-app-cta h2 { font-size: 30px; }
}
@media (max-width: 600px) {
  .kb-app-cta { margin: 40px 0; padding: 36px 24px; border-radius: 26px; }
  .kb-app-cta h2 { font-size: 26px; }
  .kb-app-cta p { font-size: 14.5px; margin-bottom: 22px; }
  .kb-app-cta-stats { gap: 10px; }
  .kb-app-cta-stat { padding: 16px 14px; }
  .kb-app-cta-stat .num { font-size: 26px; }
  .kb-app-cta-stat .lbl { font-size: 11.5px; margin-top: 6px; }
  .kb-app-store-badge { padding: 9px 14px; }
  .kb-app-store-badge small { font-size: 9px; }
  .kb-app-store-badge div > *:last-child { font-size: 14.5px; }
}


/* =========================================
   BLOG ARTICLE PAGE — MOBILE POLISH
   Applies to /blog/*.html (all 978 articles)
   ========================================= */

/* ── ≤768px: tablet/mobile general ───────────────────────────── */
@media (max-width: 768px) {
  .kb-art-wrap { padding: 0 20px !important; max-width: 100% !important; }
  .kb-art-head { padding: 20px 0 24px !important; }
  .kb-art-cat { font-size: 11px; margin-bottom: 10px; }

  /* Title — stronger downscale than the existing 640px rule */
  .kb-art-title { font-size: 30px !important; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 14px; }
  .kb-art-dek { font-size: 16px !important; line-height: 1.5; }

  /* Author meta — stack instead of single overflowing row */
  .kb-art-meta {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 16px 0;
    margin: 22px 0;
    font-size: 13px;
  }
  .kb-art-meta .spacer { display: none; }
  .kb-art-meta > span { font-size: 12.5px; }
  .kb-art-meta .author-name { font-size: 13.5px; }
  .kb-art-meta .author-role { font-size: 12px; }
  .kb-art-meta .avatar { width: 34px; height: 34px; }

  /* Cover image — smaller margin, slightly less round */
  .kb-art-cover { aspect-ratio: 4/3; border-radius: 16px; margin-bottom: 22px; }

  /* Body typography */
  .kb-art-body p { font-size: 16px !important; line-height: 1.65 !important; margin: 0 0 18px !important; }
  .kb-art-body h2 { font-size: 22px !important; margin: 28px 0 12px !important; line-height: 1.2; }
  .kb-art-body h3 { font-size: 18px !important; margin: 22px 0 10px !important; line-height: 1.25; }
  .kb-art-body ul { margin: 0 0 18px !important; }
  .kb-art-body ul li { font-size: 15.5px !important; padding: 6px 0 6px 26px !important; line-height: 1.55 !important; }
  .kb-art-body ul li::before { left: 2px; top: 15px; width: 12px; }
  .kb-art-body ol { padding-left: 22px !important; margin: 0 0 18px !important; }
  .kb-art-body ol li { font-size: 15.5px !important; padding: 4px 0; line-height: 1.55; }
  .kb-art-body blockquote {
    margin: 24px 0 !important;
    padding: 18px 20px !important;
    font-size: 16.5px !important;
    line-height: 1.5 !important;
    border-radius: 4px 12px 12px 4px;
  }
  .kb-art-body img,
  .kb-art-body figure img {
    border-radius: 14px;
    margin: 18px 0 !important;
  }
  .kb-art-body figure figcaption,
  .kb-art-body .caption { font-size: 13px !important; }
  .kb-art-body strong, .kb-art-body b { font-weight: 700; }
  .kb-art-body a { word-break: break-word; }
  .kb-art-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .kb-art-body iframe,
  .kb-art-body video { width: 100% !important; max-width: 100% !important; border-radius: 14px; }

  /* 2-col layout already collapses to 1 at 960px — tighten padding */
  .kb-art-2col { padding: 0 20px !important; gap: 0 !important; }
  .kb-art-toc { display: none !important; }

  /* Slim CTA — if used */
  .kb-art-slim-cta { padding: 0 20px 40px !important; }
  .kb-art-slim-cta-inner { flex-direction: column !important; padding: 22px !important; gap: 14px !important; text-align: center; }
}

/* ── ≤480px: small phone — tighter still ─────────────────────── */
@media (max-width: 480px) {
  .kb-art-wrap { padding: 0 16px !important; }
  .kb-art-2col { padding: 0 16px !important; }
  .kb-art-title { font-size: 26px !important; }
  .kb-art-dek { font-size: 15px !important; }

  .kb-art-meta {
    gap: 8px 12px;
    margin: 18px 0;
  }
  .kb-art-meta .avatar { width: 32px; height: 32px; }
  .kb-art-meta .author-name { font-size: 13px; }
  .kb-art-meta .author-role { font-size: 11.5px; }

  .kb-art-cover { border-radius: 14px; margin-bottom: 18px; }

  .kb-art-body p { font-size: 15.5px !important; margin: 0 0 16px !important; }
  .kb-art-body h2 { font-size: 20px !important; margin: 24px 0 10px !important; }
  .kb-art-body h3 { font-size: 17px !important; margin: 20px 0 8px !important; }
  .kb-art-body ul li { font-size: 15px !important; padding: 5px 0 5px 24px !important; }
  .kb-art-body blockquote {
    padding: 16px 18px !important;
    font-size: 15.5px !important;
  }

  /* Back-to-blog button — tighter */
  .kb-art-back { font-size: 13px; padding: 5px 12px 5px 9px; margin-bottom: 14px; }
  .kb-art-back svg { width: 13px; height: 13px; }
}


/* =========================================
   RESTORED: nav dropdown + how-it-works (used by live-classes.html)
   ========================================= */
/* ── Nav dropdown (Learn submenu) ───────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown::after { content: ''; position: absolute; left: -10px; right: -10px; top: 100%; height: 18px; }
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-tertiary);
    padding: 7px 14px;
    border-radius: var(--r-full);
    transition: color 0.2s, background 0.2s;
}
.nav-dropdown-toggle:hover { color: var(--text-primary); }
.nav-dropdown-toggle.active {
    color: var(--kinedu-blue);
    background: rgba(43,139,228,0.08);
    font-weight: 600;
}
.nav-chevron {
    width: 14px; height: 14px;
    transition: transform 0.22s ease;
    flex-shrink: 0;
    color: currentColor;
}
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #fff;
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 16px 48px rgba(14,27,44,0.14), 0 2px 8px rgba(14,27,44,0.06);
    border: 1px solid rgba(0,0,0,0.07);
    min-width: 210px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 1001;
}
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nd-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    font-size: 0.83rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    transition: background 0.15s !important;
    transform: none !important;
}
.nd-item:hover {
    background: var(--bg-soft) !important;
    color: var(--kinedu-blue) !important;
    transform: none !important;
}
.nd-icon {
    font-size: 0.95rem;
    width: 28px; height: 28px;
    background: var(--bg-soft);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
/* =========================================
   HOW IT WORKS
   ========================================= */
.how-it-works {
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}
.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.step-item {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 40px 28px;
    position: relative;
}
.step-num-wrap {
    position: relative;
    margin-bottom: 24px;
}
.step-num-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--kinedu-blue);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.12;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.step-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: var(--bg-card);
    position: relative;
    color: var(--kinedu-blue);
    -webkit-text-fill-color: var(--kinedu-blue);
    box-shadow: var(--shadow-sm);
}
/* Step color accents */
.step-item:nth-child(1) .step-num { color: var(--kinedu-blue); -webkit-text-fill-color: var(--kinedu-blue); }
.step-item:nth-child(3) .step-num { color: var(--kinedu-green); -webkit-text-fill-color: var(--kinedu-green); }
.step-item:nth-child(5) .step-num { color: var(--kinedu-pink); -webkit-text-fill-color: var(--kinedu-pink); }
.step-item:nth-child(1) .step-num-glow { background: var(--kinedu-blue); }
.step-item:nth-child(3) .step-num-glow { background: var(--kinedu-green); }
.step-item:nth-child(5) .step-num-glow { background: var(--kinedu-pink); }
.step-item h3 {
    font-size: 1.12rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.step-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.step-connector {
    display: flex;
    align-items: center;
    padding-top: 90px;
    position: relative;
}
.connector-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--border), rgba(43,139,228,0.2), var(--border));
}
.connector-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(43,139,228,0.3);
}
@media (max-width: 768px) {
    /* Mobile nav dropdown — inline expandable */
    .nav-dropdown { width: 100%; }
    .nav-dropdown-toggle {
        width: 100%;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: var(--text-primary) !important;
        padding: 14px 20px !important;
        border-radius: 14px !important;
        justify-content: space-between;
    }
    .nav-dropdown-toggle.active {
        color: var(--kinedu-blue) !important;
        background: linear-gradient(135deg, rgba(43,139,228,0.1), rgba(76,217,100,0.05)) !important;
    }
    .nav-dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(43,139,228,0.2);
        border-radius: 0;
        background: transparent;
        padding: 4px 0 4px 12px;
        margin: 0 0 4px 20px;
        min-width: 0;
        opacity: 1;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.2s;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        pointer-events: auto;
        max-height: 400px;
        opacity: 1;
        transform: none !important;
    }
    .nd-item {
        font-size: 0.88rem !important;
        font-weight: 500 !important;
        color: var(--text-secondary) !important;
        padding: 10px 14px !important;
        border-radius: 10px !important;
    }
    .nd-item:hover {
        background: rgba(43,139,228,0.06) !important;
        transform: none !important;
    }
    .nd-icon { background: rgba(43,139,228,0.08); }
    .steps-row {
        flex-direction: column;
        align-items: center;
    }
    .step-connector {
        padding-top: 0;
        transform: rotate(90deg);
        margin: -10px 0;
    }
}

/* =========================================
   FREE ASSESSMENT SECTION
   ========================================= */
.assess { padding: var(--section-pad) 24px; background: linear-gradient(150deg, #EBF3FF 0%, #F6FAFF 55%, #EDFAF4 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.assess-card { position: relative; overflow: hidden; max-width: 1060px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 32px; box-shadow: 0 30px 80px rgba(14,27,44,.10); display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 56px 56px; }
.assess-card::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(43,139,228,.10), transparent 70%); top: -120px; right: -80px; pointer-events: none; }
.assess-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-soft-blue, #EAF4FD); color: var(--kinedu-blue); border-radius: 100px; padding: 7px 16px; font-size: 0.72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.assess h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: var(--text-primary); margin-bottom: 14px; }
.assess h2 em { font-style: normal; background: linear-gradient(90deg, #2B8BE4, #34C989); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.assess-sub { font-size: .98rem; color: var(--text-secondary); line-height: 1.7; max-width: 440px; margin-bottom: 26px; }
.assess-meta { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: .8rem; color: var(--text-tertiary); font-weight: 600; margin-top: 16px; }
.assess-meta span { display: inline-flex; align-items: center; gap: 7px; }
.assess-meta svg { color: #34C989; flex-shrink: 0; }
/* Mini reporte */
.assess-report { position: relative; background: linear-gradient(160deg, #F7FAFF, #F4FBF7); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.assess-report-label { text-align: center; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 14px; }
.assess-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.assess-area { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: 0 2px 10px rgba(14,27,44,.04); transition: transform .2s; }
.assess-area:hover { transform: translateY(-2px); }
.assess-area h4 { font-size: .76rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 5px; }
.assess-area .val { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.assess-area .pill { display: inline-block; font-size: .6rem; font-weight: 800; padding: 3px 9px; border-radius: 100px; margin-bottom: 9px; }
.assess-area .bar { height: 5px; border-radius: 100px; background: var(--bg-secondary); overflow: hidden; }
.assess-area .bar i { display: block; height: 100%; border-radius: 100px; }
.assess-area--green .val { color: #1FA66E; } .assess-area--green .pill { background: #E6F8EF; color: #1FA66E; } .assess-area--green .bar i { width: 72%; background: #34C989; }
.assess-area--blue .val { color: var(--kinedu-blue); } .assess-area--blue .pill { background: #EAF4FD; color: var(--kinedu-blue); } .assess-area--blue .bar i { width: 55%; background: #2B8BE4; }
.assess-area--orange .val { color: #E08A00; } .assess-area--orange .pill { background: #FEF6E7; color: #E08A00; } .assess-area--orange .bar i { width: 38%; background: #F5A623; }
.assess-area--pink .val { color: #D6336C; } .assess-area--pink .pill { background: #FDEDF5; color: #D6336C; } .assess-area--pink .bar i { width: 62%; background: #E84393; }
.assess-report-foot { text-align: center; font-size: .66rem; color: var(--text-dim); margin-top: 12px; }
@media (max-width: 900px) {
  .assess { padding-left: 16px; padding-right: 16px; }
  .assess-card { grid-template-columns: 1fr; gap: 32px; text-align: center; padding: 36px 24px; border-radius: 26px; }
  .assess-sub { margin-left: auto; margin-right: auto; }
  .assess-meta { justify-content: center; }
  .assess .btn-hero-primary { width: 100%; justify-content: center; }
  .assess-report { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* =========================================
   ASSESSMENT MODAL (lightbox)
   ========================================= */
.amodal { position: fixed; inset: 0; z-index: 99999; display: none; }
.amodal.open { display: block; }
.amodal-backdrop { position: absolute; inset: 0; background: rgba(14,27,44,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.amodal.open .amodal-backdrop { opacity: 1; }
.amodal-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.96); width: min(480px, calc(100vw - 32px)); height: min(760px, calc(100vh - 48px)); background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 100px rgba(14,27,44,.4); opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.amodal.open .amodal-panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.amodal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(14,27,44,.18); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: background .15s, transform .15s; }
.amodal-close:hover { background: rgba(14,27,44,.16); transform: scale(1.06); }
.amodal-frame { width: 100%; height: 100%; border: 0; display: block; }
.amodal-loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #fff; z-index: 2; transition: opacity .3s; }
.amodal-loader.hide { opacity: 0; pointer-events: none; }
.amodal-spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--bg-secondary); border-top-color: var(--kinedu-blue); animation: amodalSpin .8s linear infinite; }
@keyframes amodalSpin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .amodal-panel { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; top: 0; left: 0; transform: none; }
  .amodal.open .amodal-panel { transform: none; }
  .amodal-close { top: calc(10px + env(safe-area-inset-top)); right: 10px; }
}
body.amodal-lock { overflow: hidden; }
