/* ============================================================
   KitapBot — landing v1 "Gece Mürekkebi"
   Koyu lacivert-siyah zemin, amber/altın vurgu, Fraunces + Inter.
   ============================================================ */

/* ---------- Design token'ları ---------- */
:root {
  --bg-0: #07090f;
  --bg-1: #0b0e14;
  --bg-2: #10141d;
  --bg-3: #151a26;

  --ink:    #ece6d9;
  --ink-2:  #b3ac9c;
  --ink-3:  #948e80; /* koyu zeminlerde ≥5:1 (AA, küçük metin payıyla) */

  --amber:     #e8a33d;
  --amber-2:   #f2bd6a;
  --amber-3:   #b97c20;
  --amber-ink: #1b1206;

  --red:    #e87f7f;

  --line:        rgba(236, 230, 217, .09);
  --line-amber:  rgba(232, 163, 61, .22);

  --font-d: "Fraunces", Georgia, "Times New Roman", serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius:   18px;
  --radius-s: 12px;
  --wrap: 1160px;
  --pad-x: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.22, .61, .21, 1);
}

/* ---------- Sıfırlama ve zemin ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-b);
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-1);
  background-image:
    radial-gradient(1100px 620px at 78% -140px, rgba(232, 163, 61, .13), transparent 65%),
    radial-gradient(900px 560px at -12% 6%, rgba(86, 112, 182, .07), transparent 60%),
    linear-gradient(var(--bg-1), var(--bg-0));
  background-repeat: no-repeat;
}

/* Tahıl dokusu — mum ışığında kâğıt taneciği */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(232, 163, 61, .35); color: #fff; }

/* hidden niteliği, display tanımlı yazar kurallarını (örn. .file-chip{display:flex}) her zaman ezsin */
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--font-d); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.wrap-narrow { max-width: 800px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Görsel olarak gizli ama odaklanabilir — dropzone içindeki dosya inputu.
   Odak halkası .dropzone:focus-within ile kapsayıcıda gösterilir. */
.visually-hidden-focusable {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--amber);
  color: var(--amber-ink);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Üst çubuk ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: .01em;
}
.brand svg { color: var(--amber); flex: none; }
.brand b { font-weight: inherit; color: var(--amber); }
.brand:hover { color: var(--amber-2); }
.brand:hover b { color: var(--amber-2); }

.site-nav {
  display: flex;
  gap: 28px;
  margin-inline: auto;
}
.site-nav a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-size: .95rem;
  padding: 6px 2px;
  transition: color .25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Düğmeler ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 26px;
  font: 600 .98rem/1 var(--font-b);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .25s var(--ease),
    box-shadow .25s var(--ease),
    background-color .25s,
    border-color .25s,
    color .25s;
}

.btn-primary {
  background: linear-gradient(160deg, var(--amber-2), var(--amber) 45%, var(--amber-3));
  color: var(--amber-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    0 10px 28px -10px rgba(232, 163, 61, .45);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 16px 36px -10px rgba(232, 163, 61, .55);
}
/* Mum ışığı parıltısı — hover'da süpürülen ışık */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -65%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease);
}
.btn-primary:hover:not(:disabled)::after { left: 125%; }
.btn-primary:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-amber);
  color: var(--amber-2);
}
.btn-ghost:hover {
  background: rgba(232, 163, 61, .08);
  border-color: var(--amber);
}
.btn-ghost.is-done { color: var(--ink); border-color: var(--ink-3); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- Kicker / başlık kalıpları ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--amber);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.kicker-orn { letter-spacing: 0; }

.sec-head { max-width: 640px; margin: 0 0 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-title {
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 14px 0;
}
.sec-sub { color: var(--ink-2); margin: 0; font-size: 1.05rem; }

.section {
  padding: 104px 0;
  scroll-margin-top: 80px;
}

/* ---------- Ayraç ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  color: var(--amber);
}
.divider span { font-size: .78rem; opacity: .8; }
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
}
.divider::before { background: linear-gradient(90deg, transparent, var(--line-amber)); }
.divider::after  { background: linear-gradient(90deg, var(--line-amber), transparent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 9vh, 110px) 0 96px;
  overflow: hidden;
}
/* Dev tırnak işareti — mürekkep gölgesi */
.hero::after {
  content: "\201C";
  position: absolute;
  top: -90px; left: -20px;
  font: 600 28rem/1 var(--font-d);
  color: rgba(232, 163, 61, .05);
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.hero-copy h1 {
  font-weight: 300;
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 20px 0 22px;
}
.hero-copy h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber-2);
}

