/* Yaziio site stili. Kaynak: assets/site.css; build_site.py public/site.css'e kopyalar (public elle düzenlenmez). */

/* Yedek yazı tipi: Montserrat yüklenene dek düzen kaymasını (CLS) azaltmak için ölçüleri eşlenmiş Arial */
@font-face {
  font-family: "Montserrat Yedek";
  src: local("Arial");
  size-adjust: 113.6%;
  ascent-override: 84.9%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-Variable-latin.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --bg: #08101f;
  --surface: #0d1a30;
  --surface-2: #141c2e;
  --border: #1e2d47;
  --text: #ffffff;
  --muted: #a0b4c8;
  --dim: #8aa0b8;
  --accent: #f26506;          /* dolgu rengi (düğme, vurgu çizgisi) */
  --link: #f4982a;            /* metin olarak bağlantı/etiket */
  --link-hover: #f5bf01;
  --grad-a: #f5bf01;
  --grad-b: #f26506;
  --on-accent: #1a0e00;
  --glow: rgba(242, 101, 6, .22);
  --tint: rgba(242, 101, 6, .1);
  --tint-border: rgba(242, 101, 6, .28);
  --focus: #f5bf01;
  --fs-body: 16px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-2: #edf1f8;
    --border: #d3dcea;
    --text: #0b1426;
    --muted: #3c4c63;
    --dim: #53647b;
    --link: #a83f00;
    --link-hover: #7a2d00;
    --grad-a: #d94f00;
    --grad-b: #a83f00;
    --glow: rgba(242, 101, 6, .12);
    --tint: rgba(242, 101, 6, .09);
    --tint-border: rgba(168, 63, 0, .35);
    --focus: #0b1426;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: "Montserrat", "Montserrat Yedek", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
strong { color: var(--text); font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
@media (min-width: 640px) { .wrap { padding-left: 24px; padding-right: 24px; } }
.narrow { max-width: 780px; margin: 0 auto; }

.skip { position: absolute; left: 16px; top: 8px; transform: translateY(-200%); background: var(--accent); color: var(--on-accent); padding: 12px 18px; border-radius: 8px; font-weight: 700; z-index: 100; }
.skip:focus { transform: none; color: var(--on-accent); }

/* ---------- üst bar ---------- */
.top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--border); position: relative; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-right: auto; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 38px; height: 38px; flex: none; }
.brand .io { color: var(--accent); }

.nav { display: none; flex-basis: 100%; order: 4; flex-direction: column; gap: 2px; padding: 8px 0 12px; font-size: 15px; }
.mt-input:checked ~ .nav { display: flex; }
.nav a, .more > summary { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); border-radius: 8px; border-left: 3px solid transparent; }
.nav a:hover, .more > summary:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.nav a[aria-current="page"], .more > summary.cur { color: var(--text); border-left-color: var(--accent); background: var(--surface); }
.more > summary { cursor: pointer; list-style: none; justify-content: space-between; gap: 8px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); flex: none; }
.more[open] > summary::after { transform: rotate(-135deg); }
.more-list { display: flex; flex-direction: column; padding: 2px 0 4px 12px; }

