/* ─── Hero sahnesi: işletme paneli + bayi telefonu, orkestre sipariş akışı ──────
   index.html'in sağ sütunu. Sahne 520×470 tasarım piksellerinde kurulur ve
   kapsayıcı genişliğine göre transform: scale ile ölçeklenir (hero.js, --scale).
   Yalnız transform / opacity / clip-path anime edilir. Dar ekranda (kapsayıcı
   < 440px → hero.js `hero__scene--compact`; JS yoksa ≤487px medya sorgusu)
   panel gizlenir, telefon tek başına ortalanır (tasarım 260×416).
   Renkler yalnız tokens.css paletinden: yeşil YALNIZ gerçekleşmiş onay. */

.hero__scene {
  position: relative;
  width: 100%;
  height: 488px; /* JS yoksa yedek; hero.js ölçeğe göre ezer */
  --scale: 1;
  --sw: 520;
  --sh: 488;
}
.scene {
  position: absolute; top: 0; left: var(--ox, 0px);
  width: calc(var(--sw) * 1px); height: calc(var(--sh) * 1px);
  transform: scale(var(--scale));
  transform-origin: top left;
  contain: layout; /* sayaç/metin yazımları belge düzeyinde layout tetiklemesin */
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --paper: #F7F1E8;
  --sand: #EFE7DA;
  --ink: #111113;
  --slate: #605E58;
  --hair: #E9E0D1;
}
.scene * { box-sizing: border-box; }

/* Statik mod (reduced motion): her şey son durumda, geçiş yok. JS'siz yolda
   da aynı: medya sorgusu tek başına animasyon ve geçişleri kapatır. */
.scene.s-static *, .scene.s-static *::before, .scene.s-static *::after {
  transition: none !important; animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene *, .scene *::before, .scene *::after { transition: none !important; animation: none !important; }
}

/* cihaz altı rol etiketleri: hikâyenin iki tarafı ilk bakışta ayrılsın */
.role { position: absolute; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--slate); white-space: nowrap; }
.role--panel { right: 2px; top: 400px; }
.role--phone { left: 0; top: 470px; width: 190px; text-align: center; }

