/* Duyumco — formlu sayfalar (Tasarım 5): kayıt (/kayit) ve iletişim (/iletisim). pages.js › pageAssets ile yalnızca bu iki sayfa yükler.
   İlke: form sayfa açılınca ekranda. Masaüstünde üst menünün hemen altında iki sütun (solda kısa başlık + yan bilgi, sağda
   form kartı; 1366×768'de gönder düğmesi dahil bütün form görünür). Telefonda kısa başlık → form → yan bilgi.
   İçerik: 1 sayfa düzeni · 2 form parçaları · 3 yapışkan gönder çubuğu (telefon) · 4 iletişim kanalları · 5 tablet ve telefon.
   Kayda özel parçalar (üç adım kartı, güvenceler): signup.css. Değerler: tokens.css · kurallar: docs/tasarim-dili.md */

/* ════════════════ 1 · Sayfa düzeni ════════════════
   <section class="fpage"><div class="wrap fsplit [fsplit--panel]">
     .fsplit__intro (başlık + tek cümle) · .fsplit__card (form kartı) · .fsplit__side (yan bilgi)
   DOM sırası telefon sırasıdır; masaüstünde giriş ve yan bilgi solda alt alta, kart sağda iki satırı kaplar.
   --panel: sol sütunun arkasında açık mavi zemin (kayıt). */
