/* EasyESL Phase 3 homepage — scoped presentation only. */

body.easyesl-homepage-v5-active .site-content > .ast-container,
body.easyesl-homepage-v5-active .site-content .ast-container,
body.easyesl-homepage-v5-active #primary,
body.easyesl-homepage-v5-active .site-main,
body.easyesl-homepage-v5-active .entry-content {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.easyesl-homepage-v5-active article.page,
body.easyesl-homepage-v5-active .entry-content > p {
    margin: 0;
}

.easyesl-home-v5,
.easyesl-home-v5 * {
    box-sizing: border-box;
}

.easyesl-home-v5 {
    --ev5-navy: #20385f;
    --ev5-navy-deep: #142b52;
    --ev5-orange: #f28a3f;
    --ev5-orange-deep: #db6f28;
    --ev5-orange-text: #b5541b;
    --ev5-aqua: #d9f1ef;
    --ev5-aqua-strong: #b9e7e4;
    --ev5-page: #eef6f5;
    --ev5-warm: #fffaf4;
    --ev5-white: #ffffff;
    --ev5-muted: #5f708d;
    --ev5-line: rgba(32, 56, 95, .14);
    --ev5-shadow: 0 22px 60px rgba(24, 50, 87, .12);
    position: relative;
    overflow: hidden;
    overflow: clip;
    width: 100%;
    color: var(--ev5-navy);
    background: var(--ev5-page);
    font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

.easyesl-home-v5 img {
    display: block;
    max-width: 100%;
    height: auto;
}

.easyesl-home-v5 h1,
.easyesl-home-v5 h2,
.easyesl-home-v5 h3,
.easyesl-home-v5 p,
.easyesl-home-v5 ul,
.easyesl-home-v5 ol,
.easyesl-home-v5 figure {
    margin: 0;
}

.easyesl-home-v5 h1,
.easyesl-home-v5 h2,
.easyesl-home-v5 h3,
.easyesl-home-v5 strong,
.easyesl-home-v5 .ev5-button,
.easyesl-home-v5 .ev5-eyebrow {
    font-family: "Be Vietnam Pro", "Nunito Sans", system-ui, sans-serif;
}

.easyesl-home-v5 h1,
.easyesl-home-v5 h2,
.easyesl-home-v5 h3 {
    color: var(--ev5-navy);
    letter-spacing: -.035em;
}

.easyesl-home-v5 h1 {
    max-width: 760px;
    font-size: clamp(3rem, 4.9vw, 4.55rem);
    line-height: 1.015;
    font-weight: 800;
}

.easyesl-home-v5 h1 span {
    color: var(--ev5-orange-text);
}

.easyesl-home-v5 h2 {
    max-width: 780px;
    font-size: clamp(2.35rem, 3.8vw, 3.55rem);
    line-height: 1.07;
    font-weight: 800;
}

.easyesl-home-v5 h3 {
    font-size: clamp(1.28rem, 1.8vw, 1.65rem);
    line-height: 1.16;
    font-weight: 800;
}

.easyesl-home-v5 p {
    color: var(--ev5-muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.easyesl-home-v5 a {
    color: inherit;
}

.easyesl-home-v5 a:focus-visible {
    outline: 3px solid #0b7080;
    outline-offset: 4px;
    border-radius: 8px;
}

.ev5-shell {
    width: min(1200px, calc(100% - 56px));
    margin-inline: auto;
}

.ev5-section {
    position: relative;
    padding: 110px 0;
}

.ev5-eyebrow {
    margin-bottom: 20px !important;
    color: var(--ev5-navy) !important;
    font-size: .76rem !important;
    line-height: 1.2 !important;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.ev5-lead {
    max-width: 660px;
    font-size: clamp(1.08rem, 1.45vw, 1.28rem) !important;
    line-height: 1.66 !important;
}

.ev5-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.ev5-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 13px 25px;
    border: 1px solid transparent;
    border-radius: 16px;
    text-decoration: none !important;
    font-size: .98rem;
    line-height: 1.2;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.ev5-button:hover {
    transform: translateY(-2px);
}

.ev5-button-primary {
    color: var(--ev5-navy) !important;
    background: var(--ev5-orange);
    box-shadow: 0 12px 30px rgba(242, 138, 63, .28);
}

.ev5-button-primary:hover {
    background: #f6a16d;
}

.ev5-button-secondary {
    color: var(--ev5-navy) !important;
    border-color: rgba(32, 56, 95, .2);
    background: rgba(255, 255, 255, .78);
}

.ev5-button-secondary:hover {
    border-color: rgba(32, 56, 95, .38);
    background: #fff;
    box-shadow: 0 10px 25px rgba(24, 50, 87, .1);
}

.ev5-button-ghost {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .08);
}

.ev5-button-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .14);
}

.ev5-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--ev5-navy) !important;
    font-weight: 800;
    text-decoration: underline !important;
    text-decoration-color: rgba(242, 138, 63, .55) !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 5px;
}

