/* NxCorp | css/pricing-services.css
   Pricing tabs and cards, services cards
   Load order matters: files are linked in index.html in this order. */

/* ========== SECTION: PRICING (CSS) ========== */
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tabs button {
    font: inherit;
    font-weight: 500;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    border-radius: 999px;
    padding: 10px 22px;
    cursor: pointer;
    transition: all .25s;
}

.tabs button[aria-selected="true"] {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 10px 24px -10px var(--blue);
}

.tp {
    display: none;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 10px 26px 28px;
}

.tp.on {
    display: block;
    animation: up .5s both;
}

.tp .intro {
    color: var(--mute);
    margin: 16px 0 4px;
}

.pr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    transition: padding .25s;
}

.pr:not(.hd):hover {
    padding-left: 10px;
}

.pr b {
    font: 800 20px 'Bricolage Grotesque',sans-serif;
    letter-spacing: -.02em;
}

.pr small {
    display: block;
    color: var(--mute);
    font-size: 14px;
}

.pr .amt {
    font: 800 22px 'Bricolage Grotesque',sans-serif;
    color: var(--blue);
    text-align: right;
    white-space: nowrap;
}

.pr .amt i {
    display: none;
    font: 500 11px 'JetBrains Mono',monospace;
    color: var(--mute);
    font-style: normal;
}

.pr.g3 {
    grid-template-columns: 1.4fr 1fr 1fr;
}

.pr.hd {
    font: 500 13px 'JetBrains Mono',monospace;
    color: var(--mute);
    padding: 14px 0 10px;
}

.pr.hd .amt {
    font: 500 13px 'JetBrains Mono',monospace;
    color: var(--mute);
}

.tp .btn {
    margin-top: 24px;
}

@media (max-width: 560px) {
    .pr.g3 {
        grid-template-columns: 1fr 1fr;
    }
    .pr.g3>div:first-child {
        grid-column: 1/-1;
    }
    .pr.hd {
        display: none;
    }
    .pr .amt {
        font-size: 19px;
        text-align: left;
    }
    .pr .amt i {
        display: block;
    }
    .pr:not(.g3) .amt {
        text-align: right;
    }
}

.pr.cu {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 12px;
}

.pr.cu:hover {
    background: color-mix(in srgb,#25d366 10%,transparent);
    padding-right: 10px;
}

.wp {
    background: #25d366;
    color: #08330f;
    font: 500 13.5px 'DM Sans',sans-serif;
    border-radius: 999px;
    padding: 8px 16px;
    white-space: nowrap;
    box-shadow: 0 8px 18px -8px #25d366;
    transition: transform .25s;
}

.pr.cu:hover .wp {
    transform: scale(1.06);
}

.pc .wab {
    padding: 6px 12px;
    font-size: 13px;
    margin-top: 8px;
}

/* ========== SECTION: SERVICES (CSS) ========== */
.sgrid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.sv {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 30px 26px 26px;
    display: flex;
    flex-direction: column;
}

.sv.a {
    background: var(--blue);
    color: #fff;
}

.sv.b {
    background: var(--lilac);
    color: var(--ink);
}

.sv.c {
    background: var(--ink);
    color: var(--bg);
}

.sv::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(280px circle at var(--mx,50%) var(--my,0%),rgba(255,255,255,.2),transparent 70%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.sv:hover::before {
    opacity: 1;
}

.sv .ic {
    width: 62px;
    height: 62px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    margin-bottom: 20px;
    position: relative;
}

.sv.b .ic {
    background: rgba(79,70,229,.12);
    color: var(--blue);
}

.sv .ic::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 19px;
    border: 2px solid currentColor;
    opacity: 0;
    animation: ring 2.6s ease-out infinite;
}

@keyframes ring {
    from {
        transform: scale(1);
        opacity: .55;
    }
    to {
        transform: scale(1.55);
        opacity: 0;
    }
}

.sv h3 {
    font-size: 32px;
    margin-bottom: 6px;
}

.sv>p {
    margin: 0 0 18px;
    opacity: .85;
    font-size: 15.5px;
}

.sv ul {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex: 1;
}

.sv li {
    border-top: 1px solid color-mix(in srgb,currentColor 28%,transparent);
    padding: 11px 0;
    transition: padding .25s;
}

.sv li:hover {
    padding-left: 8px;
}

.sv li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.sv li em {
    font-style: normal;
    font-size: 12.5px;
    font-weight: 500;
    background: #25d366;
    color: #08330f;
    border-radius: 999px;
    padding: 2px 11px;
    white-space: nowrap;
}

.sv.in li {
    animation: li .6s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(var(--i)*70ms + 250ms);
}

@keyframes li {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.sv .sl {
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    align-self: flex-start;
    transition: letter-spacing .25s;
}

.sv .sl:hover {
    letter-spacing: .04em;
}

.cur {
    animation: blink 1s steps(1) infinite;
}

.beat {
    transform-box: fill-box;
    transform-origin: center;
    animation: beat 1.3s ease-in-out infinite;
}

@keyframes beat {
    30% {
        transform: scale(1.2);
    }
    60% {
        transform: scale(1);
    }
}

.wv {
    animation: wave 1.6s ease-in-out infinite;
}

.wv2 {
    animation-delay: .35s;
}

@keyframes wave {
    0% {
        opacity: .1;
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: .1;
    }
}

@media (max-width: 860px) {
    .sgrid {
        grid-template-columns: 1fr;
    }
}

.badge::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25d366;
    margin-right: 9px;
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37,211,102,.6);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(37,211,102,0);
    }
}

