/* ============================================================
   ESTE Bilişim × Apple Human Interface Guidelines — iOS tasarım katmanı
   ============================================================
   Bu dosya her sayfada EN SON yüklenir (sayfa içi <style> bloklarından
   da sonra), böylece ortak bileşenleri tek yerden iOS diline çevirir.

   İlkeler (HIG): netlik (clarity), içeriğe saygı (deference), derinlik
   (depth). ESTE marka renkleri (este / plum / coral) korunur; nötr
   griler, malzemeler (material), tipografi ve hareket iOS'tan gelir.

   Tailwind tarafı: tailwind.config.js → ink = Apple sistem grileri,
   font = SF Pro (Apple) / Inter (diğer), ağırlık + yarıçap + gölge.
   ============================================================ */

/* ---------- 1. Tasarım değişkenleri (semantic colors) ---------- */
:root {
  --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, "Segoe UI", system-ui, sans-serif;
  --ios-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ios-spring: cubic-bezier(0.34, 1.36, 0.64, 1);

  --ios-tint: rgb(var(--c-este-600, 37 99 235));              /* este-600 — marka mavisi = iOS tint */
  --ios-tint-hover: rgb(var(--c-este-700, 29 78 216));
  --ios-tint-soft: rgb(var(--c-este-600, 37 99 235) / 0.12);

  --ios-bg: #ffffff;                /* systemBackground */
  --ios-bg-grouped: #f5f5f7;        /* systemGroupedBackground */
  --ios-card: #ffffff;              /* secondarySystemGroupedBackground */
  --ios-card-raised: #ffffff;
  --ios-label: #1d1d1f;
  --ios-label-2: #6e6e73;           /* secondaryLabel */
  --ios-label-3: #8e8e93;           /* tertiaryLabel */
  --ios-separator: rgba(60, 60, 67, 0.16);
  --ios-separator-strong: rgba(60, 60, 67, 0.29);
  --ios-fill: rgba(120, 120, 128, 0.12);       /* tertiarySystemFill */
  --ios-fill-strong: rgba(120, 120, 128, 0.2);
  --ios-material: rgba(255, 255, 255, 0.72);   /* .regularMaterial */
  --ios-material-thick: rgba(250, 250, 252, 0.88);
  --ios-shadow-card: 0 1px 1px rgba(0, 0, 0, 0.02), 0 4px 18px -4px rgba(0, 0, 0, 0.07);
  --ios-shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.03), 0 18px 40px -12px rgba(0, 0, 0, 0.14);
  --ios-shadow-pop: 0 12px 40px -8px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.05);

  --ios-radius-card: 22px;
  --ios-radius-control: 12px;
  --ios-hit: 44px;                  /* HIG asgari dokunma hedefi */
}
.dark {
  --ios-tint: rgb(var(--c-este-500, 59 130 246));              /* koyu modda bir ton açık tint (HIG) */
  --ios-tint-hover: rgb(var(--c-este-400, 96 165 250));
  --ios-tint-soft: rgb(var(--c-este-500, 59 130 246) / 0.18);

  --ios-bg: #000000;
  --ios-bg-grouped: #000000;
  --ios-card: #1c1c1e;
  --ios-card-raised: #2c2c2e;
  --ios-label: #f5f5f7;
  --ios-label-2: #a1a1a6;
  --ios-label-3: #6e6e73;
  --ios-separator: rgba(84, 84, 88, 0.55);
  --ios-separator-strong: rgba(84, 84, 88, 0.8);
  --ios-fill: rgba(118, 118, 128, 0.24);
  --ios-fill-strong: rgba(118, 118, 128, 0.36);
  --ios-material: rgba(22, 22, 23, 0.72);
  --ios-material-thick: rgba(30, 30, 32, 0.9);
  --ios-shadow-card: 0 0 0 0.5px rgba(255, 255, 255, 0.06);
  --ios-shadow-card-hover: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  --ios-shadow-pop: 0 16px 48px -8px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

/* ---------- 2. Temel tipografi ve davranış ---------- */
html {
  font-family: var(--ios-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body { font-family: var(--ios-font); letter-spacing: -0.003em; }
h1, h2, h3 { letter-spacing: -0.022em; }
h1 { text-wrap: balance; }
h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--ios-tint-soft); }

/* Klavye odağı: iOS tint halkası (fare tıklamasında görünmez) */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ios-tint) 55%, transparent);
  outline-offset: 2px;
}

/* Kaydırma çubuğu: ince, nötr (macOS overlay scrollbar hissi) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 128, 0.4);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(120, 120, 128, 0.6); }
html { scrollbar-color: rgba(120, 120, 128, 0.45) transparent; scrollbar-width: thin; }

/* Büyük harfli "eyebrow" etiketleri: iOS bölüm başlığı (footnote) ölçüsü */
.uppercase.tracking-wider, .uppercase.tracking-widest { font-weight: 600; }

/* ---------- 3. Üst şerit (topbar) ---------- */
.este-topbar { font-size: 12px; letter-spacing: -0.005em; }
.este-topbar > div { height: 36px; }

/* ---------- 4. Navigasyon çubuğu — yarı saydam malzeme ---------- */
#mainNav {
  background: var(--ios-material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--ios-separator);
}
#mainNav > nav { padding-top: 10px; padding-bottom: 10px; }

/* Masaüstü menü: Apple tarzı sade metin, kapsül hover */
#mainNav > nav > ul > li > :is(a, button) {
  border-radius: 980px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ios-label);
  transition: background-color 0.2s var(--ios-ease), color 0.2s var(--ios-ease);
}
#mainNav > nav > ul > li > :is(a, button) > svg:first-child { display: none; }  /* öndeki ikonlar */
#mainNav > nav > ul > li > :is(a, button) > svg:last-child { width: 12px; height: 12px; opacity: 0.6; }
#mainNav > nav > ul > li > :is(a, button):hover { background: var(--ios-fill); }
#mainNav > nav > ul > li > :is(a, button)[class*="bg-este-50"] {
  background: var(--ios-tint-soft);
  color: var(--ios-tint);
}

