/* Safe Fleet process. */

.sf-audit-row,
.sf-driver-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;

    min-height: 36px;
    padding: 6px 9px;

    background: #f5f6fa;
    border: 1px solid #d9def4;
    border-radius: 8px;

    font-size: 10px;
}

.sf-audit-row--active,
.sf-driver-row--active {
    background: #eceeff;
    border-color: #aebaf7;
}

.sf-audit-row__icon {
    display: grid;
    place-items: center;

    width: 11px;
    height: 11px;

    color: #ffffff;
    background: #4b5563;
    border-radius: 3px;

    font-size: 7px;
    line-height: 1;
}

.sf-audit-row--active .sf-audit-row__icon {
    background: #4058e5;
}

.sf-audit-row small,
.sf-driver-row small {
    color: #8490a7;

    font-size: 8px;
    white-space: nowrap;
}

.sf-audit-row--active small,
.sf-driver-row--active small {
    color: #1537e7;
}

.sf-driver-row {
    grid-template-columns: 17px minmax(0, 1fr) auto;
}

.sf-driver-row__avatar {
    display: grid;
    place-items: center;

    width: 16px;
    height: 16px;

    color: #ffffff;
    background: #4b5563;
    border-radius: 50%;

    font-size: 6px;
}

.sf-driver-row--active .sf-driver-row__avatar {
    background: #4058e5;
}

.sf-driver-row strong {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.05;
}

.sf-chart-grid path {
    stroke: #d4d9e5;
    stroke-dasharray: 4 4;
    stroke-width: 0.75;
}

.sf-chart-area {
    fill: rgba(55, 85, 225, 0.1);
}

.sf-chart-line {
    stroke: #3755e1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.sf-chart-points circle {
    fill: #3755e1;
}

.sf-chart-labels {
    fill: #798396;

    font-size: 6px;
}

.sf-how-it-works {
    padding: 60px 16px;

    background: var(--color-bg-white);
}

.sf-how-it-works__panel {
    width: min(100%, 1408px);
    min-height: 715px;
    margin-inline: auto;
    padding: 80px 56px;

    background: linear-gradient(
            163.064deg,
            rgba(239, 241, 244, 0.85) 0%,
            rgba(239, 241, 244, 0.75) 100%
        );
    border: 1px solid rgba(229, 231, 235, 0.2);
    border-radius: 28px;
}

.sf-how-it-works__header {
    max-width: 536px;
    margin: 0 auto 40px;

    text-align: center;
}

.sf-how-it-works__title {
    margin: 0 0 12px;

    color: var(--color-text-primary);

    font-size: 56px;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.56px;
}

.sf-how-it-works__description {
    margin: 0;

    color: var(--color-text-muted);

    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.sf-how-it-works__description strong {
    font-weight: 700;
}

.sf-how-it-works__grid {
    display: grid;
    grid-template-columns: repeat(4, 312px);
    gap: 16px;
    justify-content: center;

    width: auto;
    max-width: none;
    margin: 0;
}

.sf-how-it-works__grid > .image-slider__slide {
    position: static;
    inset: auto;

    opacity: 1;
    transition: none;
}

.sf-how-it-works__dots {
    display: none;
}

.sf-process-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    width: 312px;
    height: 379px;
    padding: 24px;

    color: #101727;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-bg-white);
    border-radius: 20px;
}

.sf-process-card__step {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0 0 7px;

    color: var(--color-primary);

    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.sf-process-card__step span {
    width: 22px;
    height: 1.5px;

    background: #c7cbd4;
}

.sf-process-card__title {
    margin: 0 0 6px;

    color: #101727;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02px;
}

.sf-process-card__description {
    margin: 0;

    color: var(--color-text-muted);

    font-size: 14px;
    line-height: 1.5;
}

.sf-process-card__description strong {
    font-weight: 700;
}

.sf-process-card__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    margin: 18px 0 0;
    padding: 0;

    list-style: none;
}

.sf-process-card__tags li {
    position: relative;

    min-height: 26px;
    padding: 5px 10px 5px 21px;

    color: #101727;
    background: #f2f3f5;
    border: 1px solid rgba(17, 42, 212, 0.05);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 500;
    line-height: normal;
}

