/* ─────────────────────────────────────────────────────────
   Yuka CRM Landing — Mobile Optimization
   ───────────────────────────────────────────────────────── */

/* Yatay scroll'u engelle (mobilde dekorlar dışarı taşmasın) */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Görseller asla container'dan taşmasın */
img, svg, video { max-width: 100%; height: auto; }

/* ─── Tablet ve altı ─── */
@media (max-width: 980px) {
  :root {
    --pad-x: 20px;
    --section-gap: 80px;
  }
  .section { padding: 64px 0; }

  /* Hero */
  .hero { padding: 40px 0 24px; }
  .hero-copy h1 { margin-top: 16px; }
  .hero-copy .lead { font-size: 18px; margin-top: 18px; }
  .hero-cta { margin-top: 28px; }

  /* Hero preview: küçült + ekranda kalsın */
  .hero-preview { transform: scale(0.85); transform-origin: top left; margin-bottom: -60px; }

  /* Section heading küçült */
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 16px; margin-top: 14px; }

  /* Demo row gap düşür */
  .demo-row, .demo-row.reverse { gap: 32px; margin-bottom: 80px; }

  /* Footer 4 sütun → 2 sütun */
  footer .container > div[style*="grid-template-columns"],
  footer .container > div[style*="gridTemplateColumns"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

/* ─── Telefon (<=720px) ─── */
@media (max-width: 720px) {
  :root {
    --pad-x: 16px;
  }
  .section { padding: 48px 0; }

  /* Tipografi düşür */
  .h-display { font-size: clamp(34px, 9vw, 48px) !important; }
  .h-section { font-size: clamp(26px, 7vw, 36px) !important; }

  /* Site header sadeleştir */
  .nav { display: none; }
  .site-header-inner { height: 56px; gap: 8px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 26px; height: 26px; font-size: 13px; }

  /* Header sağdaki buton seti — Giriş'i gizle, sadece kayıt kalsın */
  .site-header-inner > div[style*="display: flex"] > .btn-ghost { display: none; }
  .site-header-inner > div[style*="display: flex"] > .btn { height: 36px; padding: 0 14px; font-size: 13px; }

  /* Hero */
  .hero { padding: 24px 0 16px; }
  .hero-preview {
    transform: none !important;
    transform-origin: top center;
    margin-bottom: 0;
    aspect-ratio: auto !important;
    min-height: 360px;
  }
  .hero-preview:hover { transform: none !important; }
  .hero-preview .titlebar { height: 30px; padding: 0 10px; gap: 8px; }
  .hero-preview .traffic span { width: 8px; height: 8px; }
  .hero-preview .url { font-size: 9px; height: 18px; }
  .hero-preview-body { grid-template-columns: 1fr !important; }
  .hero-sidebar { display: none !important; }
  .hero-main { padding: 12px !important; gap: 10px !important; }
  .hero-main h4 { font-size: 15px !important; }
  .kanban-mini { gap: 6px !important; }
  .kanban-card { padding: 8px !important; font-size: 11px !important; }

  /* Demo frame mobil */
  .demo-frame { min-height: 320px !important; aspect-ratio: auto !important; }

  /* Hero floating decorations — küçült veya gizle */
  .hero-copy + div > div[style*="position: absolute"] {
    transform: scale(0.85) rotate(0deg) !important;
  }

  /* Hero meta: dikey */
  .hero-meta { flex-wrap: wrap; gap: 10px; }

  /* Buttons */
  .btn { height: 44px; padding: 0 18px; font-size: 14px; }

  /* ─── INLINE GRID OVERRIDE'LARI ─── */

  /* Metrikler: 4 sütun → 2 sütun */
  section[style*="background"] div[style*="repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  /* Metrik değer fontu küçült */
  section[style*="background"] div[style*="repeat(4, 1fr)"] > div > div:first-child {
    font-size: 32px !important;
  }

  /* Fiyatlandırma: 3 sütun → 1 sütun (alt alta) */
  #fiyat div[style*="1fr 1fr 1.15fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Kredi açıklaması kutusu: yan yana → alt alta */
  #fiyat div[style*="border"][style*="padding: 28px 32px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
    padding: 22px !important;
  }
  #fiyat div[style*="border"][style*="padding: 28px 32px"] > div:last-child {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  /* Testimonial: 3 sütun → 1 sütun */
  #yorumlar div[style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Footer: 4 sütun → 2 sütun */
  footer div[style*="1.5fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
  }
  footer div[style*="1.5fr 1fr 1fr 1fr"] > div:first-child {
    grid-column: 1 / -1 !important;
  }

  /* Footer alt çubuğu */
  footer div[style*="space-between"][style*="64px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  /* Final CTA padding düşür */
  section .container > div[style*="80px 56px"] {
    padding: 48px 24px !important;
  }

  /* Price card padding */
  .price-card { padding: 24px !important; }
  .price-amount .num { font-size: 40px !important; }

  /* Demo görselleri overflow olmasın */
  .demo-canvas, .demo-text { min-width: 0; }
}

/* ─── Çok küçük (<=380px) ─── */
@media (max-width: 380px) {
  :root { --pad-x: 12px; }
  .h-display { font-size: 30px !important; }
  .hero-preview { transform: scale(0.65); }

  /* Final CTA başlık */
  section .container > div[style*="80px 56px"] h2 {
    font-size: 32px !important;
  }
}
