/* =====================================================================
   LikedWin — "Neden LikedWin?" bölümü
   Hizmetler'in altında: bot↔gerçek karşılaştırma grafiği (düşme değil,
   spam↔etkileşim vurgusu), animasyonlu Bağlı Görev sistemi, özellikler.
   site.css değişkenlerini kullanır.
   ===================================================================== */

.neden {
    position: relative;
    padding: clamp(52px, 6vw, 90px) 0 clamp(48px, 6vw, 88px);
    background:
        radial-gradient(60% 50% at 18% 0%, rgba(239, 68, 68, .06), rgba(239, 68, 68, 0) 60%),
        radial-gradient(60% 50% at 82% 0%, rgba(47, 189, 142, .08), rgba(47, 189, 142, 0) 60%),
        var(--bg-soft);
    overflow: hidden;
}

/* ---------- Başlık ---------- */
.neden__head { text-align: center; max-width: 720px; margin: 0 auto clamp(30px, 3.5vw, 48px); }
.neden__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 15px 6px 7px; margin-bottom: 16px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--brand-line);
    box-shadow: 0 4px 14px -6px rgba(37, 68, 216, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
    font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--brand);
}
.neden__eyebrow i {
    display: inline-grid; place-items: center;
    width: 20px; height: 20px; border-radius: 6px;
    background: var(--brand-soft); color: var(--brand); font-size: 11px;
}
.neden__title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(24px, 3.4vw, 42px); font-weight: 800; line-height: 1.14;
    letter-spacing: -.02em; color: var(--ink); margin: 0 0 12px;
}
.neden__title .hl {
    background-image: linear-gradient(90deg, var(--ok-fg), #2fbd8e 55%, var(--brand));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.neden__sub { font-size: clamp(14px, 1.5vw, 16px); line-height: 1.6; color: var(--muted); font-weight: 500; margin: 0 auto; max-width: 600px; }
.neden__sub b { color: var(--ink); font-weight: 700; }

/* =====================================================================
   1) KARŞILAŞTIRMA GRAFİĞİ
   ===================================================================== */
/* İlk iki kutu yan yana (grafik + bağlı görev); içerikleri dikey akar.
   Genişlik üstteki hizmetler bölümüyle aynı (container'ı doldurur). */
.neden-row {
    margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(18px, 1.8vw, 26px);
    align-items: stretch;
}
.neden-row > * { min-width: 0; }   /* 1fr paylarına küçülebilsinler → eşit genişlik */

.cmp {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: clamp(20px, 2.4vw, 30px);
}
/* Kart başlığı: markalı eyebrow + çarpıcı başlık + trend alt satırı */
.cmp__head { text-align: center; margin-bottom: 20px; }
.cmp__eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px 5px 6px; margin-bottom: 11px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--brand-line);
    box-shadow: 0 4px 14px -6px rgba(37, 68, 216, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
    font-size: 11px; font-weight: 800; letter-spacing: .09em; color: var(--brand);
}
.cmp__eyebrow .lw-mark {
    box-sizing: content-box;
    width: 14px; height: 14px; padding: 3px; border-radius: 5px;
    background: var(--brand-soft);
}
.cmp__lead {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(16px, 1.55vw, 20px); font-weight: 800; line-height: 1.3;
    letter-spacing: -.015em; color: var(--ink); margin: 0 0 9px;
}
.cmp__lead em { font-style: normal; font-weight: 800; color: #d43f3f; }
.cmp__lead b {
    font-weight: 800;
    background-image: linear-gradient(90deg, var(--ok-fg), #2fbd8e 60%, var(--ok-fg));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
/* ---------- Animasyonlu anlatım (grafik yerine) ----------
   Aynı anda iki senaryo: üstte LikedWin (gerçek kişiler kalır, etkileşim bırakır),
   altta bot (gelir, titrer, erir). İki şerit AYNI takvimi paylaşır — yuvarlaklar
   birlikte gelir, ayrışma anı ikisinde de %38'de, iki sonuç rozeti de tam olarak
   aynı karede (%74) belirir. 9sn'lik saf CSS döngüsü, JS'e bağlı değil. */
.eff {
    flex: 1 1 auto;
    display: flex; flex-direction: column;
    gap: clamp(12px, 1.6vw, 18px);
    margin: 10px 0 2px;
}
/* İki şerit birer panel: kartın boyunu PAYLAŞARAK doldururlar. (Önce serbest
   akıyorlardı; komşu kart uzun olduğu için aralarında koca bir boşluk kalıyordu.) */
.eff__row {
    /* 1 1 auto: taban içerik yüksekliği, artan boşluk eşit paylaşılır. (basis:0
       verilince kartın boyu içerikten geldiği durumlarda paneller çöküp üst üste
       biniyordu — mobilde kartın yüksekliği sabit değil.) */
    flex: 1 1 auto;
    display: flex; flex-direction: column; justify-content: center;
    gap: clamp(11px, 1.5vw, 16px);
    padding: clamp(14px, 1.9vw, 22px);
    border-radius: 18px; border: 1px solid var(--line);
    background: var(--bg-soft);
}
.eff__row--good { border-color: var(--ok-line); }
.eff__row--bad  { border-color: var(--err-line); }

/* İki şeridin etiketi birebir aynı tipografi: aynı boy, aynı kalınlık, aynı
   harf/kelime aralığı. (Önce biri <b> içeriyordu → kalınlık ve aralık kayıyordu.) */
.eff__label {
    display: flex; align-items: flex-start; gap: 8px;
    font-family: inherit;
    font-size: 12.5px; font-weight: 700; line-height: 1.35;
    letter-spacing: 0; word-spacing: normal;
}
/* ikon kutusu iki satırda da 12px → yazılar tam aynı noktadan başlar */
.eff__label i { font-size: 11px; margin-top: 3px; flex: none; width: 12px; text-align: center; }
.eff__label .lw-mark { width: 12px; height: 12px; margin-top: 3px; flex: none; }
.eff__row--good .eff__label { color: var(--ok-fg); }
.eff__row--bad  .eff__label { color: var(--err-fg); }

/* Sahne: 5 yuvarlak sırayla (0.12sn arayla) belirir */
.eff__stage { display: flex; align-items: center; gap: clamp(9px, 1.5vw, 15px); min-height: clamp(46px, 5.4vw, 56px); }
.eff__ava {
    position: relative; flex: none;
    width: clamp(38px, 4.3vw, 48px); aspect-ratio: 1;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; box-sizing: border-box;
    font-weight: 800; font-size: clamp(13px, 1.3vw, 15px); letter-spacing: -.02em;
    animation: effGood 9s cubic-bezier(.34, 1.4, .64, 1) infinite;
    animation-delay: calc(var(--i) * .12s);
}
.eff__row--good .eff__ava {
    background: var(--brand-soft); color: var(--brand);
    box-shadow: 0 8px 18px -12px rgba(37, 68, 216, .75);
}
/* Fotoğraf konulursa (assets/img/likedwin-user-N.*) yuvarlağı tamamen doldurur */
.eff__ava img,
.eff__ava .eff__fig { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* Etkileşim anında yayılan halka — gerçek kişinin "iz bıraktığı" an */
.eff__row--good .eff__ava::after {
    content: ''; position: absolute; inset: -5px;
    border-radius: 50%; border: 2px solid var(--ok-fg);
    opacity: 0; pointer-events: none;
    animation: effRing 9s ease-out infinite;
    animation-delay: calc(var(--i) * .12s);
}
.eff__ava--bot {
    background: var(--err-bg); color: var(--err-fg);
    border: 1.5px dashed var(--err-line);
    /* geliş eğrisi yeşille birebir aynı → iki şerit tam senkron başlar */
    animation-name: effBot;
}
/* Ölü hesap işareti — yeşil taraftaki beğeni baloncuğunun karşılığı, aynı karede
   belirir. Botlar kaybolmaz; gri ve soluk kalır ki şerit boşalmasın. */
.eff__dead {
    position: absolute; right: -3px; bottom: -3px;
    width: 21px; height: 21px; box-sizing: border-box;
    display: grid; place-items: center;
    border-radius: 50%; border: 2px solid var(--surface);
    background: var(--muted); color: var(--surface); font-size: 9px;
    transform: scale(0);
    animation: effDead 9s cubic-bezier(.34, 1.56, .64, 1) infinite;
    animation-delay: calc(var(--i) * .12s);
}

/* Beğeni / yorum baloncuğu — halkayla aynı karede patlar */
.eff__react {
    position: absolute; right: -3px; bottom: -3px;
    width: 21px; height: 21px; box-sizing: border-box;
    display: grid; place-items: center;
    border-radius: 50%; border: 2px solid var(--surface);
    /* yazı rengi = kart zemini → hem açık hem koyu temada okunur kalır */
    background: var(--ok-fg); color: var(--surface); font-size: 8.5px;
    transform: scale(0);
    animation: effReact 9s cubic-bezier(.34, 1.56, .64, 1) infinite;
    animation-delay: calc(var(--i) * .12s);
}

/* Sonuç rozetleri — ikisi de aynı anda (%74) belirir */
.eff__out {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    padding: 7px 14px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; line-height: 1.3;
    opacity: 0;
    animation: effOut 9s cubic-bezier(.34, 1.4, .64, 1) infinite;
}
.eff__out i { font-size: 11px; }
.eff__out--good { color: var(--ok-fg); background: var(--ok-bg);  border: 1px solid var(--ok-line); }
.eff__out--bad  { color: var(--err-fg); background: var(--err-bg); border: 1px solid var(--err-line); }

/* gelir → etkileşim bırakır → kalır */
@keyframes effGood {
    0%        { opacity: 0; transform: translateY(16px) scale(.55); filter: blur(4px); }
    9%        { opacity: 1; transform: translateY(0) scale(1);      filter: blur(0); }
    32%       { transform: translateY(0) scale(1); }
    38%       { transform: translateY(-7px) scale(1.09); }
    47%       { transform: translateY(0) scale(1); }
    100%      { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes effRing {
    0%, 32%   { opacity: 0; transform: scale(.8); }
    38%       { opacity: .6; transform: scale(1); }
    56%, 100% { opacity: 0; transform: scale(1.45); }
}
/* gelir → titrer → grileşip söner ama YERİNDE KALIR (şerit boşalmasın) */
@keyframes effBot {
    0%        { opacity: 0; transform: translateY(16px) scale(.55); filter: blur(4px) grayscale(0); }
    9%, 32%   { opacity: 1; transform: translateY(0) scale(1) rotate(0); filter: blur(0) grayscale(0); }
    36%       { transform: translateX(-3px) rotate(-5deg); }
    39%       { transform: translateX(3px) rotate(5deg); }
    42%       { transform: translateX(0) rotate(0); }
    54%       { opacity: .58; transform: scale(.95); filter: grayscale(1); }
    64%, 100% { opacity: .52; transform: scale(.92); filter: grayscale(1); }
}
/* Ölü işareti: yeşil baloncukla aynı karede patlar, sonra yavaşça nefes alır */
@keyframes effDead {
    0%, 32%   { opacity: 0; transform: scale(0); }
    38%       { opacity: 1; transform: scale(1.35); }
    45%       { opacity: 1; transform: scale(1); }
    70%       { opacity: .55; transform: scale(.94); }
    85%       { opacity: 1; transform: scale(1); }
    100%      { opacity: .7; transform: scale(.97); }
}
@keyframes effReact {
    0%, 32%   { opacity: 0; transform: scale(0); }
    38%       { opacity: 1; transform: scale(1.35); }
    45%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes effOut {
    0%, 66%   { opacity: 0; transform: translateY(9px) scale(.96); }
    74%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* =====================================================================
   2) BAĞLI GÖREV SİSTEMİ (animasyonlu akış)
   ===================================================================== */
.flow {
    margin: 0;
    display: flex; flex-direction: column;
    background: linear-gradient(135deg, #0f1230 0%, #171a3a 55%, #24123a 100%);
    border-radius: 24px;
    padding: clamp(22px, 2.6vw, 32px);
    color: #fff;
    position: relative; overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(23, 26, 58, .7);
}
.flow::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(50% 60% at 12% 0%, rgba(37, 68, 216, .35), transparent 60%),
        radial-gradient(50% 70% at 90% 100%, rgba(47, 189, 142, .25), transparent 60%);
}
.flow__head { position: relative; text-align: center; margin-bottom: clamp(22px, 3vw, 34px); }
.flow__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px 5px 6px; margin-bottom: 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, .05) 100%);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
    font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: #c3d4ff;
}
.flow__badge i {
    display: inline-grid; place-items: center;
    width: 19px; height: 19px; border-radius: 6px;
    background: rgba(255, 255, 255, .14); color: #e2e9ff; font-size: 10px;
}
.flow__title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.flow__sub { font-size: clamp(13px, 1.4vw, 15px); color: rgba(255, 255, 255, .66); margin: 0 auto; max-width: 560px; line-height: 1.6; }

.flow__steps { position: relative; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; justify-content: center; }

.flow__step {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: auto 1fr;
    grid-template-areas: "ico st" "ico sd";
    align-items: center; column-gap: 15px; row-gap: 2px; text-align: left;
    padding: 15px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    transition: transform .4s ease, background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.flow__ico {
    grid-area: ico; align-self: center;
    display: grid; place-items: center;
    width: 50px; height: 50px; border-radius: 15px;
    font-size: 20px; color: #fff;
    background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .14);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease, background .4s ease;
}
.flow__n { position: absolute; top: 10px; right: 14px; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .3); }
.flow__st { grid-area: st; align-self: end; font-size: 15px; font-weight: 800; }
.flow__sd { grid-area: sd; align-self: start; font-size: 12px; color: rgba(255, 255, 255, .62); line-height: 1.45; max-width: none; padding-right: 14px; }

/* Adımlar arası dikey ok + akan ışık */
.flow__link { position: relative; z-index: 1; align-self: center; width: 2px; height: 22px; background: rgba(255, 255, 255, .16); border-radius: 2px; }
.flow__link::before {
    content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: 100%; height: 45%; border-radius: 2px;
    background: linear-gradient(180deg, transparent, #4f7bff, #2fbd8e, transparent);
    animation: flowDashV 3.2s linear infinite;
}
.flow__link::after {
    content: '\f063'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
    font-size: 10px; color: rgba(255, 255, 255, .4);
}
@keyframes flowDashV { 0% { top: -45%; } 100% { top: 100%; } }

/* Sıralı vurgu döngüsü — kısa nabız: bir adım tamamen söner, SONRA sıradaki yanar
   (5.4s / 3 adım; her adım ~%11-22 arası yanar, %28'de söner; delay'ler %33'lük) */
.flow__step { animation: flowStep 5.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes flowStep {
    0%, 5%    { transform: translateY(0); background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); box-shadow: none; }
    11%, 22%  { transform: translateY(-6px); background: rgba(37, 68, 216, .16); border-color: rgba(120, 150, 255, .5); box-shadow: 0 18px 34px -18px rgba(60, 100, 255, .7); }
    28%, 100% { transform: translateY(0); background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); box-shadow: none; }
}
.flow__step .flow__ico { animation: flowIco 5.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes flowIco {
    0%, 5%    { transform: scale(1); box-shadow: none; background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
    11%, 22%  { transform: scale(1.12) rotate(-4deg); box-shadow: 0 10px 24px -8px rgba(79, 123, 255, .8); background: linear-gradient(150deg, #4f7bff, #2fbd8e); }
    28%, 100% { transform: scale(1); box-shadow: none; background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
}

/* =====================================================================
   3) DİĞER ÖZELLİKLER
   ===================================================================== */
/* Sade (kutusuz) hücre: Lottie ikon karesi + kalın başlık + gri açıklama.
   Genişlik üstteki hizmetler bölümüyle aynı (container'ı doldurur). */
.neden-feats {
    margin: clamp(34px, 4vw, 58px) auto 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(22px, 2.6vw, 44px) clamp(20px, 2.4vw, 40px);
}
.lfeat {
    display: flex; flex-direction: column; align-items: flex-start; text-align: left;
    opacity: 0; transform: translateY(18px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .25, 1);
    transition-delay: calc(var(--i) * 60ms);
}
.neden.is-visible .lfeat { opacity: 1; transform: translateY(0); }
.lfeat__ico {
    display: grid; place-items: center;
    width: 66px; height: 66px; border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 22px -10px rgba(16, 24, 40, .18), inset 0 0 0 1px var(--line);
    margin-bottom: 16px;
}
.lfeat__ico lottie-player { width: 46px; height: 46px; }
.lfeat__t {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 18px; font-weight: 800; letter-spacing: -.01em;
    color: var(--ink); margin: 0 0 7px;
}
.lfeat__d { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 340px; }

/* ---------- Responsive ---------- */
/* İki kutu dar ekranda alt alta; özellikler kademeli daralır */
@media (max-width: 900px) {
    .neden-row { grid-template-columns: 1fr; }
    .neden-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    /* Mobilde de 2 sütun: tek sütunda liste çok uzuyordu. İkon ve tipografi
       dar kolona sığacak şekilde küçülür. */
    .neden-feats { gap: 26px 14px; }
    .lfeat__ico { width: 54px; height: 54px; border-radius: 15px; margin-bottom: 12px; }
    .lfeat__ico lottie-player { width: 38px; height: 38px; }
    .lfeat__t { font-size: 15px; margin-bottom: 5px; }
    .lfeat__d { font-size: 12.5px; line-height: 1.55; }
    /* Anlatım şeridi dar ekranda: 5 yuvarlak sığsın, yazılar küçülsün */
    .eff { gap: 16px; }
    .eff__label { font-size: 12px; }
    .eff__stage { gap: 8px; }
    .eff__out { font-size: 12px; padding: 6px 12px; }
}

/* ---------- Hareketi azalt ---------- */
@media (prefers-reduced-motion: reduce) {
    /* Anlatım şeridi: hareket yok, hikâyenin son karesi sabit gösterilir */
    .eff__ava, .eff__react, .eff__dead, .eff__out, .eff__row--good .eff__ava::after { animation: none; }
    .eff__react, .eff__dead { transform: scale(1); }
    .eff__out { opacity: 1; transform: none; }
    .eff__row--good .eff__ava::after { opacity: 0; }
    .eff__ava--bot { opacity: .52; filter: grayscale(1); }
    .lfeat { opacity: 1; transform: none; transition: none; }
    .flow__step, .flow__step .flow__ico, .flow__link::before { animation: none; }
}
