/* ============================================================================
   landing.css — halaman depan publik Aizu

   Identitasnya mengikuti /login/: monokrom, cincin orbit, Bricolage Grotesque,
   tombol tinta pekat. Tidak ada gradien, tidak ada glow, tidak ada warna
   dekoratif — hanya variabel tema supaya mode terang/gelap ikut otomatis.
   ========================================================================= */

/* ---------- Kerangka ---------- */

body.landing-page {
    margin: 0;
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', system-ui, sans-serif;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
    padding: 0;
    display: block;
}

body.landing-page main {
    display: block;
}

/* ---------- Bilah atas ---------- */

/* .app-header dipakai apa adanya supaya theme.js menaruh tombol tema di sini
   (bukan mengambang menutupi tombol daftar). */
.lp-header {
    gap: 16px;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}
.lp-brand img {
    display: block;
    border-radius: 6px;
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    /* Beri ruang untuk tombol tema yang disisipkan theme.js di kanan. */
    padding-right: 8px;
}

.lp-nav a {
    padding: 7px 11px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: color .16s ease, background-color .16s ease;
    white-space: nowrap;
}
.lp-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-sunken);
}

/* Ajakan utama di bilah atas memakai tinta pekat, sama seperti .auth-submit. */
.lp-nav-cta,
.lp-nav a.lp-nav-cta {
    color: var(--bg-main);
    background: var(--text-primary);
    border: 1px solid var(--text-primary);
    font-weight: 600;
    padding: 7px 14px;
}
.lp-nav a.lp-nav-cta:hover {
    opacity: .88;
    background: var(--text-primary);
    color: var(--bg-main);
}

.lp-nav a:focus-visible,
.lp-brand:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* ---------- Pembuka ---------- */

.lp-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 40px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 88px 32px 76px;
    min-height: 520px;
}

.lp-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 34rem;
}

.lp-eyebrow {
    margin: 0 0 18px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lp-h1 {
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 5.2vw, 3.75rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: var(--text-primary);
}

.lp-lede {
    margin: 0 0 30px;
    max-width: 30rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------- Cincin orbit ---------- */

/* Sama seperti .auth-orbit di auth.css: cincin digambar SVG agar tajam,
   satelit berputar pada porosnya sendiri. */
.lp-orbit {
    position: relative;
    align-self: stretch;
    min-height: 380px;
    pointer-events: none;
    color: var(--text-primary);
}

.lp-orbit svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: auto;
    transform: translate(-50%, -50%);
    display: block;
    animation: lp-ring-in .9s cubic-bezier(.22,.61,.36,1) both;
}

.lp-orbit circle {
    fill: none;
    stroke: currentColor;
    vector-effect: non-scaling-stroke;
}
.lp-orbit .ring-1 { stroke-width: 1; opacity: .20; }
.lp-orbit .ring-2 { stroke-width: 1; opacity: .14; }
.lp-orbit .ring-3 { stroke-width: 1; opacity: .09; stroke-dasharray: 2 16; }
.lp-orbit .ring-4 { stroke-width: 1; opacity: .055; }

.lp-orbit .planet { fill: currentColor; opacity: .85; }
.lp-orbit .sat { fill: currentColor; opacity: .45; }
.lp-orbit .orb-c .sat { opacity: .7; }

.lp-orbit .orb {
    transform-box: view-box;
    transform-origin: 500px 500px;
    will-change: transform;
}
.lp-orbit .orb-a { animation: lp-orbit-spin 96s linear infinite; }
.lp-orbit .orb-b { animation: lp-orbit-spin 68s linear infinite reverse; }
.lp-orbit .orb-c { animation: lp-orbit-spin 44s linear infinite; }
.lp-orbit .orb-d { animation: lp-orbit-spin 30s linear infinite reverse; }

@keyframes lp-orbit-spin {
    to { transform: rotate(360deg); }
}
@keyframes lp-ring-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(.965); }
}
@keyframes lp-rise {
    from { opacity: 0; transform: translateY(10px); }
}

/* ---------- Tombol ---------- */

.lp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: transparent;
    cursor: pointer;
    transition: opacity .16s ease, background-color .16s ease,
                border-color .16s ease, transform .16s ease;
    white-space: nowrap;
}

/* Tinta pekat, bukan warna aksen — sama seperti tombol masuk di /login/. */
.lp-btn-primary {
    color: var(--bg-main);
    background: var(--text-primary);
    border-color: var(--text-primary);
}
.lp-btn-primary:hover { opacity: .88; }
.lp-btn-primary:active { transform: translateY(1px); }