.ev5-text-link span {
    color: var(--ev5-orange);
    transition: transform .2s ease;
}

.ev5-text-link:hover span {
    transform: translateX(4px);
}

/* Hero */
.ev5-hero {
    min-height: 760px;
    padding: 148px 0 92px;
    background:
        linear-gradient(116deg, var(--ev5-page) 0 52%, var(--ev5-aqua) 52% 100%);
}

.ev5-hero::before {
    content: "";
    position: absolute;
    inset: auto -8vw -28vw auto;
    width: 56vw;
    height: 56vw;
    border: 1px solid rgba(32, 56, 95, .1);
    border-radius: 50%;
    pointer-events: none;
}

.ev5-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(440px, .98fr);
    align-items: center;
    gap: clamp(34px, 5vw, 78px);
}

.ev5-hero-copy {
    position: relative;
    z-index: 2;
}

.ev5-hero-copy .ev5-lead {
    margin-top: 28px;
}

.ev5-proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    padding: 0;
    margin-top: 32px !important;
    list-style: none;
}

.ev5-proof-list li {
    position: relative;
    padding-left: 18px;
    color: var(--ev5-navy);
    font-size: .92rem;
    font-weight: 800;
}

.ev5-proof-list li::before {
    content: "";
    position: absolute;
    top: .52em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ev5-orange);
}

.ev5-hero-visual {
    position: relative;
    min-height: 485px;
    isolation: isolate;
}

.ev5-hero-visual::before {
    content: "";
    position: absolute;
    inset: 7% 2% 6% 7%;
    border: 1px solid rgba(32, 56, 95, .12);
    border-radius: 48% 52% 42% 58% / 56% 42% 58% 44%;
    background: rgba(255, 255, 255, .38);
    transform: rotate(-4deg);
    z-index: -2;
}

.ev5-hero-gridlines {
    position: absolute;
    inset: 12% 8% 10% 12%;
    border-radius: 28px;
    opacity: .36;
    background-image:
        linear-gradient(rgba(32, 56, 95, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 56, 95, .09) 1px, transparent 1px);
    background-size: 32px 32px;
    transform: rotate(2deg);
    z-index: -1;
}

.ev5-hero-visual picture {
    position: absolute;
    inset: 2% -4% 0 -2%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ev5-hero-visual picture img {
    width: 100%;
}

.ev5-hero-note {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 13px 16px;
    border: 1px solid rgba(32, 56, 95, .14);
    border-radius: 14px;
    background: rgba(255, 250, 244, .96);
    box-shadow: 0 12px 26px rgba(24, 50, 87, .13);
    color: var(--ev5-navy);
    font-size: .8rem;
    line-height: 1.3;
}

.ev5-hero-note span {
    color: var(--ev5-muted);
}

.ev5-hero-note-one {
    top: 12%;
    left: -2%;
}

.ev5-hero-note-two {
    right: -1%;
    bottom: 8%;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.ev5-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #24a47a;
    box-shadow: 0 0 0 4px rgba(36, 164, 122, .12);
}

/* Shared headings */
.ev5-split-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .65fr);
    align-items: end;
    gap: 72px;
}

.ev5-section-intro {
    padding-bottom: 7px;
}

.ev5-section-heading > p:last-child,
.ev5-section-heading-centred > p:last-child {
    max-width: 660px;
    margin-top: 24px;
}

