/*
 * Self-hosted Geist + Geist Mono (SIL Open Font License 1.1, © Vercel).
 * NEDEN: Yasal sayfalar hiçbir üçüncü taraf isteği yapmaz (gizlilik + CSP 'self'); bu yüzden
 * Google Fonts yerine dosyalar buradan servis edilir.
 * EDGE: Kaynak dosyalarda unicode-range yoktu; cmap incelemesiyle doğrulandı:
 *   *-0 / *-2 = latin-ext (ğ ş İ …), *-1 / *-3 = latin (ı dahil). unicode-range olmadan tarayıcı
 *   yalnızca son tanımı kullanır ve Türkçe karakterler sistem fontuna düşer.
 */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/Geist-300-900-0.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/Geist-300-900-1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/GeistMono-400-700-2.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/GeistMono-400-700-3.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * bull&bear web-legal — tek stil dosyası (build sırasında fonts.css ile birleşir ve hash'lenir).
 * Brand Kit (plan §04): Midnight Black %60 · Pure White %30 · Lime %10, Geist + Geist Mono, yalnızca dark.
 * NEDEN: Tüm renk/ölçü/süre değerleri yalnızca :root token'larında; bileşen kuralları ham değer kullanmaz.
 * Gölge ve gradient yok (Brand Kit kuralı); derinlik yüzey tonuyla verilir.
 */

:root {
  color-scheme: dark;

  /* Renk token'ları — plan §04 semantik tablo ile birebir */
  --color-bg-primary: #0b0b0c;
  --color-surface-base: #141416;
  --color-surface-elevated: #1c1c1f;
  --color-surface-paper: #ffffff;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgb(255 255 255 / 62%);
  --color-text-muted: rgb(255 255 255 / 40%);
  --color-text-on-accent: #0b0b0c;
  --color-text-inverse: #0b0b0c;
  --color-text-inverse-secondary: rgb(11 11 12 / 66%);
  --color-accent-primary: #c6f432;
  --color-accent-tint: rgb(198 244 50 / 12%);
  --color-status-error: #ff5c5c;
  --color-border-subtle: rgb(255 255 255 / 12%);
  --color-border-strong: rgb(255 255 255 / 22%);
  --color-border-inverse: rgb(11 11 12 / 12%);

  /* Tipografi */
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --text-display: clamp(2.125rem, 1.6rem + 2.4vw, 3rem);
  --text-title: 1.5rem;
  --text-headline: 1.0625rem;
  --text-body: 1rem;
  --text-body-lg: 1.0625rem;
  --text-label: 0.8125rem;
  --text-caption: 0.75rem;
  --text-ticker: 0.6875rem;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-body: 1.65;
  --tracking-display: -0.03em;
  --tracking-title: -0.02em;
  --tracking-ticker: 0.12em;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Boşluk (4 pt ızgara) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Köşe, ölçü */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --border-width: 1px;
  --focus-width: 2px;
  --size-touch: 44px;
  --size-button: 52px;
  --size-button-min: 120px;
  --size-marker: 8px;
  --size-step: 28px;
  --size-wrap: 46rem;
  --size-measure: 68ch;

  /* Hareket */
  --motion-press: 120ms;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --press-scale: 0.97;
}

/* ── Temel ─────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--color-bg-primary);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

@media (min-width: 720px) {
  body {
    font-size: var(--text-body-lg);
  }
}

.wrap {
  width: 100%;
  max-width: var(--size-wrap);
  margin-inline: auto;
  /* PLATFORM: iPhone çentik/yuvarlak köşe için safe-area; viewport-fit=cover ile birlikte */
  padding-inline: max(var(--space-5), env(safe-area-inset-left)) max(var(--space-5), env(safe-area-inset-right));
}

main {
  flex: 1;
  padding-block: var(--space-8) var(--space-16);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: var(--weight-semibold);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-3);
  font-size: var(--text-title);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-title);
  scroll-margin-top: var(--space-6);
}

h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: var(--text-headline);
  line-height: var(--leading-snug);
}

p,
ul,
ol,
dl {
  margin: 0 0 var(--space-4);
  max-width: var(--size-measure);
}

ul,
ol {
  padding-inline-start: var(--space-5);
}

li + li {
  margin-top: var(--space-2);
}

strong {
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

a {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-primary);
  text-decoration-thickness: var(--border-width);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: var(--focus-width);
}

:focus-visible {
  outline: var(--focus-width) solid var(--color-accent-primary);
  outline-offset: var(--focus-width);
  border-radius: var(--radius-sm);
}

code,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.secondary {
  color: var(--color-text-secondary);
}

.skip {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: calc(-1 * var(--size-button));
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent-primary);
  color: var(--color-text-on-accent);
  border-radius: var(--radius-md);
  z-index: 1;
}

.skip:focus {
  top: var(--space-4);
}

/* ── Header / footer ───────────────────────────────────── */

.site-header {
  border-bottom: var(--border-width) solid var(--color-border-subtle);
  padding-top: env(safe-area-inset-top);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: calc(var(--size-touch) + var(--space-5));
}

.wordmark {
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-title);
  color: var(--color-text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--size-touch);
}

.wordmark .amp,
.amp {
  color: var(--color-accent-primary);
}

.lang-switch {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  border: var(--border-width) solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--size-touch);
  min-height: calc(var(--size-touch) - var(--space-2));
  padding-inline: var(--space-3);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-ticker);
  color: var(--color-text-secondary);
  text-decoration: none;
}

.lang-switch a[aria-current='true'] {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
}

