/* ==========================================================================
   HERO
   ========================================================================== */

.ak-hero {
    margin-top: calc(var(--ak-nav-h) * -1);
    padding-top: var(--ak-nav-h);
    background: var(--ak-red-deep);
    color: #fff;
    overflow: hidden;
}

.ak-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero/bg.webp');
    background-size: cover;
    background-position: center center;
    background-color: var(--ak-red-deep);
}

.ak-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 30px;
    min-height: calc(100vh - var(--ak-nav-h));
    min-height: calc(100svh - var(--ak-nav-h));
    padding-block: 40px 175px;
}

.ak-hero__title {
    --extrude: .022em .03em 0 rgba(0, 0, 0, .3), .05em .07em .1em rgba(0, 0, 0, .5);
    text-align: center;
    font-weight: 800;
    line-height: .86;
    letter-spacing: -.02em;
    margin: 0 0 22px;
    font-size: clamp(2.1rem, 6.6vw, 5.4rem);
    text-transform: uppercase;
    /* The camera is close (460px) so the projection reads: at 900px a 9deg rotateY
       shrinks the right edge by only ~5%. */
    perspective: 460px;
    perspective-origin: 50% 40%;
}

.ak-hero__title span {
    display: block;
    transform-origin: center;
}

.ak-hero__title .l1 {
    position: relative;
    z-index: 1;
    transform: rotateX(13deg) rotateY(15deg) rotate(-2deg) skewX(-12deg);
    text-shadow: var(--extrude);
}

.ak-hero__title .l2 {
    position: relative;
    z-index: 3;
    transform: rotateX(11deg) rotateY(10deg) rotate(-1.4deg) skewX(-12deg) translateZ(30px);
    text-shadow: var(--extrude);
}

/* line-height:0 keeps the inline-block inside from adding line-box height. */
.ak-hero__title .l3wrap {
    position: relative;
    z-index: 2;
    line-height: 0;
    margin-top: -.1em;
}

.ak-hero__title .l3 {
    display: inline-block;
    background: #14100f;
    padding: .2em .62em .24em;
    font-size: .54em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .005em;
    white-space: nowrap;
    transform: rotate(-1deg);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .38);
}

.ak-hero__lead {
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    line-height: 1.55;
    max-width: 44ch;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .95);
}

.ak-hero__lead b {
    font-weight: 700;
}

.ak-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ak-hero__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 480px;
    translate: 0 34px;
}

/* `.ak .ak-hero__mascot` (0,2,0) is needed to beat `.ak img { max-width:100% }` (0,1,1). */
.ak .ak-hero__mascot {
    grid-area: 1 / 1;
    width: 155%;
    max-width: 820px;
    opacity: 0;
    transform: scale(.94) translateY(14px);
    transition: opacity .9s var(--ak-ease), transform .9s var(--ak-ease);
    will-change: opacity, transform;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .3));
}

.ak-hero__mascot.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: ak-float 6s ease-in-out infinite;
}

@keyframes ak-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-18px) scale(1.012);
    }
}

/* ==========================================================================
   TRUST — map + statistics
   ========================================================================== */

.ak-trust {
    background-color: #fff;
    background-image: url('../images/illustrations/bg-map-indonesia.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(1200px, 100%) auto;
    padding-block: 90px;
}

.ak-trust__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 50px;
    align-items: center;
}

.ak-map {
    position: relative;
}

.ak-map__img {
    width: 100%;
    display: block;
}

.ak-map__paket {
    position: absolute;
    z-index: 2;
    width: 46px;
    height: auto;
    transform: translate(-50%, -100%);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25));
    animation: ak-plans-bob 3.6s ease-in-out infinite;
}

@keyframes ak-plans-bob {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -7px;
    }
}

.ak-map__pin {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: stretch;
    background: #fff;
    color: var(--ak-ink);
    font-size: .92rem;
    font-weight: 700;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
    white-space: nowrap;
    transform: translate(-50%, -50%);
    animation: ak-pin-pop .6s var(--ak-ease) backwards;
}

.ak-map__pin i {
    display: grid;
    place-items: center;
    padding: 6px 9px;
    background: var(--ak-red);
    color: #fff;
    font-size: 1.05rem;
}

.ak-map__pin b {
    display: grid;
    place-items: center;
    padding: 6px 12px;
    font-weight: 700;
}

/* Its own element rather than a ::before on the badge: the badge is transformed
   and has overflow:hidden, which would clip the pseudo-element. */
.ak-map__line {
    position: absolute;
    z-index: 1;
    height: 2px;
    background: var(--ak-red);
    opacity: .5;
    transform-origin: 0 50%;
    pointer-events: none;
}

