/* ==================== VARIABLES ==================== */
        :root {
            /* Premium education palette */
            --color-page: #f8f5ee;
            --color-page-alt: #edf4f7;
            --color-surface: #ffffff;
            --color-ink: #111827;
            --color-muted: #58667a;
            --color-trust: #2457c5;
            --color-growth: #168f63;
            --color-action: #f59e0b;
            --color-action-hover: #d97706;
            --color-border: #dfe6e2;

            /* Backward-compatible tokens */
            --color-cream: var(--color-page);
            --color-brown: var(--color-muted);
            --color-light-cream: var(--color-surface);
            --color-black: var(--color-ink);
            --color-gold: var(--color-action);
            --color-amber: var(--color-action-hover);
            --color-honey: #e8b88a;
            --color-mint: var(--color-growth);
            --color-coral: #d98f72;

            /* Gradients */
            --gradient-gold: linear-gradient(135deg, var(--color-action) 0%, var(--color-action-hover) 100%);
            --gradient-warm: linear-gradient(135deg, var(--color-page) 0%, #fff8df 100%);
            --gradient-dark: linear-gradient(135deg, var(--color-page) 0%, var(--color-page-alt) 100%);
            --gradient-hero: linear-gradient(135deg, #fbf8f1 0%, var(--color-page) 48%, var(--color-page-alt) 100%);

            /* Surfaces */
            --glass-bg: rgba(255, 255, 255, 0.78);
            --glass-border: var(--color-border);

            /* Typography */
            --font-main: 'Manrope', sans-serif;

            /* Spacing */
            --spacing-sm: 0.5rem;
            --spacing-md: 1rem;
            --spacing-lg: 1.5rem;
            --spacing-xl: 2rem;
            --spacing-2xl: 3rem;

            /* Borders */
            --radius-sm: 8px;
            --radius-md: 16px;
            --radius-lg: 24px;
            --radius-xl: 32px;

            /* Transitions */
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

            /* Shadows */
            --shadow-gold: 0 12px 28px rgba(217, 130, 59, 0.22);
            --shadow-dark: 0 24px 70px rgba(16, 36, 54, 0.14);
        }

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

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 104px;
        }

        @media (max-width: 640px) {
            html {
                scroll-padding-top: 118px;
            }
        }

        body {
            font-family: var(--font-main);
            background: var(--gradient-dark);
            color: var(--color-ink);
            line-height: 1.6;
            overflow-x: hidden;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

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

        ul, ol {
            list-style: none;
        }

        button {
            font-family: inherit;
            cursor: pointer;
            border: none;
            background: none;
        }

        /* ==================== UTILITIES ==================== */
        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 var(--spacing-md);
        }

        @media (min-width: 768px) {
            .container {
                padding: 0 var(--spacing-xl);
            }
        }

        /* ==================== ANIMATED BACKGROUND ==================== */
        .bg-animated {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .bg-gradient {
            position: absolute;
            width: 200%;
            height: 200%;
            top: -50%;
            left: -50%;
            background:
                radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(201, 149, 108, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(140, 123, 100, 0.1) 0%, transparent 50%);
            animation: gradientShift 30s ease infinite;
        }

        @keyframes gradientShift {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            50% { transform: translate(-5%, -5%) rotate(180deg); }
        }

        /* Floating Chess Pieces */
        .chess-pieces {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
            pointer-events: none;
        }

        .chess-piece {
            position: absolute;
            font-size: 150px;
            opacity: 0.03;
            animation: floatPiece 20s ease-in-out infinite;
            text-shadow: 0 0 50px rgba(212, 165, 116, 0.3);
        }

        .chess-piece:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
        .chess-piece:nth-child(2) { top: 60%; right: 10%; animation-delay: 7s; }
        .chess-piece:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 14s; }
        .chess-piece:nth-child(4) { top: 30%; right: 20%; animation-delay: 21s; }

        @keyframes floatPiece {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
                opacity: 0.03;
            }
            50% {
                transform: translateY(-40px) rotate(5deg);
                opacity: 0.06;
            }
        }

        /* ==================== TYPOGRAPHY ==================== */
        h1, h2, h3, h4, h5, h6 {
            font-weight: 800;
            line-height: 1.1;
        }

        h1 {
            font-size: clamp(2.5rem, 6vw, 4rem);
            color: var(--color-ink);
        }

        h2 {
            font-size: clamp(2rem, 5vw, 3rem);
            color: var(--color-ink);
        }

        h3 {
            font-size: clamp(1.5rem, 3vw, 2rem);
            color: var(--color-trust);
        }

        .section-title {
            text-align: center;
            margin-bottom: var(--spacing-2xl);
        }

        .section-lead {
            max-width: 760px;
            margin: calc(-1 * var(--spacing-xl)) auto var(--spacing-2xl);
            text-align: center;
            color: rgba(237, 221, 192, 0.78);
            font-size: 1.05rem;
        }

        .section-actions {
            display: flex;
            justify-content: center;
            margin-top: var(--spacing-xl);
        }

        .scroll-reveal {
            opacity: 0.62;
            transform: translateY(24px);
            transition:
                opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.7s cubic-bezier(0.22, 1, 0.36, 1);
            transition-delay: var(--reveal-delay, 0ms);
        }

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

        .soft-cta {
            display: flex;
            justify-content: center;
            margin-top: var(--spacing-xl);
            text-align: center;
        }

        .soft-cta button {
            max-width: 760px;
            padding: var(--spacing-md) var(--spacing-lg);
            border: 1px solid rgba(212, 165, 116, 0.28);
            border-radius: var(--radius-md);
            background: rgba(0, 0, 0, 0.16);
            color: var(--color-cream);
            font-weight: 700;
            line-height: 1.5;
            cursor: pointer;
            transition: all var(--transition-base);
        }

        .soft-cta button:hover {
            border-color: var(--color-gold);
            color: var(--color-gold-light);
            transform: translateY(-2px);
        }

        .story-section,
        .mindset-band,
        .result-section,
        .parent-proof {
            padding: var(--spacing-2xl) 0;
        }

        .story-panel,
        .mindset-panel,
        .parent-proof-panel {
            border: 1px solid var(--glass-border);
            background: var(--glass-bg);
            border-radius: var(--radius-lg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        .story-panel {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--spacing-xl);
            padding: var(--spacing-xl);
        }

        @media (min-width: 900px) {
            .story-panel {
                grid-template-columns: 0.9fr 1.1fr;
                align-items: center;
                padding: var(--spacing-2xl);
            }
        }

        .story-kicker,
        .result-label,
        .proof-label {
            display: inline-flex;
            width: fit-content;
            margin-bottom: var(--spacing-md);
            color: var(--color-gold);
            font-size: 0.78rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .story-text p,
        .mindset-panel p,
        .parent-proof-intro {
            color: rgba(237, 221, 192, 0.78);
            font-size: 1.05rem;
            max-width: 680px;
        }

        .signal-list {
            display: grid;
            gap: var(--spacing-md);
        }

        .signal-item {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: var(--spacing-md);
            align-items: start;
            padding: var(--spacing-lg);
            border-radius: var(--radius-md);
            background: rgba(0, 0, 0, 0.18);
            border: 1px solid rgba(212, 165, 116, 0.16);
        }

        .signal-mark {
            display: inline-flex;
            width: 32px;
            height: 32px;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: var(--gradient-gold);
            color: var(--color-black);
            font-weight: 900;
        }

        .signal-item h3 {
            font-size: 1.05rem;
            margin-bottom: 0.25rem;
        }

        .signal-item p,
        .result-card p,
        .proof-step p {
            color: rgba(237, 221, 192, 0.72);
            font-size: 0.92rem;
        }

        .mindset-panel {
            padding: var(--spacing-2xl);
            position: relative;
            overflow: hidden;
        }

        .mindset-panel::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 18% 20%, rgba(212, 165, 116, 0.22), transparent 32%);
            pointer-events: none;
        }

        .mindset-panel h2,
        .mindset-panel p {
            position: relative;
        }

        .mindset-panel h2 {
            max-width: 900px;
            margin-bottom: var(--spacing-md);
        }

        .result-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--spacing-lg);
        }

        @media (min-width: 760px) {
            .result-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        .result-card {
            min-height: 210px;
            padding: var(--spacing-xl);
            border-radius: var(--radius-lg);
            background: linear-gradient(135deg, rgba(212, 165, 116, 0.14), rgba(237, 221, 192, 0.04));
            border: 1px solid rgba(212, 165, 116, 0.26);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .result-card h3 {
            font-size: clamp(1.35rem, 3vw, 2rem);
            margin-bottom: var(--spacing-md);
        }

        .parent-proof-panel {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--spacing-xl);
            padding: var(--spacing-xl);
        }

        @media (min-width: 900px) {
            .parent-proof-panel {
                grid-template-columns: 0.8fr 1.2fr;
                padding: var(--spacing-2xl);
            }
        }

        .proof-list {
            display: grid;
            gap: var(--spacing-md);
        }

        .proof-step {
            padding-left: var(--spacing-lg);
            border-left: 3px solid var(--color-gold);
        }

        .proof-step h3 {
            font-size: 1.1rem;
            margin-bottom: 0.35rem;
        }

        /* ==================== BUTTONS ==================== */
        .btn-primary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--spacing-sm);
            padding: var(--spacing-lg) var(--spacing-2xl);
            background: var(--gradient-gold);
            color: var(--color-black);
            font-weight: 700;
            font-size: 1.125rem;
            border-radius: var(--radius-md);
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-gold);
            transition: all var(--transition);
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s ease;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-primary:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 48px rgba(212, 165, 116, 0.5);
        }

        .btn-primary:active {
            transform: translateY(-2px);
        }

        .btn-secondary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--spacing-sm);
            padding: var(--spacing-lg) var(--spacing-2xl);
            background: transparent;
            color: var(--color-gold);
            font-weight: 600;
            font-size: 1.125rem;
            border-radius: var(--radius-md);
            border: 2px solid var(--color-gold);
            transition: all var(--transition);
        }

        .btn-secondary:hover {
            background: rgba(212, 165, 116, 0.1);
            box-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
        }

        .btn-large {
            padding: var(--spacing-xl) var(--spacing-2xl);
            font-size: 1.25rem;
            border-radius: var(--radius-lg);
        }

        /* ==================== GLASSMORPHISM CARD ==================== */
        .glass-card {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: var(--radius-lg);
            padding: var(--spacing-xl);
            border: 1px solid var(--glass-border);
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-dark);
            transition: all var(--transition);
        }

        .glass-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.5), transparent);
        }

        .glass-card:hover {
            transform: translateY(-8px);
            border-color: rgba(212, 165, 116, 0.4);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
        }

        /* ==================== HEADER ==================== */
        .header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(26, 15, 10, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--glass-border);
        }

        .nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 80px;
            gap: var(--spacing-lg);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
        }

        .logo-icon {
            width: 50px;
            height: 50px;
            filter: drop-shadow(0 4px 12px rgba(212, 165, 116, 0.3));
        }

        .logo-text {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--color-ink);
        }

        .nav-links {
            display: none;
            gap: var(--spacing-xl);
        }

        .nav-links a {
            font-weight: 600;
            color: var(--color-cream);
            transition: color var(--transition);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-gold);
            transition: width var(--transition);
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--color-gold);
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        .header-actions {
            display: none;
            align-items: center;
            gap: var(--spacing-lg);
        }

        .phone-link {
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
            font-weight: 600;
            color: var(--color-cream);
            transition: color var(--transition);
        }

        .phone-link:hover {
            color: var(--color-gold);
        }

        /* Mobile Hamburger */
        .hamburger {
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding: var(--spacing-sm);
            z-index: 1001;
        }

        .hamburger span {
            display: block;
            width: 28px;
            height: 3px;
            background: var(--color-gold);
            border-radius: 2px;
            transition: all var(--transition);
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        /* Mobile Navigation */
        .nav-mobile {
            position: fixed;
            top: 80px;
            left: -100%;
            width: 100%;
            height: calc(100vh - 80px);
            background: #1a0f0a;
            transition: left var(--transition-slow);
            overflow-y: auto;
            z-index: 999;
        }

        .nav-mobile.active {
            left: 0;
        }

        .nav-mobile-links {
            display: flex;
            flex-direction: column;
            padding: var(--spacing-xl);
            margin: 0;
            list-style: none;
        }

        .nav-mobile-links li {
            margin: 0;
            padding: 0;
        }

        .nav-mobile-links a {
            display: flex;
            align-items: center;
            min-height: 48px;
            padding: var(--spacing-lg);
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1.4;
            border-bottom: 1px solid var(--glass-border);
            transition: all var(--transition);
        }

        .nav-mobile-links a:hover {
            color: var(--color-gold);
            padding-left: var(--spacing-xl);
        }

        @media (min-width: 1024px) {
            .nav-links {
                display: flex;
            }

            .header-actions {
                display: flex;
            }

            .hamburger {
                display: none;
            }

            .nav-mobile {
                display: none;
            }
        }

        /* ==================== HERO SECTION ==================== */
        .hero {
            min-height: 88vh;
            display: flex;
            align-items: center;
            padding: calc(var(--spacing-2xl) + 1rem) 0 var(--spacing-2xl);
            position: relative;
            overflow: hidden;
            background: var(--gradient-hero);
            border-bottom: 1px solid rgba(237, 221, 192, 0.1);
        }

        .hero::after {
            content: '';
            position: absolute;
            inset: auto -10% -28% 28%;
            height: 260px;
            background: radial-gradient(circle, rgba(212, 165, 116, 0.24), transparent 68%);
            pointer-events: none;
        }

        .hero .container {
            display: grid;
            grid-template-columns: 1fr;
            gap: clamp(2rem, 5vw, 5rem);
            align-items: center;
            position: relative;
            z-index: 1;
        }

        @media (min-width: 768px) {
            .hero .container {
                grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
            }
        }

        .hero-content {
            text-align: center;
        }

        @media (min-width: 768px) {
            .hero-content {
                text-align: left;
            }
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: var(--spacing-sm);
            padding: 0.55rem 0.85rem;
            background: rgba(167, 232, 199, 0.1);
            border: 1px solid rgba(167, 232, 199, 0.22);
            border-radius: 999px;
            color: var(--color-gold);
            font-weight: 800;
            font-size: 0.82rem;
            letter-spacing: 0;
            text-transform: uppercase;
            margin-bottom: var(--spacing-lg);
            animation: none;
            cursor: default;
            user-select: text;
        }

        .badge-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 999px;
            background: rgba(212, 165, 116, 0.16);
            color: var(--color-cream);
            font-size: 0.9rem;
        }

        @keyframes pulse {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.4);
            }
            50% {
                box-shadow: 0 0 20px 10px rgba(212, 165, 116, 0);
            }
        }

        .hero-title {
            font-size: clamp(2.55rem, 5vw, 3.65rem);
            margin-bottom: var(--spacing-lg);
            animation: fadeInUp 1s ease;
            max-width: 740px;
        }

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

        .hero-subtitle {
            font-size: clamp(1.05rem, 1.6vw, 1.3rem);
            color: rgba(237, 221, 192, 0.86);
            margin-bottom: var(--spacing-xl);
            max-width: 680px;
        }

        .hero-trust {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.7rem;
            margin: 0 0 var(--spacing-xl);
            max-width: 660px;
        }

        @media (min-width: 540px) {
            .hero-trust {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        .hero-trust-item {
            display: flex;
            align-items: center;
            gap: 0.55rem;
            padding: 0.75rem 0.85rem;
            background: rgba(237, 221, 192, 0.08);
            border: 1px solid rgba(237, 221, 192, 0.14);
            border-radius: var(--radius-sm);
            color: rgba(237, 221, 192, 0.92);
            font-weight: 800;
            line-height: 1.25;
        }

        .hero-trust-item span:first-child {
            color: var(--color-mint);
            font-size: 1.05rem;
        }

        .hero-note {
            max-width: 640px;
            color: rgba(237, 221, 192, 0.76);
            font-size: 0.98rem;
            line-height: 1.55;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: var(--spacing-2xl);
            margin-bottom: var(--spacing-2xl);
        }

        @media (min-width: 768px) {
            .hero-stats {
                justify-content: flex-start;
            }
        }

        .stat {
            text-align: center;
            padding: var(--spacing-lg);
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border-radius: var(--radius-md);
            border: 1px solid var(--glass-border);
            min-width: 120px;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 900;
            color: var(--color-trust);
            font-family: var(--font-main);
        }

        .stat-label {
            font-size: 0.875rem;
            color: rgba(237, 221, 192, 0.7);
            margin-top: var(--spacing-xs);
        }

        .hero-actions {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-md);
            margin-bottom: var(--spacing-lg);
        }

        @media (min-width: 480px) {
            .hero-actions {
                flex-direction: row;
                justify-content: center;
                flex-wrap: wrap;
            }
        }

        @media (min-width: 768px) {
            .hero-actions {
                justify-content: flex-start;
            }
        }

        .hero-image {
            position: relative;
            animation: fadeInRight 1s ease;
            padding: 0.7rem;
            border: 1px solid rgba(237, 221, 192, 0.14);
            border-radius: var(--radius-xl);
            background:
                linear-gradient(160deg, rgba(237, 221, 192, 0.14), rgba(237, 221, 192, 0.03)),
                rgba(0, 0, 0, 0.18);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
        }

        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .hero-image img {
            width: 100%;
            border-radius: calc(var(--radius-xl) - 8px);
            box-shadow: none;
            aspect-ratio: 1.06;
            object-fit: cover;
        }

        .hero-image::before {
            content: '';
            position: absolute;
            top: -16px;
            right: -16px;
            width: 54%;
            height: 54%;
            background: linear-gradient(135deg, rgba(167, 232, 199, 0.45), rgba(212, 165, 116, 0.42));
            border-radius: var(--radius-xl);
            opacity: 0.65;
            z-index: -1;
        }

        .hero-lesson-card,
        .hero-progress-card {
            position: absolute;
            background: rgba(26, 15, 10, 0.88);
            border: 1px solid rgba(237, 221, 192, 0.18);
            border-radius: var(--radius-md);
            box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
            backdrop-filter: blur(14px);
        }

        .hero-lesson-card {
            left: -0.75rem;
            bottom: 1.2rem;
            width: min(250px, 72%);
            padding: 1rem;
        }

        .hero-progress-card {
            right: -0.65rem;
            top: 1.2rem;
            width: min(220px, 62%);
            padding: 0.9rem;
        }

        .hero-card-label {
            display: block;
            margin-bottom: 0.4rem;
            color: var(--color-mint);
            font-size: 0.78rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0;
        }

        .hero-lesson-card strong,
        .hero-progress-card strong {
            display: block;
            margin-bottom: 0.25rem;
            color: var(--color-light-cream);
            font-size: 1rem;
            line-height: 1.25;
        }

        .hero-lesson-card p,
        .hero-progress-card p {
            color: rgba(237, 221, 192, 0.72);
            font-size: 0.86rem;
            line-height: 1.35;
        }

        @media (max-width: 560px) {
            .hero-image {
                padding: 0.45rem;
            }

            .hero-lesson-card,
            .hero-progress-card {
                position: static;
                width: auto;
                margin-top: 0.7rem;
            }

            .hero-image::before {
                top: -10px;
                right: -10px;
            }
        }

        /* ==================== ADVANTAGES SECTION ==================== */
        .advantages {
            padding: var(--spacing-2xl) 0;
        }

        .advantages-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--spacing-lg);
        }

        @media (min-width: 640px) {
            .advantages-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .advantages-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .advantage-card {
            padding: var(--spacing-xl);
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: var(--radius-lg);
            border: 1px solid var(--glass-border);
            transition: all var(--transition);
            position: relative;
            overflow: hidden;
        }

        .advantage-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-gold);
            transform: scaleX(0);
            transition: transform var(--transition);
        }

        .advantage-card:hover::before,
        .advantage-card.scroll-active::before {
            transform: scaleX(1);
        }

        .advantage-card:hover,
        .advantage-card.scroll-active {
            transform: translateY(-10px);
            border-color: rgba(212, 165, 116, 0.4);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
        }

        .signal-item.scroll-active,
        .result-card.scroll-active,
        .proof-step.scroll-active,
        .pricing-preview-card.scroll-active,
        .step-card.scroll-active {
            border-color: rgba(212, 165, 116, 0.42);
            box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
        }

        .signal-item.scroll-active,
        .proof-step.scroll-active {
            background: rgba(212, 165, 116, 0.12);
        }

        .result-card.scroll-active {
            background: linear-gradient(135deg, rgba(212, 165, 116, 0.22), rgba(237, 221, 192, 0.07));
        }

        .advantage-icon {
            font-size: 3rem;
            margin-bottom: var(--spacing-md);
            display: block;
        }

        .advantage-card h3 {
            margin-bottom: var(--spacing-sm);
            font-size: 1.25rem;
            color: var(--color-gold);
        }

        .advantage-card p {
            color: rgba(237, 221, 192, 0.7);
            font-size: 0.9375rem;
        }

        /* ==================== PRICING PREVIEW (HOME) ==================== */
        .pricing-preview {
            padding: var(--spacing-2xl) 0;
        }

        .pricing-preview-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--spacing-lg);
        }

        @media (min-width: 768px) {
            .pricing-preview-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .pricing-preview-card {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-sm);
        }

        .pricing-preview-label {
            font-size: 0.9rem;
            color: rgba(237, 221, 192, 0.7);
        }

        .pricing-preview-price {
            font-size: 1.4rem;
            font-weight: 800;
        }

        .pricing-preview-meta {
            font-size: 0.85rem;
            color: rgba(237, 221, 192, 0.7);
        }

        /* ==================== LEARNING STEPS ==================== */
        .steps {
            padding: var(--spacing-2xl) 0;
        }

        .steps-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: calc(var(--spacing-lg) + 16px);
            --steps-connector-gap: calc(var(--spacing-lg) + 16px);
        }

        @media (min-width: 900px) {
            .steps-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                column-gap: 128px;
                row-gap: var(--spacing-lg);
                --steps-connector-gap: 128px;
            }
        }

        .step-card {
            position: relative;
            padding: var(--spacing-xl);
            border-radius: var(--radius-lg);
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
        }

        .step-card:not(:last-child)::after {
            content: '';
            position: absolute;
            left: 100%;
            --steps-connector-width: 96px;
            --steps-connector-height: 24px;
            width: var(--steps-connector-width);
            height: var(--steps-connector-height);
            transform: translate(calc((var(--steps-connector-gap) - var(--steps-connector-width)) / 2), -50%);
            top: 50%;
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='24' viewBox='0 0 96 24' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='12' x2='96' y2='12' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23D4A574' stop-opacity='0.15'/%3E%3Cstop offset='0.45' stop-color='%23D4A574' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%23D4A574' stop-opacity='0.2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 12H78' stroke='url(%23g)' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M78 5L94 12L78 19' stroke='%23D4A574' stroke-opacity='0.95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
            pointer-events: none;
            z-index: 2;
            opacity: 0.9;
        }

        @media (max-width: 899px) {
            .step-card:not(:last-child)::after {
                top: 100%;
                left: 50%;
                transform: translate(-50%, calc((var(--steps-connector-gap) - var(--steps-connector-height)) / 2)) rotate(90deg);
            }
        }

        .step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 999px;
            background: var(--gradient-gold);
            color: #000;
            font-weight: 800;
            font-size: 0.9rem;
            margin-bottom: var(--spacing-md);
        }

        .step-card p {
            font-size: 0.9rem;
            color: rgba(237, 221, 192, 0.8);
        }

        /* ==================== CASES CAROUSEL ==================== */
        .cases {
            padding: var(--spacing-2xl) 0;
        }

        .cases-wrapper {
            position: relative;
            overflow: hidden;
        }

        .cases-track {
            display: flex;
            transition: transform 0.5s var(--transition);
        }

        .case-card {
            min-width: 100%;
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--spacing-lg);
        }

        @media (min-width: 900px) {
            .case-card {
                grid-template-columns: 1.2fr 1fr;
            }
        }

        .case-image-placeholder {
            border-radius: var(--radius-lg);
            background: radial-gradient(circle at 30% 20%, rgba(212,165,116,0.3), transparent),
                        rgba(0, 0, 0, 0.6);
            border: 1px dashed rgba(212,165,116,0.5);
            height: 260px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(237,221,192,0.7);
            font-size: 0.9rem;
            text-align: center;
        }

        .case-content h3 {
            margin-bottom: var(--spacing-sm);
        }

        .case-student {
            font-size: 0.95rem;
            color: rgba(237,221,192,0.85);
            margin-bottom: var(--spacing-sm);
        }

        .case-desc {
            font-size: 0.9rem;
            color: rgba(237,221,192,0.8);
        }

        .cases-dots {
            display: flex;
            justify-content: center;
            gap: var(--spacing-sm);
            margin-top: var(--spacing-lg);
        }

        .cases-dot {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: rgba(237,221,192,0.3);
            border: none;
        }

        .cases-dot--active {
            width: 20px;
            background: var(--gradient-gold);
        }

        /* ==================== FAQ ==================== */
        .faq {
            padding: var(--spacing-2xl) 0;
        }

        .faq-list {
            max-width: 900px;
            margin: 0 auto;
            display: grid;
            gap: var(--spacing-md);
        }

        .faq-item {
            border-radius: var(--radius-md);
            border: 1px solid var(--glass-border);
            background: var(--glass-bg);
            padding: var(--spacing-md) var(--spacing-lg);
            transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
        }

        .faq-question {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: var(--spacing-md);
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }

        .faq-question h3 {
            font-size: 1rem;
            color: var(--color-cream);
            transition: color var(--transition);
        }

        .faq-toggle {
            font-size: 1.2rem;
            color: var(--color-gold);
            transition: transform var(--transition), color var(--transition);
        }

        .faq-answer {
            display: grid;
            grid-template-rows: 0fr;
            margin-top: 0;
            font-size: 0.9rem;
            color: rgba(237,221,192,0.8);
            opacity: 0;
            transition:
                grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.28s ease,
                margin-top 0.42s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .faq-answer > * {
            overflow: hidden;
        }

        .faq-answer-content {
            overflow: hidden;
        }

        .faq-item.faq-item--open .faq-answer {
            grid-template-rows: 1fr;
            margin-top: var(--spacing-sm);
            opacity: 1;
        }

        .faq-item.faq-item--open {
            border-color: rgba(212, 165, 116, 0.4);
            background: rgba(212, 165, 116, 0.1);
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
        }

        .faq-item.faq-item--open .faq-question h3 {
            color: var(--color-gold);
        }

        .faq-item.faq-item--open .faq-toggle {
            transform: rotate(180deg);
            color: var(--color-cream);
        }

        /* ==================== CTA SECTION ==================== */
        .cta-section {
            padding: var(--spacing-2xl) 0;
            background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(201, 149, 108, 0.05) 100%);
            border-top: 1px solid var(--glass-border);
            border-bottom: 1px solid var(--glass-border);
        }

        .cta-content {
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
        }

        .cta-content h2 {
            margin-bottom: var(--spacing-md);
        }

        .cta-content p {
            font-size: 1.25rem;
            color: rgba(237, 221, 192, 0.8);
            margin-bottom: var(--spacing-xl);
        }

        /* ==================== FOOTER ==================== */
        .footer {
            padding: var(--spacing-2xl) 0;
            background: rgba(26, 15, 10, 0.5);
            border-top: 1px solid var(--glass-border);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--spacing-xl);
            margin-bottom: var(--spacing-2xl);
        }

        @media (min-width: 640px) {
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .footer-grid {
                grid-template-columns: 2fr 1fr 1fr 1fr;
            }
        }

        .footer-col h4 {
            font-size: 1.125rem;
            margin-bottom: var(--spacing-md);
            color: var(--color-gold);
        }

        .footer-col ul li {
            margin-bottom: var(--spacing-sm);
        }

        .footer-col ul li a {
            color: rgba(237, 221, 192, 0.7);
            transition: color var(--transition);
        }

        .footer-col ul li a:hover {
            color: var(--color-gold);
        }

        .footer-bottom {
            padding-top: var(--spacing-xl);
            border-top: 1px solid var(--glass-border);
            text-align: center;
            color: rgba(237, 221, 192, 0.6);
            font-size: 0.875rem;
        }

        /* ==================== COOKIE CONSENT ==================== */
        .cookie-consent {
            position: fixed;
            left: auto;
            right: var(--spacing-md);
            bottom: var(--spacing-md);
            z-index: 3000;
            display: none;
            align-items: center;
            justify-content: space-between;
            gap: var(--spacing-md);
            width: min(520px, calc(100% - 2rem));
            margin: 0;
            padding: var(--spacing-md);
            border: 1px solid rgba(212, 165, 116, 0.34);
            border-radius: var(--radius-md);
            background: rgba(26, 15, 10, 0.94);
            color: var(--color-cream);
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.46);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }

        .cookie-consent.cookie-consent--visible {
            display: flex;
            animation: cookieConsentIn 0.35s ease;
        }

        .cookie-consent p {
            margin: 0;
            color: rgba(237, 221, 192, 0.82);
            font-size: 0.9rem;
        }

        .cookie-consent strong {
            display: block;
            margin-bottom: 0.2rem;
            color: var(--color-gold);
            font-size: 0.95rem;
        }

        .cookie-consent-actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: var(--spacing-sm);
            flex: 0 0 auto;
        }

        .cookie-consent .btn-primary,
        .cookie-consent .btn-secondary {
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
            border-radius: var(--radius-sm);
            box-shadow: none;
        }

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

        @media (max-width: 640px) {
            .cookie-consent {
                left: var(--spacing-md);
                width: auto;
                align-items: stretch;
                flex-direction: column;
            }

            .cookie-consent-actions {
                justify-content: stretch;
            }

            .cookie-consent-actions button {
                flex: 1 1 100%;
            }
        }

        /* ==================== MODAL ==================== */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            padding: var(--spacing-md);
            opacity: 0;
            transition: opacity var(--transition);
        }

        .modal.active {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            background: rgba(26, 15, 10, 0.95);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border-radius: var(--radius-xl);
            padding: var(--spacing-2xl);
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            border: 1px solid var(--glass-border);
            box-shadow: var(--shadow-dark);
            transform: translateY(30px);
            transition: transform var(--transition);
        }

        .modal.active .modal-content {
            transform: translateY(0);
        }

        .modal-close {
            position: absolute;
            top: var(--spacing-md);
            right: var(--spacing-md);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            color: var(--color-cream);
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition);
        }

        .modal-close:hover {
            background: rgba(212, 165, 116, 0.2);
            border-color: var(--color-gold);
        }

        .modal-content h2 {
            margin-bottom: var(--spacing-sm);
            color: var(--color-ink);
        }

        .modal-desc {
            color: rgba(237, 221, 192, 0.7);
            margin-bottom: var(--spacing-xl);
        }

        /* ==================== FORM ==================== */
        .form {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-md);
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-sm);
        }

        .form-group label {
            font-weight: 600;
            font-size: 0.9375rem;
            color: var(--color-cream);
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            padding: var(--spacing-lg);
            background: var(--glass-bg);
            border: 2px solid var(--glass-border);
            border-radius: var(--radius-md);
            color: var(--color-cream);
            background-color: (var(--color-amber));
            font-size: 1rem;
            transition: all var(--transition);
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--color-gold);
            box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #6b7280;
            opacity: 1;
        }

        .form-group input.error,
        .form-group select.error,
        .form-group textarea.error {
            border-color: #EF4444;
        }

        .error-message {
            color: #EF4444;
            font-size: 0.875rem;
        }

        .form-privacy {
            font-size: 0.8125rem;
            color: #58667a;
            text-align: center;
            margin-top: var(--spacing-sm);
        }

        .form-privacy a {
            color: #2457c5;
            text-decoration: underline;
        }

        /* ==================== SCROLLBAR ==================== */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(26, 15, 10, 0.5);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--gradient-gold);
            border-radius: 5px;
        }

        /* ==================== NO SCROLL ==================== */
        body.no-scroll {
            overflow: hidden;
        }

        /* ==================== MOBILE (телефон) ==================== */
        @media (max-width: 767px) {
            .nav { height: 64px; }
            .nav-mobile { top: 64px; height: calc(100vh - 64px); }
            .logo-icon { width: 40px; height: 40px; }
            .logo-text { font-size: 1.2rem; }
            .nav-mobile-links { padding: var(--spacing-md); }
            .nav-mobile-links a { padding: var(--spacing-md); font-size: 1rem; }
            .hero { min-height: auto; padding: var(--spacing-xl) 0; }
            .hero-badge { font-size: 0.8rem; padding: 0; }
            .hero-subtitle { font-size: 1rem; }
            .hero-stats { gap: var(--spacing-md); margin-bottom: var(--spacing-lg); }
            .stat { padding: var(--spacing-md); min-width: 85px; }
            .stat-number { font-size: 1.75rem; }
            .stat-label { font-size: 0.75rem; }
            .btn-primary, .btn-secondary { padding: var(--spacing-md) var(--spacing-lg); font-size: 1rem; }
            .btn-large { padding: var(--spacing-lg) var(--spacing-xl); font-size: 1.05rem; }
            .section-title { margin-bottom: var(--spacing-xl); }
            .section-title h2 { font-size: 1.6rem; }
            .glass-card { padding: var(--spacing-md); }
            .advantage-card { padding: var(--spacing-md); }
            .advantage-icon { font-size: 2rem; }
            .advantage-card h3 { font-size: 1.05rem; }
            .advantage-card p { font-size: 0.875rem; }
            .pricing-preview-price { font-size: 1.2rem; }
            .pricing-preview-label, .pricing-preview-meta { font-size: 0.8rem; }
            .step-card { padding: var(--spacing-md); }
            .step-number { width: 28px; height: 28px; font-size: 0.8rem; }
            .step-card h3 { font-size: 1.1rem; }
            .step-card p { font-size: 0.85rem; }
            .case-image-placeholder { height: 200px; font-size: 0.8rem; }
            .case-content h3 { font-size: 1.2rem; }
            .case-student, .case-desc { font-size: 0.85rem; }
            .faq-question h3 { font-size: 0.95rem; }
            .faq-answer { font-size: 0.85rem; }
            .cta-content h2 { font-size: 1.5rem; }
            .cta-content p { font-size: 1rem; }
            .footer-col h4 { font-size: 1rem; }
            .footer-col ul li { font-size: 0.9rem; }
        }
        @media (max-width: 480px) {
            .hero-stats { flex-wrap: wrap; justify-content: space-around; }
            .stat { flex: 1 0 40%; min-width: 0; }
        }


.privacy-footer-link{padding:24px 5%;text-align:center;background:rgba(0,0,0,.25)}
.privacy-footer-link a{color:#D4A574;text-decoration:none;font-size:.9rem}
.privacy-footer-link a:hover{text-decoration:underline}


/* ==================== PREMIUM EDUCATION RESTYLE ==================== */
body {
    background: var(--color-page);
    color: var(--color-ink);
}

.bg-animated,
.chess-pieces {
    display: none;
}

.container {
    max-width: 1180px;
}

.header {
    background: rgba(247, 243, 234, 0.9);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 28px rgba(16, 36, 54, 0.06);
}

.nav {
    height: 76px;
}

.logo-text {
    color: var(--color-ink);
}

.nav-links a {
    color: var(--color-muted);
    font-size: 0.95rem;
    font-weight: 750;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-trust);
}

.nav-links a::after {
    background: var(--color-growth);
}

.hamburger span {
    background: var(--color-ink);
}

.nav-mobile {
    background: rgba(247, 243, 234, 0.98);
    border-top: 1px solid var(--color-border);
}

.nav-mobile-links a {
    color: var(--color-ink);
    border-bottom-color: var(--color-border);
}

.hero {
    min-height: 88vh;
    padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
    background:
        linear-gradient(115deg, rgba(238, 244, 241, 0.92), rgba(247, 243, 234, 0.74) 48%, rgba(255, 255, 255, 0.9)),
        var(--color-page);
    border-bottom: 1px solid var(--color-border);
}

.hero::after {
    inset: auto 0 -18% auto;
    width: min(560px, 48vw);
    height: 360px;
    background: radial-gradient(circle, rgba(47, 111, 115, 0.13), transparent 68%);
}

.hero .container {
    grid-template-columns: minmax(0, 0.98fr) minmax(360px, 1.02fr);
    gap: clamp(2rem, 6vw, 5.5rem);
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: none;
}

.hero-title {
    max-width: 680px;
    color: #071927;
    font-size: clamp(2.7rem, 4.8vw, 4.55rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-subtitle {
    max-width: 620px;
    color: var(--color-muted);
    font-size: clamp(1.08rem, 1.45vw, 1.28rem);
    line-height: 1.55;
    margin-bottom: 1.35rem;
}

.hero-actions {
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.btn-primary,
.btn-secondary {
    min-height: 56px;
    border-radius: 10px;
    font-weight: 850;
    letter-spacing: 0;
}

.btn-primary {
    background: var(--color-action);
    color: #fffaf3;
    box-shadow: 0 14px 30px rgba(217, 130, 59, 0.24);
}

.btn-primary::before {
    display: none;
}

.btn-primary:hover {
    background: var(--color-action-hover);
    box-shadow: 0 18px 34px rgba(197, 111, 46, 0.26);
}

.btn-secondary {
    background: transparent;
    color: var(--color-trust);
    border: 1.5px solid rgba(24, 59, 86, 0.24);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-trust);
    color: var(--color-trust);
}

.hero-trust {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 0.55rem;
    margin: 0 0 1.1rem;
}

@media (min-width: 620px) {
    .hero-trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hero-trust-item {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--color-border);
    color: var(--color-trust);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 36, 54, 0.06);
}

.hero-trust-item span:first-child {
    color: var(--color-growth);
}

.hero-note {
    max-width: 620px;
    color: var(--color-muted);
}

.hero-image {
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: 0 28px 70px rgba(16, 36, 54, 0.14);
}

.hero-image::before {
    top: 28px;
    right: -24px;
    width: 44%;
    height: 74%;
    background: var(--color-page-alt);
    border: 1px solid var(--color-border);
    opacity: 1;
}

.hero-image img {
    border-radius: 18px;
    aspect-ratio: 1.04;
    filter: saturate(1.04) contrast(1.08) brightness(0.96);
}

.hero-lesson-card,
.hero-progress-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(16, 36, 54, 0.14);
}

.hero-card-label {
    color: var(--color-growth);
}

.hero-lesson-card strong,
.hero-progress-card strong {
    color: var(--color-ink);
}

.hero-lesson-card p,
.hero-progress-card p {
    color: var(--color-muted);
}

.section-title {
    color: var(--color-ink);
}

.section-lead,
.story-text p,
.mindset-panel p,
.parent-proof-intro,
.pricing-preview-meta,
.faq-answer,
.footer-col ul li a,
.footer-bottom {
    color: var(--color-muted);
}

.story-section,
.result-section,
.advantages,
.steps,
.faq {
    background: var(--color-page);
}

