:root {
    --primary: #0F3D3E;
    --accent: #FF6B4A;
    --hl: #FFC93C;
    --tint: #CDE8DD;
    --bg: #FFF6E9;
    --surface: #FFFDF8;
    --text: #0B2F30;
    --muted: #3F5F5F;
    --border: #F0E3CF;
    --r: 20px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 400 16px/1.6 'DM Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text)
}

h1,
h2,
h3,
.logo {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
    color: var(--primary)
}

h1 {
    font-size: clamp(34px, 5vw, 58px);
    margin: 16px 0
}

h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    margin-bottom: 32px;
    max-width: 640px
}

h3 {
    font-size: 19px;
    margin-bottom: 6px
}

mark {
    color: var(--text);
    padding: 0 10px;
    border-radius: 10px;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.6s ease-out;
}

.mark-sweep {
    background-size: 100% 100% !important;
}

.mark-word {
    display: inline-block;
    white-space: nowrap;
}

.mark-word.out {
    animation: mark-out .3s ease forwards;
}

.mark-word.in {
    animation: mark-in .35s ease;
}

@keyframes mark-out {
    to {
        opacity: 0;
        transform: translateY(-10px)
    }
}

@keyframes mark-in {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

a {
    color: inherit
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease
}

.reveal.on {
    opacity: 1;
    transform: none
}

.grid .reveal:nth-child(2) {
    transition-delay: .08s
}

.grid .reveal:nth-child(3) {
    transition-delay: .16s
}

.grid .reveal:nth-child(4) {
    transition-delay: .24s
}

.grid .reveal:nth-child(5) {
    transition-delay: .32s
}

.grid .reveal:nth-child(6) {
    transition-delay: .4s
}

.hero-anim {
    opacity: 0;
    animation: mark-in .6s ease forwards
}

.hero-anim.d1 {
    animation-delay: .1s
}

.hero-anim.d2 {
    animation-delay: .25s
}

.hero-anim.d3 {
    animation-delay: .4s
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
    border-bottom: 1px solid var(--border)
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 68px
}

.logo {
    font-size: 22px;
    text-decoration: none
}

.links {
    display: flex;
    gap: 24px;
    font-size: 14px
}

.links a {
    text-decoration: none
}

.links a:hover {
    color: var(--accent)
}

.right {
    display: flex;
    align-items: center;
    gap: 12px
}

.lang {
    display: flex;
    border: 1px solid var(--primary);
    border-radius: 999px;
    overflow: hidden
}

.lang button {
    border: 0;
    background: none;
    padding: 6px 12px;
    font: 600 13px 'DM Sans', sans-serif;
    color: var(--primary);
    cursor: pointer
}

.lang button.on {
    background: var(--primary);
    color: var(--bg)
}

.btn {
    display: inline-block;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid var(--primary);
    font-family: inherit;
    text-align: center;
    transition: transform .15s
}

.btn:hover {
    transform: translateY(-2px)
}

.btn-p {
    background: var(--primary);
    color: var(--bg)
}

.btn-o {
    color: var(--primary);
    background: none
}

.btn-c {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
    width: 100%
}

.hero {
    position: relative;
    min-height: calc(100vh - 68px);
    min-height: calc(100dvh - 68px);
    display: flex;
    align-items: center;
    padding: 72px 0 88px;
    background: url('../img/cta-teacher-with-students.png') center/cover no-repeat
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 246, 233, .95), rgba(255, 246, 233, .55))
}

.hero .wrap {
    position: relative;
    z-index: 1;
    width: 100%
}

.two {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center
}

.badge {
    display: inline-block;
    background: var(--hl);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 0 28px
}

.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px
}

.stats {
    display: flex;
    gap: 32px;
    font-size: 13px;
    color: var(--muted)
}

.stats b {
    display: block;
    font: 600 22px 'Fraunces', serif;
    color: var(--primary)
}

