:root {
    color-scheme: light;
    --navy-950: #061a2f;
    --navy-900: #08233f;
    --navy-800: #0b3158;
    --blue-600: #0568b8;
    --blue-500: #1686d9;
    --blue-100: #e8f3fb;
    --yellow-400: #f6c945;
    --green-600: #168152;
    --green-100: #e8f7ef;
    --red-600: #b42318;
    --red-100: #fff0ef;
    --slate-950: #12202f;
    --slate-700: #415266;
    --slate-500: #6e7c8d;
    --slate-300: #cbd5df;
    --slate-200: #dfe6ed;
    --slate-100: #f2f5f8;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    border-radius: 0;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    color: var(--slate-950);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        linear-gradient(120deg, rgba(4, 23, 43, 0.88), rgba(5, 62, 105, 0.72)),
        url("/gedung%20pens.jpg") center center / cover fixed no-repeat;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    border-radius: 0;
}

a[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.55;
}

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 42px 24px;
}

.app-shell {
    display: grid;
    grid-template-columns: minmax(290px, 0.78fr) minmax(480px, 1.22fr);
    width: min(1080px, 100%);
    min-height: 690px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 28px 80px rgba(0, 12, 28, 0.42);
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 42px 36px;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(160deg, rgba(6, 26, 47, 0.97), rgba(6, 74, 126, 0.94)),
        url("/gedung%20pens.jpg") center / cover no-repeat;
}

.brand-panel::after {
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 310px;
    height: 310px;
    content: "";
    border: 72px solid rgba(246, 201, 69, 0.09);
    transform: rotate(16deg);
}

.brand-panel > * {
    position: relative;
    z-index: 1;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 72px;
}

.brand-mark {
    display: grid;
    width: 62px;
    height: 42px;
    place-items: center;
    color: var(--navy-950);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    background: var(--yellow-400);
}

.brand-product {
    max-width: 120px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.brand-kicker,
.step-label,
.product-label,
.secure-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.brand-kicker {
    margin: 0 0 13px;
    color: var(--yellow-400);
}

.brand-panel h2 {
    max-width: 360px;
    margin: 0;
    font-size: clamp(31px, 4vw, 45px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.brand-description {
    max-width: 360px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.65;
}

.trust-list {
    display: grid;
    gap: 18px;
    margin-top: 60px;
}

.trust-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.45;
}

.trust-item strong {
    display: block;
    margin-bottom: 2px;
    color: var(--white);
    font-size: 13px;
}

.trust-icon {
    padding: 5px 0;
    color: var(--yellow-400);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    border-top: 2px solid var(--yellow-400);
}

.brand-footnote {
    margin: 34px 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
}

.content-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 30px clamp(28px, 5vw, 62px) 24px;
    background: rgba(255, 255, 255, 0.985);
}

.content-header,
.content-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--slate-500);
}

.content-header {
    padding-bottom: 24px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--slate-200);
}

.secure-label {
    color: var(--green-600);
}

.secure-label span {
    margin-right: 5px;
}

.product-label {
    color: var(--slate-500);
}

.view {
    flex: 1;
}

.section-heading {
    margin-bottom: 26px;
}

.step-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--blue-600);
}

h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 760;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.lead {
    margin: 12px 0 0;
    color: var(--slate-700);
    font-size: 15px;
    line-height: 1.6;
}

.identity-line {
    display: inline-flex;
    gap: 6px;
    padding: 8px 11px;
    margin: 16px 0 0;
    color: var(--slate-700);
    font-size: 12px;
    background: var(--slate-100);
    border-left: 3px solid var(--blue-600);
}

.security-notice {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 13px;
    padding: 15px 17px;
    margin-bottom: 24px;
    background: var(--blue-100);
    border: 1px solid #b9d9ee;
}

.security-symbol {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--white);
    background: var(--blue-600);
}

.security-notice strong {
    display: block;
    color: var(--navy-900);
    font-size: 13px;
}