/* Açılır menüler — iOS bağlam menüsü / popover */
.menu-panel,
.dark .menu-panel {
  background: var(--ios-material-thick);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  border: 0.5px solid var(--ios-separator);
  border-radius: 16px;
  box-shadow: var(--ios-shadow-pop);
}
.menu-panel a { border-radius: 10px; }
.menu-panel a:hover { background: var(--ios-fill); }
.nav-dropdown {
  transform: translateY(6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.18s var(--ios-ease), transform 0.32s var(--ios-spring), visibility 0.18s;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { transform: translateY(0) scale(1); }

/* Navigasyon çubuğu düğmeleri (tema, hamburger): dairesel dolgu */
#themeToggleNav, #themeToggleMobile {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--ios-fill);
  color: var(--ios-label);
}
#themeToggleNav:hover, #themeToggleMobile:hover { background: var(--ios-fill-strong); }
.burger {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-direction: column; align-items: center; justify-content: center;
  background: var(--ios-fill);
  color: var(--ios-label);
}
/* display yalnız mobilde — masaüstünde Tailwind'in lg:hidden kuralı geçerli kalmalı */
@media (max-width: 1023.98px) { .burger { display: inline-flex; } }
.burger span { width: 16px; height: 1.75px; margin: 2px 0; border-radius: 2px; transition: transform 0.35s var(--ios-spring), opacity 0.2s; }
.burger.open span:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.burger.open span:nth-child(3) { transform: translateY(-5.75px) rotate(-45deg); }

/* ---------- 5. Mobil menü — iOS "Ayarlar" listesi (inset grouped) ---------- */
#mobileMenu {
  background: var(--ios-bg-grouped);
  border-top: 0.5px solid var(--ios-separator);
  max-height: calc(100dvh - 60px);
  overscroll-behavior: contain;
}
#mobileMenu:not(.hidden) { animation: iosSheetIn 0.38s var(--ios-ease) both; }
@keyframes iosSheetIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ios-list {
  background: var(--ios-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ios-shadow-card);
}
.ios-list + .ios-list-header, .ios-list-header { margin: 22px 16px 7px; font-size: 13px; color: var(--ios-label-2); text-transform: uppercase; letter-spacing: 0.02em; }
.ios-row {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--ios-hit);
  padding: 6px 14px;
  font-size: 17px; letter-spacing: -0.02em;
  color: var(--ios-label);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.15s;
}
.ios-row::-webkit-details-marker { display: none; }
.ios-row:active { background: var(--ios-fill); }
/* Satır ayırıcı: ikonun sağından başlar (iOS inset separator) */
.ios-list > :not(:last-child) > .ios-row::after,
.ios-list > a.ios-row:not(:last-child)::after,
.ios-list > :not(:last-child) .ios-sublist > .ios-row::after,
.ios-sublist > .ios-row:not(:last-child)::after {
  content: ""; position: absolute; left: 56px; right: 0; bottom: 0;
  height: 0.5px; background: var(--ios-separator);
}
.ios-row-label { flex: 1; min-width: 0; }
.ios-row.is-active .ios-row-label { color: var(--ios-tint); font-weight: 600; }
.ios-chev { width: 14px; height: 14px; color: var(--ios-label-3); flex-shrink: 0; transition: transform 0.3s var(--ios-spring); }
details[open] > .ios-row .ios-chev { transform: rotate(90deg); }
/* Ayarlar uygulaması ikon karosu */
.ios-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.ios-icon svg { width: 18px; height: 18px; stroke-width: 2.1; }
.ios-icon.t-este  { background: linear-gradient(180deg, rgb(var(--c-este-500, 59 130 246)), rgb(var(--c-este-600, 37 99 235))); }
.ios-icon.t-plum  { background: linear-gradient(180deg, rgb(var(--c-plum-500, 168 85 247)), rgb(var(--c-plum-600, 147 51 234))); }
.ios-icon.t-coral { background: linear-gradient(180deg, rgb(var(--c-coral-400, 251 113 133)), rgb(var(--c-coral-500, 244 63 94))); }
.ios-icon.t-gray  { background: linear-gradient(180deg, #8e8e93, #636366); }
.ios-icon.t-sky   { background: linear-gradient(180deg, rgb(var(--c-sky-400, 56 189 248)), rgb(var(--c-sky-600, 2 132 199))); }
.ios-sublist .ios-row { padding-left: 56px; font-size: 16px; color: var(--ios-label); }

/* iOS segmented control (dil seçimi) */
.ios-segmented {
  display: flex; gap: 2px; padding: 2px;
  background: var(--ios-fill);
  border-radius: 9px;
}
.ios-segmented > button {
  flex: 1; min-height: 32px;
  border-radius: 7px;
  font-size: 13px; font-weight: 600;
  color: var(--ios-label);
  background: transparent;
  transition: background-color 0.25s var(--ios-ease), box-shadow 0.25s var(--ios-ease);
}
.ios-segmented > button.is-on {
  background: var(--ios-card-raised);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
}
.dark .ios-segmented > button.is-on { background: #636366; }

/* ---------- 6. Butonlar — kapsül, basma geri bildirimi ---------- */
:is(a, button).inline-flex.rounded-xl:is(.py-3, .py-3\.5, .py-4):is(.px-5, .px-6, .px-7, .px-8) {
  border-radius: 980px;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-height: var(--ios-hit);
  transition: transform 0.25s var(--ios-spring), background-color 0.2s var(--ios-ease),
              box-shadow 0.25s var(--ios-ease), filter 0.2s var(--ios-ease), color 0.2s;
}
/* Kenarlıklı ikincil butonlar → iOS "gray" (tinted fill) buton */
:is(a, button).inline-flex.rounded-xl:is(.py-3, .py-3\.5, .py-4):is(.border, .border-2):is([class*="border-ink-"]) {
  border-color: transparent;
  background-color: var(--ios-fill);
  color: var(--ios-label);
}
:is(a, button).inline-flex.rounded-xl:is(.py-3, .py-3\.5, .py-4):is(.border, .border-2):is([class*="border-ink-"]):hover {
  background-color: var(--ios-fill-strong);
}
/* Basma: iOS'taki hafif küçülme */
:is(a, button):is(.rounded-xl, .rounded-lg, .rounded-full, .rounded-2xl)[class*="px-"]:active,
.cookie-btn:active, .sticky-cta-btn:active, .fab:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
/* Gradyan CTA: marka gradyanı korunur, gölge tinte uyar */
:is(a, button)[class*="bg-gradient-to-r"][class*="from-este-6"].rounded-xl {
  box-shadow: 0 8px 22px -8px rgb(var(--c-este-600, 37 99 235) / 0.55);
}
:is(a, button)[class*="bg-gradient-to-r"][class*="from-este-6"].rounded-xl:hover { filter: brightness(1.06); }

/* ---------- 7. Kartlar — gruplanmış yüzey ---------- */
:is(.este-card, .feature-card, .case-card, .blog-card, .news-card, .event-card, .story-card,
    .iso-card, .perk-card, .exp-card, .job-card) {
  border-radius: var(--ios-radius-card);
  border-color: var(--ios-separator) !important;
  border-width: 0.5px;
  box-shadow: var(--ios-shadow-card);
  transition: transform 0.45s var(--ios-ease), box-shadow 0.35s var(--ios-ease), background-color 0.3s;
}
.dark :is(.este-card, .feature-card, .case-card, .blog-card, .news-card, .event-card, .story-card,
    .iso-card, .perk-card, .exp-card, .job-card) {
  background-color: var(--ios-card);
  box-shadow: var(--ios-shadow-card);
}
:is(.este-card, .feature-card, .case-card, .blog-card, .news-card, .event-card, .story-card, .job-card):hover {
  transform: translateY(-2px);
  box-shadow: var(--ios-shadow-card-hover);
}
/* Kart içi ikon kutuları: iOS uygulama ikonu yarıçapı */
:is(.este-card, .feature-card, .case-card) :is(.w-12.h-12, .w-14.h-14).rounded-xl { border-radius: 13px; }
:is(.este-card, .feature-card, .case-card) .w-10.h-10.rounded-xl { border-radius: 10px; }

/* Rozet / chip'ler: kapsül */
.rounded-full.text-xs.uppercase, .rounded-full.text-\[10px\], .rounded-full.text-\[11px\] { letter-spacing: 0.02em; }

/* Müşteri logoları */
.logo-chip { border-radius: 16px; border: 0.5px solid var(--ios-separator); box-shadow: var(--ios-shadow-card); }
.dark .logo-chip { border-color: transparent; }
.logo-chip:hover { border-color: var(--ios-separator); box-shadow: var(--ios-shadow-card-hover); }
.dark .logo-chip:hover { border-color: transparent; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.8); }

/* İskelet (yükleniyor) kartları */
.skel-card { border-radius: var(--ios-radius-card); border: 0.5px solid var(--ios-separator); }
.dark .skel-card { background: var(--ios-card); }

/* ---------- 8. Form alanları — iOS metin alanı ---------- */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="hidden"]),
       select, textarea):not(.ql-editor *) {
  border-radius: var(--ios-radius-control);
  font-size: max(16px, 1em);    /* iOS Safari'nin odakta yakınlaştırmasını önler */
  transition: border-color 0.2s var(--ios-ease), box-shadow 0.2s var(--ios-ease), background-color 0.2s;
}
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="hidden"]),
       select, textarea):focus {
  border-color: var(--ios-tint) !important;
  box-shadow: 0 0 0 4px var(--ios-tint-soft) !important;
  outline: none;
}
input[type="checkbox"], input[type="radio"], input[type="range"], progress { accent-color: var(--ios-tint); }