.lp-btn-ghost:hover {
    background: var(--bg-sunken);
    border-color: var(--border-strong);
}
.lp-btn-ghost:active { transform: translateY(1px); }

.lp-btn:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
}

.lp-note {
    margin: 18px 0 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 32rem;
}

/* ---------- Bagian umum ---------- */

.lp-section {
    max-width: 1160px;
    margin: 0 auto;
    padding: 64px 32px;
    border-top: 1px solid var(--border-color);
}

.lp-h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
}

.lp-sub {
    margin: 0 0 32px;
    max-width: 44rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------- Daftar layanan ---------- */

.lp-apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 10px;
}

.lp-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    transition: border-color .16s ease, background-color .16s ease;
}
.lp-app:hover {
    border-color: var(--border-strong);
    background: var(--bg-subtle);
}

.lp-app-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ---------- Paket ---------- */

.lp-pkgs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    align-items: start;
}

.lp-pkg {
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    height: 100%;
    box-sizing: border-box;
}

/* Paket unggulan dibedakan lewat garis, bukan warna — tetap monokrom. */
.lp-pkg.is-featured {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-2);
}

.lp-pkg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    min-height: 22px;
}

.lp-pkg-name {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.lp-pkg-badge {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bg-main);
    background: var(--text-primary);
    border-radius: var(--radius-pill);
    padding: 3px 8px;
    white-space: nowrap;
}

.lp-pkg-price {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.lp-pkg-period {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.lp-pkg-list {
    list-style: none;
    margin: 18px 0 22px;
    padding: 0;
    flex: 1;
}

.lp-pkg-list li {
    position: relative;
    padding: 0 0 0 18px;
    margin-bottom: 9px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
.lp-pkg-list li:last-child { margin-bottom: 0; }

/* Penanda butir: garis pendek, bukan ikon centang berwarna. */
.lp-pkg-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 1px;
    background: var(--text-muted);
}

.lp-pkg-foot { margin-top: auto; }
.lp-pkg-foot .lp-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    font-size: 0.875rem;
}

/* ---------- Pita ajakan penutup ---------- */

.lp-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    background: var(--bg-subtle);
}

.lp-band h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.lp-band p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.lp-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Kaki halaman ---------- */

.lp-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-subtle);
}

.lp-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 32px;
}

.lp-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.lp-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.lp-footer-links a {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .16s ease;
}
.lp-footer-links a:hover { color: var(--text-primary); }
.lp-footer-links a:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Gerak masuk, sekali saja ---------- */

.lp-eyebrow, .lp-h1, .lp-lede, .lp-cta-row, .lp-note {
    animation: lp-rise .5s cubic-bezier(.22,.61,.36,1) both;
}
.lp-eyebrow { animation-delay: .04s; }
.lp-h1      { animation-delay: .08s; }
.lp-lede    { animation-delay: .12s; }
.lp-cta-row { animation-delay: .16s; }
.lp-note    { animation-delay: .20s; }

/* ---------- Layar sempit ---------- */

@media (max-width: 900px) {
    .lp-hero {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 52px 22px 44px;
        min-height: 0;
    }

    .lp-hero-copy { max-width: none; }

    /* Orbit dipindah ke belakang teks, dipudarkan supaya tidak mengganggu
       keterbacaan. */
    .lp-orbit {
        position: absolute;
        inset: 0;
        min-height: 0;
        opacity: .5;
        z-index: 0;
    }
    .lp-orbit svg {
        left: auto;
        right: -42%;
        width: 118%;
        transform: translateY(-50%);
        top: 50%;
    }
    @keyframes lp-ring-in {
        from { opacity: 0; }
    }

    .lp-section { padding: 44px 22px; }

    .lp-nav a:not(.lp-nav-cta) { display: none; }

    .lp-band { padding: 24px 22px; }
    .lp-band-actions { width: 100%; }
    .lp-band-actions .lp-btn { flex: 1 1 auto; }

    .lp-footer-inner { padding: 22px; }
}

@media (max-width: 520px) {
    .lp-hero { padding: 40px 18px 36px; }
    .lp-section { padding: 36px 18px; }
    .lp-cta-row .lp-btn { flex: 1 1 100%; }
    .lp-pkgs { grid-template-columns: 1fr; }
    .lp-footer-inner { padding: 20px 18px; }
}

/* ---------- Hormati preferensi gerak minimal ---------- */

@media (prefers-reduced-motion: reduce) {
    .lp-orbit svg,
    .lp-orbit .orb,
    .lp-eyebrow, .lp-h1, .lp-lede, .lp-cta-row, .lp-note {
        animation: none !important;
    }
    .lp-btn, .lp-nav a, .lp-app, .lp-footer-links a {
        transition: none !important;
    }
}
