/* ==========================================================================
   Neden İSGDenetim PRO — bento kartları: 3B görseller + animasyonlar
   Animasyonlar main.js'in kartı görünür yapınca eklediği .why-go sınıfıyla başlar.
   Renk, kart yüzeyi, hover ve 3B eğim mevcut sistemden (style/motion/system.css) gelir.
   ========================================================================== */

.bento { grid-template-columns: repeat(12, 1fr); }
.why-card, .why-strip { grid-column: span var(--s, 6); min-height: 0; padding: 28px; justify-content: flex-start; gap: 0; }
.why-card .card__body { position: relative; z-index: 2; min-width: 0; }
.why-card h3 { font-size: clamp(19px, 1.7vw, 23px); }
.why-card .card__tag { margin-bottom: 10px; }

/* Görsel kutusu (varsayılan: akışta). Köşeye oturanlar aşağıda mutlak konumlanır. */
.why-art { position: relative; z-index: 1; pointer-events: none; }
.why-art img { display: block; width: 100%; height: auto; opacity: 0; transform: translateX(var(--fx, 70px)); }

.why-art--cut img { filter: drop-shadow(0 12px 14px rgba(3, 38, 67, 0.2)); }

/* ---------- Ortak giriş: sağdan kayarak gelir, sonra hafifçe süzülür ---------- */
.why-go .why-art img {
  animation: whyIn 0.95s var(--ease) var(--d, 0.2s) forwards;
}
@keyframes whyIn { from { opacity: 0; transform: translateX(var(--fx, 70px)); } to { opacity: 1; transform: none; } }

/* ---------- Yan yana düzenler: e-Reçete, Tek veri, Yapay zekâ, Raporlama ---------- */
.why-card--ereceta, .why-card--data, .why-card--ai, .why-card--report { display: grid; align-items: center; column-gap: 12px; }
.why-card--ereceta { grid-template-columns: 46% 1fr; padding: 0 28px 0 0; }
.why-card--ereceta .why-art { align-self: end; }
.why-card--ereceta .card__body { padding: 28px 0; }
.why-card--ereceta .card__body, .why-card--data .card__body, .why-card--ai .card__body, .why-card--report .card__body { margin: 0; }
.why-art--left { max-width: 420px; }
.why-art--left img { --fx: -50px; }
.why-card--data { grid-template-columns: 1fr 40%; }
.why-card--ai { grid-template-columns: 1fr 44%; }
.why-card--ai .card__body h3 { font-size: clamp(19px, 1.65vw, 22px); }
.why-card--report { grid-template-columns: 40% 1fr; }
.why-card--report .card__body .why-card__head { margin-bottom: 4px; }
.why-art--layers { max-width: 300px; justify-self: end; }
.why-art--layers img { --fx: 90px; }
.why-art--ai, .why-art--report { align-self: center; max-width: 340px; }
.why-art--ai img { --fx: 90px; --d: 0.35s; }
.why-art--report img { --fx: 80px; }