.story-section,
.result-section,
.parent-proof,
.pricing-preview,
.advantages,
.steps,
.faq {
    scroll-margin-top: 96px;
}

.parent-proof,
.pricing-preview,
.footer {
    background: var(--color-page-alt);
}

.story-panel,
.mindset-panel,
.parent-proof-panel,
.glass-card,
.result-card,
.advantage-card,
.step-card,
.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 40px rgba(16, 36, 54, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.story-panel,
.parent-proof-panel {
    border-radius: 18px;
}

.story-kicker,
.result-label,
.proof-label,
.pricing-preview-label {
    color: var(--color-growth);
    letter-spacing: 0.02em;
}

.signal-item {
    background: #f9fbf8;
    border-color: var(--color-border);
}

.signal-item p,
.result-card p,
.proof-step p {
    color: var(--color-muted);
}

.signal-mark,
.step-number,
.advantage-icon {
    background: var(--color-page-alt);
    color: var(--color-growth);
    border: 1px solid rgba(47, 111, 115, 0.18);
}

.result-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbf8 100%);
}

.proof-step {
    border-left-color: var(--color-growth);
}

.pricing-preview-price {
    color: var(--color-trust);
}

.result-card,
.pricing-preview-card,
.age-card {
    background: var(--color-surface);
    border: 1px solid #d8e2dd;
    box-shadow: 0 10px 26px rgba(16, 36, 54, 0.07);
    border-radius: 10px;
    opacity: 1;
    transform: none;
}

.pricing-preview-card::before,
.age-card::before {
    display: none;
}

.result-card h3,
.age-card h3 {
    color: var(--color-ink);
    opacity: 1;
}

.result-label,
.pricing-preview-label {
    color: var(--color-growth);
    font-weight: 800;
}

.pricing-preview-meta,
.advantage-card p {
    color: #4f6069;
}

.result-card p,
.pricing-preview-meta,
.advantage-card p {
    color: #4f6069;
    font-size: 1rem;
    line-height: 1.62;
    opacity: 1;
}

.result-card {
    padding: clamp(1.35rem, 2vw, 1.8rem);
}

.result-card h3 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.18;
}

.age-card .advantage-icon {
    display: inline-flex;
    width: auto;
    min-width: 0;
    height: auto;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.58rem;
    margin-bottom: 1.1rem;
    border: 0;
    border-radius: 7px;
    background: #e9f1ee;
    box-shadow: none;
    color: var(--color-growth);
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0;
}

.age-card {
    overflow: visible;
}

.age-card h3 {
    font-size: clamp(1.1rem, 1.55vw, 1.28rem);
    line-height: 1.25;
    margin-bottom: 0.7rem;
}

.pricing-preview-card {
    padding: clamp(1.35rem, 2vw, 1.75rem);
    gap: 0.75rem;
}

.pricing-preview-card .btn-primary,
.pricing-preview-card .btn-secondary {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    min-height: 52px;
    border-radius: 8px;
}

.pricing-preview .section-actions .btn-primary {
    border-radius: 8px;
}

@media (max-width: 640px) {
    .story-section,
    .result-section,
    .parent-proof,
    .pricing-preview,
    .advantages,
    .steps,
    .faq {
        scroll-margin-top: 112px;
    }

    .section-title {
        font-size: clamp(1.9rem, 8vw, 2.35rem);
        line-height: 1.08;
        letter-spacing: 0;
    }

    .pricing-preview .section-title + .section-lead,
    .advantages .section-lead,
    .result-section .section-title {
        margin-bottom: 1.5rem;
    }

    .result-card,
    .pricing-preview-card,
    .age-card {
        border-radius: 9px;
        box-shadow: 0 8px 22px rgba(16, 36, 54, 0.08);
    }
}

.result-card:hover,
.result-card.scroll-active,
.pricing-preview-card:hover,
.pricing-preview-card.scroll-active,
.age-card:hover,
.age-card.scroll-active {
    border-color: rgba(47, 111, 115, 0.24);
    box-shadow: 0 14px 32px rgba(16, 36, 54, 0.11);
    opacity: 1;
    transform: none;
}

.result-card.scroll-active {
    background: var(--color-surface);
    transform: none;
}

.faq-question h3,
.faq-item.faq-item--open .faq-question h3 {
    color: var(--color-ink);
}

.faq-toggle,
.faq-item.faq-item--open .faq-toggle {
    color: var(--color-growth);
}

.footer h4,
.footer-col h4 {
    color: var(--color-ink);
}

.privacy-footer-link {
    background: var(--color-page-alt);
}

.privacy-footer-link a {
    color: var(--color-trust);
}

.cookie-consent {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-border);
    color: var(--color-ink);
    box-shadow: 0 18px 46px rgba(16, 36, 54, 0.14);
}

.cookie-consent p {
    color: var(--color-muted);
}

.cookie-consent strong {
    color: var(--color-ink);
}

.modal {
    background: rgba(16, 36, 54, 0.42);
}

.modal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: 0 28px 72px rgba(16, 36, 54, 0.24);
}

.modal-close {
    background: var(--color-page-alt);
    border-color: var(--color-border);
    color: var(--color-ink);
}

.modal-close:hover {
    background: #e2eee9;
    border-color: rgba(47, 111, 115, 0.24);
}

.modal-desc,
.form-privacy {
    color: var(--color-muted);
}

.form-group label {
    color: var(--color-ink);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #fbfcfa;
    border: 1px solid var(--color-border);
    color: var(--color-ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-growth);
    box-shadow: 0 0 0 4px rgba(47, 111, 115, 0.12);
}

@media (max-width: 767px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.12rem, 10.8vw, 3.05rem);
        line-height: 1.04;
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-trust {
        grid-template-columns: 1fr;
    }

    .cookie-consent {
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .cookie-consent p {
        font-size: 0.84rem;
    }

    .cookie-consent-actions {
        flex-wrap: nowrap;
    }

    .cookie-consent-actions button {
        flex: 1 1 0;
        min-height: 48px;
        padding: 0.65rem 0.75rem;
    }
}


/* ==================== KIDS EDTECH REDESIGN ==================== */
:root {
    --kids-blue: #5d7cff;
    --kids-blue-strong: #315df5;
    --kids-blue-dark: #18265f;
    --kids-sky: #eaf2ff;
    --kids-yellow: #ffc533;
    --kids-yellow-dark: #ffae00;
    --kids-coral: #ff6b5f;
    --kids-mint: #19c7b7;
    --kids-ink: #151829;
    --kids-muted: #58667a;
    --kids-line: #dfe7f5;
    --kids-shadow: 0 18px 42px rgba(49, 93, 245, 0.13);
    --kids-shadow-hard: 0 22px 0 rgba(24, 38, 95, 0.08);
    --kids-radius: 22px;
}

html {
    background: #f6f9ff;
}

body {
    background:
        linear-gradient(rgba(49, 93, 245, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 93, 245, 0.045) 1px, transparent 1px),
        #f6f9ff;
    background-size: 34px 34px;
    color: var(--kids-ink);
}

.container {
    max-width: 1320px;
}

.header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(24, 38, 95, 0.09);
    box-shadow: 0 10px 28px rgba(24, 38, 95, 0.05);
}

.nav {
    height: 64px;
}

.logo-icon {
    width: 42px;
    height: 42px;
}

.logo-text,
.nav-links a,
.hamburger span {
    color: var(--kids-ink);
}

.nav-links {
    gap: clamp(1.1rem, 2vw, 2rem);
}

.nav-links a {
    font-size: 0.94rem;
    font-weight: 850;
}

.nav-links a::after {
    height: 3px;
    background: var(--kids-blue-strong);
    border-radius: 999px;
}

.hero {
    min-height: calc(100vh - 64px);
    padding: clamp(1.35rem, 3vw, 2rem) 0 0;
    background:
        radial-gradient(circle at 82% 22%, rgba(255, 197, 51, 0.26), transparent 24%),
        radial-gradient(circle at 8% 18%, rgba(25, 199, 183, 0.18), transparent 26%),
        linear-gradient(rgba(49, 93, 245, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 93, 245, 0.08) 1px, transparent 1px),
        #fffdf8;
    background-size: auto, auto, 33px 33px, 33px 33px, auto;
    border-bottom: 0;
    overflow: hidden;
}

.hero::after {
    content: "♞";
    position: absolute;
    right: clamp(1rem, 6vw, 5rem);
    top: 12%;
    width: auto;
    height: auto;
    background: none;
    color: rgba(93, 124, 255, 0.2);
    font-size: clamp(7rem, 16vw, 15rem);
    line-height: 1;
    transform: rotate(-10deg);
}

.hero .container {
    position: relative;
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
}

.hero-content {
    padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.hero-badge {
    display: inline-flex;
    margin: 0 0 1.15rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(49, 93, 245, 0.14);
    color: var(--kids-blue-dark);
    box-shadow: 0 12px 26px rgba(49, 93, 245, 0.1);
    font-size: 0.94rem;
    font-weight: 850;
}

.badge-icon {
    color: var(--kids-coral);
}

.hero-title {
    max-width: 710px;
    color: #303030;
    font-size: clamp(3.2rem, 5.65vw, 5.35rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: 0;
}

.hero-title::first-line {
    color: #303030;
}

.hero-title strong,
.hero-title em,
.hero-title span {
    color: var(--kids-blue-strong);
}

.hero-subtitle {
    max-width: 620px;
    margin: 1.55rem 0 1.7rem;
    color: #263042;
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    line-height: 1.48;
}

.hero-actions {
    align-items: center;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    min-height: 58px;
    border-radius: 999px;
    font-size: 1.03rem;
    font-weight: 900;
}

.btn-primary {
    background: var(--kids-yellow);
    color: #242424;
    border: 2px solid rgba(24, 38, 95, 0.08);
    box-shadow: 0 7px 0 var(--kids-yellow-dark), 0 18px 34px rgba(255, 197, 51, 0.35);
}

.btn-primary:hover {
    background: #ffd45c;
    color: #1e2430;
    box-shadow: 0 5px 0 var(--kids-yellow-dark), 0 16px 30px rgba(255, 197, 51, 0.34);
    transform: translateY(2px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--kids-blue-dark);
    border: 2px solid rgba(24, 38, 95, 0.14);
    box-shadow: 0 7px 0 rgba(24, 38, 95, 0.1);
}

.btn-secondary:hover {
    background: #f7f9ff;
    border-color: rgba(49, 93, 245, 0.32);
    transform: translateY(2px);
}

.hero-trust {
    max-width: 780px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.45rem;
}

.hero-trust-item {
    min-height: 86px;
    align-items: flex-start;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid rgba(24, 38, 95, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 0 rgba(24, 38, 95, 0.04), 0 12px 30px rgba(24, 38, 95, 0.08);
    color: var(--kids-ink);
    font-weight: 850;
}

.hero-trust-item span:first-child {
    width: 24px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--kids-mint);
    color: #fff;
}

.hero-note {
    display: none;
}

.hero-image {
    justify-self: stretch;
    min-height: min(620px, 72vh);
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 0;
    border-radius: 32px;
    background:
        radial-gradient(circle at 22% 30%, rgba(255,255,255,0.34), transparent 30%),
        linear-gradient(135deg, #6a88ff 0%, #315df5 62%, #243a9b 100%);
    box-shadow: 0 28px 0 rgba(49, 93, 245, 0.11), 0 42px 90px rgba(24, 38, 95, 0.24);
    overflow: visible;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 1.1rem;
    width: auto;
    height: auto;
    border-radius: 24px;
    background:
        linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 32px 32px;
    border: 0;
    opacity: 1;
    z-index: 0;
}

.hero-image::after {
    content: "Шахматы как суперсила";
    position: absolute;
    right: -1.2rem;
    top: 3.8rem;
    z-index: 3;
    max-width: 190px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: var(--kids-yellow);
    color: #282828;
    box-shadow: 0 12px 0 rgba(24, 38, 95, 0.12);
    font-weight: 950;
    font-size: 1rem;
    transform: rotate(4deg);
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 78%;
    margin: 7% auto 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 9px solid #ffffff;
    border-radius: 50%;
    filter: saturate(1.18) contrast(1.06) brightness(1.03);
    box-shadow: 0 24px 46px rgba(12, 24, 72, 0.28);
}

.hero-lesson-card,
.hero-progress-card {
    z-index: 4;
    width: min(295px, 48%);
    padding: 1rem;
    border: 1px solid rgba(24, 38, 95, 0.1);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 13px 0 rgba(24, 38, 95, 0.08), 0 18px 42px rgba(24, 38, 95, 0.13);
}

.hero-progress-card {
    top: auto;
    right: -0.7rem;
    bottom: 2.2rem;
}

.hero-lesson-card {
    left: -1.2rem;
    bottom: 3.4rem;
}

.hero-card-label {
    color: var(--kids-blue-strong);
    font-weight: 950;
}

.hero-lesson-card strong,
.hero-progress-card strong {
    color: var(--kids-ink);
    font-size: 1.03rem;
}

.hero-lesson-card p,
.hero-progress-card p {
    color: var(--kids-muted);
    line-height: 1.35;
}

.story-section,
.result-section,
.advantages,
.steps,
.faq {
    background: #fffdf8;
}

.parent-proof,
.pricing-preview,
.footer {
    background:
        linear-gradient(rgba(49, 93, 245, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 93, 245, 0.08) 1px, transparent 1px),
        var(--kids-sky);
    background-size: 34px 34px;
}

.section-title {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    color: var(--kids-ink);
    font-size: clamp(2.45rem, 4.4vw, 4.2rem);
    line-height: 0.98;
    font-weight: 950;
}

.section-lead {
    max-width: 740px;
    color: var(--kids-muted);
    font-size: 1.13rem;
    line-height: 1.55;
}

.story-panel,
.parent-proof-panel {
    border-radius: 34px;
    border: 0;
    box-shadow: none;
}

.story-panel {
    align-items: stretch;
    padding: clamp(1.5rem, 4vw, 3.6rem);
    background:
        linear-gradient(135deg, #18265f 0%, #315df5 68%, #5d7cff 100%);
    color: #fff;
    overflow: hidden;
}

.story-panel::after {
    content: "!";
    position: absolute;
    right: 4%;
    top: -8%;
    color: rgba(255,255,255,0.13);
    font-size: clamp(12rem, 20vw, 22rem);
    font-weight: 950;
    line-height: 1;
}

.story-text h2,
.parent-proof-panel h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.story-text h2,
.story-text p {
    color: #ffffff;
}

.story-kicker,
.result-label,
.proof-label,
.pricing-preview-label {
    color: var(--kids-blue-strong);
    font-size: 0.82rem;
    font-weight: 950;
    text-transform: uppercase;
}

.story-kicker {
    display: inline-flex;
    color: #18265f;
    background: var(--kids-yellow);
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
}

.signal-list {
    gap: 0.9rem;
}

.signal-item,
.proof-step,
.result-card,
.pricing-preview-card,
.age-card,
.step-card,
.faq-item {
    border: 2px solid rgba(24, 38, 95, 0.1);
    border-radius: var(--kids-radius);
    background: #ffffff;
    box-shadow: 0 12px 0 rgba(24, 38, 95, 0.055), 0 18px 38px rgba(24, 38, 95, 0.08);
}

.signal-item {
    padding: 1.1rem;
}

.signal-mark,
.step-number,
.age-card .advantage-icon {
    background: var(--kids-yellow);
    color: #232323;
    border: 0;
    box-shadow: 0 5px 0 rgba(24, 38, 95, 0.12);
    font-weight: 950;
}

.signal-item:nth-child(2) .signal-mark,
.result-card:nth-child(2) .result-label,
.age-card:nth-child(2) .advantage-icon {
    background: #dff7ff;
    color: var(--kids-blue-strong);
}

.signal-item:nth-child(3) .signal-mark,
.result-card:nth-child(3) .result-label,
.age-card:nth-child(3) .advantage-icon {
    background: #e7fbf3;
    color: #008a7b;
}

.signal-item:nth-child(4) .signal-mark,
.result-card:nth-child(4) .result-label,
.age-card:nth-child(4) .advantage-icon {
    background: #ffe7e3;
    color: #d63d31;
}

.signal-item h3,
.signal-item p {
    color: var(--kids-ink);
}

.result-grid,
.advantages-grid {
    gap: 1.35rem;
}

.result-card,
.age-card {
    padding: clamp(1.35rem, 2.4vw, 2.1rem);
}

.result-card {
    min-height: 232px;
}

.result-card h3,
.age-card h3,
.step-card h3,
.proof-step h3,
.faq-question h3 {
    color: var(--kids-ink);
    font-weight: 950;
}

.result-card p,
.age-card p,
.step-card p,
.proof-step p,
.faq-answer,
.pricing-preview-meta {
    color: var(--kids-muted);
    font-size: 1.02rem;
}

.result-label,
.pricing-preview-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1.1rem;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    background: #eef3ff;
}

.parent-proof-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.6rem, 4vw, 3.6rem);
    background: #ffffff;
    border: 2px solid rgba(24, 38, 95, 0.08);
    box-shadow: var(--kids-shadow-hard);
}

.proof-label {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #e7fbf3;
    color: #008a7b;
}

.proof-step {
    padding: 1.15rem 1.25rem;
    border-left: 8px solid var(--kids-blue-strong);
}

.pricing-preview {
    padding: clamp(4rem, 7vw, 7rem) 0;
}

.pricing-preview-grid {
    gap: 1.5rem;
}

.pricing-preview-card {
    position: relative;
    padding: 1.55rem;
    border-radius: 24px;
    overflow: visible;
}

.pricing-preview-card:nth-child(2) {
    border-color: rgba(49, 93, 245, 0.36);
    box-shadow: 0 14px 0 rgba(49, 93, 245, 0.18), 0 22px 46px rgba(49, 93, 245, 0.16);
    transform: translateY(-12px);
}

.pricing-preview-card:nth-child(2)::after {
    content: "Лучший старт";
    position: absolute;
    top: -15px;
    right: 18px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--kids-coral);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 950;
}

.pricing-preview-price {
    color: var(--kids-blue-dark);
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 950;
}

.pricing-preview .section-actions .btn-primary {
    min-width: min(440px, 100%);
    background: var(--kids-blue-strong);
    color: #ffffff;
    box-shadow: 0 7px 0 #1f3db8, 0 20px 36px rgba(49, 93, 245, 0.24);
}

.steps {
    background: #fffdf8;
}

.step-card {
    padding: 1.45rem;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    padding: 1.3rem 1.45rem;
}

.footer {
    color: var(--kids-ink);
}

.footer h4,
.footer-col h4,
.footer-col ul li a,
.footer-bottom {
    color: var(--kids-ink);
}

.cookie-consent {
    border-radius: 20px;
}

.modal-content {
    border-radius: 28px;
}

@media (max-width: 960px) {
    .hero .container,
    .parent-proof-panel {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 520px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .nav {
        height: 64px;
    }

    .hero {
        min-height: auto;
        padding-top: 1rem;
    }

    .hero-content {
        padding-top: 1.4rem;
        text-align: left;
    }

    .hero-title {
        font-size: clamp(2.55rem, 13vw, 3.6rem);
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-trust {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 430px;
        border-radius: 26px;
    }

    .hero-image img {
        width: 82%;
        margin-top: 10%;
    }

    .hero-image::after {
        right: 0.4rem;
        top: 1.8rem;
        max-width: 155px;
        font-size: 0.88rem;
    }

    .hero-lesson-card,
    .hero-progress-card {
        width: 72%;
        max-width: 270px;
    }

    .hero-progress-card {
        right: 0.5rem;
        bottom: 1.2rem;
    }

    .hero-lesson-card {
        left: 0.5rem;
        bottom: 5.4rem;
    }

    .section-title {
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .story-panel,
    .parent-proof-panel {
        border-radius: 26px;
    }

    .pricing-preview-card:nth-child(2) {
        transform: none;
    }
}


/* ==================== ALFACHESS ACADEMY ORIGINAL DIRECTION ==================== */
:root {
    --academy-ink: #111827;
    --academy-navy: #14213d;
    --academy-blue: #2457c5;
    --academy-amber: #f59e0b;
    --academy-amber-dark: #d97706;
    --academy-green: #168f63;
    --academy-cream: #f8f5ee;
    --academy-paper: #fffdf8;
    --academy-sky: #edf4f7;
    --academy-line: #d9e1e7;
    --academy-muted: #58667a;
    --academy-shadow: 0 22px 56px rgba(20, 33, 61, 0.13);
}

html,
body {
    background: var(--academy-cream);
}

body {
    background:
        radial-gradient(circle at 16% 10%, rgba(22, 143, 99, 0.08), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(245, 158, 11, 0.12), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, var(--academy-cream) 44%, var(--academy-sky) 100%);
    color: var(--academy-ink);
}

.header {
    background: rgba(255, 253, 248, 0.94);
    border-bottom: 1px solid rgba(20, 33, 61, 0.1);
    box-shadow: 0 8px 28px rgba(20, 33, 61, 0.06);
}

.nav {
    height: 72px;
}

.header-actions {
    display: none;
}

@media (min-width: 1024px) {
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
}

.header-cta {
    height: 42px;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.2);
}

.logo-text,
.nav-links a {
    color: var(--academy-ink);
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--academy-blue);
}

.nav-links a::after {
    background: var(--academy-amber);
    height: 3px;
}

.hero {
    min-height: calc(100vh - 72px);
    padding: clamp(2rem, 4vw, 3.4rem) 0 clamp(2rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 14% 18%, rgba(36, 87, 197, 0.09), transparent 28%),
        radial-gradient(circle at 84% 16%, rgba(245, 158, 11, 0.13), transparent 28%),
        linear-gradient(135deg, #fffdf8 0%, #f8f5ee 58%, #edf4f7 100%);
    background-size: auto;
    overflow: hidden;
}

.hero::after {
    content: "A1";
    right: auto;
    left: clamp(1rem, 3vw, 2rem);
    top: auto;
    bottom: 1.2rem;
    color: rgba(20, 33, 61, 0.08);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 950;
    transform: none;
}

.hero .container {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.95fr);
    gap: clamp(2.2rem, 5vw, 5.2rem);
    align-items: center;
}

.hero-content {
    padding: clamp(1rem, 4vw, 3rem) 0;
}

.hero-badge {
    background: transparent;
    border: 0;
    color: var(--academy-blue);
    box-shadow: none;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    text-transform: none;
}

.badge-icon {
    color: var(--academy-green);
}

.hero-title {
    max-width: 760px;
    color: var(--academy-ink);
    font-size: clamp(3rem, 5.2vw, 5rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-title span {
    color: var(--academy-blue);
}

.hero-subtitle {
    max-width: 650px;
    color: #344154;
    font-size: clamp(1.08rem, 1.35vw, 1.25rem);
    line-height: 1.62;
}

.btn-primary,
.btn-secondary {
    border-radius: 12px;
    min-height: 58px;
}

.btn-primary {
    background: var(--academy-amber);
    color: #1f2937;
    border: 1px solid rgba(217, 119, 6, 0.22);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
    background: var(--academy-amber-dark);
    color: #fffdf8;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
    background: #ffffff;
    color: var(--academy-navy);
    border: 1.5px solid rgba(20, 33, 61, 0.18);
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: var(--academy-blue);
    color: var(--academy-blue);
    transform: translateY(-2px);
}

.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 720px;
    margin-top: 1.35rem;
}

.hero-trust-item {
    min-height: 76px;
    padding: 0.95rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(20, 33, 61, 0.1);
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.07);
}

.hero-trust-item span:first-child {
    background: rgba(22, 143, 99, 0.12);
    color: var(--academy-green);
    box-shadow: none;
}

.hero-image {
    min-height: min(600px, 72vh);
    border-radius: 28px;
    padding: clamp(1rem, 2vw, 1.35rem);
    background:
        linear-gradient(45deg, rgba(255,255,255,0.09) 25%, transparent 25% 50%, rgba(255,255,255,0.09) 50% 75%, transparent 75%),
        linear-gradient(135deg, #111827 0%, #14213d 58%, #2457c5 100%);
    background-size: 88px 88px, auto;
    box-shadow: var(--academy-shadow);
    border: 1px solid rgba(20, 33, 61, 0.14);
    overflow: visible;
}

.hero-image::before {
    content: "персональный маршрут";
    inset: auto auto 1.4rem 1.4rem;
    width: auto;
    height: auto;
    z-index: 4;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--academy-blue);
    font-weight: 900;
    font-size: 0.84rem;
    border: 1px solid rgba(36, 87, 197, 0.12);
}

.hero-image::after {
    content: "B2 → C4";
    right: 1.15rem;
    top: 1.15rem;
    max-width: none;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: var(--academy-amber);
    color: var(--academy-ink);
    box-shadow: 0 12px 24px rgba(0,0,0,0.16);
    transform: rotate(2deg);
}

.hero-image img {
    width: 100%;
    height: min(430px, 54vh);
    margin: 0;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 20px;
    border: 0;
    filter: saturate(1.06) contrast(1.02) brightness(1.08);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.24);
}

.hero-lesson-card,
.hero-progress-card {
    width: min(305px, 56%);
    border-radius: 14px;
    border: 1px solid rgba(20, 33, 61, 0.12);
    box-shadow: 0 18px 38px rgba(20, 33, 61, 0.14);
}

.hero-lesson-card {
    left: 1.4rem;
    bottom: -1rem;
}

.hero-progress-card {
    right: 1.4rem;
    bottom: 2.9rem;
}

.hero-card-label {
    color: var(--academy-blue);
}

.section-title {
    color: var(--academy-ink);
    font-size: clamp(2.35rem, 4vw, 3.85rem);
}

.section-lead {
    color: var(--academy-muted);
}

.story-section,
.result-section,
.advantages,
.steps,
.faq {
    background: var(--academy-paper);
}

