/* The Scanner Device page (resources/views/scanner-device.blade.php). Logical properties, so it works right to left. */

.sd-hero,
.sd-band,
.sd-device,
.sd-hero ~ section {
    overflow-x: clip;
}

.sd-eyebrow {
    display: inline-block;
    margin-bottom: .75rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: rgba(140, 125, 238, .14);
    color: #6a5ae0;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.sd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.sd-hero-grid,
.sd-split,
.sd-product {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.sd-hero-photo img,
.sd-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 1.5rem 3rem -1.5rem rgba(18, 21, 25, .45);
}

@media (min-width: 992px) {
    .sd-hero-grid,
    .sd-split {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }

    .sd-split-reverse > :first-child {
        order: 2;
    }

    .sd-product {
        grid-template-columns: 7fr 5fr;
        gap: 3.5rem;
        align-items: start;
    }
}

/* ------------------------------------------------------------ steps and check lists */
.sd-steps {
    counter-reset: sd-step;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.sd-steps li {
    counter-increment: sd-step;
    position: relative;
    padding-inline-start: 3.25rem;
    margin-bottom: 1.25rem;
}

.sd-steps li::before {
    content: counter(sd-step);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #8c7dee;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-checks {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.sd-checks li {
    position: relative;
    padding-inline-start: 1.75rem;
    margin-bottom: .6rem;
}

.sd-checks li::before {
    content: "";
    position: absolute;
    inset-inline-start: .15rem;
    top: .35rem;
    width: .9rem;
    height: .5rem;
    border-inline-start: 2.5px solid #8c7dee;
    border-bottom: 2.5px solid #8c7dee;
    transform: rotate(-45deg);
}

[dir="rtl"] .sd-checks li::before {
    transform: rotate(45deg);
}

.sd-note {
    padding: 1rem 1.25rem;
    border-inline-start: 4px solid #8c7dee;
    border-radius: .75rem;
    background: #f7f6ff;
}

/* ------------------------------------------------------------ the app screenshot in a browser frame */
.sd-screen {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1.5rem 3rem -1.5rem rgba(18, 21, 25, .45);
}

.sd-screen-bar {
    display: flex;
    gap: .4rem;
    padding: .6rem .8rem;
    background: #edf1f5;
}

.sd-screen-bar span {
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: #d7dde2;
}

.sd-screen img {
    display: block;
    width: 100%;
    height: auto;
}

.sd-screen figcaption {
    padding: .6rem .9rem;
    font-size: .8125rem;
    color: #6f6e83;
}

/* ------------------------------------------------------------ the BonusQR Scanner */
.sd-device {
    background: linear-gradient(180deg, #f7f6ff 0%, #fff 70%);
}

.sd-stage {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 1.5rem;
    background: radial-gradient(circle at 50% 40%, #fff 0%, #eeebfb 75%);
    overflow: hidden;
}

.sd-model,
.sd-stage-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sd-model {
    --poster-color: transparent;
    background: transparent;
}

.sd-stage-image {
    object-fit: cover;
}

.sd-views {
    position: absolute;
    inset-inline-start: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    gap: .25rem;
    padding: .25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 .25rem 1rem rgba(18, 21, 25, .12);
}

[dir="rtl"] .sd-views {
    transform: translateX(50%);
}

.sd-views button {
    border: 0;
    border-radius: 999px;
    padding: .35rem .85rem;
    background: transparent;
    color: #33354d;
    font-size: .8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.sd-views button.is-active {
    background: #8c7dee;
    color: #fff;
}

.sd-hint {
    position: absolute;
    top: .9rem;
    inset-inline-end: 1rem;
    margin: 0;
    font-size: .75rem;
    color: #6f6e83;
}

.sd-stage.is-image .sd-views,
.sd-stage.is-image .sd-hint {
    display: none;
}

.sd-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .6rem;
    margin-top: .75rem;
}

.sd-thumb {
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 2px solid transparent;
    border-radius: .75rem;
    overflow: hidden;
    background: #f3f1fd;
    cursor: pointer;
}

.sd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sd-thumb.is-active {
    border-color: #8c7dee;
}

.sd-thumb-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 700;
    color: #6a5ae0;
}

.sd-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin: 0 0 1.5rem;
}

.sd-specs div {
    padding: .7rem .8rem;
    border: 1px solid #e3e0ec;
    border-radius: .75rem;
    background: #fff;
}

.sd-specs dt {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6f6e83;
}

.sd-specs dd {
    margin: .15rem 0 0;
    font-weight: 700;
    color: #121519;
}

.sd-price-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem -1.25rem rgba(18, 21, 25, .35);
}

.sd-price {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: #121519;
}

.sd-sides {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

.sd-sides img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    background: #f3f1fd;
}

.sd-sides figcaption {
    margin-top: .75rem;
}

.sd-sides figcaption strong {
    display: block;
    color: #121519;
}

.sd-venues {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

.sd-venues img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    display: block;
}

@media (min-width: 768px) {
    .sd-sides {
        grid-template-columns: 1fr 1fr;
    }

    .sd-venues {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ------------------------------------------------------------ three ways and the questions */
.sd-ways {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .sd-ways {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sd-way {
    padding: 1.5rem;
    border: 1px solid #e3e0ec;
    border-radius: 1.25rem;
    background: #fff;
}

.sd-way.is-featured {
    border-color: #8c7dee;
    box-shadow: 0 1rem 2.5rem -1.25rem rgba(106, 90, 224, .45);
}

.sd-faq {
    max-width: 52rem;
    margin: 0 auto;
}

.sd-faq details {
    border-bottom: 1px solid #e3e0ec;
}

.sd-faq summary {
    position: relative;
    padding: 1.1rem 0;
    padding-inline-end: 2rem;
    font-weight: 600;
    color: #121519;
    cursor: pointer;
    list-style: none;
}

.sd-faq summary::-webkit-details-marker {
    display: none;
}

.sd-faq summary::after {
    content: "+";
    position: absolute;
    inset-inline-end: .25rem;
    top: .9rem;
    font-size: 1.4rem;
    line-height: 1;
    color: #8c7dee;
}

.sd-faq details[open] summary::after {
    content: "−";
}

.sd-faq details p {
    margin: 0 0 1.1rem;
}

@media (max-width: 575.98px) {
    .sd-specs {
        grid-template-columns: 1fr;
    }

    .sd-thumbs {
        gap: .4rem;
    }

    .sd-views button {
        padding: .3rem .6rem;
        font-size: .75rem;
    }
}
