/* ==========================================
   RESULT SECTION
========================================== */

.result-section{
    padding-top:40px;
    padding-bottom:120px;
}

.result-section[hidden]{
    display:none;
}


/* ==========================================
   RESULT CARD
========================================== */

.result-card{
    overflow:hidden;

    background:#ffffff;
    border:1px solid rgba(29,29,31,.08);
    border-radius:var(--radius-xl);

    box-shadow:var(--shadow-large);

    animation:result-enter .55s
        cubic-bezier(.4,0,.2,1);
}


/* ==========================================
   RESULT HEADER
========================================== */

.result-card__header{
    padding:64px 64px 48px;

    text-align:center;

    background:
        radial-gradient(
            circle at top center,
            rgba(239,125,0,.11),
            transparent 48%
        ),
        #ffffff;

    border-bottom:1px solid rgba(29,29,31,.08);
}

.result-card__header .eyebrow{
    margin-bottom:14px;
}

.result-card__profile{
    display:inline-flex;
    align-items:center;
    gap:6px;

    margin-bottom:22px;
    padding:8px 14px;

    color:var(--text-secondary);
    font-size:14px;

    background:#f5f5f7;
    border-radius:999px;
}

.result-card__profile strong{
    color:var(--text);
}

.result-card__header h2{
    max-width:830px;
    margin:0 auto 18px;

    font-size:56px;
    line-height:1.05;
    letter-spacing:-.04em;
}

.result-card__header h2 span{
    color:var(--primary);
}

.result-card__headline{
    max-width:680px;
    margin:auto;

    color:var(--text-secondary);
    font-size:21px;
    line-height:1.5;
}


/* ==========================================
   RESULT MAIN
========================================== */

.result-card__main{
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    align-items:center;
    gap:56px;

    padding:64px;
}


/* ==========================================
   RESULT PRODUCT
========================================== */

.result-product{
    min-width:0;
}

.result-product__image-wrapper{
    display:flex;
    align-items:center;
    justify-content:center;

    min-height:480px;
    padding:32px;

    overflow:hidden;

    background:#f7f6f2;
    border-radius:28px;
}

.result-product__image{
    width:100%;
    max-width:410px;
    max-height:420px;

    object-fit:contain;

    filter:drop-shadow(
        0 26px 30px rgba(0,0,0,.16)
    );

    animation:result-product-enter .7s
        cubic-bezier(.4,0,.2,1);
}


/* ==========================================
   RESULT CONTENT
========================================== */

.result-content{
    min-width:0;
}

.result-content__description{
    margin-bottom:30px;

    color:var(--text-secondary);
    font-size:19px;
    line-height:1.65;
}


/* ==========================================
   RESULT REASONS
========================================== */

.result-reasons{
    display:flex;
    flex-direction:column;
    gap:14px;

    margin-bottom:38px;
}

.result-reasons li{
    display:flex;
    align-items:flex-start;
    gap:12px;

    color:var(--text);
    font-size:16px;
    font-weight:600;
    line-height:1.45;
}

.result-reasons__icon{
    display:grid;
    place-items:center;
    flex:0 0 auto;

    width:24px;
    height:24px;
    margin-top:1px;

    color:#ffffff;
    font-size:13px;
    font-weight:800;

    background:var(--primary);
    border-radius:50%;
}


/* ==========================================
   RESULT RATINGS
========================================== */

.result-ratings{
    display:flex;
    flex-direction:column;
    gap:22px;

    margin-bottom:40px;
    padding:28px;

    background:#f7f7f8;
    border-radius:22px;
}

.result-rating__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;

    margin-bottom:10px;

    font-size:14px;
}

.result-rating__header span{
    color:var(--text);
    font-weight:700;
}

.result-rating__header strong{
    color:var(--text-secondary);
}

.result-rating__bars{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:6px;
}

.result-rating__bar{
    height:8px;

    border-radius:999px;

    opacity:.45;
    transform:scaleX(.28);
    transform-origin:left center;

    animation:result-rating-enter .55s
        cubic-bezier(.4,0,.2,1)
        forwards;
}

.result-rating__bar.is-active{
    opacity:1;
}


/* ==========================================
   RESULT ACTIONS
========================================== */

.result-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:14px;
}

.result-actions .button{
    min-width:180px;
}


/* ==========================================
   SECONDARY RECOMMENDATION
========================================== */

.secondary-recommendation{
    display:grid;
    grid-template-columns:140px minmax(0,1fr);
    align-items:center;
    gap:28px;

    margin:0 64px 64px;
    padding:28px 34px;

    background:#f7f6f2;
    border:1px solid rgba(29,29,31,.07);
    border-radius:24px;
}

.secondary-recommendation__image-wrapper{
    display:flex;
    align-items:center;
    justify-content:center;

    height:120px;
}

.secondary-recommendation__image-wrapper img{
    width:100%;
    max-width:120px;
    max-height:110px;

    object-fit:contain;

    filter:drop-shadow(
        0 12px 14px rgba(0,0,0,.12)
    );
}

.secondary-recommendation__content p{
    margin-bottom:3px;

    color:var(--text-secondary);
    font-size:14px;
}

.secondary-recommendation__content h3{
    margin-bottom:8px;

    font-size:25px;
    line-height:1.15;
    letter-spacing:-.025em;
}


/* ==========================================
   RESULT ANIMATIONS
========================================== */

@keyframes result-enter{
    from{
        opacity:0;
        transform:translateY(28px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes result-product-enter{
    from{
        opacity:0;
        transform:translateY(20px) scale(.96);
    }

    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

@keyframes result-rating-enter{
    from{
        opacity:.2;
        transform:scaleX(.15);
    }

    to{
        transform:scaleX(1);
    }
}