/* Esnaf Kurye Rehberi: canlı mavi zemin, kurye çantası turuncusu, tamamlanan adım için nane yeşili. */

:root {
  --ink: #0f1535;
  --ink-soft: #444b73;
  --paper: #f6f7fd;
  --card: #ffffff;
  --blue: #2b3cff;
  --blue-deep: #1a24b8;
  --tint: #e8ebff;
  --orange: #ff5a1f;
  --orange-soft: #fff0e8;
  --mint: #12b886;
  --line: #d3d8f3;
  --line-strong: #aab1de;
  --display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 40rem;
  --wide: 72rem;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--text);
}

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 0.9rem;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0.5rem;
}
.skip:focus { top: 0.75rem; }

/* Sayfa boyunca dolan çizgi */
.scrollbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 4px;
  pointer-events: none;
}
.scrollbar span {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

/* Üst bant ve hero: aynı mavi, dikişsiz */
.site-head { background: var(--blue); color: #fff; }
.site-head__in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; }
.brand__mark { width: 2rem; height: 2rem; flex: none; }
.brand__name { font: 700 1.05rem/1.2 var(--display); }
.head-link {
  padding: 0.45rem 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.8rem;
}
.head-link:hover { background: #fff; color: var(--blue); }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  border-radius: 0 0 2rem 2rem;
}
.hero__route {
  position: absolute;
  right: -3rem;
  bottom: -1rem;
  width: 22rem;
  max-width: none;
  pointer-events: none;
}
.hero__in {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1, h2, h3 { font-family: var(--display); margin: 0; }

h1 {
  max-width: 16em;
  margin-bottom: 1.1rem;
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 36rem;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #e6e9ff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.3rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.6rem 1.4rem;
  background: var(--orange);
  color: var(--ink);
  border: 2px solid var(--orange);
  border-radius: 0.8rem;
  font: 700 1rem/1.2 var(--display);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #ff7440; border-color: #ff7440; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn--ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn--ikincil { background: var(--card); border-color: var(--ink); }
.btn--ikincil:hover { background: var(--tint); border-color: var(--ink); }

.hero__progress { max-width: 26rem; margin-top: 1.9rem; }
.hero__progress p { margin: 0 0 0.45rem; font-weight: 600; font-size: 0.95rem; }
.hero__progress .bar { height: 0.6rem; background: rgba(255, 255, 255, 0.22); border-radius: 99px; overflow: hidden; }
.hero__progress .bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--orange);
  border-radius: 99px;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__progress .bar span { transition: transform 0.4s ease; }
}

.small { max-width: 36rem; margin: 1.4rem 0 0; font-size: 0.9rem; line-height: 1.55; color: #d0d5ff; }

/* Sayfa düzeni: mobilde üstte liste, geniş ekranda solda yapışkan rota */
.page {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
  display: grid;
  gap: 1.75rem;
}
.steps { min-width: 0; }

@media (min-width: 960px) {
  .page {
    grid-template-columns: 17rem minmax(0, 1fr);
    column-gap: 3.5rem;
    padding-top: 3rem;
  }
  .route { align-self: start; position: sticky; top: 1.25rem; }
}

/* Rota listesi */
.route details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.route summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  font: 700 1rem/1.3 var(--display);
  cursor: pointer;
  list-style: none;
}
.route summary::-webkit-details-marker { display: none; }
.route summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  margin-right: 0.3rem;
}
.route details[open] summary::after { transform: rotate(-135deg); }

.route ol { list-style: none; margin: 0; padding: 0 0.5rem 0.6rem; }
.route a {
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  border-radius: 0.6rem;
}
.route a:hover { background: var(--tint); }
.route .n {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--card);
  color: var(--blue);
  font: 800 0.8rem/1 var(--display);
}
.route a[aria-current="location"] { background: var(--tint); }
.route a[aria-current="location"] .n { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.route li.is-done .n { background: var(--mint); border-color: var(--mint); font-size: 0; }
.route li.is-done .n::after { content: "✓"; font-size: 0.95rem; color: var(--ink); }

@media (min-width: 960px) {
  .route summary { pointer-events: none; cursor: default; }
  .route summary::after { display: none; }
}

/* Adımlar: soldaki rota çizgisi ve duraklar */
.steps {
  position: relative;
  padding-left: 3rem;
}
.steps::before {
  content: "";
  position: absolute;
  left: calc(1.05rem - 1.5px);
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 8px, transparent 8px 15px);
}

