/* =====================================================================
   JogloNet - Stylesheet publik
   Mengikuti design-system.md: Soft UI Evolution, trust-first.
   Tokens: aksen tunggal --jn-primary, navy --jn-navy, radius 16/pill/8.
   ===================================================================== */

:root {
    --jn-primary: #0369A1;
    --jn-primary-dark: #075985;
    --jn-primary-soft: rgba(3, 105, 161, .08);
    --jn-navy: #0F172A;
    --jn-bg: #F8FAFC;
    --jn-surface: #FFFFFF;
    --jn-muted: #E8ECF1;
    --jn-border: #E2E8F0;
    --jn-text: #1E293B;
    --jn-text-muted: #64748B;
    --jn-danger: #DC2626;
    --jn-success: #16A34A;
    --jn-radius-card: 16px;
    --jn-radius-input: 8px;
    --jn-shadow-rest: 0 1px 3px rgba(15, 23, 42, .06);
    --jn-shadow-hover: 0 12px 32px rgba(3, 105, 161, .12);
    --jn-font-display: 'Poppins', system-ui, sans-serif;
    --jn-font-body: 'Open Sans', system-ui, sans-serif;
}

/* ---------- Dasar ---------- */
body {
    font-family: var(--jn-font-body);
    color: var(--jn-text);
    background: var(--jn-surface);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .jn-display {
    font-family: var(--jn-font-display);
    font-weight: 700;
    color: var(--jn-navy);
    line-height: 1.25;
}

a { color: var(--jn-primary); }
a:hover { color: var(--jn-primary-dark); }

.jn-prose { max-width: 65ch; }
.jn-prose img { max-width: 100%; height: auto; border-radius: var(--jn-radius-card); }
.jn-prose h2, .jn-prose h3 { margin-top: 1.75rem; }

.text-muted, .jn-text-muted { color: var(--jn-text-muted) !important; }

/* Section rhythm: 48px mobile -> 80px desktop */
.jn-section { padding-block: 48px; }
@media (min-width: 992px) { .jn-section { padding-block: 80px; } }
.jn-section-alt { background: var(--jn-bg); }

.jn-section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .5rem; }
.jn-section-lead  { color: var(--jn-text-muted); max-width: 60ch; }

/* ---------- Tombol (pill, satu aksen) ---------- */
.jn-btn-primary,
.jn-btn-outline,
.jn-btn-navy,
.jn-btn-wa {
    border-radius: 999px;
    font-family: var(--jn-font-display);
    font-weight: 600;
    padding: .625rem 1.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background-color .2s ease-out, color .2s ease-out, transform .15s ease-out, box-shadow .2s ease-out;
    white-space: nowrap;
}

