/* ==========================================================
   01 · Verinin Yolculuğu
   Kıvrımlı yol + duraklar + ürün ekranları
   ========================================================== */

.journey {
  padding: clamp(72px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
}

.jr-track {
  --jr-gap: clamp(180px, 22vw, 320px);
  position: relative;
}

/* ---------- Yol ---------- */
.jr-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.jr-path-base {
  fill: none;
  stroke: var(--line-3);
  stroke-width: 1.5;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}
/* ana çizgi: üç kollu DNA sarmalı (journey.js çizer) */
.jr-helix path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.jr-helix .s0 { stroke: var(--accent); stroke-width: 1.8; }
.jr-helix .s1 { stroke: var(--accent); stroke-width: 1.3; opacity: .55; }
.jr-helix .s2 { stroke: var(--text); stroke-width: 1.1; opacity: .4; }
.jr-helix .rungs { stroke: var(--accent); stroke-width: 1; opacity: .28; }

/* düğüm → kart / not: simgedeki beyin hatları gibi devre çizgileri */
.jr-trace path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.jr-trace .tr-base { stroke: var(--line-3); stroke-width: 1.2; }
.jr-trace .tr-on {
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset .9s var(--ease);
}
.jr-trace .tr-stub { transition-delay: .35s; }
.jr-trace.is-on .tr-on { stroke-dashoffset: 0; }

.tr-term { transform-box: fill-box; transform-origin: center; }
.tr-ring { fill: var(--bg); stroke: var(--line-3); stroke-width: 1.4; transition: stroke .4s .7s; }
.tr-dot { fill: var(--muted); transition: fill .4s .7s; }
.jr-trace.is-on .tr-ring { stroke: var(--accent); }
.jr-trace.is-on .tr-dot { fill: var(--text); }
.jr-trace.is-on .tr-term { animation: trPop .5s var(--spring) .75s both; }
.jr-trace.is-on .tr-term-stub { animation-delay: 1s; }
@keyframes trPop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

/* ilerleyen veri noktası */
.jr-packet {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
  will-change: transform;
}
.jr-packet-dot {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--accent);
}
.jr-packet-dot::before,
.jr-packet-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: jrRing 2.2s var(--ease) infinite;
}
.jr-packet-dot::after { animation-delay: 1.1s; }
@keyframes jrRing {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(2.6); opacity: 0; }
}
.jr-packet-tag {
  position: absolute;
  left: 20px;
  top: -11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: opacity .3s;
}
.jr-packet-tag:empty { opacity: 0; }
.jr-packet.is-flip .jr-packet-tag { left: auto; right: 20px; }

/* ---------- Duraklar ---------- */
.jr-node {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: border-color .4s, background-color .4s, transform .5s var(--spring);
}
.jr-node::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  transition: background-color .4s, transform .5s var(--spring);
}
.jr-node b {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .4s;
}
.jr-node.is-reached { border-color: var(--accent); transform: scale(1.15); }
.jr-node.is-reached::before { background: var(--accent); transform: scale(1.3); }
.jr-node.is-reached b { color: var(--accent-text); }
.jr-node--end { width: 34px; height: 34px; margin: -17px 0 0 -17px; color: var(--muted); }
.jr-node--end::before { display: none; }
.jr-node--end.is-reached { background: var(--accent); color: var(--on-accent); }

/* ---------- Satırlar ---------- */
.jr-rows { position: static; }
.jr-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--jr-gap);
  padding: clamp(48px, 6vw, 80px) 0;
}
.jr-row[data-side="right"] .jr-card { grid-column: 2; justify-self: start; }
.jr-row[data-side="left"] .jr-card { grid-column: 1; justify-self: end; }
.jr-row--first { padding-top: 0; }
.jr-row--first .jr-head { grid-column: 1; grid-row: 1; }
.jr-row--first .jr-card { grid-row: 1; margin-top: clamp(180px, 22vw, 300px); }

/* ---------- Karşı taraftaki kısa notlar (ürün / Uzser) ---------- */
.jr-note {
  grid-row: 1;
  align-self: start;
  min-width: 0;
  max-width: 340px;
  /* başlık çizgisi düğümle aynı hizaya gelsin (düğüm: kart üstü + 48px) */
  margin-top: 56px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity .8s var(--ease) .25s, transform 1s var(--ease) .25s;
}
.jr-row[data-side="right"] .jr-note { grid-column: 1; justify-self: end; text-align: end; transform: translateX(-36px); }
.jr-row[data-side="left"] .jr-note { grid-column: 2; justify-self: start; text-align: start; transform: translateX(36px); }
.jr-row.is-active .jr-note { opacity: 1; transform: none; }

