.storefront {
    --border: #dce5f2;
    --blue: #235ce0;
    background: #f5f7fb;
    color: #131e34;
    min-height: 100vh;
}
.storefront header { background: #fff; }
.storefront .bar { padding-block: .8rem; }
.storefront nav { gap: .5rem 1.25rem; }
.storefront nav a { color: #344665; font-size: .9rem; text-decoration: none; }
.storefront nav a:hover { text-decoration: underline; }
.storefront nav a[href$="view=login"] {
    border-radius: 2rem;
    background: var(--blue);
    color: #fff;
    padding: .45rem 1rem;
    font-weight: 650;
}

.storefront-home main.wrap { width: 100%; padding: 0 0 3rem; }
.storefront main > :is(.alert, .notice) { width: min(1120px, 92%); margin: .75rem auto; }
.storefront .hero {
    color: inherit;
    background: radial-gradient(#dce6f6 1px, transparent 1px) center / 18px 18px,
        linear-gradient(120deg, #fff, #f4f8ff);
    text-align: center;
    border-radius: 0;
    margin: 0;
    padding: clamp(3rem, 8vw, 6rem) 4%;
}
.storefront .eyebrow {
    display: inline-block;
    background: #eaf0ff;
    color: #244baa;
    border-radius: 2rem;
    padding: .35rem .85rem;
    margin: 0 0 .75rem;
}
.storefront .hero h1 {
    max-width: 54rem;
    margin: .25rem auto 1rem;
    font-size: clamp(1.9rem, 5vw, 3.4rem);
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
.hero-accent { display: block; color: #235ce0; }
.storefront .hero .prose { color: #4b5e79; margin: 0 auto 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.storefront .hero .secondary { color: #233653; background: #fff; border: 1px solid var(--border); }
.storefront .btn:not(.secondary):hover { background: #1746b6; }
.storefront :focus-visible { outline: 2px solid #235ce0; outline-offset: 3px; }

.store-ribbon {
    background: var(--blue);
    color: #fff;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1.25rem max(4%, calc((100% - 1120px) / 2));
    text-align: center;
    font-weight: 700;
}
.store-ribbon span { padding: .45rem .5rem; }
.store-ribbon span + span { border-inline-start: 1px solid #ffffff40; }

.store-section { padding: clamp(2.75rem, 7vw, 4.5rem) 4%; }
.catalog { background: #fff; }
.catalog-heading { text-align: center; margin-bottom: 1.75rem; }
.catalog-heading h2 { margin: 0 0 .4rem; font-size: clamp(1.6rem, 4vw, 2.15rem); }
.catalog-heading p:not(.eyebrow), .catalog-empty { color: #4b5e79; margin: 0; }
.catalog-empty { text-align: center; }
.storefront .catalog-grid {
    width: min(1120px, 100%);
    margin: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.storefront .catalog-card {
    border-top: 3px solid #3973f1;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.feature-card, .catalog-card { box-shadow: 0 8px 24px #1530570b; }
.feature-number {
    display: inline-block;
    padding: .4rem .6rem;
    border-radius: .55rem;
    background: #eaf0ff;
    color: #244baa;
    font-weight: 800;
}
.feature-card:nth-child(2) .feature-number { background: #eee7ff; color: #613ab1; }
.feature-card:nth-child(3) .feature-number { background: #e0f7ee; color: #126947; }
.feature-card h3, .catalog-card h3 { margin: .75rem 0 .45rem; overflow-wrap: anywhere; }
.feature-card p { margin: 0; }
.feature-card p, .catalog-card .prose { color: #4b5e79; font-size: .95rem; }
.catalog-card .thumb { border-radius: 0; margin: 0; object-fit: contain; background: #edf2fb; }
.catalog-card-content {
    padding: 1rem;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}
.catalog-card .tag { color: #244baa; }
.catalog-card .prose {
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.catalog-card-actions {
    width: 100%;
    margin-top: auto;
    padding-top: .85rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
}
.catalog-card-actions .price { margin: 0; overflow-wrap: anywhere; }
.catalog-card-actions .btn { font-size: .9rem; }

.account-banner {
    width: min(1120px, 92%);
    margin: 3rem auto 0;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border-radius: 1rem;
    background: #14213b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.account-banner h2 { margin: 0 0 .4rem; }
.account-banner p { margin: 0; color: #d6e2f8; }
.storefront footer { color: #d6e2f8; background: #111a2c; }

@media (max-width: 900px) {
    .storefront .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .storefront .catalog-grid { grid-template-columns: minmax(0, 1fr); }
    .store-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-ribbon span:nth-child(3) { border-inline-start: 0; }
}

.storefront {
    display: flex;
    flex-direction: column;
}
.storefront main { flex: 1; }
.storefront nav a[aria-current="page"] { font-weight: 750; text-decoration: underline; }
.detail-back { margin: 0 0 1rem; }
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    box-shadow: 0 14px 36px #15305712;
    overflow: hidden;
}
.product-cover {
    display: block;
    width: 100%;
    height: auto;
}
.product-summary {
    padding: clamp(1.15rem, 4vw, 2.6rem);
}
.product-summary:only-child { grid-column: 1 / -1; max-width: 48rem; }
.product-summary h1 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}
.product-intro { color: #52637e; margin: 0 0 1.25rem; }
.purchase-card {
    background: #f4f7fc;
    margin: 0;
    scroll-margin-top: 1rem;
}
.purchase-card h2 { font-size: 1rem; margin: 0; }
.purchase-card .price { font-size: 1.85rem; margin: .3rem 0 .75rem; }
.purchase-card form button { width: 100%; }
.product-details {
    padding: clamp(1.15rem, 4vw, 2.6rem);
    margin: 1.25rem 0 0;
}
.product-details .prose { max-width: 72ch; }
.product-details iframe { max-width: 48rem; }
.product-details .btn { margin-top: 1rem; }
@media (max-width: 760px) {
    .product-layout { grid-template-columns: minmax(0, 1fr); }
    .purchase-card .row .btn { width: 100%; text-align: center; }
}
.storefront:has(.auth-main) {
    background: radial-gradient(ellipse at 0 20%, #e5efff, transparent 45%),
        radial-gradient(ellipse at 100% 90%, #e1f5ed, transparent 35%), #f5f7fb;
}
.storefront .auth-main { max-width: 930px; padding-block: clamp(1.5rem, 5vw, 4.5rem); }
.auth-panel {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    border-radius: 1.35rem;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 18px 36px #152d5720;
    overflow: hidden;
}
.auth-brand, .auth-content { padding: clamp(1.4rem, 4vw, 3rem); }
.auth-brand {
    background: radial-gradient(circle at 100% 0, #ffffff22 0 22%, transparent 22.3%),
        linear-gradient(135deg, #19367c, #2357dd);
    color: #e3edff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-mark {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: .85rem;
    background: #fff;
    color: #235ce0;
    font-size: 1.55rem;
    font-weight: 850;
}
.auth-brand p { margin: .5rem 0 0; }
.auth-brand .auth-brand-name { color: #fff; font-size: 1.6rem; font-weight: 800; margin-top: 1rem; }
.auth-content h1 { font-size: clamp(1.65rem, 4vw, 2.25rem); margin: 0 0 .5rem; }
.auth-intro, .auth-switch { color: #4b5e79; }
.auth-intro { margin: 0 0 1.5rem; }
.auth-content input:not([type=hidden]) {
    margin-top: .35rem;
    padding: .75rem;
    background: #f5f7fb;
    border: 1px solid #ced9eb;
    border-radius: .65rem;
}
.auth-label-row { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.auth-content .auth-submit { width: 100%; padding: .75rem; border-radius: .65rem; }
.auth-switch { margin: 1.25rem 0 0; text-align: center; }
.auth-switch a, .auth-label-row a { font-weight: 650; }
@media (max-width: 680px) {
    .auth-panel { grid-template-columns: minmax(0, 1fr); }
    .auth-brand { padding-block: 1.15rem; }
}

/* Product landing page */
.product-landing { background: #f6f9ff; }
.product-landing main { max-width: 1200px; padding-block: 1.25rem 2.5rem; }
.product-navigation, .product-navigation nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem 1.1rem;
}
.product-navigation { margin-bottom: 1rem; font-size: .9rem; }
.product-navigation a { text-underline-offset: .2em; }
.product-landing .product-layout, .landing-closing {
    background: radial-gradient(ellipse at 14% 10%, #1d4586 0%, transparent 56%),
                radial-gradient(ellipse at 93% 95%, #152b66 0%, transparent 52%), #0b1428;
    color: #f8fbff;
    border: 1px solid #1f365d;
    border-radius: 1.5rem;
}
.product-landing .product-layout {
    grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    padding: clamp(1rem, 2.5vw, 2rem);
    box-shadow: 0 22px 56px #0d224728;
}
.product-landing .product-summary { padding: 0; }
.product-landing .product-summary h1 { font-size: clamp(1.85rem, 3.7vw, 3.35rem); line-height: 1.08; margin: .55rem 0 .65rem; }
.product-landing .product-summary > .tag { color: #e0edff; background: #254779; }
.product-landing .product-intro { color: #d1def3; margin-bottom: .9rem; }
.product-visual {
    min-width: 0;
    border-radius: 1rem;
    border: 1px solid #426298;
    background: #0c1d3b;
    padding: .45rem;
    box-shadow: 0 20px 48px #03091870;
}
.product-landing .product-cover { width: 100%; height: auto; border-radius: .7rem; }
.product-landing .purchase-card { color: #131e34; background: #fff; }
.product-landing .purchase-card .price { color: #164ba8; }
.product-landing .purchase-card { padding: clamp(.8rem, 2vw, 1.15rem); }
.purchase-heading {
    display: flex;
    align-items: baseline;
    gap: .35rem .75rem;
    flex-wrap: wrap;
    margin-bottom: .7rem;
}
.purchase-heading .price, .purchase-heading p { margin: 0; }
.purchase-heading p:not(.price) { font-size: .875rem; color: #52637e; }
.purchase-card .stack { gap: .65rem; }
.purchase-card small { display: block; margin-top: .3rem; color: #52637e; font-weight: 400; }
.landing-media { display: grid; gap: 1rem; align-items: start; }
.landing-media-paired { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.landing-media > section {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: clamp(.85rem, 2vw, 1.4rem);
    background: #fff;
}
.landing-media h2 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); margin: 0 0 .75rem; }
.landing-overview .rich-content { line-height: 1.6; }
.landing-section { margin: clamp(1.5rem, 3vw, 2.5rem) 0; }
.landing-section > h2 {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    text-align: center;
    letter-spacing: -.025em;
    margin-bottom: 1.5rem;
}
.landing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
    gap: 1rem;
}
.landing-steps .card { background: #fff; margin: 0; padding: 1.5rem; border-top: 3px solid #235ce0; }
.landing-steps h3 { color: #164ba8; margin: 0 0 .75rem; }
.landing-steps p { color: #52637e; margin: 0; }
.landing-demo iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: .65rem; background: #142441; }
.landing-faq {
    display: grid;
    grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
    gap: 1.4rem;
    align-items: start;
}
.landing-faq > h2 { text-align: left; }
.landing-faq-list { background: white; border: 1px solid var(--border); border-radius: 1rem; padding-inline: 1.15rem; }
.landing-faq details:last-child { border-bottom: 0; }
.landing-faq details { border-bottom: 1px solid var(--border); padding: 1.1rem .4rem; }
.landing-faq summary { cursor: pointer; font-weight: 650; }
.landing-faq details p { color: #52637e; margin-bottom: 0; }
.landing-closing {
    padding: clamp(1.4rem, 4vw, 2.5rem); display: flex;
    align-items: center; justify-content: space-between; gap: 1.5rem;
}
.landing-closing h2 { margin: 0; overflow-wrap: anywhere; }
.landing-closing p { margin: .5rem 0 0; }
.landing-closing .btn { background: white; color: #164ba8; flex-shrink: 0; }
.landing-mobile-buy { display: none; }
@media (max-width: 760px) {
    .product-landing .product-layout, .landing-faq, .landing-media-paired { grid-template-columns: minmax(0, 1fr); }
    .landing-faq > h2 { margin-bottom: 0; }
    .landing-closing { flex-direction: column; align-items: stretch; }
    .landing-closing .btn { text-align: center; width: 100%; }
    .product-landing { padding-bottom: 84px; }
    .product-landing #pemesanan { scroll-margin-top: 1rem; }
    .landing-mobile-buy {
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
        display: flex; align-items: center; justify-content: space-between; gap: .75rem;
        background: #fff; border-top: 1px solid var(--border);
        padding: .8rem 4% calc(.8rem + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 20px #173f9210;
    }
}
.rich-content {overflow-wrap:anywhere;line-height:1.75}
.rich-content img {max-width:100%;height:auto;display:inline-block}
.rich-content ul,.rich-content ol {padding-left:1.7em}
.rich-content p:first-child {margin-top:0}
.rich-content .rich-align-left { text-align: left; }
.rich-content .rich-align-center { text-align: center; }
.rich-content .rich-align-right { text-align: right; }
.rich-content .rich-align-justify { text-align: justify; }
