/* ==========================================================================
   TIPS PAGE — tp- prefix
   Dicas de uso do eesier / Tips for using eesier
   ========================================================================== */


/* -------------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------------- */

.tp-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    position: relative;
    z-index: 2;
}

.tp-hero .tp-hero__inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 0 25px;
}

.tp-hero .tp-hero__inner .tp-hero__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1.25;
    margin: 0;
}

.tp-hero .tp-hero__inner .tp-hero__title .gradient-text {
    display: inline;
}

.tp-hero .tp-hero__inner .tp-hero__subtitle {
    font-size: 16px;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 550px;
}


/* -------------------------------------------------------------------------
   TIPS SECTION
   ------------------------------------------------------------------------- */

.tp-tips {
    background: #dbeafe;
    position: relative;
    z-index: 1;
}

.tp-tips::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,70 1440,60 L1440,80 L0,80 Z' fill='%23dbeafe'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.tp-tips .content-inner {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
}

.tp-tips .content-inner .tp-card {
    background: var(--color-surface);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tp-tips .content-inner .tp-card.tp-revealed {
    opacity: 1;
    transform: translateY(0);
}

.tp-tips .content-inner .tp-card .tp-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-tips .content-inner .tp-card .tp-card__header .tp-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-50);
    border-radius: 10px;
    flex-shrink: 0;
}

.tp-tips .content-inner .tp-card .tp-card__header .tp-card__icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.tp-tips .content-inner .tp-card .tp-card__header .tp-card__number {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.tp-tips .content-inner .tp-card .tp-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0;
    line-height: 1.3;
}

.tp-tips .content-inner .tp-card .tp-card__description {
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0;
}


/* -------------------------------------------------------------------------
   CTA SECTION
   ------------------------------------------------------------------------- */

.tp-cta {
    background: var(--color-background);
    position: relative;
    z-index: 1;
}

.tp-cta::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,70 1440,60 L1440,80 L0,80 Z' fill='%23f6f7fc'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.tp-cta .tp-cta__inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    padding: 0 25px;
}

.tp-cta .tp-cta__inner .tp-cta__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0;
    line-height: 1.3;
}

.tp-cta .tp-cta__inner .tp-cta__subtitle {
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
}


/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */

@media (max-width: 639px) {

    .tp-tips::before {
        height: 50px;
        top: -49px;
    }

    .tp-cta::before {
        height: 50px;
        top: -49px;
    }

}

@media (min-width: 768px) {

    .tp-hero .tp-hero__inner .tp-hero__title {
        font-size: 36px;
    }

    .tp-hero .tp-hero__inner .tp-hero__subtitle {
        font-size: 18px;
    }

    .tp-tips .content-inner .tp-card {
        padding: 50px;
    }

    .tp-cta .tp-cta__inner .tp-cta__title {
        font-size: 28px;
    }

}

@media (min-width: 1024px) {

    .tp-hero .tp-hero__inner .tp-hero__title {
        font-size: 42px;
    }

    .tp-tips .content-inner .tp-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 25px;
    }

    .tp-tips .content-inner .tp-card .tp-card__header {
        flex-direction: column;
        align-items: center;
        min-width: 60px;
    }

    .tp-cta .tp-cta__inner .tp-cta__title {
        font-size: 32px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .tp-tips .content-inner .tp-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

}


/* -------------------------------------------------------------------------
   NOSCRIPT FALLBACK
   ------------------------------------------------------------------------- */

noscript .tp-card {
    opacity: 1 !important;
    transform: none !important;
}