/* AI çipi: yanıp sönen mor halka */
.why-ai-pulse { position: absolute; left: 6%; top: 44%; width: 31%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #8b5cf6; opacity: 0; }
.why-go .why-ai-pulse { animation: whyRing 2.2s 1.5s ease-out 3; }

/* ---------- Üstte ikon + görsel, altta metin: QR, Acil durum, Envanter, Ziyaret ---------- */
.why-card--qr, .why-card--siren, .why-card--stack { padding-top: 124px; }
.why-card > .card__icon { position: absolute; top: 26px; left: 26px; z-index: 2; }
.why-card .card__body { margin-top: auto; }
.why-card--qr .card__body h3, .why-card--siren .card__body h3 { font-size: clamp(18px, 1.55vw, 21px); }

.why-card > .why-art--fork, .why-card > .why-art--siren, .why-card > .why-art--trio, .why-card > .why-art--cal { position: absolute; z-index: 1; }
.why-card > .why-art--fork { top: 16px; right: 18px; width: 58%; }
.why-card > .why-art--siren { top: 4px; right: 8px; width: 54%; }
.why-card > .why-art--trio { top: 16px; left: 96px; display: flex; align-items: flex-end; gap: 10px; }
.why-art--trio img { width: auto; height: 82px; --fx: 110px; }
.why-art--trio img:nth-child(1) { --d: 0.25s; } .why-art--trio img:nth-child(2) { --d: 0.45s; } .why-art--trio img:nth-child(3) { --d: 0.65s; }
.why-card > .why-art--cal { top: 8px; left: 100px; width: 118px; }
.why-art--cal img { --fx: 110px; }

/* Forklift: sağdan gelir (yürürken hafif titrer), durur ve orada kalır — tekrar etmez */
.why-fork-run { position: relative; opacity: 0; transform: translateX(240%); }
.why-fork-run img { opacity: 1 !important; transform: none; }
.why-go .why-art--fork .why-fork-run { animation: whyArrive 2.4s 0.3s cubic-bezier(0.25, 0.7, 0.3, 1) forwards; }
.why-go .why-art--fork .why-fork-run img { animation: whyRumble 0.26s 0.3s ease-in-out 8; }
@keyframes whyArrive { 0% { opacity: 0; transform: translateX(240%); } 8% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes whyRumble { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1.5px) rotate(-0.3deg); } }
/* gelirken arkasında toz; varınca diner */
.why-dust { position: absolute; right: -4%; bottom: 4%; width: 30%; height: 15%; border-radius: 50%; background: rgba(150, 162, 180, 0.5); filter: blur(7px); opacity: 0; }
.why-go .why-dust { animation: whyDust 2.4s 0.3s ease-out forwards; }
@keyframes whyDust { 0% { opacity: 0; } 12%, 60% { opacity: 0.8; } 100% { opacity: 0; } }