/* iOS anahtar (switch): <input type="checkbox" class="ios-switch"> */
input[type="checkbox"].ios-switch {
  appearance: none; -webkit-appearance: none;
  width: 51px; height: 31px; border-radius: 31px;
  background: var(--ios-fill-strong);
  position: relative; cursor: pointer; flex-shrink: 0;
  transition: background-color 0.25s var(--ios-ease);
}
input[type="checkbox"].ios-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 27px; height: 27px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--ios-spring);
}
input[type="checkbox"].ios-switch:checked { background: #34c759; }
input[type="checkbox"].ios-switch:checked::after { transform: translateX(20px); }

/* ---------- 9. Çerez bandı — iOS alt sayfa (sheet) ---------- */
.cookie-banner,
.dark .cookie-banner {
  background: var(--ios-material-thick);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  border: 0.5px solid var(--ios-separator);
  border-radius: 22px;
  box-shadow: var(--ios-shadow-pop);
  transition: transform 0.5s var(--ios-ease);
  bottom: max(16px, env(safe-area-inset-bottom));
}
.cookie-banner-text, .dark .cookie-banner-text { color: var(--ios-label-2); font-size: 13px; }
.cookie-banner-text strong, .dark .cookie-banner-text strong { color: var(--ios-label); font-weight: 600; }
.cookie-banner-text a { color: var(--ios-tint); text-decoration: none; }
.cookie-btn { border-radius: 980px; font-weight: 600; min-height: 40px; padding: 9px 18px; transition: transform 0.25s var(--ios-spring), background-color 0.2s; }
.cookie-btn.primary { background: var(--ios-tint); box-shadow: none; }
.cookie-btn.primary:hover { background: var(--ios-tint-hover); transform: none; box-shadow: none; }
.cookie-btn.ghost, .dark .cookie-btn.ghost { background: var(--ios-fill); border: 0; color: var(--ios-label); }
.cookie-btn.ghost:hover, .dark .cookie-btn.ghost:hover { background: var(--ios-fill-strong); color: var(--ios-label); }

/* ---------- 10. Yapışkan CTA çubuğu — malzeme + kapsül ---------- */
.sticky-cta { padding-bottom: max(12px, env(safe-area-inset-bottom)); transition: bottom 0.5s var(--ios-ease); }
.sticky-cta-btn { border-radius: 980px; font-weight: 600; }
.sticky-cta-close { border-radius: 50%; }

/* ---------- 11. FAB + sohbet paneli ---------- */
.fab-stack { bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px)); }
.chat-panel, .dark .chat-panel {
  border-radius: 24px;
  border: 0.5px solid var(--ios-separator);
  box-shadow: var(--ios-shadow-pop);
  transition: transform 0.42s var(--ios-spring), opacity 0.25s var(--ios-ease), bottom 0.4s var(--ios-ease);
}
.dark .chat-panel { background: var(--ios-card); }
.dark .chat-body, .dark .chat-quick-wrap { background: #000; }
.chat-msg { border-radius: 18px; }
.chat-msg.user { border-bottom-right-radius: 5px; }
.chat-msg.bot { border-bottom-left-radius: 5px; }
.dark .chat-msg.bot { background: var(--ios-card-raised); border-color: transparent; }
.chat-input { border-radius: 980px !important; }
.chat-send { border-radius: 50%; }
.chat-quick-btn, .chat-contact { border-radius: 980px; }
.dark :is(.chat-input-row, .chat-footer) { background: var(--ios-card); border-color: var(--ios-separator); }
.dark :is(.chat-quick-btn, .chat-contact, .chat-input) { background: var(--ios-card-raised); border-color: transparent; }

/* Geri arama penceresi — iOS alert/sheet */
.callback-modal, .dark .callback-modal { border-radius: 22px; box-shadow: var(--ios-shadow-pop); }
.dark .callback-modal { background: var(--ios-card); }
.callback-btn-primary, .callback-btn-cancel { border-radius: 980px; }

/* ---------- 12. Footer — Apple tarzı sakin, gruplanmış zemin ---------- */
.site-footer { background-color: var(--ios-bg-grouped); color: var(--ios-label-2); }
.dark .site-footer { background-color: #0a0a0b; color: var(--ios-label-2); }
.site-footer > .absolute.h-px { display: none; }        /* gradyan çizgi yerine ince ayırıcı */
.site-footer { border-top: 0.5px solid var(--ios-separator) !important; }
.site-footer h4 { letter-spacing: 0.02em; font-weight: 600; font-size: 12px; color: var(--ios-label); }
.site-footer ul a { color: var(--ios-label-2); }
.site-footer ul a:hover { color: var(--ios-label); }
.ios-social { border-radius: 11px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0.5px 0 rgba(255, 255, 255, 0.25); }

/* ---------- 13. Bölüm zeminleri ---------- */
/* Hero'lardaki ızgara deseni iOS'un sade zeminine göre yumuşatılır.
   (opacity DEĞİL — .grid-bg içerik taşıyan bölümlerde de kullanılıyor) */
.grid-bg {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
}
.dark .grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}
/* Koyu modda düz siyah taban (OLED, HIG) */
.dark body { background-color: #000; }

/* ---------- 14. Hareket — iOS eğrileri ---------- */
.reveal {
  transform: translateY(16px);
  transition: opacity 0.7s var(--ios-ease), transform 0.8s var(--ios-ease);
}
.reveal.visible { transform: none; }
::view-transition-old(root) { animation: vt-fade-out 200ms var(--ios-ease) both; }
::view-transition-new(root) { animation: vt-fade-in 300ms var(--ios-ease) both; }

/* Daktilo rozeti (site.css: nowrap) dar ekranda tek satıra sığmıyor ve hero sütununu
   ekrandan geniş tutuyordu (390px'te başlık/paragraf sağdan kesiliyordu) → kaydırmaya izin ver */
@media (max-width: 639.98px) {
  [data-typewriter] { white-space: normal; }
}

/* ---------- 14b. Renk paleti önizleme kapsülü (?palette=apple|este) ---------- */
.palette-preview-chip {
  position: fixed; z-index: 70;
  left: max(16px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 104px);
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: var(--ios-material-thick);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--ios-shadow-pop);
  font-size: 13px; color: var(--ios-label);
}
.palette-preview-chip .ppc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ios-tint); flex: none; }
.palette-preview-chip .ppc-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-preview-chip button {
  flex: none; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 13px;
  background: var(--ios-fill); color: var(--ios-tint);
}
.palette-preview-chip button:hover { background: var(--ios-fill-strong); }
.palette-preview-chip button[data-ppc="close"] { color: var(--ios-label-2); }
/* Mobilde alt köşe sohbet balonu ve yapışkan CTA ile çakışır → üst menünün altına, ortaya */
@media (max-width: 640px) {
  .palette-preview-chip { top: calc(68px + env(safe-area-inset-top)); bottom: auto; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); }
}
@media (max-width: 480px) { .palette-preview-chip .ppc-text { display: none; } }

