/* =========================
   BASE FONT
========================= */

html,
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}


/* =========================
   TYPOGRAPHY SYSTEM (FIGMA)
========================= */


/* Desktop ≥1024px */

h1 {
    font-size: 44px;
    line-height: 47.5px;
    font-weight: 700;
}

h2 {
    font-size: 36px;
    line-height: 47.5px;
    font-weight: 700;
}

h3 {
    font-size: 24px;
    line-height: 27.5px;
    font-weight: 700;
}

h4 {
    font-size: 20px;
    line-height: 27.5px;
    font-weight: 700;
}

h5 {
    font-size: 16px;
    line-height: 20.5px;
    font-weight: 700;
}

.body-large {
    font-size: 20px;
    line-height: 26.5px;
}

.body-regular {
    font-size: 16px;
    line-height: 21.5px;
}

.body-small {
    font-size: 14px;
    line-height: 18.5px;
}

.body-xs {
    font-size: 12px;
    line-height: 18.5px;
}


/* =========================
   CHALKFREE HERO (FIGMA)
========================= */

.chalkfree-hero {
    position: relative;
    height: 532px;
    background: linear-gradient(180deg, #ffffff 0%, #D6C3F9 100%);
    overflow: hidden;
}


/* Illustration */

.chalkfree-hero__image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 1px;
    left: 0;
    background-image: url('/images/hero/Header-Image-Landing.webp');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    z-index: 1;
}


/* Content */

.chalkfree-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    align-items: center;
    align-content: center;
}

.chalkfree-hero__title {
    margin-bottom: 12px;
}

.chalkfree-hero__subtitle {
    color: #666666;
    margin: 0 auto 28px;
}


/* Buttons */

.chalkfree-btn-primary {
    background: #6F3393;
    color: #fff;
    padding: 15px 20px;
    border-radius: 120px;
    font-weight: 700;
}

.chalkfree-btn-outline {
    border: 3px solid #6F3393;
    color: #6F3393;
    padding: 15px 20px;
    border-radius: 120px;
    font-weight: 700;
}

.chalkfree-btn-outline:hover {
    background: #6F3393;
    color: #fff;
}

.chalkfree-hero__inner {
    width: 1240px;
    max-width: 100%;
    margin: 0 auto;
}


/* Curve */

.chalkfree-hero__curve {
    position: absolute;
    bottom: -115px;
    left: 50%;
    transform: translateX(-50%);
    width: 200vw;
    height: 166px;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.chalkfree-hero__curve svg {
    width: 1240px;
    height: 166px;
    display: block;
    margin: 0 auto;
}

@media (max-width:1100px) {
    .chalkfree-hero__title {
        margin-top: 5rem!important;
    }
    .chalkfree-hero__image {
        bottom: 30px;
    }
}


/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {
    .chalkfree-hero__title {
        margin-top: 3rem !important;
    }
    .chalkfree-hero {
        height: 400px;
        padding: 80px 0 200px;
    }
    .chalkfree-hero__image {
        bottom: 20px;
        background-size: contain;
        background-position: center top;
    }
    h1 {
        font-size: 32px;
        line-height: 30px;
    }
    h2 {
        font-size: 30px;
    }
    h3 {
        font-size: 22px;
    }
    .chalkfree-btn-outline {
        padding: 10px 15px;
        font-weight: 600;
    }
}


/* Mobile */

@media (max-width: 767px) {
    .chalkfree-hero {
        height: 500px;
        padding: 100px 0 100px;
    }
    .chalkfree-hero__image {
        background-size: contain;
    }
    .chalkfree-hero__title {
        font-size: 24px;
        line-height: 32px;
    }
    .chalkfree-hero__subtitle {
        font-size: 16px;
        line-height: 21.5px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        /* matches Figma button width feel */
        text-align: center;
    }
    .chalkfree-hero__curve {
        position: absolute;
        left: 50vw;
        bottom: -115px;
        transform: translateX(-50%);
        width: 200vw;
        height: 166px;
        z-index: 3;
        pointer-events: none;
        overflow: hidden;
    }
    .chalkfree-hero__curve svg {
        width: 100%;
        height: 100%;
        display: block;
    }
}


/* ======================================================
   STAGE SECTION
====================================================== */

.chalkfree-stages {
    justify-self: center;
}


/* ======================================================
   STAGE CARD (FIGMA)
====================================================== */

.chalkfree-stage-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 315px;
    min-height: 387px;
    padding: 40px 20px;
    gap: 14px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    /* IMPORTANT FOR TOUCH */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}


/* Hover animation (all cards) */

.chalkfree-stage-card:hover,
.chalkfree-stage-card:active,
.chalkfree-stage-card:focus-visible {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}


/* Icon */

.chalkfree-stage-card__icon img {
    width: 80px;
}


/* Title */

.chalkfree-stage-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}


/* Text */

.chalkfree-stage-card__text {
    font-size: 16px;
    line-height: 21.5px;
    color: #666;
}


/* Button */

.chalkfree-stage-card__btn {
    margin-top: auto;
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}


/* ======================================================
   PREPARING (PURPLE – HOVER ONLY)
====================================================== */

.chalkfree-stage-card.preparing:hover,
.chalkfree-stage-card.preparing:active,
.chalkfree-stage-card.preparing:focus-visible {
    background: linear-gradient(180deg, #ffffff 0%, #f2e9ff 100%);
}

.chalkfree-stage-card.preparing .chalkfree-stage-card__btn {
    background: #d8c7f9;
    color: #6f3393;
}


/* ======================================================
   TEACHING (GREEN – HOVER ONLY)
====================================================== */

.chalkfree-stage-card.teaching:hover,
.chalkfree-stage-card.teaching:active,
.chalkfree-stage-card.teaching:focus-visible {
    background: linear-gradient(180deg, #ffffff 0%, #eef8f0 100%);
}

.chalkfree-stage-card.teaching .chalkfree-stage-card__btn {
    background: #d8f0dc;
    color: #0f7b29;
}


/* ======================================================
   AFTER CLASS (BLUE – HOVER ONLY)
====================================================== */

.chalkfree-stage-card.after:hover,
.chalkfree-stage-card.after:active,
.chalkfree-stage-card.after:focus-visible {
    background: linear-gradient(180deg, #ffffff 0%, #edf6ff 100%);
}

.chalkfree-stage-card.after .chalkfree-stage-card__btn {
    background: #dbeeff;
    color: #2b6cb0;
}


/* ======================================================
   FEEDBACK SECTION (FIGMA)
====================================================== */

.chalkfree-feedback-section {
    background: transparent;
}

.chalkfree-feedback-box {
    max-width: 984px;
    padding: 30px 50px;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.chalkfree-feedback-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 47.5px;
    color: #333333;
}

.chalkfree-feedback-text {
    font-size: 16px;
    line-height: 21.5px;
    color: #666666;
    max-width: 880px;
}

@media (max-width: 768px) {
    .chalkfree-feedback-box {
        padding: 30px 20px;
    }
    .chalkfree-feedback-title {
        font-size: 24px;
        line-height: 32px;
    }
}