@keyframes ak-pin-pop {
    from {
        opacity: 0;
        transform: translate(-50%, -30%) scale(.8);
    }
}

.ak-trust__copy {
    text-align: center;
}

.ak-trust__heading {
    font-size: var(--ak-h2);
    font-weight: var(--ak-h2-weight);
    line-height: 1.25;
    margin: 0 0 14px;
}

.ak-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--ak-body);
    font-size: 1rem;
    margin-bottom: 34px;
}

.ak-rating b {
    color: var(--ak-ink);
}

.ak-rating__stars {
    color: var(--ak-amber);
    letter-spacing: 1px;
}

.ak-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ak-stat {
    text-align: center;
    padding-inline: 8px;
    position: relative;
}

.ak-stat+.ak-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: var(--ak-line);
}

.ak-stat__icon {
    font-size: 2.3rem;
    color: var(--ak-ink);
    line-height: 1;
    margin-bottom: 10px;
}

.ak-stat__num {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 700;
    color: var(--ak-red);
    line-height: 1.1;
}

.ak-stat__label {
    font-size: .85rem;
    color: var(--ak-body);
    margin-top: 4px;
    line-height: 1.4;
}

/* ==========================================================================
   PROBLEMS — red panel, 6 cards around the mascot (3 left, 3 right)
   ========================================================================== */

.ak-problems {
    background: var(--ak-red);
    color: #fff;
    padding-block: 84px 96px;
    overflow: hidden;
}

.ak-problems__title {
    text-align: center;
    font-size: var(--ak-h2);
    font-weight: var(--ak-h2-weight);
    margin: 0 0 54px;
}

.ak-problems__stage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(300px, 390px) 1fr;
    gap: 18px 0;
    align-items: center;
}

.ak-problems__mascot {
    position: relative;
    z-index: 2;
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 100%;
    align-self: center;
    animation: ak-float 7s ease-in-out infinite;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .3));
}

.ak-card {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--ak-ink);
    border-radius: var(--ak-radius-lg);
    padding: 20px 24px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.ak-card--kiri {
    margin-right: -46px;
}

.ak-card--kanan {
    margin-left: -46px;
}

.ak-card__no {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    z-index: -1;
    opacity: .95;
}

.ak-card--p1 { grid-column: 1; grid-row: 1; }
.ak-card--p2 { grid-column: 3; grid-row: 1; }
.ak-card--p3 { grid-column: 1; grid-row: 2; }
.ak-card--p4 { grid-column: 3; grid-row: 2; }

/* Shifted with relative offsets, not translate, which [data-reveal] already uses. */
.ak-card--p5,
.ak-card--p6 {
    grid-row: 3;
    z-index: 4;
    margin-top: 0;
}

.ak-card--p5 {
    grid-column: 1;
    left: 30%;
}

.ak-card--p6 {
    grid-column: 3;
    right: 30%;
}

.ak-card--kiri {
    margin-left: 52px;
}

.ak-card--kanan {
    margin-right: 52px;
}

.ak-card--kiri .ak-card__no {
    left: -50px;
}

.ak-card--kanan .ak-card__no {
    right: -50px;
}

.ak-card h3 {
    font-size: 1.24rem;
    font-weight: var(--ak-h3-weight);
    line-height: 1.3;
    margin: 0 0 8px;
}

.ak-card p {
    font-size: .88rem;
    color: var(--ak-muted);
    line-height: 1.55;
    margin: 0;
}

.ak-problems__closing {
    text-align: center;
    font-size: clamp(1.1rem, 2.4vw, 1.75rem);
    font-weight: 700;
    margin: 54px 0 0;
}

.ak-problems__closing em {
    font-style: normal;
    color: var(--ak-amber);
}

/* ==========================================================================
   SOLUTIONS — grid of 6 outlined cards
   ========================================================================== */

.ak-solutions {
    background: #fff;
    padding-block: 96px;
}

.ak-solutions__head {
    text-align: center;
    margin-bottom: 64px;
}

.ak-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.ak-solutions__card {
    position: relative;
    border: 1.5px solid var(--ak-red);
    border-radius: var(--ak-radius-lg);
    padding: 68px 26px 28px;
    margin-top: 68px;
    background: #fff;
    transition: transform .35s var(--ak-ease), box-shadow .35s var(--ak-ease);
}

.ak-solutions__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(207, 13, 13, .16);
}

.ak-solutions__card:hover .ak-solutions__icon {
    transform: translateX(-50%) scale(1.07) rotate(-3deg);
}

.ak-solutions__card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

