/* =====================================================================
   SCHOOL LP — hero (/lp/ua/school/v1/). Scoped under .sh-hero.
   Product stage (calendar mockup + floating cards + photos) is sized in
   em off .sh-stage, so the whole composition scales from one font-size:
   desktop follows the vw-based rem, mobile follows the container width.
   ===================================================================== */

.sh-hero {
    position: relative;
    container-type: inline-size;
}

.sh-hero .hero-top {
    position: relative;
    z-index: 2;
}

.sh-hero .h1 {
    max-width: 76rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.sh-hero .h1 .title_span {
    margin-left: 0.75rem;
}

.sh-hero .hero_text_desc {
    margin-top: 1.25rem;
    margin-bottom: 2.25rem;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    color: #4b5563;
}

.niche-lp .sh-hero .bs-hero-migrate {
    margin-top: 1.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
}

/* --- Trust stats with icon tiles --- */
.sh-hero .hero_trust {
    gap: 2.5rem;
    margin-top: 2rem;
}

.sh-hero .hero_trust-item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.sh-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
}

.sh-trust-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.sh-trust-icon--blue {
    background: #e4f0ff;
    color: #3b82f6;
}

.sh-trust-icon--green {
    background: #ecf8dc;
    color: #5cc12a;
}

.sh-trust-icon--teal {
    background: #dcf5f1;
    color: #14b29f;
}

.sh-trust-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.sh-hero .hero_trust-num {
    font-size: 2rem;
    font-weight: 800;
}

.sh-hero .hero_trust-label {
    font-size: 1rem;
}

/* --- Stage --- */
.sh-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 2.25rem;
    font-size: 1rem;
}

.sh-stage__glow {
    position: absolute;
    inset: -16em -12em -2em;
    z-index: 0;
    background:
        radial-gradient(38em 22em at 18% 55%, rgba(255, 239, 140, 0.45), transparent 70%),
        radial-gradient(38em 22em at 82% 55%, rgba(120, 210, 255, 0.35), transparent 70%),
        radial-gradient(50em 18em at 50% 100%, rgba(180, 240, 200, 0.35), transparent 70%);
    pointer-events: none;
}

.sh-kid {
    position: absolute;
    z-index: 1;
    isolation: isolate;
}