.lede {
  color: var(--ink-2);
  font-size: 1.08rem;
  max-width: 54ch;
  margin: 0;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  color: var(--ink-3);
  font-size: .88rem;
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--amber); flex: none; }

/* ---------- Yükleme kartı (ex libris) ---------- */
/* id="yukle" karttadır; sabit üst çubuğun altında nefes payı bırak */
.hero-card { scroll-margin-top: 88px; }

.upload-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px clamp(20px, 3vw, 34px) 26px;
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(232, 163, 61, .05);
}
/* İç çerçeve — kitap kapağı zarafeti */
.upload-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(232, 163, 61, .13);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--amber);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.card-kicker::before,
.card-kicker::after {
  content: "";
  height: 1px;
  flex: 1;
}
.card-kicker::before { background: linear-gradient(90deg, transparent, var(--line-amber)); }
.card-kicker::after  { background: linear-gradient(90deg, var(--line-amber), transparent); }

.panel { position: relative; }

/* Bırakma alanı — <label for="fileInput">, native semantik */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 34px 18px 28px;
  border: 1.5px dashed rgba(232, 163, 61, .35);
  border-radius: var(--radius-s);
  background: rgba(232, 163, 61, .03);
  cursor: pointer;
  transition:
    border-color .25s,
    background-color .3s,
    transform .25s var(--ease);
}
.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--amber);
  background: rgba(232, 163, 61, .07);
}
/* Odak halkası: içerideki gizli input odaklanınca kapsayıcıda göster */
.dropzone:focus-within {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.dropzone.is-drag {
  border-color: var(--amber-2);
  background: rgba(232, 163, 61, .12);
  transform: scale(1.012);
}
/* Dosya seçildi: kesik çizgi düze döner, amber ton kalıcılaşır */
.dropzone.has-file {
  border-style: solid;
  border-color: var(--line-amber);
  background: rgba(232, 163, 61, .06);
}
.dropzone.has-file:hover,
.dropzone.has-file:focus-within { border-color: var(--amber); }
.dropzone svg {
  color: var(--amber);
  margin-bottom: 8px;
  transition: transform .3s var(--ease);
}
.dropzone:hover svg,
.dropzone.is-drag svg { transform: translateY(-3px); }

.dz-title {
  margin: 0;
  font-family: var(--font-d);
  font-size: 1.22rem;
  font-weight: 500;
}
.dz-sub { margin: 0; color: var(--ink-3); font-size: .92rem; }
.dz-link {
  color: var(--amber-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Seçili dosya rozeti */
.file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 10px 14px;
  background: rgba(232, 163, 61, .07);
  border: 1px solid var(--line-amber);
  border-radius: 10px;
  font-size: .92rem;
}
.file-chip svg { color: var(--amber); flex: none; }
#fileName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#fileSize { color: var(--ink-2); flex: none; } /* amber chip zemininde AA */
#fileRemove {
  margin-left: auto;
  flex: none;
  background: none;
  border: 0;
  color: var(--ink-3);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: color .2s, background-color .2s;
}
#fileRemove:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }

/* Başlık alanı */
.field { display: block; margin: 18px 0; }
.field > span {
  display: block;
  font-size: .84rem;
  color: var(--ink-2);
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.field small { color: var(--ink-3); }
.field input {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font: 400 .98rem var(--font-b);
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, .15);
}

.hint {
  margin: 14px 0 0;
  text-align: center;
  color: var(--ink-3);
  font-size: .82rem;
}
.hint-amber { color: var(--amber-2); }

.form-error {
  margin: 14px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(224, 82, 82, .35);
  border-radius: 10px;
  background: rgba(224, 82, 82, .08);
  color: #f0a3a3;
  font-size: .9rem;
}

/* ---------- Durum panelleri ---------- */
.panel-busy, .panel-ready, .panel-error {
  text-align: center;
  padding: 18px 6px 8px;
  animation: panel-in .45s var(--ease) both;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.panel-title {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 18px 0 8px;
}
.panel-title:focus { outline: none; }
.panel-sub { color: var(--ink-2); margin: 0 0 6px; font-size: .96rem; }

/* Okunan kitap animasyonu */
.reader {
  position: relative;
  width: 128px;
  margin: 8px auto 0;
  padding: 18px 18px 14px;
  border: 1px solid var(--line-amber);
  border-radius: 8px 8px 12px 12px;
  background: linear-gradient(180deg, rgba(232, 163, 61, .07), rgba(232, 163, 61, .02));
}
/* Mum alevi gibi titreyen sıcak hâle */
.reader::before {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 61, .22), transparent 65%);
  animation: flicker 2.6s ease-in-out infinite;
  pointer-events: none;
}
.reader-lines i {
  display: block;
  height: 6px;
  border-radius: 3px;
  margin: 9px 0;
  background: linear-gradient(
    90deg,
    rgba(236, 230, 217, .1) 25%,
    rgba(232, 163, 61, .5) 50%,
    rgba(236, 230, 217, .1) 75%
  );
  background-size: 220% 100%;
  animation: shimmer 1.8s linear infinite;
}
.reader-lines i:nth-child(2) { width: 84%; animation-delay: .18s; }
.reader-lines i:nth-child(3) { width: 62%; animation-delay: .36s; }