.stop { position: relative; padding: 0 0 3rem; }
.stop:last-child { padding-bottom: 0.5rem; }

.stop h2 {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: clamp(1.4rem, 5.2vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.plate {
  position: absolute;
  left: -3rem;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--card);
  border: 3px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font: 800 0.95rem/1 var(--display);
}
.stop.is-active .plate { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.stop.is-done .plate { background: var(--mint); border-color: var(--mint); font-size: 0; }
.stop.is-done .plate::after { content: "✓"; font-size: 1.05rem; color: var(--ink); }

.steps p, .steps ul, .steps ol { max-width: var(--measure); }
.steps p { margin: 0 0 1rem; }
.steps ul, .steps ol { margin: 0 0 1.15rem; padding-left: 1.25rem; }
.steps li { margin-bottom: 0.5rem; padding-left: 0.2rem; }
.steps li::marker { color: var(--blue); font-weight: 700; }
.steps strong { color: var(--ink); }

.steps .note {
  max-width: var(--measure);
  margin: 1.25rem 0 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--tint);
  border-left: 4px solid var(--blue);
  border-radius: 0 0.8rem 0.8rem 0;
}
.steps .note--alert { background: var(--orange-soft); border-left-color: var(--orange); }

.q { margin: 1.5rem 0 0.35rem; font-weight: 700; font-size: 1.1rem; line-height: 1.35; }

/* "Bu adımı tamamladım" */
.done {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-top: 1.1rem;
  padding: 0.5rem 1.1rem;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0.8rem;
  font: 600 0.95rem/1.2 var(--text);
  cursor: pointer;
}
.done:hover { background: var(--tint); }
.done::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.done[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); }
.done[aria-pressed="true"]::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 0;
  font-size: 1rem;
  font-weight: 800;
}

/* Soru formu bölümü */
.ask {
  margin-top: 0.5rem;
  background: var(--ink);
  color: #e3e6ff;
  border-radius: 2rem 2rem 0 0;
}
.ask__in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  gap: 2rem;
}
.ask h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ask p { max-width: 30rem; margin: 0; }

@media (min-width: 900px) {
  .ask__in { grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); gap: 4rem; align-items: start; padding: 4.5rem 1.25rem; }
  .ask__text { padding-top: 0.5rem; }
}

.form-wrap {
  padding: 1.25rem;
  background: var(--card);
  color: var(--ink);
  border-radius: 1.25rem;
}
.form-title { margin-bottom: 1rem; font-weight: 700; font-size: 1.3rem; line-height: 1.3; }

.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field[hidden] { display: none; }
.field label { font-weight: 600; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--ink-soft); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line-strong);
  border-radius: 0.7rem;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); outline-color: var(--blue); }