/* Siren: sağdan gelir, sonra yanıp söner */
.why-art--siren img { --fx: 120px; --d: 0.3s; }
.why-go .why-art--siren img { animation: whyIn 0.95s var(--ease) 0.3s forwards, whyBlink 1.1s 1.3s ease-in-out infinite; }
.why-siren__glow, .why-siren__beam, .why-siren__ring { position: absolute; left: 50%; top: 50%; opacity: 0; z-index: -1; }
.why-siren__glow { width: 95%; aspect-ratio: 1; margin: -47.5% 0 0 -47.5%; border-radius: 50%; background: rgba(255, 40, 40, 0.42); filter: blur(15px); }
.why-siren__beam { width: 118%; height: 12%; margin: -6% 0 0 -59%; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(255, 70, 70, 0.7), transparent); }
.why-siren__ring { width: 90%; aspect-ratio: 1; margin: -45% 0 0 -45%; border-radius: 50%; border: 2px solid #ff4d4d; }
.why-go .why-siren__glow { animation: whyGlow 1.1s 1.3s ease-in-out infinite; }
.why-go .why-siren__beam { animation: whyBeam 1.5s 1.3s linear infinite; }
.why-go .why-siren__ring { animation: whyRing 1.1s 1.3s ease-out infinite; }
@keyframes whyGlow { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes whyBeam { from { opacity: 0.9; transform: rotate(0); } to { opacity: 0.9; transform: rotate(360deg); } }
@keyframes whyRing { 0% { opacity: 0.9; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes whyBlink { 0%, 100% { opacity: 1; filter: brightness(0.92) saturate(0.95); } 50% { opacity: 1; filter: brightness(1.25) saturate(1.3) drop-shadow(0 0 10px rgba(255, 60, 60, 0.9)); } }


/* ---------- Madde işaretli listeler (sarı tik sırayla belirir) ---------- */
.why-list { display: grid; gap: 7px; margin-top: 14px; }
.why-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.35; color: var(--text);
  opacity: 0; transform: translateX(22px); }
.why-list svg { width: 19px; height: 19px; flex: none; margin-top: 1px; fill: none; stroke: #f0aa00; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; }
.why-go .why-list li { animation: whySlideIn 0.6s var(--ease) calc(0.45s + var(--k) * 0.12s) forwards; }
.why-go .why-list svg { animation: whyDraw 0.5s ease-out calc(0.7s + var(--k) * 0.12s) forwards; }
@keyframes whySlideIn { to { opacity: 1; transform: none; } }
@keyframes whyDraw { to { stroke-dashoffset: 0; } }

/* ---------- Süre ve hatırlatma ---------- */
.why-card__head { display: flex; align-items: center; gap: 14px; }
.why-card__head .card__icon { position: static !important; flex: none; }
.why-card__head h3 { margin: 0; }
.why-card--alerts { justify-content: flex-start; }
.why-rows { display: grid; gap: 10px; margin-top: 18px; }
.why-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 18px -14px rgba(3, 38, 67, 0.4); font-size: 14.5px; font-weight: 600;
  opacity: 0; transform: translateX(60px); }
.why-row__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-navy); }
.why-row__ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-row b { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.why-row b.r { color: #d40a0a; background: #ffe1e4; }
.why-row b.y { color: #7a5b00; background: #ffeb99; }
.why-go .why-row { animation: whySlideIn 0.7s var(--ease) calc(0.25s + var(--k) * 0.2s) forwards; }
.why-go .why-row b.r { animation: whyShake 2.8s 1.6s ease-in-out 3; }
@keyframes whyShake { 0%, 88%, 100% { transform: none; } 91% { transform: translateX(-3px); } 94% { transform: translateX(3px); } 97% { transform: translateX(-2px); } }

/* ---------- Alt şerit: kendi logomuz + özet maddeler + CTA ---------- */
.why-strip { min-height: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(18px, 3vw, 36px); padding: 22px 28px; }
.why-strip__brand { display: flex; align-items: center; gap: 14px; }
.why-strip__brand .brand__emblem { height: 64px; }
.why-strip__brand p { margin: 0; display: grid; line-height: 1.05; color: var(--text); font-size: 15px; }
.why-strip__brand p > span:first-child { font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -0.035em; }
.why-strip__brand .brand__name { font-size: clamp(24px, 2.4vw, 31px); }
.why-strip__pts { display: grid; grid-template-columns: repeat(3, 1fr); min-width: 0; }
.why-strip__pts li { padding: 4px 20px; border-left: 1px solid var(--line-2); display: grid; justify-items: start; gap: 4px; opacity: 0; transform: translateY(14px); }
.why-go .why-strip__pts li { animation: whySlideIn 0.7s var(--ease) calc(0.3s + var(--k) * 0.16s) forwards; }
.why-strip__ico { width: 30px; height: 30px; color: var(--brand-red); }
.why-strip__ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-strip__pts b { font-size: 15px; letter-spacing: -0.02em; }
.why-strip__pts p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.why-strip__cta { display: grid; gap: 10px; justify-items: stretch; }
.why-pill { justify-self: stretch; text-align: center; padding: 7px 16px; border-radius: 999px; background: var(--brand-red); color: #fff; font-size: 13.5px; font-weight: 700; }
.why-strip__cta .btn { --h: 52px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
.why-strip__cta .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.why-go .why-pill { animation: whyPulse 2.4s 1.2s ease-in-out 3; }
@keyframes whyPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(233, 1, 1, 0); } 50% { box-shadow: 0 0 0 6px rgba(233, 1, 1, 0.18); } }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .why-card, .why-strip { grid-column: span 6; }
  .why-card--qr, .why-card--siren { grid-column: span 3; padding-top: 148px; }
  .why-card > .why-art--fork { width: min(62%, 210px); }
  .why-card > .why-art--siren { width: min(48%, 170px); }
  .why-card--qr, .why-card--siren { padding-top: 132px; }
  .why-strip { grid-template-columns: 1fr; justify-items: start; }
  .why-strip__pts { width: 100%; }
  .why-strip__pts li:first-child { border-left: 0; padding-left: 0; }
  .why-strip__cta { grid-auto-flow: column; align-items: center; justify-content: start; }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; }
  .why-card, .why-strip, .why-card--qr, .why-card--siren { grid-column: auto; }
  .why-card--ereceta, .why-card--data, .why-card--ai, .why-card--report { grid-template-columns: 1fr; row-gap: 14px; }
  .why-card--ereceta { padding: 0 24px 24px; }
  .why-card--ereceta .card__body { padding: 0; }
  .why-card--data .why-art, .why-card--ai .why-art, .why-card--report .why-art { order: 2; width: min(300px, 80%); justify-self: center; }
  .why-card--report .why-art { order: 0; }
  .why-card--qr, .why-card--siren, .why-card--stack { padding-top: 136px; }
  .why-card > .why-art--fork { width: min(52%, 170px); }
  .why-card > .why-art--siren { width: 44%; }
  .why-card > .why-art--trio { left: 88px; gap: 8px; }
  .why-art--trio img { height: 60px; }
  .why-card > .why-art--cal { left: 90px; width: 96px; }
  .why-strip { padding: 22px; }
  .why-strip__pts { grid-template-columns: 1fr; gap: 14px; }
  .why-strip__pts li { border-left: 0; padding: 0; }
  .why-strip__cta { grid-auto-flow: row; width: 100%; }
  .why-strip__cta .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

/* ---------- JS yoksa / hareketi azaltanlar: son hâl sabit görünür ---------- */
.no-js .why-art img, .no-js .why-list li, .no-js .why-row, .no-js .why-strip__pts li { opacity: 1; transform: none; }
.no-js .why-list svg { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .why-fork-run { opacity: 1 !important; transform: none !important; animation: none !important; }
  .why-art img, .why-list li, .why-row, .why-strip__pts li { opacity: 1 !important; transform: none !important; animation: none !important; }
  .why-list svg { stroke-dashoffset: 0 !important; animation: none !important; }
  .why-ai-pulse, .why-dust, .why-siren__beam, .why-siren__ring { display: none; }
  .why-siren__glow, .why-pill, .why-strip__brand .brand__emblem, .why-row b { animation: none !important; }
  .why-siren__glow { opacity: 0.5; }
}

/* ---------- Yeni görseller: e-Reçete fotoğrafı + beyaz zeminli 3B görseller ---------- */
/* beyaz zemin, kartın beyaz yüzeyine / hover parlamasına multiply ile karışır (kutu görünmez) */
.why-art--mul { mix-blend-mode: multiply; }
.why-art--mul img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent); mask-composite: intersect; }
.why-card--ai { grid-template-columns: 1fr 46%; }
.why-card--report { grid-template-columns: 44% 1fr; }

/* e-Reçete: fotoğraf kartın soluna tam boy oturur, sağa doğru kartın içine erir */
.why-card--ereceta { grid-template-columns: 50% 1fr; align-items: stretch; }
.why-card--ereceta .why-art--photo { align-self: stretch; max-width: none; position: relative; overflow: hidden; min-height: 190px; }
.why-art--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 36% 30%; --fx: 0px;
  -webkit-mask-image: linear-gradient(90deg, #000 74%, transparent); mask-image: linear-gradient(90deg, #000 74%, transparent); }
.why-go .why-art--photo img { animation: whyPhoto 1.1s var(--ease) 0.1s forwards; }
@keyframes whyPhoto { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
.why-card--ereceta .card__body { align-self: center; padding: 26px 0; }
@media (max-width: 1100px) { .why-card--ereceta { grid-template-columns: 46% 1fr; } }
@media (max-width: 700px) {
  .why-card--ai, .why-card--report { grid-template-columns: 1fr; }
  .why-card--ai .why-art, .why-card--report .why-art { width: min(360px, 94%); max-width: none; }
  .why-card--ereceta { grid-template-columns: 1fr; padding: 0 24px 24px; row-gap: 14px; }
  .why-card--ereceta .why-art--photo { margin: 0 -24px; min-height: 0; aspect-ratio: 16 / 9; }
  .why-art--photo img { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
  .why-card--ereceta .card__body { align-self: auto; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .why-art--photo img { opacity: 1 !important; transform: none !important; animation: none !important; } }
.no-js .why-art--photo img { opacity: 1; transform: none; }
