/* Fetva Ara — tanıtım sitesi ortak stil dosyası.
   Kaynak: site/src/site.css  →  build_site.py  →  site/dist/assets/site.css
   Üçüncü taraf istek yok: sistem yazı tipleri, yerel görseller. */

/* ------------------------------------------------------------ tokenlar */
:root {
  --navy-950: #0C1730;
  --navy-900: #12203E;
  --navy-800: #1B2A4A;
  --navy-700: #24365C;
  --gold: #C9A24B;
  --gold-light: #D9B96E;
  --gold-deep: #7A5F1C;
  --teal: #3FB6B6;
  --teal-deep: #1F7A7A;
  --cream: #F7F5F0;
  --cream-deep: #EFEBE1;
  --ink: #1C1C1C;

  /* anlamsal (açık tema) */
  --bg: var(--cream);
  --bg-alt: #F1EEE6;
  --surface: #FFFFFF;
  --text: #1F2430;
  --heading: var(--navy-900);
  --muted: #535C6B;          /* krem üzerinde 6.2:1 */
  --gold-text: var(--gold-deep); /* krem üzerinde 5.5:1 */
  --border: #E3DDD0;
  --border-strong: #CFC6B4;
  --link: #1B2A4A;
  --link-underline: rgba(122, 95, 28, .55);
  --focus: #1F7A7A;
  --tint-gold: rgba(201, 162, 75, .12);
  --shadow-card: 0 1px 2px rgba(18, 32, 62, .05), 0 8px 24px -12px rgba(18, 32, 62, .14);

  /* koyu (aura) bölgeler — tema ne olursa olsun koyu */
  --on-dark: #F4F1EA;
  --on-dark-muted: #C3CCDB;   /* navy-900 üzerinde 9.6:1 */
  --on-dark-gold: var(--gold-light);
  --focus-on-dark: var(--gold-light);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy-950);
    --bg-alt: #101D3A;
    --surface: var(--navy-900);
    --text: #E6EAF2;
    --heading: #F4F1EA;
    --muted: #AEB8CA;          /* navy-950 üzerinde 9.0:1 */
    --gold-text: var(--gold-light);
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .20);
    --link: #E9D9AE;
    --link-underline: rgba(217, 185, 110, .55);
    --focus: var(--gold-light);
    --tint-gold: rgba(217, 185, 110, .10);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -16px rgba(0, 0, 0, .6);
  }
}

/* ------------------------------------------------------------ temel */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--serif); color: var(--heading); font-weight: 700; line-height: 1.18; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--link); text-decoration-color: var(--link-underline); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .aura :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-on-dark); }
::selection { background: rgba(201, 162, 75, .35); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--navy-900); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.overline {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-text);
}
.aura .overline, .dark .overline { color: var(--on-dark-gold); }
.rule { width: 44px; height: 2px; background: var(--gold); border: 0; margin: 18px 0 0; border-radius: 2px; }
.center .rule { margin-inline: auto; }

/* ------------------------------------------------------------ aura */
.aura {
  position: relative; isolation: isolate; color: var(--on-dark);
  background:
    radial-gradient(70% 60% at 16% 0%, rgba(63, 182, 182, .26), rgba(63, 182, 182, 0) 70%),
    radial-gradient(60% 70% at 96% 92%, rgba(201, 162, 75, .15), rgba(201, 162, 75, 0) 70%),
    radial-gradient(45% 50% at 55% 62%, rgba(63, 182, 182, .07), rgba(63, 182, 182, 0) 70%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.aura::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("grain.png"); background-size: 128px 128px; opacity: .05; mix-blend-mode: overlay;
}
.aura h1, .aura h2, .aura h3 { color: var(--on-dark); }
.aura a:not(.btn):not(.store-btn) { color: #EEDDB0; text-decoration-color: rgba(238, 221, 176, .5); }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(14, 26, 52, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--on-dark);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; margin-right: auto; border-radius: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(217, 185, 110, .35); }
.brand span { font-family: var(--serif); font-size: 1.28rem; font-weight: 700; letter-spacing: .005em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--on-dark-muted); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.nav-links a[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 10px 10px 0 0; }
.header-cta { margin-left: 8px; }

.menu { position: relative; display: none; }
.menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; font-size: .95rem;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 18px; height: 18px; }
.menu[open] > summary { background: rgba(255, 255, 255, .08); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(84vw, 300px);
  background: var(--navy-900); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
  padding: 8px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6); list-style: none;
}
.menu-panel a {
  display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 10px;
  color: var(--on-dark); text-decoration: none; font-weight: 500;
}
.menu-panel a:hover { background: rgba(255, 255, 255, .06); }
.menu-panel a[aria-current="page"] { color: var(--gold-light); }
.menu-panel hr { border: 0; height: 1px; background: rgba(255, 255, 255, .1); margin: 6px 8px; }