@keyframes shimmer {
  from { background-position: 130% 0; }
  to   { background-position: -130% 0; }
}
@keyframes flicker {
  0%, 100% { opacity: .55; }
  38%      { opacity: .9; }
  62%      { opacity: .45; }
  80%      { opacity: .75; }
}

/* Gerçek yükleme yüzdesi çubuğu (XHR upload.onprogress) */
.progress {
  width: min(260px, 80%);
  height: 6px;
  margin: 22px auto 0;
  border-radius: 3px;
  background: rgba(236, 230, 217, .1);
  overflow: hidden;
}
.progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber-3), var(--amber), var(--amber-2));
  transition: width .3s var(--ease);
}

.ready-mark, .error-mark {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-amber);
  background: rgba(232, 163, 61, .08);
  color: var(--amber-2);
}
.error-mark {
  border-color: rgba(224, 82, 82, .4);
  background: rgba(224, 82, 82, .08);
  color: var(--red);
}

.linkrow {
  display: flex;
  gap: 10px;
  margin: 20px 0 14px;
}
.linkrow input {
  flex: 1;
  min-width: 0;
  background: var(--bg-1);
  border: 1px solid var(--line-amber);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--amber-2);
  font: 500 .88rem var(--font-b);
  letter-spacing: .01em;
}
.linkrow input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, .15);
}
#chatGo { margin-top: 2px; }

/* ---------- Adımlar ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
.step {
  position: relative;
  padding: 34px 28px 30px;
  border-top: 1px solid var(--line-amber);
  background: linear-gradient(180deg, rgba(21, 26, 38, .85), transparent);
  transition: border-color .35s;
}
.step:hover { border-top-color: var(--amber); }
.step-no {
  display: block;
  font: italic 300 3.4rem/1 var(--font-d);
  color: rgba(232, 163, 61, .28);
  -webkit-text-stroke: 1px rgba(232, 163, 61, .55);
  margin-bottom: 18px;
  transition: color .35s;
}
.step:hover .step-no { color: rgba(232, 163, 61, .5); }
.step h3 {
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* ---------- Özellikler ---------- */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 30px 26px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  transition:
    transform .35s var(--ease),
    border-color .35s,
    box-shadow .35s;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: var(--line-amber);
  box-shadow:
    0 24px 48px -24px rgba(0, 0, 0, .8),
    0 0 32px -14px rgba(232, 163, 61, .35);
}
.f-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line-amber);
  background: rgba(232, 163, 61, .06);
  color: var(--amber);
  margin-bottom: 18px;
  transition: background-color .3s, transform .3s var(--ease);
}
.feature:hover .f-icon {
  background: rgba(232, 163, 61, .14);
  transform: rotate(-4deg) scale(1.05);
}
.feature h3 {
  font-weight: 500;
  font-size: 1.16rem;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: .93rem;
  line-height: 1.6;
}