/* ─── Panel (tarayıcı çerçevesi) ─────────────────────────── */
.dev-panel {
  position: absolute; left: 110px; top: 0;
  width: 410px; height: 392px;
  background: var(--paper);
  border: 1px solid #CFC8BC;
  border-radius: 12px;
  box-shadow: 0 30px 60px -30px rgba(17, 17, 19, 0.35), 0 2px 6px rgba(17, 17, 19, 0.06);
  overflow: hidden;
}
.browser-bar {
  height: 30px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px; background: #fff; border-bottom: 1px solid var(--hair);
}
.browser-bar .dots { display: flex; gap: 5px; }
.browser-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: #CFC8BC; display: block; }
.browser-bar .url {
  margin-left: 6px; flex: 1; max-width: 170px; height: 18px; border-radius: 999px;
  background: var(--sand); font-size: 9px; font-weight: 600; color: var(--slate);
  display: flex; align-items: center; justify-content: center; letter-spacing: -0.005em;
}
.panel-body { display: flex; height: calc(100% - 30px); }
.panel-side {
  width: 90px; background: var(--ink); color: rgba(247, 241, 232, 0.72);
  padding: 14px 10px; display: flex; flex-direction: column; gap: 2px;
}
.panel-side .wordmark { color: var(--paper); font-size: 13px; margin: 0 0 14px 4px; }
.panel-side .nav-i {
  font-size: 9px; font-weight: 600; padding: 6px 6px; border-radius: 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.panel-side .nav-i.on { background: rgba(247, 241, 232, 0.12); color: var(--paper); }
.panel-side .nav-i b { font-size: 8px; font-weight: 700; color: var(--paper); }
.flip { display: inline-grid; vertical-align: baseline; }
.flip > span { grid-area: 1 / 1; transition: transform 420ms var(--ease), opacity 320ms var(--ease); }
.flip .b { opacity: 0; transform: translateY(6px); }
.scene.s-row:not(.s-approved) .flip .a { opacity: 0; transform: translateY(-6px); }
.scene.s-row:not(.s-approved) .flip .b { opacity: 1; transform: none; }
.panel-main { flex: 1; padding: 12px 12px 10px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-head .ttl { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.bell {
  position: relative; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 1px solid var(--hair); display: grid; place-items: center;
}
.bell svg { width: 11px; height: 11px; }
.badge {
  position: absolute; top: -5px; right: -6px; min-width: 13px; height: 13px; padding: 0 3px;
  border-radius: 999px; background: #FF3B30; color: #fff; font-size: 8px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.badge .n2 { display: none; }
.scene.s-row .dev-panel .badge .n1 { display: none; }
.scene.s-row .dev-panel .badge .n2 { display: inline; }

.ciro {
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 10px 12px 8px;
  display: grid; grid-template-columns: 1fr 110px; align-items: end; gap: 8px; height: 78px;
}
.ciro .lbl { font-size: 8px; color: rgba(247, 241, 232, 0.6); font-weight: 500; }
.ciro .val { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 2px; }
.ciro .sub { font-size: 8px; color: rgba(247, 241, 232, 0.6); margin-top: 3px; }
.ciro .sub b { color: var(--paper); font-weight: 600; }
.ciro svg { width: 110px; height: 36px; overflow: visible; }
.ciro .spark { fill: none; stroke: var(--paper); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1400ms var(--ease) 200ms; }
.ciro .spark-fill { fill: url(#sparkFade); opacity: 0; transition: opacity 800ms var(--ease) 900ms; }
.scene.s-live .ciro .spark { stroke-dashoffset: 0; }
.scene.s-live .ciro .spark-fill { opacity: 1; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.kpi { background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 7px 9px 6px; }
.kpi .lbl { font-size: 8px; color: var(--slate); font-weight: 500; }
.kpi .val { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-top: 1px; line-height: 1.15; }
.kpi .sub { font-size: 7.5px; color: var(--slate); margin-top: 2px; }

.list-lbl { font-size: 9px; font-weight: 700; color: var(--ink); margin: 10px 0 5px; letter-spacing: -0.01em; }
.rows { display: flex; flex-direction: column; gap: 5px; position: relative; }
.row {
  background: #fff; border: 1px solid var(--hair); border-radius: 9px;
  padding: 0 8px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px;
  height: 46px; /* sabit: öteleme (51 = 46 + 5 boşluk) font metriğine bağlı kalmasın */
}
.row .k { font-size: 8px; line-height: 1.2; color: var(--slate); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.row .k i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); display: inline-block; }
.row .k code { font-family: var(--font-sans); font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.row .k em { font-style: normal; color: var(--slate); margin-left: 2px; }
.row .n { font-size: 9.5px; line-height: 1.2; font-weight: 700; color: var(--ink); margin-top: 1px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .m { font-size: 8px; line-height: 1.2; color: var(--slate); margin-top: 1px; white-space: nowrap; }
.row .m b { color: var(--ink); font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; height: 16px; padding: 0 7px;
  border-radius: 999px; font-size: 8px; font-weight: 700; white-space: nowrap;
  background: rgba(17, 17, 19, 0.07); color: var(--ink); border: 1px solid transparent;
}
.pill--ok { background: var(--color-accent-tint); color: var(--color-accent-deep); border-color: var(--color-accent-border); }
.pill--ok::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); margin-right: 4px; }
.btn-ok {
  height: 20px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 8.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
  transition: transform 160ms var(--ease), opacity 300ms var(--ease);
}
.btn-ok svg { width: 8px; height: 8px; }
.scene.s-press2 .btn-ok { transform: scale(0.94); }

/* yeni satır: gelmeden önce yukarıda ve saydam; gelince yerine süzülür */
.row-new { position: absolute; left: 0; right: 0; top: 0; z-index: 2; opacity: 0; transform: translateY(-14px); transition: transform 650ms var(--ease), opacity 450ms var(--ease); }
.rows .row:not(.row-new) { transition: transform 650ms var(--ease), opacity 500ms var(--ease); }
.scene.s-row .rows .row:not(.row-new) { transform: translateY(51px); }
/* en alttaki satır listeden çıkar gibi erir (panel kenarında sert kırpılma yok) */
.scene.s-row .rows .row-last { opacity: 0; }
.row-new .st { display: inline-grid; }
.row-new .st > * { grid-area: 1 / 1; transition: opacity 320ms var(--ease), transform 420ms var(--ease); }
.row-new .st .pill--ok { opacity: 0; transform: scale(0.85); }
.scene.s-row .row-new { opacity: 1; transform: none; }
.scene.s-approved .row-new .btn-ok { opacity: 0; transform: scale(0.85); pointer-events: none; }
.scene.s-approved .row-new .st .pill--ok { opacity: 1; transform: none; }
.row-new .vade { opacity: 0; transition: opacity 450ms var(--ease); }
.scene.s-vade .row-new .vade { opacity: 1; }
.row-new .k .dot-new { transition: opacity 300ms var(--ease); }
.scene.s-approved .row-new .k .dot-new { opacity: 0; }

/* panel bildirimi (tarayıcı afişi) */
.toast {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(207, 200, 188, 0.7); border-radius: 12px; padding: 7px 10px 7px 7px;
  box-shadow: 0 18px 36px -18px rgba(17, 17, 19, 0.45), 0 1px 2px rgba(17, 17, 19, 0.06);
  opacity: 0; transform: translateY(-10px) scale(0.96);
  transition: transform 520ms var(--ease), opacity 360ms var(--ease);
  pointer-events: none;
}
.toast .ic {
  width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; flex-shrink: 0;
}
.toast .ic svg { width: 13px; height: 13px; }
.toast .tt { font-size: 9.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.toast .ts { font-size: 8.5px; color: var(--slate); white-space: nowrap; margin-top: 1px; }
.toast--panel { right: 0; top: -10px; }
.scene.s-row:not(.s-approved) .toast--panel { opacity: 1; transform: none; }

/* ─── Telefon ────────────────────────────────────────────── */
.dev-phone {
  position: absolute; left: 0; top: 60px;
  width: 190px; height: 400px;
  background: var(--ink); border-radius: 34px; padding: 6px;
  box-shadow: 0 40px 70px -30px rgba(17, 17, 19, 0.55), 0 0 0 1px rgba(17, 17, 19, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.dev-phone .screen {
  position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: var(--paper);
}
.island { position: absolute; top: 8px; left: 50%; width: 52px; height: 14px; margin-left: -26px; border-radius: 999px; background: var(--ink); z-index: 6; }
.pbar {
  position: absolute; top: 28px; left: 9px; right: 9px; height: 30px; border-radius: 999px; z-index: 5;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 6px 16px -10px rgba(17, 17, 19, 0.35);
  display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 10px;
}
.pbar .wordmark { font-size: 11px; }
.pbar .firm { font-size: 8px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.pbar .firm small { display: block; font-size: 6px; font-weight: 600; letter-spacing: 0.12em; color: var(--slate); text-transform: uppercase; }
.pbar .bell { width: 20px; height: 20px; }
.pbar .bell .badge { top: -4px; right: -4px; }
.pbar .bell .badge .n2 { display: none; }
.scene.s-approved .pbar .bell .badge .n1 { display: none; }
.scene.s-approved .pbar .bell .badge .n2 { display: inline; }

.pscreen { position: absolute; inset: 0; padding: 70px 11px 54px; transition: transform 520ms var(--ease), opacity 420ms var(--ease); will-change: transform, opacity; }
.pscreen .eyebrow { font-size: 6.5px; letter-spacing: 0.18em; font-weight: 600; color: var(--slate); text-transform: uppercase; }
.pscreen .ttl { margin: 1px 0 7px; font-size: 15px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.chips { display: flex; gap: 4px; margin-bottom: 8px; }
.chip { font-size: 7.5px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--hair); color: var(--ink); white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.pcard { background: #fff; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.pcard .img { height: 88px; background: var(--sand); display: grid; place-items: center; position: relative; }
.pcard .img svg { width: 60px; height: 60px; }
.pcard .img .sw { position: absolute; left: 8px; bottom: 7px; display: flex; gap: 3px; }
.pcard .img .sw i { width: 7px; height: 7px; border-radius: 50%; display: block; border: 1px solid rgba(255,255,255,0.8); }
.pcard .pb { padding: 7px 9px 9px; }
.pcard .cat { font-size: 7px; color: var(--slate); }
.pcard .nm { font-size: 10px; font-weight: 600; color: var(--ink); margin-top: 2px; letter-spacing: -0.01em; }
.pcard .pr { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 700; color: var(--ink); background: var(--sand); padding: 2px 7px; border-radius: 4px; }
.pcard .mt { font-size: 7.5px; color: var(--slate); margin-top: 3px; }
.pcard .act { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; gap: 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--hair); border-radius: 999px; height: 22px; font-size: 9px; font-weight: 700; color: var(--ink); }
.stepper span { width: 22px; text-align: center; }
.stepper b { min-width: 20px; text-align: center; font-weight: 700; }
.btn-add {
  height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 8.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  transition: transform 160ms var(--ease);
}
.btn-add svg { width: 9px; height: 9px; }
.scene.s-press .btn-add { transform: scale(0.94); }
.ptab {
  position: absolute; left: 9px; right: 9px; bottom: 9px; height: 40px; border-radius: 999px; z-index: 5;
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 10px 20px -12px rgba(17, 17, 19, 0.4);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 4px;
}
.ptab .tb { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 6px; font-weight: 600; color: var(--slate); position: relative; }
.ptab .tb svg { width: 13px; height: 13px; }
.ptab .tb.on { color: var(--ink); }
.ptab .tb .badge { top: -5px; right: 2px; opacity: 0; transform: scale(0.5); transition: transform 380ms var(--ease), opacity 200ms var(--ease); }
.scene.s-cart .ptab .tb .badge { opacity: 1; transform: none; }
.scene.s-orders .ptab .tb .badge { opacity: 0; transform: scale(0.5); }
.ptab .tb { transition: color 300ms var(--ease); }
.scene.s-orders .ptab .tb.on { color: var(--slate); }
.scene.s-orders .ptab .tb.tb-orders { color: var(--ink); }

/* alt sayfa: sipariş alındı */
.psheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7;
  background: #fff; border-radius: 20px 20px 28px 28px; padding: 9px 12px 12px;
  box-shadow: 0 -16px 40px -20px rgba(17, 17, 19, 0.5);
  transform: translateY(104%); transition: transform 560ms var(--ease); will-change: transform;
}
.psheet .hd { width: 30px; height: 4px; border-radius: 999px; background: #CFC8BC; margin: 0 auto 10px; }
.psheet .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; margin-bottom: 6px; }
.psheet .ck svg { width: 12px; height: 12px; }
.psheet .ttl { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.psheet .code { font-size: 8px; color: var(--slate); margin-top: 1px; letter-spacing: 0.03em; }
.psheet .ln { display: flex; justify-content: space-between; font-size: 8.5px; color: var(--slate); padding: 5px 0; border-top: 1px solid var(--hair); margin-top: 6px; }
.psheet .ln b { color: var(--ink); font-weight: 600; }
.psheet .ln.tot { font-size: 10px; }
.psheet .ln.tot b { font-weight: 800; }
.psheet .btn-go { margin-top: 8px; height: 28px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 9px; font-weight: 700; display: grid; place-items: center; transition: transform 160ms var(--ease); }
.scene.s-sheet .psheet { transform: none; }
.scene.s-press3 .psheet .btn-go { transform: scale(0.96); }
.scene.s-orders .psheet { transform: translateY(104%); }
.pscrim { position: absolute; inset: 0; background: rgba(17, 17, 19, 0.28); opacity: 0; transition: opacity 400ms var(--ease); z-index: 6; }
.scene.s-sheet:not(.s-orders) .pscrim { opacity: 1; }

/* siparişlerim ekranı: "Siparişlerimi gör" ile sağdan gelir (iOS push) */
.pscreen--orders { transform: translateX(100%); opacity: 0; }
.scene.s-orders .pscreen--orders { transform: none; opacity: 1; }
.scene.s-orders .pscreen--catalog { transform: translateX(-26%); opacity: 0; }
.ocard { background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 9px 10px 10px; }
.ocard .top { display: flex; justify-content: space-between; align-items: center; }
.ocard .code { font-size: 8px; color: var(--slate); letter-spacing: 0.03em; font-weight: 600; }
.ocard .st { display: inline-grid; }
.ocard .st > * { grid-area: 1 / 1; transition: opacity 320ms var(--ease), transform 420ms var(--ease); }
.ocard .st .pill { opacity: 0; transform: scale(0.85); }
.ocard .st .pill.p-new { opacity: 1; transform: none; }
.scene.s-approved .ocard .st .pill.p-new { opacity: 0; transform: scale(0.85); }
.scene.s-approved .ocard .st .pill.pill--ok { opacity: 1; transform: none; }
.scene.s-prep .ocard .st .pill.pill--ok { opacity: 0; transform: scale(0.85); }
.scene.s-prep .ocard .st .pill.p-prep { opacity: 1; transform: none; }
.scene.s-ship .ocard .st .pill.p-prep { opacity: 0; transform: scale(0.85); }
.scene.s-ship .ocard .st .pill.p-ship { opacity: 1; transform: none; }
.ocard .nm { font-size: 10px; font-weight: 600; color: var(--ink); margin-top: 4px; letter-spacing: -0.01em; }
.ocard .mt { font-size: 8px; color: var(--slate); margin-top: 2px; }
.ocard .mt b { color: var(--ink); font-weight: 600; }
.tl { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; position: relative; }
.tl::before { content: ""; position: absolute; left: 12%; right: 12%; top: 5px; height: 2px; background: var(--hair); }
.tl .ln { position: absolute; left: 12%; top: 5px; height: 2px; width: 76%; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 700ms var(--ease); }
.scene.s-approved .tl .ln { transform: scaleX(0.33); }
.scene.s-prep .tl .ln { transform: scaleX(0.66); }
.scene.s-ship .tl .ln { transform: scaleX(1); }
.tl .nd { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 6px; color: var(--slate); font-weight: 600; position: relative; }
.tl .nd i { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--hair); display: block; transition: background-color 350ms var(--ease), border-color 350ms var(--ease), transform 350ms var(--ease); }
.tl .nd.f i { background: var(--ink); border-color: var(--ink); }
.tl .nd.f { color: var(--ink); }
.scene.s-approved .tl .nd.n2 i, .scene.s-prep .tl .nd.n3 i, .scene.s-ship .tl .nd.n4 i { background: var(--ink); border-color: var(--ink); }
.scene.s-approved .tl .nd.n2, .scene.s-prep .tl .nd.n3, .scene.s-ship .tl .nd.n4 { color: var(--ink); }
.ocard2 { margin-top: 7px; opacity: 0.75; }

/* telefon içi iOS afişi */
.ptoast { left: 5px; right: 5px; top: 26px; z-index: 8; border-radius: 14px; background: rgba(255, 255, 255, 0.97); }
.scene.s-toast2 .ptoast { opacity: 1; transform: none; }

@keyframes phoneFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.dev-phone { animation: phoneFloat 7s ease-in-out infinite; }
.scene.s-static .dev-phone { animation: none; }

@supports not (backdrop-filter: blur(1px)) {
  .pbar, .ptab { background: rgba(255, 255, 255, 0.94); }
  .toast { background: rgba(255, 255, 255, 0.96); }
}

/* ─── Sinyal: telefondan panele ──────────────────────────── */
.signal { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.signal .trail { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; opacity: 0; transition: stroke-dashoffset 900ms var(--ease), opacity 200ms; }
.scene.s-signal .signal .trail { stroke-dashoffset: 0; opacity: 0.55; }
.scene.s-row .signal .trail { opacity: 0; }
.sig-dot {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 4px rgba(17, 17, 19, 0.12); opacity: 0;
  offset-path: path("M 190 404 C 250 404, 236 290, 214 228");
  offset-distance: 0%; offset-rotate: 0deg;
  transition: offset-distance 900ms var(--ease), opacity 200ms var(--ease);
}
.scene.s-signal .sig-dot { opacity: 1; offset-distance: 100%; }
.scene.s-row .sig-dot { opacity: 0; }
@supports not (offset-path: path("M0 0")) { .sig-dot { display: none; } }

/* yumuşak sıfırlama: sahne erir, sınıflar geçişsiz sıfırlanır (s-snap), sahne belirir */
.scene { transition: opacity 480ms var(--ease); }
.scene.s-out { opacity: 0; }
.scene.s-snap *, .scene.s-snap *::before, .scene.s-snap *::after { transition: none !important; }

/* ─── Dar ekran: yalnız telefon (hero.js kapsayıcı < 440px'te sınıfı verir;
   JS yoksa aynı kurallar 487px altındaki görünüm için medya sorgusuyla gelir) ── */
.hero__scene--compact { --sw: 260; --sh: 434; }
.hero__scene--compact .dev-panel, .hero__scene--compact .signal, .hero__scene--compact .sig-dot, .hero__scene--compact .toast--panel, .hero__scene--compact .role--panel { display: none; }
.hero__scene--compact .dev-phone { left: 35px; top: 8px; }
.hero__scene--compact .role--phone { left: 35px; top: 418px; }
@media (max-width: 487px) {
  .hero__scene { --sw: 260; --sh: 434; height: 434px; overflow: hidden; }
  .hero__scene .dev-panel, .hero__scene .signal, .hero__scene .sig-dot, .hero__scene .toast--panel, .hero__scene .role--panel { display: none; }
  .hero__scene .dev-phone { left: 35px; top: 8px; }
  .hero__scene .role--phone { left: 35px; top: 418px; }
}

/* hero sütunları: ≥1181 iki sütun (1.12fr/1fr), altı tek sütun — sahne metnin altında.
   (index.html'in satır içi kuralı 1.25fr/1fr + 1080 kırılımı; bu dosya ondan sonra yüklenir.) */
@media (min-width: 1181px) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
}
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__scene { max-width: 560px; }
}

/* ─── Ekranlar bölümü: gerçek uygulama kareleri ──────────── */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.shot { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.shot__frame {
  position: relative; border-radius: 34px; background: var(--color-primary); padding: 6px;
  box-shadow: 0 34px 60px -34px rgba(17, 17, 19, 0.5), 0 0 0 1px rgba(17, 17, 19, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.shot__frame img { width: 100%; height: auto; display: block; border-radius: 28px; aspect-ratio: 660 / 1434; background: var(--color-surface-alt); }
.shot__cap { display: flex; flex-direction: column; gap: 3px; padding: 0 4px; }
.shot__role { font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; font-weight: var(--fw-eyebrow); color: var(--color-grey-60); }
.shot__title { font-size: 15px; font-weight: 700; letter-spacing: -0.012em; color: var(--color-primary); }
.shot__body { font-size: 13px; line-height: 1.5; color: var(--color-grey-60); margin: 0; }
.shot:nth-child(2) .shot__frame, .shot:nth-child(4) .shot__frame { margin-top: 36px; }
@media (max-width: 960px) {
  .shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; padding: 4px 24px 12px; margin: 0 -24px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 72%; max-width: 280px; scroll-snap-align: start; }
  .shot:nth-child(2) .shot__frame, .shot:nth-child(4) .shot__frame { margin-top: 0; }
  /* rayda kartlar kaydırınca değil, bölüm görününce bir kerede belirir */
  .shots .reveal { opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shot__frame { transform: none !important; }
}