.hp {
    list-style: none;
    display: flex;
    gap: 10px 22px;
    flex-wrap: wrap;
    margin: 24px 0 0;
    padding: 0;
}

.hp li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 500;
    font-size: 15.5px;
    animation: up .6s both;
}

.hp li:nth-child(1) {
    animation-delay: .9s;
}

.hp li:nth-child(2) {
    animation-delay: 1.1s;
}

.hp li:nth-child(3) {
    animation-delay: 1.3s;
}

.hp li::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat;
    animation: pop .5s both;
}

.hp li:nth-child(1)::before {
    animation-delay: 1.1s;
}

.hp li:nth-child(2)::before {
    animation-delay: 1.3s;
}

.hp li:nth-child(3)::before {
    animation-delay: 1.5s;
}

@keyframes pop {
    from {
        transform: scale(0);
    }
    60% {
        transform: scale(1.3);
    }
    to {
        transform: scale(1);
    }
}

.stats div {
    animation: up .8s both;
}

.stats div:nth-child(1) {
    animation-delay: .9s;
}

.stats div:nth-child(2) {
    animation-delay: 1.05s;
}

.stats div:nth-child(3) {
    animation-delay: 1.2s;
}

.stats div:nth-child(4) {
    animation-delay: 1.35s;
}

.win {
    transition: transform .2s ease-out;
    will-change: transform;
}

.work {
    grid-template-columns: repeat(2,1fr);
    gap: 24px;
}

.proj.big .in {
    padding: 22px 24px 26px;
}

.proj.big h3 {
    font-size: 28px;
}

.acts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.acts .btn {
    padding: 11px 22px;
    font-size: 15px;
}

/* Work cards */
.mock {
    position: relative;
    height: 230px;
    background: #eef0f7;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.mock .mt {
    color: #fff;
    font: 800 22px 'Bricolage Grotesque',sans-serif;
    padding: 14px 18px;
}

.mock .mk {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 18px;
    background: #fff;
}

.mock .mk b {
    background: #d93025;
    color: #fff;
    font: 700 11px 'DM Sans',sans-serif;
    padding: 2px 8px;
    border-radius: 4px;
}

.mock .mk span {
    height: 8px;
    flex: 1;
    background: #dde;
    border-radius: 4px;
}

.mock .hb {
    background: linear-gradient(90deg,#ff6b3d,#ffb347);
    color: #0e1130;
    font: 800 18px 'Bricolage Grotesque',sans-serif;
    padding: 16px 18px;
}

.mock .mg {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    padding: 14px 18px;
}

.mock .mg i {
    height: 68px;
    background: #fff;
    border: 1px solid #dde;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    font: 500 13px 'DM Sans',sans-serif;
    color: #333;
    font-style: normal;
}

.mock .mg i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,transparent,rgba(81,134,213,.28),transparent);
    transform: translateX(-100%);
    animation: sh 3s infinite;
}

.mock .mg i:nth-child(2)::after {
    animation-delay: .3s;
}

.mock .mg i:nth-child(3)::after {
    animation-delay: .6s;
}

.mock .mg i:nth-child(4)::after {
    animation-delay: .9s;
}

.mock .mg i:nth-child(5)::after {
    animation-delay: 1.2s;
}

.mock .mg i:nth-child(6)::after {
    animation-delay: 1.5s;
}

@keyframes sh {
    to {
        transform: translateX(100%);
    }
}

.live {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: #fff;
    color: #08330f;
    border-radius: 999px;
    font: 500 12px 'DM Sans',sans-serif;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25d366;
    animation: pulse 1.6s infinite;
}