/* ---------- 15. Erişilebilirlik tercihleri ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  #mobileMenu:not(.hidden) { animation: none; }
  .reveal { transform: none; }
}
/* "Saydamlığı Azalt" açıkken malzemeler opak olur (iOS davranışı) */
@media (prefers-reduced-transparency: reduce) {
  #mainNav, .menu-panel, .cookie-banner, .palette-preview-chip { -webkit-backdrop-filter: none; backdrop-filter: none; }
  #mainNav { background: var(--ios-bg); }
  .menu-panel, .cookie-banner, .palette-preview-chip { background: var(--ios-card); }
}
/* "Kontrastı Artır" */
@media (prefers-contrast: more) {
  :root { --ios-separator: rgba(60, 60, 67, 0.45); --ios-label-2: #3a3a3c; }
  .dark { --ios-separator: rgba(160, 160, 168, 0.6); --ios-label-2: #d1d1d6; }
}

/* ---------------------------------------------------------------
   14c. Konuya göre yumuşak kapak renkleri
   Görseli olmayan ya da görseli kaybolan içerik kartları tek tip degrade yerine konusuna göre
   yumuşak bir renk alır (site.js esteTopicTone → .tone-*). Renkler palet değişkenlerine bağlı:
   Apple paleti seçilince Apple karşılıklarına geçer.
   --------------------------------------------------------------- */
.tone-surface { background: rgb(var(--tone-bg)); color: rgb(var(--tone-fg)); }
.dark .tone-surface { background: linear-gradient(rgb(var(--tone-bg) / .45), rgb(var(--tone-bg) / .45)), #1c1c1e; }
/* Etkinlik tarih bloğu: yumuşak zeminde beyaz kart + konu rengi yazı */
.tone-surface .date-block { background: rgb(255 255 255 / .82); color: rgb(var(--tone-fg)); box-shadow: 0 8px 20px -8px rgb(var(--tone-fg) / .35); }
.dark .tone-surface .date-block { background: rgb(255 255 255 / .08); box-shadow: none; }
/* Kapak üstündeki yarı saydam beyaz etiketler yumuşak zeminde okunmuyor → opak zemin */
:is(a, div):has(> .tone-surface, > [data-img-fallback]:not([hidden])) > .media-label { background: rgb(255 255 255 / .9); color: #1c1c1e; }
.dark :is(a, div):has(> .tone-surface, > [data-img-fallback]:not([hidden])) > .media-label { background: rgb(28 28 30 / .85); color: #fff; }
.tone-blue { --tone-bg: var(--c-este-100, 219 234 254); --tone-fg: var(--c-este-700, 29 78 216); }
.dark .tone-blue { --tone-bg: var(--c-este-800, 30 64 175); --tone-fg: var(--c-este-300, 147 197 253); }
.tone-green { --tone-bg: var(--c-emerald-100, 209 250 229); --tone-fg: var(--c-emerald-700, 4 120 87); }
.dark .tone-green { --tone-bg: var(--c-emerald-800, 6 95 70); --tone-fg: var(--c-emerald-300, 110 231 183); }
.tone-teal { --tone-bg: var(--c-teal-100, 204 251 241); --tone-fg: var(--c-teal-700, 15 118 110); }
.dark .tone-teal { --tone-bg: var(--c-teal-800, 17 94 89); --tone-fg: var(--c-teal-300, 94 234 212); }
.tone-sky { --tone-bg: var(--c-sky-100, 224 242 254); --tone-fg: var(--c-sky-700, 3 105 161); }
.dark .tone-sky { --tone-bg: var(--c-sky-800, 7 89 133); --tone-fg: var(--c-sky-300, 125 211 252); }
.tone-indigo { --tone-bg: var(--c-indigo-100, 224 231 255); --tone-fg: var(--c-indigo-700, 67 56 202); }
.dark .tone-indigo { --tone-bg: var(--c-indigo-800, 55 48 163); --tone-fg: var(--c-indigo-300, 165 180 252); }
.tone-violet { --tone-bg: var(--c-violet-100, 237 233 254); --tone-fg: var(--c-violet-700, 109 40 217); }
.dark .tone-violet { --tone-bg: var(--c-violet-800, 91 33 182); --tone-fg: var(--c-violet-300, 196 181 253); }
.tone-pink { --tone-bg: var(--c-pink-100, 252 231 243); --tone-fg: var(--c-pink-700, 190 24 93); }
.dark .tone-pink { --tone-bg: var(--c-pink-800, 157 23 77); --tone-fg: var(--c-pink-300, 249 168 212); }
.tone-rose { --tone-bg: var(--c-rose-100, 255 228 230); --tone-fg: var(--c-rose-700, 190 18 60); }
.dark .tone-rose { --tone-bg: var(--c-rose-800, 159 18 57); --tone-fg: var(--c-rose-300, 253 164 175); }
.tone-orange { --tone-bg: var(--c-orange-100, 255 237 213); --tone-fg: var(--c-orange-700, 194 65 12); }
.dark .tone-orange { --tone-bg: var(--c-orange-800, 154 52 18); --tone-fg: var(--c-orange-300, 253 186 116); }
.tone-amber { --tone-bg: var(--c-amber-100, 254 243 199); --tone-fg: var(--c-amber-700, 180 83 9); }
.dark .tone-amber { --tone-bg: var(--c-amber-800, 146 64 14); --tone-fg: var(--c-amber-300, 252 211 77); }
/* ---------------------------------------------------------------
   14d. Hareket efektleri (site.js "HAREKET EFEKTLERİ"; hepsi hareketi azalt tercihinde kapalı)
   --------------------------------------------------------------- */
/* Bulanıktan netleşen başlık: kelimeler sırayla aşağıdan, bulanık gelip netleşir */
.fx-word { display: inline-block; animation: fx-word-in 0.8s var(--ios-ease) both; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
.fx-word-soft { animation: fx-word-soft 0.8s var(--ios-ease) both; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
@keyframes fx-word-in { from { opacity: 0; filter: blur(10px); transform: translateY(0.28em); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fx-word-soft { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }

/* İmleci izleyen ışık (yalnız masaüstü; arka planı boş kartlar) */
@media (hover: hover) and (pointer: fine) {
  .este-card[data-spot="1"]:hover {
    background-image: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--c-este-500, 59 130 246) / 0.07), transparent 45%);
  }
  .dark .este-card[data-spot="1"]:hover {
    background-image: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--c-este-400, 96 165 250) / 0.12), transparent 45%);
  }
}

/* Yapay zekâ parıltısı: ürün kutusunun arkasındaki hale, Apple Intelligence tonlarında yavaşça döner */
@property --ai-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.fx-ai-glow {
  background-image: conic-gradient(from var(--ai-angle), #0a84ff, #5e5ce6, #bf5af2, #ff375f, #ff9f0a, #0a84ff);
  opacity: 0.32;
  animation: fx-ai-spin 9s linear infinite;
}
.dark .fx-ai-glow { opacity: 0.4; }
@keyframes fx-ai-spin { to { --ai-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .fx-word, .fx-word-soft, .fx-ai-glow { animation: none; }
}
/* ---------------------------------------------------------------
   14e. Süreç akışı (site.js wireProcessFlow): görünür olunca çizgi kendini çizer,
   düğümler çizgi onlara ulaştıkça (--d gecikmesi) yaylanır, ardından metin gelir.
   Mobilde dikey liste (düğüm solda), lg ve üstünde 5 sütun.
   --------------------------------------------------------------- */
.pf { position: relative; }
.pf-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pf-path {
  fill: none; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: var(--len, 0); stroke-dashoffset: var(--len, 0);
  transition: stroke-dashoffset 1.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.pf.pf-drawn .pf-path { stroke-dashoffset: 0; }
.pf-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.pf-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; align-content: start; }
.pf-node {
  grid-row: span 2; position: relative; width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: rgb(var(--c-este-600, 37 99 235));
  border: 1px solid rgb(229 229 234);
  box-shadow: 0 10px 24px -12px rgb(var(--c-este-600, 37 99 235) / 0.45);
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--d, 0ms);
}
.dark .pf-node { background: #1c1c1e; color: rgb(var(--c-este-400, 96 165 250)); border-color: rgb(255 255 255 / 0.1); box-shadow: none; }
.pf-num {
  position: absolute; top: -7px; right: -9px; min-width: 22px; padding: 0 6px; border-radius: 999px;
  font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; color: #fff;
  background: rgb(var(--c-este-600, 37 99 235));
}
.pf-title { font-weight: 700; font-size: 1rem; line-height: 1.35; margin-top: 2px; }
.pf-desc { font-size: 0.875rem; line-height: 1.55; margin-top: 4px; color: var(--ios-label-2); }
.pf-title, .pf-desc {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.6s var(--ios-ease);
  transition-delay: calc(var(--d, 0ms) + 180ms);
}
.pf.pf-drawn .pf-node, .pf.pf-drawn .pf-title, .pf.pf-drawn .pf-desc { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .pf-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
  .pf-step { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .pf-node { grid-row: auto; width: 64px; height: 64px; border-radius: 20px; margin-bottom: 18px; }
}
/* Hero ızgarasında akış (site.js wireHeroFlow): ana sayfa ve tüm iç sayfa hero'ları [data-grid-flow].
   Bölüm kendi katman bağlamını kurar, tuval z-index:-1 ile zeminin hemen üstünde, içeriğin altında kalır
   (konumlandırılmamış içerikli hero'larda da metnin üstüne çıkmaz). */
[data-grid-flow] { position: relative; overflow: hidden; isolation: isolate; }
.hero-flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
/* İç sayfa hero'ları sade zeminin üstüne ana sayfadakiyle aynı 48px ızgarayı alır (.page-hero kısaltması desenini silmesin diye daha özgül) */
.page-hero[data-grid-flow] {
  background-image: linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.dark .page-hero[data-grid-flow] {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;   /* .dark .page-hero kısaltması (aynı özgüllük, sonra gelir) boyutu sıfırlıyor */
}
/* ---------------------------------------------------------------
   14f. İç sayfa hero'ları: mavi-mor radyal parıltı ve kayan zemin kaldırıldı (kullanıcı isteği).
   Sayfaların satır içi .page-hero tanımları burada sade iOS zeminine ezilir; bulanık lekeler HTML'den silindi.
   --------------------------------------------------------------- */
.page-hero { background: #f5f5f7; animation: none; }
.dark .page-hero { background: #1c1c1e; animation: none; }
/* Ana sayfa hero'su aynı zemin rengini alır; yalnız renk değişir ki ızgara deseni (background-image) korunsun */
.hero-plain { background-color: #f5f5f7; }
.dark .hero-plain { background-color: #1c1c1e; }
/* ---------------------------------------------------------------
   14g. Lisans sihirbazı, paket karşılaştırma tablosu (lisanslama.html) ve
   blog içindekiler listesi (icerik.php)
   --------------------------------------------------------------- */
/* Sihirbaz: adım çubukları ve seçenek kartları */
.lsw-dots { display: flex; gap: 6px; }
.lsw-dots i { width: 28px; height: 4px; border-radius: 999px; background: rgb(0 0 0 / 0.08); transition: background-color 0.3s; }
.dark .lsw-dots i { background: rgb(255 255 255 / 0.12); }
.lsw-dots i.on { background: rgb(var(--c-este-500, 59 130 246)); }
.lsw-step { animation: lsw-in 0.45s var(--ios-ease) both; }
@keyframes lsw-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.lsw-step h3:focus { outline: none; }
.lsw-opt {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: 18px; border: 1.5px solid rgb(229 229 234); background: #fff;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.dark .lsw-opt { background: #1c1c1e; border-color: rgb(255 255 255 / 0.1); }
.lsw-opt:hover { border-color: rgb(var(--c-este-400, 96 165 250)); box-shadow: 0 6px 18px -10px rgb(var(--c-este-600, 37 99 235) / 0.4); }
.lsw-opt:focus-visible { outline: 3px solid rgb(var(--c-este-500, 59 130 246) / 0.45); outline-offset: 2px; }
.lsw-opt[aria-pressed="true"] { border-color: rgb(var(--c-este-500, 59 130 246)); background: rgb(var(--c-este-500, 59 130 246) / 0.06); }
.lsw-opt-ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgb(var(--c-este-500, 59 130 246) / 0.1); color: rgb(var(--c-este-600, 37 99 235));
}
.dark .lsw-opt-ico { color: rgb(var(--c-este-400, 96 165 250)); }
.lsw-opt-title { display: block; font-weight: 600; font-size: 15px; }
.lsw-opt-desc { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ios-label-2); }

/* Karşılaştırma tablosu: "Yalnız farkları göster" anahtarı */
.cmp-diff { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 14px; font-weight: 500; color: var(--ios-label-2); }
.cmp-diff input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cmp-switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgb(120 120 128 / 0.32); transition: background-color 0.25s; flex: none; }
.cmp-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / 0.2); transition: transform 0.25s var(--ios-ease); }
.cmp-diff input:checked + .cmp-switch { background: rgb(52 199 89); }
.cmp-diff input:checked + .cmp-switch::after { transform: translateX(16px); }
.cmp-diff input:focus-visible + .cmp-switch { outline: 3px solid rgb(var(--c-este-500, 59 130 246) / 0.45); outline-offset: 2px; }
/* Önerilen paketin sütunu */
.cmp-table .cmp-hl { background: rgb(var(--c-este-500, 59 130 246) / 0.08) !important; box-shadow: inset 2px 0 0 rgb(var(--c-este-500, 59 130 246)), inset -2px 0 0 rgb(var(--c-este-500, 59 130 246)); }
.cmp-table .cmp-hl.cmp-hl-top { box-shadow: inset 2px 0 0 rgb(var(--c-este-500, 59 130 246)), inset -2px 0 0 rgb(var(--c-este-500, 59 130 246)), inset 0 2px 0 rgb(var(--c-este-500, 59 130 246)); }
.cmp-table .cmp-hl.cmp-hl-end { box-shadow: inset 2px 0 0 rgb(var(--c-este-500, 59 130 246)), inset -2px 0 0 rgb(var(--c-este-500, 59 130 246)), inset 0 -2px 0 rgb(var(--c-este-500, 59 130 246)); }
.cmp-rec { margin-top: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: rgb(var(--c-este-600, 37 99 235)); white-space: nowrap; }
.dark .cmp-rec { color: rgb(var(--c-este-400, 96 165 250)); }
/* Dar ekranda yatay kaydırırken özellik sütunu sabit kalır */
.cmp-table th:first-child, .cmp-table td:first-child { position: sticky; left: 0; z-index: 1; background-color: #fff; }
.dark .cmp-table th:first-child, .dark .cmp-table td:first-child { background-color: #2c2c2e; }

/* Blog içindekiler - iOS gruplanmış liste: yuvarlatılmış kart, ince ayraçlı satırlar, girintili alt
   başlıklar; okunan bölüm açık mavi zeminli satır ve noktayla işaretlenir. Dar ekranda yazının başında
   açılır kart, xl'de makalenin solunda yapışkan kart (uzun listede aktif satır görünür tutulur). */
.toc-box, .toc-side-inner { border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 10px 28px -14px rgb(0 0 0 / 0.16); }
.dark .toc-box, .dark .toc-side-inner { background: #1c1c1e; box-shadow: 0 16px 36px -14px rgb(0 0 0 / 0.85), 0 6px 26px -6px rgb(255 255 255 / 0.07); }
.toc-box { margin-bottom: 2rem; overflow: hidden; }
.toc-box summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: 0.35; transition: transform 0.25s var(--ios-ease); }
.toc-box[open] summary::after { transform: rotate(-135deg); }
.toc-box[open] summary { box-shadow: inset 0 -0.5px 0 var(--ios-separator); }
.toc-count { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--ios-fill); color: var(--ios-label-2); }
.toc-title { padding: 12px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ios-label-2); }
.toc-box ol, .toc-side ol { list-style: none; margin: 0; padding: 6px; }
.toc-box li, .toc-side li { position: relative; }
/* İnce ayraç: satır metniyle hizalı (iOS inset separator); vurgulu satırın çevresinde gizlenir */
.toc-box li + li::before, .toc-side li + li::before { content: ""; position: absolute; top: 0; left: 26px; right: 10px; height: 0.5px; background: var(--ios-separator); }
.toc-box li:has(> a.is-active)::before, .toc-box li:has(> a.is-active) + li::before,
.toc-side li:has(> a.is-active)::before, .toc-side li:has(> a.is-active) + li::before { opacity: 0; }
.toc-box li a, .toc-side li a {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--ios-label); text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.toc-box li a::before, .toc-side li a::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.45em; border-radius: 50%; background: transparent; transition: background-color 0.2s; }
.toc-box li.toc-sub a, .toc-side li.toc-sub a { padding-left: 26px; font-size: 13px; font-weight: 400; color: var(--ios-label-2); }
.toc-box li a:hover, .toc-side li a:hover { background: var(--ios-fill); }
.toc-box li a.is-active, .toc-side li a.is-active { background: rgb(var(--c-este-500, 59 130 246) / 0.1); color: rgb(var(--c-este-600, 37 99 235)); font-weight: 600; }
.toc-box li a.is-active::before, .toc-side li a.is-active::before { background: rgb(var(--c-este-500, 59 130 246)); }
.dark .toc-box li a.is-active, .dark .toc-side li a.is-active { background: rgb(var(--c-este-400, 96 165 250) / 0.14); color: rgb(var(--c-este-400, 96 165 250)); }
.prose-este h2[id], .prose-este h3[id] { scroll-margin-top: 96px; }
.toc-side { display: none; }
@media (min-width: 1280px) {
  .toc-box { display: none; }
  /* Yazı ile arasında boşluk: kart yazının sol kenarından margin + makale iç boşluğu (24px) kadar uzakta */
  .toc-side { display: block; position: absolute; top: 0; bottom: 0; right: 100%; width: 208px; margin-right: 24px; }
  /* iOS gibi: kart kendi içinde kayar ama kaydırma çubuğu görünmez */
  .toc-side-inner { position: sticky; top: 96px; margin-top: 2.5rem; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .toc-side-inner::-webkit-scrollbar { display: none; }
}
@media (min-width: 1440px) {
  .toc-side { width: 236px; margin-right: 40px; }
}
@media (prefers-reduced-motion: reduce) { .lsw-step { animation: none; } }
/* ---------------------------------------------------------------
   14h. Ürün SSS (assets/faq.js), blog "En çok okunanlar" (blog.html) ve
   Copilot hazırlık testi (copilot.html; seçenek kartları 14g .lsw-* ile ortak)
   --------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: 18px; background: #fff; border: 1px solid rgb(229 229 234); transition: border-color 0.25s, box-shadow 0.25s; }
.dark .faq-item { background: #1c1c1e; border-color: rgb(255 255 255 / 0.1); }
.faq-item[open] { border-color: rgb(var(--c-este-500, 59 130 246) / 0.35); box-shadow: 0 12px 28px -18px rgb(var(--c-este-600, 37 99 235) / 0.5); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; color: rgb(var(--c-este-600, 37 99 235));
  background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat, rgb(var(--c-este-500, 59 130 246) / 0.12);
  transition: transform 0.3s var(--ios-ease);
}
.dark .faq-item summary::after { color: rgb(var(--c-este-400, 96 165 250)); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 3px solid rgb(var(--c-este-500, 59 130 246) / 0.45); outline-offset: 2px; border-radius: 18px; }
.faq-a { padding: 0 20px 18px; font-size: 15px; line-height: 1.65; color: var(--ios-label-2); }
/* Destekleyen tarayıcılarda yanıt yumuşakça açılıp kapanır */
@supports selector(::details-content) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s var(--ios-ease), content-visibility 0.35s allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
}

/* Blog: en çok okunanlar şeridi (dar ekranda yatay kaydırma, xl'de 5 sütun) */
.pop-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ios-label-2); }
.pop-list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0 0 2rem; padding: 0 0 6px; scrollbar-width: thin; }
.pop-item { flex: 0 0 220px; scroll-snap-align: start; }
.pop-item a { display: flex; gap: 12px; height: 100%; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid rgb(229 229 234); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.dark .pop-item a { background: #1c1c1e; border-color: rgb(255 255 255 / 0.1); }
.pop-item a:hover { border-color: rgb(var(--c-este-400, 96 165 250)); box-shadow: 0 8px 20px -14px rgb(var(--c-este-600, 37 99 235) / 0.5); }
.pop-rank { flex: none; font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: rgb(var(--c-este-500, 59 130 246) / 0.4); }
.pop-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; }
.pop-views { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; color: var(--ios-label-2); }
@media (min-width: 1280px) {
  .pop-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
}

/* Copilot hazırlık testi: skor halkası ve kategori çubukları */
.crt-ring { position: relative; width: 168px; height: 168px; flex: none; }
.crt-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.crt-ring .trk { stroke: rgb(0 0 0 / 0.07); }
.dark .crt-ring .trk { stroke: rgb(255 255 255 / 0.1); }
.crt-ring .val { stroke: rgb(var(--c-este-500, 59 130 246)); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ios-ease); }
.crt-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.crt-bar { height: 8px; border-radius: 999px; background: rgb(0 0 0 / 0.07); overflow: hidden; }
.dark .crt-bar { background: rgb(255 255 255 / 0.1); }
.crt-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: rgb(52 199 89); transition: width 0.9s var(--ios-ease) 0.2s; }
.crt-bar.mid i { background: rgb(255 159 10); }
.crt-bar.low i { background: rgb(255 69 58); }
@media (prefers-reduced-motion: reduce) {
  .crt-ring .val, .crt-bar i { transition: none; }
}
/* ---------------------------------------------------------------
   14i. Koyu modda kartlar kenarlıksız (kullanıcı isteği): kenarlık saydam olur, kart
   yalnız gölgeyle ayrışır. Siyah zeminde koyu gölge görünmediği için koyu gölgeye çok
   hafif açık bir hale eşlik eder. Kapsam: .este-card ve sitedeki bileşen kartları +
   yuvarlak köşeli (2xl/3xl/2rem) ve koyu kenarlık sınıfı taşıyan kutular. Seçili
   seçenek gibi anlam taşıyan vurgu kenarlıkları korunur.
   --------------------------------------------------------------- */
.dark :is(.este-card, .faq-item, .pop-item a, .toc-box, .pf-node, .lsw-opt),
.dark :is(div, article, a, li, form, details)[class*="dark:border-"]:is([class*="rounded-2xl"], [class*="rounded-3xl"], [class*="rounded-[2rem]"]) {
  border-color: transparent !important;
  box-shadow: 0 16px 36px -14px rgb(0 0 0 / 0.85), 0 6px 26px -6px rgb(255 255 255 / 0.07);
}
.dark :is(.este-card, .faq-item, .pop-item a, .lsw-opt):hover {
  box-shadow: 0 22px 44px -16px rgb(0 0 0 / 0.9), 0 10px 34px -6px rgb(255 255 255 / 0.11);
}
.dark .faq-item[open] { box-shadow: 0 16px 36px -14px rgb(0 0 0 / 0.85), 0 8px 30px -6px rgb(var(--c-este-400, 96 165 250) / 0.16); }
.dark .lsw-opt[aria-pressed="true"] { border-color: rgb(var(--c-este-500, 59 130 246)) !important; }

/* ===============================================================
   16. iOS+ stil — varsayılan görünüm, html[data-stil="ios"] (head kapısı herkese uygular; ?stil=klasik eski görünümü önizler)
   Tailwind iskelet olarak kalır; bu katman görünümü Apple uygulamalarına yaklaştırır:
   Apple yazı ölçeği, kaydırınca küçülen büyük başlık + gezinme çubuğu başlığı (site.js
   wireIosStyle), gruplanmış listeler, segment kontrolleri, alttan açılan sayfalar (sheet).
   Geri dönmek için sayfa başı kapılarındaki "if(!sk) d.setAttribute('data-stil','ios')" satırını kaldırmak yeterli.
   =============================================================== */

/* --- Apple yazı ölçeği (Body 17 · Subheadline 15 · Footnote 13; başlıklarda sıkı harf aralığı) --- */
html[data-stil="ios"] body { font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; }
html[data-stil="ios"] .text-base { font-size: 17px; line-height: 1.47; }
html[data-stil="ios"] .text-sm { font-size: 15px; line-height: 1.4; letter-spacing: -0.012em; }
html[data-stil="ios"] .text-xs { font-size: 13px; line-height: 1.38; letter-spacing: -0.006em; }
html[data-stil="ios"] .text-lg { font-size: 19px; line-height: 1.42; letter-spacing: -0.022em; }
html[data-stil="ios"] .text-xl { font-size: 21px; line-height: 1.38; letter-spacing: -0.022em; }
html[data-stil="ios"] h1 { letter-spacing: -0.035em; }
html[data-stil="ios"] h2 { letter-spacing: -0.028em; }
html[data-stil="ios"] h3, html[data-stil="ios"] h4 { letter-spacing: -0.02em; }
/* Büyük harfli küçük etiketler Apple stilinde daha az aralıklı */
html[data-stil="ios"] .uppercase.tracking-wider, html[data-stil="ios"] .uppercase.tracking-widest { letter-spacing: 0.02em; }

/* --- Büyük başlık (Large Title): kaydırdıkça küçülüp solar; başlık gezinme çubuğuna geçer --- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html[data-stil="ios"] :is(.page-hero, #home) h1 {
      transform-origin: left bottom;
      animation: ios-large-title linear both;
      animation-timeline: view();
      animation-range: exit -20% exit 70%;
    }
  }
}
@keyframes ios-large-title { to { transform: scale(0.82); opacity: 0.15; } }
html[data-stil="ios"] #mainNav nav { position: relative; }
.ios-navtitle {
  font-size: 17px; font-weight: 600; letter-spacing: -0.022em; color: var(--ios-label);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s var(--ios-ease), transform 0.4s var(--ios-ease);
}
#mainNav.ios-titled .ios-navtitle { opacity: 1; transform: none; }
@media (max-width: 1023.98px) {
  /* Dar ekranda iOS gibi: başlık ortada belirir, logo yerini ona bırakır */
  .ios-navtitle { position: absolute; left: 50%; top: 50%; translate: -50% -50%; max-width: calc(100vw - 210px); text-align: center; font-size: 16px; }
  html[data-stil="ios"] #mainNav [data-este-logo="full"] { transition: opacity 0.25s var(--ios-ease); }
  html[data-stil="ios"] #mainNav.ios-titled [data-este-logo="full"] { opacity: 0; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) { .ios-navtitle { display: none; } }
@media (min-width: 1280px) {
  /* Akış dışında, logonun hemen sağında (site.js --ios-title-left): menünün ortalı konumunu etkilemez */
  .ios-navtitle { position: absolute; top: 50%; translate: 0 -50%; left: var(--ios-title-left, 140px); max-width: 240px; padding-left: 14px; border-left: 1px solid var(--ios-separator-strong); }
}

/* --- Gruplanmış liste (Inset Grouped): onay işaretli maddeler ve blog kategorileri --- */
html[data-stil="ios"] ul.ios-grouped { background: rgb(120 120 128 / 0.08); border-radius: 12px; overflow: hidden; padding: 0; }
html.dark[data-stil="ios"] ul.ios-grouped { background: rgb(255 255 255 / 0.06); }
html[data-stil="ios"] ul.ios-grouped > li { margin: 0 !important; padding: 13px 16px; position: relative; align-items: center; }
html[data-stil="ios"] ul.ios-grouped > li + li::before,
html[data-stil="ios"] #blogCats > .blog-cat + .blog-cat::before {
  content: ""; position: absolute; top: 0; right: 0; left: 48px; height: 0.5px; background: var(--ios-separator);
}
html[data-stil="ios"] ul.ios-grouped > li > svg { color: rgb(52 199 89); margin-top: 0; }
html[data-stil="ios"] #blogCats { gap: 0; background: rgb(120 120 128 / 0.08); border-radius: 12px; overflow: hidden; }
html.dark[data-stil="ios"] #blogCats { background: rgb(255 255 255 / 0.06); }
html[data-stil="ios"] #blogCats > .blog-cat { position: relative; border-radius: 0; padding: 11px 16px; font-size: 15px; color: var(--ios-label); background: transparent; }
html[data-stil="ios"] #blogCats > .blog-cat + .blog-cat::before { left: 16px; }
html[data-stil="ios"] #blogCats > .blog-cat:hover { background: rgb(120 120 128 / 0.1); }
html[data-stil="ios"] #blogCats > .blog-cat.active { background: transparent; color: var(--ios-tint); font-weight: 600; }

/* --- Segment kontrol (UISegmentedControl): gri ray, seçili parça beyaz ve gölgeli --- */
html[data-stil="ios"] :is(.seg-control, #blogViewToggle) {
  display: inline-flex; gap: 0; padding: 2px; border-radius: 9px; background: rgb(118 118 128 / 0.12);
}
html.dark[data-stil="ios"] :is(.seg-control, #blogViewToggle) { background: rgb(118 118 128 / 0.24); }
html[data-stil="ios"] .seg-control > a, html[data-stil="ios"] #blogViewToggle > button {
  border-radius: 7px; padding: 6px 14px; background: transparent; color: var(--ios-label); font-weight: 500;
  transition: background-color 0.25s var(--ios-ease), box-shadow 0.25s var(--ios-ease);
}
html[data-stil="ios"] .seg-control > a:hover { background: rgb(118 118 128 / 0.1); }
html[data-stil="ios"] .seg-control > a[aria-current="page"], html[data-stil="ios"] #blogViewToggle > button.active {
  background: #fff; color: var(--ios-label); font-weight: 600;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.12), 0 3px 1px rgb(0 0 0 / 0.04);
}
html.dark[data-stil="ios"] .seg-control > a[aria-current="page"], html.dark[data-stil="ios"] #blogViewToggle > button.active { background: #636366; color: #fff; }

