/* "Fotoğraftan kayda" — kaydırmayla ilerleyen çek sahnesi.
   Varsayılan (JS yok / azaltılmış hareket): düz, okunur içerik. .is-pinned: sabitlenmiş sahne. */
.cq { position: relative; background: var(--graphite); color: var(--silver-hi); }
.cq__sticky { padding: clamp(56px, 9vh, 96px) 0; }
.cq__grid { position: relative; display: grid; gap: 28px; }

.cq__h2 {
  margin-top: 12px; max-width: 16em;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance;
}
.cq__steps { margin-top: 24px; display: grid; gap: 18px; }
.cq__step { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-content: start; }
.cq__n {
  grid-row: span 2; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--teal); color: var(--teal); font-weight: 700; font-size: 14px;
}
.cq__step h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; line-height: 28px; }
.cq__step p { margin-top: 4px; color: var(--silver); font-size: 15.5px; max-width: 30em; }
.cq__ctl { display: none; }

.cq__view { position: relative; min-height: 260px; }
.cq__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.no-webgl .cq__view { display: none; }

.cq__bubble {
  position: absolute; right: 2%; z-index: 2; max-width: min(78%, 300px);
  padding: 8px 12px; background: var(--wa-out); color: var(--wa-ink);
  border-radius: 12px 12px 3px 12px; font-size: 14px; line-height: 1.35;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: 100% 100%;
  transition: opacity .3s, transform .35s var(--ease);
}
.cq__bubble--ask { top: 16%; }
.cq__bubble--ok { bottom: 16%; font-weight: 700; letter-spacing: .06em; }
.cq__bubble.is-on { opacity: 1; transform: none; }

.cq__recs { display: grid; gap: 10px; align-content: center; }
.rec { background: var(--graphite-2); border: 1px solid var(--graphite-3); border-radius: 10px; padding: 12px 14px; }
.rec header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rec h3 { font-size: 14.5px; font-weight: 700; }
.rec__st {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; color: #F5B544; border: 1px solid currentColor;
  transition: color .3s, background-color .3s;
}
.rec__st.is-saved { color: var(--graphite); background: var(--teal); border-color: var(--teal); }
.rec dl { margin-top: 8px; display: grid; }
.rec dl div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px dashed var(--graphite-3); }
.rec dt { font-size: 13px; color: var(--steel); }
.rec dd { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; transition: opacity .2s; }
.cq__note { font-size: 12px; color: var(--steel); }

.cq__chips { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.cq-chip {
  position: absolute; left: 0; top: 0; padding: 3px 8px; border-radius: 6px;
  background: var(--teal); color: var(--graphite);
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
  opacity: 0; will-change: transform, opacity;
}

/* ---------- sabitlenmiş sahne ---------- */
.cq.is-pinned { height: 430vh; }
.cq.is-pinned .cq__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  padding: calc(var(--nav-h) + 12px) 0 16px; overflow: hidden;
}
.cq.is-pinned .cq__grid {
  height: 100%; max-width: 1480px; gap: clamp(16px, 2.4vw, 36px); align-items: center;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) minmax(240px, 320px);
}
.cq.is-pinned .cq__steps { gap: 0; }
.cq.is-pinned .cq__step {
  grid-area: 1 / 1; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s, transform .45s var(--ease);
}
.cq.is-pinned .cq__step.is-active { opacity: 1; transform: none; }
.cq.is-pinned .cq__ctl { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.cq__rail { display: flex; gap: 6px; }
.cq__rail button { width: 30px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.cq__rail button::after { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--graphite-3); transition: background-color .3s; }
.cq__rail button.is-on::after { background: var(--teal); }
.cq__rail button:hover::after { background: var(--silver); }
.cq__play { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--graphite-3); border-radius: 50%; background: none; color: var(--silver-hi); cursor: pointer; }
.cq__play:hover { border-color: var(--silver); }
.cq__play svg { width: 12px; height: 12px; }
.cq__ico-play, .cq__play.is-off .cq__ico-pause { display: none; }
.cq__play.is-off .cq__ico-play { display: inline; }
.cq.is-pinned .cq__view { height: 100%; min-height: 0; }
.cq.is-pinned .cq__recs { opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .45s var(--ease); }
.cq.is-pinned .cq__recs.is-on { opacity: 1; transform: none; }
.cq.is-pinned .rec dd { opacity: 0; }
.cq.is-pinned .rec dd.is-filled { opacity: 1; }

@media (max-width: 900px) {
  .cq.is-pinned .cq__sticky { padding: calc(var(--nav-h) + 8px) 0 0; }
  .cq.is-pinned .cq__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
  .cq.is-pinned .eyebrow { display: none; }
  .cq.is-pinned .cq__h2 { margin-top: 0; font-size: 1.28rem; max-width: none; }
  .cq.is-pinned .cq__steps { margin-top: 10px; }
  .cq.is-pinned .cq__n { width: 24px; height: 24px; font-size: 13px; }
  .cq.is-pinned .cq__step h3 { font-size: 1.05rem; line-height: 24px; }
  .cq.is-pinned .cq__step p { font-size: 14px; line-height: 1.4; margin-top: 2px; }
  .cq.is-pinned .cq__ctl { margin-top: 8px; }
  /* kayıtlar görünümün altından yükselen bir panel olur */
  .cq.is-pinned .cq__recs {
    position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; z-index: 2;
    grid-template-columns: 1fr 1fr; gap: 6px; padding-bottom: 10px;
    transform: translateY(104%); opacity: 1;
  }
  .cq.is-pinned .cq__recs.is-on { transform: none; }
  .cq.is-pinned .rec { padding: 8px 10px; }
  .cq.is-pinned .rec:first-child { grid-column: 1 / -1; }
  .cq.is-pinned .rec h3 { font-size: 12.5px; line-height: 1.2; }
  .cq.is-pinned .rec__st { font-size: 9.5px; padding: 1px 6px; flex: none; }
  .cq.is-pinned .rec dl { margin-top: 4px; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .cq.is-pinned .rec:not(:first-child) dl { grid-template-columns: 1fr; }
  .cq.is-pinned .rec dl div { display: block; padding: 3px 0; }
  .cq.is-pinned .rec dt { font-size: 10.5px; line-height: 1.2; }
  .cq.is-pinned .rec dd { font-size: 13px; line-height: 1.25; text-align: left; }
  .cq.is-pinned .cq__note { display: none; }
  .cq__bubble { font-size: 13px; }
  .cq__bubble--ask { top: 3%; }
  .cq.is-pinned .cq__bubble--ok { bottom: auto; top: 4%; }
}
@media (max-width: 900px) and (max-height: 600px) {
  .cq.is-pinned .cq__h2 { font-size: 1.1rem; }
  .cq.is-pinned .cq__step p { font-size: 13px; }
}