.ak-solutions__card p {
    font-size: .89rem;
    color: var(--ak-body);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   PERSONAS — tabs
   ========================================================================== */

.ak-personas {
    background: linear-gradient(180deg, #fff 0%, #fff 36%, #fdf2f2 36%, #fdf2f2 100%);
    padding-block: 40px 96px;
}

.ak-personas__head {
    text-align: center;
    margin-bottom: 34px;
}

.ak-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 46px;
}

.ak-tab {
    border: 0;
    background: transparent;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ak-ink);
    transition: background-color .3s, color .3s, box-shadow .3s;
}

.ak-tab:hover {
    background: rgba(207, 13, 13, .07);
}

.ak-tab.is-active {
    background: var(--ak-red);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(207, 13, 13, .3);
}

.ak-personas__panel {
    display: none;
    grid-template-columns: .82fr 1.18fr;
    gap: 54px;
    align-items: center;
}

.ak-personas__panel.is-active {
    display: grid;
    animation: ak-fade-in .5s var(--ak-ease);
}

@keyframes ak-fade-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

.ak-personas__panel h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 700;
    margin: 0 0 18px;
}

.ak-personas__panel p {
    color: var(--ak-body);
    line-height: 1.75;
    margin: 0 0 26px;
}

.ak-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ak-red);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
}

.ak-link-arrow i {
    transition: transform .3s var(--ak-ease);
}

.ak-link-arrow:hover {
    color: var(--ak-red);
}

.ak-link-arrow:hover i {
    transform: translateX(6px);
}

.ak-personas__media {
    position: relative;
    border-radius: var(--ak-radius-lg);
    overflow: hidden;
    box-shadow: var(--ak-shadow-lg);
    aspect-ratio: 16 / 10;
}

.ak-personas__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ak-personas__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(207, 13, 13, .55));
}

/* ==========================================================================
   CLIENTS + TESTIMONIALS
   ========================================================================== */

.ak-clients {
    background: #fff;
    padding-block: 90px 30px;
}

.ak-clients__title {
    text-align: center;
    font-size: var(--ak-h2);
    font-weight: var(--ak-h2-weight);
    line-height: 1.35;
    max-width: 42ch;
    margin: 0 auto 50px;
}

.ak-clients .ak-marquee__item {
    width: 220px;
    height: 96px;
}

.ak-clients .ak-marquee__item img {
    max-height: 66px;
}

.ak-testimonials {
    background: #fff;
    padding-block: 60px 100px;
    overflow: hidden;
}

.ak-testimonials__inner {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 46px;
    align-items: center;
}

/* Without this the grid item uses min-width:auto and the carousel overflows its column. */
.ak-testimonials__inner>* {
    min-width: 0;
}

.ak-testimonials__head h2 {
    font-size: var(--ak-h2);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 14px;
}

.ak-testimonials__head p {
    color: var(--ak-muted);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   TESTIMONIALS — three-card fan
   The active card sits centre; its neighbours shift left and right, shrink and
   fade. Each card position is set by JS through the data-pos attribute.
   ========================================================================== */

.ak-testimonials__viewport {
    padding-block: 34px 28px;
}

/* Every cell shares one grid area, so the deck height follows the tallest card.
   With absolute stacking the active card would use its own height while the back
   cards stretched, leaving them poking out below it. */
.ak-testimonials__deck {
    display: grid;
}

/* A width of 61% makes the fan (centre card plus two neighbours) exactly fill its
   column at every screen size: 2 x (0.46 + 0.72/2) x width = 1.638 x width. */
/* The cell is a grid so the card stretches to the row height without `height:100%`:
   a percentage height locks the row shorter than the content and spills the card. */
.ak-testimonials__cell {
    grid-area: 1 / 1;
    justify-self: center;
    display: grid;
    width: min(61%, 440px);
    transition: transform .65s var(--ak-ease), opacity .55s var(--ak-ease);
    will-change: transform, opacity;
}

.ak-testimonials__cell[data-pos="0"] {
    transform: none;
    opacity: 1;
    z-index: 3;
}

.ak-testimonials__cell[data-pos="prev"] {
    transform: translateX(-46%) scale(.72);
}

.ak-testimonials__cell[data-pos="next"] {
    transform: translateX(46%) scale(.72);
}

.ak-testimonials__cell[data-pos="prev"],
.ak-testimonials__cell[data-pos="next"] {
    opacity: .85;
    z-index: 2;
    cursor: pointer;
}

.ak-testimonials__cell[data-pos="hidden"] {
    transform: scale(.6);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.ak-testimonials__card {
    background: #fff;
    border-radius: var(--ak-radius-lg);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .12);
}

.ak-testimonials__cell[data-pos="prev"] .ak-testimonials__card,
.ak-testimonials__cell[data-pos="next"] .ak-testimonials__card {
    background: #ededf0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.ak-testimonials__quote {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: .6;
    color: var(--ak-ink);
}

.ak-testimonials__body {
    font-size: .88rem;
    line-height: 1.7;
    color: var(--ak-body);
    margin: 0;
    flex: 1;
}

.ak-testimonials__foot {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ak-testimonials__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: #e4e4e4;
    flex: 0 0 auto;
}

.ak-testimonials__stars {
    color: var(--ak-amber);
    font-size: .78rem;
    letter-spacing: 1px;
}

.ak-testimonials__name {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;
}

.ak-testimonials__role {
    font-size: .76rem;
    color: var(--ak-muted);
}

.ak-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.ak-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d5d5d5;
    transition: background-color .3s, width .3s;
}

