/* SNISHOP landing page UX upgrade: responsive hierarchy, touch targets and clearer paths. */
:root {
    --sni-ink: #0b1b38;
    --sni-navy: #0e2d6c;
    --sni-blue: #2563eb;
    --sni-cyan: #22d3ee;
    --sni-soft: #f6f8fc;
    --sni-line: rgba(15, 43, 91, 0.12);
}

html { scroll-padding-top: 5.5rem; }
body { overflow-x: hidden; }

/* Navigation: keep the primary action visible and the menu scannable. */
.nav-navy { box-shadow: 0 8px 30px rgba(3, 18, 49, 0.12); }
.nav-navy > div:nth-child(2) { min-height: 4.25rem; }
.nav-navy a,
.nav-navy button { -webkit-tap-highlight-color: transparent; }
.nav-navy .search-pill { min-height: 2rem; display: inline-flex; align-items: center; }

/* Hero: preserve the existing visual direction while tightening the reading order. */
.hero-refresh {
    position: relative;
    isolation: isolate;
    background: linear-gradient(135deg, #081b43 0%, #0e2d6c 52%, #124b86 100%) !important;
}
.hero-refresh::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 8rem;
    z-index: -1;
    background: linear-gradient(to top, rgba(4, 16, 42, 0.28), transparent);
    pointer-events: none;
}
.hero-refresh .hero-primary {
    min-height: 3.5rem;
    letter-spacing: 0.02em;
}
.hero-refresh .hero-secondary {
    min-height: 3rem;
}
.hero-refresh .hero-proof-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 42rem;
}
.hero-refresh .hero-proof-row > div {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
}

/* Intent paths: cards behave like decision shortcuts, not decorative blocks. */
#mulai-dari-kebutuhan { background: var(--sni-soft) !important; }
#mulai-dari-kebutuhan article {
    border-color: var(--sni-line);
    border-radius: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 43, 91, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
#mulai-dari-kebutuhan article:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 18px 40px rgba(15, 43, 91, 0.1);
}
#mulai-dari-kebutuhan article a { min-height: 2.75rem; }

/* Catalog: give the section a clear browse rhythm and reliable touch targets. */
#services-section { background: #fbfcff !important; }
#services-section > .max-w-7xl > div:first-child { max-width: 52rem; }
#services-section .category-pill { min-height: 2.75rem; }
#services-section .category-section { scroll-margin-top: 8rem; }
#services-section .product-card-premium { width: min(78vw, 18.125rem) !important; }
#services-section .product-card-premium > div { min-height: 100%; }
#services-section .catalog-product-action { min-width: 2.75rem; min-height: 2.75rem; }
#services-section .slider-container { scroll-padding-inline: 0.75rem; }

/* FAQ and footer separation. */
#faq { scroll-margin-top: 7rem; }
footer a { min-height: 2.25rem; align-items: center; }