.ev5-section-heading-centred {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Connected formats */
.ev5-formats {
    background: #fff;
}

.ev5-formats::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(var(--ev5-orange) 0 32%, var(--ev5-aqua-strong) 32% 100%);
}

.ev5-package-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: center;
    gap: 60px;
    margin-top: 72px;
}

.ev5-format-list {
    display: grid;
    gap: 30px;
    padding: 0;
    list-style: none;
}

.ev5-format-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid var(--ev5-line);
}

.ev5-format-list li > span {
    color: var(--ev5-orange-text);
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: .82rem;
    font-weight: 800;
}

.ev5-format-list strong {
    color: var(--ev5-navy);
    font-size: 1.06rem;
}

.ev5-format-list p {
    margin-top: 6px;
    font-size: .95rem;
    line-height: 1.55;
}

.ev5-package-stage {
    position: relative;
    min-height: 590px;
    border: 1px solid rgba(32, 56, 95, .1);
    border-radius: 34px;
    background:
        linear-gradient(90deg, rgba(32, 56, 95, .055) 1px, transparent 1px),
        linear-gradient(rgba(32, 56, 95, .055) 1px, transparent 1px),
        var(--ev5-aqua);
    background-size: 34px 34px;
}

.ev5-package-stage:focus-visible {
    outline: 3px solid #0b7080;
    outline-offset: 5px;
}

.ev5-format-media {
    position: absolute;
    overflow: hidden;
    border: 8px solid #fff;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--ev5-shadow);
}

.ev5-format-media img {
    width: 100%;
    aspect-ratio: 1200 / 896;
    object-fit: cover;
}

.ev5-format-media figcaption {
    position: absolute;
    bottom: 14px;
    left: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--ev5-navy);
    background: rgba(255, 250, 244, .94);
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: .78rem;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(24, 50, 87, .12);
}

.ev5-format-screen {
    z-index: 1;
    left: 4%;
    bottom: 8%;
    width: 65%;
    transform: rotate(-2deg);
}

.ev5-format-student {
    z-index: 2;
    top: 7%;
    right: 3%;
    width: 42%;
    transform: rotate(3deg);
}

.ev5-format-teacher {
    z-index: 3;
    right: 5%;
    bottom: 4%;
    width: 40%;
    transform: rotate(-1deg);
}

/* Lesson library */
.ev5-library {
    background: var(--ev5-page);
}

.ev5-lesson-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 62px;
}

.ev5-lesson-card {
    overflow: hidden;
    border: 1px solid var(--ev5-line);
    border-radius: 20px;
    background: var(--ev5-warm);
    box-shadow: 0 13px 36px rgba(24, 50, 87, .07);
    transition: transform .22s ease, box-shadow .22s ease;
}

.ev5-lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 46px rgba(24, 50, 87, .13);
}

.ev5-lesson-media {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none !important;
}

.ev5-lesson-media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform .35s ease;
}

.ev5-lesson-card:hover .ev5-lesson-media img {
    transform: scale(1.025);
}

.ev5-lesson-tier {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 11px;
    border-radius: 10px;
    color: var(--ev5-navy);
    background: rgba(255, 250, 244, .95);
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: .72rem;
    font-weight: 800;
    box-shadow: 0 7px 16px rgba(24, 50, 87, .11);
}

.ev5-tier-pro .ev5-lesson-tier,
.ev5-tier-ultra .ev5-lesson-tier {
    color: #fff;
    background: var(--ev5-navy);
}

.ev5-tier-ultra .ev5-lesson-tier {
    color: var(--ev5-navy);
    background: var(--ev5-orange);
}

.ev5-lesson-body {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 26px;
}

.ev5-lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--ev5-muted);
    font-size: .8rem;
    font-weight: 800;
}

.ev5-lesson-body h3 a {
    text-decoration: none !important;
}

.ev5-lesson-body p {
    margin-top: 14px;
    font-size: .94rem;
    line-height: 1.6;
}

.ev5-lesson-body .ev5-text-link {
    margin-top: auto;
    padding-top: 24px;
    font-size: .9rem;
}

