/*
  Chatmail — kayıt sayfası tasarımı (assets/css/kayit.css)
  Fikir: kayıt sayfası ürünün kendisini gösterir. Solda sade form, sağda müşterinin telefonunda
  "sizin markanızın adıyla" gelen WhatsApp mesajı ve e-posta. Firma adı yazıldıkça önizleme canlı güncellenir.
  Palet: adaçayı zemin, nane panel, marka yeşili, koyu orman metni. Tek vurgu: telefon önizlemesi.
  Sınıflar "kt-" önekiyle ayrılmıştır; uyarı ve lightbox stilleri panel.css'ten gelir.
  Hareket: yalnızca sayfa yüklenirken tek bir mesaj dizisi; prefers-reduced-motion'da hepsi anında görünür.
*/
:root {
  --kt-canvas: #EEF3EA;
  --kt-mint: #D3EAD9;
  --kt-forest: #0B2A1C;
  --kt-green: #0F7A44;
  --kt-green-dark: #0B5C33;
  --kt-line: #C4D1C1;
  --kt-muted: #4A5D52;
  --kt-chat: #EFEAE2;
  --kt-blue: #1F5FD6;
}
body.kt { margin: 0; background: var(--kt-canvas); color: var(--kt-forest); font-family: 'Manrope', system-ui, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.kt *, body.kt *::before, body.kt *::after { box-sizing: border-box; }
.kt a { color: var(--kt-green); }
.kt a:hover { color: var(--kt-green-dark); }
.kt :focus-visible { outline: 3px solid var(--kt-green); outline-offset: 3px; border-radius: 8px; }

.kt-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); max-width: 1240px; margin: 0 auto; padding: 28px clamp(20px, 4vw, 48px) 40px; }

/* Sol sütun */
.kt-main { display: flex; flex-direction: column; min-width: 0; }
.kt-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 4vh, 44px); }
.kt-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 24px/1 'Bricolage Grotesque', 'Manrope', sans-serif; letter-spacing: -.03em; color: var(--kt-forest) !important; white-space: nowrap; }
.kt-brand em { font-style: normal; color: var(--kt-green); }
.kt-login { font-size: 15px; color: var(--kt-muted); }
.kt-login a { font-weight: 800; text-decoration: none; border-bottom: 2px solid currentColor; }

.kt-form-box { width: 100%; max-width: 460px; }
.kt-h1 { font: 800 clamp(34px, 3.8vw, 48px)/1.04 'Bricolage Grotesque', 'Manrope', sans-serif; letter-spacing: -.035em; margin: 0 0 12px; max-width: 15ch; }
.kt-lead { margin: 0 0 22px; color: var(--kt-muted); font-size: 17px; max-width: 42ch; }
.kt-form { display: flex; flex-direction: column; gap: 16px; }
.kt-field { display: flex; flex-direction: column; gap: 6px; }
.kt-field label { font-size: 14px; font-weight: 800; }
.kt-field .kt-hint { font-weight: 500; color: var(--kt-muted); }
.kt-input { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--kt-line); border-radius: 12px; background: #fff; font: 600 16px 'Manrope', sans-serif; color: var(--kt-forest); transition: border-color .2s, box-shadow .2s; }
.kt-input::placeholder { color: #8A9A90; font-weight: 500; }
.kt-input:hover { border-color: #9DB09B; }
.kt-input:focus { outline: none; border-color: var(--kt-green); box-shadow: 0 0 0 4px rgba(15,122,68,.16); }
.kt-pass { position: relative; }
.kt-pass .kt-input { padding-right: 84px; }
.kt-pass button { position: absolute; right: 6px; top: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--kt-green); font: 800 14px 'Manrope', sans-serif; cursor: pointer; }
.kt-pass button:hover { background: var(--kt-canvas); }
.kt-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--kt-muted); cursor: pointer; }
.kt-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--kt-green); flex: none; }
.kt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 14px; background: var(--kt-green); color: #fff; font: 800 16px 'Manrope', sans-serif; cursor: pointer; transition: background .2s, transform .15s; width: 100%; }
.kt-btn:hover { background: var(--kt-green-dark); }
.kt-btn:active { transform: scale(.985); }
.kt-btn-sm { min-height: 44px; width: auto; border-radius: 10px; font-size: 15px; }
.kt-note { margin: 4px 0 0; font-size: 14px; color: var(--kt-muted); text-align: center; }
.kt .alert { margin-bottom: 4px; }