.ak-dots button.is-active {
    background: var(--ak-red);
    width: 26px;
    border-radius: 99px;
}

@media (max-width: 991.98px) {

    .ak-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: 0;
        padding-block: 30px 80px;
        gap: 10px;
    }

    /* On narrow screens the 3D projection is switched off, leaving a flat tilt.
       .l1/.l2/.l3wrap must be listed individually: the selector `.ak-hero__title span`
       (0,1,1) is less specific than the desktop rule `.ak-hero__title .l1` (0,2,0),
       so this override would otherwise never take effect. */
    .ak-hero__title {
        perspective: none;
    }

    .ak-hero__title .l1,
    .ak-hero__title .l2,
    .ak-hero__title .l3wrap {
        transform: skewX(-7deg);
        transform-origin: center;
    }

    .ak-hero__lead {
        margin-inline: auto;
        max-width: 42ch;
    }

    .ak-hero__actions {
        justify-content: center;
    }

    .ak-hero__stage {
        max-width: 460px;
        margin-inline: auto;
        min-height: 0;
        aspect-ratio: auto;
        translate: none;
    }

    .ak .ak-hero__mascot {
        width: 100%;
        max-width: 420px;
    }
.ak-trust__inner,
    .ak-testimonials__inner,
    .ak-personas__panel.is-active {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ak-testimonials__head {
        text-align: center;
    }

    .ak-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ak-problems__stage {
        grid-template-columns: 1fr;
    }

    .ak-problems__mascot {
        grid-column: 1;
        grid-row: auto;
        order: -1;
        max-width: 340px;
        margin-inline: auto;
    }

    .ak-card--p1,
    .ak-card--p2,
    .ak-card--p3,
    .ak-card--p4,
    .ak-card--p5,
    .ak-card--p6 {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0;
        left: auto;
        right: auto;
        z-index: auto;
    }

    .ak-card--kiri,
    .ak-card--kanan {
        margin-inline: 0;
    }

    .ak-card__no {
        position: static;
        transform: none;
        display: block;
        font-size: 2.2rem;
        color: var(--ak-red);
        margin-bottom: 2px;
        z-index: auto;
    }
}
@media (max-width: 767.98px) {

    .ak-hero__title .l3 {
        padding: 3px 14px 6px;
    }

    .ak-stats {
        gap: 4px;
    }

    .ak-stat {
        padding-inline: 6px;
    }

    .ak-stat__icon {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }

    .ak-stat__label {
        font-size: .72rem;
    }

    .ak-map__pin {
        font-size: .58rem;
        border-radius: 6px;
    }

    .ak-map__pin i {
        padding: 2px 4px;
        font-size: .68rem;
    }

    .ak-map__pin b {
        padding: 2px 5px;
    }

    .ak-map__paket {
        width: 26px;
    }

    .ak-map__line {
        height: 1px;
    }

    .ak-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 46px 14px;
    }

    .ak-solutions__card {
        padding: 52px 14px 20px;
        margin-top: 52px;
    }

    .ak-solutions__card h3 {
        font-size: .92rem;
    }

    .ak-solutions__card p {
        font-size: .78rem;
        line-height: 1.55;
    }

    .ak-testimonials__cell {
        width: 100%;
    }

    .ak-testimonials__cell[data-pos="prev"],
    .ak-testimonials__cell[data-pos="next"] {
        opacity: 0;
        pointer-events: none;
        transform: scale(.9);
    }

    .ak-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .ak-tabs::-webkit-scrollbar {
        display: none;
    }

    .ak-tab {
        flex: 0 0 auto;
        padding: 11px 20px;
        font-size: .9rem;
    }
}
@media (prefers-reduced-motion: reduce) {

    .ak-marquee__track,
    .ak-hero__mascot.is-active,
    .ak-problems__mascot,
    .ak-cta__uang,
    .ak-cta__koin {
        animation: none !important;
    }
}
