/*  Randomy — randomy.app
 *
 *  Tek stil dosyası. Sayfaların hepsi bunu kullanıyor: yasal metinler
 *  yılda birkaç kez değişiyor ve her sayfaya gömülü bir kopya olsaydı,
 *  tek bir renk düzeltmesi altı dosyada birden aranmak zorunda kalırdı.
 *
 *  Palet doğrudan uygulamanın kendi renklerinden geliyor
 *  (Randomy/Theme/RandomyColors.swift). Siteyle uygulamanın aynı ürün
 *  olduğu, ekran değiştirirken renk değişmediği için anlaşılıyor.
 */

/* ---------- Belirteçler ---------- */

:root {
  color-scheme: light dark;

  --brand: #5B4BE1;
  --brand-soft: #8B7CFF;
  --brand-wash: #EFEDFD;
  --accent: #FF5F86;

  --ground: #F6F6F9;
  --surface: #FFFFFF;
  --surface-sunk: #F0F0F5;

  --ink: #14141A;
  --ink-soft: #5A5A6B;
  --ink-faint: #8E8EA0;

  --rule: #E4E4EC;
  --stroke: #DCDCE6;

  --warn: #B36A00;
  --warn-wash: #FCF3E4;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 26, .04), 0 10px 30px -18px rgba(20, 20, 26, .35);

  --font-ui: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

/* Koyu tema iki yoldan da gelebilir: sistem tercihi (damga YOK) ve
   ileride eklenecek bir düğmenin bastığı damga. İkisi ayrı yazılmazsa,
   sistemi koyu olan ziyaretçi açık temanın metnini koyu zeminde görür. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8E85FF;
    --brand-soft: #6E63D8;
    --brand-wash: #1E1B33;
    --accent: #FF7E9D;

    --ground: #0D0D12;
    --surface: #17171F;
    --surface-sunk: #21212B;

    --ink: #F4F4F8;
    --ink-soft: #A5A5B8;
    --ink-faint: #70707F;

    --rule: #2B2B36;
    --stroke: #33333F;

    --warn: #FFB84D;
    --warn-wash: #2A2113;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -18px rgba(0, 0, 0, .8);
  }
}

:root[data-theme="dark"] {
  --brand: #8E85FF;
  --brand-soft: #6E63D8;
  --brand-wash: #1E1B33;
  --accent: #FF7E9D;
  --ground: #0D0D12;
  --surface: #17171F;
  --surface-sunk: #21212B;
  --ink: #F4F4F8;
  --ink-soft: #A5A5B8;
  --ink-faint: #70707F;
  --rule: #2B2B36;
  --stroke: #33333F;
  --warn: #FFB84D;
  --warn-wash: #2A2113;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -18px rgba(0, 0, 0, .8);
}

/* ---------- Temel ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }

/* Klavye kullanıcısı için içeriğe atlama. Görünmez ama odaklanınca
   beliriyor: her sayfada aynı gezinti bağlantıları var ve onları her
   seferinde geçmek zorunda kalmak yorucu. */
.skip {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

/* ---------- Üst çubuk ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.site-head .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 18px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.brand .mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 800;
  flex: none;
}

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 7px 11px; border-radius: 999px;
}
.site-nav a:hover { background: var(--surface-sunk); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--brand-wash); color: var(--brand); font-weight: 600; }

@media (max-width: 720px) {
  .site-head .wrap { flex-wrap: wrap; padding-block: 12px; gap: 10px; }
  .site-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .site-nav a { white-space: nowrap; }
}

/* ---------- Ana sayfa ---------- */

.hero { padding: 84px 0 64px; }
.hero-grid {
  display: grid; gap: 48px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
@media (max-width: 900px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: var(--brand);
  background: var(--brand-wash);
  padding: 6px 13px; border-radius: 999px;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.04; letter-spacing: -.035em;
  font-weight: 700; margin: 0 0 20px;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lede {
  font-family: var(--font-text);
  font-size: 19px; line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch; margin: 0 0 30px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  padding: 13px 22px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--stroke); }
.btn-ghost:hover { background: var(--surface-sunk); }

.note-inline { font-size: 13px; color: var(--ink-faint); }

/* Telefon çerçevesi. Ekran görüntüsü YOK: uygulama henüz yayında değil
   ve gerçek olmayan bir ekran görüntüsü hem yanıltıcı hem de App Store
   incelemesinde tutarsızlık olarak okunabilir. Yerine ürünün ne yaptığını
   anlatan sade bir kart duruyor. */
.phone {
  justify-self: center;
  width: 100%; max-width: 300px;
  aspect-ratio: 9 / 17.5;
  border-radius: 40px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.phone::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 62%);
  pointer-events: none;
}
/* `margin-bottom: auto` mesajları AŞAĞI yaslıyor. Yukarıdan başlasalardı
   çerçevenin altında boş bir alan kalıyordu; gerçek bir sohbette de
   mesajlar alttan birikir. */
.phone-notch {
  width: 84px; height: 6px; border-radius: 999px;
  background: var(--rule);
  margin: 2px auto auto; flex: none;
}
.chip {
  position: relative;
  background: var(--surface-sunk);
  border-radius: 14px; padding: 12px 14px;
  font-size: 13.5px; line-height: 1.45;
}
.chip strong { display: block; font-size: 12px; color: var(--brand); margin-bottom: 3px; font-weight: 600; }
.chip.self { background: var(--brand); color: #fff; }
.chip.self strong { color: rgba(255,255,255,.78); }
.chip-code { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }

/* ---------- Özellik bölümü ---------- */

.section { padding: 64px 0; border-top: 1px solid var(--rule); }
.section-head { max-width: 54ch; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15;
  letter-spacing: -.028em; font-weight: 700; margin: 0 0 12px;
  text-wrap: balance;
}
.section-head p {
  font-family: var(--font-text); font-size: 17px;
  color: var(--ink-soft); margin: 0;
}

.cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  margin: 0 0 8px;
}
.card p {
  font-family: var(--font-text); font-size: 15.5px; line-height: 1.6;
  color: var(--ink-soft); margin: 0;
}
.card .ico {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand-wash); color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card .ico svg { width: 19px; height: 19px; }

/* ---------- Belge sayfaları ---------- */

.doc-head { padding: 56px 0 34px; }
.doc-head h1 {
  font-size: clamp(30px, 4.6vw, 42px);
  margin-bottom: 14px;
}
.doc-meta {
  display: flex; gap: 8px 20px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-faint);
}
.doc-meta strong { color: var(--ink-soft); font-weight: 600; }

/* İki sütun: solda ölçüsü sabitlenmiş metin, sağda içindekiler.
 *
 * Metin sütunu `1fr` DEĞİL, doğrudan satır ölçüsü kadar: `1fr` olduğunda
 * sütun geniş kalıyor ama içindeki yazı `max-width` yüzünden dar kalıyordu
 * ve aradaki fark, iki sütunun ortasında hiçbir işi olmayan büyük bir
 * boşluk olarak görünüyordu. `space-between` artan yeri o boşluğa değil
 * iki sütunun arasına dağıtıyor, böylece içindekiler sağ kenara yaslanıyor.
 */
.doc-layout {
  display: grid; gap: 52px;
  grid-template-columns: minmax(0, 68ch) 234px;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 80px;
}

/* Belge sayfaları site genelinden DAR.
 *
 * Genel kapsayıcı 1120 punto ve orada iki sütun (640 metin + 234 liste)
 * yan yana durunca ortada üç yüz puntoluk, hiçbir işi olmayan bir boşluk
 * kalıyordu. Başlık da aynı sınırı alıyor; yalnızca birine verilseydi
 * başlıkla metnin sol kenarı birbirinden kayardı. */
.doc-head, .doc-layout { max-width: 1000px; }
@media (max-width: 1000px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}

/* İçindekiler SAĞDA: yasal metinlerde okuma yönü soldan gelir ve
   listeyi sola koymak, ilk bakışta metnin kendisiymiş gibi okunuyor.
   Dar ekranda tamamen gizleniyor — bağlantılar zaten metnin içinde. */
.toc {
  position: sticky; top: 88px;
  font-size: 13.5px;
}
.toc-title {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 6px 0 6px 32px;
  color: var(--ink-soft); text-decoration: none;
  border-left: 2px solid var(--rule);
  position: relative; line-height: 1.4;
}
/* Sayı SAĞA yaslı ve sabit genişlikte: sola yaslı olduğunda iki basamaklı
   sayılar (10, 11…) başlığa yapışıyordu. */
.toc a::before {
  content: counter(toc);
  position: absolute; left: 8px; width: 16px; text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint); font-size: 12px;
}
.toc a:hover { color: var(--brand); border-left-color: var(--brand-soft); }

