/* İzinle tanıtım sitesinin bütün sayfalarında ortak: renkler, üst çubuk, düğmeler, alt bilgi.
   Sırada sitesinin (../sirada/site.css) aynı görsel dili; site yalnız Türkçe olduğu için dil menüsü kuralları yok. */
:root {
  --bg: #fafaf9; --fg: #18181b; --muted: #71717a; --line: #e7e5e4; --card: #fff;
  --accent: #ea580c; --accent-soft: #fff1e8; --green: #22c55e;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 40px -12px rgb(0 0 0 / .18);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0c0d; --fg: #f4f4f5; --muted: #a1a1aa; --line: #27272a; --card: #161618; --accent: #fb7a35; --accent-soft: #2a1608; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 48px -12px rgb(0 0 0 / .6); }
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
html:has(dialog[open]) { overflow: hidden; }
body { font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Grain: bütün sayfanın üstünde ince, hafif kıpırdayan doku */
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px; opacity: .07; mix-blend-mode: multiply; animation: grain 1.2s steps(6) infinite; }
@media (prefers-color-scheme: dark) { body::after { opacity: .11; mix-blend-mode: screen; filter: invert(1); } }
@keyframes grain {
  0% { background-position: 0 0; } 17% { background-position: -70px 40px; } 33% { background-position: 50px -90px; }
  50% { background-position: -100px -30px; } 67% { background-position: 80px 70px; } 83% { background-position: -20px 100px; } 100% { background-position: 0 0; }
}

/* Üst çubuk */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); background: color-mix(in oklab, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -.01em; text-decoration: none; color: inherit; }
.brand svg { width: 28px; height: 28px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.site-nav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; transition: color .2s ease, background-color .25s ease; }
.site-nav a:hover { color: var(--fg); background: color-mix(in oklab, var(--fg) 6%, transparent); }
.site-nav a[aria-current=page] { color: var(--fg); background: color-mix(in oklab, var(--fg) 8%, transparent); }
.site-header .btn { flex: none; }
@media (max-width: 860px) { .site-nav { display: none; } .site-header .btn { margin-left: auto; } }
/* Düğmeler */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s var(--ease-out), background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px -6px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, #000); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--fg); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Alt bilgi */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 22px; padding-bottom: 32px; font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a:hover { color: var(--fg); }

/* Kaydırınca belirme (yalnız betik çalışıyorsa gizlenir) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; }

/* Alt sayfalar: ana sayfayla aynı genişlik, solda metin, sağda sabit içindekiler */
.doc { display: grid; gap: 48px; padding-top: 56px; }
@media (min-width: 1000px) { .doc { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; } }
.doc-body { max-width: 760px; line-height: 1.65; }
.doc-aside { display: none; }
@media (min-width: 1000px) { .doc-aside { display: block; } .doc-aside > div { position: sticky; top: 96px; display: grid; gap: 20px; } }
.toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.toc p { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; font-size: 14.5px; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; transition: color .2s, border-color .3s var(--ease-out); }
.toc a:hover { color: var(--fg); }
.toc a.is-active { color: var(--fg); border-color: var(--accent); }
.aside-cta { padding: 20px; border-radius: 16px; background: #18181b; color: #fafafa; position: relative; overflow: hidden; }
.aside-cta::before { content: ""; position: absolute; inset: -60% -30% auto auto; width: 220px; height: 220px; background: radial-gradient(closest-side, color-mix(in oklab, #ea580c 55%, transparent), transparent); opacity: .6; pointer-events: none; }
.aside-cta > * { position: relative; }
.aside-cta b { display: block; font-size: 16px; }
.aside-cta p { margin-top: 6px; font-size: 14px; color: #a1a1aa; line-height: 1.5; }
.aside-cta .btn { margin-top: 14px; }
section[id], h2[id] { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  .btn:hover { transform: none; }
  body::after, .hero-bg * { animation: none !important; }
}

/* Açılır-kapanır sorular (ana sayfa SSS ve destek) */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { padding: 14px 0; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; transition: color .2s; }
summary:hover { color: var(--accent); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; transition: transform .4s var(--ease-out), color .2s; }
details.is-open summary::after { transform: rotate(135deg); color: var(--accent); }
.details-body { overflow: hidden; }
.details-body > :first-child { margin-top: 0; }
.details-body > :last-child { padding-bottom: 16px; }
details p { color: var(--fg); }
details p + p { margin-top: 8px; }
