/* BA Kayıt — bakayit.com
   Tasarım dili: uygulamanın kendi token'ları (lib/app/theme.dart ile birebir)
   navy #071F4A · teal #14C1D5 · Apple tipografi ölçeği · 8pt ritmi */

:root {
  --navy: #071F4A;
  --navy-80: #3D4E6F;
  --navy-disabled: #8A95AB;   /* app token — yalnız pasif öğe/çizgi, metin DEĞİL */
  --muted: #5E6980;           /* ikincil metin — WCAG AA (beyaz 5.51:1 · subtle 5.01:1) */
  --divider: #CDD2DB;
  --subtle: #F2F4F8;
  --teal: #14C1D5;
  --teal-muted: #7FDDE7;
  --teal-bg: #D0F2F6;
  --white: #FFFFFF;
  --success: #248A3D;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --text-large-title: 2.125rem;
  --text-title1: 1.75rem;
  --text-title2: 1.375rem;
  --text-title3: 1.25rem;
  --text-headline: 1.0625rem;
  --text-body: 1.0625rem;
  --text-subhead: 0.9375rem;
  --text-footnote: 0.8125rem;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

a { color: var(--navy); text-decoration-color: var(--teal); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--navy); }

/* ---------- Üst bar ---------- */
.topbar {
  border-bottom: 1px solid var(--divider);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--text-headline);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand .mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--navy);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: -0.02em;
}
.topnav { display: flex; gap: var(--space-3); font-size: var(--text-subhead); }
.topnav a { text-decoration: none; color: var(--navy-80); }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: var(--space-12) 0 var(--space-8); }
.eyebrow {
  display: inline-block;
  font-size: var(--text-footnote);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-80);
  background: var(--teal-bg);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: var(--space-3);
}
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 var(--space-3);
  max-width: 18ch;
}
.lede {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  line-height: 1.55;
  color: var(--navy-80);
  max-width: 62ch;
  margin: 0 0 var(--space-4);
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-headline);
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #0A2C66; transform: translateY(-1px); }
.btn-ghost { border-color: var(--divider); color: var(--navy); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Bölümler ---------- */
section { padding: var(--space-8) 0; }
section.tint { background: var(--subtle); }
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 var(--space-2);
}
h3 {
  font-size: var(--text-title3);
  letter-spacing: -0.01em;
  font-weight: 650;
  margin: 0 0 8px;
}
.section-lede { color: var(--navy-80); max-width: 64ch; margin: 0 0 var(--space-4); }

/* ---------- Kart ızgarası ---------- */
.grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}
.card p { margin: 0; color: var(--navy-80); font-size: var(--text-subhead); }
.card .icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--teal-bg);
  display: grid; place-items: center;
  margin-bottom: var(--space-2);
  font-size: 17px;
}

/* ---------- Adımlar ---------- */
.steps { counter-reset: step; display: grid; gap: var(--space-3); }
.step { display: flex; gap: var(--space-2); align-items: flex-start; }
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid; place-items: center;
  font-size: var(--text-subhead);
  font-weight: 700;
}
.step p { margin: 4px 0 0; color: var(--navy-80); font-size: var(--text-subhead); }

/* ---------- Uzun metin (gizlilik/destek) ---------- */
.doc { padding: var(--space-6) 0 var(--space-12); }
.doc-meta {
  font-size: var(--text-footnote);
  color: var(--muted);
  border-bottom: 1px solid var(--divider);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
}
.doc h2 { margin-top: var(--space-6); scroll-margin-top: 80px; }
.doc h2:first-of-type { margin-top: var(--space-3); }
.doc p, .doc li { color: var(--navy-80); max-width: 72ch; }
.doc strong { color: var(--navy); }
.doc ul { padding-left: 1.15rem; }
.doc li { margin-bottom: 6px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-2) 0 var(--space-3);
  font-size: var(--text-subhead);
  display: block;
  overflow-x: auto;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
th { background: var(--subtle); font-weight: 650; color: var(--navy); white-space: nowrap; }
td { color: var(--navy-80); }

.note {
  background: var(--subtle);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-2) var(--space-3);
  margin: var(--space-3) 0;
}
.note p { margin: 0; }

/* ---------- SSS ---------- */
details {
  border-bottom: 1px solid var(--divider);
  padding: var(--space-2) 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-headline);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); font-weight: 700; font-size: 1.25rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--navy-80); margin: var(--space-1) 0 0; max-width: 72ch; }

/* ---------- İletişim ---------- */
.contact-card {
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: var(--white);
}
.contact-card .label {
  font-size: var(--text-footnote);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--muted);
}
.contact-card .value { font-size: var(--text-title3); font-weight: 650; margin: 4px 0 0; }

/* ---------- Alt bilgi ---------- */
footer {
  border-top: 1px solid var(--divider);
  padding: var(--space-6) 0;
  font-size: var(--text-subhead);
  color: var(--navy-80);
}
footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
}
footer a { color: var(--navy-80); text-decoration: none; }
footer a:hover { color: var(--navy); text-decoration: underline; }
footer .legal { font-size: var(--text-footnote); color: var(--muted); margin-top: var(--space-3); }
footer nav { display: flex; gap: var(--space-3); flex-wrap: wrap; }

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