.doc {
  font-family: var(--font-text);
  font-size: 17px; line-height: 1.72;
  max-width: 68ch;
  color: var(--ink);
}
.doc > section { scroll-margin-top: 88px; }
.doc h2 {
  font-family: var(--font-ui);
  font-size: 22px; font-weight: 600; letter-spacing: -.02em;
  line-height: 1.25;
  margin: 46px 0 14px; padding-top: 4px;
  text-wrap: balance;
}
.doc > section:first-of-type h2 { margin-top: 0; }
.doc h3 {
  font-family: var(--font-ui);
  font-size: 16.5px; font-weight: 600;
  margin: 30px 0 8px;
}
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--ink-faint); }
.doc strong { font-weight: 600; }
.doc code {
  font-family: var(--font-mono); font-size: .87em;
  background: var(--surface-sunk); padding: 2px 6px; border-radius: 5px;
}

.doc table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-ui); font-size: 14.5px;
  margin: 0 0 20px;
}
.doc .table-scroll { overflow-x: auto; margin-bottom: 20px; }
.doc .table-scroll table { margin-bottom: 0; min-width: 460px; }
.doc th, .doc td {
  text-align: left; padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.doc th {
  font-weight: 600; font-size: 12px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-faint);
}
.doc td:first-child { font-weight: 500; padding-right: 20px; }