@media (max-width: 899px) {
  .site-header .nav-links, .site-header .header-cta { display: none; }
  .menu { display: block; }
}

/* ------------------------------------------------------------ düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px; font: 600 .95rem/1 var(--sans);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { color: var(--link); border-color: var(--border-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }
.aura .btn-ghost, .dark .btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .24); }
.aura .btn-ghost:hover, .dark .btn-ghost:hover { border-color: var(--gold-light); background: rgba(255, 255, 255, .04); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 20px 9px 16px;
  border-radius: 14px; text-decoration: none; background: var(--cream); color: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .55);
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.store-btn:hover { background: #FFFFFF; }
.store-btn .ic {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--navy-900); color: var(--gold-light);
}
.store-btn .ic svg { width: 18px; height: 18px; }
.store-btn .txt { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: .74rem; font-weight: 500; color: #4A5262; letter-spacing: .01em; }
.store-btn strong { font-size: 1.08rem; font-weight: 700; letter-spacing: -.005em; }
@media (prefers-reduced-motion: no-preference) {
  .store-btn:hover, .btn-gold:hover { transform: translateY(-1px); }
}

/* ------------------------------------------------------------ cihaz çerçevesi (gerçek ekran görüntüsü) */
.device {
  --dw: 280px;
  position: relative; width: var(--dw); flex: none;
  padding: calc(var(--dw) * .026);
  border-radius: calc(var(--dw) * .155);
  background: linear-gradient(160deg, #2A3550 0%, #0B1222 45%, #060A14 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .10) inset,
    0 1px 0 rgba(255, 255, 255, .14) inset,
    0 40px 80px -30px rgba(0, 0, 0, .65),
    0 18px 36px -18px rgba(4, 10, 24, .55);
}
.device img {
  width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover;
  border-radius: calc(var(--dw) * .13); background: var(--navy-800);
}

/* ------------------------------------------------------------ hero */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(2.45rem, 1.5rem + 4.2vw, 4.25rem); line-height: 1.06; margin-top: 18px; letter-spacing: -.012em; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .lead { margin-top: 20px; font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); color: var(--on-dark-muted); max-width: 34em; }
.hero .store-row { margin-top: 30px; }
.trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; list-style: none;
  color: var(--on-dark-muted); font-size: .92rem;
}
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
.hero-note { margin-top: 14px; font-size: .86rem; color: var(--on-dark-muted); }

.hero-visual { position: relative; display: flex; justify-content: center; padding-bottom: 0; min-height: 0; }
.hero-visual .device { --dw: min(60vw, 230px); z-index: 2; margin-bottom: 48px; }
.hero-visual .device.back {
  display: none;
}
.hero-glow {
  position: absolute; left: 50%; top: 40%; width: 520px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(63, 182, 182, .22), rgba(63, 182, 182, 0));
  pointer-events: none; z-index: 1;
}
.hero-fade { height: 90px; }

