/* ==========================================================
   Hero
   ========================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px)
}

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

.h1-a {
    display: block;
    color: #7D6AA0
}

.h1-b {
    display: block;
    margin-top: .1em
}

.lead {
    max-width: 34rem;
    margin-top: 1.5rem;
    font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
    line-height: 1.55;
    color: var(--muted)
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem
}

.assure {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: .98rem;
    color: var(--petrol)
}

.assure svg {
    width: 22px;
    height: 22px;
    flex: none
}

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1.04
}

.sun {
    position: absolute;
    right: -9%;
    top: -7%;
    width: 66%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--lume)
}

.browser {
    margin: 0;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 22px 44px -22px rgba(76, 29, 149, .55), 0 0 0 1px rgba(76, 29, 149, .1)
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    background: var(--mint)
}

.browser-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(76, 29, 149, .25)
}

.browser-shot {
    aspect-ratio: 16 / 10;
    background: var(--mint-2)
}

.browser-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center
}

.hero-visual .browser {
    position: absolute
}

.browser-back {
    left: 0;
    top: 6%;
    width: 70%;
    rotate: -2.5deg
}

.browser-front {
    right: 0;
    top: 30%;
    width: 76%
}

.review {
    position: absolute;
    left: 3%;
    bottom: 0;
    width: 64%;
    background: var(--white);
    border-radius: 18px;
    padding: 18px 20px 20px;
    box-shadow: 0 22px 44px -22px rgba(76, 29, 149, .6), 0 0 0 1px rgba(76, 29, 149, .1)
}

.review-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--petrol);
    margin-bottom: 10px
}

.review-list li {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 5px 0;
    font-size: .93rem;
    line-height: 1.3;
    font-weight: 500
}

.review-list .is-final {
    font-weight: 700;
    color: var(--petrol)
}

.tick {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--line);
    border-radius: 50%;
    animation: tickFill .35s ease forwards;
    animation-delay: calc(1s + var(--i) * .75s)
}

.tick svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: var(--petrol-fixed);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: tickDraw .35s ease forwards;
    animation-delay: calc(1s + var(--i) * .75s + .1s)
}

@keyframes tickFill {
    to {
        background: var(--lume);
        border-color: var(--lume)
    }
}

@keyframes tickDraw {
    to {
        stroke-dashoffset: 0
    }
}

.hero-visual .browser,
.review {
    animation: rise .8s cubic-bezier(.2, .7, .2, 1) both
}

.browser-back {
    animation-delay: .05s
}

.browser-front {
    animation-delay: .2s
}

.review {
    animation-delay: .35s
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px)
    }
}

/* ==========================================================
   Animações modernas — entrada + microinterações
   ========================================================== */

.hero-copy>*,
.hero-visual>* {
    position: relative;
}

/* Restaura o posicionamento absoluto da bola do HERO: a regra genérica
   acima (.hero-visual>*) também a atinge e a deixaria "in-flow",
   quebrando a composição. O card de revisão (.review) já tem sua
   própria regra de mobile (position: relative) mais abaixo, então só
   forçamos "absolute" nele a partir do breakpoint em que ele deve
   voltar a ficar sobreposto (acima de 640px). */
.hero-visual>.sun {
    position: absolute;
}

@media (min-width: 641px) {
    .hero-visual>.review {
        position: absolute;
    }
}

.browser-front {
    animation: rise .8s cubic-bezier(.2, .7, .2, 1) both, floatBrowser 7s ease-in-out 1s infinite
}

.browser-back {
    animation: rise .8s cubic-bezier(.2, .7, .2, 1) both, floatBrowserBack 8s ease-in-out 1.1s infinite
}

.sun {
    animation: pulseSun 6s ease-in-out infinite
}

@keyframes floatBrowser {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

@keyframes floatBrowserBack {

    0%,
    100% {
        transform: translateY(0) rotate(-2.5deg)
    }

    50% {
        transform: translateY(7px) rotate(-1.5deg)
    }
}

@keyframes pulseSun {

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

    50% {
        transform: scale(1.035);
        opacity: .92
    }
}

@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero-visual {
        max-width: 560px;
        width: 100%;
        margin-inline: auto
    }
}

@media (max-width:640px) {
    .hero-actions .btn {
        flex: 1 1 100%
    }

    .hero-visual {
        aspect-ratio: auto;
        padding-top: 20%;
        overflow: visible
    }

    .hero-visual .browser-back {
        display: none
    }

    .hero-visual .browser-front {
        position: relative;
        width: 88%;
        max-width: 100%;
        margin-left: auto
    }

    .sun {
        top: 0;
        right: -10%;
        width: 48%
    }

    .review {
        position: relative;
        left: auto;
        bottom: auto;
        width: 90%;
        margin: -44px 0 0 0
    }
}

@media (prefers-reduced-motion:reduce) {
    .hero-visual .browser,
    .review {
        animation: none
    }

    .tick {
        animation: none;
        background: var(--lume);
        border-color: var(--lume)
    }

    .tick svg {
        animation: none;
        stroke-dashoffset: 0
    }

    .browser-front,
    .browser-back,
    .sun {
        animation: none
    }
}