.callout {
  font-family: var(--font-ui); font-size: 15px; line-height: 1.6;
  background: var(--surface); border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px; margin: 0 0 22px;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--warn); background: var(--warn-wash); }
.callout-title { font-weight: 600; display: block; margin-bottom: 4px; }

/* ---------- SSS ---------- */

.faq { max-width: 68ch; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 34px 16px 0;
  font-weight: 600; font-size: 16px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--ink-faint);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer {
  font-family: var(--font-text); font-size: 16px; line-height: 1.68;
  color: var(--ink-soft);
  padding: 0 30px 18px 0;
}
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- İletişim kutusu ---------- */

.contact {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 28px;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 8px;
}
.contact h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.contact p { margin: 0; font-size: 14.5px; color: var(--ink-soft); font-family: var(--font-text); }
.contact a { font-weight: 600; word-break: break-word; }

/* ---------- Alt bilgi ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding: 48px 0 40px;
  font-size: 14px;
}
.foot-grid {
  display: grid; gap: 32px;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-grid h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-faint);
  margin: 0 0 14px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--ink-soft); text-decoration: none; }
.foot-grid a:hover { color: var(--brand); text-decoration: underline; }
.foot-about p {
  font-family: var(--font-text);
  color: var(--ink-soft); margin: 12px 0 0; max-width: 38ch;
}
.foot-legal {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint); font-size: 13px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ---------- 404 ---------- */

.center-page {
  min-height: 62vh;
  display: grid; place-content: center; text-align: center;
  padding: 60px 0;
}
.center-page h1 { font-size: clamp(30px, 5vw, 44px); }
.center-page p { font-family: var(--font-text); color: var(--ink-soft); max-width: 42ch; margin: 0 auto 26px; }

/* ---------- Küçük yardımcılar ---------- */
/*
 * Satır içi `style=` yerine sınıf: hepsi kaldırılınca içerik güvenlik
 * politikasından `style-src 'unsafe-inline'` izni de kaldırılabildi.
 * Tek bir satır içi stil kalsaydı o izin zorunlu olurdu ve izin açıkken
 * sayfaya sokulan herhangi bir stil de çalışırdı.
 */
.mt-sm { margin-top: 18px; }
.mb-lg { margin-bottom: 26px; }
.pb-page { padding-bottom: 80px; }
.section-first { border-top: none; padding-top: 52px; }
.cta-center { justify-content: center; }
.foot-legal-bare { margin-top: 0; border-top: none; padding-top: 0; }