.parent-proof,
.pricing-preview,
.footer {
    background:
        radial-gradient(circle at 14% 18%, rgba(36, 87, 197, 0.08), transparent 24%),
        linear-gradient(180deg, var(--academy-sky) 0%, #f5f8fa 100%);
}

.story-panel {
    background:
        linear-gradient(135deg, #14213d 0%, #1f365f 58%, #2457c5 100%);
    border-radius: 28px;
    box-shadow: var(--academy-shadow);
}

.story-panel::after {
    content: "8×8";
    color: rgba(255, 255, 255, 0.1);
}

.story-kicker {
    background: rgba(245, 158, 11, 0.16);
    color: #ffcf7a;
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.signal-item,
.proof-step,
.result-card,
.pricing-preview-card,
.age-card,
.step-card,
.faq-item {
    border: 1px solid rgba(20, 33, 61, 0.1);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(20, 33, 61, 0.08);
    opacity: 1;
    transform: none;
}

.story-panel .signal-item,
.story-panel .signal-item.scroll-active {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.42);
    opacity: 1;
    transform: none;
}

.story-panel .signal-item h3 {
    color: var(--academy-ink);
}

.story-panel .signal-item p {
    color: #465367;
}

.signal-mark,
.step-number,
.age-card .advantage-icon {
    background: rgba(245, 158, 11, 0.14);
    color: var(--academy-amber-dark);
    box-shadow: none;
}

.result-label,
.pricing-preview-label,
.proof-label {
    background: rgba(36, 87, 197, 0.08);
    color: var(--academy-blue);
}

.parent-proof-panel {
    border-radius: 28px;
    box-shadow: var(--academy-shadow);
}

.proof-step {
    border-left: 5px solid var(--academy-green);
}

.pricing-preview {
    padding: clamp(4rem, 7vw, 7rem) 0;
}

.pricing-preview-card:nth-child(2) {
    transform: translateY(-8px);
    border-color: rgba(36, 87, 197, 0.26);
    box-shadow: 0 18px 44px rgba(36, 87, 197, 0.14);
}

.pricing-preview-card:nth-child(2)::after {
    background: var(--academy-green);
}

.pricing-preview .section-actions .btn-primary {
    background: var(--academy-blue);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(36, 87, 197, 0.24);
}

.cookie-consent {
    right: 1rem;
    bottom: 1rem;
    max-width: 340px;
    border-radius: 14px;
}

.footer {
    padding: clamp(2rem, 4vw, 3.5rem) 0 1.25rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(36, 87, 197, 0.08), transparent 24%),
        linear-gradient(180deg, var(--academy-sky) 0%, #f5f8fa 100%);
    border-top: 1px solid rgba(20, 33, 61, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
    margin-bottom: 0;
}

.footer-col {
    min-width: 0;
}

.footer-col h4 {
    color: var(--academy-navy);
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.2;
}

.footer-col ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin: 0;
}

.footer-col ul li a,
.footer-bottom {
    color: var(--academy-ink);
    -webkit-text-fill-color: currentColor;
}

.footer-col p {
    color: var(--academy-muted);
    margin: 0.75rem 0 0;
}

.footer-col .logo {
    align-items: center;
}

.footer-bottom {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-top: 1rem;
    border-top: 1px solid rgba(20, 33, 61, 0.1);
    text-align: left;
}

.footer-bottom p {
    margin: 0;
    color: var(--academy-muted);
}

@media (max-width: 960px) {
    .hero .container,
    .parent-proof-panel {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    .hero {
        padding-top: 1rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: clamp(2.35rem, 11.5vw, 3.25rem);
    }

    .hero-trust {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 440px;
        border-radius: 22px;
    }

    .hero-image img {
        height: 280px;
    }

    .hero-image::after {
        right: 0.75rem;
        top: 0.75rem;
        font-size: 0.86rem;
    }

    .hero-lesson-card,
    .hero-progress-card {
        width: 78%;
    }

    .hero-lesson-card {
        left: 0.8rem;
        bottom: 1rem;
    }

    .hero-progress-card {
        right: 0.8rem;
        bottom: 6.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.header-actions .header-cta.btn-primary {
    height: 42px;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    line-height: 42px;
}

/* ==================== HOMEPAGE CONTENT POLISH ==================== */
body {
    background:
        linear-gradient(45deg, rgba(36, 87, 197, 0.032) 25%, transparent 25% 75%, rgba(36, 87, 197, 0.032) 75%),
        linear-gradient(45deg, rgba(36, 87, 197, 0.032) 25%, transparent 25% 75%, rgba(36, 87, 197, 0.032) 75%),
        linear-gradient(180deg, #fffdf8 0%, #f7f4ec 52%, #edf4f7 100%);
    background-position: 0 0, 28px 28px, 0 0;
    background-size: 56px 56px, 56px 56px, auto;
}

.hero {
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(255, 253, 248, 0.74)),
        linear-gradient(45deg, rgba(20, 33, 61, 0.04) 25%, transparent 25% 75%, rgba(20, 33, 61, 0.04) 75%),
        linear-gradient(45deg, rgba(20, 33, 61, 0.04) 25%, transparent 25% 75%, rgba(20, 33, 61, 0.04) 75%),
        #f8f5ee;
    background-position: 0 0, 0 0, 28px 28px, 0 0;
    background-size: auto, 56px 56px, 56px 56px, auto;
}

.hero-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
    min-height: 0;
    padding: clamp(1rem, 2vw, 1.25rem);
    overflow: hidden;
}

.hero-photo-placeholder {
    grid-column: 1 / -1;
    min-height: min(430px, 54vh);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.09) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.09) 75%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(36, 87, 197, 0.86));
    background-position: 0 0, 0 0;
    background-size: 42px 42px, auto;
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-photo-placeholder::before {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.42);
    background:
        radial-gradient(circle at 68% 42%, rgba(245, 158, 11, 0.24), transparent 22%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.hero-photo-placeholder::after {
    content: "Здесь будет реальное фото ребёнка за шахматами";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(300px, 72%);
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.hero-image img {
    display: none;
}

.hero-image::before,
.hero-image::after {
    display: none;
}

.hero-lesson-card,
.hero-progress-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    min-height: 150px;
    padding: 1rem;
}

.hero-progress-card {
    right: auto;
    bottom: auto;
}

.hero-lesson-card {
    left: auto;
    bottom: auto;
}

.testimonials {
    padding: clamp(4rem, 7vw, 7rem) 0;
    background:
        linear-gradient(45deg, rgba(36, 87, 197, 0.035) 25%, transparent 25% 75%, rgba(36, 87, 197, 0.035) 75%),
        linear-gradient(45deg, rgba(36, 87, 197, 0.035) 25%, transparent 25% 75%, rgba(36, 87, 197, 0.035) 75%),
        #fffdf8;
    background-position: 0 0, 24px 24px, 0 0;
    background-size: 48px 48px, 48px 48px, auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
    margin-top: 2rem;
}

.testimonial-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1.1rem, 2vw, 1.35rem);
    border: 1px solid rgba(20, 33, 61, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(20, 33, 61, 0.08);
}

.testimonial-photo-slot {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    border: 1px dashed rgba(36, 87, 197, 0.28);
    background:
        linear-gradient(45deg, rgba(36, 87, 197, 0.055) 25%, transparent 25% 75%, rgba(36, 87, 197, 0.055) 75%),
        linear-gradient(180deg, #f8fafc, #eef4f7);
    background-size: 28px 28px, auto;
    display: grid;
    place-items: center;
    color: var(--academy-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.testimonial-text {
    color: #273449;
    font-size: 1rem;
    line-height: 1.58;
    margin: 0;
}

.testimonial-author {
    display: grid;
    gap: 0.15rem;
    color: var(--academy-ink);
    font-weight: 900;
}

.testimonial-author span {
    color: var(--academy-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 960px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        grid-template-columns: 1fr;
    }

    .hero-photo-placeholder {
        min-height: 320px;
    }

    .hero-lesson-card,
    .hero-progress-card {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 1.15rem 0 2.5rem;
    }

    .hero .container {
        gap: 1.35rem;
    }

.hero-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
}

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-photo-placeholder {
        min-height: 230px;
    }

    .hero-photo-placeholder::after {
        width: 78%;
        font-size: 0.92rem;
    }

    .hero-lesson-card,
    .hero-progress-card {
        width: 100%;
        min-height: auto;
        padding: 0.9rem;
    }

    .testimonials {
        padding: 3rem 0;
    }

    .testimonial-card {
        padding: 1rem;
    }

    .cookie-consent {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        max-width: none;
    }
}

.hero-title,
.hero-subtitle,
.hero-actions,
.hero-trust,
.hero-note,
.hero-image {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}


/*
 * Shared button motion layer.
 * Keep this file linked after page-specific CSS so all pages use the same
 * interaction feel regardless of older inline styles.
 */
:root {
    --button-motion-duration: 180ms;
    --button-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --button-hover-y: -2px;
    --button-active-y: 0;
    --button-active-scale: 0.99;
    --button-focus-ring: 0 0 0 4px rgba(36, 87, 197, 0.18);
}

:where(
    .btn,
    .btn-primary,
    .btn-secondary,
    .header-cta,
    .tariff-button,
    .duration-tab,
    .duration-tab--active,
    .pricing-trial-actions a,
    .page-hero-actions a,
    .refer-main a.btn-primary,
    .refer-main a.btn-secondary,
    button[type="submit"]
):not(.hamburger):not(.modal-close) {
    transition:
        transform var(--button-motion-duration) var(--button-motion-ease),
        box-shadow var(--button-motion-duration) var(--button-motion-ease),
        background-color var(--button-motion-duration) var(--button-motion-ease),
        border-color var(--button-motion-duration) var(--button-motion-ease),
        color var(--button-motion-duration) var(--button-motion-ease) !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
    will-change: transform;
}

:where(
    .btn-primary,
    .header-cta,
    .tariff-button,
    button[type="submit"]
):not(:disabled):not([aria-busy="true"]):not(.hamburger):not(.modal-close) {
    box-shadow: none !important;
}

:where(.btn-primary, .header-cta, .tariff-button, button[type="submit"])::before {
    content: none !important;
}

:where(
    .btn,
    .btn-primary,
    .btn-secondary,
    .header-cta,
    .tariff-button,
    .duration-tab,
    .duration-tab--active,
    .pricing-trial-actions a,
    .page-hero-actions a,
    .refer-main a.btn-primary,
    .refer-main a.btn-secondary,
    button[type="submit"]
):not(:disabled):not([aria-busy="true"]):not(.hamburger):not(.modal-close):hover {
    transform: translate3d(0, var(--button-hover-y), 0) scale(1) !important;
}

:where(
    .btn-primary,
    .header-cta,
    .tariff-button,
    button[type="submit"]
):not(:disabled):not([aria-busy="true"]):not(.hamburger):not(.modal-close):hover {
    box-shadow: none !important;
}

:where(
    .btn-secondary,
    .duration-tab,
    .pricing-trial-actions .btn-secondary,
    .page-hero-actions .btn-secondary,
    .refer-main .btn-secondary
):not(:disabled):not([aria-busy="true"]):hover {
    box-shadow: none !important;
}

:where(
    .btn,
    .btn-primary,
    .btn-secondary,
    .header-cta,
    .tariff-button,
    .duration-tab,
    .duration-tab--active,
    .pricing-trial-actions a,
    .page-hero-actions a,
    .refer-main a.btn-primary,
    .refer-main a.btn-secondary,
    button[type="submit"]
):not(:disabled):not([aria-busy="true"]):not(.hamburger):not(.modal-close):active {
    transform: translate3d(0, var(--button-active-y), 0) scale(var(--button-active-scale)) !important;
}

:where(
    .btn,
    .btn-primary,
    .btn-secondary,
    .header-cta,
    .tariff-button,
    .duration-tab,
    .duration-tab--active,
    .pricing-trial-actions a,
    .page-hero-actions a,
    .refer-main a.btn-primary,
    .refer-main a.btn-secondary,
    button[type="submit"]
):not(.hamburger):not(.modal-close):focus-visible {
    outline: 3px solid var(--school-focus, #2457c5) !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
}



@media (max-width: 767px) {
    .header-actions {
        display: none !important;
    }
}
/* Site-wide scrollbar: matches index.html on every public page. */
html {
    scrollbar-width: thin;
    scrollbar-color: #f59e0b rgba(26, 15, 10, 0.5);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 15, 10, 0.5);
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

@media (max-width: 720px) {
    html {
        scrollbar-width: none;
    }

    ::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
}


/*
 * Unified trial lesson lead form.
 * Loaded after page CSS to make every sign-up form look and behave the same.
 */
:root {
    --lead-form-ink: #111827;
    --lead-form-muted: #58667a;
    --lead-form-line: #d6dde8;
    --lead-form-field: #fbfcff;
    --lead-form-blue: #2457c5;
    --lead-form-button: #f59e0b;
    --lead-form-button-hover: #e89105;
}

.modal-content:has(form[data-endpoint="/api/send-lead"]) {
    width: min(100%, 520px) !important;
    padding: clamp(1.5rem, 3vw, 2rem) !important;
    background: #ffffff !important;
    color: var(--lead-form-ink) !important;
    border: 1px solid rgba(20, 33, 61, 0.1) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(20, 33, 61, 0.18) !important;
}

.modal-content:has(form[data-endpoint="/api/send-lead"]) h2 {
    margin: 0 2.8rem 0.35rem 0 !important;
    color: var(--lead-form-ink) !important;
    font-size: clamp(1.8rem, 3.2vw, 2.35rem) !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.modal-content:has(form[data-endpoint="/api/send-lead"]) .modal-desc {
    margin: 0 0 1.25rem !important;
    color: var(--lead-form-muted) !important;
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
}

form[data-endpoint="/api/send-lead"] {
    display: grid !important;
    gap: 0.9rem !important;
    width: 100% !important;
    margin: 0 !important;
}

form[data-endpoint="/api/send-lead"] .form-group,
form[data-endpoint="/api/send-lead"] .lead-form-field {
    display: grid !important;
    gap: 0.42rem !important;
    margin: 0 !important;
}

form[data-endpoint="/api/send-lead"] label {
    color: var(--lead-form-ink) !important;
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

form[data-endpoint="/api/send-lead"] input,
form[data-endpoint="/api/send-lead"] select,
form[data-endpoint="/api/send-lead"] textarea {
    width: 100% !important;
    min-height: 56px !important;
    padding: 0.9rem 1rem !important;
    background: var(--lead-form-field) !important;
    color: var(--lead-form-ink) !important;
    border: 1px solid var(--lead-form-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font: 600 1rem/1.3 var(--font-main, 'Manrope', sans-serif) !important;
    outline: none !important;
}

form[data-endpoint="/api/send-lead"] input::placeholder,
form[data-endpoint="/api/send-lead"] textarea::placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
}

form[data-endpoint="/api/send-lead"] input:focus,
form[data-endpoint="/api/send-lead"] select:focus,
form[data-endpoint="/api/send-lead"] textarea:focus {
    border-color: var(--lead-form-blue) !important;
    box-shadow: 0 0 0 4px rgba(36, 87, 197, 0.12) !important;
}

form[data-endpoint="/api/send-lead"] button[type="submit"] {
    width: 100% !important;
    min-height: 56px !important;
    margin: 0.25rem 0 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--lead-form-button) !important;
    color: #111827 !important;
    font: 900 0.98rem/1.2 var(--font-main, 'Manrope', sans-serif) !important;
    text-align: center !important;
    justify-content: center !important;
}

form[data-endpoint="/api/send-lead"] button[type="submit"]:hover {
    background: var(--lead-form-button-hover) !important;
}

form[data-endpoint="/api/send-lead"] .form-privacy {
    margin: -0.15rem 0 0 !important;
    color: var(--lead-form-muted) !important;
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    text-align: left !important;
}

form[data-endpoint="/api/send-lead"] .form-privacy a {
    color: var(--lead-form-blue) !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(36, 87, 197, 0.45) !important;
    text-underline-offset: 3px !important;
}

.form-agreement {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    color: var(--lead-form-muted, #58667a);
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}

.form-agreement input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.18rem 0 0;
    accent-color: var(--lead-form-blue, #2457c5);
}

.form-agreement a {
    color: var(--lead-form-blue, #2457c5);
    text-decoration: underline;
    text-underline-offset: 2px;
}

form[data-endpoint="/api/send-lead"] .form-status {
    min-height: 1.2rem !important;
    margin: 0 !important;
    color: var(--lead-form-muted) !important;
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
}

form[data-endpoint="/api/send-lead"] .form-status[data-state="error"] {
    color: #b42318 !important;
}

form[data-endpoint="/api/send-lead"] .form-status[data-state="success"] {
    color: #047857 !important;
}

@media (max-width: 560px) {
    .modal-content:has(form[data-endpoint="/api/send-lead"]) {
        padding: 1.2rem !important;
    }

    .modal-content:has(form[data-endpoint="/api/send-lead"]) h2 {
        font-size: 1.75rem !important;
    }
}


/* ==================== CONVERSION POLISH 2026-07-10 ==================== */
.header-cta {
    min-width: 210px;
    padding-inline: 1.3rem;
    white-space: nowrap;
}

.hero-badge {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-inline: 0 !important;
    color: #2457c5;
}

.hero-title {
    max-width: 720px;
    font-size: clamp(2.9rem, 5vw, 4.7rem) !important;
    line-height: 0.98 !important;
}

.hero {
    min-height: auto !important;
    padding: clamp(2.6rem, 5vw, 4.8rem) 0 clamp(2.4rem, 4vw, 4rem) !important;
}

.hero .container {
    align-items: center !important;
    gap: clamp(2rem, 4vw, 4rem) !important;
}

.hero-subtitle {
    max-width: 680px;
}

.hero-actions {
    margin-top: 1.4rem !important;
}

.hero .btn-large {
    min-height: 60px !important;
    padding: 0.9rem 1.35rem !important;
}

.hero-photo-placeholder {
    min-height: min(330px, 44vh) !important;
}

.hero-lesson-card,
.hero-progress-card {
    min-height: 118px !important;
}

.steps {
    background:
        linear-gradient(45deg, rgba(36, 87, 197, 0.03) 25%, transparent 25% 75%, rgba(36, 87, 197, 0.03) 75%),
        #ffffff;
    background-size: 52px 52px, auto;
    border-top: 1px solid rgba(20, 33, 61, 0.08);
    border-bottom: 1px solid rgba(20, 33, 61, 0.08);
}

.teacher-trust,
.trial-band,
.final-cta {
    position: relative;
    overflow: hidden;
}

.teacher-trust {
    padding: clamp(4rem, 7vw, 7rem) 0;
    background:
        linear-gradient(45deg, rgba(17, 24, 39, 0.025) 25%, transparent 25% 75%, rgba(17, 24, 39, 0.025) 75%),
        #f8fafc;
    background-position: 0 0, 0 0;
    background-size: 48px 48px, auto;
}

.teacher-trust-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.teacher-trust-copy .section-title,
.teacher-trust-copy .section-lead {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.teacher-points {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.teacher-point {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: 0.2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(20, 33, 61, 0.12);
}

.teacher-point span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #e8f7f0;
    color: #047857;
    font-weight: 900;
    font-size: 0.82rem;
}

.teacher-point strong {
    color: #111827;
    font-size: 1.05rem;
}

.teacher-point p {
    margin: 0;
    color: #58667a;
    line-height: 1.58;
}

.teacher-photo-panel {
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    gap: 1rem;
    align-items: end;
}

.teacher-photo-slot {
    min-height: 420px;
    border-radius: 24px;
    border: 1px dashed rgba(36, 87, 197, 0.28);
    background:
        linear-gradient(45deg, rgba(36, 87, 197, 0.06) 25%, transparent 25% 75%, rgba(36, 87, 197, 0.06) 75%),
        linear-gradient(180deg, #ffffff, #eef4f7);
    background-size: 34px 34px, auto;
    box-shadow: 0 20px 44px rgba(20, 33, 61, 0.11);
    color: #58667a;
    font-weight: 850;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
}

.teacher-photo-slot--small {
    min-height: 270px;
    border-radius: 20px;
}

.trial-band {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: #10243f;
    color: #ffffff;
}

.trial-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.trial-band h2,
.final-cta h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.12;
}

.trial-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    max-width: 640px;
}

.faq {
    background: #ffffff;
}

.faq .container {
    max-width: 920px;
}

.final-cta {
    padding: clamp(4rem, 7vw, 7rem) 0;
    background:
        linear-gradient(45deg, rgba(245, 158, 11, 0.045) 25%, transparent 25% 75%, rgba(245, 158, 11, 0.045) 75%),
        #fffdf8;
    background-size: 56px 56px, auto;
}

.final-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.final-cta-copy p {
    max-width: 680px;
    color: #58667a;
    font-size: 1.12rem;
    line-height: 1.65;
}

.final-cta-panel {
    padding: clamp(1.25rem, 3vw, 1.8rem);
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(20, 33, 61, 0.1);
    box-shadow: 0 22px 48px rgba(20, 33, 61, 0.12);
    display: grid;
    gap: 0.9rem;
}

.final-cta-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #273449;
    font-weight: 800;
}

.final-cta-line span {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #e8f7f0;
    color: #047857;
    display: grid;
    place-items: center;
    font-size: 0.88rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.cookie-consent {
    left: auto;
    right: 1rem;
    top: 88px;
    bottom: auto;
    transform: none;
    max-width: 320px;
    width: calc(100vw - 2rem);
    display: grid;
    gap: 0.6rem;
    padding: 0.75rem;
    background: #ffffff !important;
    border-color: rgba(20, 33, 61, 0.12) !important;
    box-shadow: 0 18px 36px rgba(20, 33, 61, 0.14) !important;
}

.cookie-consent.cookie-consent--visible {
    transform: none;
}

.cookie-consent p {
    margin: 0;
    max-width: none;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
}

.cookie-consent strong {
    display: inline;
    margin-right: 0.25rem;
}

.cookie-consent-actions {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.cookie-consent .btn-primary,
.cookie-consent .btn-secondary {
    min-height: 44px !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.9rem !important;
}

@media (max-width: 980px) {
    .teacher-trust-layout,
    .final-cta-inner {
        grid-template-columns: 1fr;
    }

    .trial-band-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .teacher-photo-panel {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .header-actions {
        display: none !important;
    }

    .header-cta {
        min-width: 0;
    }

    .teacher-photo-panel {
        grid-template-columns: 1fr;
    }

    .teacher-photo-slot,
    .teacher-photo-slot--small {
        min-height: 230px;
    }

    .teacher-point {
        grid-template-columns: 1fr;
    }

    .teacher-point span {
        grid-row: auto;
    }

    .cookie-consent,
    .cookie-consent.cookie-consent--visible {
        top: auto;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: auto;
        max-width: none;
        transform: none;
        display: grid;
    }
}

/* ==================== EDITORIAL HOMEPAGE SYSTEM 2026-07-10 ==================== */
body {
    background-color: #f7f9fc;
    background-image:
        linear-gradient(rgba(20, 33, 61, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 33, 61, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero,
.steps,
.testimonials,
.teacher-trust,
.final-cta,
.footer {
    background-image: none !important;
}

.hero {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(20, 33, 61, 0.1);
    padding: clamp(2.2rem, 3.4vw, 3.2rem) 0 clamp(2.4rem, 4vw, 4rem) !important;
}

.hero .container {
    grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr) !important;
}

.hero-title {
    font-size: clamp(2.8rem, 4.25vw, 4rem) !important;
    line-height: 1.03 !important;
}

.hero-title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.7em);
}

.hero-title-ready .hero-title-word {
    animation: heroWordIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--word-index) * 55ms);
}

@keyframes heroWordIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-trust {
    max-width: 680px;
    gap: 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(20, 33, 61, 0.12);
    border-bottom: 1px solid rgba(20, 33, 61, 0.12);
}

.hero-trust-item {
    min-width: 0;
    padding: 0.9rem 0.85rem;
    border: 0 !important;
    border-right: 1px solid rgba(20, 33, 61, 0.12) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #172033 !important;
    font-size: 0.92rem;
}

.hero-trust-item:last-child {
    border-right: 0 !important;
}

.hero-trust-item span:first-child {
    display: grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: #e7f6ef;
    color: #087a58;
    font-size: 0.85rem;
}

.hero-image {
    gap: 0;
    padding: 14px;
    border: 0 !important;
    border-radius: 10px !important;
    background: #10243f !important;
    box-shadow: 0 24px 54px rgba(20, 33, 61, 0.18) !important;
}

.hero-photo-placeholder {
    min-height: min(360px, 46vh) !important;
    border: 0 !important;
    border-radius: 6px !important;
    background-color: #1b365d !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) !important;
    background-size: 38px 38px !important;
    box-shadow: none !important;
}

.hero-photo-placeholder::before {
    inset: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.08) 50%, transparent 80%) !important;
    transform: translateX(-100%);
    animation: mediaSweep 1.1s ease-out 0.7s both;
}

.hero-photo-placeholder::after {
    left: 24px !important;
    top: auto !important;
    bottom: 22px;
    width: min(330px, calc(100% - 48px)) !important;
    transform: none !important;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.92rem;
    font-weight: 750;
}

@keyframes mediaSweep {
    from { transform: translateX(-110%); }
    to { transform: translateX(110%); }
}

.hero-progress-card,
.hero-lesson-card {
    min-height: 108px !important;
    padding: 1rem 0.75rem 0.2rem !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hero-progress-card {
    padding-right: 1.1rem !important;
}

.hero-lesson-card {
    padding-left: 1.1rem !important;
    border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.hero-card-label {
    color: #fbbf24 !important;
}

.hero-progress-card strong,
.hero-lesson-card strong {
    color: #ffffff !important;
}

.hero-progress-card p,
.hero-lesson-card p {
    color: rgba(255, 255, 255, 0.68) !important;
}

.scroll-manifesto {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    background: rgba(247, 249, 252, 0.94);
    border-bottom: 1px solid rgba(20, 33, 61, 0.1);
}

.scroll-manifesto p {
    margin: 0;
    max-width: 1080px;
    color: #14213d;
    font-size: clamp(2.2rem, 5.2vw, 5rem);
    font-weight: 900;
    line-height: 1.02;
}

.scroll-copy-line {
    display: block;
}

.scroll-copy-line:last-child {
    color: #2457c5;
}

.scroll-copy-line.scroll-reveal {
    transform: translateY(34px);
}

.scroll-copy-line.scroll-active {
    transform: translateY(0);
}

.steps,
.testimonials,
.teacher-trust,
.final-cta {
    background-color: rgba(255, 255, 255, 0.92) !important;
}

.testimonials,
.teacher-trust,
.final-cta {
    border-bottom: 1px solid rgba(20, 33, 61, 0.1);
}

.testimonial-card,
.testimonial-photo-slot,
.teacher-photo-slot,
.story-panel,
.result-card,
.parent-proof-panel,
.pricing-preview-card,
.advantage-card,
.age-card,
.step-card,
.final-cta-panel,
.modal-content {
    border-radius: 8px !important;
}

.testimonial-card,
.teacher-photo-slot,
.final-cta-panel {
    box-shadow: 0 14px 32px rgba(20, 33, 61, 0.08) !important;
}

.story-panel,
.result-card,
.parent-proof-panel,
.pricing-preview-card,
.advantage-card,
.age-card,
.step-card {
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.075) !important;
}

.trial-band {
    background-color: #10243f !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
}

.trial-band h2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.trial-band p {
    color: rgba(255, 255, 255, 0.76) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.76) !important;
}

.btn-primary,
.btn-secondary,
.header-actions .header-cta.btn-primary {
    border-radius: 8px !important;
}

.cookie-consent,
.cookie-consent.cookie-consent--visible {
    top: auto !important;
    right: 1rem !important;
    bottom: 1rem !important;
    left: auto !important;
    width: min(440px, calc(100vw - 2rem)) !important;
    max-width: 440px !important;
    border-radius: 8px !important;
}

.cookie-consent {
    display: none !important;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0.9rem !important;
    transform: translateY(18px) !important;
}

.cookie-consent.cookie-consent--visible {
    display: grid !important;
    transform: translateY(0) !important;
}

.cookie-consent-actions {
    grid-template-columns: auto auto;
    gap: 0.5rem;
    justify-content: end;
}

.cookie-consent .btn-primary,
.cookie-consent .btn-secondary {
    min-width: 96px;
}

@media (max-width: 980px) {
    .hero .container {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    ::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .hero-title {
        font-size: clamp(2.25rem, 11vw, 3.25rem) !important;
    }

    .hero-trust {
        border-bottom: 0;
    }

    .hero-trust-item {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(20, 33, 61, 0.12) !important;
    }

    .hero-image {
        grid-template-columns: 1fr;
    }

    .hero-lesson-card {
        padding-left: 0.75rem !important;
        border-left: 0 !important;
    }

    .scroll-manifesto {
        padding: 3rem 0;
    }

    .cookie-consent,
    .cookie-consent.cookie-consent--visible {
        right: 0.75rem !important;
        bottom: 0.75rem !important;
        left: 0.75rem !important;
        width: auto !important;
        max-width: none !important;
    }

    .cookie-consent {
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions,
    .cookie-consent-actions button {
        width: 100%;
    }
}




/* AlfaChess premium homepage. Loaded last and scoped to body.home-premium. */

body.home-premium {
    --premium-navy: #10243f;
    --premium-blue: #2457c5;
    --premium-green: #168f63;
    --premium-amber: #f59e0b;
    --premium-white: #ffffff;
    --premium-line: #e3e9f1;
    --premium-ink: #10243f;
    --premium-muted: rgba(16, 36, 63, 0.68);
    --premium-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M48 0H0V48' fill='none' stroke='%23D2DCE8' stroke-width='1'/%3E%3C/svg%3E");
    --premium-grid-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M48 0H0V48' fill='none' stroke='%23FFFFFF' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E");
    --premium-container: 1344px;
    color: var(--premium-ink);
    background: var(--premium-white);
}

body.home-premium .container {
    width: min(var(--premium-container), calc(100% - 96px));
    max-width: none;
    margin-inline: auto;
}

body.home-premium .bg-animated,
body.home-premium .chess-pieces {
    display: none;
}

body.home-premium .hero,
body.home-premium .outcome-story,
body.home-premium .steps,
body.home-premium .teacher-trust,
body.home-premium .testimonials {
    isolation: isolate;
}

/* Hero */

body.home-premium .hero {
    position: relative;
    box-sizing: border-box;
    height: calc(100svh - 73px);
    min-height: 700px;
    max-height: 900px;
    overflow: clip;
    padding: 32px 0 !important;
    border-bottom: 1px solid var(--premium-line);
    background-color: var(--premium-white) !important;
    background-image: var(--premium-grid) !important;
    background-size: 48px 48px !important;
}

body.home-premium .hero::after {
    display: none !important;
}

body.home-premium .hero > .container {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr) !important;
    align-items: center;
    gap: 48px;
    height: 100%;
    min-height: 0;
}

body.home-premium .hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

body.home-premium .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin: 0 0 24px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 2px solid var(--premium-blue);
    border-radius: 0;
    color: var(--premium-blue);
    background: transparent;
    box-shadow: none;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.home-premium .hero-badge .badge-icon {
    color: var(--premium-amber);
}

body.home-premium .hero-title {
    max-width: 12ch;
    margin: 0;
    color: var(--premium-navy) !important;
    font-size: clamp(3.35rem, 4.8vw, 4.6rem) !important;
    font-weight: 900;
    line-height: 0.98 !important;
    letter-spacing: 0;
    text-wrap: balance;
}

body.home-premium .hero-title strong,
body.home-premium .hero-title em,
body.home-premium .hero-title .accent,
body.home-premium .hero-title__accent {
    color: var(--premium-blue);
    font-style: normal;
}

body.home-premium .hero-subtitle {
    max-width: 610px;
    margin: 24px 0 0;
    color: var(--premium-muted);
    font-size: clamp(0.98rem, 1.1vw, 1.06rem);
    line-height: 1.5;
}

body.home-premium .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

body.home-premium .hero-actions .btn-primary,
body.home-premium .hero-actions .btn-secondary {
    min-height: 56px;
    border-radius: 4px !important;
}

body.home-premium .hero-actions .btn-primary {
    border-color: var(--premium-amber) !important;
    color: var(--premium-navy) !important;
    background: var(--premium-amber) !important;
}

body.home-premium .hero-actions .btn-secondary {
    border-color: var(--premium-navy) !important;
    color: var(--premium-navy) !important;
    background: var(--premium-white) !important;
}

body.home-premium .hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: 650px;
    margin-top: 32px;
    border-top: 1px solid var(--premium-line);
    border-bottom: 1px solid var(--premium-line);
}

body.home-premium .hero-trust-item {
    min-width: 0;
    padding: 14px 16px !important;
    border: 0 !important;
    border-right: 1px solid var(--premium-line) !important;
    border-radius: 0 !important;
    color: var(--premium-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.95rem;
    line-height: 1.3;
}

body.home-premium .hero-trust-item:last-child {
    border-right: 0 !important;
}

body.home-premium .hero-trust-item > span:first-child {
    color: var(--premium-green);
    background: transparent;
}

body.home-premium .hero-note {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--premium-muted);
    font-size: 1rem;
    line-height: 1.5;
}

body.home-premium .hero-image.hero-stage {
    position: relative;
    display: block;
    align-self: stretch;
    min-height: 600px;
    margin: -24px 0;
    padding: 0 !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-premium .hero-photo-aperture {
    position: absolute;
    z-index: 1;
    inset: 6% 4% 5% 9%;
    overflow: hidden;
    border: 1px solid rgba(36, 87, 197, 0.24);
    border-radius: 2px;
    background-color: #f7f9fc;
    background-image: var(--premium-grid);
    background-size: 48px 48px;
    clip-path: polygon(16% 0, 100% 0, 100% 84%, 84% 100%, 0 100%, 0 16%);
}

body.home-premium .hero-photo-aperture::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 24px solid rgba(36, 87, 197, 0.06);
    pointer-events: none;
}

body.home-premium .hero-photo-aperture > img,
body.home-premium .hero-photo-aperture > picture,
body.home-premium .hero-photo-aperture > picture > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

body.home-premium .hero-piece--knight,
body.home-premium .hero-piece--rook,
body.home-premium .hero-piece--pawn,
body.home-premium .hero-piece--king {
    position: absolute;
    z-index: 2;
    display: block;
    width: auto;
    max-width: none;
    height: auto;
    transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) rotate(var(--parallax-r, 0));
    transform-origin: 50% 80%;
    filter: drop-shadow(0 24px 22px rgba(16, 36, 63, 0.24));
    will-change: transform;
    pointer-events: none;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.home-premium .hero-piece--knight {
    z-index: 5;
    right: -7%;
    bottom: -4%;
    width: min(54%, 470px);
}

body.home-premium .hero-piece--rook {
    z-index: 4;
    left: 2%;
    bottom: 0;
    width: min(29%, 230px);
}

body.home-premium .hero-piece--pawn {
    z-index: 4;
    left: 39%;
    bottom: -1%;
    width: min(17%, 130px);
}

body.home-premium .hero-piece--king {
    left: -5%;
    top: 0;
    width: min(25%, 190px);
}

body.home-premium .hero-coordinate {
    position: absolute;
    z-index: 7;
    display: inline-flex;
    min-width: 54px;
    min-height: 34px;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(245, 158, 11, 0.72);
    border-radius: 999px;
    color: var(--premium-white);
    background: var(--premium-navy);
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(16, 36, 63, 0.2);
    pointer-events: none;
}

body.home-premium .hero-coordinate::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--premium-amber);
}

body.home-premium .hero-coordinate[data-axis="x"] {
    top: 8%;
}

body.home-premium .hero-coordinate[data-axis="y"] {
    right: 2%;
}

body.home-premium .hero-child-slot {
    position: absolute;
    z-index: 3;
    top: 1%;
    right: -2%;
    bottom: 17%;
    left: -2%;
    display: grid;
    align-items: end;
    justify-items: center;
    pointer-events: none;
}

body.home-premium .hero-child-photo {
    position: relative;
    z-index: 1;
    display: block !important;
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 22px 24px rgba(16, 36, 63, 0.16));
}

body.home-premium .hero-child-slot > span {
    max-width: 210px;
    padding: 10px 12px;
    border-bottom: 2px solid var(--premium-amber);
    color: rgba(16, 36, 63, 0.62);
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
}

body.home-premium .hero-coordinate--a {
    top: 10%;
    left: 4%;
    transform: rotate(-8deg);
}

body.home-premium .hero-coordinate--b {
    top: 20%;
    right: 2%;
    transform: rotate(8deg);
}

body.home-premium .hero-stage::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 8%;
    left: 11%;
    display: block;
    width: 48px;
    height: 48px;
    background: var(--premium-blue);
    box-shadow: 432px 144px 0 var(--premium-green), 240px 384px 0 var(--premium-amber);
}

body.home-premium .hero-stage__rail {
    position: absolute;
    z-index: 6;
    right: 4%;
    bottom: 6%;
    left: 9%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: var(--premium-white);
    background: rgba(16, 36, 63, 0.92);
    backdrop-filter: blur(8px);
}

body.home-premium .hero-stage__rail > div {
    min-width: 0;
    padding: 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

body.home-premium .hero-stage__rail > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.24);
}

body.home-premium .hero-stage__rail strong,
body.home-premium .hero-stage__rail p,
body.home-premium .hero-stage__rail span {
    display: block;
}

body.home-premium .hero-stage__rail strong {
    margin-top: 5px;
    color: var(--premium-white);
    font-size: 1.05rem;
    line-height: 1.25;
}

body.home-premium .hero-stage__rail p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    line-height: 1.35;
}

body.home-premium .hero-card-label {
    font-size: 0.86rem !important;
    line-height: 1.25;
}

body.home-premium .testimonials-mobile-nav {
    display: none;
}

/* Sticky outcome story */

body.home-premium .outcome-story {
    position: relative;
    min-height: 380vh;
    border-bottom: 1px solid var(--premium-line);
    background-color: var(--premium-white);
    background-image: var(--premium-grid);
    background-size: 48px 48px;
}

body.home-premium .outcome-story__sticky {
    position: sticky;
    top: 0;
    display: grid;
    place-items: center;
    min-height: 100svh;
    overflow: clip;
    padding: 96px 48px 72px;
}

body.home-premium .outcome-story__canvas {
    display: contents;
}

body.home-premium .outcome-story__center {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    width: min(620px, 48vw);
    aspect-ratio: 1;
    padding: 80px;
    border: 1px solid rgba(16, 36, 63, 0.22);
    border-radius: 50%;
    color: var(--premium-navy);
    text-align: center;
}

body.home-premium .outcome-story__center::before,
body.home-premium .outcome-story__center::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--premium-blue);
}

body.home-premium .outcome-story__center::before {
    top: -4px;
}

body.home-premium .outcome-story__center::after {
    bottom: -4px;
}

body.home-premium .outcome-story__center h2,
body.home-premium .outcome-story__center .section-title {
    max-width: 10ch;
    margin: 0;
    color: var(--premium-navy);
    font-size: clamp(3rem, 5vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: 0;
    text-wrap: balance;
}

body.home-premium .outcome-story__center strong,
body.home-premium .outcome-story__center em,
body.home-premium .outcome-story__center .accent,
body.home-premium .outcome-story__center h2 > span {
    color: var(--premium-blue);
    font-style: normal;
}

body.home-premium .outcome-story__eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--premium-green);
    font-size: 0.86rem;
    font-weight: 850;
    text-transform: uppercase;
}

body.home-premium .outcome-story__center p {
    max-width: 430px;
    margin: 22px auto 0;
    color: var(--premium-muted);
    font-size: 1.1rem;
    line-height: 1.55;
}

body.home-premium .outcome-story__item {
    position: absolute;
    z-index: 4;
    width: min(250px, 19vw);
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(16, 36, 63, 0.3);
    color: var(--premium-navy);
    opacity: 0.35;
    transition: opacity 240ms ease, border-color 240ms ease, color 240ms ease;
}

body.home-premium .outcome-story__item::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

body.home-premium .outcome-story__item:is(.is-active, [aria-current="true"]) {
    color: var(--premium-blue);
    border-color: var(--premium-blue);
    opacity: 1;
}

body.home-premium .outcome-story__item span,
body.home-premium .outcome-story__item small {
    display: block;
    margin-bottom: 6px;
    color: var(--premium-amber);
    font-size: 0.78rem;
    font-weight: 850;
}

body.home-premium .outcome-story__item h3,
body.home-premium .outcome-story__item strong {
    display: block;
    margin: 0;
    color: inherit;
    font-size: clamp(1.08rem, 1.6vw, 1.45rem);
    line-height: 1.12;
}

body.home-premium .outcome-story__item--1 { top: 5%; left: 50%; transform: translateX(-50%); }
body.home-premium .outcome-story__item--2 { top: 35%; right: 5%; transform: translateX(calc(var(--story-progress, 0) * -72px)); }
body.home-premium .outcome-story__item--3 { right: 13%; bottom: 14%; transform: translate(calc(var(--story-progress, 0) * -52px), calc(var(--story-progress, 0) * -36px)); }
body.home-premium .outcome-story__item--4 { bottom: 14%; left: 18%; text-align: right; transform: translate(calc(var(--story-progress, 0) * 52px), calc(var(--story-progress, 0) * -36px)); }
body.home-premium .outcome-story__item--5 { top: 35%; left: 8%; text-align: right; transform: translateX(calc(var(--story-progress, 0) * 52px)); }

body.home-premium .outcome-story__item--1 {
    transform: translate(-50%, calc(var(--story-progress, 0) * 12px));
}

body.home-premium .outcome-story__item {
    opacity: calc(0.34 + var(--story-progress, 0) * 0.66);
}

body.home-premium .outcome-story__item--4::before,
body.home-premium .outcome-story__item--5::before {
    right: auto;
    left: 0;
}

body.home-premium .outcome-story__piece--king,
body.home-premium .outcome-story__piece--pawn {
    position: absolute;
    z-index: 2;
    width: auto;
    max-width: none;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 22px 20px rgba(16, 36, 63, 0.2));
    pointer-events: none;
}

body.home-premium .outcome-story__piece--king {
    left: -12%;
    bottom: -5%;
    height: min(72vh, 700px);
}

body.home-premium .outcome-story__piece--pawn {
    right: 4%;
    bottom: 0;
    height: min(31vh, 300px);
}

body.home-premium .outcome-story__cta {
    position: absolute;
    z-index: 6;
    bottom: 32px;
    left: 50%;
    min-height: 56px;
    border-radius: 4px;
    transform: translateX(-50%);
    opacity: var(--story-progress, 0);
}

/* Method: full-width navy, open horizontal rails. */

body.home-premium .steps {
    position: relative;
    padding: 96px 0 !important;
    color: var(--premium-white);
    background-color: var(--premium-navy) !important;
    background-image: var(--premium-grid-dark) !important;
    background-size: 48px 48px !important;
}

body.home-premium .steps::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(0px, calc((100vw - var(--premium-container)) / 2));
    width: 6px;
    background: var(--premium-blue);
}

body.home-premium .steps .section-title {
    max-width: 900px;
    margin: 0 0 48px;
    color: var(--premium-white);
    font-size: clamp(2.5rem, 4vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: 0;
    text-wrap: balance;
}

body.home-premium .steps .section-title > span {
    color: var(--premium-amber);
}

body.home-premium .steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 950px;
    margin-left: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

body.home-premium .step-card {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(220px, 0.82fr) minmax(260px, 1.18fr);
    align-items: center;
    gap: 32px;
    min-height: 144px;
    padding: 24px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 0 !important;
    color: var(--premium-white);
    background: transparent !important;
    box-shadow: none !important;
}

body.home-premium .step-card::after {
    display: none;
}

body.home-premium .step-number {
    color: var(--premium-blue);
    background: transparent;
    font-size: clamp(3rem, 5vw, 5.3rem);
    font-weight: 900;
    line-height: 1;
}

body.home-premium .step-number::before {
    content: "0";
}

body.home-premium .step-card h3 {
    margin: 0;
    color: var(--premium-white);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    line-height: 1.13;
}

body.home-premium .step-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1rem;
    line-height: 1.55;
}

body.home-premium .steps .section-actions {
    max-width: 950px;
    margin: 40px 0 0 auto;
    text-align: left;
}

body.home-premium .steps .btn-primary {
    border-radius: 4px !important;
    color: var(--premium-navy) !important;
    background: var(--premium-amber) !important;
}

/* White trust rhythm */

body.home-premium .teacher-trust {
    padding: 96px 0 !important;
    border-bottom: 1px solid var(--premium-line);
    background-color: var(--premium-white) !important;
    background-image: var(--premium-grid) !important;
    background-size: 48px 48px !important;
}

body.home-premium .teacher-trust-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    align-items: stretch;
    gap: 48px;
}

body.home-premium .teacher-trust-copy {
    padding-block: 24px;
}

body.home-premium .teacher-media-column {
    display: grid;
    grid-template-rows: minmax(520px, 1fr) auto;
    gap: 16px;
    align-self: start;
    min-width: 0;
}

body.home-premium .teacher-trust-copy .section-title {
    max-width: 12ch;
    color: var(--premium-navy);
    font-size: clamp(2.55rem, 4vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: 0;
}

body.home-premium .teacher-trust-copy .section-lead {
    max-width: 660px;
    color: var(--premium-muted);
}

body.home-premium .teacher-points {
    margin-top: 36px;
    border-top: 1px solid rgba(16, 36, 63, 0.3);
}

body.home-premium .teacher-point {
    display: grid;
    grid-template-columns: 64px minmax(180px, 0.78fr) minmax(220px, 1.22fr);
    gap: 24px;
    align-items: baseline;
    padding: 24px 0;
    border-bottom: 1px solid rgba(16, 36, 63, 0.3);
}

body.home-premium .teacher-point > span {
    color: var(--premium-blue);
    font-size: 1.35rem;
    font-weight: 900;
}

body.home-premium .teacher-point > strong {
    color: var(--premium-navy);
    line-height: 1.2;
}

body.home-premium .teacher-point > p {
    margin: 0;
    color: var(--premium-muted);
    line-height: 1.5;
}

body.home-premium .teacher-photo-panel {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 0 !important;
    border-radius: 2px !important;
    background-color: var(--premium-navy) !important;
    background-image: var(--premium-grid-dark) !important;
    background-size: 48px 48px !important;
    box-shadow: none !important;
    clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%, 0 13%);
}

body.home-premium .teacher-photo-piece {
    position: absolute;
    z-index: 4;
    bottom: -7%;
    left: 4%;
    width: 43%;
    height: auto;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.28));
    transform: translate3d(var(--teacher-rook-x, 0), var(--teacher-rook-y, 0), 0) rotate(var(--teacher-rook-rotate, -5deg));
    transform-origin: 50% 82%;
    transition: transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1);
    will-change: transform;
    pointer-events: none;
}

body.home-premium .teacher-photo-cutout {
    position: absolute;
    z-index: 2;
    right: -7%;
    bottom: -1px;
    display: block;
    width: 96%;
    height: 96%;
    object-fit: contain;
    object-position: 50% 100%;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.24));
}

body.home-premium .teacher-photo-cutout,
body.home-premium .teacher-photo-piece {
    display: block;
}

body.home-premium .teacher-lesson-slot {
    position: relative;
    display: block;
    margin: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 0;
    border-radius: 2px;
    background: #17191b;
}

body.home-premium .teacher-lesson-slot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.home-premium .teacher-lesson-slot figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(16, 36, 63, 0.9);
    font-size: 0.78rem;
    font-weight: 850;
}

/* Testimonials are rails, not floating cards. */

body.home-premium .testimonials {
    padding: 96px 0 !important;
    border-bottom: 1px solid var(--premium-line);
    background: var(--premium-white) !important;
}

body.home-premium .testimonials .section-title {
    color: var(--premium-navy);
    font-size: clamp(2.5rem, 4vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: 0;
}

body.home-premium .testimonials .section-lead {
    max-width: 760px;
    color: var(--premium-muted);
}

body.home-premium .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-width: 960px;
    margin: 48px auto 0;
    border-top: 1px solid rgba(16, 36, 63, 0.3);
    border-bottom: 1px solid rgba(16, 36, 63, 0.3);
}

