/* ---------- Highlighted span (components/highlighted-span) ---------- */
.highlight {
    color: var(--color-primary);
    font-size: inherit;
    display: inline-block;
}

.highlight--underlined {
    border-bottom: 2px solid var(--color-primary);
}

/* ---------- Hero (sectionOneWrapper / sectionOneContent / sectionOneImage) ---------- */
.home-hero {
    padding-top: calc(var(--spacing) * 5);
    background: var(--color-header-bg);
    border-radius: 0 0 50px 50px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    margin-bottom: calc(var(--spacing) * 30);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-hero__title {
    font-size: 2rem;
    line-height: 1.379;
    letter-spacing: -0.5px;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.home-hero__subtitle {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-align: center;
    margin: calc(var(--spacing) * 2) 0 20px;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing) * 2);
}

/* The preview image overhangs the hero panel's rounded bottom edge. */
.home-hero__image {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: -180px auto 0;
    position: relative;
    bottom: -210px;
}

@media (max-width: 959px) {
    .home-hero {
        padding-bottom: calc(var(--spacing) * 9);
    }
}

@media (max-width: 599px) {
    .home-hero {
        margin-bottom: calc(var(--spacing) * 18);
    }

    .home-hero__image {
        margin-top: calc(var(--spacing) * 3);
        bottom: -60px;
    }
}

/* ---------- Trusted by (trustedByGrid / trustedByLogo) ---------- */
.home-trusted-by__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing) * 2);
    align-items: center;
    list-style: none;
    max-width: 800px;
    margin: calc(var(--spacing) * 2) auto calc(var(--spacing) * 5);
    padding: calc(var(--spacing) * 2) 0 0;
}

@media (min-width: 600px) {
    .home-trusted-by__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-trusted-by__item img {
    display: block;
    margin: var(--spacing) auto;
}

.home-trusted-by__caption {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-align: center;
}

/* ---------- Feature items ---------- */
/* The old grid gutter padded every side: 32px clear, 64px apart. */
.feature-item {
    display: grid;
    gap: calc(var(--spacing) * 8);
    padding: calc(var(--spacing) * 4) 0;
    align-items: center;
    justify-items: center;
    margin: calc(var(--spacing) * 10) 0;
}

@media (min-width: 960px) {
    .feature-item {
        grid-template-columns: 1fr 1fr;
    }

    .feature-item--reverse .feature-item__body {
        order: 2;
    }
}

.feature-item__subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 6px;
}

.feature-item__title {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.feature-item__description {
    margin: 0 0 calc(var(--spacing) * 3);
}

.feature-item__media img {
    display: block;
    width: 100%;
}

@media (max-width: 959px) {
    .feature-item__subtitle,
    .feature-item__title,
    .feature-item__description {
        text-align: center;
    }

    .feature-item__body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ---------- Extra info: statistics + security badges ---------- */
.home-extra-info {
    background: var(--color-header-bg);
    padding-top: calc(var(--spacing) * 10);
    padding-bottom: calc(var(--spacing) * 10);
    box-shadow: 0 3px 22px 0 rgba(46, 46, 46, 0.12);
}

.home-extra-info__title {
    text-align: center;
    margin: calc(var(--spacing) * 10) 0 calc(var(--spacing) * 4);
}

.home-extra-info__title:first-child {
    margin-top: 0;
}

.home-extra-info__text {
    text-align: center;
    margin: 0;
}

.home-statistics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--spacing) * 2);
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 959.95px) {
    .home-statistics {
        max-width: 500px;
        margin: auto;
    }
}

/* statistics-card */
.statistics-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 10px;
    color: #fff;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    padding: calc(var(--spacing) * 4) 0 calc(var(--spacing) * 2);
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    text-align: center;
}

.statistics-card__icon {
    background: #fff;
    color: var(--color-primary);
    padding: calc(var(--spacing) * 2);
    border-radius: 10px;
    display: inline-block;
    line-height: 0;
    margin: 0 auto calc(var(--spacing) * 3);
    transform: rotate(-15deg);
    box-shadow: 5px 6px 11px 0 rgba(0, 0, 0, 0.16);
}

.statistics-card__value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.25px;
}

.statistics-card__title {
    /* Matches live's h6 variant: 0.875rem (its real 14px, not the 1em this inherited from body)
       and the 0.0075em letter-spacing MUI's h6 default computes. */
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.0075em;
}

/* badgesGrid */
.home-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing) * 8);
    list-style: none;
    margin: calc(var(--spacing) * 3) 0 0;
    padding: 0;
}

.home-badges img {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}
