/*
 * 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;
    }
}


/* 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;
}


/* Shared presentation pass for the non-editorial Alfa Chess pages. */
body.school-site:not(.home-premium) {
    background: var(--school-paper, #faf9f6) !important;
    background-image: none !important;
    color: var(--school-text, #172033) !important;
}

body.school-site:not(.home-premium) :is(.bg-animated, .bg-gradient) {
    display: none !important;
}

body.school-site:not(.home-premium) :is(.hero, .section, .article-section, .faq, .cta-section, .contacts-hero, .policy-hero, .policy-section, .pricing-hero, .pricing-included, .refer-hero, .refer-mutual, .refer-steps, .refer-terms, .refer-final, .success-main) {
    background-image: none !important;
    border-color: transparent;
}

body.school-site:not(.home-premium) .container {
    width: min(100% - 48px, 1200px);
    max-width: 1200px;
    margin-inline: auto;
}

body.school-site:not(.home-premium) :is(h1, h2, h3, h4) {
    color: var(--school-ink, #10243f) !important;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
    font-weight: 600 !important;
    letter-spacing: -.02em !important;
    text-wrap: balance;
}

body.school-site:not(.home-premium) h1 {
    max-width: 15ch;
    margin: 0 0 24px;
    font-size: clamp(2.5rem, 5.2vw, 4.25rem);
    line-height: 1.06;
}

body.school-site:not(.home-premium) :is(h2, .section-title) {
    max-width: 22ch;
    margin: 0 0 24px;
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    line-height: 1.12;
}

body.school-site:not(.home-premium) h3 {
    font-size: clamp(1.08rem, 1.7vw, 1.32rem);
    line-height: 1.3;
}

body.school-site:not(.home-premium) :is(p, li) {
    color: var(--school-muted, #596579) !important;
    -webkit-text-fill-color: currentColor !important;
    line-height: 1.65;
}

body.school-site:not(.home-premium) :is(.hero, .contacts-hero, .policy-hero, .pricing-hero, .refer-hero, .success-main) {
    min-height: 0 !important;
    padding-block: clamp(56px, 7vw, 88px) !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.school-site:not(.home-premium) :is(.hero-two-col, .hero-grid, .contacts-grid, .policy-hero-grid, .refer-hero__grid, .success-layout) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
}

body.school-site:not(.home-premium) :is(.hero-content, .hero-copy, .refer-hero__content, .success-copy) {
    min-width: 0;
    max-width: 660px;
}

body.school-site:not(.home-premium) :is(.hero-content > p, .hero-copy > p, .refer-hero__content > p, .contacts-hero p) {
    max-width: 58ch;
    font-size: 1.08rem;
    line-height: 1.65;
}

body.school-site:not(.home-premium) .hero-badge {
    display: inline-block;
    margin: 0 0 16px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #73501d !important;
    box-shadow: none !important;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.school-site:not(.home-premium) :is(.hero-image, .hero-visual, .hero-stage, .refer-hero__visual, .success-visual) {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--school-line, rgba(16, 36, 63, .12)) !important;
    border-radius: var(--school-radius-panel, 40px) !important;
    background: #f0ebe2 !important;
    background-image: none !important;
    box-shadow: 0 12px 32px rgba(16, 36, 63, .06) !important;
    clip-path: none !important;
}

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: clamp(56px, 7vw, 88px) !important;
    border: 0 !important;
    background-color: transparent !important;
}

body.school-site:not(.home-premium) :is(.section-header, .section-title) {
    color: var(--school-ink, #10243f) !important;
}

body.school-site:not(.home-premium) :is(.cards-grid, .features-grid, .steps-grid, .compare-grid, .contacts-grid, .pricing-grid, .refer-mutual__grid, .refer-terms__grid, .stats-row, .trust-grid, .pieces-grid, .process-steps) {
    gap: 20px !important;
}

body.school-site:not(.home-premium) :is(.feature-card, .compare-card, .step-card, .stat-item, .trust-item, .glass-card, .pricing-card, .faq-item, .signup-form-card, .cta-box, .refer-side, .refer-reward, .offer-summary, .offer-note, .contacts-inner, .policy-toc, .success-shell, .success-mark, .visual-copy, .visual-statuses) {
    min-width: 0;
    border: 1px solid var(--school-line, rgba(16, 36, 63, .12)) !important;
    border-radius: var(--school-radius-card, 32px) !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(16, 36, 63, .045) !important;
}

body.school-site:not(.home-premium) :is(.feature-card, .compare-card, .step-card, .stat-item, .trust-item, .glass-card, .pricing-card, .signup-form-card, .cta-box, .refer-side, .refer-reward, .offer-summary, .offer-note, .contacts-inner, .policy-toc, .success-shell, .visual-copy, .visual-statuses) {
    padding: clamp(20px, 3vw, 32px) !important;
}

body.school-site:not(.home-premium) :is(.feature-card, .compare-card, .step-card, .stat-item, .trust-item, .pricing-card) {
    transform: none !important;
    transition: border-color .16s ease, background-color .16s ease !important;
}

body.school-site:not(.home-premium) :is(.feature-card, .compare-card, .step-card, .stat-item, .trust-item, .pricing-card):hover {
    border-color: rgba(16, 36, 63, .2) !important;
    box-shadow: 0 8px 24px rgba(16, 36, 63, .045) !important;
    transform: none !important;
}

body.school-site:not(.home-premium) :is(.feature-icon, .step-number, .timeline-num, .timeline-dot, .advantage-icon, .stat-number) {
    color: #73501d !important;
    font-weight: 600 !important;
}

body.school-site:not(.home-premium) :is(.timeline-item, .proof-step, .pricing-included-list li) {
    border-color: var(--school-line, rgba(16, 36, 63, .12)) !important;
}

body.school-site:not(.home-premium) :is(.article-section, .article-content) {
    color: var(--school-text, #172033);
}

body.school-site:not(.home-premium) .article-content {
    max-width: 72ch;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.75;
}

body.school-site:not(.home-premium) .article-content :is(h2, h3) {
    margin-top: 1.8em;
    margin-bottom: .6em;
}

body.school-site:not(.home-premium) .article-content :is(p, li) {
    color: var(--school-text, #172033);
}

body.school-site:not(.home-premium) :is(.faq, .faq-list) {
    max-width: 920px;
    margin-inline: auto;
}

body.school-site:not(.home-premium) .faq-item {
    margin-block: 12px;
    padding: 8px 20px !important;
}

body.school-site:not(.home-premium) :is(.cta-section, .refer-final) {
    background: #f0f3fa !important;
}

body.school-site:not(.home-premium) :is(.cta-content, .refer-final__inner) {
    width: min(100% - 48px, 1120px);
    margin-inline: auto;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--school-line, rgba(16, 36, 63, .12));
    border-radius: var(--school-radius-panel, 40px);
    background: #fff;
}

body.school-site:not(.home-premium) :is(.pricing-card, .compare-card) :is(h2, h3) {
    color: var(--school-ink, #10243f) !important;
}

body.school-site:not(.home-premium) .pricing-card.featured {
    border-color: rgba(245, 158, 11, .5) !important;
    background: #fffaf0 !important;
}

body.school-site:not(.home-premium) :is(.pricing-price, .stat-number, .trust-number) {
    color: var(--school-ink, #10243f) !important;
    font-variant-numeric: tabular-nums;
}

body.school-site:not(.home-premium) :is(.policy-layout, .policy-hero-grid) {
    align-items: start;
}

body.school-site:not(.home-premium) .policy-layout {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 760px);
    align-items: start;
    gap: 32px;
    max-width: 1080px;
    margin-inline: auto;
}

body.school-site:not(.home-premium) .policy-document {
    min-width: 0;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--school-line, rgba(16, 36, 63, .12));
    border-radius: var(--school-radius-panel, 40px);
    background: #fff;
    color: var(--school-text, #172033);
    line-height: 1.75;
}

body.school-site:not(.home-premium) .policy-document :is(p, li) {
    color: var(--school-text, #172033);
}

body.school-site:not(.home-premium) .policy-toc {
    position: sticky;
    top: 24px;
    padding: 20px !important;
}

body.school-site:not(.home-premium) :is(.contacts-grid, .pricing-grid, .refer-hero__grid, .success-layout) > * {
    min-width: 0;
}

body.school-site:not(.home-premium) .hero-two-col > div:first-child > div[style*="grid-template-columns"] {
    color: var(--school-text, #172033) !important;
}

body.school-site:not(.home-premium) .hero-two-col > div:first-child > div[style*="grid-template-columns"] > div {
    border-color: rgba(16, 36, 63, .12) !important;
    border-radius: 20px !important;
    background: #fffaf0 !important;
    color: var(--school-ink, #10243f) !important;
    font-weight: 600;
}

body.school-site:not(.home-premium) :is(.contacts-hero, .pricing-hero, .refer-hero, .policy-hero) :is(h1, h2) {
    color: var(--school-ink, #10243f) !important;
}

body.school-site:not(.home-premium) :is(.hero, .contacts-hero, .policy-hero, .pricing-hero, .refer-hero, .section, .article-section, .faq, .cta-section, .pricing-included, .refer-mutual, .refer-steps, .refer-terms, .refer-final) :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #315df5;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    body.school-site:not(.home-premium) :is(.hero-two-col, .hero-grid, .contacts-grid, .policy-hero-grid, .refer-hero__grid, .success-layout) {
        grid-template-columns: 1fr;
    }

    body.school-site:not(.home-premium) :is(.cards-grid, .features-grid, .steps-grid, .compare-grid, .pricing-grid, .refer-mutual__grid, .refer-terms__grid, .stats-row, .trust-grid, .pieces-grid, .process-steps) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.school-site:not(.home-premium) .policy-layout {
        grid-template-columns: 1fr;
    }

    body.school-site:not(.home-premium) .policy-toc {
        position: static;
    }
}

@media (max-width: 600px) {
    body.school-site:not(.home-premium) .container {
        width: min(100% - 32px, 1200px);
    }

    body.school-site:not(.home-premium) :is(.hero, .contacts-hero, .policy-hero, .pricing-hero, .refer-hero, .success-main) {
        padding-block: 48px !important;
    }

    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: 48px !important;
    }

    body.school-site:not(.home-premium) h1 {
        font-size: clamp(2.15rem, 10vw, 3rem);
    }

    body.school-site:not(.home-premium) :is(h2, .section-title) {
        font-size: clamp(1.7rem, 8vw, 2.35rem);
    }

    body.school-site:not(.home-premium) :is(.cards-grid, .features-grid, .steps-grid, .compare-grid, .pricing-grid, .refer-mutual__grid, .refer-terms__grid, .stats-row, .trust-grid, .pieces-grid, .process-steps) {
        grid-template-columns: 1fr !important;
    }

    body.school-site:not(.home-premium) :is(.cta-content, .refer-final__inner) {
        width: min(100% - 32px, 1120px);
        padding: 24px;
        border-radius: 32px;
    }

    body.school-site:not(.home-premium) .policy-document {
        padding: 24px;
        border-radius: 32px;
    }
}




/* 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; }
}


/* Same entrance timing and movement as the homepage. JS opts elements in;
   without it, every page remains visible. Use translate, not transform, so
   existing card flips and mirrored illustrations keep their own transforms. */
@media screen {
  body.school-site [data-page-reveal].page-reveal--pending {
    opacity: 0 !important;
  }

  body.school-site [data-page-reveal].page-reveal--entering {
    animation: page-content-enter .62s cubic-bezier(.22, 1, .36, 1)
      var(--page-reveal-delay, 0ms) both !important;
  }

  @keyframes page-content-enter {
    from { opacity: 0; translate: 0 20px; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media print {
  [data-page-reveal] {
    opacity: 1 !important;
    animation: none !important;
    translate: none !important;
  }
}


/* 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;
  }
}
