/* ==========================================================================
   Bimarj — base: reset, tipografi, yerleşim temeli
   Tüm değerler tokens.css'ten gelir. Ham hex/px YAZILMAZ.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 var(--sp-3); line-height: var(--lh-tight); font-weight: var(--fw-bold); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p  { margin: 0 0 var(--sp-4); }

a { color: var(--color-primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

img, svg { max-width: 100%; height: auto; display: block; }

/* Parasal ve sayısal değerler dikey hizalanır */
.num, .stat-value, .result-value, td.num { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--sp-4); }
.section   { padding: var(--sp-12) 0; }
.section + .section { padding-top: 0; }

.muted     { color: var(--color-text-muted); }
.text-sm   { font-size: var(--fs-sm); }
.text-xs   { font-size: var(--fs-xs); }
.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: var(--sp-4); top: calc(var(--sp-4) * -4);
  background: var(--color-primary-500); color: var(--color-text-invert);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-md); z-index: 100;
  transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap;
}
.section-head h2 { margin-bottom: var(--sp-1); }
.section-head p  { margin: 0; color: var(--color-text-muted); font-size: var(--fs-sm); }