.jr-note-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent-text);
}
.jr-note-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.jr-row[data-side="right"] .jr-note-kicker { flex-direction: row-reverse; }
.jr-note-text {
  margin: 10px 0 0;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--text-2);
}

/* ---------- Başlık ---------- */
.jr-head { align-self: start; min-width: 0; max-width: 520px; position: relative; z-index: 1; }
.jr-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--accent-text);
}
.jr-kicker-num {
  padding: 3px 7px;
  border: 1px solid var(--accent);
  border-radius: 6px;
}
.jr-title {
  margin: 22px 0 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.jr-accent { color: var(--accent-strong); }
.jr-lead {
  margin: 24px 0 0;
  max-width: 440px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  color: var(--text-2);
}
.jr-scroll {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}
.jr-scroll-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: var(--line-3);
  overflow: hidden;
}
.jr-scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--accent);
  animation: jrScroll 1.8s var(--ease) infinite;
}
@keyframes jrScroll { to { top: 100%; } }

/* ---------- Kart ---------- */
.jr-card {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 500px;
  opacity: 0;
  transition: opacity .8s var(--ease), transform 1s var(--ease);
}
.jr-row[data-side="right"] .jr-card { transform: translateX(48px); }
.jr-row[data-side="left"] .jr-card { transform: translateX(-48px); }
.jr-row.is-active .jr-card { opacity: 1; transform: none; }

.jr-meta { display: flex; align-items: baseline; gap: 12px; }
.jr-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.jr-verb { font-size: 13px; color: var(--muted); }
.jr-verb::before { content: '— '; }
.jr-h3 {
  margin: 12px 0 0;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.jr-desc {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.jr-caps {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--muted);
}
.jr-caps li { display: inline-flex; align-items: center; gap: 8px; }
.jr-caps li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* içerideki öğelerin sıralı belirmesi */
.rv-i {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms + 350ms);
}
.is-active .rv-i { opacity: 1; transform: none; }

/* ---------- Ürün ekranı (ortak) ---------- */
.mock {
  margin-top: 22px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13.5px;
}
.mock-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted);
}
.mock-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: 0; color: var(--text-2); }
.mock-live i { width: 6px; height: 6px; border-radius: 50%; background: #2FB36B; animation: hintBlink 1.6s ease-in-out infinite; }
.mock-note { font-size: 11px; letter-spacing: 0; color: var(--muted); }
@keyframes hintBlink { 50% { opacity: .3; } }

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--hover-tint);
  font-size: 12px;
  color: var(--text);
}

/* 01 · Sorgu */
.mq-ask {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px 12px 4px 12px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-size: 15px;
}
.mq-caret {
  width: 2px;
  height: 18px;
  margin-left: 2px;
  background: var(--accent);
  animation: jrCaret 1s step-end infinite;
}
@keyframes jrCaret { 50% { opacity: 0; } }
.mq-src { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mq-src-label { margin-inline-end: 4px; font-size: 12px; color: var(--muted); }

/* 02 · Analiz */
.mc-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text-2); }
.mc-delta { font-size: 14px; font-weight: 500; color: var(--accent-text); }
.mc-chart {
  margin-top: 12px;
  height: 120px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: end;
}
.mc-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 6px; }
.mc-col i {
  display: block;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: var(--line-3);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s var(--spring);
  transition-delay: calc(var(--d) * 1ms + 450ms);
}
.mc-col.is-drop i { background: var(--accent); }
.mc-col span { font-size: 11px; text-align: center; color: var(--muted); }
.is-active .mc-col i { transform: scaleY(1); }
.mc-insight {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  color: var(--text);
}
.mc-insight-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }

/* 03 · Ajan */
.mr-head { font-size: 13px; color: var(--text-2); }
.mr-list { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.mr-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}
.mr-bar { height: 6px; border-radius: 3px; background: var(--hover-tint); overflow: hidden; }
.mr-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 3px;
  background: var(--muted);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--d) * 1ms + 350ms);
}
.is-active .mr-bar i { transform: scaleX(1); }
.mr-list li:nth-child(1) .mr-bar i { background: var(--accent); }
.mr-list li:nth-child(2) .mr-bar i { background: var(--accent-text); opacity: .6; }
.mr-lvl { text-align: end; color: var(--muted); }
.mr-lvl.is-high { color: var(--accent-text); }
.mr-lvl.is-mid { color: var(--text-2); }
.mr-action {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
}
.mr-action-label { font-size: 10.5px; letter-spacing: .1em; color: var(--accent-text); }