@media (min-width: 768px) {
  .hero { padding-top: 72px; }
  .hero-visual .device { --dw: 270px; margin-bottom: -90px; }
  .hero-visual .device.back { display: block; position: absolute; top: 56px; --dw: 228px; --off: 150px; z-index: 1; filter: saturate(.92) brightness(.9); }
  .hero-visual .device.back.l { left: calc(50% - var(--off) - var(--dw) / 2); transform: rotate(-5deg); }
  .hero-visual .device.back.r { left: calc(50% + var(--off) - var(--dw) / 2); transform: rotate(5deg); }
}
@media (min-width: 1024px) {
  .hero { padding-top: 84px; }
  .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 24px; }
  .hero-visual { min-height: 600px; }
  .hero-visual .device { --dw: 286px; margin-bottom: -110px; }
  .hero-visual .device.back { --dw: 236px; --off: 148px; top: 64px; }
  .hero-fade { height: 110px; }
}

/* istatistik şeridi */
.stats {
  position: relative; z-index: 3; margin-top: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.stats ul { display: grid; grid-template-columns: repeat(2, 1fr); list-style: none; }
.stats li { padding: 22px 12px; text-align: center; border-top: 1px solid var(--border); }
.stats li:nth-child(odd) { border-right: 1px solid var(--border); }
.stats li:nth-child(-n+2) { border-top: 0; }
.stats b { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--heading); line-height: 1.1; }
.stats span { display: block; margin-top: 4px; font-size: .9rem; color: var(--muted); }
@media (min-width: 768px) {
  .stats ul { grid-template-columns: repeat(4, 1fr); }
  .stats li { border-top: 0; border-right: 1px solid var(--border); padding: 28px 12px; }
  .stats li:last-child { border-right: 0; }
}

/* ------------------------------------------------------------ bölümler */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.7rem); margin-top: 12px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.aura .section-head p, .dark .section-head p { color: var(--on-dark-muted); }
@media (max-width: 767px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* özellikler */
.features { display: grid; grid-template-columns: 1fr; gap: 16px; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 26px 24px 24px; box-shadow: var(--shadow-card);
}
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint-gold); color: var(--gold-text); border: 1px solid rgba(201, 162, 75, .28);
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.28rem; margin-top: 18px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: .99rem; }

/* galeri */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 20px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px;
  margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; overscroll-behavior-x: contain;
}
.gallery li { scroll-snap-align: center; }
.gallery figure { margin: 0; }
.gallery .device { --dw: 232px; margin-inline: auto; }
.gallery figcaption { margin-top: 20px; text-align: center; }
.gallery figcaption .overline { font-size: .72rem; }
.gallery figcaption strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 1.2rem; color: var(--on-dark); line-height: 1.25; }
.gallery figcaption span { display: block; margin-top: 6px; font-size: .92rem; color: var(--on-dark-muted); }
.gallery-hint { margin-top: 4px; text-align: center; font-size: .85rem; color: var(--on-dark-muted); }
@media (min-width: 768px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; row-gap: 56px; }
  .gallery .device { --dw: 216px; }
  .gallery-hint { display: none; }
}
@media (min-width: 1024px) { .gallery .device { --dw: 252px; } }

/* gizlilik / güven */
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: 1.15fr .85fr; } }
.doc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 32px 28px; box-shadow: var(--shadow-card); scroll-margin-top: calc(var(--header-h) + 20px);
}
.doc-card h3 { font-size: 1.6rem; margin-top: 10px; }
.doc-card > p { margin-top: 12px; color: var(--muted); }
.checks { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checks .ck { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(63, 182, 182, .14); color: var(--teal-deep); }
.checks .ck svg { width: 15px; height: 15px; }
.checks b { display: block; color: var(--heading); font-weight: 600; }
.checks span { display: block; color: var(--muted); font-size: .96rem; margin-top: 2px; }
.doc-card .btn { margin-top: 26px; }
@media (prefers-color-scheme: dark) { .checks .ck { color: var(--teal); } }

/* SSS */
.faq-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 64px; } .faq-layout .section-head { margin-bottom: 0; } }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; font-family: var(--serif); font-size: 1.18rem; font-weight: 700; color: var(--heading);
  border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--gold-text); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { padding: 0 4px 22px; color: var(--muted); max-width: 62ch; }