/* ---------- Ara söz ---------- */
.interlude {
  padding: 96px 0;
  text-align: center;
}
.interlude-quote {
  font: italic 300 clamp(1.5rem, 3vw, 2.3rem)/1.4 var(--font-d);
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
}
.interlude-quote em { color: var(--amber-2); }
.interlude-credit {
  margin: 22px 0 0;
  color: var(--ink-3);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.interlude-credit::before { content: "— "; }
/* İçinde CTA butonu varsa imza tiresi ve metin biçimi uygulanmaz */
.interlude-credit:has(.btn) { letter-spacing: normal; text-transform: none; }
.interlude-credit:has(.btn)::before { content: none; }

/* ---------- SSS ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  font: 500 1.12rem var(--font-d);
  color: var(--ink);
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  flex: none;
  font: 300 1.7rem/1 var(--font-d);
  color: var(--amber);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--amber-2); }
.faq-body {
  padding: 0 4px 24px;
  color: var(--ink-2);
  font-size: .97rem;
  max-width: 64ch;
}
.faq-body p { margin: 0; }

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 64px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(232, 163, 61, .04));
}
.foot-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 22px;
  color: var(--amber);
  font-size: .85rem;
}
.foot-ornament::before,
.foot-ornament::after {
  content: "";
  width: min(180px, 28vw);
  height: 1px;
}
.foot-ornament::before { background: linear-gradient(90deg, transparent, var(--line-amber)); }
.foot-ornament::after  { background: linear-gradient(90deg, var(--line-amber), transparent); }
.foot-brand {
  font: 600 1.3rem var(--font-d);
  margin: 0;
}
.foot-tag {
  font: italic 400 1rem var(--font-d);
  color: var(--ink-2);
  margin: 6px 0 22px;
}
.foot-note { color: var(--ink-3); font-size: .88rem; margin: 0 0 6px; }
.foot-copy { color: var(--ink-3); font-size: .88rem; margin: 0; }

/* ---------- Hareket: giriş ve scroll-reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise .8s var(--ease) both; }
  .hero-card { animation: rise .9s var(--ease) .12s both; }

  /* Modern tarayıcılarda saf CSS scroll-reveal; desteklemeyenlerde
     içerik animasyonsuz, daima görünür kalır. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise both;
      animation-timeline: view();
      animation-range: entry 5% entry 40%;
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Duyarlılık ---------- */
@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-card { max-width: 560px; width: 100%; margin-inline: auto; }
  .hero { padding-bottom: 72px; }
  .hero::after { font-size: 20rem; top: -60px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 84px 0; }
}

@media (max-width: 880px) {
  .site-nav { display: none; }
  /* Marka solda; giriş/üye butonları + burger sağda tek grup hâlinde yan yana */
  .nav-row { gap: 10px; }
  .nav-actions { margin-left: auto; }   /* sağ grubu başlat (çıkış yapılmış) */
  .nav-cta { margin-left: auto; }       /* giriş yapılmış: Panelim butonu sağa */
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .step { padding: 26px 22px 24px; }
}

@media (max-width: 620px) {
  .nav-row { height: 60px; gap: 14px; }
  .features { grid-template-columns: 1fr; }
  .linkrow { flex-direction: column; }
  .hero { padding-top: 48px; }
  .hero-copy h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .upload-card { padding: 24px 18px 22px; }
  .dropzone { padding: 28px 14px 24px; }
  .hero-card { scroll-margin-top: 76px; }
  .section { padding: 68px 0; }
  .interlude { padding: 72px 0; }
  .trust { gap: 8px 18px; }
}

@media (max-width: 400px) {
  .brand span { font-size: 1.1rem; }
  .btn-sm { padding: 8px 14px; font-size: .84rem; }
  .hero::after { display: none; }
}

/* ---------- Üst menü eylemleri (çıkış yapılmış) ---------- */
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
@media (max-width: 560px) { .nav-actions .btn-ghost { display: none; } }

