/* ===================== */
/* Product page */
/* ===================== */

/* Product intro */
.product-intro {
    position: relative;
}

.product-intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    position: relative;
    padding: 90px 20px 30px;
    z-index: 3;
}

.product-intro-image {
    width: 100%;
}

.product-intro-image img {
    display: block;
    width: 100%;
    height: auto;
}

.product-intro h1 {
    line-height: 1.35;
    margin: 0;
    padding: 1rem 0;
    text-shadow: 0 3px 4px rgba(0, 80, 130, 0.3);
}

.product-intro h1 .sub {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    letter-spacing: 0.1rem;
}

.product-intro .accent {
    font-weight: 900;
    padding: 0 0.2em;
}

.product-intro p {
    line-height: 1.7;
    padding: 1.2rem 0;
}

.product-intro ul {
    padding: 1.2rem 0;
    list-style-position: inside;
}


/* Product Benefit Block */
.benefit-bg {
    padding: 1rem 0;
}

.product-benefit-block {
    position: relative;
    background: rgba(245, 245, 245, 0.85);
    color: var(--text-color);
    margin: 1rem;
    padding: 2rem 1rem;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.product-benefit-text {
    padding-bottom: 20px;
}

.product-benefit-text h2 {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    margin: 0 auto;
}

.product-benefit-text p {
    margin-top: 1.2rem;
    line-height: 1.7;
}

.product-benefit-image {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    z-index: 2;
}

.product-benefit-image.dual-phone {
    text-align: center;
}

.product-benefit-image img#smartphone {
    max-height: 700px;
    margin: 0 auto;
}

/* Product benefit slider (matches index phone rotation) */
.slide-container {
    position: relative;
    width: 100%;
    height: 620px;
}

#feature-install .slide-container,
#feature-planning .slide-container {
    height: 700px;
}

#feature-analytics .slide-container {
    height: 465px;
}

@media (max-width: 767px) {
    .slide-container {
        height: 420px;
    }

    #feature-install .slide-container,
    #feature-planning .slide-container {
        height: 460px;
    }

    #feature-analytics .slide-container {
        height: 315px;
    }

    .slide-container img {
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.slide-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    transition: opacity 0.8s ease-in-out;
    opacity: 0;
}

.slide-container img.active {
    opacity: 1;
    z-index: 2;
}

.slide-indicators {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.slide-indicators .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s;
}

.slide-indicators .dot.active {
    background: var(--gradient);
}

.slide-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    outline: none;
    box-shadow: none;
    background-clip: padding-box;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.slide-toggle .fa-solid {
    font-size: 0.8rem;
}

.slide-toggle.is-paused {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    transform: scale(1.04);
    box-shadow: none;
}

.slide-caption {
    margin-top: 12px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.slide-caption::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient);
    opacity: 0.9;
}



/* Shared List Styles */
.product-intro ul,
.product-benefit-block ul {
    list-style-position: inside;
}

.product-intro li,
.product-benefit-block li {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.product-intro ul li::before,
.product-benefit-block ul li::before {
    content: "";
    position: absolute;
    top: .1em;
    left: 0;
    -webkit-transform: rotate(50deg);
    -ms-transform: rotate(50deg);
    transform: rotate(50deg);
    width: 8px;
    height: 14px;
    border-right: 2px solid var(--sub-color);
    border-bottom: 2px solid var(--sub-color);
}

.product-intro ul li::before {
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}

ol.step-list {
    counter-reset: step-counter;
}

ol.step-list li {
    position: relative;
    padding-left: 2em;
    counter-increment: step-counter;
}

ol.step-list li::before {
    content: counter(step-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--sub-color);
}



@media (min-width: 768px) {
    .product-intro-image {
        width: 80%;
    }

    .product-benefit-block {
        padding: 2.5rem 2rem;
    }
}



@media (min-width: 1024px) {

    /* Product intro */
    .product-intro-inner {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 20px;
    }

    .product-intro-image {
        width: 45%;
        align-self: flex-start;
        margin-top: 10%;
    }

    .product-intro-image img {
        object-fit: contain;
    }

    .product-intro-text {
        flex: 1;
        text-align: left;
    }

    .product-intro h1 {
        text-shadow: 0 4px 8px rgba(0, 0, 0, .25);
        line-height: 1.6;
        padding-top: 4rem;
        font-size: var(--h2);
        font-weight: 700;
    }


    /* Benefit block */
    .product-benefit-block {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 850px;
    }

    .product-benefit-block.reverse {
        flex-direction: row-reverse;
    }

    .product-benefit-text {
        width: 50%;
        padding: 40px 20px;
    }

    .product-benefit-image {
        width: 50%;
        max-width: 600px;
        margin: 0 auto;
    }

}

@media (min-width: 1620px) {
    .product-benefit-block {
        margin: 2rem auto;
    }
}