.ev5-centred-action {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

/* Workflow */
.ev5-workflow {
    border-block: 1px solid rgba(32, 56, 95, .09);
    background: var(--ev5-aqua);
}

.ev5-workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
    margin-top: 58px;
    list-style: none;
    counter-reset: none;
}

.ev5-workflow-grid li {
    position: relative;
    min-height: 270px;
    padding: 38px 44px 30px 0;
    border-top: 2px solid var(--ev5-navy);
}

.ev5-workflow-grid li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: -7px;
    right: 24px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--ev5-navy);
    border-right: 2px solid var(--ev5-navy);
    transform: rotate(45deg);
}

.ev5-step-number {
    position: absolute;
    top: -18px;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--ev5-navy);
    background: var(--ev5-orange);
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: .72rem;
    font-weight: 800;
}

.ev5-workflow-grid h3 {
    margin-top: 20px;
}

.ev5-workflow-grid p {
    max-width: 320px;
    margin-top: 16px;
    font-size: .98rem;
}

/* Access */
.ev5-access {
    background: #fff;
}

.ev5-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 64px;
}

.ev5-tier-card {
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding: 34px;
    border: 1px solid var(--ev5-line);
    border-radius: 20px;
    background: var(--ev5-warm);
}

.ev5-tier-card-pro {
    color: #fff;
    border-color: var(--ev5-navy);
    background: var(--ev5-navy);
    box-shadow: var(--ev5-shadow);
    transform: translateY(-14px);
}

.ev5-tier-card-pro h3,
.ev5-tier-card-pro p,
.ev5-tier-card-pro li,
.ev5-tier-card-pro .ev5-tier-kicker {
    color: #fff;
}

.ev5-tier-card-ultra {
    background: var(--ev5-aqua);
}

.ev5-tier-kicker {
    margin-bottom: 14px;
    color: var(--ev5-orange-text);
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ev5-tier-intro {
    margin-top: 17px !important;
    font-size: .98rem !important;
    line-height: 1.58 !important;
}

.ev5-tier-card ul {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 28px 0 34px !important;
    list-style: none;
}

.ev5-tier-card li {
    position: relative;
    padding-left: 20px;
    color: var(--ev5-muted);
    font-size: .91rem;
    line-height: 1.5;
}

.ev5-tier-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ev5-orange);
    font-weight: 900;
}

.ev5-tier-card .ev5-button {
    width: 100%;
    margin-top: auto;
}

.ev5-ultra-preview {
    overflow: hidden;
    margin: 26px 0 30px !important;
    border: 6px solid rgba(255, 255, 255, .72);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 25px rgba(24, 50, 87, .12);
}

.ev5-ultra-preview img {
    width: 100%;
    aspect-ratio: 1200 / 896;
    object-fit: cover;
}

/* Teacher */
.ev5-teacher {
    background: var(--ev5-page);
}

.ev5-teacher-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(50px, 7vw, 96px);
}

.ev5-teacher-media {
    position: relative;
    overflow: hidden;
    border-radius: 28px 28px 92px 28px;
    background: var(--ev5-warm);
    box-shadow: var(--ev5-shadow);
}

.ev5-teacher-media::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 18px 18px 72px 18px;
    pointer-events: none;
}

.ev5-teacher-media img {
    width: 100%;
    aspect-ratio: 1200 / 896;
    object-fit: cover;
}

.ev5-teacher-copy .ev5-lead {
    margin-top: 24px;
}

.ev5-benefit-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 36px 0 0 !important;
    list-style: none;
}

.ev5-benefit-list li {
    padding-top: 18px;
    border-top: 3px solid var(--ev5-orange);
}

.ev5-benefit-list strong,
.ev5-benefit-list span {
    display: block;
}

.ev5-benefit-list strong {
    color: var(--ev5-navy);
    font-size: .94rem;
    line-height: 1.35;
}

.ev5-benefit-list span {
    margin-top: 8px;
    color: var(--ev5-muted);
    font-size: .82rem;
    line-height: 1.5;
}

/* Closing */
.ev5-closing {
    overflow: hidden;
    padding: 86px 0 74px;
    color: #fff;
    background: var(--ev5-navy-deep);
}