/* 04 · İş akışı */
.wf-steps { display: flex; flex-direction: column; }
.wf-step {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
}
.wf-step:last-child { padding-bottom: 0; }
.wf-step::before {
  content: '';
  position: absolute;
  left: 10.5px;
  top: 24px;
  bottom: 2px;
  width: 1px;
  background: var(--line-3);
}
.wf-step:last-child::before { display: none; }
.wf-step b { display: block; font-size: 13.5px; font-weight: 500; }
.wf-step small { display: block; font-size: 12px; color: var(--muted); }
.wf-ico {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: background-color .4s, border-color .4s;
}
.wf-ico::after {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.wf-step.is-done .wf-ico,
.mock.is-approved .wf-step.is-gate .wf-ico,
.mock.is-approved .wf-step.is-last .wf-ico { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.wf-step.is-done .wf-ico::after,
.mock.is-approved .wf-step.is-gate .wf-ico::after,
.mock.is-approved .wf-step.is-last .wf-ico::after { opacity: 1; }
.wf-step.is-gate .wf-ico { border-color: var(--accent); }
.wf-step.is-gate .wf-ico::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: jrRing 1.8s var(--ease) infinite;
}
.mock.is-approved .wf-step.is-gate .wf-ico::before { display: none; }
.wf-ok { display: none; }
.mock.is-approved .wf-wait { display: none; }
.mock.is-approved .wf-ok { display: inline; }
.wf-step.is-last { opacity: .55; }
.mock.is-approved .wf-step.is-last { opacity: 1; transition: opacity .5s; }

/* 05 · İşlem */
.ml-lines { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.ml-lines li { display: flex; gap: 12px; color: var(--text-2); }
.ml-t { flex: none; color: var(--muted); }
.ml-lines em { font-style: normal; color: #2FB36B; }
.ml-done { color: var(--accent-text) !important; }
.ml-done span:last-child::before { content: '✓ '; }

/* ---------- Uzser kartı ---------- */
.jr-card--about {
  max-width: 540px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.jr-card--about::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease) .3s;
}
.jr-row.is-active .jr-card--about::before { transform: scaleX(1); }
.jr-about-title {
  margin: 16px 0 0;
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.jr-facts {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.jr-facts > div { padding: 16px 16px 0 0; }
.jr-facts dt { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.jr-facts dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.jr-facts .count { font-variant-numeric: tabular-nums; }

.jr-node--about { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.jr-node--about::before { display: none; }
.jr-node--about b {
  position: static;
  transform: none;
  font-size: 9.5px;
  letter-spacing: .04em;
}
.jr-node--about.is-reached { background: var(--accent); }
.jr-node--about.is-reached b { color: var(--on-accent); }

/* ---------- Son ---------- */
.jr-end {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding-top: clamp(96px, 10vw, 140px);
  text-align: center;
  opacity: .25;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform 1s var(--ease);
}
.jr-end.is-active { opacity: 1; transform: none; }
.jr-end-title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.jr-end-text { margin: 16px auto 0; max-width: 460px; font-size: 16.5px; color: var(--text-2); }
.jr-end-actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Dar ekran: yol solda, kartlar sağında ---------- */
@media (max-width: 860px) {
  .jr-row {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 48px;
  }
  .jr-row[data-side] .jr-card { grid-column: 1; justify-self: start; }
  .jr-row[data-side] .jr-note { grid-column: 1; grid-row: 2; justify-self: start; text-align: start; margin-top: 28px; transform: translateY(16px); }
  .jr-row[data-side] .jr-note-kicker { flex-direction: row; }
  .jr-row[data-side] .jr-card { transform: translateX(28px); }
  .jr-row.is-active .jr-card { transform: none; }
  .jr-row--first .jr-head { grid-row: 1; }
  .jr-row--first .jr-card { grid-row: 2; margin-top: 64px; }
  .jr-end { padding-left: 48px; text-align: start; }
  .jr-end-actions { justify-content: flex-start; }
  .jr-packet-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .jr-card, .jr-note, .rv-i, .jr-end { opacity: 1 !important; transform: none !important; }
  .mc-col i, .mr-bar i { transform: none !important; }
}
