/* Fade-in Animation saat Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation untuk Mockup Hero */
.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Tab Transition (Solusi Bisnis) */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accordion Animasi (FAQ) */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

/* Sticky Nav Shadow */
.nav-scrolled {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    background-color: rgba(22, 83, 50, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Toggle Switch Harga */
.toggle-checkbox:checked {
    right: 0;
    border-color: #f5a623;
}

.toggle-checkbox:checked+.toggle-label {
    background-color: #f5a623;
}

/* Tech Grid Animation */
.tech-grid {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    animation: moveGrid 15s linear infinite;
}

@keyframes moveGrid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* Pulse Slow */
.pulse-slow {
    animation: pulseSlow 4s ease-in-out infinite alternate;
}

@keyframes pulseSlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Typography halaman wilayah (anak langsung, tidak menimpa .not-prose) */
.prose {
    color: #374151;
    line-height: 1.8;
}
.prose.max-w-none {
    max-width: none;
}
.prose-lg {
    font-size: 1.125rem;
}
.prose > h2 {
    font-family: Outfit, sans-serif;
    color: #165332;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}
.prose > h3 {
    font-family: Outfit, sans-serif;
    color: #165332;
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}
.prose > p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}
.prose > ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin: 1.25em 0;
}
.prose li {
    display: list-item;
    margin: 0.4em 0;
}
.prose-green a {
    color: #165332;
}

/* Typography artikel detail (override Tailwind preflight) */
.article-body {
    color: #374151;
    line-height: 1.8;
    font-size: 1.0625rem;
    overflow-wrap: break-word;
    max-width: none;
}
.article-body > *:first-child {
    margin-top: 0;
}
.article-body > *:last-child {
    margin-bottom: 0;
}
.article-body p {
    margin-top: 1.1em;
    margin-bottom: 1.1em;
    text-align: justify;
}
@media (max-width: 640px) {
    .article-body p {
        text-align: left;
    }
}
.article-body h1 {
    font-family: Outfit, sans-serif;
    color: #165332;
    font-weight: 800;
    font-size: 1.875rem;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.85em;
    text-align: left !important;
}
.article-body h2 {
    font-family: Outfit, sans-serif;
    color: #165332;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.35;
    margin-top: 2.1em;
    margin-bottom: 0.7em;
    padding-bottom: 0.35em;
    border-bottom: 2px solid #d8efe3;
    text-align: left !important;
}
.article-body h3 {
    font-family: Outfit, sans-serif;
    color: #0f3822;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-top: 1.6em;
    margin-bottom: 0.55em;
    text-align: left !important;
}
.article-body h4,
.article-body h5,
.article-body h6 {
    font-family: Outfit, sans-serif;
    color: #165332;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.45;
    margin-top: 1.35em;
    margin-bottom: 0.45em;
    text-align: left !important;
}
.article-body ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.5em;
    margin: 0.9em 0 1.15em;
}
.article-body ol {
    list-style-type: decimal;
    list-style-position: outside;
    padding-left: 1.5em;
    margin: 0.9em 0 1.15em;
}
.article-body ul ul,
.article-body ol ul {
    list-style-type: circle;
    margin: 0.35em 0;
}
.article-body ul ul ul {
    list-style-type: square;
}
.article-body ol ol {
    list-style-type: lower-alpha;
}
.article-body li {
    display: list-item;
    margin: 0.4em 0;
    padding-left: 0.2em;
}
.article-body li > p {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
    text-align: left;
}
.article-body li > p:first-child {
    margin-top: 0;
}
.article-body li > p:last-child {
    margin-bottom: 0;
}
.article-body strong,
.article-body b {
    color: #111827;
    font-weight: 700;
}
.article-body em,
.article-body i {
    font-style: italic;
}
.article-body a {
    color: #165332;
    text-decoration: underline;
    font-weight: 600;
}
.article-body a:hover {
    color: #f5a623;
}
.article-body blockquote {
    border-left: 4px solid #f5a623;
    background: #f8fafc;
    margin: 1.5em 0;
    padding: 0.9em 1.25em;
    color: #4b5563;
    border-radius: 0 0.75rem 0.75rem 0;
}
.article-body blockquote p {
    margin: 0.4em 0;
    text-align: left;
}
.article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5em auto;
}
.article-body hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}
.article-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    background: #f3f4f6;
    color: #165332;
    padding: 0.15em 0.4em;
    border-radius: 0.35rem;
}
.article-body pre {
    background: #111827;
    color: #f9fafb;
    padding: 1em 1.15em;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.9em;
}
.article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95em;
}
.article-body th,
.article-body td {
    border: 1px solid #e5e7eb;
    padding: 0.65em 0.85em;
    text-align: left;
    vertical-align: top;
}
.article-body thead th,
.article-body table > tr:first-child td {
    background: #f2fcf6;
    color: #165332;
    font-weight: 700;
}
.article-body figure {
    margin: 1.5em 0;
}
.article-body figcaption {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5em;
}

/* Sisa markup paste (Gemini/NotebookLM) */
.article-body source-footnote,
.article-body sources-carousel-inline,
.article-body response-element,
.article-body link-block {
    display: none !important;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}