.ev5-closing::before {
    content: "";
    position: absolute;
    top: -170px;
    right: -80px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(138, 224, 229, .22);
    border-radius: 50%;
}

.ev5-closing-grid {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr);
    align-items: center;
    gap: 56px;
}

.ev5-closing h2,
.ev5-closing p,
.ev5-closing .ev5-eyebrow {
    color: #fff !important;
}

.ev5-closing-copy {
    position: relative;
    z-index: 2;
}

.ev5-closing-copy > p:not(.ev5-eyebrow) {
    max-width: 580px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .78) !important;
}

.ev5-closing-media {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 26px 26px 90px 26px;
    background: #20385f;
}

.ev5-closing-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 67% center;
}

@media (max-width: 1100px) {
    .ev5-shell {
        width: min(100% - 48px, 1080px);
    }

    .ev5-section {
        padding-block: 92px;
    }

    .ev5-hero {
        min-height: 720px;
        padding-top: 128px;
    }

    .ev5-hero-grid {
        grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
        gap: 32px;
    }

    .ev5-hero-visual {
        min-height: 450px;
    }

    .ev5-package-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 36px;
    }

    .ev5-package-stage {
        min-height: 520px;
    }

    .ev5-tier-card {
        padding: 28px;
    }

    .ev5-teacher-grid {
        gap: 48px;
    }

    .ev5-benefit-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .ev5-hero {
        min-height: 0;
        padding-top: 126px;
        background: linear-gradient(165deg, var(--ev5-page) 0 54%, var(--ev5-aqua) 54% 100%);
    }

    .ev5-hero-grid,
    .ev5-split-heading,
    .ev5-package-layout,
    .ev5-teacher-grid,
    .ev5-closing-grid {
        grid-template-columns: 1fr;
    }

    .ev5-hero-grid {
        gap: 46px;
    }

    .ev5-hero-copy {
        max-width: 760px;
    }

    .ev5-hero-visual {
        width: min(680px, 100%);
        min-height: 430px;
        margin-inline: auto;
    }

    .ev5-split-heading {
        align-items: start;
        gap: 28px;
    }

    .ev5-section-intro {
        max-width: 720px;
    }

    .ev5-package-layout {
        gap: 50px;
    }

    .ev5-format-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .ev5-format-list li {
        grid-template-columns: 1fr;
    }

    .ev5-package-stage {
        min-height: 620px;
    }

    .ev5-lesson-grid,
    .ev5-tier-grid {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .ev5-lesson-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: none;
    }

    .ev5-lesson-card {
        display: block;
    }

    .ev5-lesson-body {
        min-height: 310px;
        padding: 22px;
    }

    .ev5-tier-card {
        min-height: 0;
    }

    .ev5-tier-card-pro {
        transform: none;
    }

    .ev5-ultra-preview {
        max-width: 360px;
    }

    .ev5-teacher-media {
        max-width: 720px;
    }

    .ev5-closing-grid {
        gap: 44px;
    }

    .ev5-closing-media {
        min-height: 380px;
    }
}

