﻿@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Genos:ital,wght@0,100..900;1,100..900&display=swap');



:root {
    --ink: #1F2A44;
    --blue: #2F6BFF;
    --muted: #7E8794;
    --cta-start: #70b7d4;
    --cta-end: #3E8DB8;
}

footer,
header {
    display: none !important;
}

.main-wrapper {
    position: relative;
    margin: 0;
    padding: 0;
}

.wrapper {
    padding: 0;
}

.page-content {
    margin-top: 0;
}

html {
    font-size: 100%;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
    overflow-x: hidden;
    background: #eef5ff;
    font-family: "Genos", "Nunito Sans", Helvetica, Arial, sans-serif;
}

.landing-page {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: url("Images/lp/bg-default-lp-2.webp");
    border-radius: 0;
    overflow: visible;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: fit-content;
    margin: auto;
    padding: 0.5rem 0 0;
}

.logo img {
    height: 3.5rem;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.5px;
}

.brand-slogan {
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 1.5px;
}

.hero {
    position: relative;
    padding: 0;
    flex: 1;
    min-height: 0;
}

    .hero h1 {
        font-size: 2rem;
        font-weight: 700;
        line-height: 100%;
        letter-spacing: 0;
        margin: 0.625rem 0;
        font-family: "Genos", "Fredoka", Helvetica, Arial, sans-serif;
        font-stretch: condensed;
        text-transform: uppercase;
    }

    /* max 2 lines auto-fit headline (opt-in via data-autofit-lines).
       JS shrinks font-size until it fits; CSS below is the safety net. */
    .hero h1.hero-title[data-autofit-lines] {
        text-align: center;
        text-wrap: balance;
        line-height: 1.15;
        max-height: calc(1.15em * 2);
        overflow: hidden;
        margin-inline: auto;
        max-width: 100%;
        white-space: normal;
        padding: 0 1rem;
    }

    /* Single-line auto-fit subtitle (opt-in via data-autofit-lines="1").
       Shrink-only: no ellipsis, overflow hidden is just the 1-line safety net. */
    .hero p.subtitle[data-autofit-lines] {
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        max-width: 100%;
        margin-inline: auto;
    }

.body-black-text {
    color: var(--ink);
}

.body-blue-text {
    color: var(--blue);
}

.hero p.subtitle {
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0.375rem 0 0.625rem;
}

.hero-image {
    width: 100%;
    margin-top: 0;
}

.floating-coin-1 {
    position: absolute;
    top: 38%;
    left: 6%;
    width: 2rem;
    height: 2rem;
}

.floating-character-left {
    position: absolute;
    top: 54%;
    left: 0;
    width: 3rem;
    height: 3rem;
}

.icon-placeholder {
    display: inline-block;
    background: rgba(47, 107, 255, .12);
    border: 1px dashed rgba(47, 107, 255, .4);
    border-radius: 50%;
}

.bottom-section {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: #fff;
    border-radius: 1.875rem 1.875rem 0 0;
    padding: 1rem;
    margin: auto;
    width: 95%;
}

.benefits {
    padding: 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.125rem 0.625rem;
    margin: 1.25rem 0;
}

.item {
    text-align: center;
}

.benefit-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: block;
    margin: 0 auto 0.5rem;
    background: linear-gradient(180deg, #dbefff, #eaf4ff);
}

.item:nth-child(odd) .benefit-icon {
    background: var(--ink);
}

.item:nth-child(even) .benefit-icon {
    background: var(--blue);
}

.icon-placeholder {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.icon-placeholder img {
    object-position: center;
    object-fit: cover;
    width: 100%;
}

    .item small {
        font-size: 0.6875rem;
        line-height: 1.35;
        color: var(--muted);
        font-weight: 400;
    }

.item small span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
}

    .item small span:first-child {
        display: block;
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--ink);
    }

.btn-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    height: 3.5rem;
    border-radius: 5px;
    background: #00B4D8;
    color: #fff;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.btn-arrow {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.price {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}

.price strong {
    color: var(--blue);
    font-weight: 700;
}

.landing-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 0.25rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.footer-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.875rem;
    height: 0.875rem;
    color: var(--muted);
}

.footer-icon svg {
    width: 100%;
    height: 100%;
}

