/**
 * "In 3 Schritten bestellen" — bayigram-tarzı adım bölümü.
 * 3 kart (mockup + numara + başlık + açıklama), aralarında ok, scroll-reveal.
 * Koyu seamless zemin (#0b0d12). Namespace: .stp
 */
.stp {
    --stp-accent: var(--bs-primary, #2563eb);
    --stp-panel: rgba(255, 255, 255, 0.035);
    --stp-panel-2: rgba(255, 255, 255, 0.06);
    --stp-line: rgba(255, 255, 255, 0.09);
    --stp-text: rgba(255, 255, 255, 0.62);
    --stp-head: #f2f5fb;
    position: relative;
    overflow: hidden;
    padding: clamp(2.8rem, 5vw, 4.4rem) 1.25rem;
    background: transparent;
    color: var(--stp-head);
}
.stp__inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }

/* ── Başlık ── */
.stp__head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.stp__eyebrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.95rem; margin-bottom: 1rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--stp-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--stp-accent) 26%, transparent);
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--stp-accent);
}
.stp__title { margin: 0 0 0.7rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.14; letter-spacing: -0.02em; color: var(--stp-head); }
.stp__sub { margin: 0; font-size: clamp(0.92rem, 1.6vw, 1.02rem); line-height: 1.6; color: var(--stp-text); }

/* ── Grid: kart · ok · kart · ok · kart ── */
.stp__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: start;
}
.stp__arrow {
    align-self: flex-start;
    margin-top: 5.5rem;
    display: inline-flex;
    color: color-mix(in srgb, var(--stp-accent) 70%, #fff);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    transition-delay: 0.3s;
}
.stp.is-in .stp__arrow { opacity: 0.7; }

/* ── Kart ── */
.stp__card {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: calc(var(--stp-i, 0) * 0.13s);
}
.stp.is-in .stp__card { opacity: 1; transform: none; }

/* ── Mockup sahnesi ── */
.stp__mock {
    position: relative;
    height: 12.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    border-radius: 1.1rem;
    background:
        radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--stp-accent) 12%, transparent), transparent 72%),
        rgba(255, 255, 255, 0.02);
    border: 1px solid var(--stp-line);
    overflow: hidden;
}
.stp__win {
    width: min(84%, 17rem);
    padding: 0.85rem;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--stp-line);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