.site-footer {
  border-top: var(--border-width) solid var(--color-border-subtle);
  padding-block: var(--space-8) max(var(--space-8), env(safe-area-inset-bottom));
  color: var(--color-text-secondary);
  font-size: var(--text-label);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
}

.site-footer li + li {
  margin-top: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-touch);
  color: var(--color-text-primary);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--color-accent-primary);
}

.site-footer p {
  margin-bottom: var(--space-2);
}

/* ── Sayfa başlığı ─────────────────────────────────────── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-ticker);
  letter-spacing: var(--tracking-ticker);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.eyebrow::before {
  content: '';
  width: var(--size-marker);
  height: var(--size-marker);
  border-radius: var(--radius-pill);
  background: var(--color-accent-primary);
  flex: none;
}

.lead {
  margin-top: var(--space-4);
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
}

.page-head {
  margin-bottom: var(--space-8);
}

.updated {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-text-muted);
}

/* Bölüm numarası: "terminal" hissi (plan §04 moodboard 01) */
h2 .num {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-ticker);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-ticker);
  color: var(--color-accent-primary);
}

/* ── Kartlar ───────────────────────────────────────────── */

.card {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-base);
  border: var(--border-width) solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  max-width: var(--size-measure);
}

.card > :last-child {
  margin-bottom: 0;
}

.card h3:first-child {
  margin-top: 0;
}

/* "Kâğıt rapor": paletteki %30 beyazın taşıyıcısı — yalnızca özet içerik */
.paper {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: var(--color-surface-paper);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  max-width: var(--size-measure);
}

.paper .paper-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-ticker);
  letter-spacing: var(--tracking-ticker);
  text-transform: uppercase;
  color: var(--color-text-inverse-secondary);
}

.paper strong {
  color: var(--color-text-inverse);
}

.paper a {
  color: var(--color-text-inverse);
  text-decoration-color: currentColor;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checks li {
  position: relative;
  padding-inline-start: var(--space-6);
}

.checks li + li {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: var(--border-width) solid var(--color-border-inverse);
}

.checks li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: calc(0.825em - var(--size-marker) / 2);
  width: var(--size-marker);
  height: var(--size-marker);
  border-radius: var(--radius-pill);
  background: var(--color-text-inverse);
}

.checks li + li::before {
  top: calc(var(--space-3) + 0.825em - var(--size-marker) / 2);
}

/* ── Veri listesi (saklama süreleri vb.) — tablo yerine: mobilde yatay kaydırma yok ── */

.facts {
  margin: var(--space-4) 0 var(--space-6);
  border-top: var(--border-width) solid var(--color-border-subtle);
}

.facts > div {
  display: grid;
  gap: var(--space-1);
  padding-block: var(--space-3);
  border-bottom: var(--border-width) solid var(--color-border-subtle);
}

.facts dt {
  color: var(--color-text-secondary);
}

.facts dd {
  margin: 0;
}

.facts dd .mono {
  color: var(--color-accent-primary);
}

@media (min-width: 640px) {
  .facts > div {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--space-5);
  }
}

/* ── Adımlar ───────────────────────────────────────────── */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding-inline-start: calc(var(--size-step) + var(--space-3));
  min-height: var(--size-step);
}

.steps li + li {
  margin-top: var(--space-4);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: var(--size-step);
  height: var(--size-step);
  display: grid;
  place-items: center;
  border: var(--border-width) solid var(--color-accent-primary);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-ticker);
  color: var(--color-accent-primary);
}

/* ── SSS (native <details>, JS yok) ────────────────────── */

.faq {
  margin: 0 0 var(--space-6);
  border-top: var(--border-width) solid var(--color-border-subtle);
  max-width: var(--size-measure);
}

.faq details {
  border-bottom: var(--border-width) solid var(--color-border-subtle);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--size-touch);
  padding-block: var(--space-4);
  font-size: var(--text-headline);
  font-weight: var(--weight-medium);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-title);
  line-height: 1;
  color: var(--color-accent-primary);
  transition: transform var(--motion-press) var(--motion-ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

/* ── Butonlar ve mağaza rozetleri ──────────────────────── */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--size-button);
  min-width: var(--size-button-min);
  padding-inline: var(--space-5);
  border-radius: var(--radius-lg);
  border: var(--border-width) solid var(--color-border-strong);
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition:
    transform var(--motion-press) var(--motion-ease),
    opacity var(--motion-press) var(--motion-ease);
}

.btn:active {
  transform: scale(var(--press-scale));
}

/* Tek lime dolgulu buton kuralı: sayfada yalnızca birincil aksiyon */
.btn-primary {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: var(--color-text-on-accent);
}

.btn[aria-disabled='true'] {
  color: var(--color-text-muted);
  border-style: dashed;
  cursor: default;
}

.btn .badge-sub {
  font-family: var(--font-mono);
  font-size: var(--text-ticker);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-ticker);
  text-transform: uppercase;
}

@media (max-width: 479px) {
  .actions .btn {
    flex: 1 1 100%;
  }
}

/* ── Sayfa linkleri (ana sayfa) ────────────────────────── */

.link-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0;
  border-top: var(--border-width) solid var(--color-border-subtle);
}

.link-list li + li {
  margin-top: 0;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: calc(var(--size-touch) + var(--space-4));
  border-bottom: var(--border-width) solid var(--color-border-subtle);
  text-decoration: none;
}

.link-list a::after {
  content: '›';
  font-family: var(--font-mono);
  color: var(--color-accent-primary);
}

.link-list a:hover span {
  text-decoration: underline;
  text-decoration-color: var(--color-accent-primary);
}

.hero h1 {
  font-size: var(--text-display);
}

.note {
  font-size: var(--text-label);
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