.footer-chevron {
    width: 0.4375rem;
    height: 0.4375rem;
    border-top: 1.5px solid var(--muted);
    border-right: 1.5px solid var(--muted);
    transform: rotate(45deg);
}

/* === Desktop Warning Modal === */
.lp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    z-index: 200;
    padding: 1.5rem;
}

.lp-modal-overlay.is-hidden {
    display: none;
}

.lp-modal-box {
    position: relative;
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.lp-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: none;
    color: #555;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.shape-star-left {
    position: absolute;
    top: 1.5rem;
    left: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #dfe6ee;
    border-radius: 2px;
    transform: rotate(45deg);
}

.shape-circle-right {
    position: absolute;
    top: 4.5rem;
    right: 1rem;
    width: 1.125rem;
    height: 1.125rem;
    background: #e3e8ef;
    border-radius: 50%;
}

.shape-diamond-left {
    position: absolute;
    top: 8.5rem;
    left: 1.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #e3e8ef;
    transform: rotate(45deg);
}

.shape-dot-top {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    margin-left: -0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    background: #dfe6ee;
    border-radius: 50%;
}

.shape-triangle-right {
    position: absolute;
    top: 2.25rem;
    right: 1.5rem;
    width: 0;
    height: 0;
    border-left: 0.625rem solid transparent;
    border-right: 0.625rem solid transparent;
    border-bottom: 1.0625rem solid #e3e8ef;
}

.lp-modal-icon {
    width: 5.5rem;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f9;
    border-radius: 50%;
    box-shadow: 0 0 40px 10px rgba(0, 0, 0, .12);
    margin-bottom: 1rem;
}

.lp-modal-icon img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.lp-modal-title {
    text-transform: uppercase;
    font-family: "Genos", "Fredoka", Helvetica, Arial, sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 1rem;
}

.lp-modal-message {
    width: 100%;
    border: 1px solid #d9dee5;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.lp-modal-message p {
    margin: 0;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
}

.lp-modal-cta {
    margin-top: 0.25rem;
}

/* === Subscription Forms === */
.lp-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    z-index: 300;
    padding: 1.5rem;
}

.lp-form-overlay.is-hidden {
    display: none;
}

.lp-form-box {
    position: relative;
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.lp-form-text {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
}

.lp-form-box .input-number {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8125rem 1rem;
    border: 1.5px solid #d9dee5;
    border-radius: 5px;
    background: #EDEDED;
    color: var(--ink);
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    outline: none;
    margin-bottom: 1rem;
    box-shadow: 0px 4px 4px 0px #B0B0B094 inset;
}

.lp-form-box .input-number:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .15);
}

.lp-form-cta {
    width: 100%;
    height: 3.25rem;
    font-size: 1.25rem;
}

.lp-form-price {
    margin-top: 0.75rem;
}

.resend-otp {
    margin-top: 0.875rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--muted);
}

.resend-otp a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* === New LP layout (scrollable, mockup 2024) === */
.is-hidden {
    display: none !important;
}

/* hero tidak ikut melar di layout scroll */
.landing-page .hero {
    flex: 0 0 auto;
    padding: 0 1rem;
}

.lp-top-note {
    margin: 0.75rem 1rem 0;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink);
}

.lp-amount {
    color: #e2231a;
}

.lp-desc-card {
    margin: 0 1rem 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid #001AFF;
    border-radius: 0.875rem;
    text-align: center;
    font-size: 1.125rem;
    line-height: 120%;
    color: var(--ink);
}

.lp-form-card {
    margin: 0 1rem 0.75rem;
    padding: 1rem 0.75rem;
    background: #fff;
    border: 1px solid #001AFF;
    border-radius: 0.875rem;
    text-align: center;
}

.lp-form-title {
    margin: 0 0 0.25rem;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #25b0d6;
}

.lp-form-card .input-number {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8125rem 1rem;
    border-radius: 5px;
    background: #EDEDED;
    color: #7F7F7F;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    outline: none;
    margin-bottom: 1rem;
    box-shadow: 0px 4px 4px 0px #B0B0B094 inset;
    border: none;
}

.lp-form-card .input-number:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .15);
}

.lp-btn-row {
    display: flex;
    gap: 0.625rem;
}

.lp-btn-row .lp-form-cta {
    flex: 1;
}