.sh-kid::before {
    content: "";
    position: absolute;
    inset: 22% 4% 6% 8%;
    z-index: -1;
    border-radius: 48% 52% 44% 56% / 56% 46% 54% 44%;
    background: linear-gradient(160deg, #fff3a6, #ffe36e);
}

.sh-kid--right::before {
    inset: 20% 6% 8% 4%;
    border-radius: 54% 46% 52% 48% / 46% 56% 44% 54%;
}

.sh-kid img {
    display: block;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}

.sh-kid--left {
    left: calc(50% - 50em);
    top: -12.5em;
    width: 17em;
}

.sh-kid--right {
    left: calc(50% + 33em);
    top: -12.5em;
    width: 16em;
}

.sh-deco {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.1em;
}

.sh-deco span {
    font-size: 2.2em;
    line-height: 1;
}

.sh-deco--cap {
    left: calc(50% + 28.5em);
    top: -15em;
    width: 4.5em;
    height: 4.5em;
    background: linear-gradient(135deg, #d4efff, #8fd3ff);
    transform: rotate(-8deg);
    box-shadow: 0 0.75em 1.5em -0.5em rgba(41, 150, 220, 0.4);
}

.sh-deco--books {
    left: calc(50% + 27em);
    top: -6.5em;
    width: 3.5em;
    height: 3.5em;
    background: #fff;
    box-shadow: 0 0.5em 1.25em -0.25em rgba(17, 35, 54, 0.15);
}

.sh-deco--books span {
    font-size: 1.6em;
}

/* --- App mockup --- */
.sh-app {
    position: relative;
    z-index: 2;
    display: flex;
    width: 62em;
    margin: 0 auto;
    padding-bottom: 0.75em;
    border-radius: 1.25em;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 0.5em rgba(255, 255, 255, 0.75), 0 2em 4em -1em rgba(17, 35, 54, 0.22);
    text-align: left;
}

.sh-app__side {
    flex: none;
    width: 10.5em;
    padding: 1.25em 0.75em;
    background: #0f1720;
    color: #c7cfd8;
}

.sh-app__logo {
    display: flex;
    align-items: center;
    gap: 0.4em;
    margin: 0 0.4em 1.5em;
    color: #fff;
    font-size: 1.05em;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sh-app__logo-mark {
    width: 1em;
    height: 0.8em;
    border-radius: 0.2em 0.5em 0.5em 0.2em;
    background: var(--global-gradient, linear-gradient(90deg, #fff766, #29c6ff));
}

.sh-app__nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-app__nav li {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-bottom: 0.2em;
    padding: 0.6em 0.75em;
    border-radius: 0.5em;
    font-size: 0.72em;
    font-weight: 600;
}

.sh-app__nav li span {
    width: 1em;
    opacity: 0.8;
    text-align: center;
}

.sh-app__nav li.is--active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sh-app__main {
    flex: 1;
    min-width: 0;
    padding: 1.25em 1.5em 0;
    color: #1f2a37;
}

.sh-app__title {
    font-size: 1.05em;
    font-weight: 800;
}

.sh-app__toolbar {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0.9em 0 0.75em;
    font-size: 0.68em;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
}

.sh-chip {
    padding: 0.4em 0.75em;
    border: 1px solid #e3e7ec;
    border-radius: 0.5em;
}

.sh-chip--icon {
    padding: 0.4em 0.6em;
}

.sh-chip--select::after {
    content: "⌄";
    margin-left: 1.5em;
    opacity: 0.6;
}

.sh-app__range {
    margin-left: 0.75em;
}

.sh-app__views {
    display: flex;
    gap: 0.25em;
    margin-left: auto;
}

.sh-app__views span {
    padding: 0.4em 0.75em;
    border: 1px solid transparent;
    border-radius: 0.5em;
}

.sh-app__views .is--active {
    border-color: #93c5fd;
    background: #eef5ff;
    color: #2563eb;
}

.sh-cal {
    display: grid;
    grid-template-columns: 4.5em repeat(7, minmax(0, 1fr));
    grid-template-rows: 3.6em repeat(10, 2.35em);
    font-size: 0.62em;
    background-image: linear-gradient(#edf0f4 1px, transparent 1px);
    background-size: 100% 4.7em;
    background-position: 0 3.6em;
    border-top: 1px solid #edf0f4;
}

.sh-cal__head {
    grid-row: 1;
    padding-top: 0.6em;
    border-left: 1px solid #edf0f4;
    color: #8a94a0;
    text-align: center;
    font-weight: 600;
}

.sh-cal__head:first-child {
    border-left: 0;
}

.sh-cal__head b {
    display: block;
    color: #111827;
    font-size: 1.3em;
    font-weight: 700;
}

.sh-cal__time {
    grid-column: 1;
    padding-top: 0.3em;
    color: #8a94a0;
    font-weight: 600;
}

.sh-ev {
    margin: 0.2em 0.25em;
    padding: 0.4em 0.55em;
    border-left: 0.25em solid;
    border-radius: 0.5em;
    overflow: hidden;
    font-weight: 700;
    line-height: 1.25;
}

.sh-ev i,
.sh-ev small {
    display: block;
    font-style: normal;
    font-weight: 500;
    font-size: 0.92em;
    opacity: 0.7;
}

.sh-ev--blue {
    border-color: #7fb0ff;
    background: #e4efff;
}

.sh-ev--green {
    border-color: #8fd47a;
    background: #e6f7df;
}

.sh-ev--purple {
    border-color: #b39cff;
    background: #eee8ff;
}

.sh-ev--yellow {
    border-color: #f1c84f;
    background: #fff5d1;
}

.sh-ev--peach {
    border-color: #ffab85;
    background: #ffe9df;
}

/* --- Floating cards --- */
.sh-card {
    position: absolute;
    z-index: 3;
    padding: 1em 1.1em;
    border-radius: 1.1em;
    background: #fff;
    box-shadow: 0 1.25em 2.5em -0.75em rgba(17, 35, 54, 0.22), 0 0 0 1px rgba(17, 35, 54, 0.04);
    color: #1f2a37;
    text-align: left;
}

.sh-card--sub {
    left: calc(50% - 44em);
    top: 5em;
    width: 12.5em;
}

.sh-card--pay {
    left: calc(50% + 25em);
    top: -0.5em;
    width: 15em;
}

.sh-card--salary {
    left: calc(50% + 29.5em);
    top: 9.5em;
    width: 16em;
}

.sh-card__head {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: 0.82em;
    font-weight: 800;
}

.sh-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2em;
    height: 2em;
    border-radius: 0.6em;
    font-size: 0.9em;
    letter-spacing: -0.15em;
}

.sh-card__icon--green {
    background: #e3f7e6;
    color: #22a861;
}

.sh-card__icon--teal {
    background: #e0f6f3;
}

.sh-card__icon--blue {
    background: #e4f0ff;
    color: #3b82f6;
}

.sh-card__line {
    margin-top: 0.9em;
    font-size: 0.72em;
    font-weight: 600;
}

.sh-card__line small,
.sh-card__person small {
    display: block;
    margin-top: 0.15em;
    font-size: 1em;
    font-weight: 500;
    color: #6b7280;
}

.sh-card__box {
    margin-top: 0.8em;
    padding: 0.7em 0.75em;
    border-radius: 0.75em;
    background: #f5f7f9;
}

.sh-card__box small {
    display: block;
    font-size: 0.68em;
    font-weight: 600;
    color: #4b5563;
}

.sh-card__box b {
    display: block;
    margin: 0.15em 0 0.4em;
    font-size: 1.1em;
    font-weight: 800;
}

.sh-progress {
    display: block;
    height: 0.4em;
    border-radius: 1em;
    background: #e3e7ec;
    overflow: hidden;
}

.sh-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.sh-card__pay {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.75em;
}

.sh-card__pay b {
    margin-right: auto;
    white-space: nowrap;
    font-size: 1em;
    font-weight: 800;
}

.sh-card__btn {
    padding: 0.45em 0.9em;
    border-radius: 0.5em;
    background: #111;
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
}

.sh-card__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8em;
    height: 1.8em;
    border: 1px solid #e3e7ec;
    border-radius: 0.5em;
    font-size: 0.75em;
}

.sh-card__person {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin: 0.9em 0 1em;
    font-size: 0.72em;
    font-weight: 700;
}

.sh-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 3em;
    height: 3em;
    border-radius: 50%;
    background: linear-gradient(135deg, #fde68a, #f9a8d4);
    color: #7c2d12;
    font-weight: 800;
}

.sh-card__muted {
    display: block;
    font-size: 0.68em;
    font-weight: 600;
    color: #6b7280;
}

.sh-card__sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.3em;
}

.sh-card__sum b {
    font-size: 1.45em;
    font-weight: 800;
    color: #16a34a;
}

.sh-card__delta {
    padding: 0.35em 0.6em;
    border-radius: 0.6em;
    background: #e6f7ea;
    color: #16a34a;
    font-size: 0.68em;
    font-weight: 700;
}

/* --- Mobile: stage scales to container width; side photos, decor and the
   salary card hidden; calendar shows Mon–Thu only --- */
/* --- Niche pages: stacked trust stats (number over label), as on home --- */
.sh-hero .hero_trust--stacked {
    gap: 1.5rem;
}

.sh-hero .hero_trust--stacked .hero_trust-item {
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.sh-hero .hero_trust--stacked .hero_trust-num {
    font-size: 1.5rem;
    font-weight: 700;
}

.sh-hero .hero_trust--stacked .hero_trust-label {
    font-size: 0.875rem;
}

@media screen and (max-width: 767px) {
    .sh-hero .hero_text_desc {
        font-size: 1rem;
    }

    .sh-hero .hero_text_desc br {
        display: none;
    }

    .niche-lp .sh-hero .bs-hero-migrate {
        display: block;
        font-size: 0.875rem;
        text-align: center;
    }

    .sh-hero .hero_trust {
        gap: 1rem;
    }

    .sh-hero .hero_trust-divider {
        display: none;
    }

    .sh-hero .hero_trust {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .sh-hero .hero_trust-item {
        flex: 1;
        flex-direction: column;
        gap: 0.5rem;
    }

    .sh-trust-text {
        align-items: center;
        text-align: center;
    }

    .sh-trust-icon {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 0.625rem;
    }

    .sh-trust-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }

    .sh-hero .hero_trust-num {
        font-size: 1.125rem;
    }

    .sh-hero .hero_trust-label {
        font-size: 0.75rem;
    }

    .sh-stage {
        margin-top: 1.75rem;
        font-size: calc(100cqw / 34);
    }

    .sh-kid,
    .sh-deco,
    .sh-card--salary,
    .sh-app__side,
    .sh-cal--wk {
        display: none;
    }

    .sh-app {
        width: 100%;
        box-shadow: 0 0 0 0.35em rgba(255, 255, 255, 0.75), 0 1.5em 3em -1em rgba(17, 35, 54, 0.22);
    }

    .sh-app__main {
        padding: 1em 1em 0;
    }

    .sh-app__range,
    .sh-chip--select,
    .sh-chip--icon {
        display: none;
    }

    .sh-cal {
        grid-template-columns: 4.5em repeat(4, minmax(0, 1fr));
        font-size: 0.75em;
    }

    .sh-card {
        font-size: 1.15em;
    }

    .sh-card--sub {
        left: -0.25em;
        top: 12.5em;
        width: 12em;
    }

    .sh-card--pay {
        left: auto;
        right: -0.25em;
        top: 14.5em;
        width: 13.5em;
    }
}

@media screen and (max-width: 767px) {
    .sh-hero .hero_trust--stacked .hero_trust-item {
        text-align: center;
    }

    .sh-hero .hero_trust--stacked .hero_trust-num {
        font-size: 1rem;
    }

    .sh-hero .hero_trust--stacked .hero_trust-label {
        font-size: 0.75rem;
    }
}