.disclaimer {
  margin-top: 32px; display: grid; grid-template-columns: 24px 1fr; gap: 14px;
  background: var(--tint-gold); border: 1px solid rgba(201, 162, 75, .32); border-radius: var(--radius-m); padding: 20px 22px;
}
.disclaimer svg { width: 22px; height: 22px; color: var(--gold-text); margin-top: 2px; }
.disclaimer b { display: block; color: var(--heading); font-family: var(--serif); font-size: 1.1rem; }
.disclaimer p { margin-top: 4px; color: var(--text); font-size: .98rem; }

/* indirme CTA */
.cta { text-align: center; padding: 96px 0; }
.cta img.logo { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(217, 185, 110, .4), 0 20px 40px -18px rgba(0, 0, 0, .7); }
.cta h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-top: 26px; }
.cta p { margin: 14px auto 0; max-width: 34em; color: var(--on-dark-muted); font-size: 1.08rem; }
.cta .store-row { justify-content: center; margin-top: 30px; }
.cta .meta { margin-top: 18px; font-size: .88rem; color: var(--on-dark-muted); }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); border-top: 1px solid rgba(255, 255, 255, .06); font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; padding: 56px 0 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer .brand { margin: 0; }
.footer-about p { margin-top: 14px; max-width: 30em; }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.site-footer ul { list-style: none; margin-top: 14px; display: grid; gap: 4px; }
.site-footer a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-radius: 6px; }
.site-footer ul { gap: 0 !important; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(217, 185, 110, .6); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .86rem; }

/* ------------------------------------------------------------ hukuki sayfalar */
.doc-hero { padding: 44px 0 52px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--on-dark-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--on-dark-muted) !important; text-decoration: none; }
.crumbs a:hover { color: var(--on-dark) !important; text-decoration: underline; }
.doc-switch {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 26px; padding: 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10); list-style: none;
}
.doc-switch a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px;
  color: var(--on-dark-muted) !important; text-decoration: none; font-size: .93rem; font-weight: 600;
}
.doc-switch a:hover { color: var(--on-dark) !important; }
.doc-switch a[aria-current="page"] { background: var(--cream); color: var(--navy-950) !important; }
.doc-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); margin-top: 22px; }
.doc-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--on-dark-muted); font-size: .95rem; }
.doc-meta span { display: inline-flex; align-items: center; gap: 7px; }
.doc-meta svg { width: 16px; height: 16px; color: var(--gold-light); }
.doc-lead { margin-top: 16px; max-width: 40em; color: var(--on-dark-muted); font-size: 1.06rem; }

.doc-body { padding: 56px 0 88px; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) {
  .doc-layout { grid-template-columns: 250px minmax(0, 700px); gap: 64px; justify-content: center; }
  .toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
}
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px 18px; }
.toc h2 { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.toc ol { list-style: none; margin-top: 10px; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 26px 1fr; align-items: baseline; padding: 6px 8px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: .94rem; line-height: 1.4;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--tint-gold); }
@media (max-width: 1023px) {
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

.prose { max-width: 700px; font-size: 1.09rem; line-height: 1.78; }
.prose section { scroll-margin-top: calc(var(--header-h) + 24px); padding-top: 34px; }
.prose section:first-child { padding-top: 0; }
.prose h2 { font-size: 1.5rem; display: flex; align-items: baseline; gap: 12px; }
.prose h2 .n { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--gold-text); letter-spacing: .06em; font-variant-numeric: tabular-nums; min-width: 1.6em; }
.prose p { margin-top: 10px; }
.prose b { color: var(--heading); font-weight: 650; }
.prose .callout { margin-top: 14px; padding: 18px 20px; border-radius: var(--radius-m); background: var(--tint-gold); border: 1px solid rgba(201, 162, 75, .3); }
.prose .callout p { margin-top: 0; }
.prose section + section { border-top: 1px solid var(--border); margin-top: 34px; }
.doc-next {
  margin-top: 56px; display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .doc-next { grid-template-columns: 1fr 1fr; } }