.lp-btn-exit {
    flex: 0 0 50%;
    height: 3.25rem;
    border: none;
    border-radius: 5px;
    background: #D9D9D9;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
}

.lp-form-note {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ink);
}

.lp-tnc {
    margin: 0.75rem 1rem 1.25rem;
}

.lp-tnc-title {
    margin: 0 0 0.375rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--ink);
}

.lp-tnc-intro {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ink);
}

.lp-tnc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lp-tnc-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ink);
}

.lp-tnc-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 13px;
    height: 13px;
    background: url("Images/lp/gh-list-icon.webp") no-repeat center / contain;
}

.lp-autorenew {
    margin: 0rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--ink);
}

.lp-autorenew p {
    margin: 0 0 0.75rem;
}

.landing-page[dir="rtl"] .lp-tnc-list li {
    padding-left: 0;
    padding-right: 1.75rem;
}

.landing-page[dir="rtl"] .lp-tnc-list li::before {
    left: auto;
    right: 0;
    transform: scaleX(-1);
}

.landing-page .lp-caution {
    margin: 0 1rem;
}

.landing-page .lp-caution p {
    margin: 0;
    line-height: 100%;
    font-weight: 500;
}

.lp-change-language {
    display: flex;
    width: 100%;
    padding: 1rem 1rem 0;
}

/* dorong ke kanan secara fisik (LTR: ke kanan, RTL: tetap di kanan) */
.lp-change-language .language-option {
    margin-left: auto;
}

.lp-change-language .language-option .dropdown-menu {
    top: 100%;
    left: auto;
    right: 0;
    margin-top: 0.25rem;
}

.landing-page .lp-form-card .telco-select {
    margin-bottom: 0.75rem;
    border-radius: 5px;
    box-shadow: 0px 4px 4px 0px #B0B0B094 inset;
    color: #7F7F7F;
    text-align: center;
    font-weight: 700;
}

.landing-page .lp-ios-warning {
    margin: 0;
    padding: 0.75rem
}

    .landing-page .lp-ios-warning p {
        color: var(--ink);
        font-size: 0.8125rem;
    }

/* === TPay LP === */
.landing-page.lp-tpay {
    z-index: 0;
}

.landing-page.lp-tpay .lp-topbar {
    position: relative;
    flex-shrink: 0;
}

.landing-page.lp-tpay .lp-caution {
    margin: 0.75rem 1rem 0;
    text-align: center;
}

.landing-page.lp-tpay .lp-caution h2 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--ink);
}

.landing-page.lp-tpay .lp-caution p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink);
}

.landing-page.lp-tpay .lp-ios-warning {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.6875rem;
    line-height: 1.5;
    color: #8a5a00;
}

.landing-page.lp-tpay .lp-form-card .telco-select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    border: 1.5px solid #d9dee5;
    border-radius: 0.8125rem;
    background-color: #EDEDED;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='14' viewBox='0 0 13 14' fill='none'%3E%3Cpath d='M6.49512 13.5L-7.34329e-05 0L12.9903 0L6.49512 13.5Z' fill='%237F7F7F'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 0.8125rem 0.875rem;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    margin-bottom: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.landing-page.lp-tpay .lp-form-card .telco-select::-ms-expand {
    display: none;
}

.landing-page.lp-tpay[dir="rtl"] .lp-form-card .telco-select {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background-position: left 1.25rem center;
}

/* === TPay OTP page === */
.lp-otp-page .lp-modal-overlay {
    z-index: 400;
}

.lp-otp-page #otp-status {
    min-height: 1.25rem;
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
    color: #e20000;
}

.lp-otp-page #otp-status:empty {
    display: none;
}

.lp-otp-page #otp-status.is-success {
    color: #1a7f37;
}

@media (max-width: 375px) {
    .landing-page.lp-tpay .lp-form-card .telco-select,
    .lp-form-card .input-number {
        padding: 0.25rem 2.75rem 0.25rem 1rem;
        margin-bottom: 0.25rem;
    }

    .lp-form-cta,
    .lp-btn-exit {
        height: 2rem;
    }

    .lp-form-card {
        padding: 0.5rem 0.75rem;
    }

    .lp-btn-row {
        margin-top: 0.25rem;
    }

    .lp-form-title {
        margin: 0;
    }
}