@media (max-width: 700px) {
    .ev5-shell {
        width: calc(100% - 40px);
    }

    .ev5-section {
        padding-block: 72px;
    }

    .easyesl-home-v5 h1 {
        font-size: clamp(2.65rem, 12vw, 3.55rem);
    }

    .easyesl-home-v5 h2 {
        font-size: clamp(2.15rem, 9.8vw, 2.9rem);
    }

    .ev5-hero {
        padding-top: 112px;
        padding-bottom: 56px;
    }

    .ev5-hero-copy .ev5-lead {
        margin-top: 22px;
    }

    .ev5-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .ev5-hero .ev5-actions {
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
    }

    .ev5-button {
        width: 100%;
    }

    .ev5-proof-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ev5-hero-grid {
        gap: 30px;
    }

    .ev5-hero-visual {
        min-height: 285px;
    }

    .ev5-hero-visual picture {
        inset: 0 -4% 0 -4%;
    }

    .ev5-hero-note-one {
        top: 3%;
        left: -1%;
    }

    .ev5-hero-note-two {
        right: 0;
        bottom: 2%;
    }

    .ev5-split-heading {
        gap: 22px;
    }

    .ev5-package-layout {
        margin-top: 48px;
    }

    .ev5-format-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ev5-format-list li {
        grid-template-columns: 38px 1fr;
        padding-top: 18px;
    }

    .ev5-package-stage {
        display: flex;
        gap: 16px;
        min-height: 0;
        padding: 16px;
        border-radius: 24px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: thin;
        scrollbar-color: var(--ev5-orange) rgba(255, 255, 255, .7);
    }

    .ev5-format-media {
        position: relative;
        inset: auto;
        flex: 0 0 min(84%, 330px);
        width: min(84%, 330px);
        border-width: 5px;
        border-radius: 16px;
        transform: none;
        scroll-snap-align: start;
    }

    .ev5-format-screen {
        order: 1;
    }

    .ev5-format-student {
        order: 2;
    }

    .ev5-format-teacher {
        order: 3;
    }

    .ev5-lesson-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 42px;
    }

    .ev5-lesson-card {
        display: grid;
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .ev5-lesson-body {
        min-height: 0;
        padding: 18px;
    }

    .ev5-lesson-media,
    .ev5-lesson-media img {
        height: 100%;
    }

    .ev5-lesson-media img {
        aspect-ratio: auto;
        object-fit: cover;
    }

    .ev5-lesson-tier {
        top: 10px;
        left: 10px;
        padding: 6px 8px;
        font-size: .64rem;
    }

    .ev5-lesson-body h3 {
        font-size: 1.14rem;
    }

    .ev5-lesson-meta {
        gap: 4px;
        margin-bottom: 9px;
        font-size: .69rem;
    }

    .ev5-lesson-body p {
        display: -webkit-box;
        margin-top: 8px;
        overflow: hidden;
        font-size: .84rem;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .ev5-lesson-body .ev5-text-link {
        padding-top: 12px;
        font-size: .8rem;
    }

    .ev5-workflow-grid {
        grid-template-columns: 1fr;
        margin-top: 44px;
    }

    .ev5-workflow-grid li {
        min-height: 0;
        padding: 34px 0 44px 54px;
        border-top: 0;
        border-left: 2px solid var(--ev5-navy);
    }

    .ev5-workflow-grid li:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: 14px;
        left: -7px;
        transform: rotate(135deg);
    }

    .ev5-step-number {
        top: 24px;
        left: -19px;
    }

    .ev5-workflow-grid h3 {
        margin-top: 0;
    }

    .ev5-tier-grid {
        gap: 16px;
        margin-top: 46px;
    }

    .ev5-tier-card {
        padding: 26px;
    }

    .ev5-ultra-preview {
        max-width: none;
    }

    .ev5-teacher-grid {
        gap: 40px;
    }

    .ev5-teacher-media {
        border-radius: 22px 22px 60px 22px;
    }

    .ev5-closing {
        padding-top: 72px;
    }

    .ev5-closing-media {
        min-height: 285px;
        border-radius: 20px 20px 58px 20px;
    }
}

@media (max-width: 420px) {
    .ev5-shell {
        width: calc(100% - 32px);
    }

    .easyesl-home-v5 h1 {
        font-size: clamp(2.5rem, 12vw, 3.1rem);
    }

    .easyesl-home-v5 p {
        font-size: 1rem;
    }

    .ev5-hero {
        padding-top: 104px;
    }

    .ev5-hero-visual {
        min-height: 270px;
    }

    .ev5-hero-note {
        padding: 10px 12px;
        font-size: .72rem;
    }

    .ev5-format-media figcaption {
        bottom: 10px;
        left: 10px;
    }

    .ev5-lesson-body {
        min-height: 0;
    }

    .ev5-lesson-card {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .ev5-lesson-body {
        padding: 16px;
    }

    .ev5-lesson-body p {
        -webkit-line-clamp: 2;
    }

    .ev5-closing-media {
        min-height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .easyesl-home-v5 *,
    .easyesl-home-v5 *::before,
    .easyesl-home-v5 *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}
