/* 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 [data-premium-reveal],
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;
    }
}
