/* Block: ServiceNow Credentials. All selectors scoped under .servicenow-credentials (BEM). */

.servicenow-credentials {
    /* Cool light-grey section ground (Figma #F5F7F9). No theme variable exists for it. */
    background: #F5F7F9;
    padding: 80px 0;
}

.servicenow-credentials__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* ---- Header --------------------------------------------------------------- */
.servicenow-credentials__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.servicenow-credentials__eyebrow {
    font-family: "Chalet Custom", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: 0.36px;
    text-transform: uppercase;
    color: var(--lightblue);
}

/* The theme's global h2 rule sets 50px and a 30px bottom padding — both are
   overridden here so the heading matches the board exactly. */
.servicenow-credentials__title {
    margin: 0;
    padding: 0;
    font-family: "Zurich", sans-serif;
    font-weight: bold;
    font-size: 60px;
    line-height: 1.1;
    letter-spacing: -0.6px;
    color: var(--main-color);
}

/* ---- Stats row ------------------------------------------------------------ */
.servicenow-credentials__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    /* Figma: three 340px columns with a 60px gutter = 1140px. */
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.servicenow-credentials__stat {
    flex: 0 1 340px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    text-align: center;
}

.servicenow-credentials__stat-number {
    font-family: "Chalet Custom", sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.2;
    color: var(--main-color);
}

.servicenow-credentials__stat-label {
    font-family: "Chalet Custom", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: var(--lightblue);
}

/* ---- Credential cards ----------------------------------------------------- */
.servicenow-credentials__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.servicenow-credentials__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    background: #fff;
    /* Figma #E2E8F0 — cool grey hairline, no theme variable. */
    border: 2px solid #E2E8F0;
    border-radius: 24px;
}

/* Editor-controlled accent (the "Highlight" checkbox on the card).
   editor-style.css only ships a subset of the :root palette and has no
   --green-2, so every use of it carries the literal as a fallback — otherwise
   the Gutenberg preview drops back to currentColor. */
.servicenow-credentials__card--accent {
    border-color: var(--green-2, #7AE567);
}

.servicenow-credentials__card-index {
    font-family: "Chalet Custom", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.12;
    color: var(--green-2, #7AE567);
}

.servicenow-credentials__card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* The theme's global h3 rule forces font-weight: normal / line-height: 1.5. */
.servicenow-credentials__card-title {
    margin: 0;
    padding: 0;
    font-family: "Chalet Custom", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    color: var(--main-color);
}

.servicenow-credentials__card-text {
    margin: 0;
    font-family: "Chalet Custom", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    color: var(--main-color);
}

/* ---- Responsive -----------------------------------------------------------
   Three tiers matching the Figma frames:
   base >=1500px = 1920 frame, <=1499px = 1440 frame, <=1023px = 375 frame. */

@media (max-width: 1499px) {
    .servicenow-credentials {
        padding: 60px 0;
    }

    .servicenow-credentials__inner {
        gap: 40px;
    }

    .servicenow-credentials__header {
        gap: 14px;
    }

    .servicenow-credentials__eyebrow {
        font-size: 15px;
        letter-spacing: 0.3px;
    }

    .servicenow-credentials__title {
        font-size: 50px;
        letter-spacing: -0.5px;
    }

    .servicenow-credentials__stats {
        gap: 50px;
        max-width: 950px;
    }

    .servicenow-credentials__stat {
        flex-basis: 283.333px;
        max-width: 283.333px;
        gap: 6.667px;
    }

    .servicenow-credentials__stat-number {
        font-size: 34px;
    }

    .servicenow-credentials__stat-label {
        font-size: 16px;
    }

    .servicenow-credentials__cards {
        gap: 16.667px;
    }

    .servicenow-credentials__card {
        gap: 14px;
        padding: 28px;
        border-radius: 20px;
    }

    .servicenow-credentials__card-index {
        font-size: 16px;
    }

    .servicenow-credentials__card-body {
        gap: 6.667px;
    }

    .servicenow-credentials__card-title {
        font-size: 20px;
    }

    .servicenow-credentials__card-text {
        font-size: 16px;
    }
}

@media (max-width: 1023px) {
    .servicenow-credentials {
        /* The mobile board sits on a slightly deeper grey than the desktop one. */
        background: #F0F3F6;
        padding: 30px 0;
    }

    .servicenow-credentials__inner {
        gap: 32px;
    }

    .servicenow-credentials__eyebrow {
        font-size: 14px;
        letter-spacing: normal;
    }

    .servicenow-credentials__title {
        font-size: 26px;
        letter-spacing: normal;
    }

    /* Metrics stack instead of sharing a row. */
    .servicenow-credentials__stats {
        flex-direction: column;
        gap: 30px;
        max-width: none;
    }

    .servicenow-credentials__stat {
        flex: 0 0 auto;
        max-width: none;
        gap: 4px;
    }

    .servicenow-credentials__stat-number {
        font-size: 46px;
        line-height: 1;
    }

    .servicenow-credentials__cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .servicenow-credentials__card {
        gap: 16px;
        padding: 24px;
        /* Figma #D2DFE8 — the mobile board uses a 1px border in a warmer grey. */
        border: 1px solid #D2DFE8;
        border-radius: 16px;
    }

    .servicenow-credentials__card--accent {
        border-color: var(--green-2, #7AE567);
    }

    .servicenow-credentials__card-index {
        font-size: 18px;
    }

    .servicenow-credentials__card-body {
        gap: 8px;
    }

    .servicenow-credentials__card-title {
        line-height: 1.12;
    }

    .servicenow-credentials__card-text {
        font-size: 15px;
    }
}