/* Cart mockup */
.stp__win-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.5rem; border-bottom: 1px solid var(--stp-line); }
.stp__win-title { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 700; color: var(--stp-head); }
.stp__win-total { font-size: 0.82rem; font-weight: 800; color: var(--stp-accent); }
.stp__line { display: grid; grid-template-columns: 1.4rem 1fr; grid-template-rows: auto auto; gap: 0.12rem 0.5rem; align-items: center; }
.stp__line-ic { grid-row: 1 / 3; width: 1.4rem; height: 1.4rem; border-radius: 0.4rem; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; color: #fff; background: var(--c, #2563eb); }
.stp__line-txt { font-size: 0.72rem; color: var(--stp-text); }
.stp__line-txt b { color: var(--stp-head); font-weight: 700; }
.stp__line-bar { grid-column: 2; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.stp__line-bar span { display: block; height: 100%; border-radius: 3px; background: var(--stp-accent); }

/* Orbs (yüzen platform ikonları) */
.stp__orb {
    position: absolute; z-index: 1;
    width: 2rem; height: 2rem; border-radius: 0.6rem;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #fff; background: var(--c, #2563eb);
    box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--c, #2563eb) 70%, transparent);
    animation: stpFloat 4.5s ease-in-out infinite;
}
.stp__orb--a { top: 1.1rem; left: 1.2rem; animation-delay: 0s; }
.stp__orb--b { bottom: 1.4rem; left: 2.1rem; animation-delay: 1.1s; }
.stp__orb--c { top: 2rem; right: 1.4rem; animation-delay: 0.6s; }
@keyframes stpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Pay mockup */
.stp__field { display: flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.6rem; border-radius: 0.55rem; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stp-line); font-size: 0.78rem; color: var(--stp-head); }
.stp__field i { color: var(--stp-accent); }
.stp__field-ok { margin-left: auto; color: #22c55e; display: inline-flex; }
.stp__pays { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.stp__pay { padding: 0.22rem 0.42rem; border-radius: 0.35rem; background: #fff; color: #111; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.02em; }
.stp__pay--more { background: rgba(255, 255, 255, 0.1); color: var(--stp-text); }
.stp__cta { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 0.15rem; padding: 0.5rem; border-radius: 0.55rem; background: var(--stp-accent); color: #fff; font-size: 0.78rem; font-weight: 700; }

/* Done mockup */
.stp__done { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; }
.stp__done + .stp__done { border-top: 1px solid var(--stp-line); }
.stp__done-ic { width: 1.5rem; height: 1.5rem; border-radius: 0.4rem; display: inline-flex; align-items: center; justify-content: center; font-size: 0.82rem; color: #fff; background: var(--c, #2563eb); flex: 0 0 auto; }
.stp__done-txt { flex: 1 1 auto; font-size: 0.72rem; color: var(--stp-text); }
.stp__done-check { color: #22c55e; font-size: 1rem; }
.stp__spin { width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); border-top-color: var(--stp-accent); animation: stpSpin 0.8s linear infinite; }
@keyframes stpSpin { to { transform: rotate(360deg); } }

/* Pill rozet */
.stp__pill { position: absolute; z-index: 3; bottom: 0.9rem; right: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.28rem 0.55rem; border-radius: 999px; background: rgba(15, 20, 30, 0.85); border: 1px solid var(--stp-line); font-size: 0.64rem; font-weight: 700; color: var(--stp-head); backdrop-filter: blur(4px); }
.stp__pill i { color: var(--stp-accent); }
.stp__pill--green i { color: #22c55e; }

/* ── Kart gövdesi (numara + başlık + açıklama) ── */
.stp__body { text-align: center; padding: 0 0.3rem; }
.stp__num {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em;
    color: var(--stp-accent);
    margin-bottom: 0.45rem;
    padding: 0.2rem 0.6rem; border-radius: 999px;
    background: color-mix(in srgb, var(--stp-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--stp-accent) 26%, transparent);
}
.stp__step-title { margin: 0 0 0.45rem; font-size: 1.12rem; font-weight: 800; color: var(--stp-head); }
.stp__step-desc { margin: 0 auto; max-width: 20rem; font-size: 0.88rem; line-height: 1.58; color: var(--stp-text); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .stp__grid { grid-template-columns: 1fr; gap: 1.5rem; max-width: 24rem; margin: 0 auto; }
    .stp__arrow { display: none; }
    .stp__card + .stp__card { position: relative; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .stp__arrow { margin-top: 5rem; font-size: 1.2rem; }
    .stp__win { width: 92%; }
}

/* ── LIGHT tema uyarlaması (seamless: light'ta body açık zemin) ── */
html[data-bs-theme="light"] .stp {
    --stp-panel: rgba(15, 23, 42, 0.03);
    --stp-panel-2: rgba(15, 23, 42, 0.05);
    --stp-line: rgba(15, 23, 42, 0.1);
    --stp-text: rgba(15, 27, 51, 0.6);
    --stp-head: #0f1b33;
}
html[data-bs-theme="light"] .stp__mock {
    background: radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--stp-accent) 10%, transparent), transparent 72%), rgba(15, 23, 42, 0.02);
}
html[data-bs-theme="light"] .stp__win {
    background: linear-gradient(180deg, #ffffff, #f6f8fc);
    box-shadow: 0 20px 42px -26px rgba(15, 23, 42, 0.32);
}
html[data-bs-theme="light"] .stp__field { background: #fff; }
html[data-bs-theme="light"] .stp__line-bar { background: rgba(15, 23, 42, 0.08); }
html[data-bs-theme="light"] .stp__pay--more { background: rgba(15, 23, 42, 0.08); color: var(--stp-text); }
html[data-bs-theme="light"] .stp__pill { background: rgba(255, 255, 255, 0.94); color: #0f1b33; }
html[data-bs-theme="light"] .stp__spin { border-color: rgba(15, 23, 42, 0.15); border-top-color: var(--stp-accent); }

@media (prefers-reduced-motion: reduce) {
    .stp__card, .stp__arrow { transition: none; opacity: 1; transform: none; }
    .stp__orb, .stp__spin { animation: none; }
}