/* Sağ sütun: canlı önizleme */
.kt-stage { position: sticky; top: 28px; align-self: start; height: calc(100vh - 56px); min-height: 640px; max-height: 820px; background: var(--kt-mint); border-radius: 36px; display: grid; place-items: center; overflow: hidden; }
.kt-phone { position: relative; width: 286px; background: var(--kt-forest); border-radius: 40px; padding: 9px; box-shadow: 0 30px 60px -24px rgba(11,42,28,.55); transform: translateX(-34px); }
.kt-screen { border-radius: 32px; overflow: hidden; background: var(--kt-chat); height: 520px; display: flex; flex-direction: column; }
.kt-wa-head { display: flex; align-items: center; gap: 10px; padding: 34px 14px 12px; background: #0A3B26; color: #fff; }
.kt-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--kt-green); display: grid; place-items: center; font: 800 18px 'Bricolage Grotesque', sans-serif; flex: none; text-transform: uppercase; }
.kt-wa-name { font-weight: 800; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.kt-wa-sub { font-size: 12px; opacity: .75; }
.kt-chat { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.kt-msg { max-width: 86%; padding: 8px 11px 6px; border-radius: 4px 14px 14px 14px; background: #fff; font-size: 13.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.08); color: #1B2A22; }
.kt-msg time { display: block; text-align: right; font-size: 11px; color: #8A968E; margin-top: 2px; }
.kt-msg-btn { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid #E4E8E5; text-align: center; color: var(--kt-blue); font-weight: 700; font-size: 13.5px; }
.kt-msg-out { align-self: flex-end; background: #D9FDD3; border-radius: 14px 4px 14px 14px; }
.kt-ticks { color: #8A968E; margin-left: 3px; transition: color .3s; }
.kt-msg-out.is-read .kt-ticks { color: #2E9BE6; }

.kt-mail { position: absolute; left: clamp(16px, 4%, 40px); bottom: 7%; width: min(300px, 62%); background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 24px 48px -20px rgba(11,42,28,.5); rotate: -2.5deg; }
.kt-mail-from { display: flex; gap: 10px; align-items: center; }
.kt-mail .kt-avatar { width: 32px; height: 32px; font-size: 15px; background: var(--kt-blue); color: #fff; }
.kt-mail-who { min-width: 0; line-height: 1.25; }
.kt-mail-who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-mail-who span { display: block; font-size: 12px; color: var(--kt-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-mail-subj { margin-top: 10px; font-weight: 800; font-size: 14px; }
.kt-mail-txt { margin-top: 2px; font-size: 12.5px; color: var(--kt-muted); }
.kt-chip { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 99px; background: #E3ECFB; color: var(--kt-blue); font-size: 12px; font-weight: 800; }

/* Açılış dizisi: mesajlar sırayla gelir (JS .kt-seq ekler). JS yoksa hepsi görünür. */
.kt-seq .kt-step { opacity: 0; transform: translateY(10px) scale(.98); }
.kt-seq .kt-step.is-in { opacity: 1; transform: none; transition: opacity .4s cubic-bezier(.2,.7,.2,1), transform .4s cubic-bezier(.2,.7,.2,1); }

/* Mobil */
@media (max-width: 920px) {
  .kt-wrap { grid-template-columns: 1fr; padding-top: 20px; }
  .kt-top { margin-bottom: 28px; }
  .kt-form-box { max-width: 560px; }
  .kt-stage { position: relative; top: 0; height: 600px; min-height: 0; border-radius: 28px; order: 2; }
  .kt-phone { transform: none; }
  .kt-mail { left: 50%; bottom: 14px; translate: -50% 0; rotate: -1.5deg; width: min(300px, 86%); }
}
@media (max-width: 420px) { .kt-stage { height: 640px; } .kt-phone { width: 262px; } .kt-screen { height: 470px; } }
@media (prefers-reduced-motion: reduce) {
  .kt-seq .kt-step { opacity: 1 !important; transform: none !important; transition: none !important; }
  .kt-input, .kt-btn, .kt-ticks { transition: none; }
}
