/* Kutup uygulama sayfaları: ortak stil.
   Kalıp ve kullanım: belgeler/uygulama-sayfasi-kalibi.md
   Tanıtım (index.html) ve hukuki/destek sayfaları bu tek dosyayı kullanır; sayfalara satır içi stil yazılmaz. */

@font-face { font-family: Geist; font-weight: 300 700; font-display: swap; src: url(fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Geist; font-weight: 300 700; font-display: swap; src: url(fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
/* General Sans: ITF Free Font License; dosya resmî paketteki gibi kullanılır, küçültülmez veya dönüştürülmez */
@font-face { font-family: "General Sans"; font-weight: 600; font-display: swap; src: url(fonts/general-sans-semibold.woff2) format("woff2"); }

:root {
  --night: #011634;
  --ice: #e3ecf7;
  --ice-mid: rgba(227, 236, 247, .82);
  --ice-text: rgba(227, 236, 247, .76);
  --ice-soft: rgba(227, 236, 247, .58);
  --line: rgba(227, 236, 247, .14);
  --aurora: #bfe9da;
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "General Sans", var(--sans);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --w: 1080px;
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* Zemin rengi html'de: Safari durum ve alt çubuğu bu rengi alır. body saydam kalır ki z-index:-1 katmanları örtmesin */
html { -webkit-text-size-adjust: 100%; background: var(--night); scrollbar-width: none; }
/* Ana sayfadaki gibi kaydırma çubuğu görünmez; sayfa yine kaydırılır */
::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html:has(.buyutec[open]) { overflow: hidden; }
body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  background: transparent;
  color: var(--ice);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }

/* Arka plan: üstte ana sayfa göğünden bir şerit, bütün sayfada ince baskı dokusu */
.gok {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 380px;
  z-index: -1;
  background: url(gece-1600.webp) 72% 0 / cover no-repeat;
  background-image: image-set(url(gece-1600.avif) type("image/avif"), url(gece-1600.webp) type("image/webp"));
  opacity: .5;
  /* Tepesi saf gece rengiyle başlar, durum çubuğunun altından itibaren belirir: Safari'nin çubuk rengiyle arada sınır oluşmaz */
  -webkit-mask: linear-gradient(transparent, transparent env(safe-area-inset-top, 0px), #000 calc(env(safe-area-inset-top, 0px) + 72px), #000 30%, transparent);
  mask: linear-gradient(transparent, transparent env(safe-area-inset-top, 0px), #000 calc(env(safe-area-inset-top, 0px) + 72px), #000 30%, transparent);
  pointer-events: none;
}
.belge-sayfasi .gok { height: 260px; opacity: .38; }
/* Doku sabit (fixed) değil: Safari ekran kenarına değen sabit öğelerin rengini çubuklara taşıyordu */
.gren {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  -webkit-mask: linear-gradient(transparent, transparent env(safe-area-inset-top, 0px), #000 calc(env(safe-area-inset-top, 0px) + 72px));
  mask: linear-gradient(transparent, transparent env(safe-area-inset-top, 0px), #000 calc(env(safe-area-inset-top, 0px) + 72px));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sar { width: min(100% - 44px, var(--w)); margin-inline: auto; }

/* Üst şerit: Kutup logosu ve sağda bağlantı */
.ust { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: max(28px, env(safe-area-inset-top)); }
.logo {
  display: block;
  width: 112px;
  aspect-ratio: 1401 / 572;
  background: var(--ice);
  -webkit-mask: url(kutup-logo.svg) left center / contain no-repeat;
  mask: url(kutup-logo.svg) left center / contain no-repeat;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ust-baglanti, .alt nav a, .yukari {
  font-size: 13px;
  color: var(--ice-mid);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 1px;
  transition: background-size .45s var(--ease), color .3s;
}
.ust-baglanti:hover, .alt nav a:hover, .yukari:hover { color: var(--ice); background-size: 100% 1px; }

/* Tanıtım sayfası */
.tanitim { padding-top: clamp(48px, 9vh, 96px); }
.simge {
  width: 104px;
  height: 104px;
  border-radius: 23%;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35), 0 0 0 1px var(--line);
}
.etiket {
  margin-top: 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ice-soft);
}
.tanitim h1 {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -.03em;
}
.slogan { margin-top: 12px; font-size: clamp(18px, 2vw, 22px); font-weight: 500; color: var(--ice-mid); }
.aciklama { margin-top: 18px; max-width: 46ch; font-size: 15px; line-height: 1.6; color: var(--ice-soft); }
.magazalar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.magaza {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(227, 236, 247, .28);
  background: rgba(1, 22, 52, .6);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .3s, border-color .3s, color .3s;
}
.magaza:hover { background-color: rgba(227, 236, 247, .1); border-color: rgba(227, 236, 247, .45); }
.magaza:first-child { background: var(--ice); border-color: var(--ice); color: var(--night); }
.magaza:first-child:hover { background: #fff; border-color: #fff; }
.magaza span { font-size: 12px; opacity: .7; }

/* Ekran görüntüleri: yana kaydırılan sıra, kenarları sayfa hizasında */
.ekranlar { position: relative; margin-top: clamp(48px, 8vh, 80px); }
.ekranlar ul {
  display: flex;
  gap: 16px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(22px, calc((100% - var(--w)) / 2));
  padding: 4px max(22px, calc((100% - var(--w)) / 2)) 12px;
  scrollbar-width: none;
}
.ekranlar ul::-webkit-scrollbar { display: none; }
.ekranlar ul:focus-visible { outline: 2px solid var(--aurora); outline-offset: -2px; border-radius: 20px; }
.ekranlar li { flex: 0 0 auto; width: clamp(150px, 40vw, 220px); scroll-snap-align: start; }
.ekranlar img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); cursor: zoom-in; transition: transform .4s var(--ease); }
.ekranlar img:hover { transform: translateY(-3px); }
.ekranlar img:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; }

/* Kenar yumuşatma: satırın devam eden ucu geceye erir (durum sınıflarını uygulama.js verir) */
/* Erime genişliği; ara durak erimeyi yumuşak ama belirgin yapar */
.ekranlar { --erime: 160px; }
.ekranlar ul,
.ekranlar.basta ul {
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - var(--erime)), rgba(0, 0, 0, .45) calc(100% - var(--erime) * .45), transparent);
  mask: linear-gradient(90deg, #000 calc(100% - var(--erime)), rgba(0, 0, 0, .45) calc(100% - var(--erime) * .45), transparent);
}
.ekranlar:not(.basta):not(.sonda):not(.sigiyor) ul {
  -webkit-mask: linear-gradient(90deg, transparent, rgba(0, 0, 0, .45) calc(var(--erime) * .45), #000 var(--erime), #000 calc(100% - var(--erime)), rgba(0, 0, 0, .45) calc(100% - var(--erime) * .45), transparent);
  mask: linear-gradient(90deg, transparent, rgba(0, 0, 0, .45) calc(var(--erime) * .45), #000 var(--erime), #000 calc(100% - var(--erime)), rgba(0, 0, 0, .45) calc(100% - var(--erime) * .45), transparent);
}
.ekranlar.sonda ul {
  -webkit-mask: linear-gradient(90deg, transparent, rgba(0, 0, 0, .45) calc(var(--erime) * .45), #000 var(--erime));
  mask: linear-gradient(90deg, transparent, rgba(0, 0, 0, .45) calc(var(--erime) * .45), #000 var(--erime));
}
.ekranlar.sigiyor ul { -webkit-mask: none; mask: none; }

/* Yuvarlak düğmeler: satır okları ve büyütme penceresi aynı dili kullanır (ince çerçeve, ince çizgili ikon) */
.kaydir, .buyutec button {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(227, 236, 247, .24);
  background: rgba(1, 22, 52, .72);
  color: var(--ice-mid);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
  transition: opacity .35s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.kaydir svg, .buyutec button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kaydir:hover, .buyutec button:hover { color: var(--ice); background-color: rgba(227, 236, 247, .1); border-color: rgba(227, 236, 247, .45); }
.kaydir:focus-visible, .buyutec button:focus-visible { outline: 1px solid var(--aurora); outline-offset: 3px; }
.kaydir:disabled, .ekranlar.sigiyor .kaydir { opacity: 0; pointer-events: none; }
/* Satır okları: görsel yüksekliğinin ortasında, satırın gerçek uçlarında (geceye eriyen bölgede) */
.kaydir { top: calc(50% - 26px); }
.kaydir-geri { left: 20px; }
.kaydir-ileri { right: 20px; }

/* Büyütme penceresi */
.buyutec { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ice); overflow: hidden; }
.buyutec[open] { display: grid; place-items: center; }
.buyutec:focus { outline: none; }
.buyutec::backdrop { background: rgba(1, 10, 26, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.buyutec img { max-width: min(88vw, 450px); max-height: 82vh; max-height: 82dvh; width: auto; height: auto; border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.buyutec-sayac { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 13px; letter-spacing: .04em; color: var(--ice-soft); }
.buyutec-kapat { top: max(20px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); }
.buyutec-geri { left: max(16px, calc(50% - 340px)); top: calc(50% - 22px); }
.buyutec-ileri { right: max(16px, calc(50% - 340px)); top: calc(50% - 22px); }
/* Dokunmatikte görseller parmakla değişir; yan oklar yok */
@media (hover: none) { .buyutec-ok { display: none !important; } }
@media (max-width: 700px) { .ekranlar { --erime: 56px; } }
/* Fareli cihazlarda oklar tam görsel adımıyla kaydırır; yapışma kapalı (yumuşak kaydırmayla çekişmesin) */
@media (hover: hover) and (pointer: fine) {
  .ekranlar ul { scroll-snap-type: none; }
}

/* Hukuki ve destek sayfaları */
.belge { width: min(100% - 44px, 680px); margin-inline: auto; padding-top: clamp(44px, 8vh, 80px); }
.belge .etiket { margin-top: 0; }
.belge h1 {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.belge .tarih, .belge .alt-baslik { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--ice-soft); }
.belge .alt-baslik { max-width: 56ch; }

/* İçindekiler: numaralı bölümleri olan uzun sayfalarda, açılır kutu */
.icindekiler { margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; background: rgba(227, 236, 247, .03); }
.icindekiler summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ice-mid);
  cursor: pointer;
  list-style: none;
  border-radius: 12px;
}
.icindekiler summary::-webkit-details-marker { display: none; }
.icindekiler summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--ice-soft); transition: rotate .3s var(--ease); }
.icindekiler[open] summary::after { rotate: 45deg; }
.icindekiler summary:focus-visible { outline: 2px solid var(--aurora); outline-offset: 2px; }
.icindekiler ul { list-style: none; padding: 2px 18px 16px; }
.icindekiler li + li { margin-top: 6px; }
.icindekiler a { font-size: 14px; line-height: 1.5; color: var(--ice-soft); text-decoration: none; transition: color .2s; }
.icindekiler a:hover { color: var(--ice); }
@media (min-width: 700px) { .icindekiler ul { columns: 2; column-gap: 28px; } .icindekiler li { break-inside: avoid; } }

/* Eski sayfalardan olduğu gibi aktarılan içerik sınıfları */
.icerik { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.75; color: var(--ice-text); }
.icerik .section-title, .icerik .subsection-title { scroll-margin-top: 24px; }
.icerik p + p, .icerik p + ul, .icerik p + ol, .icerik ul + p, .icerik ol + p { margin-top: 14px; }
.icerik ul, .icerik ol { margin-top: 12px; padding-left: 1.3em; }
.icerik li + li { margin-top: 6px; }
.icerik li::marker { color: var(--ice-soft); }
.icerik strong { color: var(--ice); font-weight: 600; }
.icerik a { color: var(--ice); text-decoration: underline; text-decoration-color: rgba(227, 236, 247, .35); text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.icerik a:hover { color: var(--aurora); text-decoration-color: currentColor; }
.icerik .intro { font-size: 16.5px; color: var(--ice-mid); }
.icerik .section { margin-top: 44px; }
.icerik > .section:first-child { margin-top: 0; }
.icerik .section-title { margin-bottom: 14px; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--ice); }
.icerik .subsection-title { margin: 32px 0 6px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ice-soft); }
.icerik .section-content h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; color: var(--ice); }
.icerik .highlight-box { margin: 20px 0; padding: 16px 20px; border-left: 2px solid var(--aurora); border-radius: 0 10px 10px 0; background: rgba(191, 233, 218, .06); }
.icerik .faq-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.icerik .faq-question { font-size: 16px; font-weight: 600; color: var(--ice); }
.icerik .faq-answer { margin-top: 8px; }
.icerik .quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.icerik .quick-link-card a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: background-color .3s, border-color .3s;
}
.icerik .quick-link-card a:hover { color: var(--ice); background: rgba(227, 236, 247, .05); border-color: rgba(227, 236, 247, .3); }
.icerik .contact-box { margin-top: 48px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: rgba(227, 236, 247, .03); }
.icerik .contact-box-title { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ice); }
.icerik .contact-box-text { margin: 8px 0 20px; }
.icerik .contact-email-button {
  display: inline-flex;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--night);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .3s;
}
.icerik .contact-email-button:hover { background: #fff; color: var(--night); }

/* Alt bilgi */
.alt { margin-top: auto; padding-top: 72px; }
.alt .sar, .belge-sayfasi .alt .sar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.belge-sayfasi .alt .sar { width: min(100% - 44px, 680px); }
.alt nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.alt nav a[aria-current="page"] { color: var(--ice); background-size: 100% 1px; }
.alt-iletisim { width: 100%; font-size: 13px; color: var(--ice-soft); }
.alt-iletisim a { color: var(--ice-mid); }
.telif { font-size: 12px; color: var(--ice-soft); }

/* Hareket: ana sayfadaki gibi sırayla hafifçe gelir */
@media (prefers-reduced-motion: no-preference) {
  .tanitim > *, .ekranlar, .belge > * { animation: rise 1s var(--ease) both; }
  .tanitim > :nth-child(2), .belge > :nth-child(2) { animation-delay: .08s; }
  .tanitim > :nth-child(3), .belge > :nth-child(3) { animation-delay: .16s; }
  .tanitim > :nth-child(4), .belge > :nth-child(4) { animation-delay: .24s; }
  .tanitim > :nth-child(5) { animation-delay: .32s; }
  .tanitim > :nth-child(6) { animation-delay: .4s; }
  .ekranlar { animation-delay: .5s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Yazdırma: hukuki metin beyaz kâğıtta siyah, süsler ve gezinti olmadan */
@media print {
  :root { --ice: #000; --ice-mid: #222; --ice-text: #222; --ice-soft: #555; --line: #ccc; }
  body { background: #fff; color: #000; }
  .gok, .gren, .ust, .alt nav, .yukari, .icindekiler, .magazalar, .ekranlar { display: none !important; }
  .belge, .tanitim { padding-top: 0; }
  .belge > *, .tanitim > * { animation: none !important; }
  .icerik a { color: #000; }
  .icerik .contact-box, .icerik .quick-link-card a { border-color: #ccc; background: none; }
  .icerik .contact-email-button { background: none; color: #000; padding: 0; text-decoration: underline; }
}

/* Dokunmatik cihazlarda doku yalnız üstteki gök bölümünde: sayfanın geri kalanı saf zemin rengi kalır,
   Safari'nin alt çubuğu (zemin rengiyle boyanır) ile arada renk farkı oluşmaz */
@media (hover: none) {
  .gren {
    bottom: auto;
    height: 420px;
    -webkit-mask: linear-gradient(transparent, transparent env(safe-area-inset-top, 0px), #000 calc(env(safe-area-inset-top, 0px) + 72px), #000 55%, transparent);
    mask: linear-gradient(transparent, transparent env(safe-area-inset-top, 0px), #000 calc(env(safe-area-inset-top, 0px) + 72px), #000 55%, transparent);
  }
}

@media (max-width: 700px) {
  .gok {
    height: 340px;
    opacity: .45;
    background: url(gece-dikey-720.webp) 70% 0 / 100% auto no-repeat;
    background-image: image-set(url(gece-dikey-720.avif) type("image/avif"), url(gece-dikey-720.webp) type("image/webp"));
  }
}
@media (max-width: 600px) {
  .logo { width: 96px; }
  .simge { width: 88px; height: 88px; }
  .icerik { font-size: 15px; }
  .icerik .contact-box { padding: 22px; }
  .alt .sar { flex-direction: column; align-items: flex-start; }
}