.fpage { --hh: 76px; position: relative; isolation: isolate; margin-top: calc(var(--hh) * -1); padding: calc(var(--hh) + clamp(16px, 2.4vw, 36px)) 0 clamp(56px, 7vw, 96px); }
.fpage::before { content: ''; position: absolute; z-index: -2; inset: 0; background: var(--grad-navy); }
/* Lacivert zemindeki yan yazılar (telefonda sayfa beyazdır, yalnızca giriş lacivert) */
@media (min-width: 681px) {
  .fpage__foot, .ct__side-h, .ci-legal { --ink: #fff; --soft: var(--on-navy-2); --muted: var(--on-navy-2); --faint: var(--on-navy-3); --line-2: #5c7ab0; }
  .fpage .formcard { box-shadow: 0 50px 100px -50px rgba(2, 8, 24, 0.9); }
}
@media (min-width: 1021px) { .sgn__trust { --ink: #fff; } }
@media (max-width: 980px) { .fpage { --hh: 64px; } }
.fsplit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: 'intro card' 'side card'; gap: 0 clamp(20px, 3vw, 48px); align-items: start; }
.fsplit__intro { grid-area: intro; min-width: 0; padding-top: 8px; }
.fsplit__card { grid-area: card; }
.fsplit--panel .fsplit__card { align-self: stretch; } /* kartın alt kenarı soldaki zeminle hizalı */
.fsplit__side { grid-area: side; align-self: stretch; min-width: 0; padding-top: 24px; }
.fsplit__title { font-size: clamp(32px, 3vw, 44px); line-height: 1.08; }
.fsplit__lead { max-width: 46ch; margin-top: 12px; font-size: 16.5px; line-height: 1.55; color: var(--soft); text-wrap: pretty; }
/* Açık mavi sol zemin: ızgaranın kendi öğesi, sol sütunun iki satırını kaplar (yüksekliği kartla eşitlenir) */
.fsplit--panel { gap: 0 16px; }
.fsplit--panel::before { content: ''; grid-column: 1; grid-row: 1 / 3; align-self: stretch; border-radius: var(--r-lg); background: rgba(166, 202, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(166, 202, 255, 0.16); }
.fsplit--panel .fsplit__intro { padding: 30px 32px 0; }
.fsplit--panel .fsplit__side { padding: 20px 32px 26px; }
/* Altta tek satır (kayıt: çok şube / e-posta / telefon); parçalar <span> içinde, aralarında nokta. Telefonda alt alta. */
.fpage__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 24px; font-size: 14.5px; color: var(--muted); text-align: center; }
.fpage__foot > span + span::before { content: '·'; margin-right: 10px; color: var(--faint); }
.fpage__foot a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.fpage__foot a:hover { text-decoration-color: var(--ink); }
/* Kart kısa ve hemen kullanılır: site.js beklenmeden ilk boyamada gelir */
.js .fsplit__card { animation: f-in 420ms var(--ease) both; }
@keyframes f-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
.fpage [data-reveal] { transition-duration: 480ms; }
.js .fpage [data-reveal]:not([data-reveal='fade']) { transform: translate3d(0, 12px, 0); }
.js .fpage [data-reveal].is-in { transform: none; }
/* WhatsApp düğmesi sayfanın tepesinde gizli (telefondaki kuralın aynısı, chrome.css): kısa ekranda gönder düğmesinin
   üstüne binmesin; kaydırınca belirir. Kanallar iletişim sayfasında zaten solda. */
@supports selector(:has(*)) {
  html:not(:has(#header.is-stuck)) .wa-fab { opacity: 0; pointer-events: none; transform: translate3d(0, 12px, 0) scale(0.9); }
}

/* ════════════════ 2 · Form parçaları ════════════════ */
.formcard { position: relative; min-width: 0; padding: 32px 36px 30px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-2); }
.ftabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: var(--r-pill); background: var(--surface-2); }
.ftabs button { height: 44px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; color: var(--soft); transition: background var(--t-2) var(--ease), color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease); -webkit-tap-highlight-color: transparent; }
.ftabs button:hover { color: var(--ink); }
.ftabs button[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.fhead { display: grid; gap: 4px; margin-bottom: 18px; }
.fhead p { color: var(--soft); font-size: 15px; line-height: 1.5; }
.fhead--row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.fhead--row > span { font-size: 14.5px; color: var(--muted); }
/* Sekmeler formun adını zaten söylüyor: betik açıkken başlık yalnızca ekran okuyucuya (betik yoksa iki form alt alta, başlıklı) */
.js .ftabs ~ form .fhead > .h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid .field { gap: 6px; }
.fgrid .field > label { line-height: 1.4; }
.field > label small { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.formcard .input, .formcard .select { height: 48px; padding-inline: 14px; }
.formcard .textarea { min-height: 0; padding: 11px 14px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23596986' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.formcard .select { padding-right: 40px; }
.select:invalid { color: var(--faint); }
.select option { color: var(--ink); }
.field__err:empty { display: none; }
.fhint { margin-top: -2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.fnote { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.fnote a, .check a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.fnote a:hover, .check a:hover { text-decoration-color: var(--ink); }
/* Onay kutuları: gerçek kutu görünmez, yanında çizilen kutu işaretlenir (dokunma alanı satırın tamamı) */
.fchecks { display: grid; gap: 4px; margin-top: 2px; }
.check { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 5px 0; font-size: 14px; line-height: 1.5; color: var(--soft); cursor: pointer; }
.check input { position: absolute; left: 0; top: 6px; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.check i { width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); color: #fff; transition: background var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease); pointer-events: none; }
.check i svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.5); transition: opacity var(--t-1) var(--ease), transform var(--t-2) var(--spring); }
.check:hover i { box-shadow: inset 0 0 0 1.5px var(--muted); }
.check input:checked + i { background: var(--blue); box-shadow: none; }
.check input:checked + i svg { opacity: 1; transform: none; }
.check input:focus-visible + i { box-shadow: inset 0 0 0 1.5px var(--blue), var(--ring); }
.check b { font-weight: 500; color: var(--ink); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ffoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ffoot small { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.ffoot small svg { width: 17px; height: 17px; color: var(--blue); flex: none; }
.ffoot .btn, .fbar .btn { --btn-h: 48px; }
.btn.is-busy { position: relative; color: transparent; pointer-events: none; }
.btn.is-busy svg { opacity: 0; }
.btn.is-busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid var(--on-blue-soft); border-top-color: #fff; animation: f-spin 700ms linear infinite; }
@keyframes f-spin { to { transform: rotate(360deg); } }
.form-msg { margin-top: 12px; font-size: 14.5px; font-weight: 500; color: var(--danger); }
.form-msg:empty { display: none; }
/* Başarı: kartın üstünü örter */
.success { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 32px; border-radius: inherit; background: var(--surface); text-align: center; opacity: 0; visibility: hidden; transition: opacity var(--t-2) var(--ease), visibility 0s linear var(--t-2); }
.success.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.success__in { display: grid; justify-items: center; gap: 12px; max-width: 380px; }
.success__in p { color: var(--soft); }
.success__in .btn { margin-top: 10px; }
.success__ok { width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 0 0 10px var(--blue-100); }
.success__ok svg { width: 34px; height: 34px; }
.js .success__ok { transform: scale(0.6); transition: transform 600ms var(--spring) 120ms; }
.js .success.is-on .success__ok { transform: none; }

/* ════════════════ 3 · Yapışkan gönder çubuğu (telefon ve tablet) ════════════════
   <div class="fbar" data-fbar="<form id>" hidden><button class="btn btn--block" type="submit" form="<form id>">…</button></div>
   signup.js asıl düğme ekranın altında kaldıkça .is-on verir; asıl düğme görününce, form gönderilince ya da betik yoksa görünmez. */
.fbar { display: none; }
@media (max-width: 1020px) {
  .fbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 10px max(20px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 -1px 0 var(--line); transform: translate3d(0, 110%, 0); visibility: hidden; transition: transform var(--t-2) var(--ease), visibility 0s linear var(--t-2); }
  .fbar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
  html:has(.success.is-on) .fbar { transform: translate3d(0, 110%, 0); visibility: hidden; }
  /* Asıl düğme geçilene kadar (html.fbar-hold) WhatsApp düğmesi çekilir: ne çubuğun ne asıl düğmenin üstüne biner.
     Çubuk açıkken odaklanan alan çubuğun altında kalmaz. */
  .fbar-hold .wa-fab { opacity: 0; pointer-events: none; transform: translate3d(0, 12px, 0) scale(0.9); }
  html:has(.fbar.is-on) { scroll-padding-bottom: 84px; }
}

/* ════════════════ 4 · İletişim: kanallar, kayıt notu, şirket bilgileri ════════════════ */
.ct__side { display: grid; gap: 14px; align-content: start; }
.ct__side-h { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: -0.005em; }
.chs { display: grid; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ch { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; min-width: 0; padding: 12px 18px 12px 14px; }
.ch + .ch { border-top: 1px solid var(--line); }
.ch__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.ch__ic svg { width: 19px; height: 19px; }
.ch__tx { display: grid; gap: 0; min-width: 0; }
.ch__tx small { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.ch__tx a, .ch__tx > span { font-size: 16.5px; line-height: 1.4; font-weight: 600; letter-spacing: -0.018em; color: var(--ink); overflow-wrap: anywhere; transition: color var(--t-1) var(--ease); }
.ch__tx a:hover { color: var(--blue); }
.ch__go { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14.5px; font-weight: 500; color: var(--blue); white-space: nowrap; }
.ch__go svg { width: 16px; height: 16px; transition: transform var(--t-2) var(--ease); }
.ch__go:hover svg { transform: translateX(3px); }
.ct-go { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 18px 16px 14px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--blue-100); background: var(--blue-50); }
.ct-go .pg-ic { width: 40px; height: 40px; }
.ct-go b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; }
.ct-go p { margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.ci-legal { padding: 2px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.ci-legal small { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; color: var(--soft); }
.ci-legal ul { display: grid; gap: 0; }
.ct__card { scroll-margin-top: 96px; }
/* Betik yoksa sekmeler çalışmaz: iki form alt alta görünür */
html:not(.js) .ct__card .ftabs { display: none; }
html:not(.js) .ct__card form[data-panel][hidden] { display: block !important; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ════════════════ 4b · Masaüstü: ilk ekranın tamamı ════════════════
   Üst menü + form bölümü = ekran yüksekliği; içerik normal boyunda (büyütme, germe, JS ile küçültme yok) bölümün ortasında
   durur, altbilgi yalnızca aşağı kaydırınca gelir. Kısa pencerede (ör. MacBook'ta tarayıcı ~720 px) yalnızca boşluklar
   daralır; daha kısada ikincil satırlar gizlenir. */
@media (min-width: 1021px) {
  .fpage { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--hh) + 10px) 0 22px; }
  .fpage__foot { margin-top: 18px; }
  .js .fpage .fpage__foot[data-reveal] { opacity: 1; transform: none; } /* ekranın altında: kaydırmayı beklemeden görünür */
}
@media (min-width: 1021px) and (max-height: 800px) {
  .fpage { padding: calc(var(--hh) + 6px) 0 14px; }
  .fpage__foot { margin-top: 12px; }
  .fpage .formcard { padding: 26px 34px 24px; }
  .fpage .ftabs { margin-bottom: 14px; }
  .fpage .fhead { margin-bottom: 14px; }
  .fpage .fgrid { gap: 12px 16px; }
  .fpage .formcard .input, .fpage .formcard .select { height: 46px; }
  .fpage .ffoot { margin-top: 14px; padding-top: 14px; }
  .fpage .fsplit--panel .fsplit__intro { padding-top: 26px; }
  .fpage .fsplit--panel .fsplit__side { padding-top: 18px; padding-bottom: 24px; }
  .fpage .fsplit__lead { margin-top: 10px; }
  .fpage .fsplit__side { padding-top: 18px; }
}
@media (min-width: 1021px) and (max-height: 690px) {
  .fpage .fsplit__more, .fpage .fhint { display: none; }
  .fpage .formcard .input, .fpage .formcard .select { height: 44px; }
  .fpage .fgrid { gap: 10px 16px; }
}
@media (min-width: 1021px) and (max-height: 660px) {
  .fpage { padding: calc(var(--hh) + 2px) 0 8px; }
  .fpage__foot { margin-top: 6px; }
  .fpage .fsplit__lead { display: none; }
  .fpage .fsplit--panel .fsplit__intro { padding-top: 20px; }
  .fpage .fsplit--panel .fsplit__side { padding-bottom: 18px; }
}

/* ════════════════ 5 · Tablet ve telefon ════════════════ */
@media (max-width: 1020px) {
  .fsplit, .fsplit--panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: 'intro' 'card' 'side'; gap: 0; }
  .fsplit--panel::before { display: none; }
  .fsplit__intro, .fsplit--panel .fsplit__intro { padding: 4px 0 0; }
  .fsplit__card { margin-top: 20px; }
  .fsplit__side, .fsplit--panel .fsplit__side { margin-top: 24px; padding: 0; }
  .fsplit--panel .fsplit__side { padding: 16px; border-radius: var(--r-lg); background: var(--blue-50); }
  .fsplit__title { font-size: clamp(28px, 4.6vw, 40px); }
  .fsplit__lead { max-width: 60ch; }
}
@media (max-width: 680px) {
  .fpage { padding-top: calc(var(--hh) + 10px); }
  .fpage::before { display: none; }
  .fsplit__intro, .fsplit--panel .fsplit__intro { position: relative; isolation: isolate; padding: 0 0 26px; }
  .fsplit__intro::before { content: ''; position: absolute; z-index: -1; inset: calc((var(--hh) + 10px) * -1) -20px 0; border-radius: 0 0 28px 28px; background: var(--grad-navy); }
  .fsplit__title { font-size: 28px; line-height: 1.15; letter-spacing: -0.035em; }
  .fsplit__lead { margin-top: 6px; font-size: 15.5px; line-height: 1.5; }
  .fsplit__more { display: none; } /* telefonda cümle kısalır: başlığın hemen altında form */
  .fsplit__card { margin-top: 16px; }

  .formcard { padding: 18px 16px 20px; }
  .ftabs { margin-bottom: 16px; }
  .ftabs button { font-size: 14.5px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .check { padding: 6px 0; }
  .ffoot { flex-direction: column; align-items: stretch; gap: 12px; }
  .ffoot .btn { width: 100%; }
  .ffoot small { justify-content: center; }
  .fpage__foot { display: grid; justify-items: start; gap: 0; margin-top: 16px; text-align: left; }
  .fpage__foot > span { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
  .fpage__foot > span + span::before { content: none; }
  .fpage__foot a { display: inline-flex; align-items: center; min-height: 44px; }

  .ch { grid-template-columns: 40px minmax(0, 1fr); padding: 10px 14px; }
  .ch__ic { grid-row: span 2; }
  .ch__go { grid-column: 2; justify-self: start; min-height: 44px; margin-top: -6px; }
  .ch__tx a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -6px; }
}
@media (max-width: 380px) {
  .fsplit__title { font-size: 26px; }
}

/* Hareket kapalı */
.no-motion .fsplit__card { animation: none; }
.no-motion .fbar, .no-motion .success, .no-motion .success__ok { transition: none !important; }
.no-motion .success__ok { transform: none !important; }
