/* ==========================================================================
   MemberFlow — Landing Page VARIAN 2
   Bagian fitur ala Vizard.ai: teks kiri (per fitur) + visual kanan yang
   berganti saat di-scroll (sticky). Reuse token/komponen dari style.css.
   Tinggi tiap "step" bisa disetel lewat --sf2-step-h (default 60vh).
   ========================================================================== */

:root { --sf2-step-h: 60vh; }

/* ---------- intro bagian fitur ---------- */
.sf2-intro { padding: 92px 0 12px; }

/* ---------- section per kategori ---------- */
.sf2-cat { padding: 44px 0 68px; }
.sf2-cat--soft { background: var(--bg-soft); }

.sf2-cat-head {
    display: flex; gap: 18px; align-items: flex-start;
    max-width: 780px; margin: 0 0 28px;
}
.sf2-cat-ic {
    flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center; color: #fff; font-size: 22px;
    background: var(--brand-grad); box-shadow: var(--shadow-lg);
}
.sf2-cat-kicker {
    font-size: 12px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--primary);
}
.sf2-cat-head h2 { font-size: clamp(23px, 3.2vw, 33px); margin: 4px 0 8px; }
.sf2-cat-head p { color: var(--muted); font-size: 16px; }

/* ---------- body: steps kiri + stage kanan ---------- */
.sf2-body {
    display: grid; grid-template-columns: 45fr 55fr;
    gap: 48px; align-items: start;
}
.sf2-steps { display: flex; flex-direction: column; }

.sf2-step {
    min-height: var(--sf2-step-h);
    display: flex; flex-direction: column; justify-content: center;
    opacity: .3; transition: opacity .35s ease; padding: 18px 0;
}
.sf2-step.is-active { opacity: 1; }
.sf2-num {
    align-self: flex-start; margin-bottom: 14px;
    font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--primary);
    border: 1px solid #dbeafe; background: var(--bg-tint);
    border-radius: 999px; padding: 4px 12px;
}
.sf2-step h3 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 10px; }
.sf2-step > p { font-size: 16px; color: var(--ink-2); max-width: 40ch; }

/* ---------- stage sticky kanan ---------- */
.sf2-stage {
    position: sticky; top: 15vh;
    aspect-ratio: 16 / 10;      /* frame landscape mengikuti screenshot → minim ruang kosong */
    height: auto; max-height: 76vh;
    border-radius: var(--radius-lg); overflow: hidden;
    background: #0b1220; border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.sf2-media {
    position: absolute; inset: 0; opacity: 0;
    transform: scale(1.02);
    transition: opacity .45s ease, transform .45s ease;
    pointer-events: none;
}
.sf2-media.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- shot yang bisa diklik (buka video) ---------- */
.sf2-shot {
    position: relative; display: block; width: 100%; height: 100%;
    border: 0; padding: 0; margin: 0; cursor: pointer;
    background: #0b1220; overflow: hidden;
}
/* contain = screenshot tampil UTUH (tidak dipotong), proporsional di dalam bingkai */
.sf2-shot img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.sf2-play {
    position: absolute; inset: 0; margin: auto;
    width: 64px; height: 64px; border-radius: 999px;
    display: grid; place-items: center;
    background: rgba(37, 99, 235, .92); color: #fff; font-size: 20px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .5);
    transition: transform .2s ease, background .2s ease;
}
.sf2-shot:hover .sf2-play { transform: scale(1.08); background: var(--primary); }

/* shot inline khusus mobile (disembunyikan di desktop) */
.sf2-shot--m {
    display: none; height: auto; aspect-ratio: 16 / 10;
    border-radius: var(--radius); margin-top: 16px; box-shadow: var(--shadow);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .sf2-body { grid-template-columns: 1fr; gap: 0; }
    .sf2-stage { display: none; }
    .sf2-step {
        min-height: auto; opacity: 1; padding: 22px 0;
        border-top: 1px solid var(--line-2);
    }
    .sf2-steps .sf2-step:first-child { border-top: 0; }
    .sf2-shot--m { display: block; }
    .sf2-cat-head { margin-bottom: 18px; }
    .sf2-cat { padding: 28px 0 40px; }
}
