:root {
    --bg: #fff;
    --bg2: #f7f3f8;
    --tx: #1d1523;
    --mut: #5d5266;
    --ac: #6b2d82;
    --ac2: #b8893b;
    --card: #fff;
    --bd: #e6dcea;
    --onac: #fff;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px)
}

@media(prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) {
        --bg: #150f19;
        --bg2: #1d1524;
        --tx: #f3ecf6;
        --mut: #b9abc3;
        --ac: #c58be0;
        --ac2: #e0b565;
        --card: #241a2c;
        --bd: #3a2b45;
        --onac: #150f19
    }
}

:root[data-theme="dark"] {
    --bg: #150f19;
    --bg2: #1d1524;
    --tx: #f3ecf6;
    --mut: #b9abc3;
    --ac: #c58be0;
    --ac2: #e0b565;
    --card: #241a2c;
    --bd: #3a2b45;
    --onac: #150f19
}

html {
    scroll-padding-top: env(safe-area-inset-top, 0px)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--tx);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    line-height: 1.65;
    font-size: 16px
}

.w {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px
}

section {
    padding: 30px 0;
    border-top: 1px solid var(--bd)
}

section:nth-of-type(even) {
    background: var(--bg2)
}

.top {
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mut);
    letter-spacing: .04em
}

.k {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ac);
    margin: 0 0 12px
}

h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    margin: 0 0 6px;
    font-weight: 800
}

h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.2;
    margin: 0 0 18px;
    font-weight: 800
}

h3 {
    font-size: 19px;
    margin: 0 0 10px;
    line-height: 1.3
}

p {
    margin: 0 0 14px;
    color: var(--mut)
}

.lede {
    font-size: 18px
}

.g2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center
}

.g3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.g4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px
}

.mt {
    margin-top: 32px
}

.card {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 16px;
    padding: 24px
}

.n {
    color: var(--ac2);
    font-weight: 800;
    margin-right: 6px
}

.ben {
    font-size: 14px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--bd)
}

.ben b {
    color: var(--tx)
}

.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid var(--ac);
    cursor: pointer;
    font-family: inherit;
    margin: 8px 10px 0 0
}

.bp {
    background: var(--ac);
    color: var(--onac)
}

.bg {
    background: transparent;
    color: var(--ac)
}

.fig {
    width: 100%;
    margin: 0 auto
}

.fig img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.top .logo,
.client-logo {
    height: 56px;
    width: auto;
    max-height: 56px;
    display: block;
    object-fit: contain;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal.in {
    opacity: 1;
    transform: none
}

@media(prefers-reduced-motion:reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none
    }
}

.phone {
    width: min(260px, 100%);
    aspect-ratio: 4/5;
    margin: 0 auto;
    border-radius: 28px;
    border: 8px solid var(--tx);
    background: linear-gradient(160deg, var(--ac), var(--ac2));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    position: relative
}

.phone small {
    display: block;
    font-weight: 500;
    opacity: .85;
    margin-top: 6px;
    font-size: 12px
}

.dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    margin: 20px 0 0;
    border: 1px solid var(--bd);
    border-radius: 16px;
    overflow: hidden;
    background: var(--card)
}

.dl dt,
.dl dd {
    margin: 0;
    padding: 14px 20px;
    border-bottom: 1px solid var(--bd)
}

.dl dt {
    font-weight: 700;
    color: var(--tx);
    background: var(--bg2)
}

.dl dd {
    color: var(--mut)
}

.dl dt:last-of-type,
.dl dd:last-of-type {
    border-bottom: 0
}

.stat {
    font-size: 40px;
    font-weight: 800;
    color: var(--ac);
    line-height: 1;
    margin-bottom: 8px
}

.alt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 56px
}

.alt.f .at {
    order: 2
}

.step {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ac);
    color: var(--onac);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 12px
}

.cl {
    margin: 0;
    padding-left: 18px;
    color: var(--mut);
    font-size: 15px
}

.cl li {
    margin-bottom: 8px
}

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.tech span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg2);
    border: 1px solid var(--bd);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tx);
    transition: border-color .2s, background-color .2s;
}

.tech span:hover {
    border-color: var(--ac);
}

.tech img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
}

.cta {
    background: var(--ac);
    color: var(--onac);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center
}

.cta p {
    color: inherit;
    opacity: .92;
    max-width: 640px;
    margin: 0 auto 20px
}

.cta .bp {
    background: var(--onac);
    color: var(--ac);
    border-color: var(--onac)
}

.cta .bg {
    color: var(--onac);
    border-color: var(--onac)
}

@media(max-width:900px) {

    .g2,
    .alt {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .g3,
    .g4 {
        grid-template-columns: 1fr 1fr
    }

    .alt.f .at {
        order: 0
    }

    .dl {
        grid-template-columns: 1fr
    }
}

@media(max-width:600px) {

    .g3,
    .g4 {
        grid-template-columns: 1fr
    }

    section {
        padding: 52px 0
    }
}

/* Base button */
button.btn.bp {
    display: inline-block;
    padding: 14px 32px;
    background: #e63946;
    /* brand colour */
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    border: 2px solid #e63946;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Hover */
button.btn.bp:hover {
    background: #c92f3b;
    border-color: #c92f3b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(230, 57, 70, 0.4);
}

/* Click */
button.btn.bp:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

/* Keyboard focus (accessibility) */
button.btn.bp:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.3);
}

/* Mobile */
@media (max-width: 576px) {
    button.btn.bp {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* 3-column layout, built on a 6-column grid so the last row can be centered */
.g3.mt {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    /* keep your existing gap value */
}

.g3.mt>.card {
    grid-column: span 2;
    /* each card takes 2 of 6 columns = 3 per row */
}

/* Last row has 1 card: starts at column 3, spans 2 (centered) */
.g3.mt>.card:last-child:nth-child(3n + 1),
#tech .g3.mt>.card:last-child {
    grid-column: 3 / span 2;
}

/* Last row has 2 cards: second-last starts at column 2, last at column 4 */
.g3.mt>.card:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2 / span 2;
}

.g3.mt>.card:last-child:nth-child(3n + 2) {
    grid-column: 4 / span 2;
}

/* Tablet: 2 per row */
@media (max-width: 991px) {
    .g3.mt {
        grid-template-columns: repeat(2, 1fr);
    }

    .g3.mt>.card,
    .g3.mt>.card:nth-last-child(2):nth-child(3n + 1),
    .g3.mt>.card:last-child:nth-child(3n + 2),
    .g3.mt>.card:last-child:nth-child(3n + 1) {
        grid-column: auto;
    }

    /* #tech on tablet: 4-column grid so the single last card is horizontally centered with matching width */
    #tech .g3.mt {
        grid-template-columns: repeat(4, 1fr);
    }

    #tech .g3.mt>.card {
        grid-column: span 2;
    }

    #tech .g3.mt>.card:last-child {
        grid-column: 2 / span 2;
    }
}

/* Mobile: 1 per row */
@media (max-width: 575px) {

    .g3.mt,
    #tech .g3.mt {
        grid-template-columns: 1fr;
    }

    #tech .g3.mt>.card,
    #tech .g3.mt>.card:last-child {
        grid-column: auto;
    }
}