/* Giriş öncesi yüz (K124, Yön 2): koyu üst bant + açık gövde. Marka renkleri /theme.css'ten (--g-btn, --g-btn-fg,
   --g-accent: açık zeminde yazı, --g-accent-dark: koyu zeminde yazı; hepsi AA 4,5:1'e ayarlı). Tipografi ekibin
   düzeltmesiyle: başlıklar küçük ve normal genişlikte, gövde 16px, küçük metin en az 13px. Satır içi stil yok (CSP). */
:root {
  --night: #0f1226;
  --night-2: #181c38;
  --night-line: #2a2f55;
  --night-text: #c9cdf0;
  --night-muted: #a3a9d6;
  --paper: #ffffff;
  --mist: #f3f3f8;
  --ink: #12142a;
  --muted: #4f5472;
  --line: #e2e3ee;
  --field: #737891;
  --ok: #0a7a5e;
  --ok-hi: #3ddc97;
  --bad: #b3261e;
  --g-btn: #c9441d;
  --g-btn-fg: #ffffff;
  --g-accent: #c9441d;
  --g-accent-dark: #ff8a65;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --top-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body.guest { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--f-body); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.guest h1, .guest h2, .guest h3 { margin: 0; font-family: var(--f-body); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; text-wrap: balance; }
.guest h1 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); }
.guest h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.guest h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; letter-spacing: 0; }
.guest p { margin: 0; }
.guest a { color: var(--g-accent); }
.guest :focus-visible { outline: 3px solid var(--g-accent); outline-offset: 2px; border-radius: 4px; }
.dark :focus-visible, .top :focus-visible { outline-color: var(--g-accent-dark); }
main:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.kicker { display: block; font: 600 0.8125rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-accent); }
.dark .kicker { color: var(--g-accent-dark); }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: filter .15s, border-color .15s; }
.guest .btn-primary { background: var(--g-btn); color: var(--g-btn-fg); }
.btn-primary:hover { filter: brightness(0.92); }
.guest .btn-line { color: #ffffff; border-color: #6a70a8; background: transparent; }
.btn-line:hover { border-color: #ffffff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.arrow::after { content: " →"; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Üst bant */
.dark { background: var(--night); color: var(--night-text); }
.dark h1, .dark h2, .dark h3 { color: #ffffff; }
.top { position: sticky; top: 0; z-index: 10; background: var(--night); border-bottom: 1px solid var(--night-line); padding-top: env(safe-area-inset-top, 0px); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: var(--top-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #ffffff; text-decoration: none; font-weight: 700; font-size: 1.125rem; min-width: 0; }
.guest .logo { color: #ffffff; }
.logo-img { display: inline-flex; background: #ffffff; border-radius: 6px; padding: 3px 6px; }
.logo-img img { display: block; height: 28px; width: auto; max-width: 140px; object-fit: contain; }
.logo-mono { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--g-btn); color: var(--g-btn-fg); display: grid; place-items: center; font-weight: 700; font-size: 0.9375rem; }
.logo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; gap: 2px; margin-right: auto; }
.guest .nav a { color: var(--night-text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 10px 12px; border-radius: 8px; }
.guest .nav a:hover { color: #ffffff; background: var(--night-2); }
.spacer { margin-right: auto; }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.locale { display: flex; gap: 2px; margin: 0; }
.locale button { background: transparent; border: 0; color: var(--night-muted); font: 600 0.8125rem/1 var(--f-mono); min-width: 40px; min-height: 40px; border-radius: 8px; cursor: pointer; }
.locale button:hover { color: #ffffff; background: var(--night-2); }
.locale button[aria-current="true"] { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.guest .back { color: #ffffff; text-decoration: none; font-weight: 600; padding: 10px 8px; }
.menu-btn { display: none; background: transparent; color: #ffffff; border: 1.5px solid #6a70a8; border-radius: 999px; min-height: 40px; padding: 0 14px; font: 600 0.9375rem var(--f-body); cursor: pointer; }
@media (max-width: 900px) {
  .js .nav { display: none; }
  .js .menu-btn { display: inline-flex; align-items: center; }
  .js .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--night); border-bottom: 1px solid var(--night-line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .js .nav.open a { padding: 12px; }
  .top-row { gap: 12px; position: relative; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .js .nav { order: 0; width: auto; }
  .logo { margin-right: auto; }
}
@media (max-width: 560px) { .is-home .top-actions .btn-sm { display: none; } .top-actions { gap: 6px; } .logo-name { max-width: 10em; } }

/* Hero */
.hero { padding-block: 64px 0; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 72px), repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 72px); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero-copy { display: grid; gap: 20px; padding-bottom: 64px; align-self: center; }
.lede { font-size: 1.125rem; max-width: 34em; color: var(--night-text); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; } .hero-copy { padding-bottom: 32px; } .hero { padding-top: 40px; } }

/* Örnek kullanım alanı (sabit, "örnek" diye işaretli) */
.usecase { background: var(--night-2); border: 1px solid var(--night-line); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 18px 18px 14px; display: grid; gap: 14px; }
.uc-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.uc-tabs button { background: transparent; border: 1px solid var(--night-line); color: var(--night-text); border-radius: 999px; padding: 0 14px; font: 500 0.875rem/1 var(--f-body); cursor: pointer; min-height: 40px; }
.uc-tabs button[aria-selected="true"] { background: #ffffff; color: var(--ink); border-color: #ffffff; }
.uc-stage { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.uc-title { grid-column: 1 / -1; font-size: 1rem !important; }
.js .uc-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phone { background: #0a0c1b; border: 1px solid var(--night-line); border-radius: 22px; padding: 14px 10px; min-height: 240px; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.phone-head { text-align: center; color: #ffffff; font-size: 0.8125rem; display: grid; gap: 4px; justify-items: center; }
.phone-head b { width: 34px; height: 34px; border-radius: 50%; background: var(--g-btn); color: var(--g-btn-fg); display: grid; place-items: center; font-size: 0.8125rem; }
.bubbles { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.bubble { background: #262b4f; color: #f0f1ff; border-radius: 16px 16px 16px 4px; padding: 9px 12px; font-size: 0.875rem; line-height: 1.45; }
.events { background: #0a0c1b; border: 1px solid var(--night-line); border-radius: 12px; font: 400 0.8125rem/1.6 var(--f-mono); color: var(--night-text); min-width: 0; }
.events-head { display: grid; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--night-line); }
.events-head b { color: #ffffff; font-weight: 600; }
.events-head span { color: var(--night-muted); }
.events ol { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 8px; }
.events li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; }
.ev-step { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--night-line); display: grid; place-items: center; color: var(--night-muted); font-size: 0.8125rem; }
.ev { font: inherit; overflow-wrap: anywhere; }
.ev-queued { color: #c4c8f7; } .ev-sending { color: #c4c8f7; } .ev-sent { color: #ffd38a; } .ev-delivered { color: var(--ok-hi); }
.uc-caption { grid-column: 1 / -1; font-size: 0.875rem; color: var(--night-text); }
.uc-note { font-size: 0.8125rem; color: var(--night-muted); }
@media (max-width: 560px) { .uc-stage { grid-template-columns: minmax(0, 1fr); } .phone { min-height: 0; } }

/* Bölümler */
.band { padding-block: 88px; }
.band.mist { background: var(--mist); }
@media (max-width: 700px) { .band { padding-block: 56px; } }
.head { display: grid; gap: 12px; max-width: 44rem; margin-bottom: 40px; }
.head p { color: var(--muted); font-size: 1.125rem; max-width: 62ch; }
.dark .head p { color: var(--night-text); }

/* Özellik kartları */
.products { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.prod { grid-column: span 4; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.prod-bulk, .prod-quick { grid-column: span 6; }
.prod p { color: var(--muted); }
.prod .tag { justify-self: start; font: 600 0.8125rem/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--mist); color: var(--ink); }
.points { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.points li { padding-left: 22px; position: relative; color: var(--ink); }
.points li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: 6px; }
.mini-bars i { flex: 1; background: var(--g-btn); border-radius: 3px 3px 0 0; opacity: .85; }
.mini-bars i:nth-child(3n) { background: var(--ink); }
.mini-bars .b1 { height: 62%; } .mini-bars .b2 { height: 80%; } .mini-bars .b3 { height: 45%; } .mini-bars .b4 { height: 92%; }
.mini-bars .b5 { height: 70%; } .mini-bars .b6 { height: 88%; } .mini-bars .b7 { height: 54%; } .mini-bars .b8 { height: 97%; }
@media (max-width: 980px) { .prod, .prod-bulk, .prod-quick { grid-column: span 6; } }
@media (max-width: 640px) { .prod, .prod-bulk, .prod-quick { grid-column: span 12; } .prod { padding: 22px; } }

/* İlkeler ve hesap maddeleri */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--night-line); }
.principles li { padding: 24px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.principles p { font-size: 1rem; }
.principles.light { border-top-color: var(--line); }
.principles.light p { color: var(--muted); }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } }
@media (max-width: 560px) { .principles { grid-template-columns: minmax(0, 1fr); } .principles li { padding-right: 0; } }

/* Geliştiriciler */
.devgrid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.devgrid h2 { margin-top: 12px; }
@media (max-width: 960px) { .devgrid { grid-template-columns: minmax(0, 1fr); } }
.devlist { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.devlist li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.devlist b { font-weight: 600; }
.devlist span { color: var(--muted); }
.console { background: var(--night); color: #d8dbf7; border-radius: 16px; overflow: hidden; border: 1px solid var(--night-line); min-width: 0; }
.console-tabs { display: flex; border-bottom: 1px solid var(--night-line); overflow-x: auto; }
.console-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--night-muted); font: 500 0.875rem/1 var(--f-mono); padding: 0 16px; min-height: 44px; cursor: pointer; white-space: nowrap; }
.console-tabs button[aria-selected="true"] { color: #ffffff; border-bottom-color: var(--g-accent-dark); }
.console-tabs button:focus-visible { outline-offset: -3px; }
.console pre { margin: 0; padding: 20px; overflow-x: auto; font: 400 0.875rem/1.7 var(--f-mono); }
.console pre:focus-visible { outline-offset: -3px; }
.console code { font: inherit; }
.console .k { color: #8fb4ff; } .console .s { color: #ffc28a; } .console .c { color: var(--night-muted); } .console .n { color: var(--ok-hi); }
.console-foot { padding: 12px 20px; border-top: 1px solid var(--night-line); font-size: 0.8125rem; color: var(--night-muted); }

/* Son çağrı */
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-row > div { display: grid; gap: 10px; max-width: 44rem; }
.cta { padding-block: 64px; border-bottom: 1px solid var(--night-line); }

/* Alt bilgi */
.foot { padding-block: 48px 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: grid; gap: 8px; align-content: start; }
.foot-brand .logo-name { color: #ffffff; font-weight: 700; font-size: 1.125rem; white-space: normal; }
.foot h2 { color: #ffffff; font-size: 0.875rem !important; font-weight: 600; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.guest .foot a { color: var(--night-text); text-decoration: none; display: inline-block; padding: 6px 0; }
.guest .foot a:hover { color: #ffffff; text-decoration: underline; }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: 0.875rem; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* Giriş ve parola kartı */
body.is-auth { background: var(--night); color: var(--night-text); min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.is-auth .top { position: static; }
.auth-body { display: grid; place-items: center; padding-block: 40px; width: 100%; }
.auth-card { width: 100%; max-width: 440px; background: var(--paper); color: var(--ink); border-radius: 20px; padding: 32px; display: grid; gap: 20px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
@media (max-width: 480px) { .auth-card { padding: 22px; border-radius: 16px; } }
.card-head { display: grid; gap: 6px; }
.auth-card h1 { font-size: 1.625rem; }
.auth-form { display: grid; gap: 16px; }
.auth-form .btn { width: 100%; }
.sub { color: var(--muted); line-height: 1.5; }
.sub b { color: var(--ink); overflow-wrap: anywhere; }
.small, .hint { font-size: 0.875rem; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.input { width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--field); border-radius: 10px; padding: 11px 12px; min-height: 46px; }
.input:focus { outline: 2px solid var(--g-accent); outline-offset: 1px; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.pw { position: relative; }
.pw.has-toggle .input { padding-right: 84px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--muted); font: 600 0.875rem var(--f-body); min-height: 40px; padding: 0 10px; border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { color: var(--ink); }
.err { color: var(--bad); font-size: 0.9375rem; }
.ok-msg { background: #e3f6ee; color: #076b51; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.auth-foot { text-align: center; font-size: 0.875rem; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); color: var(--night-muted); }