.doc-next a {
  display: block; padding: 20px 22px; border-radius: var(--radius-m); border: 1px solid var(--border);
  background: var(--surface); text-decoration: none; color: var(--text); box-shadow: var(--shadow-card);
  transition: border-color .18s ease;
}
.doc-next a:hover { border-color: var(--gold); }
.doc-next small { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.doc-next strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 1.22rem; color: var(--heading); }
.doc-next .r { text-align: right; }

/* 404 */
.notfound { padding: 96px 0 120px; text-align: center; }
.notfound h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.2rem); margin-top: 18px; }
.notfound p { margin: 14px auto 0; max-width: 32em; color: var(--on-dark-muted); }
.notfound .store-row { justify-content: center; margin-top: 28px; }

/* ------------------------------------------------------------ hareket */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ yazdırma */
@media print {
  .site-header, .site-footer, .toc, .doc-switch, .doc-next, .skip-link, .crumbs { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .aura { background: none !important; color: #000; }
  .aura::after { display: none; }
  .aura h1, .doc-meta, .doc-lead { color: #000 !important; }
  .doc-hero { padding: 0 0 12pt; }
  .doc-body { padding: 0; }
  .doc-layout { display: block; }
  .prose { max-width: none; }
  .prose h2, .prose b { color: #000; }
  a { color: #000; }
}

/* çapa hedefleri yapışkan başlığın altında kalmasın */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ------------------------------------------------------------ tur 1 düzeltmeleri */
/* mobilde kompakt özellik kartları (daha kısa sayfa) */
@media (max-width: 639px) {
  .features { gap: 10px; }
  .feature { display: grid; grid-template-columns: 40px 1fr; gap: 8px 14px; padding: 18px 16px 18px 14px; }
  .feature .ic { width: 40px; height: 40px; grid-row: span 2; }
  .feature h3 { margin-top: 0; font-size: 1.12rem; align-self: end; }
  .feature p { margin-top: 0; font-size: .95rem; }
}

/* galeri sayacı (yalnız mobil + JS açıkken) */
.gallery-nav { display: none; align-items: center; justify-content: center; gap: 16px; margin-top: 6px; }
.js .gallery-nav { display: flex; }
.gallery-count { font-variant-numeric: tabular-nums; color: var(--on-dark-muted); font-size: .95rem; min-width: 3.5em; text-align: center; }
.gnav {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .06); color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .22);
}
.gnav:hover { border-color: var(--gold-light); }
.gnav:disabled { opacity: .35; cursor: default; }
.gallery-count { font-size: 1rem; color: var(--on-dark); }
.gnav svg { width: 18px; height: 18px; }
.gallery:focus-visible { outline-offset: 6px; border-radius: 12px; }
@media (min-width: 768px) { .js .gallery-nav { display: none; } }

/* içindekiler: masaüstünde sabit liste, mobilde katlanır panel */
.toc-mob { display: none; padding: 0; }
.toc-mob > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 18px; font-weight: 600; color: var(--heading); border-radius: var(--radius-m);
}
.toc-mob > summary::-webkit-details-marker { display: none; }
.toc-mob > summary small { font-weight: 500; color: var(--muted); }
.toc-mob nav { padding: 0 10px 12px; }
.toc-mob .pm { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong); flex: none; }
.toc-mob .pm::before, .toc-mob .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--gold-text); transform: translate(-50%, -50%); }
.toc-mob .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.toc-mob[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.toc-mob ol { list-style: none; counter-reset: toc; display: grid; gap: 0; }
.toc-mob li { counter-increment: toc; }
.toc-mob a { min-height: 44px; align-items: center; }
@media (max-width: 1023px) { .toc-desk { display: none; } .toc-mob { display: block; } }
.toc a[aria-current] { background: var(--tint-gold); color: var(--heading); font-weight: 600; box-shadow: inset 2px 0 0 var(--gold); }

/* galeri öğe konumları için ofset kökü */
.gallery { position: relative; }