.jn-btn-primary { background: var(--jn-primary); color: #fff; border: 1px solid var(--jn-primary); }
.jn-btn-primary:hover, .jn-btn-primary:focus { background: var(--jn-primary-dark); border-color: var(--jn-primary-dark); color: #fff; box-shadow: var(--jn-shadow-hover); }

.jn-btn-outline { background: transparent; color: var(--jn-primary); border: 1.5px solid var(--jn-primary); }
.jn-btn-outline:hover, .jn-btn-outline:focus { background: var(--jn-primary-soft); color: var(--jn-primary-dark); }

/* Varian untuk latar navy (hero): outline putih agar kontras terjaga */
.jn-btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.6); border-radius: 999px; font-family: var(--jn-font-display); font-weight: 600; padding: .625rem 1.5rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: background-color .2s ease-out; white-space: nowrap; }
.jn-btn-ghost-light:hover, .jn-btn-ghost-light:focus { background: rgba(255,255,255,.18); color: #fff; }

.jn-btn-navy { background: var(--jn-navy); color: #fff; border: 1px solid var(--jn-navy); }
.jn-btn-navy:hover { background: #1E293B; color: #fff; }

.jn-btn-wa { background: #16A34A; color: #fff; border: 1px solid #16A34A; }
.jn-btn-wa:hover, .jn-btn-wa:focus { background: #15803D; border-color: #15803D; color: #fff; }

.jn-btn-primary:active, .jn-btn-outline:active, .jn-btn-wa:active { transform: scale(.98); }

/* ---------- Navbar ---------- */
.jn-navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.jn-navbar.is-scrolled { border-color: var(--jn-border); box-shadow: 0 2px 12px rgba(15, 23, 42, .06); }
.jn-navbar .navbar { min-height: 72px; }
.jn-navbar .nav-link {
    font-family: var(--jn-font-display);
    font-weight: 500;
    color: var(--jn-text);
    padding-inline: .875rem;
    border-radius: 999px;
}
.jn-navbar .nav-link:hover { color: var(--jn-primary); background: var(--jn-primary-soft); }
.jn-navbar .nav-link.active { color: var(--jn-primary); font-weight: 600; }
.jn-brand-text { font-family: var(--jn-font-display); font-weight: 700; font-size: 1.35rem; color: var(--jn-navy); }

.offcanvas .nav-link { font-family: var(--jn-font-display); font-weight: 500; color: var(--jn-text); border-radius: var(--jn-radius-input); padding-inline: .75rem; }
.offcanvas .nav-link.active { color: var(--jn-primary); background: var(--jn-primary-soft); font-weight: 600; }

/* ---------- Hero ---------- */
.jn-hero {
    background:
        radial-gradient(ellipse 80% 60% at 85% 10%, rgba(3, 105, 161, .35), transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(3, 105, 161, .18), transparent 55%),
        var(--jn-navy);
    color: #fff;
    padding-block: 64px;
    overflow: hidden;
    position: relative;
}
@media (min-width: 992px) { .jn-hero { padding-block: 96px; } }

.jn-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    letter-spacing: -.01em;
    max-width: 18ch;
}
.jn-hero .jn-hero-sub { color: rgba(255, 255, 255, .82); font-size: 1.125rem; max-width: 48ch; }

/* Pola garis fiber halus di latar hero (dekoratif) */
.jn-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 1px, transparent 1px 80px);
    pointer-events: none;
}
.jn-hero > .container { position: relative; z-index: 1; }

.jn-hero-visual { border-radius: var(--jn-radius-card); box-shadow: 0 24px 64px rgba(2, 6, 23, .45); }

/* Kartu statistik kecil di hero */
.jn-hero-stat {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--jn-radius-card);
    padding: 1rem 1.25rem;
    backdrop-filter: blur(8px);
}
.jn-hero-stat strong { font-family: var(--jn-font-display); font-size: 1.5rem; color: #fff; display: block; }
.jn-hero-stat span { color: rgba(255,255,255,.75); font-size: .875rem; }

/* ---------- Kartu umum ---------- */
.jn-card {
    background: var(--jn-surface);
    border: 1px solid var(--jn-border);
    border-radius: var(--jn-radius-card);
    box-shadow: var(--jn-shadow-rest);
    transition: transform .2s ease-out, box-shadow .2s ease-out;
    /* Catatan: tinggi TIDAK dipaksa 100% — tambahkan utilitas .h-100
       hanya pada kartu grid yang perlu sama tinggi. */
}
.jn-card-hover:hover { transform: translateY(-4px); box-shadow: var(--jn-shadow-hover); }

/* ---------- Kartu paket ---------- */
.jn-package-card {
    background: var(--jn-surface);
    border: 1px solid var(--jn-border);
    border-radius: var(--jn-radius-card);
    box-shadow: var(--jn-shadow-rest);
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}
.jn-package-card:hover { transform: translateY(-4px); box-shadow: var(--jn-shadow-hover); border-color: var(--jn-primary); }

.jn-package-card.is-featured {
    border: 2px solid var(--jn-primary);
    box-shadow: var(--jn-shadow-hover);
}
@media (min-width: 992px) {
    .jn-package-card.is-featured { transform: scale(1.04); z-index: 1; }
    .jn-package-card.is-featured:hover { transform: scale(1.04) translateY(-4px); }
}

.jn-package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--jn-primary);
    color: #fff;
    font-family: var(--jn-font-display);
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .875rem;
    border-radius: 999px;
    white-space: nowrap;
}

.jn-package-speed {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    background: var(--jn-primary-soft);
    color: var(--jn-primary);
    font-family: var(--jn-font-display);
    font-weight: 600;
    font-size: .875rem;
    border-radius: 8px;
    padding: .25rem .75rem;
}

.jn-package-price { font-family: var(--jn-font-display); font-weight: 700; font-size: 2rem; color: var(--jn-navy); font-variant-numeric: tabular-nums; }
.jn-package-price small { font-size: .9375rem; font-weight: 500; color: var(--jn-text-muted); }
.jn-price-strike { color: var(--jn-text-muted); text-decoration: line-through; font-size: .9375rem; }

.jn-package-features { list-style: none; padding: 0; margin: 0; }
.jn-package-features li { display: flex; gap: .625rem; padding-block: .375rem; font-size: .9375rem; }
.jn-package-features li .bi { color: var(--jn-success); flex-shrink: 0; margin-top: .125rem; }

/* ---------- Keunggulan ---------- */
.jn-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--jn-radius-card);
    background: var(--jn-primary-soft);
    color: var(--jn-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ---------- Langkah berlangganan ---------- */
.jn-step {
    counter-increment: step;
    position: relative;
    padding: 1.5rem;
}
.jn-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--jn-navy);
    color: #fff;
    font-family: var(--jn-font-display);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}
@media (min-width: 992px) {
    .jn-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 43px;
        left: calc(50% + 44px);
        width: calc(100% - 88px);
        border-top: 2px dashed var(--jn-border);
    }
}

/* ---------- Testimoni ---------- */
.jn-testi-card { padding: 1.5rem; }
.jn-testi-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .9688rem;
}
.jn-testi-rating { color: #F59E0B; font-size: .875rem; }
.jn-testi-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--jn-muted); }
.jn-testi-avatar-initial {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--jn-primary-soft); color: var(--jn-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--jn-font-display); font-weight: 600;
}