/* --- Alttan açılan sayfa (sheet): mobil menü ve başvuru penceresi --- */
@keyframes ios-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 1023.98px) {
  /* Cam efekti fixed konumlu çocuk için kapsayıcı oluşturur → sheet açıkken kapatılır */
  html[data-stil="ios"] #mainNav:has(#mobileMenu:not(.hidden)) { backdrop-filter: none; -webkit-backdrop-filter: none; }
  html[data-stil="ios"]:has(#mobileMenu:not(.hidden)) body { overflow: hidden; }
  html[data-stil="ios"] #mobileMenu:not(.hidden) {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 80; max-height: 86vh;
    padding-top: 18px; padding-bottom: env(safe-area-inset-bottom);
    border-radius: 14px 14px 0 0; background: #f2f2f7;
    box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.32), 0 -8px 30px rgb(0 0 0 / 0.12);
    animation: ios-sheet-up 0.45s var(--ios-ease) both;
  }
  html.dark[data-stil="ios"] #mobileMenu:not(.hidden) { background: #1c1c1e; }
  html[data-stil="ios"] #mobileMenu:not(.hidden)::before {
    content: ""; position: absolute; top: 6px; left: 50%; translate: -50% 0;
    width: 36px; height: 5px; border-radius: 3px; background: rgb(60 60 67 / 0.3);
  }
  html.dark[data-stil="ios"] #mobileMenu:not(.hidden)::before { background: rgb(235 235 245 / 0.3); }
}
@media (max-width: 640px) {
  html[data-stil="ios"] .apply-overlay { align-items: flex-end; padding: 0; }
  html[data-stil="ios"] .apply-modal { position: relative; margin: 0; max-width: none; max-height: 92vh; overflow-y: auto; border-radius: 14px 14px 0 0; padding-top: 10px; animation: ios-sheet-up 0.45s var(--ios-ease) both; }
  html[data-stil="ios"] .apply-modal::before { content: ""; position: absolute; top: 6px; left: 50%; translate: -50% 0; width: 36px; height: 5px; border-radius: 3px; background: rgb(60 60 67 / 0.3); }
}

/* --- Önizleme kapsülü: renk paleti kapsülü de açıksa onun üstünde durur --- */
.palette-preview-chip.stil-chip.stacked { bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (max-width: 640px) { .palette-preview-chip.stil-chip.stacked { top: calc(116px + env(safe-area-inset-top)); bottom: auto; } }
@media (prefers-reduced-motion: reduce) {
  html[data-stil="ios"] #mobileMenu:not(.hidden), html[data-stil="ios"] .apply-modal { animation: none; }
}
