/* ============================================================
   Siber Zeka — sayfa stilleri (yapay-zeka-asistani.html)
   Tüm sınıflar "sz-" önekli. Site paleti custom.css değişkenlerinden gelir.
   Bölüm 1: SZChat bileşeni (sz-chat.js) — sayfadan bağımsız, video sahne sayfası da kullanabilir.
   Bölüm 2: Sayfa düzeni.
   ============================================================ */

/* ---------- 1. SZChat bileşeni (WhatsApp görünümü yalnız burada) ---------- */
.sz-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.42;
  color: #111b21;
  background: #efeae2;
  text-align: left;
}
.sz-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #075e54;
  color: #fff;
  flex: 0 0 auto;
}
.sz-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a6e5c, #f7941d);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
}
.sz-chat-id { display: flex; flex-direction: column; min-width: 0; }
.sz-chat-title { font-weight: 600; font-size: 15px; line-height: 1.2; }
.sz-chat-status { font-size: 12px; opacity: .88; line-height: 1.3; }
.sz-chat-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(84, 101, 111, .09) 1px, transparent 1.4px);
  background-size: 16px 16px;
}
.sz-msg {
  position: relative;
  max-width: 86%;
  padding: 6px 8px 4px;
  border-radius: 8px;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
  overflow-wrap: anywhere;
}
.sz-out { align-self: flex-end; background: #dcf8c6; border-top-right-radius: 2px; }
.sz-in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.sz-text { white-space: normal; }
.sz-text strong { font-weight: 700; }
.sz-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1;
  color: #56656f;
}
.sz-ticks { display: inline-flex; color: #8696a0; transition: color .3s; }
.sz-ticks.sz-read { color: #34b7f1; }
.sz-sr, .sz-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.sz-typing { display: flex; gap: 4px; padding: 11px 13px; }
.sz-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #8696a0;
  animation: szDot 1.1s infinite ease-in-out;
}
.sz-typing span:nth-child(2) { animation-delay: .15s; }
.sz-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes szDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.sz-pop { animation: szPop .28s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes szPop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

.sz-att { margin-bottom: 4px; }
.sz-att-file {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 6px;
  background: rgba(11, 20, 26, .05);
}
.sz-file-ic {
  flex: 0 0 34px; width: 34px; height: 40px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 5px; border-radius: 4px;
  font-size: 9px; font-weight: 700; color: #fff; letter-spacing: .3px;
  background: #54656f;
}
.sz-file-xlsx { background: #1d6f42; }
.sz-file-pdf { background: #c5221f; }
.sz-file-docx { background: #2b579a; }
.sz-att-info { display: flex; flex-direction: column; min-width: 0; }
.sz-att-name { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.sz-att-meta { font-size: 11.5px; color: #56656f; }
.sz-att-thumb {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-width: 200px; height: 118px; border-radius: 6px;
  background: linear-gradient(135deg, #0a6e5c 0%, #054d3f 60%, #1a1a2e 100%);
  color: #fff; font-size: 12px; font-weight: 600;
}
.sz-att-cap { font-size: 11.5px; color: #56656f; margin-top: 3px; overflow-wrap: anywhere; }
.sz-att-link {
  padding: 8px 10px; border-radius: 6px;
  background: rgba(11, 20, 26, .06);
  border-left: 3px solid #128c7e;
}
.sz-att-link-title { font-weight: 600; font-size: 13px; }
.sz-att-link-url { font-size: 12.5px; color: #005f8f; text-decoration: underline; overflow-wrap: anywhere; }
.sz-voice { display: flex; align-items: center; gap: 8px; min-width: 190px; padding: 2px 0 2px; }
.sz-voice-play {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: #128c7e;
}
.sz-voice-wave { flex: 1 1 auto; display: flex; align-items: center; gap: 2px; height: 26px; }
.sz-voice-wave i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: #8696a0; }
.sz-voice-time { font-size: 11.5px; color: #56656f; }
.sz-table { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 12.5px; }
.sz-table th, .sz-table td { padding: 4px 6px; border-bottom: 1px solid rgba(11, 20, 26, .08); text-align: left; white-space: nowrap; }
.sz-table th { font-weight: 700; color: #3b4a54; }
.sz-table td + td, .sz-table th + th { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .sz-pop, .sz-typing span { animation: none !important; }
}

/* ---------- 2. Sayfa ---------- */
.sz-page h1, .sz-page h2, .sz-page h3 { font-family: var(--font-primary, "Montserrat", sans-serif); }
.sz-section { padding: 64px 0; }
.sz-section-alt { background: var(--st-gray-light, #f8f9fc); }
.sz-kicker {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--st-primary, #0a6e5c);
}
.sz-h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); font-weight: 700; color: var(--st-dark, #1a1a2e); margin: 8px 0 12px; }
.sz-sub { color: #4a5568; font-size: 1.05rem; max-width: 720px; margin: 0 auto; }

/* Butonlar */
.sz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: var(--st-transition, all .3s ease);
}
.sz-btn-accent { background: var(--st-accent, #f7941d); color: var(--st-dark, #1a1a2e); border: 2px solid var(--st-accent, #f7941d); }
.sz-btn-accent:hover, .sz-btn-accent:focus { background: #ffa83f; border-color: #ffa83f; color: var(--st-dark, #1a1a2e); transform: translateY(-2px); }
.sz-btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .75); }
.sz-btn-ghost:hover, .sz-btn-ghost:focus { background: rgba(255, 255, 255, .14); color: #fff; }
.sz-page a:focus-visible, .sz-page button:focus-visible { outline: 3px solid var(--st-accent, #f7941d); outline-offset: 3px; }

/* Hero */
.sz-hero {
  position: relative;
  padding: 48px 0 56px;
  background: var(--st-gradient-hero, linear-gradient(135deg, #0a6e5c 0%, #0d8a6f 40%, #054d3f 100%));
  color: #fff;
  overflow: hidden;
}
.sz-hero::before, .sz-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(247, 148, 29, .22), transparent 70%);
}
.sz-hero::before { width: 520px; height: 520px; right: -180px; top: -160px; }
.sz-hero::after { width: 420px; height: 420px; left: -200px; bottom: -220px; background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 70%); }
.sz-hero .container { position: relative; z-index: 1; }
.sz-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13px; font-weight: 700; letter-spacing: .4px;
}
.sz-eyebrow .sz-new { background: var(--st-accent, #f7941d); color: var(--st-dark, #1a1a2e); border-radius: 999px; padding: 1px 8px; font-size: 11px; }
.sz-hero h1 { color: #fff; font-weight: 800; font-size: clamp(2.1rem, 7vw, 3.6rem); line-height: 1.1; margin: 18px 0 16px; letter-spacing: -.5px; }
.sz-hero h1 span { color: #ffc27a; }
.sz-hero .sz-lead { font-size: 1.12rem; color: rgba(255, 255, 255, .92); max-width: 560px; }
.sz-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sz-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.sz-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); font-size: 13.5px; font-weight: 600; color: #fff;
}
.sz-chips i { color: #ffc27a; }

/* Telefon */
.sz-phone {
  position: relative;
  width: 100%; max-width: 330px; margin: 0 auto;
  padding: 10px; border-radius: 44px;
  background: #0f1317;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35), inset 0 0 0 2px #2b3138;
}
.sz-phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; border-radius: 0 0 16px 16px;
  background: #0f1317; z-index: 2;
}
.sz-phone-screen {
  display: flex; flex-direction: column;
  height: 600px; border-radius: 34px; overflow: hidden;
  background: #efeae2;
}
.sz-phone-status {
  flex: 0 0 30px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; background: #054d44; color: #fff; font-size: 12px; font-weight: 600;
}
.sz-phone-chat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.sz-phone-chat .sz-chat { flex: 1 1 auto; }
.sz-phone-chat .sz-chat-body { overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; }
.sz-phone-chat .sz-chat-body::-webkit-scrollbar { display: none; }
.sz-phone-input { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 8px 10px; background: #efeae2; }
.sz-phone-field { flex: 1; height: 38px; border-radius: 20px; background: #fff; color: #6b7a84; font-size: 14px; display: flex; align-items: center; padding: 0 14px; }
.sz-phone-mic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #128c7e; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.sz-hero-nav { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.sz-hero-caption { font-size: 14px; color: rgba(255, 255, 255, .9); text-align: center; min-height: 21px; }
.sz-hero-dots { display: flex; gap: 4px; }
.sz-hero-dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sz-hero-dots button::before {
  content: ""; width: 9px; height: 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .45); transition: width .25s, background .25s;
}
.sz-hero-dots button[aria-current="true"]::before { width: 22px; background: var(--st-accent, #f7941d); }

/* Nasıl çalışır */
.sz-steps { counter-reset: szstep; }
.sz-step {
  position: relative; height: 100%;
  padding: 26px 22px 22px; border-radius: var(--st-radius, 16px);
  background: #fff; border: 1px solid #e3ebe8; box-shadow: var(--st-shadow-sm, 0 2px 8px rgba(0, 0, 0, .06));
}
.sz-step-num {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-primary, "Montserrat", sans-serif);
  font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--st-primary-light, #e6f5f1);
}
.sz-step-ic {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--st-gradient, linear-gradient(135deg, #0a6e5c 0%, #054d3f 100%)); color: #fff; font-size: 24px;
}
.sz-step h3 { font-size: 1.08rem; font-weight: 700; color: var(--st-dark, #1a1a2e); margin-bottom: 8px; }
.sz-step p { color: #4a5568; margin: 0; font-size: .97rem; }

/* Senaryo galerisi */
.sz-pills { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 30px; }
.sz-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid #c9dfd8; background: #fff; color: var(--st-primary-dark, #054d3f);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: var(--st-transition, all .3s ease);
}
.sz-pill:hover { border-color: var(--st-primary, #0a6e5c); }
.sz-pill[aria-pressed="true"] { background: var(--st-primary, #0a6e5c); border-color: var(--st-primary, #0a6e5c); color: #fff; }
.sz-pill-count {
  min-width: 22px; padding: 1px 7px; border-radius: 999px;
  background: var(--st-primary-light, #e6f5f1); color: var(--st-primary-dark, #054d3f);
  font-size: 12px; font-weight: 700; text-align: center;
}
.sz-pill[aria-pressed="true"] .sz-pill-count { background: rgba(255, 255, 255, .2); color: #fff; }
.sz-grid { column-count: 1; column-gap: 24px; }
@media (min-width: 768px) { .sz-grid { column-count: 2; } }
@media (min-width: 1200px) { .sz-grid { column-count: 3; } }
.sz-card {
  display: inline-block; width: 100%;
  margin: 0 0 24px; break-inside: avoid; -webkit-column-break-inside: avoid;
  border-radius: var(--st-radius, 16px); overflow: hidden;
  background: #fff; border: 1px solid #e3ebe8; box-shadow: var(--st-shadow-sm, 0 2px 8px rgba(0, 0, 0, .06));
}
.sz-card[hidden] { display: none; }
.sz-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.sz-card-ic {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--st-primary-light, #e6f5f1); color: var(--st-primary, #0a6e5c); font-size: 20px;
}
.sz-card-cat { display: block; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #9a5a08; }
.sz-card h3 { font-size: 1rem; font-weight: 700; color: var(--st-dark, #1a1a2e); margin: 2px 0 0; line-height: 1.3; }
.sz-card .sz-chat-body { padding: 14px 12px 16px; }
.sz-gallery-note { text-align: center; color: #5a6676; font-size: .92rem; margin-top: 4px; }

/* Okur / gönderir */
.sz-io-card {
  height: 100%; padding: 28px 24px; border-radius: var(--st-radius-lg, 24px);
  background: #fff; border: 1px solid #e3ebe8; box-shadow: var(--st-shadow-md, 0 4px 20px rgba(0, 0, 0, .08));
}
.sz-io-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--st-dark, #1a1a2e); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.sz-io-card h3 i { color: var(--st-primary, #0a6e5c); }
.sz-io-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.sz-io-list li { display: flex; gap: 14px; align-items: flex-start; }
.sz-io-ic {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 21px;
}
.sz-io-list strong { display: block; color: var(--st-dark, #1a1a2e); }
.sz-io-list div > span { display: block; color: #4a5568; font-size: .94rem; }
.sz-c-xlsx { background: #1d6f42; } .sz-c-pdf { background: #c5221f; } .sz-c-docx { background: #2b579a; }
.sz-c-img { background: #6b3fa0; } .sz-c-voice { background: var(--st-primary, #0a6e5c); } .sz-c-accent { background: #c66f04; }

/* Güvenlik */
.sz-security { background: var(--st-dark, #1a1a2e); color: #fff; }
.sz-security .sz-kicker { color: #ffc27a; }
.sz-security .sz-h2 { color: #fff; }
.sz-security .sz-sub { color: rgba(255, 255, 255, .8); }
.sz-sec-item {
  height: 100%; padding: 22px 20px; border-radius: var(--st-radius, 16px);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.sz-sec-item i { font-size: 26px; color: var(--st-accent, #f7941d); }
.sz-sec-item h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 12px 0 6px; }
.sz-sec-item p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .95rem; }

/* Video */
.sz-video-frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 960px; margin: 0 auto;
  border-radius: var(--st-radius-lg, 24px); overflow: hidden;
  background: var(--st-gradient, linear-gradient(135deg, #0a6e5c 0%, #054d3f 100%));
  box-shadow: var(--st-shadow-xl, 0 20px 60px rgba(0, 0, 0, .15));
}
@supports not (aspect-ratio: 16 / 9) { .sz-video-frame { height: 0; padding-top: 56.25%; } }
.sz-video-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px; text-align: center; color: #fff;
}
.sz-video-fallback i { font-size: clamp(44px, 9vw, 76px); color: var(--st-accent, #f7941d); line-height: 1; }
.sz-video-fallback strong { font-family: var(--font-primary, "Montserrat", sans-serif); font-size: clamp(1.05rem, 3vw, 1.6rem); }
.sz-video-fallback span { font-size: clamp(.8rem, 2vw, .95rem); color: rgba(255, 255, 255, .85); }
.sz-video-frame video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.sz-video-scenes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.sz-video-scenes li { padding: 5px 12px; border-radius: 999px; background: var(--st-primary-light, #e6f5f1); color: var(--st-primary-dark, #054d3f); font-size: 13.5px; font-weight: 600; }

/* SSS */
.sz-faq { max-width: 860px; margin: 32px auto 0; }
.sz-faq .accordion-item { border: 1px solid #e3ebe8; border-radius: 14px !important; overflow: hidden; margin-bottom: 12px; }
.sz-faq .accordion-button { font-weight: 700; color: var(--st-dark, #1a1a2e); font-size: 1rem; padding: 18px 20px; }
.sz-faq .accordion-button:not(.collapsed) { background: var(--st-primary-light, #e6f5f1); color: var(--st-primary-dark, #054d3f); box-shadow: none; }
.sz-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(10, 110, 92, .3); }
.sz-faq .accordion-body { color: #4a5568; padding: 16px 20px 20px; }

/* Son çağrı */
.sz-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  padding: 40px 32px; border-radius: var(--st-radius-lg, 24px);
  background: var(--st-gradient, linear-gradient(135deg, #0a6e5c 0%, #054d3f 100%)); color: #fff;
}
.sz-cta h2 { color: #fff; font-weight: 700; font-size: clamp(1.4rem, 3.6vw, 2rem); margin: 0 0 6px; }
.sz-cta p { margin: 0; color: rgba(255, 255, 255, .88); }
.sz-cta p a { color: #fff; font-weight: 700; }

@media (max-width: 575.98px) {
  .sz-section { padding: 48px 0; }
  .sz-hero { padding: 36px 0 44px; }
  .sz-hero-ctas .sz-btn { width: 100%; }
  .sz-phone-screen { height: 560px; }
  .sz-cta { padding: 30px 20px; }
  .sz-cta .sz-btn { width: 100%; }
}
@media (min-width: 992px) {
  .sz-hero { padding: 72px 0 80px; }
  .sz-section { padding: 88px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sz-btn, .sz-pill, .sz-ticks, .sz-hero-dots button::before { transition: none; }
  .sz-phone-chat .sz-chat-body { scroll-behavior: auto; }
}

/* Telefonda "Tüm senaryoları göster" */
.sz-more { text-align: center; margin-top: 8px; }
.sz-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  border: 2px solid var(--st-primary, #0a6e5c); background: #fff;
  color: var(--st-primary, #0a6e5c); font-weight: 700; font-size: 15px; cursor: pointer;
}
.sz-more-btn:hover { background: var(--st-primary-light, #e6f5f1); }