/* ---------- FAQ ---------- */
.jn-faq .accordion-item { border: 1px solid var(--jn-border); border-radius: var(--jn-radius-card) !important; overflow: hidden; margin-bottom: .75rem; }
.jn-faq .accordion-button { font-family: var(--jn-font-display); font-weight: 600; color: var(--jn-navy); background: var(--jn-surface); padding: 1.125rem 1.375rem; }
.jn-faq .accordion-button:not(.collapsed) { background: var(--jn-primary-soft); color: var(--jn-primary); box-shadow: none; }
.jn-faq .accordion-button:focus { box-shadow: 0 0 0 3px var(--jn-primary-soft); }
.jn-faq .accordion-body { color: var(--jn-text); }

/* ---------- Artikel ---------- */
.jn-post-card { overflow: hidden; display: flex; flex-direction: column; }
.jn-post-thumb { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--jn-muted); }
.jn-post-category {
    display: inline-block;
    background: var(--jn-primary-soft);
    color: var(--jn-primary);
    font-size: .75rem;
    font-weight: 600;
    border-radius: 8px;
    padding: .2rem .625rem;
}
.jn-post-title { font-size: 1.125rem; }
.jn-post-title a { color: var(--jn-navy); text-decoration: none; }
.jn-post-title a:hover { color: var(--jn-primary); }
.jn-post-meta { font-size: .8125rem; color: var(--jn-text-muted); }

/* ---------- Form ---------- */
.form-label { font-weight: 600; color: var(--jn-navy); font-size: .9375rem; }
.form-control, .form-select {
    border-radius: var(--jn-radius-input);
    border-color: var(--jn-border);
    min-height: 44px;
    font-size: 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--jn-primary);
    box-shadow: 0 0 0 3px var(--jn-primary-soft);
}
.form-text { color: var(--jn-text-muted); }
.invalid-feedback { display: block; }

/* ---------- CTA band ---------- */
.jn-cta-band {
    background:
        radial-gradient(ellipse 70% 90% at 90% 50%, rgba(3, 105, 161, .4), transparent 60%),
        var(--jn-navy);
    color: #fff;
    border-radius: var(--jn-radius-card);
    padding: 3rem 2rem;
}
.jn-cta-band h2 { color: #fff; }
.jn-cta-band p { color: rgba(255, 255, 255, .8); }

/* ---------- Footer ---------- */
.jn-footer { background: var(--jn-navy); color: rgba(255, 255, 255, .78); }
.jn-footer-logo { filter: brightness(0) invert(1); }
.jn-footer-desc { font-size: .9375rem; max-width: 40ch; }
.jn-footer-heading { font-family: var(--jn-font-display); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 1rem; }
.jn-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.jn-footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .9375rem; }
.jn-footer-links a:hover { color: #fff; }
.jn-footer-contact li { display: flex; gap: .625rem; align-items: flex-start; font-size: .9375rem; }
.jn-footer-contact .bi { color: var(--jn-primary); margin-top: .1875rem; filter: brightness(1.6); }
.jn-social-link {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.125rem;
    transition: background-color .2s ease-out;
}
.jn-social-link:hover { background: var(--jn-primary); color: #fff; }
.jn-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.jn-footer-bottom a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.jn-footer-bottom a:hover { color: #fff; }

/* ---------- Tombol WhatsApp mengambang ---------- */
.jn-wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #16A34A;
    color: #fff;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(22, 163, 74, .4);
    z-index: 1030;
    transition: transform .2s ease-out;
}
.jn-wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Status coverage ---------- */
.jn-badge-available { background: rgba(22, 163, 74, .12); color: #15803D; font-weight: 600; border-radius: 8px; padding: .25rem .625rem; font-size: .8125rem; }
.jn-badge-soon { background: rgba(245, 158, 11, .14); color: #B45309; font-weight: 600; border-radius: 8px; padding: .25rem .625rem; font-size: .8125rem; }

/* ---------- Empty state ---------- */
.jn-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--jn-text-muted);
}
.jn-empty .bi { font-size: 2.5rem; color: var(--jn-muted); display: block; margin-bottom: .75rem; }

/* ---------- Page header (halaman dalam) ---------- */
.jn-page-header { background: var(--jn-bg); border-bottom: 1px solid var(--jn-border); padding-block: 40px; }
.jn-page-header h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: .25rem; }
.breadcrumb { font-size: .875rem; }

/* ---------- Scroll reveal (motion intensity 4) ---------- */
.jn-reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s ease-out, transform .5s ease-out; }
.jn-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .jn-reveal { opacity: 1; transform: none; }
}

/* ---------- Aksesibilitas ---------- */
:focus-visible { outline: 3px solid var(--jn-primary); outline-offset: 2px; }
.jn-hero :focus-visible, .jn-footer :focus-visible { outline-color: #fff; }