.mt-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); order: 3; }
.burger { order: 3; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.burger:hover { border-color: var(--link); }
.bars { width: 18px; height: 14px; background:
  linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
  linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
  linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
.mt-input:checked + .burger { border-color: var(--accent); background: var(--surface); }
.mt-input:focus-visible + .burger { outline: 3px solid var(--focus); outline-offset: 3px; }

.langsw { order: 2; display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 13px; font-weight: 700; }
.langsw a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; color: var(--muted); }
.langsw a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.langsw a[aria-current="true"], .langsw a[aria-current="true"]:hover { background: var(--accent); color: var(--on-accent); }
.langsw a:focus-visible { outline-offset: -3px; }

@media (min-width: 1040px) {
  .top { flex-wrap: nowrap; gap: 16px; padding: 10px 0; }
  .brand { margin-right: 0; }
  .burger, .mt-input { display: none; }
  .nav { display: flex; flex: 1; flex-basis: auto; order: 2; flex-direction: row; justify-content: center; align-items: center; gap: 2px; padding: 0; font-size: 14px; }
  .nav a, .more > summary { padding: 0 10px; border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; white-space: nowrap; }
  .nav a[aria-current="page"], .more > summary.cur { border-left-color: transparent; border-bottom-color: var(--accent); background: transparent; }
  .more { position: relative; }
  .more > summary { justify-content: flex-start; }
  .more-list { position: absolute; right: 0; top: 100%; z-index: 30; min-width: 230px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
  .more-list a { border-radius: 8px; border-bottom: 0; }
  .langsw { order: 3; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 8vw, 84px) 0 clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: min(620px, 100%); aspect-ratio: 1; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero > * { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--link); background: var(--tint); border: 1px solid var(--tint-border); border-radius: 999px; padding: 6px 14px; margin-bottom: 24px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
h1 { font-size: clamp(30px, 6.2vw, 58px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: var(--text); max-width: 800px; margin-bottom: 20px; }
h1 .grad { background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 2.3vw, 18px); max-width: 640px; margin-bottom: 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; font-weight: 700; font-size: 15px; border-radius: 12px; padding: 12px 22px; background: linear-gradient(135deg, #f5bf01, #f26506); color: var(--on-accent); }
.btn:hover { color: var(--on-accent); filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--link); color: var(--text); }

/* ---------- bölümler ---------- */
section { padding: clamp(36px, 6vw, 56px) 0; }
h2 { font-size: clamp(22px, 3.6vw, 28px); line-height: 1.25; color: var(--text); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
h3 { overflow-wrap: anywhere; }
.sub { max-width: 640px; margin-bottom: 30px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; min-width: 0; }
.card h3 { color: var(--text); font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.card p { font-size: 14.5px; }
.card .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--link); margin-bottom: 12px; }
.card.soon { border-style: dashed; }
.brand-card { display: block; color: var(--muted); transition: border-color .15s; }
.brand-card:hover { border-color: var(--link); color: var(--muted); text-decoration: none; }
.brand-card .ext { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--link); overflow-wrap: anywhere; }
.brand-card.self { border-style: dashed; }
.brand-card.self:hover { border-color: var(--border); }

.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; counter-reset: s; }
.flow div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 18px; font-size: 14px; position: relative; }
.flow div::before { counter-increment: s; content: counter(s); display: block; font-weight: 800; font-size: 22px; color: var(--link); margin-bottom: 6px; }
.flow strong { display: block; margin-bottom: 4px; }

.pagehead { padding: clamp(28px, 5vw, 48px) 0 8px; }
.pagehead h1 { font-size: clamp(28px, 5.4vw, 46px); }
.pagehead .lead { margin-bottom: 8px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-right: 4px; color: var(--muted); }
main > section:first-of-type { padding-top: 28px; }

.answer { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 18px 20px; font-size: clamp(15px, 2vw, 16px); max-width: 860px; margin-bottom: 26px; }
.note { background: var(--surface); border-left: 3px solid var(--accent); border-radius: 8px; padding: 14px 18px; font-size: 14px; margin: 16px 0 20px; }
.note.status { max-width: 860px; margin: 22px 0 26px; }
.hero + .note.status { margin-top: 0; }
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.defs div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 18px; min-width: 0; }
.defs dt { color: var(--text); font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.defs dd { font-size: 14px; }

.steps { list-style: none; display: grid; gap: 14px; max-width: 860px; margin-top: 26px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.steps h2 { font-size: clamp(17px, 2.6vw, 19px); margin-bottom: 6px; }
.steps p { font-size: 15px; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--link); overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; }
.plain { margin: 0 0 14px 22px; max-width: 760px; }
.plain li { margin-bottom: 8px; }
section p + p { margin-top: 12px; }
section h2 + p:not(.sub) { margin-top: 4px; }
section > p { max-width: 760px; }
section > .answer { max-width: 860px; }
section > p.sub { max-width: 640px; }
section > p.fine { max-width: 860px; }

/* ---------- tablo ---------- */
.tablewrap { margin-top: 8px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
.cmp { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 14px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.cmp caption { position: absolute; left: -9999px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cmp thead th { background: var(--surface-2); color: var(--text); font-size: 13px; letter-spacing: .03em; }
.cmp tbody th { color: var(--text); font-weight: 700; width: 18%; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:nth-child(2) { border-left: 2px solid var(--tint-border); }
.fine { font-size: 13px; color: var(--dim); margin-top: 14px; }

/* ---------- SSS ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.qa { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.qa summary { cursor: pointer; padding: 14px 20px; min-height: 52px; color: var(--text); font-weight: 700; font-size: 16px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--link); font-weight: 800; font-size: 22px; line-height: 1; flex: none; }
.qa[open] summary::after { content: "\2013"; }
.qa .ans { padding: 0 20px 18px; font-size: 15px; }

.band { margin: 24px 0 48px; padding: clamp(24px, 5vw, 40px) clamp(18px, 4vw, 32px); background: linear-gradient(135deg, var(--tint), transparent); border: 1px solid var(--tint-border); border-radius: 20px; }
.band .sub { margin-bottom: 20px; }
.band .btn { margin: 0 8px 8px 0; overflow-wrap: anywhere; }
.card.contact h2 { font-size: clamp(18px, 3.4vw, 22px); margin: 4px 0 8px; overflow-wrap: anywhere; }

.updated { margin: 8px 0 40px; font-size: 13px; color: var(--dim); }

/* ---------- hukuki sayfalar ---------- */
.doc { padding: clamp(32px, 6vw, 56px) 0 72px; }
.doc h1 { font-size: clamp(26px, 5vw, 34px); margin-bottom: 8px; }
.doc .date { font-size: 13px; color: var(--dim); margin-bottom: 32px; }
.doc h2 { font-size: clamp(18px, 3vw, 21px); margin: 32px 0 10px; }
.doc h3 { font-size: 19px; margin: 28px 0 10px; color: var(--text); font-weight: 800; letter-spacing: -0.02em; }
.doc h2.h1 { font-size: clamp(26px, 5vw, 34px); margin: 0 0 8px; }
.doc p, .doc li { font-size: 15px; margin-bottom: 12px; }
.doc ul { margin: 0 0 12px 22px; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 52px 0; }

/* ---------- altbilgi ---------- */
footer { border-top: 1px solid var(--border); margin-top: 24px; padding: 30px 0 44px; font-size: 14px; color: var(--dim); }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.foot { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
.foot-brand strong { font-size: 18px; }
.foot-brand p { margin-top: 8px; max-width: 340px; }
.foot nav { display: flex; flex-direction: column; }
.foot nav a { display: flex; align-items: center; min-height: 44px; }
.foot h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin: 0 0 2px; font-weight: 700; }
.foot .fam small { display: block; font-size: 12px; color: var(--dim); margin-top: -6px; margin-bottom: 4px; }
footer .row { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--border); }
footer .row a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
footer .row .meta { display: flex; flex-wrap: wrap; gap: 0 20px; }

@media (min-width: 640px) { .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 1040px) {
  .foot { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 28px; }
  .foot-brand { grid-column: auto; }
  .foot nav a { min-height: 36px; }
}

@media (max-width: 640px) {
  .cmp { min-width: 0; border: 0; background: transparent; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp thead { position: absolute; left: -9999px; }
  .cmp tr { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 6px 0; margin-bottom: 12px; }
  .cmp tbody th { width: 100%; border: 0; padding: 12px 16px 4px; color: var(--link); }
  .cmp td { border: 0; padding: 4px 16px 8px; }
  .cmp td:nth-child(2) { border-left: 0; }
  .cmp td::before { content: attr(data-label) ": "; color: var(--text); font-weight: 700; }
  .tablewrap { overflow-x: visible; }
  .btn { width: 100%; }
  .band .btn { width: 100%; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .langsw a[aria-current="true"], .burger { border: 1px solid ButtonText; }
  h1 .grad { color: CanvasText; background: none; }
}
@media print {
  .top, .skip, footer .foot, .band { display: none; }
  body { background: #fff; color: #000; }
}