.stats i {
    font-style: normal
}

.sec {
    padding: 72px 0
}

.alt {
    background: var(--surface)
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px;
    transition: transform .2s ease, box-shadow .2s ease
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08)
}

.alt .card {
    background: var(--bg)
}

.card p {
    margin: 0;
    font-size: 14px;
    color: var(--muted)
}

.card a {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary)
}

.dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hl);
    margin-bottom: 12px
}

.dark {
    background: var(--primary);
    color: var(--tint)
}

.dark h2 {
    color: var(--bg)
}

.dark .lead {
    color: var(--tint)
}

.dark .card {
    background: #164A4B;
    border-color: #1E5A5B
}

.dark .card h3 {
    color: var(--bg)
}

.dark .card p {
    color: var(--tint)
}

.faq {
    display: grid;
    gap: 12px;
    max-width: 760px
}

.slider {
    position: relative
}

.slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 12px;
    scrollbar-width: none
}

.slider-track::-webkit-scrollbar {
    display: none
}

.slider-track .card {
    flex: 0 0 calc((100% - 40px) / 3.3);
    scroll-snap-align: start
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: var(--surface);
    color: var(--primary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background .15s, color .15s
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--bg)
}

#tes-prev {
    left: -14px
}

#tes-next {
    right: -14px
}

details {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 22px
}

summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between
}

summary::after {
    content: "+";
    color: var(--accent)
}

details[open] summary::after {
    content: "\2212"
}

details p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px
}

.form {
    background: var(--surface);
    border-radius: 24px;
    padding: 28px;
    display: grid;
    gap: 14px;
    color: var(--text)
}

.form label span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--muted)
}

.form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 16px;
    font: inherit;
    background: #fff
}

.hp {
    position: absolute;
    left: -9999px
}

.foot {
    background: var(--surface);
    color: var(--text);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
    font-size: 14px
}

.foot .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px
}

.foot-col {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.foot-col:first-child {
    flex-direction: row;
    align-items: center;
    gap: 16px
}

.foot-col:first-child .foot-desc {
    flex: 1
}

.foot-logo {
    height: 56px;
    width: auto
}

.foot-desc {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2
}

.foot-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text)
}

.foot-icon {
    flex-shrink: 0
}

.foot-social {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.foot-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--muted);
    transition: color .15s
}

.foot-social-link:hover {
    color: var(--accent)
}

.foot-bottom {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--muted)
}

.foot-copyright {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    opacity: 0.8
}

.foot .logo {
    color: var(--text);
    font-size: 20px
}

.fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    background: var(--accent);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    padding: 13px 20px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    animation: fab-pulse 3s ease-in-out infinite
}

@keyframes fab-pulse {

    0%,
    90%,
    100% {
        transform: scale(1)
    }

    95% {
        transform: scale(1.06)
    }
}

@media(max-width:900px) {
    .links {
        display: none
    }

    .hero::before {
        background: rgba(255, 246, 233, .9)
    }

    .hero {
        min-height: calc(100vh - 68px);
        min-height: calc(100dvh - 68px);
        padding: 48px 0 64px
    }

    .two {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .sec {
        padding: 56px 0
    }
}

@media(max-width:600px) {
    .hide-s {
        display: none
    }

    .stats {
        gap: 20px
    }

    .foot-grid {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .slider-track .card {
        flex: 0 0 85%
    }

    #tes-prev {
        left: -6px
    }

    #tes-next {
        right: -6px
    }

    .foot-col {
        text-align: left
    }

    .foot-col:first-child {
        flex-direction: column;
        align-items: flex-start
    }

    .foot-desc {
        text-align: left
    }

    .foot-social {
        align-items: flex-start
    }

    .foot-social-link {
        justify-content: flex-start
    }

    .foot-bottom {
        margin-top: 16px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important
    }

    .reveal,
    .hero-anim {
        opacity: 1;
        transform: none
    }
}