.sf-process-card__tags li::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 10px;

    width: 5px;
    height: 5px;

    background: var(--color-primary);
    border-radius: 50%;
    transform: translateY(-50%);
}

.sf-process-card__visual {
    display: block;

    width: 259px;
    max-width: none;
    margin-top: auto;
}

.sf-process-card:nth-child(1) .sf-process-card__visual {
    height: 125px;
}

.sf-process-card:nth-child(2) .sf-process-card__visual {
    height: 132px;
}

.sf-process-card:nth-child(3) .sf-process-card__visual,
.sf-process-card:nth-child(4) .sf-process-card__visual {
    height: 140px;
}

.sf-process-demo {
    overflow: hidden;

    min-height: 122px;
    margin-top: auto;
    padding: 14px;

    color: #374151;
    background: #f2f3f6;
    border-radius: 12px;
}

.sf-process-demo__devices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.sf-process-demo__devices span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    height: 39px;

    background: #f5f6fa;
    border: 1px solid #d9def4;
    border-radius: 8px;

    font-size: 9px;
}

.sf-process-demo__devices i {
    width: 5px;
    height: 5px;

    background: #3655e9;
    border-radius: 50%;
}

.sf-process-demo__stream {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    min-height: 38px;
    margin-top: 10px;
    padding: 8px 12px;

    background: #f5f6fa;
    border: 1px solid #d9def4;
    border-radius: 8px;

    font-size: 10px;
}

.sf-process-demo__stream strong {
    font-size: 14px;
    white-space: nowrap;
}

.sf-process-demo__stream small {
    color: #6b7280;

    font-size: 8px;
    font-weight: 400;
}

.sf-process-demo--audit,
.sf-process-demo--drivers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sf-process-demo--chart {
    padding: 11px 9px 5px;
}

.sf-process-demo--chart p {
    margin: 0 0 3px;

    color: #8a93a5;

    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.sf-process-demo--chart svg {
    width: 100%;
    height: 102px;
    overflow: visible;
}

@media (max-width: 1200px) {
    .sf-how-it-works__panel {
        padding-inline: 48px;
    }
    .sf-how-it-works__grid {
        grid-template-columns: repeat(2, 312px);
    }
}

@media (max-width: 900px) {
    .sf-how-it-works__panel {
        padding: 64px 40px;
    }
}

@media (max-width: 640px) {
    .sf-how-it-works {
        padding: 40px 8px;
    }
    .sf-how-it-works__panel {
        min-height: auto;
        padding: 48px 14px 14px;

        border-radius: 22px;
    }
    .sf-how-it-works__header {
        margin-bottom: 30px;
    }
    .sf-how-it-works__title {
        margin-bottom: 12px;
        font-size: 40px;
    }
    .sf-how-it-works__description {
        font-size: 16px;
    }
    .sf-how-it-works__grid {
        position: relative;
        display: block;

        width: min(100%, 312px);
        max-width: 312px;
        height: 421px;
        margin-inline: auto;
    }
    .sf-how-it-works__grid > .image-slider__slide {
        position: absolute;
        top: 0;
        right: auto;
        bottom: auto;
        left: 0;

        width: 100%;
        height: 379px;
        padding: 24px;

        opacity: 0;
        pointer-events: none;
        transition: opacity 0.9s ease-in-out;
    }
    .sf-how-it-works__grid > .image-slider__slide.is-active {
        z-index: 1;

        opacity: 1;
        pointer-events: auto;
    }
    .sf-how-it-works__dots {
        display: flex;
        bottom: 0;

        padding: 4px 6px;
    }
    .sf-how-it-works__dots .image-slider__dot {
        width: 12px;
        height: 5px;
    }
    .sf-how-it-works__dots .image-slider__dot.is-active {
        width: 28px;
    }
    .sf-process-card__title {
        font-size: 20px;
    }
}

@media (max-width: 340px) {
    .sf-how-it-works__panel {
        padding-inline: 8px;
    }
    .sf-process-card {
        padding-inline: 14px;
    }
}