/* ---------- Giriş yapılmamış hero kartı ---------- */
.cta-panel { display: flex; flex-direction: column; }
.cta-demo { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 24px; }
.cta-msg {
  max-width: 88%; padding: 11px 15px; border-radius: 14px;
  font-size: .89rem; line-height: 1.55;
}
.cta-msg--q {
  align-self: flex-end;
  background: linear-gradient(160deg, rgba(232,163,61,.18), rgba(232,163,61,.10));
  border: 1px solid rgba(232,163,61,.28);
  color: var(--ink);
  border-bottom-right-radius: 5px;
}
.cta-msg--a {
  align-self: flex-start; display: flex; gap: 9px;
  background: var(--bg-1); border: 1px solid var(--line);
  color: var(--ink-2);
  border-bottom-left-radius: 5px;
}
.cta-avatar { flex: none; line-height: 1.55; }
.cta-title {
  font-family: var(--font-d); font-weight: 600; font-size: 1.4rem;
  color: var(--ink); margin: 0 0 8px; text-align: center; letter-spacing: .01em;
}
.cta-sub { color: var(--ink-3); font-size: .93rem; line-height: 1.65; margin: 0 0 22px; text-align: center; }
.cta-actions { display: flex; flex-direction: column; gap: 11px; }
.cta-note { margin: 18px 0 0; text-align: center; color: var(--ink-3); font-size: .8rem; letter-spacing: .02em; }
.cta-note span { color: var(--amber); }

/* ---------- Kullanım alanları açılır menüsü ---------- */
.nav-dd { position: relative; }
.nav-dd summary {
  list-style: none; cursor: pointer; color: var(--ink-2); font-size: .95rem;
  padding: 6px 2px; display: inline-flex; align-items: center; gap: 6px;
}
.nav-dd summary::-webkit-details-marker { display: none; }
.nav-dd summary::after { content: "▾"; font-size: .7em; color: var(--amber); transition: transform .2s; }
.nav-dd[open] summary::after { transform: rotate(180deg); }
.nav-dd summary:hover { color: var(--ink); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 280px; padding: 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  display: flex; flex-direction: column; z-index: 50;
}
.nav-dd-menu a {
  padding: 9px 12px; border-radius: 8px; color: var(--ink-2);
  font-size: .92rem; text-decoration: none;
}
.nav-dd-menu a:hover, .nav-dd-menu a.active { background: rgba(232,163,61,.09); color: var(--ink); }
.nav-dd-menu a:hover::after { display: none; }

/* ---------- Kategori (tur) sayfaları ---------- */
.hero--tur { text-align: center; }
.hero-copy--tur {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy--tur h1 { max-width: 22ch; }
.hero--tur .lede { max-width: 64ch; font-size: 1.12rem; line-height: 1.75; }

.tur-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 42px;
}
.btn-lg { padding: 15px 30px; font-size: 1.02rem; border-radius: 14px; }

.tur-trust { justify-content: center; margin-top: 34px; }

.tur-others {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-3);
  font-size: .9rem;
  line-height: 2.1;
}
.tur-others a { color: var(--amber-2); text-decoration: none; }
.tur-others a:hover { text-decoration: underline; }

/* İnterlude içindeki CTA butonu alıntı tipografisini miras almasın */
.interlude-credit .btn {
  letter-spacing: normal;
  text-transform: none;
  font-size: .98rem;
  margin-top: 16px;
}

/* Footer kategori linkleri */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 12px 0 6px; }
.foot-links a { color: var(--ink-3); font-size: .85rem; text-decoration: none; }
.foot-links a:hover { color: var(--amber-2); }

/* Tur sayfalarında 4 fayda kartı 2×2 otursun (3+1 dengesizliği yerine) */
@media (min-width: 760px) {
  .features--two { grid-template-columns: repeat(2, 1fr); max-width: 1000px; margin-inline: auto; }
}

/* ---------- Hero mesaj döngüsü (3 dilim) ---------- */
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s .6s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s;
}
/* 2-3. dilimlerin başlıkları <p> — h1 tipografisini birebir alır */
.hero-h1 {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 20px 0 22px;
  color: var(--ink);
}
.hero-h1 em { font-style: italic; font-weight: 400; color: var(--amber-2); }

.hero-dots { grid-area: 2 / 1; display: flex; gap: 10px; margin-top: 30px; }
.hero-dot {
  width: 26px; height: 4px; border-radius: 999px; border: none; padding: 0;
  background: rgba(236, 230, 217, .18); cursor: pointer;
  transition: background .3s, width .3s;
}
.hero-dot.is-active { background: var(--amber); width: 40px; }
.hero-dot:hover:not(.is-active) { background: rgba(236, 230, 217, .35); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active { transition: none; transform: none; }
}
@media (max-width: 620px) {
  .hero-h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .hero-dots { margin-top: 22px; }
}