.security-notice p {
    margin: 4px 0 0;
    color: var(--slate-700);
    font-size: 12px;
    line-height: 1.5;
}

.form-section {
    padding: 20px;
    margin-bottom: 18px;
    border: 1px solid var(--slate-200);
    background: var(--white);
}

.form-section-title {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 15px;
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--slate-200);
}

.field-group + .field-group {
    margin-top: 16px;
}

.field-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    color: var(--slate-950);
    background: var(--white);
    border: 1px solid var(--slate-300);
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(5, 104, 184, 0.12);
}

.field-help {
    margin: 6px 0 0;
    color: var(--slate-500);
    font-size: 11px;
    line-height: 1.45;
}

.plan-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.plan-option {
    position: relative;
    display: block;
    min-height: 127px;
    padding: 18px 10px 13px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    background: var(--white);
    border: 1px solid var(--slate-300);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.plan-option:hover {
    border-color: var(--blue-500);
    transform: translateY(-2px);
}

.plan-option:has(input:checked) {
    background: #f3f9fd;
    border: 2px solid var(--blue-600);
    box-shadow: 0 8px 20px rgba(5, 104, 184, 0.12);
}

.plan-option:has(input:checked)::before {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 7px;
    color: var(--white);
    font-size: 9px;
    font-weight: 800;
    content: "DIPILIH";
    background: var(--blue-600);
}

.plan-option input {
    position: absolute;
    top: 10px;
    left: 10px;
    accent-color: var(--blue-600);
}

.plan-name,
.plan-price,
.plan-saving {
    display: block;
}

.plan-name {
    margin-top: 11px;
    color: var(--slate-700);
    font-size: 12px;
    font-weight: 700;
}

.plan-price {
    margin-top: 9px;
    color: var(--navy-900);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.plan-saving {
    margin-top: 5px;
    color: var(--slate-500);
    font-size: 10px;
}

.agreement-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 18px 0;
    color: var(--slate-700);
    font-size: 12px;
    line-height: 1.5;
}

.agreement-row input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--blue-600);
}

.primary-button {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 13px 17px;
    color: var(--white);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    background: var(--blue-600);
    border: 1px solid var(--blue-600);
    box-shadow: 0 8px 20px rgba(5, 104, 184, 0.2);
    transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.primary-button:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
    box-shadow: 0 10px 24px rgba(8, 35, 63, 0.24);
    transform: translateY(-1px);
}

.primary-button:focus-visible {
    outline: 3px solid rgba(22, 134, 217, 0.3);
    outline-offset: 2px;
}

.primary-button:disabled {
    color: #dce7ef;
    cursor: wait;
    background: var(--slate-500);
    border-color: var(--slate-500);
    box-shadow: none;
    transform: none;
}

.submit-note {
    margin: 9px 0 0;
    color: var(--slate-500);
    font-size: 10px;
    text-align: center;
}

.form-message {
    padding: 11px 13px;
    margin: 14px 0;
    color: var(--red-600);
    font-size: 12px;
    line-height: 1.45;
    background: var(--red-100);
    border-left: 3px solid var(--red-600);
}

.order-summary {
    margin: 26px 0 20px;
    border: 1px solid var(--slate-200);
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 16px;
}

.summary-row {
    color: var(--slate-700);
    font-size: 13px;
    border-bottom: 1px solid var(--slate-200);
}

.summary-row strong {
    color: var(--slate-950);
    text-align: right;
}

.summary-total {
    align-items: end;
    color: var(--navy-900);
    background: var(--slate-100);
}

.summary-total span {
    font-size: 12px;
    font-weight: 700;
}

.summary-total strong {
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.status-pill {
    padding: 3px 7px;
    color: #805d00 !important;
    font-size: 10px;
    letter-spacing: 0.08em;
    background: #fff5cf;
    border: 1px solid #f0d77a;
}

.payment-box {
    padding: 16px;
    margin-bottom: 20px;
    background: #f7f9fb;
    border: 1px solid var(--slate-200);
}

.payment-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
}