body.home-premium .testimonial-card {
    display: grid;
    align-content: start;
    gap: 24px;
    min-width: 0;
    padding: 32px !important;
    border: 0 !important;
    border-right: 1px solid rgba(16, 36, 63, 0.3) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-premium .testimonial-card:last-child {
    border-right: 0 !important;
}

body.home-premium .testimonial-avatar,
body.home-premium .testimonial-photo-slot {
    width: 64px;
    height: 64px;
    min-height: 64px;
    overflow: hidden;
    border: 1px solid var(--premium-blue) !important;
    border-radius: 50% !important;
    display: grid;
    place-items: center;
    color: var(--premium-blue);
    background: #f3f6fb !important;
    font-size: 0.84rem;
    font-weight: 900;
}

body.home-premium .testimonial-avatar img,
body.home-premium .testimonial-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home-premium .testimonial-text {
    margin: 0;
    color: var(--premium-navy);
    font-size: 1.05rem;
    line-height: 1.62;
}

body.home-premium .testimonial-author span {
    font-size: 0.9rem;
    line-height: 1.45;
}

body.home-premium .testimonial-author {
    color: var(--premium-navy);
    font-weight: 800;
}

body.home-premium .testimonial-author span {
    display: block;
    margin-top: 4px;
    color: var(--premium-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Opt-in reveal state: content remains visible until script marks it pending. */

body.home-premium [data-premium-reveal] {
    transition: opacity 560ms ease, translate 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-premium [data-premium-reveal].is-pending {
    opacity: 0;
    translate: 0 24px;
}

body.home-premium [data-premium-reveal]:is(.is-visible, .is-revealed) {
    opacity: 1;
    translate: 0 0;
}

/* 1024-class layouts */

@media (max-width: 1199px) {
    body.home-premium .container {
        width: min(calc(100% - 64px), 1080px);
    }

    body.home-premium .hero {
        min-height: auto;
    }

    body.home-premium .hero > .container {
        grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr) !important;
        gap: 32px;
        min-height: 720px;
    }

    body.home-premium .hero-title {
        font-size: clamp(3.1rem, 5.8vw, 4.2rem) !important;
    }

    body.home-premium .hero-image.hero-stage {
        min-height: 550px;
    }

    body.home-premium .hero-trust {
        grid-template-columns: 1fr;
        border-bottom: 0;
    }

    body.home-premium .hero-trust-item {
        border-right: 0 !important;
        border-bottom: 1px solid var(--premium-line) !important;
    }

    body.home-premium .outcome-story__item {
        width: 210px;
    }

    body.home-premium .outcome-story__piece--king {
        left: -10%;
        opacity: 0.74;
    }

    body.home-premium .step-card {
        grid-template-columns: 96px minmax(200px, 0.9fr) minmax(230px, 1.1fr);
        gap: 24px;
    }

    body.home-premium .teacher-trust-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
        gap: 32px;
    }

    body.home-premium .teacher-point {
        grid-template-columns: 54px 1fr;
    }

    body.home-premium .teacher-point > p {
        grid-column: 2;
    }
}

/* Mobile: 900-1100px hero and a linear outcome narrative. */

@media (max-width: 767px) {
    body.home-premium .container {
        width: calc(100% - 32px);
    }

    body.home-premium .hero {
        height: auto;
        min-height: clamp(900px, 124svh, 1100px);
        max-height: none;
        padding: 28px 0 40px !important;
        background-position: -16px 0 !important;
    }

    body.home-premium .hero::after {
        top: auto;
        width: 100%;
        height: 44%;
        clip-path: polygon(0 13%, 100% 0, 100% 100%, 0 100%);
    }

    body.home-premium .hero > .container {
        display: grid;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto minmax(360px, 1fr);
        align-content: start;
        gap: 24px;
        min-height: 0;
    }

    body.home-premium .hero-content {
        max-width: none;
    }

    body.home-premium .hero-badge {
        margin-bottom: 18px;
        font-size: 0.68rem;
        line-height: 1.35;
    }

    body.home-premium .hero-title {
        max-width: 11ch;
        font-size: clamp(2.55rem, 12.2vw, 3.6rem) !important;
        line-height: 0.98 !important;
    }

    body.home-premium .hero-subtitle {
        display: block;
        margin-top: 18px;
        overflow: visible;
        font-size: 0.96rem;
        line-height: 1.48;
        -webkit-line-clamp: unset;
    }

    body.home-premium .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    body.home-premium .hero-actions .btn-primary,
    body.home-premium .hero-actions .btn-secondary {
        width: 100%;
        min-height: 52px;
    }

    body.home-premium .hero-trust,
    body.home-premium .hero-note {
        display: none;
    }

    body.home-premium .hero-image.hero-stage {
        min-height: 390px;
        margin: 0 -16px -40px;
    }

    body.home-premium .hero-photo-aperture {
        inset: 7% 5% 4% 5%;
        clip-path: polygon(12% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 12%);
    }

    body.home-premium .hero-photo-aperture::after {
        border-width: 12px;
    }

    body.home-premium .hero-piece--knight {
        right: -8%;
        width: min(58%, 300px);
    }

    body.home-premium .hero-piece--rook {
        left: 0;
        width: min(31%, 150px);
    }

    body.home-premium .hero-piece--pawn {
        left: 34%;
        width: min(18%, 88px);
    }

    body.home-premium .hero-piece--king {
        left: 0;
        width: min(23%, 110px);
    }

    body.home-premium .outcome-story {
        min-height: auto;
        padding: 72px 0;
        background-position: -16px 0;
    }

    body.home-premium .outcome-story__sticky {
        position: relative;
        top: auto;
        display: grid;
        grid-template-columns: 1fr;
        place-items: stretch;
        min-height: 0;
        padding: 0 16px;
        overflow: visible;
    }

    body.home-premium .outcome-story__center {
        order: -2;
        width: 100%;
        aspect-ratio: auto;
        padding: 0 0 40px;
        border: 0;
        border-bottom: 2px solid var(--premium-blue);
        border-radius: 0;
        place-items: start;
        text-align: left;
    }

    body.home-premium .outcome-story__center::before,
    body.home-premium .outcome-story__center::after {
        display: none;
    }

    body.home-premium .outcome-story__center h2,
    body.home-premium .outcome-story__center .section-title {
        max-width: 12ch;
        font-size: clamp(2.1rem, 8.8vw, 2.7rem) !important;
        overflow-wrap: anywhere;
    }

    body.home-premium .outcome-story__item,
    body.home-premium .outcome-story__item--1,
    body.home-premium .outcome-story__item--2,
    body.home-premium .outcome-story__item--3,
    body.home-premium .outcome-story__item--4,
    body.home-premium .outcome-story__item--5 {
        position: relative;
        inset: auto;
        width: 100%;
        padding: 20px 24px 20px 54px;
        border-bottom: 1px solid rgba(16, 36, 63, 0.3);
        color: var(--premium-navy);
        opacity: 1;
        transform: none;
        text-align: left;
    }

    body.home-premium .outcome-story__item::before,
    body.home-premium .outcome-story__item--4::before,
    body.home-premium .outcome-story__item--5::before {
        top: 27px;
        right: auto;
        bottom: auto;
        left: 24px;
        background: var(--premium-green);
    }

    body.home-premium .outcome-story__piece--king {
        position: relative;
        order: -1;
        left: auto;
        bottom: auto;
        justify-self: end;
        height: 190px;
        margin: -56px 8px -20px 0;
        opacity: 0.95;
    }

    body.home-premium .outcome-story__piece--pawn {
        display: none;
    }

    body.home-premium .outcome-story__cta {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 54px;
        margin-top: 32px;
        transform: none;
    }

    body.home-premium .steps,
    body.home-premium .teacher-trust,
    body.home-premium .testimonials {
        padding: 72px 0 !important;
    }

    body.home-premium .steps::before {
        left: 0;
        width: 4px;
    }

    body.home-premium .steps .section-title,
    body.home-premium .teacher-trust-copy .section-title,
    body.home-premium .testimonials .section-title {
        margin-bottom: 32px;
        font-size: clamp(2.25rem, 10vw, 3.2rem) !important;
    }

    body.home-premium .step-card {
        grid-template-columns: 64px 1fr;
        gap: 8px 16px;
        min-height: 0;
        padding: 24px 0 !important;
    }

    body.home-premium .step-number {
        grid-row: span 2;
        align-self: start;
        font-size: 2.8rem;
    }

    body.home-premium .step-card h3 {
        font-size: 1.2rem;
    }

    body.home-premium .step-card p {
        font-size: 0.9rem;
    }

    body.home-premium .teacher-trust-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    body.home-premium .teacher-trust-copy {
        padding: 0;
    }

    body.home-premium .teacher-point {
        grid-template-columns: 46px 1fr;
        gap: 8px 14px;
    }

    body.home-premium .teacher-point > p {
        grid-column: 2;
        font-size: 0.9rem;
    }

    body.home-premium .teacher-photo-panel {
        min-height: 500px;
    }

    body.home-premium .teacher-media-column {
        grid-template-rows: auto auto;
    }

    body.home-premium .teacher-lesson-slot {
        min-height: 0;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    body.home-premium .teacher-photo-cutout {
        right: -7%;
        width: 104%;
        height: 94%;
    }

    body.home-premium .teacher-photo-piece {
        left: -8%;
        bottom: -4%;
        width: 42%;
        transform: rotate(-5deg);
    }

    body.home-premium .testimonials-grid {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    body.home-premium .testimonial-card {
        grid-template-columns: 64px 1fr;
        gap: 16px;
        padding: 24px 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(16, 36, 63, 0.3) !important;
    }

    body.home-premium .testimonial-card:last-child {
        border-bottom: 0 !important;
    }

    body.home-premium .testimonial-text,
    body.home-premium .testimonial-author {
        grid-column: 2;
    }
}

@media (max-width: 420px) {
    body.home-premium .hero-title {
        font-size: clamp(2.35rem, 11.7vw, 3.05rem) !important;
    }

    body.home-premium .hero-image.hero-stage {
        min-height: 360px;
    }

    body.home-premium .teacher-photo-panel {
        min-height: 450px;
    }
}

/* Cohesive treatment for the preserved downstream funnel. */
body.home-premium .story-section,
body.home-premium .result-section,
body.home-premium .parent-proof,
body.home-premium .pricing-preview,
body.home-premium .advantages,
body.home-premium .faq,
body.home-premium .final-cta,
body.home-premium .footer {
    background-color: var(--premium-white) !important;
    background-image: var(--premium-grid) !important;
    background-size: 48px 48px !important;
}

body.home-premium .story-section,
body.home-premium .result-section,
body.home-premium .parent-proof,
body.home-premium .pricing-preview,
body.home-premium .advantages,
body.home-premium .faq,
body.home-premium .final-cta {
    padding-block: clamp(72px, 8vw, 112px) !important;
    border-bottom: 1px solid var(--premium-line);
}

body.home-premium .section-title,
body.home-premium .story-text h2,
body.home-premium .trial-band h2,
body.home-premium .final-cta h2 {
    color: var(--premium-navy);
    letter-spacing: 0;
}

body.home-premium .story-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
    gap: 64px;
    padding: clamp(40px, 5vw, 72px) !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--premium-white);
    background-color: var(--premium-navy) !important;
    background-image: var(--premium-grid-dark) !important;
    background-size: 48px 48px !important;
    box-shadow: none !important;
    clip-path: polygon(0 0, 96% 0, 100% 12%, 100% 100%, 4% 100%, 0 88%);
}

body.home-premium .story-kicker {
    color: var(--premium-amber);
}

body.home-premium .story-text h2,
body.home-premium .story-text p,
body.home-premium .signal-item h3 {
    color: var(--premium-white) !important;
}

body.home-premium .story-text h2 {
    font-size: clamp(2.5rem, 4.3vw, 4.6rem);
    line-height: 1.02;
}

body.home-premium .story-text p,
body.home-premium .signal-item p {
    color: rgba(255, 255, 255, 0.66) !important;
}

body.home-premium .signal-list {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

body.home-premium .signal-item {
    padding: 22px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-premium .signal-mark {
    color: var(--premium-amber) !important;
    background: transparent !important;
}

body.home-premium .result-section .section-title,
body.home-premium .pricing-preview .section-title,
body.home-premium .advantages .section-title,
body.home-premium .faq .section-title {
    font-size: clamp(2.5rem, 4.2vw, 4.35rem);
    line-height: 1.02;
}

body.home-premium .result-grid,
body.home-premium .advantages-grid {
    gap: 0;
    margin-top: 48px;
    border-top: 1px solid rgba(16, 36, 63, 0.28);
    border-bottom: 1px solid rgba(16, 36, 63, 0.28);
}

body.home-premium .result-card,
body.home-premium .advantage-card,
body.home-premium .age-card {
    min-height: 250px;
    padding: 32px !important;
    border: 0 !important;
    border-right: 1px solid rgba(16, 36, 63, 0.28) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.78) !important;
    box-shadow: none !important;
}

body.home-premium .result-card:last-child,
body.home-premium .advantage-card:last-child,
body.home-premium .age-card:last-child {
    border-right: 0 !important;
}

body.home-premium .result-card h3,
body.home-premium .advantage-card h3,
body.home-premium .age-card h3 {
    color: var(--premium-navy) !important;
}

body.home-premium .parent-proof-panel {
    border: 0 !important;
    border-left: 8px solid var(--premium-green) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: none !important;
}

body.home-premium .proof-step {
    border: 0 !important;
    border-bottom: 1px solid rgba(16, 36, 63, 0.24) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-premium .pricing-preview-grid {
    gap: 16px;
}

body.home-premium .pricing-preview-card {
    border: 1px solid rgba(16, 36, 63, 0.22) !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: none !important;
    transform: none !important;
}

body.home-premium .pricing-preview-card:nth-child(2) {
    border-top: 5px solid var(--premium-blue) !important;
}

body.home-premium .faq-item {
    border: 0 !important;
    border-bottom: 1px solid rgba(16, 36, 63, 0.28) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.home-premium .trial-band {
    padding-block: 56px !important;
    color: var(--premium-white);
    background-color: var(--premium-blue) !important;
    background-image: var(--premium-grid-dark) !important;
    background-size: 48px 48px !important;
}

body.home-premium .trial-band h2,
body.home-premium .trial-band p {
    color: var(--premium-white) !important;
    -webkit-text-fill-color: currentColor !important;
}

body.home-premium .final-cta {
    color: var(--premium-white);
    background-color: var(--premium-navy) !important;
    background-image: var(--premium-grid-dark) !important;
}

body.home-premium .final-cta h2,
body.home-premium .final-cta p,
body.home-premium .final-cta-line {
    color: var(--premium-white) !important;
}

body.home-premium .final-cta-panel {
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}

body.home-premium .header-actions .header-cta,
body.home-premium .btn-primary,
body.home-premium .btn-secondary {
    border-radius: 4px !important;
}

@media (max-width: 767px) {
    body.home-premium .hero-actions .btn-secondary {
        display: none;
    }

    body.home-premium .hero-stage__rail {
        right: 5%;
        bottom: 3%;
        left: 5%;
        grid-template-columns: 1fr;
    }

    body.home-premium .hero-stage__rail > div {
        padding: 12px 14px;
    }

    body.home-premium .hero-stage__rail > div + div {
        display: none;
    }

    body.home-premium .story-panel {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px !important;
        clip-path: none;
    }

    body.home-premium .result-grid,
    body.home-premium .advantages-grid {
        grid-template-columns: 1fr;
    }

    body.home-premium .result-card,
    body.home-premium .advantage-card,
    body.home-premium .age-card {
        min-height: 0;
        padding: 24px 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(16, 36, 63, 0.28) !important;
        background: transparent !important;
    }

    body.home-premium .teacher-photo-piece {
        width: 46%;
    }
}

/* Composition refinements: clearer hero, larger story motion, swipeable reviews. */

body.home-premium .hero > .container {
    grid-template-columns: minmax(0, 1.05fr) minmax(500px, 0.95fr) !important;
}

body.home-premium .hero-title {
    max-width: 100%;
    font-size: clamp(3.2rem, 4.25vw, 4.35rem) !important;
    text-wrap: wrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

body.home-premium .hero-trust-item {
    grid-template-columns: 28px 1fr;
    align-items: center;
}

body.home-premium .hero-trust-item > span:first-child {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    font-size: 1.05rem;
    line-height: 1;
}

body.home-premium .hero-photo-aperture {
    inset: 4% 2% 19% 7%;
}

body.home-premium .hero-stage::before {
    opacity: 0.7;
}

body.home-premium .hero-piece--knight {
    right: -1%;
    bottom: 15%;
    width: min(50%, 440px);
}

body.home-premium .hero-piece--rook {
    left: 1%;
    bottom: 23%;
    width: min(25%, 205px);
    transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) rotate(calc(-8deg + var(--parallax-r, 0deg)));
}

body.home-premium .hero-piece--pawn {
    top: 2%;
    left: 40%;
    bottom: auto;
    width: min(19%, 145px);
    transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) rotate(calc(9deg + var(--parallax-r, 0deg)));
}

body.home-premium .hero-stage__rail {
    right: 2%;
    bottom: 32px;
    left: 7%;
    color: var(--premium-navy);
    background: rgba(255, 255, 255, 0.96);
    border-top: 2px solid var(--premium-navy);
    border-bottom: 1px solid var(--premium-line);
    backdrop-filter: blur(12px);
}

body.home-premium .hero-stage__rail > div {
    padding: 14px 18px;
    border-top: 0;
}

body.home-premium .hero-stage__rail > div + div {
    border-left-color: var(--premium-line);
}

body.home-premium .hero-stage__rail strong {
    color: var(--premium-navy);
}

body.home-premium .hero-stage__rail p {
    color: var(--premium-muted);
}

body.home-premium .outcome-story__center {
    width: min(860px, 65vw);
    padding: 54px;
    transform: scale(calc(0.88 + var(--story-progress, 0) * 0.12));
    transition: transform 100ms linear;
}

body.home-premium .outcome-story__center h2,
body.home-premium .outcome-story__center .section-title {
    max-width: 100%;
    font-size: clamp(3.05rem, 4.4vw, 4.8rem);
    text-wrap: wrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

body.home-premium .outcome-story__item--1 {
    transform: translate(-50%, calc(var(--story-progress, 0) * 28px));
}

body.home-premium .outcome-story__item--2 {
    transform: translateX(calc(var(--story-progress, 0) * -150px));
}

body.home-premium .outcome-story__item--3 {
    transform: translate(calc(var(--story-progress, 0) * -112px), calc(var(--story-progress, 0) * -54px));
}

body.home-premium .outcome-story__item--4 {
    transform: translate(calc(var(--story-progress, 0) * 112px), calc(var(--story-progress, 0) * -54px));
}

body.home-premium .outcome-story__item--5 {
    transform: translateX(calc(var(--story-progress, 0) * 128px));
}

body.home-premium .outcome-story__piece--king {
    transform: translateX(calc(var(--story-progress, 0) * 42px));
}

body.home-premium .outcome-story__piece--pawn {
    right: 2%;
    height: min(36vh, 350px);
    transform: translateX(calc(var(--story-progress, 0) * -46px));
}

body.home-premium .outcome-story__cta {
    display: none !important;
}

body.home-premium .testimonials-grid {
    gap: 24px;
    border: 0;
}

body.home-premium .testimonial-card,
body.home-premium .testimonial-card:last-child {
    position: relative;
    container-type: inline-size;
    grid-template-rows: auto 1fr auto;
    gap: 22px;
    padding: 18px 24px 30px !important;
    overflow: visible;
    border: 0 !important;
    border-top: 4px solid var(--premium-blue) !important;
    border-bottom: 1px solid var(--premium-line) !important;
    background: transparent !important;
}

body.home-premium .testimonial-photo-slot,
body.home-premium .testimonial-avatar {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border: 0 !important;
    border-radius: 2px !important;
    color: rgba(16, 36, 63, 0.52);
    background-color: #f4f7fb !important;
    background-image: var(--premium-grid) !important;
    background-size: 48px 48px !important;
    font-size: 0.86rem;
    text-transform: uppercase;
}

body.home-premium .testimonial-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 44%;
}

body.home-premium .testimonial-card--alisa .testimonial-photo-slot {
    position: relative;
    background-image: url("../img/testimonial-alisa-9-v2.webp") !important;
    background-position: center !important;
    background-size: cover !important;
}

body.home-premium .testimonial-card--alisa .testimonial-photo-slot img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

body.home-premium .testimonial-piece {
    position: absolute;
    z-index: 3;
    top: calc(42px + 80cqw);
    right: 2px;
    width: 30%;
    height: auto;
    filter: drop-shadow(0 14px 14px rgba(16, 36, 63, 0.22));
    transform: translate(18%, -100%);
    pointer-events: none;
}

body.home-premium .testimonial-card--artem .testimonial-piece {
    top: calc(42px + 80cqw);
    width: 34%;
    transform: translate(20%, -100%);
}

body.home-premium .testimonial-card:nth-child(2) {
    border-top-color: var(--premium-green) !important;
}

body.home-premium .testimonial-card:nth-child(3) {
    border-top-color: var(--premium-amber) !important;
}

body.home-premium .testimonial-card--alisa {
    border-top-color: var(--premium-amber) !important;
}

body.home-premium .testimonial-text {
    font-size: clamp(0.96rem, 1.1vw, 1.06rem);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

@media (max-width: 760px) {
    body.home-premium .outcome-story__item::before,
    body.home-premium .outcome-story__item--4::before,
    body.home-premium .outcome-story__item--5::before {
        display: none !important;
    }

    body.home-premium .hero-title {
        max-width: none;
        font-size: clamp(2.35rem, 10.7vw, 3rem) !important;
        text-wrap: balance;
    }

    body.home-premium .hero > .container {
        grid-template-columns: 1fr !important;
    }

    body.home-premium .hero-photo-aperture {
        inset: 2% 4% 23% 4%;
    }

    body.home-premium .hero-piece--knight {
        right: -5%;
        bottom: 20%;
    }

    body.home-premium .hero-piece--rook,
    body.home-premium .hero-piece--pawn {
        bottom: 22%;
    }

    body.home-premium .hero-stage__rail {
        right: 4%;
        bottom: 0;
        left: 4%;
    }

    body.home-premium .hero-child-slot {
        top: 8%;
        right: 12%;
        bottom: 24%;
        left: 18%;
    }

    body.home-premium .hero-stage__rail strong {
        font-size: 1rem;
    }

    body.home-premium .hero-stage__rail p {
        font-size: 0.88rem;
    }

    body.home-premium .outcome-story__center {
        width: 100%;
        padding: 0 0 40px;
        transform: none;
    }

    body.home-premium .outcome-story__center h2,
    body.home-premium .outcome-story__center .section-title {
        max-width: none;
        font-size: clamp(2rem, 8.2vw, 2.45rem) !important;
        text-wrap: balance;
        overflow-wrap: normal;
    }

    body.home-premium .outcome-story__piece--king {
        transform: translateY(0) rotate(-2deg);
        animation: premium-piece-float 3.8s ease-in-out infinite;
    }

    body.home-premium .outcome-story__item,
    body.home-premium .outcome-story__item--1,
    body.home-premium .outcome-story__item--2,
    body.home-premium .outcome-story__item--3,
    body.home-premium .outcome-story__item--4,
    body.home-premium .outcome-story__item--5 {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.75,.25,1);
    }

    body.home-premium .outcome-story__item.is-in-view {
        opacity: 1;
        transform: translateY(0);
    }

    body.home-premium .outcome-story__item--2 { transition-delay: 70ms; }
    body.home-premium .outcome-story__item--3 { transition-delay: 140ms; }
    body.home-premium .outcome-story__item--4 { transition-delay: 210ms; }
    body.home-premium .outcome-story__item--5 { transition-delay: 280ms; }

    /* A scaled version of the desktop composition, not a pre-built list. */
    body.home-premium .outcome-story {
        min-height: 380vh;
        overflow: clip;
        padding: 0;
    }

    body.home-premium .outcome-story__sticky {
        position: sticky;
        top: 72px;
        left: auto;
        display: block;
        width: 100%;
        height: calc(100svh - 72px);
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow: clip;
        transform: none;
    }

    body.home-premium .outcome-story__canvas {
        position: absolute;
        top: 0;
        left: 50%;
        display: block;
        width: 760px;
        height: 1560px;
        transform: translateX(-50%) scale(0.49);
        transform-origin: top center;
    }

    body.home-premium .outcome-story__center {
        position: absolute;
        z-index: 3;
        top: 380px;
        left: 55px;
        display: grid;
        width: 650px;
        aspect-ratio: 1;
        padding: 70px;
        place-items: center;
        border: 1px solid rgba(16, 36, 63, 0.22);
        border-radius: 50%;
        text-align: center;
        transform: scale(calc(0.88 + var(--story-progress, 0) * 0.12));
    }

    body.home-premium .outcome-story__center::before,
    body.home-premium .outcome-story__center::after {
        display: block;
    }

    body.home-premium .outcome-story__center h2,
    body.home-premium .outcome-story__center .section-title {
        max-width: 100%;
        font-size: 66px !important;
        line-height: 0.98;
        text-align: center;
        text-wrap: wrap;
    }

    body.home-premium .outcome-story__eyebrow {
        font-size: 22px;
    }

    body.home-premium .outcome-story__center p {
        max-width: 520px;
        font-size: 31px;
        line-height: 1.5;
    }

    body.home-premium .outcome-story__item,
    body.home-premium .outcome-story__item--1,
    body.home-premium .outcome-story__item--2,
    body.home-premium .outcome-story__item--3,
    body.home-premium .outcome-story__item--4,
    body.home-premium .outcome-story__item--5 {
        position: absolute;
        z-index: 5;
        width: 270px;
        padding: 0 0 14px;
        color: var(--premium-navy);
        opacity: calc(0.28 + var(--story-progress, 0) * 0.72);
        transition: none;
        text-align: left;
    }

    body.home-premium .outcome-story__item strong {
        font-size: 35px;
    }

    body.home-premium .outcome-story__item span {
        font-size: 23px;
    }

    body.home-premium .outcome-story__item--1 {
        top: 90px;
        left: 50%;
        transform: translate(-50%, calc(var(--story-progress, 0) * 80px));
    }

    body.home-premium .outcome-story__item--2 {
        top: 285px;
        right: 18px;
        transform: translateX(calc(var(--story-progress, 0) * -52px));
    }

    body.home-premium .outcome-story__item--3 {
        right: 28px;
        bottom: 170px;
        transform: translate(calc(var(--story-progress, 0) * -110px), calc(var(--story-progress, 0) * -70px));
    }

    body.home-premium .outcome-story__item--4 {
        bottom: 170px;
        left: 28px;
        text-align: right;
        transform: translate(calc(var(--story-progress, 0) * 110px), calc(var(--story-progress, 0) * -70px));
    }

    body.home-premium .outcome-story__item--5 {
        top: 285px;
        left: 18px;
        text-align: right;
        transform: translateX(calc(var(--story-progress, 0) * 52px));
    }

    body.home-premium .outcome-story__piece--king {
        position: absolute;
        z-index: 2;
        left: -75px;
        bottom: -80px;
        display: block;
        height: 700px;
        margin: 0;
        transform: translateX(calc(var(--story-progress, 0) * 42px));
        animation: none;
    }

    body.home-premium .outcome-story__piece--pawn {
        position: absolute;
        z-index: 2;
        right: -4px;
        bottom: 40px;
        display: block;
        height: 290px;
        transform: translateX(calc(var(--story-progress, 0) * -46px));
    }

    body.home-premium .testimonials .container {
        width: 100%;
    }

    body.home-premium .testimonials .section-title,
    body.home-premium .testimonials .section-lead {
        margin-right: 24px;
        margin-left: 24px;
    }

    body.home-premium .testimonials-grid {
        display: flex;
        gap: 14px;
        margin-top: 32px;
        padding: 0 24px 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 24px;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    body.home-premium .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    body.home-premium .testimonial-card,
    body.home-premium .testimonial-card:last-child {
        flex: 0 0 min(82vw, 340px);
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        gap: 18px;
        padding: 0 20px 24px !important;
        border: 1px solid var(--premium-line) !important;
        scroll-snap-align: start;
    }

    body.home-premium .testimonial-text,
    body.home-premium .testimonial-author {
        grid-column: 1;
    }

    body.home-premium .testimonials-mobile-nav {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding: 0 24px;
    }

    body.home-premium .testimonials-arrow {
        display: grid;
        width: 48px;
        height: 48px;
        padding: 0;
        place-items: center;
        border: 1px solid var(--premium-navy);
        border-radius: 0;
        color: var(--premium-navy);
        background: var(--premium-white);
        font-size: 1.45rem;
        line-height: 1;
        cursor: pointer;
    }

    body.home-premium .testimonials-arrow:active {
        color: var(--premium-white);
        background: var(--premium-navy);
    }
}

@media (max-width: 370px) {
    body.home-premium .outcome-story__canvas {
        transform: translateX(-50%) scale(0.45);
    }
}

/* Native mobile composition: same scene, recomposed for a portrait viewport. */
@media (max-width: 760px) {
    body.home-premium .hero-image.hero-stage {
        height: 540px;
        min-height: 540px;
        margin: 0 -16px;
    }

    body.home-premium .hero-photo-aperture {
        inset: 2% 4% 34% 4%;
    }

    body.home-premium .hero-child-slot {
        top: 8%;
        right: -8%;
        bottom: 34%;
        left: -8%;
    }

    body.home-premium .hero-piece--knight {
        bottom: 33%;
    }

    body.home-premium .hero-piece--rook,
    body.home-premium .hero-piece--pawn {
        bottom: 35%;
    }

    body.home-premium .hero-piece--rook {
        bottom: 39%;
    }

    body.home-premium .hero-piece--pawn {
        top: 6%;
        left: 22%;
        bottom: auto;
        width: min(17%, 66px);
    }

    body.home-premium .hero-stage__rail {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        bottom: 20px;
    }

    body.home-premium .story-section .container {
        width: 100%;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body.home-premium .story-panel {
        width: 100%;
        padding: 40px 24px !important;
    }

    body.home-premium .hero-stage__rail > div {
        padding: 14px 12px;
    }

    body.home-premium .hero-stage__rail > div + div {
        display: block !important;
    }

    body.home-premium .outcome-story__canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }

    body.home-premium .outcome-story__center {
        top: 23%;
        left: 50%;
        width: min(88vw, 356px);
        padding: 34px 24px;
        transform: translateX(-50%) scale(calc(0.9 + var(--story-progress, 0) * 0.1));
    }

    body.home-premium .outcome-story__center h2,
    body.home-premium .outcome-story__center .section-title {
        font-size: clamp(1.85rem, 8vw, 2.15rem) !important;
        line-height: 1.02;
    }

    body.home-premium .outcome-story__eyebrow {
        margin-bottom: 10px;
        font-size: 0.72rem;
    }

    body.home-premium .outcome-story__center p {
        max-width: 290px;
        margin-top: 16px;
        font-size: 1rem;
        line-height: 1.42;
    }

    body.home-premium .outcome-story__item,
    body.home-premium .outcome-story__item--1,
    body.home-premium .outcome-story__item--2,
    body.home-premium .outcome-story__item--3,
    body.home-premium .outcome-story__item--4,
    body.home-premium .outcome-story__item--5 {
        width: min(40vw, 158px);
        padding-bottom: 8px;
        opacity: var(--item-progress, 0);
        transform: translate3d(var(--item-x, 0), var(--item-y, 0), 0);
        transition: none;
    }

    body.home-premium .outcome-story__item strong {
        font-size: 1.02rem;
        line-height: 1.15;
    }

    body.home-premium .outcome-story__item span {
        margin-bottom: 4px;
        font-size: 0.72rem;
    }

    body.home-premium .outcome-story__item--1 {
        top: 4%;
        right: 30%;
        left: 30%;
        width: auto;
        text-align: center;
        transform: translate3d(var(--item-x, 0px), var(--item-y, 0px), 0);
    }

    body.home-premium .outcome-story__item--2 {
        top: 15%;
        right: 3%;
    }

    body.home-premium .outcome-story__item--5 {
        top: 15%;
        left: 3%;
    }

    body.home-premium .outcome-story__item--3 {
        top: 69%;
        right: 3%;
    }

    body.home-premium .outcome-story__item--4 {
        top: 69%;
        left: 3%;
    }

    body.home-premium .outcome-story__piece--king {
        left: -22px;
        bottom: -20px;
        height: 230px;
        transform: translateX(calc(-110px + var(--story-progress, 0) * 110px));
    }

    body.home-premium .outcome-story__piece--pawn {
        right: 18px;
        bottom: 16px;
        height: 112px;
        transform: translateX(calc(100px - var(--story-progress, 0) * 100px));
    }

    body.home-premium .testimonials-carousel {
        position: relative;
    }

    body.home-premium .testimonials-grid {
        scroll-behavior: smooth;
    }

    body.home-premium .testimonials-mobile-nav {
        position: absolute;
        z-index: 5;
        top: 50%;
        right: 10px;
        left: 10px;
        display: flex;
        justify-content: space-between;
        padding: 0;
        transform: translateY(-50%);
        pointer-events: none;
    }

    body.home-premium .testimonials-arrow {
        width: 44px;
        height: 44px;
        border: 1px solid rgba(16, 36, 63, 0.18);
        border-radius: 50%;
        color: var(--premium-navy);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 8px 22px rgba(16, 36, 63, 0.16);
        font-size: 2rem;
        font-weight: 400;
        line-height: 1;
        pointer-events: auto;
    }
}

@keyframes premium-piece-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}



/* Outcome labels read as compact information blocks instead of underlined captions. */
body.home-premium .outcome-story__item,
body.home-premium .outcome-story__item--1,
body.home-premium .outcome-story__item--2,
body.home-premium .outcome-story__item--3,
body.home-premium .outcome-story__item--4,
body.home-premium .outcome-story__item--5 {
    width: min(280px, 21vw);
    padding: 16px 18px;
    border: 1px solid rgba(36, 87, 197, 0.28);
    border-left: 4px solid var(--premium-blue);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(16, 36, 63, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.home-premium .outcome-story__item::before,
body.home-premium .outcome-story__item--4::before,
body.home-premium .outcome-story__item--5::before {
    display: none !important;
}

@media (min-width: 761px) {
    body.home-premium .outcome-story {
        min-height: 190vh;
    }

    body.home-premium .outcome-story__sticky {
        min-height: 100svh;
        padding: 0;
    }

    body.home-premium .outcome-story__canvas {
        position: relative;
        display: block;
        width: min(1440px, 100vw, 160svh);
        aspect-ratio: 16 / 9;
        container-type: size;
    }

    body.home-premium .outcome-story__center {
        position: absolute;
        top: 50%;
        left: 50%;
        width: min(65cqw, 88cqh);
        padding: min(3.75cqw, 6.5cqh);
        transform: translate(-50%, -50%);
    }

    body.home-premium .outcome-story__center h2,
    body.home-premium .outcome-story__center .section-title {
        font-size: clamp(3rem, 4.4cqw, 4.8rem);
    }

    body.home-premium .outcome-story__item,
    body.home-premium .outcome-story__item--1,
    body.home-premium .outcome-story__item--2,
    body.home-premium .outcome-story__item--3,
    body.home-premium .outcome-story__item--4,
    body.home-premium .outcome-story__item--5 {
        display: flex;
        align-items: center;
        justify-content: center;
        width: max-content;
        min-width: clamp(210px, 18cqw, 260px);
        min-height: 68px;
        padding: 16px 24px;
        border: 0;
        border-left: 0;
        color: #ffffff !important;
        text-align: center;
        white-space: nowrap;
        box-shadow: 0 16px 36px rgba(16, 36, 63, 0.16);
    }

    body.home-premium .outcome-story__item--1 {
        background: #2457c5;
        min-width: clamp(270px, 24cqw, 340px);
        transform: translate(-50%, calc(var(--story-progress, 0) * 35cqh));
    }

    body.home-premium .outcome-story__item--2 {
        background: #168f63;
        transform: translate(calc(var(--story-progress, 0) * -23cqw), calc(var(--story-progress, 0) * 2cqh)) rotate(calc(var(--story-progress, 0) * 6deg));
    }

    body.home-premium .outcome-story__item--3 {
        color: #10243f !important;
        background: #f5b82e;
        transform: translate(calc(var(--story-progress, 0) * -18cqw), calc(var(--story-progress, 0) * -25cqh)) rotate(calc(var(--story-progress, 0) * -5deg));
    }

    body.home-premium .outcome-story__item--4 {
        background: #e96b5b;
        transform: translate(calc(var(--story-progress, 0) * 14cqw), calc(var(--story-progress, 0) * -25cqh)) rotate(calc(var(--story-progress, 0) * 7deg));
    }

    body.home-premium .outcome-story__item--5 {
        background: #10243f;
        transform: translate(calc(var(--story-progress, 0) * 20cqw), calc(var(--story-progress, 0) * 2cqh)) rotate(calc(var(--story-progress, 0) * -8deg));
    }

    body.home-premium .outcome-story__item strong {
        color: inherit !important;
        font-size: clamp(1rem, 1.33cqw, 1.2rem);
        line-height: 1.2;
    }

    body.home-premium .outcome-story__piece--king {
        left: 1cqw;
        bottom: -7%;
        height: min(62cqh, 560px);
        transform: translateX(calc(var(--story-progress, 0) * 28px));
    }

    body.home-premium .outcome-story__piece--pawn {
        right: 2cqw;
        bottom: 2%;
        height: min(36cqh, 350px);
    }
}

@media (max-width: 760px) {
    body.home-premium .outcome-story {
        min-height: 190vh;
    }

    body.home-premium .outcome-story__canvas {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        transform: none;
    }

    body.home-premium .outcome-story__center {
        position: absolute;
        top: 48%;
        left: 50%;
        width: min(86vw, 52svh);
        aspect-ratio: 1;
        padding: clamp(22px, 7vw, 34px);
        border: 1px solid rgba(16, 36, 63, 0.22);
        border-radius: 50%;
        place-items: center;
        text-align: center;
        transform: translate(-50%, -50%) scale(calc(0.88 + var(--story-progress, 0) * 0.12));
    }

    body.home-premium .outcome-story__center h2,
    body.home-premium .outcome-story__center .section-title {
        max-width: 100%;
        font-size: clamp(2rem, 8.2vw, 2.55rem) !important;
        line-height: 1.02;
        text-align: center;
        transform: translateY(30px);
    }

    body.home-premium .outcome-story__piece--king {
        position: absolute;
        left: -3vw;
        bottom: -4%;
        display: block;
        height: min(43svh, 84vw);
        margin: 0;
        transform: none;
        animation: none;
    }

    body.home-premium .outcome-story__piece--pawn {
        position: absolute;
        right: 4vw;
        bottom: 5%;
        display: block;
        height: min(19svh, 34vw);
        transform: none;
    }

    body.home-premium .outcome-story__item,
    body.home-premium .outcome-story__item--1,
    body.home-premium .outcome-story__item--2,
    body.home-premium .outcome-story__item--3,
    body.home-premium .outcome-story__item--4,
    body.home-premium .outcome-story__item--5 {
        box-sizing: border-box;
        top: 50%;
        right: auto;
        bottom: auto;
        left: 50%;
        width: max-content;
        min-width: 0;
        min-height: 44px;
        max-width: 84vw;
        padding: 9px 15px;
        border: 0;
        color: #ffffff !important;
        text-align: center;
        white-space: nowrap;
        box-shadow: 0 7px 16px rgba(16, 36, 63, 0.13);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        backface-visibility: hidden;
        contain: layout paint style;
        will-change: transform;
    }

    body.home-premium .outcome-story__item--1 {
        margin-left: 0;
        min-width: min(76vw, 280px);
        background: #2457c5;
        transform: translate(calc(-50% + var(--item-x, 0px)), calc(-50% + var(--item-y, 0px) - var(--story-progress, 0) * 116px));
    }
    body.home-premium .outcome-story__item--2 {
        background: #168f63;
        transform: translate(calc(-50% + var(--item-x, 0px)), calc(-50% + var(--item-y, 0px) - var(--story-progress, 0) * 58px)) rotate(calc(var(--story-progress, 0) * 4deg));
    }
    body.home-premium .outcome-story__item--3 {
        color: #10243f !important;
        background: #f5b82e;
        transform: translate(calc(-50% + var(--item-x, 0px)), calc(-50% + var(--item-y, 0px) + var(--story-progress, 0) * 116px)) rotate(calc(var(--story-progress, 0) * -4deg));
    }
    body.home-premium .outcome-story__item--4 {
        background: #e96b5b;
        transform: translate(calc(-50% + var(--item-x, 0px)), calc(-50% + var(--item-y, 0px) + var(--story-progress, 0) * 58px)) rotate(calc(var(--story-progress, 0) * 4deg));
    }
    body.home-premium .outcome-story__item--5 {
        background: #10243f;
        transform: translate(calc(-50% + var(--item-x, 0px)), calc(-50% + var(--item-y, 0px))) rotate(calc(var(--story-progress, 0) * -4deg));
    }

    body.home-premium .outcome-story__item strong {
        color: inherit !important;
        font-size: clamp(0.76rem, 3.45vw, 0.92rem);
        line-height: 1.15;
    }

    body.home-premium .outcome-story__item,
    body.home-premium .outcome-story__item--1,
    body.home-premium .outcome-story__item--2,
    body.home-premium .outcome-story__item--3,
    body.home-premium .outcome-story__item--4,
    body.home-premium .outcome-story__item--5 {
        transform: translate(-50%, -50%);
    }
}

body.home-premium .hero-promise {
    max-width: 650px;
    margin: -6px 0 24px;
    color: var(--premium-green);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.45;
}

body.home-premium .parent-guides {
    padding: clamp(64px, 8vw, 110px) 0;
    background: #f4f7fb;
}

body.home-premium .parent-guides__heading p {
    margin: 0 0 8px;
    color: var(--premium-green);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.home-premium .parent-guides__heading h2 {
    margin: 0 0 30px;
    color: var(--premium-navy);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

body.home-premium .parent-guides__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

body.home-premium .parent-guide-card {
    display: block;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--premium-line);
    border-radius: 24px;
    background: #fff;
    color: var(--premium-navy);
    text-decoration: none;
    box-shadow: 0 14px 40px rgba(16, 36, 63, 0.07);
}

body.home-premium .parent-guide-card > span {
    color: var(--premium-green);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.home-premium .parent-guide-card h3 {
    margin: 12px 0 10px;
    color: var(--premium-navy);
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    line-height: 1.15;
}

body.home-premium .parent-guide-card p {
    margin: 0 0 20px;
    color: var(--premium-muted);
    line-height: 1.6;
}

body.home-premium .parent-guide-card strong {
    color: var(--premium-blue);
}

body.home-premium .parent-guides__switcher {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 20px;
    padding: 6px;
    border: 1px solid var(--premium-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 30px rgba(16, 36, 63, 0.06);
}

body.home-premium .parent-guide-tab {
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--premium-muted);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

body.home-premium .parent-guide-tab span {
    margin-right: 7px;
    color: var(--premium-green);
    font-size: 0.76rem;
}

body.home-premium .parent-guide-tab.is-active {
    background: var(--premium-navy);
    color: #fff;
}

body.home-premium .parent-guides__stage {
    min-height: 330px;
}

body.home-premium .parent-guide-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    min-height: 330px;
    overflow: hidden;
    border: 1px solid rgba(36, 87, 197, 0.15);
    border-radius: 30px;
    background: linear-gradient(125deg, #fff 0%, #f8fbff 58%, #eaf1ff 100%);
    box-shadow: 0 24px 70px rgba(16, 36, 63, 0.12);
}

body.home-premium .parent-guide-panel[hidden] {
    display: none;
}

body.home-premium .parent-guide-panel__number {
    position: absolute;
    top: 20px;
    right: 32px;
    color: rgba(36, 87, 197, 0.09);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 950;
    line-height: 1;
}

body.home-premium .parent-guide-panel__content {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: clamp(32px, 6vw, 68px);
}

body.home-premium .parent-guide-panel__label {
    color: var(--premium-green);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.home-premium .parent-guide-panel h3 {
    max-width: 690px;
    margin: 13px 0 14px;
    color: var(--premium-navy);
    font-size: clamp(2rem, 4.2vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

body.home-premium .parent-guide-panel p {
    max-width: 670px;
    margin: 0 0 25px;
    color: var(--premium-muted);
    font-size: 1.06rem;
    line-height: 1.6;
}

body.home-premium .parent-guide-panel a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 19px;
    border-radius: 12px;
    background: var(--premium-blue);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

body.home-premium .parent-guide-panel__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 330px;
    background: var(--premium-blue);
    color: #fff;
}

body.home-premium .parent-guide-panel__visual::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
}

body.home-premium .parent-guide-panel__visual span {
    font-family: Georgia, serif;
    font-size: clamp(7rem, 15vw, 13rem);
    line-height: 1;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

body.home-premium .parent-guide-panel__visual small {
    position: absolute;
    right: 36px;
    bottom: 32px;
    font-weight: 900;
    text-transform: uppercase;
}

body.home-premium .parent-guide-panel__visual--green {
    background: var(--premium-green);
}

/* Editorial carousel follows the homepage grid, sharp geometry and brand colors. */
body.home-premium .parent-guides {
    background-color: #fff;
    background-image: var(--premium-grid);
    background-size: 48px 48px;
}

body.home-premium .parent-guides__top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

body.home-premium .parent-guides__heading h2 {
    max-width: 820px;
    margin-bottom: 0;
}

body.home-premium .parent-guides__controls {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

body.home-premium .parent-guides__counter {
    margin-right: 12px;
    color: var(--premium-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

body.home-premium .parent-guides__counter strong {
    color: var(--premium-blue);
    font-size: 1.05rem;
}

body.home-premium .parent-guide-arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--premium-navy);
    border-radius: 4px;
    background: #fff;
    color: var(--premium-navy);
    cursor: pointer;
}

body.home-premium .parent-guide-arrow:hover,
body.home-premium .parent-guide-arrow:focus-visible {
    background: var(--premium-amber);
}

body.home-premium .parent-guide-arrow svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.home-premium .parent-guides__viewport {
    overflow: hidden;
    border: 1px solid var(--premium-line);
    border-radius: 4px;
    background: #fff;
    box-shadow: 16px 16px 0 rgba(36, 87, 197, 0.08);
    outline: none;
    touch-action: pan-y;
}

body.home-premium .parent-guides__viewport:focus-visible {
    outline: 3px solid rgba(36, 87, 197, 0.3);
    outline-offset: 4px;
}

body.home-premium .parent-guides__track {
    display: flex;
    transform: translateX(calc(var(--guide-index, 0) * -100%));
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-premium .parent-guide-slide {
    position: relative;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) minmax(260px, 0.38fr);
    flex: 0 0 100%;
    min-height: 360px;
    overflow: hidden;
}

body.home-premium .parent-guide-slide__index {
    padding: 43px 24px;
    border-right: 1px solid var(--premium-line);
    color: var(--premium-blue);
    font-size: 1rem;
    font-weight: 950;
}

body.home-premium .parent-guide-slide__copy {
    align-self: center;
    padding: 52px clamp(32px, 5vw, 72px);
}

body.home-premium .parent-guide-slide__copy > span {
    color: var(--premium-green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.home-premium .parent-guide-slide h3 {
    max-width: 720px;
    margin: 12px 0 16px;
    color: var(--premium-navy);
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.01;
    letter-spacing: -0.045em;
}

body.home-premium .parent-guide-slide p {
    max-width: 670px;
    margin: 0 0 28px;
    color: var(--premium-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

body.home-premium .parent-guide-slide a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--premium-blue);
    border-radius: 4px;
    background: var(--premium-blue);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

body.home-premium .parent-guide-slide a:hover {
    border-color: var(--premium-navy);
    background: var(--premium-navy);
}

body.home-premium .parent-guide-slide a svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.home-premium .parent-guide-slide__chess {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--premium-blue);
    color: #fff;
}

body.home-premium .parent-guide-slide__chess::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--premium-grid-dark);
    background-size: 48px 48px;
}

body.home-premium .parent-guide-slide__chess span {
    position: relative;
    font-family: Georgia, serif;
    font-size: clamp(8rem, 14vw, 13rem);
    line-height: 1;
    text-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
}

body.home-premium .parent-guide-slide__chess small {
    position: absolute;
    right: 24px;
    bottom: 22px;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.home-premium .parent-guide-slide__chess--green {
    background: var(--premium-green);
}

body.home-premium .parent-guide-slide__chess--amber {
    background: var(--premium-amber);
    color: var(--premium-navy);
}

body.home-premium .parent-guide-slide__chess--navy {
    background: var(--premium-navy);
}

body.home-premium .parent-guides__dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
}

body.home-premium .parent-guides__dots button {
    width: 34px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #cbd5e1;
    cursor: pointer;
}

body.home-premium .parent-guides__dots button.is-active {
    background: var(--premium-blue);
}

/* Lightweight mobile layout: keep the content, remove scroll-driven staging. */
@media (max-width: 760px) {
    body.home-premium .parent-guides__top {
        display: block;
    }

    body.home-premium .parent-guides__controls {
        margin-top: 22px;
    }

    body.home-premium .parent-guides__viewport {
        box-shadow: 8px 8px 0 rgba(36, 87, 197, 0.08);
    }

    body.home-premium .parent-guide-slide {
        grid-template-columns: 52px 1fr;
        min-height: 0;
    }

    body.home-premium .parent-guide-slide__index {
        grid-row: 1 / span 2;
        padding: 28px 14px;
    }

    body.home-premium .parent-guide-slide__copy {
        min-width: 0;
        padding: 30px 22px 26px;
    }

    body.home-premium .parent-guide-slide h3 {
        overflow-wrap: anywhere;
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.06;
    }

    body.home-premium .parent-guide-slide__chess {
        grid-column: 2;
        min-height: 150px;
    }

    body.home-premium .parent-guide-slide__chess span {
        font-size: 7rem;
    }

    body.home-premium .parent-guides__switcher {
        display: grid;
        width: 100%;
        border-radius: 18px;
    }

    body.home-premium .parent-guide-tab {
        text-align: left;
    }

    body.home-premium .parent-guides__stage,
    body.home-premium .parent-guide-panel {
        min-height: 0;
    }

    body.home-premium .parent-guide-panel {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    body.home-premium .parent-guide-panel__content {
        padding: 30px 24px;
    }

    body.home-premium .parent-guide-panel__visual {
        min-height: 170px;
    }

    body.home-premium .parent-guide-panel__visual span {
        font-size: 8rem;
    }

    body.home-premium .parent-guides__grid {
        grid-template-columns: 1fr;
    }
    body.home-premium .hero-promise {
        margin: -4px 0 22px;
        padding-left: 14px;
        border-left: 3px solid var(--premium-green);
        color: var(--premium-navy);
        font-size: 0.96rem;
        font-weight: 800;
        line-height: 1.45;
    }

    body.home-premium .outcome-story {
        min-height: auto !important;
        padding: 64px 20px;
    }

    body.home-premium .outcome-story__sticky {
        position: static;
        min-height: auto;
        padding: 0;
    }

    body.home-premium .outcome-story__canvas {
        position: static;
        display: grid;
        gap: 12px;
        min-height: auto;
    }

    body.home-premium .outcome-story__center,
    body.home-premium .outcome-story__item,
    body.home-premium .outcome-story__item--1,
    body.home-premium .outcome-story__item--2,
    body.home-premium .outcome-story__item--3,
    body.home-premium .outcome-story__item--4,
    body.home-premium .outcome-story__item--5 {
        position: static;
        inset: auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0;
        opacity: 1;
        transform: none !important;
        translate: none !important;
        text-align: left;
    }

    body.home-premium .outcome-story__center {
        padding: 0 0 18px;
    }

    body.home-premium .outcome-story__center h2 {
        transform: none;
    }

    body.home-premium .outcome-story__piece {
        display: none;
    }

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

    body.home-premium .header,
    body.home-premium .hero-lesson-card,
    body.home-premium .hero-progress-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}


/* One authoritative header implementation shared by every main page. */
.header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 253, 248, 0.94) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(20, 33, 61, 0.1) !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 28px rgba(20, 33, 61, 0.06) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    font-family: Manrope, sans-serif !important;
}

.header > .container {
    box-sizing: border-box !important;
    width: min(1344px, calc(100% - 96px)) !important;
    max-width: none !important;
    height: 72px !important;
    margin-inline: auto !important;
    padding-inline: 32px !important;
}

.header .nav {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 72px !important;
    gap: 24px !important;
}

.header .logo {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: 16px !important;
    color: #10243f !important;
    font-family: Manrope, sans-serif !important;
    text-decoration: none !important;
}

.header .logo svg,
.header .logo .logo-icon {
    width: 50px !important;
    height: 50px !important;
    flex: 0 0 50px !important;
}

.header .logo-text {
    color: #10243f !important;
    font-family: Manrope, sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

.header .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 32px !important;
}

.header .nav-links a {
    position: relative !important;
    color: #1d2939 !important;
    font-family: Manrope, sans-serif !important;
    font-size: 15.04px !important;
    font-weight: 850 !important;
    line-height: 24.064px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

.header .nav-links a::after {
    bottom: -9px !important;
    height: 3px !important;
    background: #f59e0b !important;
}

.header .nav-links a:hover,
.header .nav-links a.active {
    color: #2457c5 !important;
}

.header .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
}

.header .header-cta.btn-primary {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 228.125px !important;
    min-width: 228.125px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border: 1px solid #f59e0b !important;
    border-radius: 4px !important;
    background: #f59e0b !important;
    color: #10243f !important;
    font-family: Manrope, sans-serif !important;
    font-size: 14.4px !important;
    font-weight: 900 !important;
    line-height: 42px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

@media (max-width: 1199px) {
    .header > .container {
        width: min(1080px, calc(100% - 64px)) !important;
    }
}

@media (max-width: 1023px) {
    .header .nav-links,
    .header .header-actions {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .header > .container {
        width: calc(100% - 32px) !important;
        padding-inline: 16px !important;
    }

}

/* Centered header: all three rows participate in document flow. */
body[class][class][class][class] .header {
  position: relative !important;
  inset: auto !important;
  height: auto !important;
  overflow: visible !important;
}
body[class][class][class][class] .header > .container {
  width: min(1280px, calc(100% - 48px)) !important;
  height: auto !important;
  padding: 24px 0 18px !important;
}
body[class][class][class][class] .header .nav {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  gap: 20px !important;
}
body[class][class][class][class] .header .logo {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  translate: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: fit-content !important;
  height: auto !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body[class][class][class][class] .header .logo .logo-icon {
  display: block !important;
  width: 44px !important;
  height: 50px !important;
  flex: none !important;
  object-fit: contain !important;
}
body[class][class][class][class] .header .logo .logo-wordmark {
  display: block !important;
  width: 150px !important;
  height: 28px !important;
  flex: none !important;
  object-fit: contain !important;
}
body[class][class][class][class] .header .nav-links {
  position: static !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body[class][class][class][class] .header .nav-links a { font-size: 14px !important; line-height: 24px !important; }
body[class][class][class][class] .header .header-actions {
  position: absolute !important;
  inset: 30px 0 auto auto !important;
  display: flex !important;
}
body[class][class][class][class] .header .hamburger,
body[class][class][class][class] .header .nav-mobile { display: none !important; }
@media (max-width: 1023px) {
  body[class][class][class][class] .header .header-actions { display: none !important; }
}
@media (max-width: 600px) {
  body[class][class][class][class] .header > .container { width: calc(100% - 24px) !important; padding: 18px 0 14px !important; }
  body[class][class][class][class] .header .nav { gap: 14px !important; }
  body[class][class][class][class] .header .nav-links { gap: 6px 12px !important; }
  body[class][class][class][class] .header .nav-links a { font-size: 13px !important; padding-inline: 4px !important; }
}

/* Let the brand scroll away while the navigation row stays pinned.
   Offset = top padding + brand height + gap before the navigation. */
body[class][class][class][class] .header {
  position: sticky !important;
  top: -132px !important;
  z-index: 1000 !important;
}
@media (max-width: 600px) {
  body[class][class][class][class] .header { top: -120px !important; }
}
/* Smooth brand fade and a balanced navigation strip. */
body[class][class][class][class] .header {
  background: #faf9f6 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body[class][class][class][class] .header > .container { padding-bottom: 0 !important; }
body[class][class][class][class] .header .logo {
  opacity: var(--brand-opacity, 1);
  transition: opacity 180ms ease-out;
}
body[class][class][class][class] .header .nav-links {
  box-sizing: border-box;
  min-height: 52px;
  padding-block: 14px !important;
  column-gap: 32px !important;
}
body[class][class][class][class] .header .nav-links li {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}
body[class][class][class][class] .header .nav-links a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 24px !important;
}
@media (max-width: 600px) {
  body[class][class][class][class] .header .nav-links { column-gap: 20px !important; }
}

/* CTA shares the navigation row and remains inside the sticky strip. */
body[class][class][class][class] .header .header-actions {
  inset: auto 0 5px auto !important;
}
@media (min-width: 1024px) {
  body[class][class][class][class] .header .nav-links { padding-inline: 248px !important; }
}
@media (max-width: 1023px) {
  body[class][class][class][class] .header .nav {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0 16px !important;
  }
  body[class][class][class][class] .header .logo { flex-basis: 100% !important; margin-bottom: 20px !important; }
  body[class][class][class][class] .header .header-actions { display: flex !important; position: static !important; padding-block: 5px; }
  body[class][class][class][class] .header .header-cta.btn-primary { width: auto !important; min-width: 0 !important; padding-inline: 12px !important; font-size: 12px !important; }
  body[class][class][class][class] .header .nav-links { column-gap: 14px !important; }
}
@media (max-width: 600px) {
  body[class][class][class][class] .header .logo { margin-bottom: 14px !important; }
  body[class][class][class][class] .header .nav { column-gap: 8px !important; }
  body[class][class][class][class] .header .nav-links { column-gap: 10px !important; }
  body[class][class][class][class] .header .header-cta.btn-primary { font-size: 11px !important; height: 36px !important; min-height: 36px !important; }
}
@media (max-width: 520px) {
  body[class][class][class][class] .header .header-actions { flex-basis: 100% !important; justify-content: center !important; padding: 0 0 10px !important; }
}
/* Align navigation and CTA within the same grid row. */
@media (min-width: 1024px) {
  body[class][class][class][class] .header .nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 20px 16px !important;
    align-items: center !important;
  }
  body[class][class][class][class] .header .logo { grid-area: 1 / 2; justify-self: center; }
  body[class][class][class][class] .header .nav-links { grid-area: 2 / 2; padding-inline: 0 !important; }
  body[class][class][class][class] .header .header-actions {
    grid-area: 2 / 3;
    position: static !important;
    align-self: center;
    justify-self: end;
    margin: 0 !important;
    padding: 0 !important;
  }
}
/* Horizontal brand lockup with a shorter upper header row. */
body[class][class][class][class] .header .logo {
  flex-direction: row !important;
  justify-content: center !important;
  gap: 14px !important;
}
body[class][class][class][class] .header { top: -94px !important; }
@media (max-width: 600px) {
  body[class][class][class][class] .header { top: -82px !important; }
}
/* Keep anchor destinations clear of the pinned navigation. */
#testimonials { scroll-margin-top: 110px; }
@media screen {
  html { scroll-behavior: smooth; }
}


/* User-supplied Medeo Sans variable fonts, hosted locally under SIL OFL 1.1. */
@font-face {
    font-family: "Medeo Sans";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/MedeoSansVariable.woff2") format("woff2");
}

@font-face {
    font-family: "Medeo Sans";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/MedeoSansVariable-Italic.woff2") format("woff2");
}


/* Shared visual system for public Alfa Chess pages. The pages keep their content and structure. */
:root {
    --school-paper: #faf9f6;
    --school-surface: #ffffff;
    --school-raised: #f2f0eb;
    --school-ink: #10243f;
    --school-text: #172033;
    --school-muted: #596579;
    --school-amber: #d6b565;
    --school-blue: #2457c5;
    --school-line: rgba(16, 36, 63, .12);
    --school-radius-button: 999px;
    --school-radius-input: 22px;
    --school-radius-card: 32px;
    --school-radius-panel: 40px;
    --school-focus: #2457c5;
    --school-ease: cubic-bezier(.22, 1, .36, 1);
}

body.school-site {
    --font-main: "Medeo Sans", Arial, sans-serif;
    --font: var(--font-main);
    min-width: 0;
    color: var(--school-text);
    background-color: var(--school-paper);
    font-family: var(--font-main) !important;
    font-optical-sizing: auto;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.school-site :is(button, input, select, textarea) {
    font-family: var(--font-main) !important;
}

body.school-site :is(h1, h2, h3, h4, h5, h6) {
    color: var(--school-ink);
    font-family: inherit;
    font-weight: 600 !important;
    letter-spacing: 0;
    line-height: 1.2;
}

body.school-site :is(p, li) {
    text-wrap: pretty;
}

body.school-site a {
    text-underline-offset: .18em;
}

body.school-site :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--school-focus) !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
}

/* Quiet shared header; active state is a small neutral surface, not a color stripe. */
body.school-site .header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--school-line) !important;
    border-radius: 0 !important;
    background: rgba(250, 249, 246, .98) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    font-family: inherit !important;
}

body.school-site .header > .container {
    box-sizing: border-box !important;
    width: min(1280px, calc(100% - 64px)) !important;
    max-width: none !important;
    height: 72px !important;
    margin-inline: auto !important;
    padding-inline: 16px !important;
}

body.school-site .header .nav {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 72px !important;
    gap: 20px !important;
}

body.school-site .header .logo {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: 12px !important;
    color: var(--school-ink) !important;
    font-family: inherit !important;
    text-decoration: none !important;
}

body.school-site .header .logo svg,
body.school-site .header .logo .logo-icon {
    width: 39px !important;
    height: 44px !important;
    flex: 0 0 39px !important;
    object-fit: contain !important;
}

body.school-site .logo .logo-icon {
    display: block !important;
    width: 39px !important;
    height: 44px !important;
    flex: 0 0 39px !important;
    object-fit: contain !important;
}

body.school-site .logo .logo-wordmark {
    display: block !important;
    width: clamp(120px, 10.5vw, 150px) !important;
    height: auto !important;
    max-width: min(150px, 42vw) !important;
    flex: 0 1 auto !important;
    object-fit: contain !important;
}

body.school-site :is(.footer, .success-footer) .logo .logo-wordmark {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

body.school-site :is(.footer, .success-footer) .logo {
    display: inline-flex !important;
    width: fit-content !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    background: #fff !important;
}

body.school-site .header .logo-text {
    color: var(--school-ink) !important;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

body.school-site .header .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

body.school-site .header .nav-links a,
body.school-site .header .nav-mobile-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 8px 14px !important;
    border-radius: var(--school-radius-button) !important;
    color: var(--school-text) !important;
    background: transparent !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    transition: color 160ms ease, background-color 160ms ease !important;
}

body.school-site .header .nav-links a::after {
    display: none !important;
}

body.school-site .header .nav-links a:hover,
body.school-site .header .nav-links a.active,
body.school-site .header .nav-mobile-links a:hover,
body.school-site .header .nav-mobile-links a[aria-current="page"] {
    color: var(--school-ink) !important;
    background: var(--school-raised) !important;
}

body.school-site .header .header-actions {
    display: flex !important;
    align-items: center !important;
}

body.school-site .header .header-cta.btn-primary {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 20px !important;
    border: 1px solid var(--school-blue) !important;
    border-radius: var(--school-radius-button) !important;
    color: #fff !important;
    background: var(--school-blue) !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

body.school-site .hamburger {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 8px !important;
    border: 1px solid transparent !important;
    border-radius: var(--school-radius-button) !important;
    background: transparent !important;
    transition: background-color 160ms ease, border-color 160ms ease !important;
}

body.school-site .hamburger:hover,
body.school-site .hamburger[aria-expanded="true"] {
    border-color: var(--school-line) !important;
    background: var(--school-raised) !important;
}

body.school-site .hamburger span {
    background: var(--school-ink) !important;
}

body.school-site .nav-mobile {
    border-top: 1px solid var(--school-line) !important;
    background: var(--school-paper) !important;
    box-shadow: none !important;
}

body.school-site .header .nav-mobile-links {
    gap: 4px !important;
    padding: 16px !important;
}

@media (max-width: 1023px) {
    body.school-site .header .nav-links,
    body.school-site .header .header-actions {
        display: none !important;
    }

    body.school-site .hamburger {
        display: inline-flex !important;
    }
}

@media (max-width: 767px) {
    body.school-site .header > .container {
        width: calc(100% - 32px) !important;
        padding-inline: 8px !important;
    }

    body.school-site .header .logo-text {
        font-size: 18px !important;
    }
}

/* Shared controls and forms. Page-specific layouts remain in their own stylesheets. */
body.school-site :is(.btn-primary, .header-cta, .button, .cta a, button[type="submit"], button[type="button"]) {
    border-radius: var(--school-radius-button) !important;
    font-family: inherit;
    font-weight: 600;
    box-shadow: none;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

body.school-site :is(.btn-primary, .button, .cta a, button[type="submit"]) {
    border-color: var(--school-blue) !important;
    color: #fff !important;
    background: var(--school-blue) !important;
}

body.school-site :is(.btn-secondary) {
    border: 1px solid var(--school-line) !important;
    border-radius: var(--school-radius-button) !important;
    color: var(--school-ink) !important;
    background: var(--school-surface) !important;
    box-shadow: none !important;
}

body.school-site :is(.btn-primary, .btn-secondary, .button, .cta a, button[type="submit"], button[type="button"]):active {
    transform: scale(.98);
}

/* Shared no-glow action treatment across all public school pages and states. */
body.school-site :is(
    button,
    [type="button"],
    [type="submit"],
    [type="reset"],
    [role="button"],
    .btn,
    [class*="btn-"],
    .button,
    [class*="button"],
    .cta a,
    .header-cta,
    .action,
    .actions a
),
body.school-site :is(
    button,
    [type="button"],
    [type="submit"],
    [type="reset"],
    [role="button"],
    .btn,
    [class*="btn-"],
    .button,
    [class*="button"],
    .cta a,
    .header-cta,
    .action,
    .actions a
):is(:hover, :active, :focus, :focus-visible),
body.school-site :is(
    button,
    [type="button"],
    [type="submit"],
    [type="reset"],
    [role="button"],
    .btn,
    [class*="btn-"],
    .button,
    [class*="button"],
    .cta a,
    .header-cta,
    .action,
    .actions a
)::before,
body.school-site :is(
    button,
    [type="button"],
    [type="submit"],
    [type="reset"],
    [role="button"],
    .btn,
    [class*="btn-"],
    .button,
    [class*="button"],
    .cta a,
    .header-cta,
    .action,
    .actions a
)::after {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    background-image: none !important;
}

body.school-site :is(
    button,
    [type="button"],
    [type="submit"],
    [role="button"],
    .btn,
    [class*="btn-"],
    .button,
    [class*="button"],
    .cta a,
    .header-cta,
    .action,
    .actions a
):focus-visible {
    outline: 3px solid var(--school-focus) !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
}

body.school-site :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    border: 1px solid var(--school-line) !important;
    border-radius: var(--school-radius-input) !important;
    color: var(--school-text) !important;
    background: var(--school-surface) !important;
    font: inherit;
}

body.school-site :is(.modal-content, .lead-form, .form-card, .contact-card, .success-card) {
    border: 1px solid var(--school-line);
    border-radius: var(--school-radius-panel) !important;
    box-shadow: 0 8px 24px rgba(16, 36, 63, .06) !important;
}

body.school-site .modal-close {
    width: 44px !important;
    height: 44px !important;
    border-radius: var(--school-radius-button) !important;
}

body.school-site :is(.faq-item, .card, .pricing-card, .plan-card, .testimonial-card, .teacher-card, .result-card, .advantage-card, .age-card) {
    border-radius: var(--school-radius-card) !important;
}

body.school-site img:not(.logo-icon) {
    max-width: 100%;
}

body.school-site :is(.footer, .success-footer) {
    color: rgba(255, 255, 255, .82) !important;
    background: var(--school-ink) !important;
    background-image: none !important;
}

body.school-site :is(.footer, .success-footer) :is(h2, h3, h4, .logo-text) {
    color: #fff !important;
}

body.school-site :is(.footer, .success-footer) a {
    color: rgba(255, 255, 255, .86) !important;
    text-decoration: none;
}

body.school-site :is(.footer, .success-footer) a:hover {
    color: #fff !important;
    text-decoration: underline;
}


/* Footer logo stays on an opaque white surface, independent of link opacity. */
body.school-site :is(.footer, .success-footer) .logo {
  background: #fff !important;
  opacity: 1 !important;
}


/* Small, brand-preserving friendliness pass for the existing homepage. */
body.home-premium {
    --friendly-radius-control: 999px;
    --friendly-radius-input: 22px;
    --friendly-radius-card: 32px;
    --friendly-radius-panel: 40px;
    --friendly-focus-ring: 0 0 0 3px rgba(49, 93, 245, .32);
}
body.home-premium .hero-image::after,
body.home-premium .hero-coordinate {
    content: none !important;
    display: none !important;
}

body.home-premium .hero-rating {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    padding: 0;
    margin-top: 14px;
    margin-bottom: 18px;
}

body.home-premium .hero-rating__card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    padding: 11px 22px;
    border: 1px solid var(--school-line);
    border-radius: 999px;
    background: var(--school-surface);
    color: var(--school-muted);
    box-shadow: none;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
}

body.home-premium .hero-rating__card strong {
    color: var(--school-ink);
    font-size: 17px;
    white-space: nowrap;
}

body.home-premium .hero-rating__card span {
    color: var(--school-muted);
}

body.home-premium .btn-primary,
body.home-premium .btn-secondary,
body.home-premium .header-actions .header-cta.btn-primary,
body.home-premium .hero-actions .btn-primary,
body.home-premium .hero-actions .btn-secondary,
body.home-premium .hero-actions button,
body.home-premium .section-actions button,
body.home-premium .modal button,
body.home-premium .cookie-consent button,
body.home-premium .testimonials-arrow,
body.home-premium .parent-guide-arrow,
body.home-premium .parent-guides__dots button,
body.home-premium .hamburger {
    border-radius: var(--friendly-radius-control) !important;
}

body.home-premium .hamburger {
    inline-size: 44px;
    block-size: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid transparent;
    background: transparent;
    transition: background-color .18s ease, border-color .18s ease;
}

body.home-premium .hamburger:hover,
body.home-premium .hamburger.active {
    border-color: rgba(49, 93, 245, .12);
    background: rgba(49, 93, 245, .08);
}

body.home-premium .hero-photo-aperture,
body.home-premium .hero-child-slot,
body.home-premium .hero-stage__rail,
body.home-premium .hero-stage__rail > div,
body.home-premium .testimonial-card,
body.home-premium .testimonial-photo-slot,
body.home-premium .teacher-trust-card,
body.home-premium .result-card,
body.home-premium .advantage-card,
body.home-premium .age-card,
body.home-premium .pricing-preview-card,
body.home-premium .parent-guide-slide,
body.home-premium .child-journey__nav-wrap,
body.home-premium .child-journey__panel,
body.home-premium .final-cta-panel,
body.home-premium .story-panel,
body.home-premium .parent-proof-panel,
body.home-premium .step-card,
body.home-premium .faq-item,
body.home-premium .form,
body.home-premium .modal-content,
body.home-premium .cookie-consent,
body.home-premium .form-group input,
body.home-premium .form-group select,
body.home-premium .form-group textarea,
body.home-premium input:not([type="checkbox"]):not([type="radio"]),
body.home-premium select,
body.home-premium textarea {
    border-radius: var(--friendly-radius-input) !important;
}

body.home-premium .testimonial-card,
body.home-premium .teacher-trust-card,
body.home-premium .result-card,
body.home-premium .advantage-card,
body.home-premium .age-card,
body.home-premium .pricing-preview-card,
body.home-premium .parent-guide-slide,
body.home-premium .faq-item,
body.home-premium .step-card {
    border-radius: var(--friendly-radius-card) !important;
}

body.home-premium .modal-content,
body.home-premium .final-cta-panel,
body.home-premium .story-panel,
body.home-premium .parent-proof-panel,
body.home-premium .child-journey__panel {
    border-radius: var(--friendly-radius-panel) !important;
}

body.home-premium .nav-links a,
body.home-premium .nav-mobile-links a,
body.home-premium .faq-question,
body.home-premium .faq-toggle,
body.home-premium .child-journey__tab,
body.home-premium .parent-guide-slide__copy a,
body.home-premium .testimonial-card a {
    border-radius: var(--friendly-radius-control);
}

body.home-premium .nav-links a,
body.home-premium .nav-mobile-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 13px;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body.home-premium .nav-links a:hover,
body.home-premium .nav-links a.active,
body.home-premium .nav-mobile-links a:hover,
body.home-premium .nav-mobile-links a:focus-visible {
    background: rgba(49, 93, 245, .08);
}

body.home-premium .faq-question {
    padding-inline: 16px;
}

body.home-premium .parent-guide-slide__copy a,
body.home-premium .testimonial-card a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
}

body.home-premium .parent-guide-slide__copy a:hover,
body.home-premium .testimonial-card a:hover {
    background: rgba(49, 93, 245, .08);
}

body.home-premium :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #315df5;
    outline-offset: 3px;
    box-shadow: var(--friendly-focus-ring);
}

body.home-premium .hero-child-photo,
body.home-premium .testimonial-photo-slot img {
    border-radius: 24px;
}

body.home-premium .modal-close {
    inline-size: 44px;
    block-size: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--friendly-radius-control) !important;
}

body.home-premium .faq-toggle {
    min-inline-size: 40px;
    min-block-size: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--friendly-radius-control) !important;
}

body.home-premium .parent-guide-arrow,
body.home-premium .testimonials-arrow {
    min-inline-size: 44px;
    min-block-size: 44px;
}

body.home-premium .parent-guides__dots button {
    min-inline-size: 28px;
    min-block-size: 28px;
}

body.home-premium .child-journey__tab {
    border-radius: 24px;
}

@media (max-width: 600px) {
    body.home-premium .modal-content,
    body.home-premium .final-cta-panel,
    body.home-premium .story-panel,
    body.home-premium .parent-proof-panel,
    body.home-premium .child-journey__panel {
        border-radius: 30px !important;
    }
}

@media (max-width: 600px) {
    body.home-premium .hero-rating {
        padding: 0;
        margin-top: 0;
        margin-bottom: 14px;
    }

    body.home-premium .hero-rating__card {
        width: min(100%, 420px);
        gap: 8px;
        padding: 11px 14px;
        font-size: 13px;
    }

    body.home-premium .hero-rating__card strong {
        font-size: 15px;
    }
}

/* Unslop pass: calm the home page chrome and let the learner photograph lead. */
body.home-premium {
    --premium-navy: var(--school-ink);
    --premium-blue: var(--school-blue);
    --premium-amber: var(--school-amber);
    --premium-white: var(--school-surface);
    --premium-line: var(--school-line);
    --premium-ink: var(--school-text);
    --premium-muted: var(--school-muted);
    --premium-grid: none;
    --premium-grid-dark: none;
    color: var(--school-text) !important;
    background: var(--school-paper) !important;
}

body.home-premium .hero {
    box-sizing: border-box;
    height: auto !important;
    min-height: calc(100svh - 72px) !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 64px 0 !important;
    border: 0 !important;
    background: var(--school-paper) !important;
    background-image: none !important;
}

body.home-premium .hero > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr) !important;
    align-items: center;
    gap: 48px;
    width: min(1280px, calc(100% - 64px));
    height: auto;
    min-height: 0;
}

body.home-premium .hero-content {
    max-width: 620px;
}

body.home-premium .hero-badge {
    margin-bottom: 20px;
    padding: 0;
    border: 0;
    color: var(--school-muted);
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
}

body.home-premium .hero-badge .badge-icon {
    display: none;
}

body.home-premium .hero-title {
    max-width: 13ch;
    color: var(--school-ink) !important;
    font-size: clamp(42px, 4.5vw, 60px) !important;
    font-weight: 600 !important;
    line-height: 1.06 !important;
    letter-spacing: 0;
}

body.home-premium .hero-title__accent {
    color: var(--school-blue) !important;
}

body.home-premium .hero-subtitle {
    max-width: 580px;
    margin-top: 20px;
    color: var(--school-muted);
    font-size: 17px;
    line-height: 1.65;
}

body.home-premium .hero-promise {
    margin-top: 12px;
    color: var(--school-ink);
    font-weight: 600;
}

body.home-premium .hero-actions {
    gap: 12px;
    margin-top: 24px !important;
}

body.home-premium .hero-actions .btn-primary,
body.home-premium .hero-actions .btn-secondary {
    min-height: 52px;
    padding-inline: 22px;
    font-weight: 600 !important;
    box-shadow: none !important;
}

body.home-premium .hero-actions .btn-primary {
    border: 1px solid var(--school-blue) !important;
    border-radius: var(--school-radius-button) !important;
    color: #fff !important;
    background: var(--school-blue) !important;
}

body.home-premium .hero-actions .btn-secondary {
    border: 1px solid var(--school-line) !important;
    border-radius: var(--school-radius-button) !important;
    color: var(--school-ink) !important;
    background: var(--school-surface) !important;
}

/* Keep the CTA legible when it sits on the navy trial band. */
body.home-premium .trial-band .btn-primary.btn-large {
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    color: var(--school-blue) !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.home-premium .trial-band .btn-primary.btn-large:hover,
body.home-premium .trial-band .btn-primary.btn-large:focus-visible {
    border-color: #e8eef8 !important;
    color: var(--school-blue) !important;
    background: #e8eef8 !important;
    box-shadow: none !important;
}

body.home-premium .trial-band .btn-primary.btn-large:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
}

body.home-premium .trial-band .btn-primary.btn-large:active {
    border-color: #d9e3f4 !important;
    color: var(--school-blue) !important;
    background: #d9e3f4 !important;
    box-shadow: none !important;
}

body.home-premium .hero-trust {
    gap: 8px;
    max-width: 620px;
    margin-top: 24px;
    border: 0;
}

body.home-premium .hero-trust-item {
    display: flex;
    align-items: center;
    padding: 12px 14px !important;
    border: 1px solid var(--school-line) !important;
    border-radius: 22px !important;
    color: var(--school-text) !important;
    background: var(--school-surface) !important;
    font-size: 14px;
    line-height: 1.4;
}

body.home-premium .hero-trust-item > span:first-child {
    display: none !important;
}

body.home-premium .hero-note {
    max-width: 580px;
    margin-top: 16px;
    color: var(--school-muted);
    font-size: 14px;
    line-height: 1.55;
}

body.home-premium .hero-image.hero-stage {
    box-sizing: border-box;
    min-height: 560px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--school-line) !important;
    border-radius: var(--school-radius-panel) !important;
    background: #f1eee7 !important;
    box-shadow: none !important;
}

body.home-premium .hero-photo-aperture {
    inset: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    background-image: none;
    clip-path: none;
}

body.home-premium .hero-photo-aperture::after,
body.home-premium .hero-stage::before,
body.home-premium .hero-image::after,
body.home-premium .hero-coordinate {
    display: none !important;
}

/* Keep the school's recognizable chess pieces, but let the child and lesson stay first. */
body.home-premium .hero-image.hero-stage .hero-piece {
    display: block !important;
    z-index: 2 !important;
    max-width: none;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(16, 36, 63, .12));
    transform: none !important;
    will-change: auto;
}

body.home-premium .hero-image.hero-stage .hero-piece--knight {
    top: auto;
    right: -2%;
    bottom: 17%;
    left: auto;
    width: min(34%, 280px);
}

body.home-premium .hero-image.hero-stage .hero-piece--rook {
    top: auto;
    right: auto;
    bottom: 23%;
    left: 2%;
    width: min(20%, 160px);
}

body.home-premium .hero-image.hero-stage .hero-piece--pawn {
    top: 4%;
    right: 23%;
    bottom: auto;
    left: auto;
    width: min(13%, 104px);
}

body.home-premium .hero-image.hero-stage .hero-piece--king {
    top: 3%;
    right: auto;
    bottom: auto;
    left: 3%;
    width: min(18%, 142px);
}

body.home-premium .hero-child-slot {
    inset: 0 0 92px;
}

body.home-premium .hero-child-photo {
    filter: none !important;
    border-radius: 0 !important;
    object-position: center bottom;
}

body.home-premium .hero-stage__rail {
    right: 20px;
    bottom: 20px;
    left: 20px;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--school-line);
    border-radius: 28px !important;
    color: var(--school-text);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(16, 36, 63, .07);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.home-premium .hero-stage__rail > div {
    padding: 16px 18px;
    border-top: 0;
}

body.home-premium .hero-stage__rail > div + div {
    border-left: 1px solid var(--school-line);
}

body.home-premium .hero-stage__rail strong {
    color: var(--school-ink);
    font-size: 15px;
    font-weight: 600;
}

body.home-premium .hero-stage__rail p {
    color: var(--school-muted);
    font-size: 13px;
}

body.home-premium .hero-card-label {
    color: var(--school-muted);
    font-size: 12px !important;
    font-weight: 500;
    text-transform: none;
}

/* Static outcome board: rectangular learning cues around a plain-language headline. */
body.school-site.home-premium .outcome-story {
    min-height: 0 !important;
    padding: 80px 0 !important;
    border: 0 !important;
    background: var(--school-paper) !important;
    background-image: none !important;
    background-color: var(--school-paper) !important;
}

body.home-premium .outcome-story__sticky {
    position: relative !important;
    display: block;
    min-height: 0 !important;
    overflow: visible;
    padding: 0;
}

body.home-premium .outcome-story__canvas {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto;
    align-content: start;
    align-items: stretch;
    gap: 16px;
    position: relative !important;
    width: min(1120px, calc(100% - 64px));
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    container-type: normal !important;
    margin-inline: auto;
    padding: 32px;
    border: 1px solid var(--school-line);
    border-radius: var(--school-radius-panel);
    background: var(--school-surface);
    box-shadow: 0 8px 24px rgba(16, 36, 63, .05);
}

body.home-premium .outcome-story__grid,
body.home-premium .outcome-story__piece,
body.home-premium .outcome-story__center::before,
body.home-premium .outcome-story__center::after {
    display: none !important;
}

body.home-premium .outcome-story__center {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    grid-column: 1 / -1;
    width: auto;
    aspect-ratio: auto;
    min-width: 0;
    min-height: 0;
    place-items: start;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    text-align: left;
    transform: none !important;
}

body.home-premium .outcome-story__item--1,
body.home-premium .outcome-story__item--2,
body.home-premium .outcome-story__item--3 {
    grid-column: span 2;
}

body.home-premium .outcome-story__item--4 {
    grid-column: 2 / span 2;
}

body.home-premium .outcome-story__item--5 {
    grid-column: 4 / span 2;
}

body.home-premium .outcome-story__center h2,
body.home-premium .outcome-story__center .section-title {
    width: 100%;
    max-width: 26ch;
    margin: 0 !important;
    color: var(--school-ink);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.1;
}

body.home-premium .outcome-story__center strong,
body.home-premium .outcome-story__center em,
body.home-premium .outcome-story__center .accent,
body.home-premium .outcome-story__center h2 > span {
    color: var(--school-blue);
}

body.home-premium .outcome-story__item,
body.home-premium .outcome-story__item:is(.is-active, [aria-current="true"]) {
    position: relative;
    inset: auto;
    display: flex;
    align-items: center;
    width: auto;
    min-height: 88px;
    margin: 0;
    padding: 20px 22px;
    border: 1px solid var(--school-line);
    border-radius: 24px;
    color: var(--school-ink) !important;
    background: var(--school-paper);
    box-shadow: none;
    opacity: 1 !important;
    text-align: left;
    transform: none !important;
    transition: border-color 160ms ease, background-color 160ms ease;
}

body.home-premium .outcome-story__item:is(.is-active, [aria-current="true"]) {
    border-color: rgba(36, 87, 197, .38);
    background: #edf2fb;
}

body.home-premium .outcome-story__item::before {
    display: none;
}

body.home-premium .outcome-story__item strong {
    color: var(--school-ink) !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

body.home-premium .outcome-story__item :is(span, small, strong, h3, p) {
    color: var(--school-ink) !important;
}

body.home-premium .outcome-story__cta {
    position: static;
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 8px;
    border-radius: var(--school-radius-button) !important;
    opacity: 1;
    transform: none;
}

body.home-premium :is(.faq-item, .modal-content, .footer) {
    background-image: none !important;
}

body.home-premium .faq-question {
    border-radius: 24px;
}

body.home-premium .faq-toggle {
    color: var(--school-ink);
    background: var(--school-raised);
}

body.home-premium .modal-content {
    border-radius: var(--school-radius-panel) !important;
    box-shadow: 0 8px 24px rgba(16, 36, 63, .08) !important;
}

body.home-premium .modal-close {
    width: 44px;
    height: 44px;
    border-radius: var(--school-radius-button) !important;
}

body.home-premium .hero-title-word,
body.home-premium .hero-title-ready .hero-title-word,
body.home-premium .scroll-reveal,
body.home-premium .scroll-copy-line {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
}

@media (max-width: 900px) {
    body.home-premium .hero > .container {
        grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) !important;
        gap: 32px;
    }

    body.home-premium .hero-image.hero-stage {
        min-height: 460px;
    }

    body.home-premium .hero-trust {
        grid-template-columns: 1fr;
    }

    body.home-premium .hero-trust-item {
        min-height: 44px;
    }
}

@media (max-width: 760px) {
    body.home-premium .hero {
        min-height: 0 !important;
        padding: 40px 0 48px !important;
    }

    body.home-premium .hero > .container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        width: min(100% - 32px, 640px);
    }

    body.home-premium .hero-title {
        max-width: 14ch;
        font-size: clamp(36px, 10vw, 44px) !important;
        line-height: 1.08 !important;
    }

    body.home-premium .hero-subtitle {
        font-size: 16px;
    }

    body.home-premium .hero-image.hero-stage {
        min-height: 420px;
        width: 100%;
        border-radius: 32px !important;
    }

    body.home-premium .hero-image.hero-stage .hero-piece--knight {
        right: -4%;
        bottom: 24%;
        width: min(34%, 155px);
    }

    body.home-premium .hero-image.hero-stage .hero-piece--rook {
        bottom: 28%;
        left: 1%;
        width: min(21%, 92px);
    }

    body.home-premium .hero-image.hero-stage .hero-piece--pawn {
        top: 5%;
        right: 21%;
        width: min(13%, 58px);
    }

    body.home-premium .hero-image.hero-stage .hero-piece--king {
        top: 4%;
        left: 3%;
        width: min(18%, 78px);
    }

    body.home-premium .hero-child-slot {
        bottom: 104px;
    }

    body.home-premium .hero-stage__rail {
        right: 12px;
        bottom: 12px;
        left: 12px;
        gap: 0;
        border-radius: 22px !important;
    }

    body.home-premium .hero-stage__rail > div {
        padding: 12px;
    }

    body.home-premium .hero-stage__rail strong {
        font-size: 13px;
    }

    body.home-premium .hero-stage__rail p {
        font-size: 12px;
    }

    body.school-site.home-premium .outcome-story {
        padding: 48px 0 !important;
    }

    body.home-premium .outcome-story__canvas {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
        width: min(100% - 32px, 640px);
        padding: 24px;
        border-radius: 32px;
    }

    body.home-premium .outcome-story__center {
        grid-column: auto;
        padding-bottom: 8px;
    }

    body.home-premium .outcome-story__item,
    body.home-premium .outcome-story__item:is(.is-active, [aria-current="true"]) {
        min-height: 72px;
        padding: 16px 18px;
        border-radius: 22px;
    }

    body.home-premium .outcome-story__item--1,
    body.home-premium .outcome-story__item--2,
    body.home-premium .outcome-story__item--3,
    body.home-premium .outcome-story__item--4,
    body.home-premium .outcome-story__item--5 {
        grid-column: auto;
    }
}


/* Local section treatment for the school homepage. Shared tokens come from school-theme.css. */
body.home-premium .steps,
body.home-premium .testimonials,
body.home-premium .pricing-preview {
  padding-block: clamp(64px, 8vw, 96px);
  background: var(--school-paper, #faf9f6);
  color: var(--school-text, #172033);
}

body.home-premium .steps {
  padding-block: clamp(64px, 8vw, 96px) !important;
  background: var(--school-paper, #faf9f6) !important;
  background-image: none !important;
  color: var(--school-text, #172033) !important;
}

body.home-premium .steps::before {
  content: none !important;
}

body.home-premium .steps .container,
body.home-premium .testimonials .container,
body.home-premium .pricing-preview .container {
  max-width: 1184px;
}

body.home-premium .steps .section-title,
body.home-premium .testimonials .section-title,
body.home-premium .pricing-preview .section-title {
  max-width: 760px;
  margin-inline: auto;
  color: var(--school-ink, #10243f);
  font-size: clamp(32px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  text-align: center;
}

body.home-premium .steps .section-title span {
  color: var(--school-ink, #10243f);
  background: none;
  -webkit-text-fill-color: currentColor;
}

body.home-premium .steps-grid {
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 24px !important;
  row-gap: 24px;
  margin-top: 36px;
  margin-left: 0;
  border-top: 0;
}

body.home-premium .step-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto 1fr;
  align-items: start;
  min-height: 240px;
  padding: 28px !important;
  border: 1px solid var(--school-line, rgba(16, 36, 63, .12));
  border-radius: 36px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(16, 36, 63, .035) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  gap: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.home-premium .step-card:hover {
  border-color: rgba(16, 36, 63, .2);
  box-shadow: 0 6px 18px rgba(16, 36, 63, .055) !important;
}

body.home-premium .step-card:not(:last-child)::after {
  content: none !important;
}

body.home-premium .step-number {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e9eef8 !important;
  color: var(--school-blue, #2457c5) !important;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

body.home-premium .step-number::before {
  content: none !important;
}

body.home-premium .step-card h3 {
  margin: 0;
  min-height: 2.6em;
  color: var(--school-ink, #10243f);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

body.home-premium .step-card p {
  max-width: 34ch;
  margin: 0;
  color: var(--school-muted, #596579);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.home-premium .steps .section-actions {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  justify-content: center !important;
  margin: 32px auto 0 !important;
  padding-inline: 0 !important;
  text-align: center !important;
  justify-self: center !important;
}

body.home-premium .steps .section-actions .btn-primary {
  position: static !important;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 280px);
  min-height: 52px;
  margin-inline: auto !important;
  padding-inline: 24px !important;
  width: auto !important;
  max-width: 100%;
  align-self: center;
  border: 1px solid var(--school-blue, #2457c5) !important;
  border-radius: 999px !important;
  background: var(--school-blue, #2457c5) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.home-premium .testimonials {
  padding-block: clamp(64px, 8vw, 96px) !important;
  background-color: #fff !important;
  background-image: none !important;
  border-block: 1px solid var(--school-line, rgba(16, 36, 63, .12)) !important;
}

body.home-premium .testimonials .section-title {
  text-align: left;
  margin-left: 0;
}

body.home-premium .testimonials .section-lead {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--school-muted, #596579);
  font-size: 17px;
  line-height: 1.6;
  text-align: left !important;
}

body.home-premium .testimonials-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(100%, 1160px);
  gap: 24px;
  margin: 32px 0 0;
}

body.home-premium .testimonial-card {
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 24px !important;
  border: 1px solid var(--school-line, rgba(16, 36, 63, .12)) !important;
  border-top-width: 1px !important;
  border-bottom-width: 1px !important;
  border-radius: 36px !important;
  background: var(--school-paper, #faf9f6) !important;
  box-shadow: 0 2px 8px rgba(16, 36, 63, .035) !important;
  align-content: start;
}

body.home-premium .testimonials .testimonials-grid .testimonial-card {
  border: 1px solid var(--school-line, rgba(16, 36, 63, .12)) !important;
  border-top: 1px solid var(--school-line, rgba(16, 36, 63, .12)) !important;
  background: #f4f1e9 !important;
}

body.home-premium .testimonial-photo-slot {
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 28px !important;
  background-color: #f2eee5 !important;
  background-image: none !important;
  color: var(--school-muted, #596579);
}

body.home-premium .testimonial-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-premium .testimonial-piece {
  display: block !important;
  position: absolute;
  z-index: 2;
  top: 36px;
  right: 32px;
  width: 52px;
  height: auto;
  filter: none;
  transform: none;
  pointer-events: none;
}

body.home-premium .testimonials .testimonial-card--artem .testimonial-piece,
body.home-premium .testimonials .testimonial-card--alisa .testimonial-piece {
  top: clamp(30px, 2.5vw, 36px);
  right: clamp(28px, 2.2vw, 32px);
  width: clamp(40px, 4vw, 52px);
  filter: none;
  transform: none;
}

body.home-premium .testimonial-text {
  margin: 0;
  color: var(--school-text, #172033);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}

body.home-premium .testimonial-author {
  gap: 4px;
  color: var(--school-ink, #10243f);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

body.home-premium .testimonial-author span {
  color: var(--school-muted, #596579);
  font-size: 14px;
  font-weight: 400;
}

body.home-premium .testimonials-mobile-nav {
  gap: 12px;
  margin-top: 20px;
}

body.home-premium .pricing-preview {
  padding-block: clamp(64px, 8vw, 96px) !important;
  background-color: #f4f1e9 !important;
  background-image: none !important;
}

body.home-premium .pricing-preview .section-title + .section-lead {
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--school-muted, #596579);
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

body.home-premium .pricing-preview .container > h3.section-title {
  display: table;
  max-width: max-content;
  margin: 16px auto 0;
  padding: 8px 16px;
  border-radius: var(--school-radius-button, 999px);
  background: #e9eef8;
  color: var(--school-ink, #10243f);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
}

body.home-premium .pricing-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

body.home-premium .pricing-preview-card {
  min-width: 0;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--school-line, rgba(16, 36, 63, .12));
  border-radius: 36px !important;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 36, 63, .035) !important;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.home-premium .pricing-preview-card:nth-child(2) {
  border-color: rgba(36, 87, 197, .26);
  background: #f8faff;
  box-shadow: 0 4px 14px rgba(94, 65, 18, .07) !important;
  transform: none;
}

body.home-premium .pricing-preview-card:nth-child(2)::after {
  content: none !important;
}

body.home-premium .pricing-preview-card.scroll-active {
  transform: none;
}

body.home-premium .pricing-preview-label {
  color: var(--school-muted, #596579);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

body.home-premium .pricing-preview-price {
  color: var(--school-ink, #10243f);
  font-size: clamp(25px, 2.3vw, 31px);
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

body.home-premium .pricing-preview-meta {
  color: var(--school-muted, #596579);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

body.home-premium .pricing-preview-card > a {
  margin-top: auto;
  min-height: 52px;
  justify-content: center;
  border-radius: var(--school-radius-button, 999px);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

body.home-premium .pricing-preview-card > a.btn-primary {
  background: var(--school-blue, #2457c5);
  color: #fff;
  border-color: var(--school-blue, #2457c5);
  box-shadow: none;
}

body.home-premium .pricing-preview-card > a.btn-secondary {
  background: #fff;
  color: var(--school-ink, #10243f);
  border: 1px solid var(--school-line, rgba(16, 36, 63, .12));
}

body.home-premium .pricing-preview .section-actions {
  margin-top: 32px;
}

/* Parent reading carousel — real school content, no decorative grid or loud color blocks. */
body.home-premium .parent-guides {
  padding-block: clamp(64px, 8vw, 96px);
  background: #fff;
  background-image: none !important;
  color: var(--school-text, #172033);
}

body.home-premium .parent-guides__top {
  align-items: end;
  margin-bottom: 24px;
}

body.home-premium .parent-guides__heading h2 {
  max-width: 760px;
  color: var(--school-ink, #10243f);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
}

body.home-premium .parent-guides__heading p {
  color: var(--school-muted, #596579);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body.home-premium .parent-guides__controls {
  gap: 8px;
}

body.home-premium .parent-guides__counter {
  color: var(--school-muted, #596579);
  font-size: 14px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

body.home-premium .parent-guides__counter strong {
  color: var(--school-ink, #10243f);
  font-size: 14px;
  font-weight: 600;
}

body.home-premium .parent-guide-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--school-line, rgba(16,36,63,.12));
  border-radius: var(--school-radius-button, 999px) !important;
  background: #fff;
  color: var(--school-ink, #10243f);
  transition: background-color 160ms ease, border-color 160ms ease;
}

body.home-premium .parent-guide-arrow:hover,
body.home-premium .parent-guide-arrow:focus-visible {
  border-color: rgba(36,87,197,.32);
  background: #e9eef8;
}

body.home-premium .parent-guides__viewport {
  border: 1px solid var(--school-line, rgba(16,36,63,.12));
  border-radius: 40px !important;
  background: #faf9f6;
  box-shadow: 0 3px 12px rgba(16,36,63,.04);
}

body.home-premium .parent-guides__viewport:focus-visible {
  outline-color: var(--school-blue, #2457c5);
}

body.home-premium .parent-guide-slide {
  grid-template-columns: 72px minmax(0, 1fr) minmax(240px, .42fr);
  min-height: 340px;
}

body.home-premium .parent-guide-slide__index {
  padding: 36px 20px;
  border-right-color: var(--school-line, rgba(16,36,63,.12));
  color: var(--school-muted, #596579);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

body.home-premium .parent-guide-slide__copy {
  padding: 40px clamp(24px, 4vw, 56px);
}

body.home-premium .parent-guide-slide__copy > span {
  color: var(--school-muted, #596579);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body.home-premium .parent-guide-slide h3 {
  margin: 12px 0;
  color: var(--school-ink, #10243f);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
}

body.home-premium .parent-guide-slide p {
  margin-bottom: 20px;
  color: var(--school-muted, #596579);
  font-size: 16px;
  line-height: 1.6;
}

body.home-premium .parent-guide-slide a {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--school-radius-button, 999px);
  background: var(--school-blue, #2457c5);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 160ms ease;
}

body.home-premium .parent-guide-slide a:hover {
  background: #1d469f;
}

body.home-premium .parent-guide-slide a svg {
  width: 18px;
}

body.home-premium .parent-guide-slide__chess {
  margin: 20px;
  border-radius: 32px;
  background: #f1eee8;
  color: var(--school-ink, #10243f);
}

body.home-premium .parent-guide-slide__chess::before {
  display: none;
}

body.home-premium .parent-guide-slide__chess span {
  color: var(--school-ink, #10243f);
  font-size: clamp(96px, 12vw, 168px);
  text-shadow: none;
}

body.home-premium .parent-guide-slide__chess small {
  right: 20px;
  bottom: 18px;
  color: var(--school-muted, #596579);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body.home-premium .parent-guide-slide__chess--green,
body.home-premium .parent-guide-slide__chess--amber,
body.home-premium .parent-guide-slide__chess--navy {
  background: #f1eee8;
  color: var(--school-ink, #10243f);
}

body.home-premium .parent-guides__dots {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 8px;
  margin-top: 20px;
}

body.home-premium .parent-guides__dots button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--school-line, rgba(16,36,63,.12));
  border-radius: 50% !important;
  background: #fff;
  transition: background-color 160ms ease, border-color 160ms ease;
}

body.home-premium .parent-guides__dots button.is-active {
  border-color: var(--school-blue, #2457c5);
  background: var(--school-blue, #2457c5);
}

@media (max-width: 900px) {
  body.home-premium .steps-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  body.home-premium .pricing-preview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.home-premium .step-card,
  body.home-premium .pricing-preview-card {
    min-height: 0;
    padding: 24px;
  }

  body.home-premium .steps-grid {
    margin-top: 28px;
  }

  body.home-premium .pricing-preview-grid {
    max-width: 620px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  body.home-premium .steps,
  body.home-premium .testimonials,
  body.home-premium .pricing-preview {
    padding-block: 56px;
  }

  body.home-premium .steps .section-title,
  body.home-premium .testimonials .section-title,
  body.home-premium .pricing-preview .section-title {
    font-size: 32px;
    text-align: left;
  }

  body.home-premium .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
    margin: 24px 0 0;
  }

  body.home-premium .testimonial-card {
    gap: 16px;
    padding: 20px !important;
    border-radius: 32px !important;
  }

  body.home-premium .testimonial-photo-slot {
    border-radius: 24px !important;
  }

  body.home-premium .testimonial-piece {
    top: 30px;
    right: 28px;
    width: 40px;
  }

  body.home-premium .pricing-preview .container > h3.section-title {
    margin-left: 0;
    text-align: left;
  }

  body.home-premium .pricing-preview .section-title + .section-lead {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 760px) {
  body.home-premium .parent-guides {
    padding-block: 56px;
  }

  body.home-premium .parent-guides__top {
    margin-bottom: 20px;
  }

  body.home-premium .parent-guide-slide {
    grid-template-columns: 1fr;
  }

  body.home-premium .parent-guide-slide__index {
    padding: 20px 24px 0;
    border-right: 0;
  }

  body.home-premium .parent-guide-slide__copy {
    padding: 20px 24px 24px;
  }

  body.home-premium .parent-guide-slide__chess {
    grid-column: 1;
    min-height: 160px;
    margin: 0 24px 24px;
    border-radius: 28px;
  }

  body.home-premium .parent-guide-slide h3 {
    font-size: 30px;
  }

  body.home-premium .parent-guides__dots {
    justify-content: center;
  }
}



/* Homepage layout and accents */
body.home-premium {
  --homepage-blue: #2459c7;
}

body.home-premium .header .nav {
  position: relative;
  justify-content: flex-end !important;
}

body.home-premium .header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

body.home-premium .header .nav-links {
  gap: 12px !important;
  margin: 0;
}

body.home-premium .header .nav-links a {
  padding-inline: 6px !important;
  font-size: 13px !important;
}

@media (max-width: 1399px) {
  body.home-premium.school-site .header .nav-links {
    display: none !important;
  }

  body.home-premium.school-site .header .hamburger {
    display: flex !important;
  }

  body.home-premium .header .nav-mobile.active {
    display: block !important;
  }
}

body.home-premium .hero .hero-badge--large {
  display: block;
  font-size: clamp(16px, 2.1vw, 24px) !important;
  font-weight: 850;
  color: #10243f;
}

body.home-premium .hero-badge--large .badge-icon {
  display: none;
}

body.home-premium .hero-card-label {
  color: var(--homepage-blue) !important;
  font-size: clamp(13px, 1.5vw, 19px) !important;
  font-weight: 850;
}

body.home-premium :is(.hero-image.hero-stage .hero-piece, .outcome-story__piece, .teacher-photo-piece, .testimonials .testimonial-piece) {
  filter: grayscale(1) sepia(1) hue-rotate(176deg) saturate(3) brightness(.82) !important;
}

body.home-premium :is(.step-number, .teacher-point > span, .child-journey__number, .proof-label, .parent-guides__heading p, .parent-guide-slide__index, .parent-guides__counter strong) {
  color: var(--homepage-blue) !important;
}

body.home-premium .child-journey__tab.is-active .child-journey__number {
  color: #fff !important;
  background: var(--homepage-blue);
}

body.home-premium :is(.parent-guides__dots button.is-active, .child-journey__columns li)::before {
  background-color: var(--homepage-blue);
}

body.home-premium .homepage-learning-pair {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

body.home-premium .homepage-learning-pair > .advantages {
  background: #edf3ff;
  border-radius: 24px;
  padding: clamp(20px, 3vw, 38px) 0;
}

body.home-premium .homepage-learning-pair .advantages-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

body.home-premium .homepage-learning-pair .advantage-card {
  padding: clamp(12px, 2vw, 20px);
}

@media (min-width: 1000px) {
  body.home-premium .homepage-learning-pair {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding-block: 48px;
  }

  body.home-premium .homepage-learning-pair .outcome-story__canvas {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.home-premium .homepage-learning-pair :is(.outcome-story__center, .outcome-story__item) {
    grid-column: 1 !important;
  }
}

body.home-premium .trial-band #inlineTrialForm {
  display: grid;
  gap: 12px;
  width: min(100%, 540px);
  margin: 0;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 20px;
  background: #fff;
  color: #10243f;
}

body.home-premium #inlineTrialForm .form-privacy,
body.home-premium #inlineTrialForm .form-status {
  color: #344762 !important;
  margin: 0;
}

body.home-premium #inlineTrialForm .form-status[data-state="error"] {
  color: #a62d33 !important;
}

body.home-premium #inlineTrialForm .form-status:empty {
  display: none;
}

body.home-premium .result-section .result-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)) !important;
}

body.home-premium .result-section .result-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  align-content: start;
  text-align: center;
}

body.home-premium .result-card img {
  width: min(100%, 120px);
  height: auto;
  border-radius: 12px;
}

body.home-premium .learning-timeline {
  padding-block: clamp(44px, 7vw, 90px);
  background: #f2f6ff;
}

body.home-premium .learning-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.home-premium .learning-timeline-grid article {
  padding: clamp(14px, 2.5vw, 24px);
  border: 1px solid #d8e2f5;
  border-radius: 20px;
  background: #fff;
}

body.home-premium .learning-timeline-grid article > span {
  color: var(--homepage-blue);
  font-size: 28px;
  font-weight: 850;
}

body.home-premium .testimonial-card {
  display: flex;
  flex-direction: column;
  background: #e9f0fb;
  border: 1px solid #d5e2f7;
}

body.home-premium .testimonial-text,
body.home-premium .testimonial-author {
  padding: 16px;
  border-radius: 14px;
}

body.home-premium .testimonial-text {
  background: #fff;
  flex: 1;
}

body.home-premium .testimonial-author {
  background: #dbe8fb;
}

@media (max-width: 760px) {
  body.home-premium .homepage-learning-pair {
    width: 100%;
  }

  body.home-premium .homepage-learning-pair .advantages {
    margin-inline: 16px;
  }

  body.home-premium .learning-timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen {
  body.home-premium :is(.step-card, .teacher-point, .testimonial-card, .result-card, .learning-timeline-grid article) {
    transition: transform .3s ease, border-color .3s ease;
  }

  body.home-premium :is(.step-card, .teacher-point, .testimonial-card, .result-card, .learning-timeline-grid article):hover {
    transform: translateY(-4px);
    border-color: #a9c3ed;
  }

  body.home-premium .hero-badge--large,
  body.home-premium .hero-title {
    animation: homepage-intro .55s ease-out both;
  }

  body.home-premium .hero-title {
    animation-delay: .09s;
  }

  @keyframes homepage-intro {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

body.home-premium .result-section .result-grid {
  grid-template-rows: auto;
}

body.home-premium .result-section .result-card {
  grid-column: auto;
  grid-row: auto;
  grid-template: auto auto / minmax(0, 1fr);
  min-height: 0;
  gap: 12px;
  padding: 18px !important;
  border-radius: 20px !important;
  background: #eef4ff !important;
}

body.home-premium .result-section .result-card h3 {
  grid-area: auto;
  max-width: none;
  margin: 0;
  font-size: 1.05rem !important;
}

body.home-premium .testimonials .testimonials-grid .testimonial-card {
  background: #e9f0fb !important;
  border-color: #d5e2f7 !important;
}

body.home-premium .parent-guides__dots button.is-active {
  background: var(--homepage-blue) !important;
}

@media (min-width: 1000px) {
  body.home-premium .homepage-learning-pair .outcome-story__canvas {
    width: 100%;
  }

  body.home-premium .homepage-learning-pair .outcome-story__item {
    min-height: 0;
    padding-block: 13px;
  }
}

body.home-premium .header .header-cta {
  width: auto !important;
  min-width: 0 !important;
}

body.home-premium .homepage-learning-pair > .advantages > .container {
  width: 100% !important;
  padding-inline: clamp(14px, 2.5vw, 26px);
}

body.home-premium .homepage-learning-pair .advantage-card {
  display: block;
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

body.home-premium .homepage-learning-pair .advantage-icon {
  color: var(--homepage-blue) !important;
}

body.home-premium .learning-timeline .section-lead {
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  body.home-premium .homepage-learning-pair .advantages-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

body.home-premium.school-site .header .header-cta.btn-primary {
  width: auto !important;
  min-width: 0 !important;
}

body.home-premium .homepage-learning-pair .advantage-card:last-child {
  display: block !important;
  grid-template-columns: none;
}

body.home-premium .homepage-learning-pair .advantage-card h3,
body.home-premium .learning-timeline-grid h3,
body.home-premium .result-section .result-card h3 {
  overflow-wrap: anywhere;
}

body.home-premium .result-section .result-card:is(:first-child, :not(:first-child)) {
  grid-column: auto;
  grid-row: auto;
  grid-template: auto auto / minmax(0, 1fr);
}

body.home-premium .result-section .result-card:is(:first-child, :not(:first-child)) h3 {
  grid-area: auto;
  min-width: 0;
}

body.home-premium #inlineTrialForm button.btn-primary {
  background: var(--homepage-blue) !important;
  color: #fff !important;
  border-color: var(--homepage-blue) !important;
}

body.home-premium #inlineTrialForm button.btn-primary:focus-visible {
  outline: 2px solid var(--homepage-blue) !important;
  outline-offset: 3px;
}

@media (max-width: 360px) {
  body.home-premium .learning-timeline-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1400px) {
  body.home-premium.school-site .header .nav {
    gap: 12px !important;
  }

  body.home-premium.school-site .header .nav-links {
    gap: 8px !important;
  }
}

@media screen {
  body.home-premium [data-premium-reveal].is-pending {
    opacity: 0;
    translate: 0 20px;
  }

  body.home-premium [data-premium-reveal].is-revealed {
    animation: homepage-scroll-in .62s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms) both;
  }

  body.home-premium :is(.steps-grid, .testimonials-grid, .result-grid, .learning-timeline-grid) > :nth-child(2) {
    --reveal-delay: 80ms;
  }

  body.home-premium :is(.steps-grid, .result-grid, .learning-timeline-grid) > :nth-child(3) {
    --reveal-delay: 160ms;
  }

  body.home-premium .hero-stage.is-revealed .hero-piece {
    animation: homepage-piece-drift 4.2s ease-in-out var(--piece-delay, 0ms) 3;
  }

  body.home-premium .hero-stage .hero-piece--rook {
    --piece-delay: 350ms;
  }

  body.home-premium .hero-stage .hero-piece--pawn {
    --piece-delay: 700ms;
  }

  body.home-premium .child-journey__panel.is-active:not([hidden]) {
    animation: homepage-scroll-in .36s ease-out both;
  }

  @keyframes homepage-scroll-in {
    from { opacity: 0; translate: 0 20px; }
    to { opacity: 1; translate: 0 0; }
  }

  @keyframes homepage-piece-drift {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -9px; }
  }
}

body.home-premium .steps .step-card {
  grid-template-columns: 48px minmax(0, 1fr) !important;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
}

body.home-premium .step-illustration {
  grid-column: 1 / -1;
  grid-row: 1;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 2;
  background-color: #eaf0fa;
}

body.home-premium .step-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-premium .steps .step-number {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}

body.home-premium .steps .step-card h3 {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  align-self: center;
}

body.home-premium .steps .step-card p {
  grid-column: 1 / -1;
  grid-row: 3;
}

@media (max-width: 760px) {
  body.home-premium .steps .step-card {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto;
  }

  body.home-premium .steps .step-illustration {
    border-radius: 14px;
    margin-bottom: 8px;
  }
}

@media (hover: hover) {
  body.home-premium .step-illustration img {
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  }

  body.home-premium .step-card:hover .step-illustration img {
    transform: scale(1.045);
  }
}

body.home-premium .hero-image.hero-stage--mascot .hero-piece--knight {
  width: min(27%, 190px);
}

@media (min-width: 761px) {
  body.home-premium .hero-stage--mascot .hero-child-slot {
    bottom: 120px;
  }
}


/* Alfa Chess homepage — warm, observant, and grounded in real lessons. */
body.home-premium {
    --school-section-paper: var(--school-paper, #faf9f6);
    --school-section-surface: #ffffff;
    --school-section-ink: var(--school-ink, #10243f);
    --school-section-text: var(--school-text, #172033);
    --school-section-muted: var(--school-muted, #596579);
    --school-section-line: var(--school-line, rgba(16, 36, 63, .12));
    --school-section-amber-wash: #edf2fb;
}

body.home-premium .teacher-trust,
body.home-premium .story-section,
body.home-premium .result-section,
body.home-premium .parent-proof,
body.home-premium .advantages {
    padding-block: clamp(64px, 8vw, 104px) !important;
    border: 0 !important;
    background: var(--school-section-paper) !important;
    background-image: none !important;
}

body.home-premium .teacher-trust-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important;
    align-items: center !important;
    gap: clamp(32px, 5vw, 64px) !important;
}

body.home-premium .teacher-trust-copy {
    min-width: 0;
    padding-block: 0 !important;
}

body.home-premium .teacher-trust-copy .section-title,
body.home-premium .result-section .section-title,
body.home-premium .advantages .section-title {
    max-width: 16ch;
    margin: 0 0 20px !important;
    color: var(--school-section-ink) !important;
    font-size: clamp(2rem, 3.4vw, 3.4rem) !important;
    font-weight: 600 !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
    text-align: left !important;
    text-wrap: balance;
}

body.home-premium .teacher-trust-copy .section-lead,
body.home-premium .advantages > .container > .section-lead {
    max-width: 58ch;
    margin: 0 !important;
    color: var(--school-section-muted) !important;
    font-size: 1.05rem;
    line-height: 1.65;
}

body.home-premium .teacher-points {
    gap: 12px !important;
    margin-top: 32px !important;
    border: 0 !important;
}

body.home-premium .teacher-point {
    grid-template-columns: 44px minmax(128px, .82fr) minmax(0, 1.18fr) !important;
    gap: 12px 16px !important;
    align-items: center !important;
    padding: 18px 20px !important;
    border: 1px solid var(--school-section-line) !important;
    border-radius: 24px !important;
    background: var(--school-section-surface) !important;
    box-shadow: 0 4px 16px rgba(16, 36, 63, .035) !important;
}

body.home-premium .teacher-point > span {
    display: grid;
    grid-row: auto !important;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--school-section-amber-wash) !important;
    color: #654516 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums;
}

body.home-premium .teacher-point > strong {
    color: var(--school-section-ink) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

body.home-premium .teacher-point > p {
    grid-column: auto !important;
    color: var(--school-section-muted) !important;
    font-size: .94rem !important;
    line-height: 1.55 !important;
}

body.home-premium .teacher-media-column {
    grid-template: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 16px !important;
    min-width: 0;
}

body.home-premium .teacher-photo-panel,
body.home-premium .teacher-lesson-slot {
    position: relative;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border: 1px solid var(--school-section-line) !important;
    border-radius: 32px !important;
    background: #edf2fb !important;
    background-image: none !important;
    box-shadow: 0 12px 28px rgba(16, 36, 63, .07) !important;
    clip-path: none !important;
}

body.home-premium .teacher-photo-cutout {
    position: absolute !important;
    inset: auto 0 -10% 0 !important;
    display: block !important;
    width: 150% !important;
    height: 128% !important;
    max-width: none !important;
    left: 50% !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    transform: translateX(-50%) !important;
    filter: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.home-premium .teacher-photo-piece {
    position: absolute !important;
    display: block !important;
    z-index: 2 !important;
    right: auto;
    top: auto !important;
    bottom: 6% !important;
    left: 5% !important;
    width: min(19%, 72px) !important;
    height: auto;
    opacity: .78;
    filter: drop-shadow(0 4px 8px rgba(16, 36, 63, .14)) !important;
    transform: rotate(-4deg) !important;
}

body.home-premium .teacher-photo-panel {
    isolation: isolate;
    overflow: hidden !important;
    background: #10243f !important;
    border-color: rgba(36, 87, 197, .18) !important;
}

body.home-premium .teacher-lesson-slot {
    margin: 0 !important;
    background: #e8eef8 !important;
}

body.home-premium .teacher-lesson-slot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: 50% 42%;
}

body.home-premium .teacher-lesson-slot figcaption {
    right: 12px !important;
    bottom: 12px !important;
    left: 12px;
    width: fit-content;
    max-width: calc(100% - 24px);
    padding: 9px 13px !important;
    border-radius: 999px;
    background: rgba(16, 36, 63, .88) !important;
    color: #fff !important;
    font-size: .78rem !important;
    font-weight: 500 !important;
}

body.home-premium .story-section .container {
    width: min(100% - 48px, 1280px) !important;
    max-width: 1280px !important;
    padding-inline: 0 !important;
}

body.home-premium .story-panel {
    grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr) !important;
    align-items: center;
    gap: clamp(32px, 5vw, 64px) !important;
    padding: clamp(32px, 5vw, 64px) !important;
    overflow: hidden;
    border: 1px solid var(--school-section-line) !important;
    border-radius: 40px !important;
    background: var(--school-section-surface) !important;
    background-image: none !important;
    color: var(--school-section-text) !important;
    box-shadow: 0 12px 32px rgba(16, 36, 63, .05) !important;
    clip-path: none !important;
}

body.home-premium .story-kicker {
    display: inline-block;
    margin-bottom: 16px;
    color: #78531b !important;
    font-size: .88rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.home-premium .story-text h2 {
    max-width: 16ch;
    margin: 0 0 20px !important;
    color: var(--school-section-ink) !important;
    font-size: clamp(2rem, 3.4vw, 3.35rem) !important;
    font-weight: 600 !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
    text-wrap: balance;
}

body.home-premium .story-text p {
    color: var(--school-section-muted) !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
}

body.home-premium .signal-list {
    display: grid;
    gap: 8px;
    border: 0 !important;
}

body.home-premium .signal-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 4px 14px !important;
    padding: 16px 18px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #f8f7f3 !important;
    box-shadow: none !important;
}

body.home-premium .signal-item:last-child {
    background: var(--school-section-amber-wash) !important;
}

body.home-premium .signal-mark {
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--school-section-surface) !important;
    color: #654516 !important;
    font-size: .9rem !important;
    font-weight: 600 !important;
}

body.home-premium .signal-item:last-child .signal-mark {
    color: transparent !important;
    font-size: 0 !important;
}

body.home-premium .signal-item:last-child .signal-mark::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c47b12;
}

body.home-premium .signal-item h3 {
    margin: 2px 0 4px;
    color: var(--school-section-ink) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

body.home-premium .signal-item p {
    margin: 0;
    color: var(--school-section-muted) !important;
    font-size: .92rem !important;
    line-height: 1.5 !important;
}

body.home-premium .result-section .section-title,
body.home-premium .advantages .section-title {
    max-width: 18ch;
    margin-inline: 0 !important;
}

body.home-premium .result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px !important;
    margin-top: 36px !important;
    border: 0 !important;
}

body.home-premium .result-card {
    display: flex;
    min-width: 0;
    min-height: 228px;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px !important;
    border: 1px solid var(--school-section-line) !important;
    border-radius: 32px !important;
    background: var(--school-section-surface) !important;
    box-shadow: 0 6px 20px rgba(16, 36, 63, .04) !important;
}

body.home-premium .result-card h3 {
    margin: 16px 0 10px;
    color: var(--school-section-ink) !important;
    font-size: 1.18rem !important;
    font-weight: 600 !important;
    line-height: 1.3;
}

body.home-premium .result-label {
    color: #78531b !important;
    font-size: .86rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

body.home-premium .result-card p {
    margin: 0;
    color: var(--school-section-muted) !important;
    font-size: .94rem !important;
    line-height: 1.55 !important;
}

body.home-premium .parent-proof-panel {
    display: grid;
    grid-template-columns: minmax(240px, .82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
    padding: clamp(32px, 5vw, 60px) !important;
    border: 1px solid var(--school-section-line) !important;
    border-radius: 40px !important;
    border-left-width: 1px !important;
    background: var(--school-section-surface) !important;
    box-shadow: 0 12px 32px rgba(16, 36, 63, .05) !important;
}

body.home-premium .proof-label {
    display: inline-block;
    margin-bottom: 16px;
    color: #78531b;
    font-size: .88rem;
    font-weight: 600;
}

body.home-premium .parent-proof-panel h2 {
    max-width: 16ch;
    margin: 0 0 16px;
    color: var(--school-section-ink) !important;
    font-size: clamp(2rem, 3.2vw, 3.1rem) !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    letter-spacing: -.025em !important;
}

body.home-premium .parent-proof-intro {
    max-width: 54ch;
    margin: 0;
    color: var(--school-section-muted) !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
}

body.home-premium .proof-list {
    display: grid;
    gap: 8px;
}

body.home-premium .proof-step {
    position: relative;
    padding: 16px 20px 16px 28px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #f8f7f3 !important;
    box-shadow: none !important;
}

body.home-premium .proof-step::before {
    position: absolute;
    top: 23px;
    left: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c47b12;
    content: "";
}

body.home-premium .proof-step h3 {
    margin: 0 0 4px;
    color: var(--school-section-ink) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

body.home-premium .proof-step p {
    margin: 0;
    color: var(--school-section-muted) !important;
    font-size: .92rem !important;
    line-height: 1.5 !important;
}

body.home-premium .advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px !important;
    margin-top: 36px !important;
    border: 0 !important;
}

body.home-premium .age-card.advantage-card {
    min-width: 0;
    min-height: 220px;
    padding: 24px !important;
    border: 1px solid var(--school-section-line) !important;
    border-radius: 32px !important;
    background: var(--school-section-surface) !important;
    box-shadow: 0 6px 20px rgba(16, 36, 63, .04) !important;
}

body.home-premium .age-card.advantage-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    min-height: 0;
    background: var(--school-section-amber-wash) !important;
}

body.home-premium .advantage-icon {
    display: inline-grid;
    place-items: center;
    min-width: 48px;
    min-height: 40px;
    align-self: start;
    border-radius: 999px;
    background: var(--school-section-amber-wash);
    color: #654516 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums;
}

body.home-premium .age-card.advantage-card:last-child .advantage-icon {
    grid-row: span 2;
    align-self: center;
}

body.home-premium .age-card.advantage-card h3 {
    margin: 20px 0 10px;
    color: var(--school-section-ink) !important;
    font-size: 1.14rem !important;
    font-weight: 600 !important;
    line-height: 1.3;
}

body.home-premium .age-card.advantage-card p {
    margin: 0;
    color: var(--school-section-muted) !important;
    font-size: .94rem !important;
    line-height: 1.55 !important;
}

body.home-premium :is(.teacher-trust, .story-section, .result-section, .parent-proof, .advantages) :is(a, button, [tabindex]):focus-visible {
    outline: 3px solid #315df5;
    outline-offset: 3px;
}

@media (max-width: 1040px) {
    body.home-premium .teacher-trust-layout {
        grid-template-columns: 1fr !important;
        align-items: start !important;
    }

    body.home-premium .teacher-media-column {
        width: 100%;
    }

    body.home-premium .teacher-photo-panel,
    body.home-premium .teacher-lesson-slot {
        max-width: 420px;
    }

    body.home-premium .story-panel,
    body.home-premium .parent-proof-panel {
        grid-template-columns: 1fr !important;
    }

    body.home-premium .result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    body.home-premium .teacher-trust,
    body.home-premium .story-section,
    body.home-premium .result-section,
    body.home-premium .parent-proof,
    body.home-premium .advantages {
        padding-block: 56px !important;
    }

    body.home-premium .teacher-trust-layout {
        gap: 28px !important;
    }

    body.home-premium .teacher-point {
        grid-template-columns: 40px minmax(0, 1fr) !important;
        gap: 8px 12px !important;
        padding: 16px !important;
    }

    body.home-premium .teacher-point > p {
        grid-column: 2 !important;
    }

    body.home-premium .teacher-media-column {
        grid-template-columns: 1fr !important;
        justify-items: center;
    }

    body.home-premium .teacher-photo-panel,
    body.home-premium .teacher-lesson-slot {
        width: min(100%, 420px);
        max-width: none;
    }

    body.home-premium .story-section .container {
        width: min(100% - 32px, 1280px) !important;
    }

    body.home-premium .story-panel,
    body.home-premium .parent-proof-panel {
        gap: 24px !important;
        padding: 24px !important;
        border-radius: 32px !important;
    }

    body.home-premium .signal-item {
        padding: 14px !important;
    }

    body.home-premium .result-grid,
    body.home-premium .advantages-grid {
        grid-template-columns: 1fr;
    }

    body.home-premium .result-card,
    body.home-premium .age-card.advantage-card {
        min-height: 0;
        padding: 20px !important;
        border-radius: 28px !important;
    }

    body.home-premium .age-card.advantage-card:last-child {
        grid-column: auto;
        grid-template-columns: 48px minmax(0, 1fr);
    }
}



/* Balance the teacher feature across the full section instead of leaving a dead column. */
body.home-premium .teacher-trust-layout {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
    align-items: start !important;
    column-gap: clamp(32px, 5vw, 64px) !important;
    row-gap: 28px !important;
}

body.home-premium .teacher-trust-copy {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    gap: 24px;
}

body.home-premium .teacher-trust-copy .section-title {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
    max-width: 18ch;
    margin-bottom: 0 !important;
    font-size: clamp(2rem, 3vw, 2.8rem) !important;
    line-height: 1.12 !important;
}

body.home-premium .teacher-trust-copy .section-lead {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
    margin-top: 0 !important;
    max-width: 56ch;
}

body.home-premium .teacher-media-column {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

body.home-premium .teacher-photo-panel,
body.home-premium .teacher-lesson-slot {
    max-width: none !important;
    border-radius: 36px !important;
}

body.home-premium .teacher-points {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px !important;
    margin-top: 0 !important;
}

body.home-premium .teacher-point {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr;
    align-content: start;
    align-items: start !important;
    gap: 8px 12px !important;
    min-height: 144px;
    padding: 20px !important;
    border-radius: 28px !important;
}

body.home-premium .teacher-point > span {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
}

body.home-premium .teacher-point > strong {
    align-self: center;
}

body.home-premium .teacher-point > p {
    grid-column: 2 !important;
}

/* Give the story headline and its observations equal visual weight. */
body.home-premium .story-panel {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
    align-items: center !important;
    gap: clamp(32px, 4vw, 52px) !important;
}

body.home-premium .story-text h2 {
    max-width: 19ch;
    margin-bottom: 16px !important;
    font-size: clamp(1.95rem, 2.8vw, 2.7rem) !important;
    line-height: 1.12 !important;
}

body.home-premium .story-text p {
    font-size: 1.02rem !important;
}

body.home-premium .signal-list {
    gap: 10px;
}

body.home-premium .signal-item {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 76px;
    align-content: center;
    padding: 16px 20px !important;
}

body.home-premium .signal-item h3 {
    font-size: 1.04rem !important;
}

body.home-premium .signal-item p {
    font-size: .98rem !important;
}

/* Treat attention as the lead outcome and the remaining three as supporting notes. */
body.home-premium .result-grid {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    grid-template-rows: repeat(3, minmax(120px, auto));
    align-items: stretch;
    gap: 12px 16px !important;
}

body.home-premium .result-card:first-child {
    grid-column: 1;
    grid-row: 1 / span 3;
    justify-content: center;
    min-height: 0;
    padding: 32px !important;
    border-color: rgba(36, 87, 197, .18) !important;
    border-radius: 36px !important;
    background: #edf2fb !important;
}

body.home-premium .result-card:first-child h3 {
    max-width: 12ch;
    margin-block: 20px 12px;
    font-size: clamp(1.7rem, 2.5vw, 2.35rem) !important;
    line-height: 1.12;
}

body.home-premium .result-card:first-child p {
    max-width: 34ch;
    font-size: 1rem !important;
}

body.home-premium .result-card:not(:first-child) {
    display: grid;
    grid-template-columns: minmax(116px, .58fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 4px 20px;
    min-height: 120px;
    padding: 20px 24px !important;
    border-radius: 28px !important;
}

body.home-premium .result-card:not(:first-child) .result-label {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
}

body.home-premium .result-card:not(:first-child) h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 4px;
}

body.home-premium .result-card:not(:first-child) p {
    grid-column: 2;
    grid-row: 2;
}

@media (max-width: 1040px) {
    body.home-premium .teacher-trust-layout {
        grid-template-columns: 1fr !important;
    }

    body.home-premium .teacher-trust-copy .section-title,
    body.home-premium .teacher-trust-copy .section-lead,
    body.home-premium .teacher-media-column,
    body.home-premium .teacher-points {
        grid-column: 1;
        grid-row: auto;
    }

    body.home-premium .teacher-trust-copy .section-title {
        align-self: start;
        margin-bottom: 12px !important;
    }

    body.home-premium .teacher-media-column {
        width: 100%;
    }

    body.home-premium .teacher-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.home-premium .result-grid {
        grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
        grid-template-rows: repeat(3, minmax(112px, auto));
    }
}

@media (max-width: 760px) {
    body.home-premium .teacher-points {
        grid-template-columns: 1fr;
    }

    body.home-premium .teacher-point {
        min-height: 0;
    }

    body.home-premium .story-panel {
        grid-template-columns: 1fr !important;
    }

    body.home-premium .result-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    body.home-premium .result-card:first-child {
        grid-column: 1;
        grid-row: auto;
        min-height: 240px;
    }

    body.home-premium .result-card:not(:first-child) {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    body.home-premium .result-card:not(:first-child) :is(.result-label, h3, p) {
        grid-column: 1;
        grid-row: auto;
    }
}


/* Mobile layout is deliberately separate from the approved desktop compositions. */
@media (max-width: 1023px) {
  body.school-site .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
  body.school-site .footer-col { min-width: 0; }
  body.school-site .footer-col a { overflow-wrap: anywhere; }
  body.school-site .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  /* One phone layout formula shared by the homepage and every child page.
     The gutter grows gently on wider phones instead of jumping at a breakpoint. */
  body.school-site {
    --phone-gutter: clamp(16px, 4.25vw, 22px);
    --phone-section-space: clamp(32px, 8vw, 44px);
    --phone-card-space: clamp(16px, 4.5vw, 22px);
    --phone-card-gap: clamp(12px, 3.2vw, 16px);
    --phone-card-radius: 24px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.school-site :is(main, section, article, aside, .container, .glass-card, .card) {
    min-width: 0;
  }

  body.school-site :is(img, video, iframe, canvas, svg) {
    max-width: 100%;
  }

  body.school-site :is(.container, .header > .container) {
    width: calc(100% - 2 * var(--phone-gutter)) !important;
    margin-inline: auto !important;
  }

  body.school-site:not(.home-premium) :is(.cards-grid, .features-grid, .pricing-grid, .steps-grid, .refer-mutual__grid, .refer-terms__grid) > *,
  body.school-site.home-premium :is(.steps-grid, .testimonials-grid, .advantages-grid, .pricing-preview-grid, .result-grid) > * {
    min-width: 0;
    max-width: 100%;
  }

  body.school-site .container,
  body.school-site.home-premium .hero > .container,
  body.school-site.home-premium .testimonials .container {
    box-sizing: border-box;
    width: calc(100% - 2 * var(--phone-gutter)) !important;
    max-width: 560px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  body.school-site .header > .container {
    width: calc(100% - 2 * var(--phone-gutter)) !important;
    padding-inline: 0 !important;
  }

  body.school-site .header .logo-icon { width: 32px; height: 37px; }
  body.school-site .header .logo-wordmark { width: 112px; height: auto; }
  body.school-site .header .nav { min-height: 64px; }

  body.school-site :is(.btn-primary, .btn-secondary, .header-cta, .button) {
    min-height: 48px !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

  body.school-site :is(input, select, textarea) { font-size: 16px !important; }
  body.school-site .modal-content { width: calc(100% - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 24px 20px !important; }

  body.school-site:not(.home-premium) :is(.hero, .contacts-hero, .policy-hero, .pricing-hero, .refer-hero, .success-main),
  body.school-site:not(.home-premium) :is(.section, .article-section, .faq, .cta-section, .pricing-included, .refer-mutual, .refer-steps, .refer-terms, .refer-final) {
    padding-block: var(--phone-section-space) !important;
  }

  body.school-site:not(.home-premium) h1 { font-size: clamp(29px, 7.8vw, 36px) !important; line-height: 1.15 !important; }
  body.school-site:not(.home-premium) :is(h2, .section-title) { font-size: clamp(24px, 6.5vw, 29px) !important; line-height: 1.2 !important; }
  body.school-site:not(.home-premium) :is(.hero-subtitle, .section-lead, .section-subtitle) { font-size: 15px !important; line-height: 1.6 !important; }
  body.school-site:not(.home-premium) :is(.cards-grid, .features-grid, .pricing-grid, .steps-grid, .refer-mutual__grid, .refer-terms__grid) { gap: var(--phone-card-gap) !important; }
  body.school-site:not(.home-premium) :is(.glass-card, .card, .feature-card, .pricing-card, .refer-mutual__card, .refer-terms__card) { box-sizing: border-box; width: 100%; max-width: 100%; padding: var(--phone-card-space) !important; border-radius: var(--phone-card-radius) !important; min-height: 0; }
  body.school-site:not(.home-premium) .pricing-duration-panel { padding: 16px !important; }
  body.school-site:not(.home-premium) .pricing-duration-panel :is(button, label) { min-width: 0; }
  body.school-site:not(.home-premium) :is(.cta-content, .refer-final__inner) { width: 100%; padding: 24px 20px !important; }
  body.school-site:not(.home-premium) .policy-document { padding: 20px !important; overflow-wrap: anywhere; }
  body.school-site:not(.home-premium) .policy-document a { overflow-wrap: anywhere; word-break: break-word; }

  body.school-site.page-pricing .pricing-duration-panel { margin-bottom: 24px !important; }
  body.school-site.page-pricing .pricing-card,
  body.school-site.page-pricing .pricing-card.featured,
  body.school-site.page-pricing .pricing-card:hover,
  body.school-site.page-pricing .pricing-card.featured:hover {
    min-height: 0 !important;
    margin-top: 0 !important;
    padding: 20px !important;
    transform: none !important;
  }
  body.school-site.page-pricing .pricing-card.featured { padding-top: 60px !important; }
  body.school-site.page-pricing .pricing-header { min-height: 0 !important; margin-bottom: 16px !important; padding-bottom: 16px !important; }
  body.school-site.page-pricing .pricing-card .pricing-title { margin: 0 !important; padding: 0 !important; font-size: 20px !important; }
  body.school-site.page-pricing .pricing-card .pricing-price { font-size: 32px !important; margin: 12px 0 8px !important; }
  body.school-site.page-pricing .pricing-desc { min-height: 0 !important; font-size: 14px !important; line-height: 1.55 !important; }
  body.school-site.page-pricing .pricing-saving { min-height: 0 !important; margin-top: 8px !important; }
  body.school-site.page-pricing .pricing-saving:empty { display: none; }
  body.school-site.page-pricing .pricing-features { margin: 16px 0 0 !important; padding: 0 !important; }
  body.school-site.page-pricing .pricing-features li { margin: 0 !important; padding: 10px 0 10px 24px !important; font-size: 14px !important; line-height: 1.5; }
  body.school-site.page-pricing .pricing-features li::before { top: 10px; }
  body.school-site.page-pricing .tariff-button { border-radius: 999px !important; }
  body.school-site.page-pricing .pricing-trust-rail { gap: 0; margin-block: 20px; }
  body.school-site.page-pricing .pricing-trust-rail > div { padding-block: 12px; }

  body.school-site.home-premium > section,
  body.school-site.home-premium .outcome-story {
    min-height: 0 !important;
    padding-block: 36px !important;
  }

  body.school-site.home-premium .hero { padding-top: 24px !important; }
  body.home-premium .hero > .container { gap: 24px !important; }
  body.home-premium .hero-kicker { margin-bottom: 16px !important; font-size: 12px !important; }
  body.home-premium .hero-title { max-width: none; margin-bottom: 16px !important; font-size: clamp(31px, 8.6vw, 39px) !important; line-height: 1.12 !important; }
  body.home-premium .hero-subtitle { margin-bottom: 12px !important; font-size: 15px !important; line-height: 1.6 !important; }
  body.home-premium .hero-promise { margin-block: 12px !important; font-size: 14px !important; }
  body.home-premium .hero-cta { margin-top: 16px !important; }
  body.home-premium .hero-rating { margin-block: 12px 0 !important; }
  body.home-premium .hero-rating__card { justify-content: center; gap: 8px; padding: 12px 16px; }
  body.home-premium .hero-image.hero-stage { min-height: 340px !important; height: 340px !important; border-radius: 26px !important; }
  /* Account for the rail becoming shorter as its text wraps less on wider phones. */
  body.home-premium .hero-child-slot {
    bottom: clamp(88px, calc(198px - 20vw), 134px) !important;
    display: block !important;
    overflow: visible !important;
  }
  body.home-premium .hero-child-photo {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
    bottom: 0 !important;
    left: 50% !important;
    width: clamp(210px, 42vw, 230px) !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
    object-fit: contain !important;
    object-position: center bottom !important;
  }
  body.home-premium .hero-stage__rail { inset: auto 8px 8px !important; }
  body.home-premium .hero-stage__rail > div { padding: 10px !important; }
  body.home-premium .hero-stage__rail strong { font-size: 12px !important; }
  body.home-premium .hero-stage__rail p { font-size: 11px !important; line-height: 1.4 !important; }

  body.school-site.home-premium :is(.section-title, .outcome-story__center h2, .child-journey__intro h2, .story-text h2, .parent-proof-panel h2) {
    max-width: none !important;
    font-size: clamp(24px, 6.5vw, 29px) !important;
    line-height: 1.2 !important;
    margin: 0 0 16px !important;
    text-wrap: balance;
    text-align: left !important;
  }

  body.school-site.home-premium :is(.section-lead, .story-text > p, .parent-proof-intro, .child-journey__intro > p:last-child) {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 0 20px !important;
    text-align: left !important;
  }

  body.home-premium .outcome-story__canvas {
    width: calc(100% - 32px) !important;
    padding: 20px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible;
  }
  body.home-premium .outcome-story__center { grid-column: 1 / -1 !important; padding: 0 !important; }
  body.home-premium .outcome-story__sticky { height: auto !important; inset: auto !important; }
  body.home-premium .outcome-story__item,
  body.home-premium .outcome-story__item:is(.is-active, [aria-current="true"]) {
    grid-column: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 56px !important;
    padding: 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    border-radius: 18px !important;
    white-space: normal !important;
  }
  body.home-premium .outcome-story__item strong {
    min-width: 0;
    max-width: 100%;
    font-size: 14px !important;
    line-height: 1.4;
    white-space: normal !important;
    overflow-wrap: break-word;
  }
  body.home-premium .outcome-story__item.outcome-story__item--5 { grid-column: 1 / -1 !important; }

  body.home-premium .steps-grid { grid-template-columns: 1fr !important; gap: 10px !important; margin-top: 20px !important; }
  body.home-premium .step-card { grid-template-columns: 32px minmax(0, 1fr) !important; grid-template-rows: auto auto; gap: 6px 12px !important; padding: 18px !important; min-height: 0 !important; border-radius: 24px !important; }
  body.home-premium .step-number { grid-row: 1 / span 2; width: 32px; height: 32px; font-size: 14px; }
  body.home-premium .step-card h3 { grid-column: 2; min-height: 0 !important; font-size: 17px !important; line-height: 1.35 !important; }
  body.home-premium .step-card p { grid-column: 2; max-width: none; font-size: 14px !important; line-height: 1.55 !important; }
  body.home-premium .section-actions { margin-top: 20px !important; }

  body.home-premium .child-journey__container { width: calc(100% - 2 * var(--phone-gutter)); max-width: 560px; margin-inline: auto; }
  body.home-premium .child-journey__intro { margin-bottom: 16px; }
  body.home-premium .child-journey__nav-wrap { padding: 6px; border-radius: 24px !important; }
  body.home-premium .child-journey__tabs { scrollbar-width: none; }
  body.home-premium .child-journey__tabs::-webkit-scrollbar { display: none; }
  body.home-premium .child-journey__details { padding: 20px; border-radius: 24px !important; }
  body.home-premium .child-journey__panel h3 { margin-top: 8px; font-size: 22px; }
  body.home-premium .child-journey__summary { font-size: 15px; line-height: 1.55; }
  body.home-premium .child-journey__columns { gap: 16px; margin-top: 16px; }
  body.home-premium .child-journey__columns > div { padding: 0; background: transparent; border: 0; border-radius: 0; }
  body.home-premium .child-journey__columns h4 { margin-bottom: 8px; font-size: 15px; }
  body.home-premium .child-journey__columns li { font-size: 14px; line-height: 1.5; }
  body.home-premium .child-journey__footer { margin-top: 16px; gap: 12px; }
  body.home-premium .child-journey__footer p { font-size: 13px; }

  /* One full-width review, not a narrow sliver with arrows over the quote. */
  body.home-premium .testimonials .section-lead { margin-inline: 0 !important; }
  body.home-premium .testimonials-grid { display: flex; gap: 16px; padding: 0; margin: 20px 0 0; scroll-padding-inline: 0; align-items: stretch; }
  body.home-premium .testimonials .testimonials-grid .testimonial-card,
  body.home-premium .testimonials .testimonials-grid .testimonial-card:last-child {
    flex: 0 0 100%;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 14px;
    padding: 16px !important;
    border-radius: 26px !important;
    scroll-snap-align: center;
  }
  body.home-premium .testimonials .testimonial-photo-slot { aspect-ratio: 16 / 9; height: auto !important; min-height: 0 !important; margin: 0 !important; border-radius: 18px !important; }
  body.home-premium .testimonials .testimonial-photo-slot img { object-fit: cover !important; }
  body.home-premium .testimonials .testimonial-text { font-size: 15px; line-height: 1.6; }
  body.home-premium .testimonials .testimonial-author { align-self: end; gap: 3px; font-size: 14px; }
  body.home-premium .testimonials .testimonial-author span { font-size: 12px; }
  body.home-premium .testimonials .testimonial-piece { top: 24px; right: 24px; width: 34px; }
  body.home-premium .testimonials-mobile-nav { position: static; display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; padding: 0; transform: none; pointer-events: auto; }
  body.home-premium .testimonials-arrow { width: 44px; height: 44px; padding: 0; font-size: 24px; }
  body.home-premium .testimonials-position { color: var(--school-muted); font-size: 14px; font-variant-numeric: tabular-nums; }

  body.home-premium .teacher-trust-layout { gap: 20px !important; }
  body.home-premium .teacher-trust-copy { grid-row: auto; gap: 0; }
  body.home-premium .teacher-media-column { grid-row: 2; }
  body.home-premium .teacher-points { grid-row: 3; }
  body.home-premium .teacher-media-column { gap: 12px !important; }
  body.home-premium .teacher-photo-panel,
  body.home-premium .teacher-lesson-slot { border-radius: 24px !important; }
  body.home-premium .teacher-points { margin-top: 0 !important; gap: 10px !important; }
  body.home-premium .teacher-point { grid-template-columns: 32px minmax(0, 1fr) !important; gap: 6px 12px !important; padding: 16px !important; }
  body.home-premium .teacher-point > span { width: 32px; height: 32px; grid-row: 1 / span 2 !important; font-size: 14px !important; }
  body.home-premium .teacher-point > strong { font-size: 15px !important; }
  body.home-premium .teacher-point > p { grid-column: 2 !important; font-size: 14px !important; }
  body.home-premium .trial-band-inner { gap: 20px; }
  body.home-premium .trial-band h2 { font-size: 26px !important; line-height: 1.2; }
  body.home-premium .trial-band p { font-size: 15px; line-height: 1.6; }

  body.home-premium :is(.story-panel, .parent-proof-panel) { gap: 20px !important; padding: 20px !important; border-radius: 26px !important; }
  body.home-premium .signal-item { padding: 14px !important; grid-template-columns: 28px minmax(0, 1fr); gap: 8px 10px; min-height: 0; }
  body.home-premium .signal-mark { grid-row: auto !important; }
  body.home-premium .signal-item p { font-size: 14px !important; }
  body.home-premium .signal-item h3 { font-size: 15px !important; }
  body.home-premium .result-grid { gap: 10px !important; grid-template-rows: auto; margin-top: 20px; }
  body.home-premium .result-card:first-child,
  body.home-premium .result-card:not(:first-child) { display: block; min-height: 0; padding: 18px !important; border-radius: 24px !important; }
  body.home-premium .result-card:first-child h3,
  body.home-premium .result-card:not(:first-child) h3 { max-width: none; margin: 10px 0 6px; font-size: 18px !important; line-height: 1.3; }
  body.home-premium .result-card p,
  body.home-premium .result-card:first-child p { font-size: 14px !important; line-height: 1.55 !important; }
  body.home-premium .proof-label { margin-bottom: 12px; }
  body.home-premium .proof-step { padding: 12px 12px 12px 26px !important; }
  body.home-premium .proof-step h3 { font-size: 15px !important; }
  body.home-premium .proof-step p { font-size: 14px !important; }

  body.home-premium .pricing-preview .container > h3.section-title { font-size: 18px !important; margin-top: 16px !important; }
  body.home-premium .pricing-preview-grid { gap: 12px; margin-top: 20px; }
  body.home-premium .pricing-preview-card { min-height: 0; padding: 20px !important; border-radius: 24px !important; gap: 0; }
  body.home-premium .pricing-preview-label { margin-bottom: 0; font-size: 12px; line-height: 1.4; }
  body.home-premium .pricing-preview-price { font-size: 25px !important; margin-block: 8px; }
  body.home-premium .pricing-preview-meta { font-size: 14px !important; margin-block: 8px 16px; }
  body.home-premium .advantages-grid { gap: 10px !important; margin-top: 20px !important; }
  body.home-premium .age-card.advantage-card,
  body.home-premium .age-card.advantage-card:last-child { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 6px 12px; min-height: 0; padding: 18px !important; border-radius: 24px !important; }
  body.home-premium .age-card.advantage-card .advantage-icon { grid-column: 1; grid-row: 1 / span 2; width: 42px; min-width: 42px; min-height: 36px; font-size: 14px !important; white-space: nowrap; }
  body.home-premium .age-card.advantage-card h3 { grid-column: 2; margin: 0 !important; font-size: 16px !important; }
  body.home-premium .age-card.advantage-card p { grid-column: 2; font-size: 14px !important; }
  body.home-premium .faq-question { padding: 16px !important; gap: 12px; }
  body.home-premium .faq-question h3 { font-size: 16px; line-height: 1.4; }
  body.home-premium .faq-answer { font-size: 14px; }

  body.home-premium .parent-guides__top { gap: 16px; margin-bottom: 16px; }
  body.home-premium .parent-guides__controls { width: 100%; justify-content: center; }
  body.home-premium .parent-guide-slide__index { padding: 16px 20px 0; }
  body.home-premium .parent-guide-slide { min-height: 0; grid-template-rows: auto auto auto; }
  body.home-premium .parent-guide-slide__index { grid-row: auto; }
  body.home-premium .parent-guide-slide__copy { padding: 16px 20px 20px; }
  body.home-premium .parent-guide-slide h3 { font-size: 23px; }
  body.home-premium .parent-guide-slide p { font-size: 14px; }
  body.home-premium .parent-guide-slide__chess { min-height: 100px; height: 100px; margin: 0 20px 20px; }
  body.home-premium .parent-guide-slide__chess img { max-height: 86px; width: auto; }
  body.home-premium .final-cta h2 { font-size: 27px !important; line-height: 1.2; }
  body.home-premium .final-cta p { font-size: 15px; line-height: 1.6; }
  body.home-premium .final-cta__steps { gap: 10px; margin-block: 20px; }
  body.school-site .footer { padding-block: 32px !important; }
}


/* Homepage compositions requested in the visual review. */
@media (max-width: 760px) {
  body.home-premium.home-editorial .steps .steps-grid {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 16px !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px 18px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b5c9eb transparent;
    align-items: stretch;
  }
  body.home-premium.home-editorial .steps .steps-grid > .step-card {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 calc(100% - 24px);
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    height: auto !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    gap: 12px !important;
    box-sizing: border-box;
  }
  body.home-premium.home-editorial .steps .steps-grid > .step-card > * { min-width: 0; max-width: 100%; }
}
/* The old hero reset disables transform animations; translate keeps this entrance independent. */
body.home-premium.home-editorial :is(.hero-title, .hero-badge--large) {
  animation: homepage-welcome .55s ease-out both !important;
}
body.home-premium.home-editorial .hero-title { animation-delay: .09s !important; }
@keyframes homepage-welcome { from { translate: 0 9px; } to { translate: 0 0; } }
body.home-premium.home-editorial .hero-subtitle--about > p { margin: 0 0 16px; color: inherit; font: inherit; line-height: inherit; }
body.home-premium.home-editorial .hero-subtitle--about > p:last-child { margin-bottom: 0; }
body.home-premium.home-editorial .pricing-preview-card {
  transition: border-color .2s, box-shadow .2s !important;
}
body.home-premium.home-editorial .pricing-preview-card:is(:hover, :focus-within) {
  border-color: #2457c5 !important;
  box-shadow: 0 0 0 2px #2457c5, 0 14px 32px rgb(36 87 197 / 12%) !important;
  transform: none !important;
}
body.home-premium.home-editorial .pricing-preview-card > a:is(:hover, :focus-visible) {
  background: #2457c5 !important;
  border-color: #2457c5 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 5px 16px rgb(36 87 197 / 24%) !important;
}
.trial-curly-arrow { position: absolute; left: 0; width: 100%; overflow: visible; pointer-events: none; z-index: 2; color: #6e8ccb; }
.trial-curly-arrow path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trial-curly-arrow__line { stroke-dasharray: 5 7; }
@media (max-width: 760px) { .trial-curly-arrow { opacity: .7; } .trial-curly-arrow path { stroke-width: 2.5; } }
body.home-editorial {
  --editorial-blue: #2459c7;
  --editorial-ink: #10243f;
}

body.home-premium.home-editorial .hero {
  min-height: 0 !important;
  padding-top: 24px !important;
}

body.home-premium.home-editorial .hero > .container {
  align-items: start !important;
}

body.home-premium.home-editorial .hero-content {
  padding-top: 0 !important;
}

body.home-premium.home-editorial.school-site :is(p, .faq-answer, .child-journey__columns li, .child-journey__summary, .parent-guide-slide p) {
  font-size: 18px !important;
  line-height: 1.65 !important;
}

body.home-premium.home-editorial.school-site :is(.hero-stage__rail p, .form-privacy, .testimonial-author span, .child-journey__footer p) {
  font-size: 16px !important;
}

body.home-editorial :is(.steps, .child-journey, .testimonials, .teacher-trust, .learning-timeline, .pricing-preview, .faq) {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: clamp(80px, 7vw, 112px) !important;
}

body.home-editorial .section-ornament {
  position: absolute;
  z-index: -1;
  top: 14px;
  width: clamp(46px, 6vw, 86px);
  pointer-events: none;
}

body.home-editorial .section-ornament--right {
  right: clamp(12px, 2.5vw, 48px);
  rotate: 12deg;
}

body.home-editorial .section-ornament--left {
  left: clamp(12px, 2.5vw, 48px);
  rotate: -12deg;
}

body.home-editorial .section-ornament img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) sepia(1) hue-rotate(176deg) saturate(3) brightness(.82);
  opacity: .85;
}

/* Photo, quote and attribution overlap as three separate surfaces. */
body.home-premium.home-editorial .testimonials .testimonials-grid .testimonial-card {
  display: grid;
  grid-template-columns: 50% minmax(0, 50%);
  grid-template-rows: minmax(40px, auto) minmax(100px, 1fr) auto;
  gap: 0;
  min-height: 510px;
  padding: 22px 4px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

body.home-premium.home-editorial .testimonial-photo-slot {
  grid-area: 1 / 1 / 4 / 3;
  align-self: stretch;
  width: 74%;
  min-height: 420px;
  margin: 0 0 0 5%;
  aspect-ratio: auto;
  border-radius: 22px !important;
  overflow: hidden;
}

body.home-premium.home-editorial .testimonial-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.home-premium.home-editorial .testimonial-text {
  grid-area: 1 / 2 / 3 / 3;
  z-index: 2;
  align-self: start;
  margin: 20px 0 28px;
  padding: 22px;
  border: 1px solid #d8e2f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(16 36 63 / 9%);
  color: #10243f;
  font-size: 18px;
  line-height: 1.65;
}

body.home-premium.home-editorial .testimonial-meta {
  grid-area: 3 / 1 / 4 / 3;
  z-index: 3;
  justify-self: start;
  width: min(80%, 330px);
  margin: 0 0 -12px;
}

body.home-premium.home-editorial .testimonial-author {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #10243f;
  box-shadow: 0 8px 20px rgb(16 36 63 / 12%);
  color: #fff;
  font-size: 17px;
}

body.home-premium.home-editorial .testimonial-author span {
  color: #d8e4fa;
}

/* Teacher portrait above the actual lesson screenshot. */
body.home-premium.home-editorial .teacher-trust-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) !important;
  row-gap: 32px !important;
}

body.home-premium.home-editorial .teacher-trust-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding-top: 32px;
}

body.home-premium.home-editorial .teacher-points {
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr);
  align-self: start;
}

body.home-premium.home-editorial .teacher-media-column {
  display: grid;
  grid-column: 2;
  grid-row: 1 / 3;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 24px !important;
}

body.home-premium.home-editorial .teacher-photo-panel {
  aspect-ratio: 1 !important;
  min-height: 360px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home-premium.home-editorial .teacher-photo-cutout {
  inset: 0 auto 0 50% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body.home-premium.home-editorial .teacher-photo-piece {
  width: 18% !important;
  max-width: 105px;
  left: 0 !important;
  bottom: 14% !important;
  opacity: 1;
  filter: grayscale(1) sepia(1) hue-rotate(176deg) saturate(3) brightness(.95) !important;
}

body.home-premium.home-editorial .teacher-photo-knight {
  position: absolute;
  z-index: 2;
  bottom: 22%;
  right: 0;
  width: 22%;
  filter: grayscale(1) sepia(1) hue-rotate(176deg) saturate(3) brightness(.95);
}

body.home-premium.home-editorial .teacher-lesson-slot {
  aspect-ratio: auto !important;
}

body.home-premium.home-editorial .teacher-lesson-slot img {
  width: 100%;
  height: auto;
  object-fit: contain !important;
}

body.home-premium.home-editorial .teacher-lesson-slot figcaption {
  position: relative;
  inset: auto !important;
  width: auto;
  max-width: none;
  margin: 12px !important;
  font-size: 16px !important;
}

/* Full illustrations and consistent titles across the five outcomes. */
body.home-premium.home-editorial .result-section .result-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

body.home-premium.home-editorial .result-section .result-card:is(:first-child, :not(:first-child)) {
  padding: 12px 12px 22px !important;
  grid-template: auto 1fr / minmax(0, 1fr);
  gap: 18px;
}

body.home-premium.home-editorial .result-card img {
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}

body.home-premium.home-editorial .result-section .result-card:is(:first-child, :not(:first-child)) h3 {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 21px) !important;
  line-height: 1.35;
}

body.home-editorial .timeline-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #fcf6ee;
}

@media (max-width: 1100px) {
  body.home-premium.home-editorial .result-section .result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.home-premium.home-editorial .teacher-photo-panel {
    min-height: 300px !important;
  }
}

@media (max-width: 760px) {
  body.home-premium.home-editorial.school-site :is(p, .faq-answer, .child-journey__columns li, .child-journey__summary, .parent-guide-slide p) {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  body.home-editorial .section-ornament {
    width: 42px;
    top: 10px;
  }

  body.home-premium.home-editorial .teacher-trust-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.home-premium.home-editorial .teacher-trust-copy {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
  }

  body.home-premium.home-editorial .teacher-media-column {
    grid-column: 1;
    grid-row: 2;
  }

  body.home-premium.home-editorial .teacher-points {
    grid-column: 1;
    grid-row: 3;
  }

  body.home-premium.home-editorial .teacher-photo-panel {
    min-height: 0 !important;
    aspect-ratio: 1 !important;
  }

  body.home-premium.home-editorial .testimonials .testimonials-grid .testimonial-card {
    grid-template-columns: 50% minmax(0, 50%);
    min-height: 560px;
    padding-inline: 0 !important;
  }

  body.home-premium.home-editorial .testimonial-photo-slot {
    width: 82%;
    min-height: 510px;
    margin-left: 3%;
  }

  body.home-premium.home-editorial .testimonial-text {
    padding: 16px;
    font-size: 16px;
    line-height: 1.6;
  }

  body.home-premium.home-editorial .testimonial-author {
    padding: 14px 16px;
    font-size: 16px;
  }

  body.home-premium.home-editorial .result-section .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home-premium.home-editorial .result-section .result-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }

  body.home-editorial .learning-timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen {
  body.home-editorial .section-ornament.is-revealed img {
    animation: editorial-ornament-float 5s ease-in-out 3;
  }

  body.home-editorial :is(.result-card img, .timeline-illustration) {
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  }

  body.home-editorial :is(.result-card, .learning-timeline-grid article):hover img {
    transform: translateY(-5px);
  }

  @keyframes editorial-ornament-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -7px; }
  }
}

body.home-premium.home-editorial .testimonial-card--artem .testimonial-photo-slot img {
  object-position: 70% center;
}

body.home-premium.home-editorial .testimonial-card--alisa .testimonial-photo-slot img {
  object-position: 60% center;
}

body.home-premium.home-editorial .teacher-point > span {
  color: var(--editorial-blue) !important;
}

body.home-premium.home-editorial .teacher-point > strong {
  font-size: 18px !important;
  line-height: 1.45;
}

@media (max-width: 760px) {
  body.home-premium.home-editorial .teacher-point > strong {
    font-size: 17px !important;
  }
}

/* Requested homepage revision: equally sized learning panels. */
body.home-premium.home-editorial .homepage-learning-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
  padding-block: 48px;
}
body.home-premium.home-editorial .homepage-learning-pair > section {
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 3vw, 38px) 0 !important;
  border-radius: 24px;
  background: #edf3ff;
}
body.home-premium.home-editorial .homepage-learning-pair > section > .container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(16px, 2vw, 28px);
  box-sizing: border-box;
}
body.home-premium.home-editorial .homepage-learning-pair .section-title { font-size: clamp(26px, 2.6vw, 38px) !important; }
body.home-premium.home-editorial .homepage-learning-pair .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px; margin-top: 24px; }
body.home-premium.home-editorial .homepage-learning-pair .result-card { height: 100%; box-sizing: border-box; }
body.home-premium.home-editorial .homepage-learning-pair .result-card img { max-height: 145px; object-fit: contain; }
body.home-premium.home-editorial .homepage-learning-pair .result-card:last-child { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
body.home-premium.home-editorial .hero-trust--duration { display: block !important; }
body.home-premium.home-editorial .hero-trust--duration .hero-trust-item { width: fit-content; max-width: 100%; padding: 14px 18px; border: 1px solid #d8e2f5; border-radius: 16px; background: #edf3ff; box-sizing: border-box; }
body.home-premium.home-editorial .teacher-media-column { gap: 0 !important; }
body.home-premium.home-editorial .teacher-photo-cutout { object-position: center bottom !important; }
body.home-premium.home-editorial .teacher-lesson-slot { margin: 0 !important; border-radius: 0 0 24px 24px !important; }
@media (max-width: 999px) {
  body.home-premium.home-editorial .homepage-learning-pair { grid-template-columns: minmax(0, 1fr); }
}
/* Four outcomes opposite four age/pace cards. */
body.home-premium.home-editorial .homepage-learning-pair .result-card:last-child {
  grid-column: auto !important;
  width: 100% !important;
  justify-self: stretch;
}
body.home-premium.home-editorial .homepage-learning-pair :is(.result-grid, .advantages-grid) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr;
  gap: 14px !important;
}
body.home-premium.home-editorial .homepage-learning-pair .advantage-card:last-child { grid-column: auto !important; }
@media (min-width: 1000px) {
  body.home-premium.home-editorial .homepage-learning-pair { grid-template-rows: auto auto 1fr; row-gap: 16px; }
  body.home-premium.home-editorial .homepage-learning-pair > section {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    padding: 28px !important;
  }
  body.home-premium.home-editorial .homepage-learning-pair > section > .container { display: contents; }
  body.home-premium.home-editorial .homepage-learning-pair .section-title { grid-row: 1; margin: 0 !important; align-self: start; }
  body.home-premium.home-editorial .homepage-learning-pair .section-lead { grid-row: 2; margin: 0 !important; }
  body.home-premium.home-editorial .homepage-learning-pair :is(.result-grid, .advantages-grid) {
    grid-row: 3;
    margin: 0 !important;
    align-self: stretch;
    grid-template-rows: repeat(2, minmax(240px, 1fr));
  }
}
/* Hero and trial explanation form one continuous introduction. */
body.home-premium.home-editorial .hero {
  padding-bottom: 20px !important;
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  background: var(--school-paper, #faf9f6) !important;
}
body.home-premium.home-editorial .hero + .steps {
  padding-top: 24px !important;
  margin-top: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}
body.home-premium.home-editorial .hero::after,
body.home-premium.home-editorial .hero + .steps::before { content: none !important; }
/* Trial cards without numbered badges. */
body.home-premium.home-editorial .steps .step-card {
  grid-template-columns: minmax(0, 1fr) !important;
}
body.home-premium.home-editorial .steps .step-card h3 {
  grid-column: 1 / -1;
  margin-left: 0;
}
/* Outcomes presented as illustrated milestones, matching the learning stages. */
body.home-premium.home-editorial .result-section .result-card.result-card--milestone {
  display: grid;
  grid-template: auto auto auto 1fr / minmax(0, 1fr) !important;
  gap: 6px;
  padding: 16px !important;
  border: 1px solid #d0dffd !important;
  border-radius: 18px !important;
  background: #fff !important;
  text-align: left;
  align-content: start;
  align-items: start;
}
body.home-premium.home-editorial .homepage-learning-pair .result-card--milestone img {
  aspect-ratio: 4 / 3;
  height: auto;
  width: 100%;
  max-height: none;
  object-fit: contain;
  margin: 0 0 8px;
  border-radius: 12px;
  background: #fcf6ee;
}
body.home-premium.home-editorial .result-card--milestone > span {
  color: #2459c7;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
body.home-premium.home-editorial .result-card--milestone > p {
  margin: 0;
  color: #10243f;
  font-size: 15px !important;
  line-height: 1.5 !important;
}
/* Milestones use a vertical flow; legacy grid areas must not create implicit columns. */
body.home-premium.home-editorial .result-section .result-card.result-card--milestone {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-width: 0;
  gap: 8px;
  text-align: left !important;
}
body.home-premium.home-editorial .result-section .result-card--milestone > * {
  grid-area: auto !important;
  min-width: 0;
  max-width: 100% !important;
  width: auto;
  align-self: stretch;
  text-align: left !important;
}
body.home-premium.home-editorial .result-section .result-card--milestone > h3 {
  margin: 0 !important;
  font-size: clamp(17px, 1.45vw, 21px) !important;
  line-height: 1.3 !important;
  overflow-wrap: normal;
  word-break: normal;
}
body.home-premium.home-editorial .result-section .result-card--milestone > p {
  margin: 0 !important;
  overflow-wrap: normal;
  word-break: normal;
}
/* Mobile learning cards: one readable card per swipe. */
@media (max-width: 760px) {
  body.home-premium.home-editorial.school-site .homepage-learning-pair > section > .container {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box;
  }
  body.home-premium.home-editorial .homepage-learning-pair :is(.advantages-grid, .result-grid) {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding: 4px 0 16px;
    margin-top: 24px !important;
    scrollbar-width: thin;
    scrollbar-color: #b5c9eb transparent;
    align-items: stretch;
  }
  body.home-premium.home-editorial .homepage-learning-pair :is(.advantages-grid, .result-grid) > :is(.advantage-card, .result-card) {
    flex: 0 0 calc(100% - 24px);
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 22px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
  }
  body.home-premium.home-editorial .homepage-learning-pair .advantage-card > * { grid-area: auto !important; min-width: 0; max-width: 100%; }
  body.home-premium.home-editorial .homepage-learning-pair .advantage-icon { align-self: flex-start; }
  body.home-premium.home-editorial .homepage-learning-pair .advantage-card h3 { margin: 0 !important; overflow-wrap: normal; font-size: 20px !important; line-height: 1.35; }
  body.home-premium.home-editorial .homepage-learning-pair .advantage-card p { margin: 0 !important; }
  body.home-premium.home-editorial .homepage-learning-pair .result-card--milestone img { width: 100% !important; max-height: 210px; }
}

/* A warm brand accent makes the first-subscription offer easy to notice. */
body.home-premium.home-editorial .pricing-preview .pricing-discount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 24px auto 0;
  padding: 8px 22px 8px 8px;
  border: 1px solid #efb227;
  border-radius: 999px;
  background: #ffcf55;
  color: #10243f;
  box-shadow: 0 6px 18px rgb(184 124 13 / 12%);
}
body.home-premium.home-editorial .pricing-discount strong {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  background: #10243f;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
body.home-premium.home-editorial .pricing-discount span {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
body.home-premium.home-editorial .pricing-discount + .pricing-preview-grid {
  margin-top: 28px !important;
}
@media (max-width: 480px) {
  body.home-premium.home-editorial .pricing-preview .pricing-discount { gap: 10px; padding-right: 16px; }
  body.home-premium.home-editorial .pricing-discount strong { font-size: 23px; padding: 8px 12px; }
  body.home-premium.home-editorial .pricing-discount span { font-size: 15px; }
}

/* The post-pricing note must not inherit the intro's negative top margin. */
body.home-premium.home-editorial .pricing-preview-grid + .section-lead {
  position: static !important;
  margin: 28px auto 0 !important;
  padding: 0;
  max-width: 760px;
  text-align: center;
  color: var(--school-muted, #596579);
}
/* Match the introductory copy to its left-aligned headings. */
body.home-premium.home-editorial .homepage-learning-pair > section > .container > .section-lead {
  text-align: left !important;
  margin-inline: 0 !important;
}
.homepage-learning-pair .age-card .age-mark {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  justify-self: start;
  align-self: start;
}
/* All approach cards share the same white surface. */
body.home-premium.home-editorial .homepage-learning-pair .age-card.advantage-card {
  background: #fff !important;
}
/* Source illustrations are square: preserve their native ratio without side bands. */
body.home-premium.home-editorial .homepage-learning-pair .result-section .result-card--milestone > img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  background: transparent;
}
/* Teacher copy and lesson media share a common bottom edge. */
@media (min-width: 761px) {
  body.home-premium.home-editorial .teacher-trust-layout {
    align-items: stretch !important;
    grid-template-rows: auto minmax(0, 1fr);
  }
  body.home-premium.home-editorial .teacher-points {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-self: stretch;
    margin-top: 0 !important;
  }
  body.home-premium.home-editorial .teacher-media-column {
    grid-template-rows: auto auto !important;
    align-self: stretch;
  }
}
body.home-premium.home-editorial .teacher-lesson-slot {
  display: flex;
  flex-direction: column;
  border-radius: 18px !important;
  overflow: hidden !important;
}
body.home-premium.home-editorial .teacher-lesson-slot figcaption {
  position: static !important;
  order: -1;
  width: auto;
  margin: 0 !important;
  padding: 12px 16px !important;
  border-radius: 0 !important;
  background: #10243f;
  color: #fff;
  font-size: 16px !important;
  line-height: 1.4;
}
body.home-premium.home-editorial .teacher-lesson-slot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 !important;
}
@media (min-width: 761px) {
  body.home-premium.home-editorial .teacher-trust-layout { grid-template-rows: auto auto; }
  body.home-premium.home-editorial .teacher-points { grid-template-rows: repeat(3, auto); }
  body.home-premium.home-editorial .teacher-media-column {
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto !important;
  }
  body.home-premium.home-editorial .teacher-photo-panel {
    aspect-ratio: auto !important;
    min-height: 0 !important;
    height: 100% !important;
  }
}
body.home-premium.home-editorial .pricing-preview-card .pricing-preview-label {
  width: fit-content;
  max-width: 100%;
  align-self: center;
  justify-self: center;
  margin-inline: auto;
  text-align: center;
}
body.home-premium.home-editorial .pricing-preview-card:has(.pricing-recommendation) {
  position: relative;
  overflow: visible !important;
}
body.home-premium.home-editorial .pricing-recommendation {
  position: absolute;
  z-index: 2;
  top: -18px;
  right: 16px;
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #ffcf55;
  color: #10243f;
  box-shadow: 0 4px 12px rgb(16 36 63 / 13%);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transform: rotate(4deg);
  pointer-events: none;
}
@media (max-width: 480px) {
  body.home-premium.home-editorial .pricing-recommendation {
    right: 12px;
    padding: 6px 12px;
    font-size: 13px;
  }
}
/* Compact trial information and a rating in the mascot's bow-tie colour. */
body.home-premium.home-editorial .hero-trust--duration .hero-trust-item {
  min-height: 0 !important;
  height: auto !important;
  padding: 10px 14px !important;
}
body.home-premium.home-editorial .hero-trust--duration .hero-trust-item,
body.home-premium.home-editorial .hero-rating__card > span {
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 850;
  line-height: 1.4 !important;
  color: var(--school-text, #172033);
}
body.home-premium.home-editorial .hero-rating__card > strong {
  color: #f5a20a !important;
}
/* Keep CTA and information pills on one consistent vertical rhythm. */
body.home-premium.home-editorial .hero-conversion {
  --hero-info-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
}
body.home-premium.home-editorial .hero-conversion > :is(.hero-actions, .hero-rating, .hero-trust) {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100%;
}
body.home-premium.home-editorial .hero-conversion :is(.hero-rating__card, .hero-trust--duration .hero-trust-item) {
  display: flex !important;
  align-items: center;
  box-sizing: border-box;
  height: var(--hero-info-height) !important;
  min-height: var(--hero-info-height) !important;
  padding: 10px 16px !important;
  max-width: 100%;
}
@media (min-width: 1000px) {
  body.home-premium.home-editorial .hero > .container { align-items: stretch !important; }
  body.home-premium.home-editorial .hero-image.hero-stage {
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin-block: 0 !important;
  }
}
@media (max-width: 760px) {
  body.home-premium.home-editorial .hero-conversion { --hero-info-height: 64px; }
}
@media (min-width: 1000px) {
  body.home-premium.home-editorial .hero-content { padding-bottom: 0 !important; }
}
body.home-premium.home-editorial .pricing-preview .pricing-discount {
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  body.home-premium.home-editorial .pricing-discount > span:first-child { flex-basis: 100%; text-align: center; }
  body.home-premium.home-editorial .pricing-preview .pricing-discount { padding: 12px 16px; gap: 8px 10px; }
}
/* Keep the original human photo separate from all generated mascot assets. */
body.home-premium.school-site .teacher-media-column {
  grid-template-rows: auto auto !important;
  align-content: start !important;
  gap: 0 !important;
}
body.home-premium.school-site .teacher-photo-panel.teacher-photo-panel--team {
  position: relative !important;
  display: block;
  aspect-ratio: 3 / 2 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.home-premium.school-site .teacher-photo-panel--team .teacher-photo-cutout {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  transform: none !important;
  filter: none !important;
}
body.home-premium.school-site .teacher-photo-panel--team .teacher-photo-original {
  position: absolute !important;
  inset: auto auto 0 21.3% !important;
  z-index: 1;
  width: 44.444444% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}
body.home-premium.school-site .teacher-photo-panel--team .teacher-photo-mascots {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  pointer-events: none;
}
/* Align each mascot's visible soles, excluding transparent image padding. */
body.home-premium.school-site .teacher-photo-mascots--pawn {
  clip-path: inset(0 71% 0 0);
  transform: translateY(3.417969%) !important;
}
body.home-premium.school-site .teacher-photo-mascots--rook {
  clip-path: inset(0 0 0 56%);
  transform: translateY(3.222656%) !important;
}


/* Direction-aware branding; navigation stays pinned without moving page content. */
@media (min-width: 1024px) {
  body[class][class][class][class] .header .nav {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    column-gap: 24px !important;
  }
  body[class][class][class][class] .header .logo { grid-area: 1 / 1 / 2 / 4 !important; }
  body[class][class][class][class] .header .nav-links {
    grid-area: 2 / 2 !important;
    justify-self: center;
    column-gap: clamp(14px, 2.3vw, 32px) !important;
    padding-inline: 0 !important;
  }
  body[class][class][class][class] .header .header-actions { grid-area: 2 / 3 !important; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  body[class][class][class][class] .header .nav-links { column-gap: 14px !important; }
}
body[class][class][class][class] .header {
  top: 0 !important;
  transition: top 280ms ease;
}
body[class][class][class][class] .header.is-compact { top: -94px !important; }
body[class][class][class][class] .header .logo {
  opacity: 1;
  transition: opacity 220ms ease;
}
body[class][class][class][class] .header.is-compact .logo {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1023px) {
  body[class][class][class][class] .header.is-compact { top: -74px !important; }
  body[class][class][class][class] .header > .container {
    position: static !important;
    width: calc(100% - 32px) !important;
    height: auto !important;
    padding: 12px 0 !important;
  }
  body[class][class][class][class] .header .nav {
    display: grid !important;
    grid-template: 50px 48px / minmax(0, 1fr) 44px !important;
    align-items: center !important;
    gap: 12px !important;
    height: auto !important;
    min-height: 0 !important;
  }
  body[class][class][class][class] .header .logo {
    grid-area: 1 / 1 / 2 / 3 !important;
    justify-self: center;
    height: 50px !important;
    margin: 0 !important;
    flex-basis: auto !important;
  }
  body[class][class][class][class] .header .nav-links { display: none !important; }
  body[class][class][class][class] .header .header-actions {
    grid-area: 2 / 1 !important;
    justify-self: start;
    justify-content: flex-start !important;
    position: static !important;
    display: flex !important;
    padding: 0 !important;
  }
  body[class][class][class][class] .header .header-cta.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    line-height: 20px !important;
  }
  body[class][class][class][class] .header .hamburger {
    position: relative !important;
    inset: auto !important;
    grid-area: 2 / 2 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid #d3deed !important;
    border-radius: 12px !important;
    background: #fff !important;
    cursor: pointer;
    box-sizing: border-box;
  }
  body[class][class][class][class] .header .hamburger span {
    position: static !important;
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    flex: 0 0 2px;
    margin: 0 !important;
    border-radius: 2px;
    background: #10243f !important;
    transform: none !important;
    transition: transform 180ms ease, opacity 180ms ease;
  }
  body[class][class][class][class] .header .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
  body[class][class][class][class] .header .hamburger.active span:nth-child(2) { opacity: 0; }
  body[class][class][class][class] .header .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }
  body[class][class][class][class] .header.is-menu-open .nav-mobile {
    display: block !important;
    position: absolute !important;
    inset: 100% 0 auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
    margin: 0;
    padding: 12px 16px 20px !important;
    box-sizing: border-box;
    border: 0 !important;
    border-bottom: 1px solid #d3deed !important;
    background: #faf9f6 !important;
    box-shadow: 0 16px 24px rgb(16 36 63 / 8%);
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  body[class][class][class][class] .header .nav-mobile-links {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0 !important;
    list-style: none;
  }
  body[class][class][class][class] .header .nav-mobile-links li { margin: 0; padding: 0; }
  body[class][class][class][class] .header .nav-mobile-links a {
    display: block !important;
    padding: 12px 16px !important;
    border-radius: 12px;
    color: #10243f !important;
    font-size: 16px !important;
    line-height: 24px !important;
    text-decoration: none;
  }
  body[class][class][class][class] .header .nav-mobile-links a:hover { background: #eaf0fb; }
}

/* A little breathing room above the compact mobile controls. */
@media (max-width: 1023px) {
  body[class][class][class][class] .header.is-compact { top: -64px !important; }
}


/* A readable learning route; no sticky scenes or frame sequences. */
body.home-premium.school-site .learning-route {
  padding: 72px 0 !important;
  background: #f0f4fc !important;
  color: #142b49;
}
.learning-route__container { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.learning-route__intro { max-width: 780px; margin-bottom: 36px; }
body.home-premium.school-site .learning-route .learning-route__eyebrow {
  margin: 0 0 12px; color: #2457c5; font-size: 14px !important;
  font-weight: 750; line-height: 1.5 !important;
}
body.home-premium.school-site .learning-route h2 {
  margin: 0 0 16px; font-size: clamp(28px, 3.5vw, 42px) !important;
  line-height: 1.15 !important; letter-spacing: -.035em;
}
body.home-premium.school-site .learning-route .learning-route__lead {
  margin: 0; font-size: 17px !important; line-height: 1.65 !important; color: #5b6d88;
}
.learning-route__list {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px; margin: 0; padding: 0; list-style: none; align-items: stretch;
}
.learning-route__step { position: relative; min-width: 0; margin: 0; padding: 0; display: flex; flex-direction: column; scroll-margin-top: 170px; }
.learning-route__card {
  flex: 1; min-width: 0; padding: 12px 12px 22px; border: 1px solid #dbe4f3;
  border-radius: 24px; background: #fff;
}
.learning-route__visual {
  position: relative;
  display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden; background: transparent; margin-bottom: 18px;
}
body.home-premium.school-site .learning-route__visual img {
  position: absolute; inset: 0;
  display: block; width: 100% !important; height: 100% !important; object-fit: contain !important;
  min-width: 0; max-width: 100%; transform: none !important; animation: none !important;
}
.learning-route__copy { padding-inline: 6px; }
body.home-premium.school-site .learning-route h3 {
  margin: 0 0 12px; color: #142b49; font-size: 19px !important;
  line-height: 1.25 !important; letter-spacing: -.025em;
}
body.home-premium.school-site .learning-route .learning-route__copy p {
  margin: 0; font-size: 15px !important; line-height: 1.6 !important; color: #5b6d88;
}
body.home-premium.school-site .learning-route .learning-route__note {
  max-width: 760px; margin: 26px 0 0; font-size: 14px !important;
  line-height: 1.6 !important; color: #5b6d88;
}
/* Below 1100px five columns become too narrow for Russian headings. */
@media (max-width: 1099px) {
  .learning-route__container { max-width: 800px; }
  .learning-route__list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .learning-route__card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px; }
  .learning-route__visual { margin: 0; }
  .learning-route__copy { padding: 0; }
  body.home-premium.school-site .learning-route h3 { font-size: 22px !important; }
  body.home-premium.school-site .learning-route .learning-route__copy p { font-size: 16px !important; }
}
@media (max-width: 559px) {
  body.home-premium.school-site .learning-route { padding: 48px 0 !important; }
  .learning-route__container { width: calc(100% - 32px); }
  .learning-route__intro { margin-bottom: 28px; }
  body.home-premium.school-site .learning-route .learning-route__lead { font-size: 16px !important; }
  .learning-route__card { display: block; padding: 12px 12px 20px; border-radius: 20px; }
  .learning-route__visual { aspect-ratio: 2 / 1; margin-bottom: 16px; }
  .learning-route__copy { padding-inline: 4px; }
  body.home-premium.school-site .learning-route h3 { font-size: 21px !important; }
  body.home-premium.school-site .learning-route .learning-route__copy p { font-size: 15px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.home-premium.school-site .learning-route [data-premium-reveal] {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}


/* The teaching illustration shares the open paper background used on inner pages. */
body.home-premium.home-editorial .hero-image.hero-stage--teaching {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 24px;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  isolation: auto;
}
body.home-premium.home-editorial .hero-stage--teaching::before,
body.home-premium.home-editorial .hero-stage--teaching::after { display: none !important; }
.hero-teaching-visual { display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; }
.hero-teaching-visual img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; }
body.home-premium.home-editorial .hero-stage--teaching .hero-teaching-visual,
body.home-premium.home-editorial .hero-stage--teaching .hero-teaching-visual img {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}
body.home-premium.home-editorial .hero-stage--teaching .hero-stage__rail {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0 !important;
  transform: none !important;
  border: 1px solid #dce4f0 !important;
  border-radius: 26px !important;
  background: #fff !important;
  box-shadow: none !important;
}
@media (max-width: 999px) {
  .hero-teaching-visual img { max-height: 470px; }
}
@media (max-width: 760px) {
  body.home-premium.home-editorial .hero-image.hero-stage--teaching { gap: 20px; }
  .hero-teaching-visual img { max-height: none; }
}
@media (min-width: 761px) {
  body.home-premium.home-editorial .hero > .container { align-items: stretch !important; }
  body.home-premium.home-editorial .hero-content { padding-bottom: 0 !important; }
  body.home-premium.home-editorial .hero-image.hero-stage--teaching { align-self: stretch !important; margin-block: 0 !important; }
  .hero-teaching-visual { position: relative; }
  .hero-teaching-visual img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
}
/* The rating links to the full reviews page. */
body.home-premium .hero-rating__card[href] { text-decoration: none; cursor: pointer; }
body.home-premium .hero-rating__card[href]:hover { border-color: #2457c5; }
body.home-premium .hero-rating__card[href]:focus-visible { outline: 3px solid #89afff; outline-offset: 3px; }


/* Transparent illustrations retain their silhouettes without rectangular fills. */
body.home-premium.home-editorial .steps .step-illustration {
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
body.home-premium.home-editorial .steps .step-illustration img,
body.home-premium.home-editorial .result-section img.timeline-illustration {
  background: transparent !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; filter: none !important; object-fit: contain !important;
}
body.home-premium.home-editorial .steps .step-illustration img { width: 100% !important; height: 100% !important; }

body.home-premium .school-difference, body.home-premium .student-success { padding: 72px 0; }
body.home-premium .school-difference { background: #f0f4fc; }
body.home-premium .student-success { background: #faf9f6; }
body.home-premium .home-new-heading { max-width: 760px; margin: 0 0 32px; }
body.home-premium .home-new-heading .section-title { width: auto; max-width: none; text-align: left; margin: 0 0 16px !important; }
body.home-premium .home-new-heading > p { margin: 0; font-size: 17px; line-height: 1.65; color: #61728a; }
.student-success__list { display: grid; gap: 20px; }
body.home-premium .student-story {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) 164px; gap: 26px; align-items: center;
  padding: 24px; border: 1px solid #dce4f0; border-radius: 28px; background: #fff;
  box-shadow: 0 8px 24px rgb(16 36 63 / 4%);
}
body.home-premium .student-story__photo { display: block; width: 120px; height: 160px; object-fit: cover; object-position: center 40%; border-radius: 16px; border: 0; box-shadow: none; }
.student-story__copy { min-width: 0; }
body.home-premium .student-story__name { color: #2457c5; font-size: 18px; line-height: 1.4; font-weight: 800; }
body.home-premium .student-story__name span { display: block; margin-top: 4px; color: #61728a; font-size: 13px; font-weight: 500; }
body.home-premium .student-story h3 { margin: 12px 0 8px; color: #10243f; font-size: 23px; line-height: 1.25; font-weight: 800; }
body.home-premium .student-story p { margin: 0; color: #52657d; font-size: 16px; line-height: 1.65; }
.student-story__source { display: block; margin-top: 12px; color: #73839a; font-size: 13px; line-height: 1.4; }
.student-story__result { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; gap: 8px; padding: 16px 0 16px 20px; border-left: 1px solid #e3e9f3; text-align: center; }
.student-story__result svg { flex: 0 0 42px; }
.student-story__result strong { color: #10243f; font-size: 17px; line-height: 1.3; }
.student-story__result > span { color: #61728a; font-size: 13px; line-height: 1.45; }
.student-success__more { display: inline-flex; gap: 12px; margin-top: 26px; color: #2457c5; font-size: 16px; font-weight: 750; }
.student-success__more:hover { text-decoration: underline; }
.school-difference__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto repeat(5, auto); column-gap: 24px; }
.school-difference__card { display: grid; grid-row: span 6; grid-template-rows: subgrid; overflow: hidden; border: 1px solid #dce4f0; border-radius: 28px; background: #fff; }
.school-difference__card--ours { border-color: #bfd0f5; box-shadow: 0 8px 28px rgb(36 87 197 / 7%); }
.school-difference__header { display: grid; grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: 16px; min-height: 112px; padding: 24px 28px; border-bottom: 1px solid #e3e9f3; background: #fafbfe; }
.school-difference__card--ours .school-difference__header { background: #2457c5; border-color: #2457c5; }
.school-difference__header-copy > span { display: block; margin-bottom: 8px; color: #61728a; font-size: 13px; font-weight: 750; }
.school-difference__card--ours .school-difference__header-copy > span { color: #ffda76; }
body.home-premium .school-difference__emblem { display: block; width: 64px; height: 64px; object-fit: contain; border: 0; border-radius: 0; background: transparent; box-shadow: none; filter: none; }
body.home-premium .school-difference__header h3 { margin: 0; color: #10243f; font-size: 23px; font-weight: 800; line-height: 1.25; }
body.home-premium .school-difference__card--ours .school-difference__header h3 { color: #fff; }
.school-difference__card ul { display: contents; list-style: none; padding: 0; margin: 0; }
.school-difference__card li { display: flex; align-items: flex-start; gap: 14px; margin: 0 28px; padding: 22px 0; border-bottom: 1px solid #e3e9f3; }
.school-difference__card li:last-child { border-bottom: 0; }
.school-difference__mark { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #eef1f7; color: #687b97; font-size: 15px; font-weight: 800; }
.school-difference__card--ours .school-difference__mark { background: #fff0bb; color: #2457c5; }
body.home-premium .school-difference__card h4 { margin: 0 0 6px; color: #10243f; font-size: 16px; line-height: 1.4; font-weight: 800; }
body.home-premium .school-difference__card p { margin: 0; color: #61728a; font-size: 15px; line-height: 1.6; }
.school-difference__footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; }
body.home-premium .school-difference__footer p { margin: 0; color: #61728a; font-size: 16px; line-height: 1.6; }
.school-difference__footer strong { color: #10243f; font-weight: 750; }
.school-difference__footer .btn-primary { flex: 0 0 auto; }
@media (max-width: 1000px) {
  body.home-premium .student-story { grid-template-columns: 100px minmax(0, 1fr) 140px; gap: 20px; padding: 20px; }
  body.home-premium .student-story__photo { width: 100px; height: 150px; }
  .school-difference__header { padding: 22px; }
  .school-difference__card li { margin-inline: 22px; }
}
@media (max-width: 760px) {
  body.home-premium .school-difference, body.home-premium .student-success { padding: 44px 0; }
  body.home-premium .student-story { grid-template-columns: 92px minmax(0, 1fr); gap: 18px; border-radius: 24px; }
  body.home-premium .student-story__photo { width: 92px; height: 130px; align-self: start; }
  .student-story__result { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 0 0; border-left: 0; border-top: 1px solid #e3e9f3; text-align: left; }
  .student-story__result svg { width: 30px; height: 30px; flex-basis: 30px; }
  .school-difference__grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 20px; }
  .school-difference__card { display: block; grid-row: auto; }
  .school-difference__header { min-height: 0; }
  .school-difference__card ul { display: block; }
  .school-difference__footer { align-items: flex-start; flex-direction: column; }
  .school-difference__footer .btn-primary { white-space: normal; text-align: center; }
}
@media (max-width: 480px) {
  body.home-premium .student-story { gap: 16px; padding: 20px; }
  .student-story__copy { display: contents; }
  body.home-premium .student-story__name { grid-column: 2; grid-row: 1; align-self: center; }
  body.home-premium .student-story h3, body.home-premium .student-story p, .student-story__source { grid-column: 1 / -1; margin: 0; }
  body.home-premium .student-story h3 { font-size: 21px; }
  .school-difference__footer .btn-primary { width: 100%; }
}


/* A preview of the family account, with replaceable device screenshots. */
.account-showcase__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.account-showcase__demo-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 22px; border: 1px solid #b9ccf0; border-radius: 99px; color: #2457c5; background: #f4f7ff; font-weight: 750; text-align: center; text-decoration: none; }
.account-showcase__demo-link:hover { background: #e9f0ff; border-color: #2457c5; }
.account-device__preview:focus-visible, .account-showcase__demo-link:focus-visible { outline: 3px solid #245be9; outline-offset: 4px; }
body.home-premium .account-showcase__demo-note { margin: 12px 0; color: #61728a; font-size: 14px; line-height: 1.5; }
body.home-premium .account-showcase { padding: 72px 0; background: #fff; scroll-margin-top: 170px; }
.account-showcase__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.account-showcase__eyebrow { display: inline-block; margin-bottom: 20px; padding: 8px 14px; border-radius: 99px; background: #fff2c4; color: #10243f; font-size: 13px; font-weight: 800; }
body.home-premium .account-showcase__copy .section-title { max-width: none; margin: 0 0 20px !important; text-align: left; }
.account-showcase__copy .section-title span { color: #2457c5; }
body.home-premium .account-showcase__intro { margin: 0 0 26px; color: #61728a; font-size: 17px; line-height: 1.65; }
.account-showcase__features { display: grid; gap: 18px; list-style: none; margin: 0 0 28px; padding: 0; }
.account-showcase__features li { display: flex; align-items: flex-start; gap: 14px; }
.account-showcase__feature-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 12px; background: #eef3ff; color: #2457c5; }
.account-showcase__feature-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.home-premium .account-showcase__features h3 { margin: 0 0 4px; color: #10243f; font-size: 17px; line-height: 1.4; font-weight: 800; }
body.home-premium .account-showcase__features p { margin: 0; color: #61728a; font-size: 15px; line-height: 1.6; }
body.home-premium .account-showcase__note { margin: 12px 0 0; color: #73839a; font-size: 13px; line-height: 1.5; }
.account-showcase__visual { position: relative; min-width: 0; padding: 46px 38px 100px 0; }
.account-showcase__visual::before { content: ""; position: absolute; inset: 0 0 8px 24px; border-radius: 36px; background: #f0f4fc; }
.account-device { position: relative; margin: 0; overflow: hidden; background: #fff; }
.account-device--desktop { width: 100%; border: 1px solid #cdd9ed; border-radius: 20px; box-shadow: 0 20px 40px rgb(16 36 63 / 9%); transform: rotate(-2deg); }
.account-device__browser { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #e2e9f4; background: #f9fbff; }
.account-device__dots { display: flex; gap: 5px; }
.account-device__dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #c8d4e7; }
.account-device__address { flex: 1; padding: 5px 10px; border: 1px solid #e4eaf4; border-radius: 7px; color: #73839a; background: #fff; font-size: 11px; line-height: 1.4; }
.account-device__screen { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; }
.account-device__preview { display: block; width: 100%; }
.account-device__preview:focus-visible { outline: 3px solid #2457c5; outline-offset: -4px; }
body.home-premium .account-device--desktop .account-device__screen { min-height: 0; padding: 0; }
body.home-premium .account-device__screen img { display: block; width: 100%; max-width: none; height: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; filter: none; }
.account-device__label { display: block; margin-top: 10px; color: #61728a; font-size: 13px; line-height: 1.5; text-align: center; }
.account-device--phone { position: absolute; right: 0; bottom: 12px; width: 170px; padding: 7px; border: 1px solid #172e4c; border-radius: 28px; background: #10243f; box-shadow: 0 16px 28px rgb(16 36 63 / 18%); transform: rotate(5deg); }
.account-device--phone .account-device__screen { position: relative; aspect-ratio: 1 / 2; height: auto; min-height: 0; padding: 0; overflow: hidden; border-radius: 21px; }
/* Native mobile composition, rendered from /account-demo at a 390px viewport. */
.account-device--phone .account-device__preview { height: 100%; }
body.home-premium .account-device--phone .account-device__screen img { height: 100%; object-fit: contain; }
.account-device--phone .account-device__label { font-size: 11px; }
.account-device figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) {
  .account-showcase__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .account-showcase__visual { padding-right: 24px; padding-bottom: 110px; }
  .account-device--phone { width: 145px; }
}
@media (max-width: 900px) {
  .account-showcase__grid { grid-template-columns: 1fr; gap: 36px; }
  .account-showcase__visual { width: min(100%, 650px); justify-self: center; padding: 36px 42px 90px 0; }
  .account-device--phone { width: 170px; }
}
@media (max-width: 600px) {
  body.home-premium .account-showcase { padding: 44px 0; }
  .account-showcase__visual { width: min(100%, 360px); padding: 24px 16px; }
  .account-showcase__visual::before { inset: 0; border-radius: 28px; }
  .account-device--desktop { display: none; }
  .account-device__browser { gap: 8px; padding: 9px; }
  .account-device__address { font-size: 9px; }
  .account-device--desktop .account-device__label { font-size: 11px; }
  .account-device--phone { position: relative; right: auto; bottom: auto; width: min(100%, 300px); padding: 8px; margin-inline: auto; border-radius: 34px; transform: none; }
  .account-device--phone .account-device__screen { border-radius: 25px; }
  .account-device--phone .account-device__label { font-size: 10px; }
  .account-showcase__copy > .btn-primary { white-space: normal; text-align: center; }
}


.preview-offer { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 24px 0 36px; padding: 24px 28px; border: 1px solid #cbd9f5; border-radius: 26px; background: #fff; transition: background .2s, border-color .2s; }
.preview-offer.is-active { border-color: #ffbf00; background: #fff8df; }
.preview-offer__copy { max-width: 720px; }
.preview-offer__copy strong { color: #10243f; font-size: 21px; line-height: 1.3; font-weight: 800; }
body.home-premium .preview-offer__copy p { margin: 8px 0 10px; color: #61728a; font-size: 14px; line-height: 1.6; }
.preview-offer__copy > span { display: block; color: #2457c5; font-size: 14px; line-height: 1.5; font-weight: 700; }
.preview-offer__button { flex: 0 0 auto; min-height: 48px; padding: 12px 20px; border: 1px solid #2457c5; border-radius: 99px; background: #2457c5; color: #fff; font: inherit; font-size: 14px; font-weight: 800; line-height: 1.4; cursor: pointer; transition: background .18s, box-shadow .18s; }
.preview-offer__button:hover { background: #164abd; box-shadow: 0 6px 18px #2457c52b; }
.preview-offer__button[aria-pressed="true"] { background: #fff; color: #10243f; border-color: #d4c289; }
.preview-offer__button:focus-visible { outline: 3px solid #89afff; outline-offset: 3px; }
body.home-premium.home-editorial .pricing-preview-card { display: flex !important; flex-direction: column; gap: 0 !important; height: auto !important; min-height: 0 !important; text-align: center; border-top: 5px solid #2457c5 !important; }
body.home-premium.home-editorial .pricing-preview-card .pricing-preview-price { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 20px 0 14px; color: #10243f; font-size: clamp(24px, 2.3vw, 32px); font-weight: 850; line-height: 1.2; }
.preview-price-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
.preview-price-prefix { font-size: .75em; }
.preview-price-unit { font-size: 14px; font-weight: 600; white-space: nowrap; }
.preview-discount-details { display: grid; grid-template-rows: 0fr; opacity: 0; margin-bottom: 0; transition: grid-template-rows 420ms cubic-bezier(.22, 1, .36, 1), opacity 260ms ease, margin-bottom 420ms cubic-bezier(.22, 1, .36, 1); }
.preview-discount-details__inner { min-height: 0; overflow: hidden; }
.has-discount .preview-discount-details { grid-template-rows: 1fr; opacity: 1; margin-bottom: 18px; }
.preview-original { margin-bottom: 10px; color: #73839a; }
.preview-original s { display: block; font-size: 18px; line-height: 1.4; }
.preview-original small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; }
.preview-original [hidden] { display: none; }
.preview-saving { color: #10243f; font-size: 13px; line-height: 1.5; font-weight: 800; }
body.home-premium.home-editorial .pricing-preview-card .pricing-preview-meta { flex: 1; margin: 0 0 20px; text-align: center; }
body.home-premium.home-editorial .pricing-preview-card:has(.pricing-recommendation) { background: #fff !important; border-color: #cbd5e2 !important; border-top-color: #2457c5 !important; }
body.home-premium.home-editorial .pricing-preview-card .pricing-recommendation { background: #ffcf55; color: #10243f; border-color: #fff; }
body.home-premium.home-editorial .pricing-preview-card .pricing-preview-label { align-self: center; margin: 0 auto !important; }
body.home-premium.home-editorial .pricing-preview-card > a { width: 100%; min-height: 52px; }
@media (max-width: 760px) {
  body.home-premium .pricing-preview > .section-ornament { display: none; }
  .preview-offer { align-items: stretch; flex-direction: column; gap: 18px; padding: 22px; border-radius: 24px; }
  .preview-offer__button { align-self: flex-start; }
  body.home-premium.home-editorial .pricing-preview-card .pricing-preview-price { font-size: 30px; }
}
@media (max-width: 480px) { .preview-offer__button { width: 100%; } }

/* One lesson format per swipe, with a glimpse of the next card. */
@media (max-width: 767px) {
  body.home-premium.home-editorial .pricing-preview-grid {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px !important;
    max-width: 100%;
    margin-inline: 0;
    padding: 22px 2px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #b7cbed transparent;
    -webkit-overflow-scrolling: touch;
  }
  body.home-premium.home-editorial .pricing-preview-grid > .pricing-preview-card {
    flex: 0 0 calc(100% - 24px);
    width: calc(100% - 24px) !important;
    max-width: none;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}


/* Approved AlfaChess brand logo. Keep these dimensions consistent across site pages. */
body[class][class][class][class] .logo .logo-cartoon {
  display: block !important;
  width: 178px !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 50px !important;
  object-fit: contain !important;
  flex: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}
body[class][class][class][class] :is(.footer,.success-footer) .logo .logo-cartoon {
  width: 156px !important;
}
@media(max-width:600px) {
  body[class][class][class][class] .header .logo .logo-cartoon {
    width: 178px !important;
    max-height: 50px !important;
  }
}