.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; }
.field--check input { width: 1.3rem; height: 1.3rem; margin-top: 0.25rem; accent-color: var(--blue); }
.field--check label { font-weight: 400; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 0.9rem 0 0; font-weight: 600; min-height: 1.5em; }
.chat-note { margin: 0.9rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.ask .chat-note { max-width: none; }

/* Kaynaklar */
.sources .wrap { max-width: var(--wide); margin: 0 auto; padding: 3rem 1.25rem; }
.sources h2 { margin-bottom: 0.75rem; font-weight: 700; font-size: 1.5rem; line-height: 1.3; }
.sources ul { max-width: 46rem; margin: 0 0 1.25rem; padding-left: 1.25rem; }
.sources li { margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.sources li::marker { color: var(--blue); }

/* Alt bant */
.site-foot { background: var(--ink); color: #b9bfe6; }
.site-foot__in { max-width: var(--wide); margin: 0 auto; padding: 1.75rem 1.25rem 2.25rem; font-size: 0.95rem; }
.site-foot p { margin: 0 0 0.6rem; max-width: 46rem; }
.site-foot a { color: #fff; }

/* Mobilde okunan adım rozeti */
.mini {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 20;
  padding: 0.7rem 1.05rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0.8rem;
  box-shadow: 0 6px 18px rgba(15, 21, 53, 0.28);
  font: 700 0.95rem/1.2 var(--display);
  text-decoration: none;
}
.mini[hidden] { display: none; }
@media (min-width: 960px) { .mini { display: none; } }

/* Canlı destek düğmesi ve penceresi */
.destek-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  min-height: 3rem;
  padding: 0.6rem 1.2rem;
  background: var(--orange);
  color: var(--ink);
  border: 0;
  border-radius: 0.8rem;
  box-shadow: 0 6px 18px rgba(15, 21, 53, 0.3);
  font: 700 1rem/1.2 var(--display);
  cursor: pointer;
}
.destek-btn:hover { background: #ff7440; }
.destek-btn[hidden] { display: none; }

.destek {
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  background: var(--card);
  color: var(--ink);
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 21, 53, 0.45);
}
.destek::backdrop { background: rgba(15, 21, 53, 0.6); }
.destek .small { max-width: none; margin: 0 0 1rem; color: var(--ink-soft); }
.destek__alt { display: flex; gap: 0.6rem; flex-wrap: wrap; }

@media (max-width: 420px) {
  .form-wrap { padding: 1rem; }
  .hero__route { width: 16rem; right: -4rem; }
}

/* Hareket: yükleme sırası, kayan rota, kaydırmaya bağlı kurye, kutlama */
.hero__route .route-line { animation: akis 1.4s linear infinite; }
@keyframes akis { to { stroke-dashoffset: -16; } }

.js .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  animation: yuksel 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 70ms + 80ms);
}
@keyframes yuksel { to { opacity: 1; transform: none; } }

.js .hero .lede,
.js .hero .chips li,
.js .hero__cta,
.js .hero__progress,
.js .hero .small {
  opacity: 0;
  transform: translateY(14px);
  animation: yuksel 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.7s;
}
.js .hero .chips li:nth-child(2) { animation-delay: 0.78s; }
.js .hero .chips li:nth-child(3) { animation-delay: 0.86s; }
.js .hero__cta { animation-delay: 0.95s; }
.js .hero__progress { animation-delay: 1.05s; }
.js .hero .small { animation-delay: 1.15s; }

.btn { transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.js .stop {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .stop.is-in { opacity: 1; transform: none; }

.rider {
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease;
  left: calc(1.05rem - 0.55rem);
  top: 1rem;
  z-index: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.28);
  pointer-events: none;
  will-change: transform;
}

.plate { transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.stop.just .plate { animation: pop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1); }
.done.just { animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

#ilerleme-sayi { display: inline-block; animation: tik 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes tik { from { transform: translateY(0.6em); opacity: 0; } to { transform: none; opacity: 1; } }

.konfeti { position: fixed; z-index: 60; width: 0.6rem; height: 0.6rem; border-radius: 2px; pointer-events: none; }

.destek-btn { animation: halka 6s ease-in-out infinite; }
@keyframes halka {
  0%, 72%, 100% { box-shadow: 0 6px 18px rgba(15, 21, 53, 0.3), 0 0 0 0 rgba(255, 90, 31, 0.55); }
  86% { box-shadow: 0 6px 18px rgba(15, 21, 53, 0.3), 0 0 0 14px rgba(255, 90, 31, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .w, .js .hero .lede, .js .hero .chips li, .js .hero__cta, .js .hero__progress, .js .hero .small, .js .stop {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__moto { display: none; }
}

.brand__logo { display: block; height: 2.25rem; width: auto; }
@media (max-width: 420px) { .brand__logo { height: 2rem; } }

/* Yasal metin sayfası */
.legal { max-width: 46rem; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
.legal h1 { margin: 0 0 0.5rem; font-weight: 800; font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; }
.legal__tarih { margin: 0 0 1.5rem; color: var(--ink-soft); font-size: 0.95rem; }
.legal h2 { margin: 2rem 0 0.6rem; font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.legal p, .legal ul { margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.45rem; }
.legal li::marker { color: var(--blue); }
.legal .note { padding: 0.9rem 1rem; background: var(--orange-soft); border-left: 4px solid var(--orange); border-radius: 0 0.8rem 0.8rem 0; }
.legal mark { background: #ffe9a8; color: var(--ink); padding: 0 0.2em; border-radius: 0.2em; }
