@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

html {
    background: linear-gradient(0deg, rgba(153, 170, 147, 1) 0%, rgba(246, 246, 246, 1) 80%);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    padding-bottom: 76px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    height: 100%;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none
    
}

main {
    animation: slideIn 0.6s ease forwards;
    height: 100%;
    width: 100%;
}

.main-content.slide-out {
    animation: slideOut 0.6s ease forwards;
}


@keyframes slideIn {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* animasi keluar */
@keyframes slideOut {
    to {
        transform: translateY(40px);
        opacity: 0;
    }
}

/* header */
.topbar {
    color: #24422b;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 999;
}

.topbar h1 {
    font-size: 26px;
    font-weight: 800;
    color: #1E3924;
}

.back {
    background: none;
    border: none;
    font-size: 40px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    color: #1E3924;
}

/* pricing grid */
.pricing {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* cards */
.card {
    height: 400px;
    border-radius: 18px;
    padding: 16px;
    background: #222;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    color: white;
    box-shadow: -6px -115px 128px 0px rgba(0, 0, 0, 0.88) inset;
    -webkit-box-shadow: -6px -115px 128px 0px rgba(0, 0, 0, 0.88) inset;
    -moz-box-shadow: -6px -115px 128px 0px rgba(0, 0, 0, 0.88) inset;
    background-position: center;
    background-size: cover;
    text-shadow: 1px 4px 8px rgba(0, 0, 0, 0.37);

}

/* price */
.price {
    display: flex;
    justify-content: space-between;
    font-weight: 700;

}

.price span {
    font-size: 35px;

}

.price small {
    opacity: 0.8;
}

/* text */
.card h2 {
    margin: 8px 0 4px;
    font-weight: 700;
}

.card {
    position: relative;
}

.bottom-of-card {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    margin-top: 0;
}

.card p {
    font-size: 14px;
    opacity: 0.85;
}

/* button */
.card button {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: white;
    cursor: pointer;
    transition: .3s ease;
}

.card button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* themes */
.gold {
    background-image: url("img/sketch.png");
}

.blue {
    background-image: url("img/2.jpg");
}

.green {
    background-image: url("img/10.jpg");
}

/* footer */
footer {
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #283027;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 15px;
    z-index: 999;
}

#tos {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%) translateY(20px);
    background: linear-gradient(0deg, rgba(153, 170, 147, 1) 0%, rgba(246, 246, 246, 1) 80%);
    background-size: auto;
    background-attachment: fixed;
    background-repeat: no-repeat;
    border-radius: 25px;
    width: 85%;
    max-width: 900px;
    height: 80%;
    max-height: 80vh;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s cubic-bezier(.2, .8, .2, 1);
    z-index: 1002;
    overflow-x: hidden;
    overflow-y: auto;
    will-change: transform, opacity;
}

#tos.active {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
    pointer-events: auto;
}

#tos-backdrop {
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
    z-index: 1001;
    backdrop-filter: blur(4px);
}

#tos-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.tos-cont {
    background: linear-gradient(0deg, rgb(197, 208, 184), rgb(145, 159, 140));
    border-radius: 25px;
    width: 90%;
    height: 60%;
    padding: 20px;
    margin: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
    user-select: text !important;
    -webkit-user-select: text !important;
    -ms-user-select: text !important;
}

.hide-scroll {
    overflow-y: auto;
    /* scroll tetap jalan */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE / Edge lama */
}

.hide-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

#tos h1 {
    text-align: center;
    font-weight: 800;
    font-size: 30px;
    padding: 20px;
    color: #1e3924;
}

.tos-accept {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 90%;
    margin: 20px auto;
    text-align: left;
}

.tos-accept a {
    width: 100%;
    margin-top: 10px;
}


.tos-accept button {
    width: 100%;
    border-radius: 25px;
    border: none;
    opacity: 50%;
    padding: 9px;
    background-color: #1E3924;
    color: white;
}

/* button proceed default (disabled) */
.tos-accept button {
    transition:
        opacity 0.3s ease,
        transform 0.3s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.3s ease;
    transform: scale(0.96);
    cursor: not-allowed;
}

/* state enabled */
.tos-accept button.enabled {
    opacity: 1;
    transform: scale(1);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(30, 57, 36, 0.35);
}


.check-wrap {
    display: flex;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    align-items: flex-start;
    /* biar sejajar rapi */
}

/* sembunyikan checkbox asli */
.check-wrap input {
    display: none;
}

/* kotak palsu */
.check-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    /* penting */
    min-height: 20px;
    flex-shrink: 0;
    /* INI KUNCI */
    border-radius: 6px;
    border: 2px solid #999;
    background: #fff;
    transition: .2s ease;
    position: relative;
}

/* state checked */
.check-wrap input:checked+.check-box {
    background: #1e3924;
    border-color: #1e3924;
}

/* centang */
.check-wrap input:checked+.check-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* container checkbox */
.tos-accept {
    transition: opacity 0.3s ease;
}

/* state locked */
.tos-accept.locked {
    opacity: 0.45;
}

/* biar checkboxnya keliatan non-interactive */
.tos-accept.locked input {
    cursor: not-allowed;
    opacity: 0.6;
}


/* match body bottom padding to footer height on desktop to avoid gaps */
@media (min-width: 900px) {
    footer {
        position: fixed;
    }
}

/* prevent content from being hidden behind the fixed footer */
body {
    padding-bottom: 72px;
}

/* 💻 desktop */
@media (min-width: 900px) {
    .pricing {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        margin: auto;
    }

    .topbar h1 {
        margin: 0;
    }

}