.payment-logo {
    color: var(--navy-900);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.development-badge {
    padding: 4px 7px;
    color: #805d00;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: #fff5cf;
}

.payment-box p {
    margin: 0;
    color: var(--slate-700);
    font-size: 12px;
    line-height: 1.55;
}

.payment-box .payment-instructions {
    padding: 12px;
    color: var(--navy-900);
    font-size: 13px;
    font-weight: 700;
    white-space: pre-line;
    background: var(--white);
    border-left: 3px solid var(--yellow-400);
}

.payment-box .payment-contact {
    margin-top: 12px;
}

.qris-frame {
    width: min(340px, 100%);
    padding: 10px;
    margin: 16px auto 10px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    box-shadow: 0 8px 24px rgba(8, 35, 63, 0.1);
}

.qris-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.qris-download {
    display: block;
    width: min(340px, 100%);
    padding: 10px 13px;
    margin: 0 auto;
    color: var(--blue-600);
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--blue-600);
}

.qris-download:hover {
    color: var(--white);
    background: var(--blue-600);
}

.full-width-button {
    width: 100%;
}

.secondary-button {
    width: 100%;
    min-height: 46px;
    padding: 11px 15px;
    margin-top: 10px;
    color: var(--navy-900);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    background: var(--white);
    border: 1px solid var(--slate-300);
}

.secondary-button:hover {
    background: var(--slate-100);
    border-color: var(--blue-600);
}

.secondary-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.centered-view {
    display: flex;
    min-height: 500px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loader {
    width: 38px;
    height: 38px;
    margin-bottom: 24px;
    border: 3px solid var(--slate-200);
    border-top-color: var(--blue-600);
    animation: spin 700ms linear infinite;
}

.success-mark,
.error-mark {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    margin-bottom: 22px;
    color: var(--white);
    font-size: 34px;
    font-weight: 800;
}

.success-mark {
    background: var(--green-600);
    box-shadow: 0 12px 28px rgba(22, 129, 82, 0.25);
}

.error-mark {
    background: var(--red-600);
    box-shadow: 0 12px 28px rgba(180, 35, 24, 0.2);
}

.success-label {
    color: var(--green-600);
}

.active-until {
    width: min(380px, 100%);
    padding: 16px;
    margin: 26px 0 18px;
    background: var(--green-100);
    border: 1px solid #b8dfca;
}

.active-until span,
.active-until strong {
    display: block;
}

.active-until span {
    margin-bottom: 6px;
    color: var(--green-600);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.active-until strong {
    color: #0d5837;
    font-size: 16px;
}

.link-button {
    width: min(380px, 100%);
}

.content-footer {
    padding-top: 20px;
    margin-top: 28px;
    font-size: 10px;
    border-top: 1px solid var(--slate-200);
}

[hidden] {
    display: none !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .page-shell {
        padding: 22px 14px;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: auto;
        padding: 30px 28px;
    }

    .brand-lockup {
        margin-bottom: 36px;
    }

    .brand-panel h2 {
        max-width: 650px;
        font-size: clamp(29px, 7vw, 40px);
    }

    .trust-list {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 36px;
    }

    .brand-footnote {
        margin-top: 24px;
    }
}

@media (max-width: 620px) {
    .page-shell {
        display: block;
        padding: 0;
    }

    .app-shell {
        min-height: 100vh;
        border: 0;
    }

    .brand-panel {
        padding: 26px 20px;
    }

    .brand-lockup {
        margin-bottom: 30px;
    }

    .trust-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .brand-footnote {
        display: none;
    }

    .content-panel {
        padding: 22px 18px 18px;
    }

    .product-label {
        display: none;
    }

    .content-header {
        margin-bottom: 28px;
    }

    .plan-list {
        grid-template-columns: 1fr;
    }

    .plan-option {
        min-height: 104px;
    }

    .centered-view {
        min-height: 430px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