/* Persistent mobile actions: shorten the path to catalogue and human support. */
.mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: none;
    gap: 0.625rem;
    padding: 0.625rem max(0.75rem, env(safe-area-inset-left)) max(0.625rem, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(15, 43, 91, 0.12);
    box-shadow: 0 -12px 28px rgba(9, 30, 66, 0.12);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.mobile-action-bar a {
    flex: 1;
    min-height: 2.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 0.875rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.mobile-action-bar .mobile-action-primary { background: var(--sni-navy); color: #fff; }
.mobile-action-bar .mobile-action-secondary { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

@media (max-width: 1023.98px) {
    html { scroll-padding-top: 4.5rem; }
    .nav-navy > div:nth-child(2) { min-height: 4rem; }
    .hero-refresh .hero-proof-row { max-width: 100%; }
    #services-section .sticky { top: 4rem !important; }
    .mobile-action-bar { display: flex; }
    body { padding-bottom: 4.5rem; }
}

@media (max-width: 767.98px) {
    .nav-navy .search-pill { min-height: 2.75rem; }
    .hero-refresh {
        min-height: auto !important;
        padding-top: 4.25rem !important;
        padding-bottom: 3.5rem !important;
    }
    .hero-refresh .hero-proof-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.625rem;
    }
    .hero-refresh .hero-proof-row > div { min-height: 3.25rem; }
    .hero-refresh .hero-primary,
    .hero-refresh .hero-secondary { width: 100%; }
    #mulai-dari-kebutuhan { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
    #mulai-dari-kebutuhan article { padding: 1.25rem !important; }
    #services-section { padding-top: 3.5rem !important; padding-bottom: 4rem !important; }
    #services-section .sticky {
        margin-inline: -1rem !important;
        padding-inline: 1rem !important;
    }
    #services-section .category-section { scroll-margin-top: 7rem; }
    #services-section .product-card-premium { width: min(78vw, 17.5rem) !important; }
    footer { padding-bottom: 6rem !important; }
}

@media (max-width: 479.98px) {
    .hero-refresh .hero-proof-row { font-size: 0.67rem; }
    .hero-refresh .hero-proof-row > div { padding-inline: 0.6rem !important; }
    .mobile-action-bar a { font-size: 0.66rem; }
}

@media (min-width: 768px) and (max-width: 1100px) {
    /* Treat landscape tablets as compact navigation, not a squeezed desktop. */
    .nav-navy .hidden.lg\:flex { display: none !important; }
    .nav-navy .lg\:hidden { display: flex !important; }
    .nav-navy .hidden.lg\:block { display: none !important; }
    .hero-refresh > .max-w-7xl > .flex {
        flex-direction: column;
        align-items: stretch;
        gap: 3rem;
    }
    .hero-refresh > .max-w-7xl > .flex > .flex-1 { width: 100%; max-width: 46rem; margin-inline: auto; }
    .hero-refresh > .max-w-7xl > .flex > .flex-1:last-child { max-width: 42rem; }
    .hero-refresh .hero-floating-card { display: none !important; }
    .hero-refresh .hero-visual-shell { max-width: 42rem; margin-inline: auto; }
    .hero-refresh { padding-top: 5.75rem !important; padding-bottom: 6rem !important; }
    .hero-refresh h1 { font-size: clamp(3.4rem, 7vw, 5.5rem) !important; }
    .hero-refresh .hero-proof-row { margin-inline: auto; }
    .nav-navy a[href="login"] { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 0.9rem; }
}

@media (min-width: 380px) and (max-width: 767.98px) {
    /* Keep the three proof points visible without pushing the next action below the fold. */
    .hero-refresh .hero-proof-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
    .hero-refresh .hero-proof-row > div { padding-inline: 0.35rem !important; }
    .hero-refresh .hero-proof-row strong { font-size: 0.66rem; }
    .hero-refresh .hero-proof-row span { font-size: 0.55rem; line-height: 1.15; }
}

@media (max-width: 767.98px) {
    body.site-redesign { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
    #main-content { padding-bottom: 1.5rem; }
    .hero-refresh h1 {
        font-size: clamp(2.65rem, 12vw, 4rem) !important;
        line-height: 0.98 !important;
        letter-spacing: -0.055em !important;
    }
    .hero-refresh .hero-kicker { max-width: calc(100vw - 2rem); margin-inline: auto; }
    .hero-refresh .hero-primary,
    .hero-refresh .hero-secondary { min-height: 3.25rem; }
    .hero-refresh .hero-visual-shell { border-radius: 1.25rem; }
    .hero-refresh .hero-proof-row { gap: 0.5rem; }
    .hero-refresh h1 + p { margin-bottom: 1.5rem !important; }
    .hero-refresh h1 { margin-bottom: 1.25rem !important; }
    .hero-refresh .hero-kicker { margin-bottom: 1.5rem !important; }
    .hero-refresh .hero-proof-row { margin-top: 2rem !important; }
    .hero-refresh .hero-proof-row > div { padding-block: 0.55rem !important; }
    .hero-refresh .hero-proof-row p { color: rgba(255,255,255,.72) !important; font-size: .64rem; }
    #mulai-dari-kebutuhan article { min-height: 0; }
}

@media (max-width: 359.98px) {
    .hero-refresh h1 { font-size: 2.45rem !important; }
    .hero-refresh .hero-proof-row { grid-template-columns: 1fr; }
    .site-redesign .mobile-conversion-link { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-refresh *,
    #mulai-dari-kebutuhan article,
    #services-section * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Scroll-performance budget: keep sticky/fixed layers on the compositor without blur repainting the page. */
.site-redesign .nav-navy,
.site-redesign #service-navigator,
.site-redesign #service-navigator > div,
.site-redesign .mobile-conversion-bar,
.site-redesign .mobile-action-bar,
.site-redesign [class*="backdrop-blur"] {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.site-redesign .nav-navy { background: rgba(11, 27, 56, .98) !important; }
.site-redesign #service-navigator { background: rgba(255, 255, 255, .98) !important; }
.site-redesign #service-navigator > div { background: #fff !important; }
.site-redesign .mobile-conversion-bar {
    background: #fff !important;
    contain: layout paint;
}
.site-redesign .hero-refresh .hero-proof,
.site-redesign .hero-refresh .hero-visual-shell,
.site-redesign .hero-refresh .hero-floating-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.site-redesign .hero-refresh .animate-float,
.site-redesign .hero-refresh .animate-gradient,
.site-redesign .animate-ping,
.site-redesign .animate-bounce,
.site-redesign .animate-spin,
.site-redesign .animate-pulse {
    animation: none !important;
}
.site-redesign .hero-refresh::after { filter: none !important; }
.site-redesign main > section[id] {
    content-visibility: auto;
    contain-intrinsic-size: 850px;
}