/* Aktif menü öğesi (sayfalar arası tutarlı vurgu) */
.site-nav a.active { color: var(--ink); }
.site-nav a.active::after { transform: scaleX(1); }
.nav-dd:has(.nav-dd-menu a.active) summary { color: var(--ink); }

/* ---------- Üyelik / giriş sayfaları ---------- */
.auth-shell { display: grid; place-items: center; min-height: 70vh; padding: 50px 0; }
.auth-card {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}
.auth-card h1 { font-family: var(--font-d); font-weight: 400; font-size: 1.7rem; margin: 0 0 6px; }
.auth-sub { color: var(--ink-3); font-size: .94rem; margin: 0 0 24px; }
.auth-field { display: block; margin-bottom: 15px; }
.auth-field > span { display: block; font-size: .86rem; color: var(--ink-2); margin-bottom: 6px; }
.auth-field small { color: var(--ink-3); font-weight: 400; }
.auth-field input {
  width: 100%; background: var(--bg-1); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 12px 14px; font: inherit; font-size: 16px;
}
.auth-field input:focus { border-color: var(--amber-3); outline: none; }
.auth-check {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 4px 0 16px; font-size: .85rem; color: var(--ink-2); line-height: 1.5; cursor: pointer;
}
.auth-check input { margin-top: 3px; flex: none; accent-color: var(--amber); width: 16px; height: 16px; }
.auth-check small { color: var(--ink-3); }
.auth-check a { color: var(--amber-2); }
.auth-alt { margin-top: 18px; font-size: .9rem; color: var(--ink-3); text-align: center; }
.auth-resend { margin-top: 4px; }
.auth-alert {
  background: rgba(232,127,127,.1); border: 1px solid rgba(232,127,127,.35);
  color: var(--red); border-radius: var(--radius-s); padding: 11px 15px;
  font-size: .9rem; margin: 0 0 18px;
}
.auth-alert--ok {
  background: rgba(125,200,140,.1); border-color: rgba(125,200,140,.35);
  color: var(--green, #7dc88c);
}

/* ---------- Yasal metin sayfası ---------- */
.legal h2 { font-family: var(--font-d); font-weight: 500; font-size: 1.25rem; margin: 32px 0 10px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-2); line-height: 1.75; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--amber-2); }
.legal-back { margin-top: 36px; }

/* Taban link rengi: yalnızca İÇERİK alanındaki sınıfsız metin linkleri palet vurgusu alır.
   Header (menü) ve footer linklerine dokunulmaz — onlar kendi tutarlı renklerini korur. */
main a:not([class]) { color: var(--amber-2); }
main a:not([class]):visited { color: var(--amber-2); }
main a:not([class]):hover { color: var(--amber); }

/* ---------- Mobil menü ---------- */
.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; color: var(--ink-2);
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { color: var(--amber); border-color: var(--line-amber); }
.nav-mobile-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: min(300px, 86vw); max-height: 70vh; overflow-y: auto; padding: 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.75);
  display: flex; flex-direction: column; z-index: 60;
}
.nav-mobile-menu a {
  padding: 11px 12px; border-radius: 8px; color: var(--ink-2);
  font-size: .95rem; text-decoration: none;
}
.nav-mobile-menu a:hover { background: rgba(232,163,61,.09); color: var(--ink); }
.nav-mobile-menu .nav-mobile-sub { padding-left: 22px; font-size: .88rem; }
.nav-mobile-label {
  margin: 10px 12px 4px; color: var(--amber); font-size: .7rem;
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
@media (max-width: 880px) {
  .nav-mobile { display: block; }
}


/* ---------- Form alan doğrulaması ---------- */
.auth-field input.is-invalid { border-color: rgba(232,127,127,.6); }
.auth-field input.is-valid { border-color: rgba(143,206,154,.45); }
.field-err {
  display: block; margin-top: 6px; font-size: .8rem; color: var(--red); line-height: 1.4;
}
.auth-check.is-invalid span { color: var(--red); }

/* Fernus marka imzası */
.foot-fernus {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 18px 0 6px; color: var(--ink-3); font-size: .82rem;
}
.foot-fernus svg { height: 14px; width: auto; opacity: .92; }

/* Footer kategori linkleri biraz daha küçük (sayfa linklerinden ayrı) */
.foot-links--cats a { font-size: .68rem; font-weight: 400; }
