/* Spent: ana sayfa: kaydırmayla anlatılan hikâye, sabit iPhone maketi. */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.stage svg { fill: none; }
.store-button svg { fill: currentColor; }

/* Telefon içi palet (uygulamanın MeshGradient renkleri) */
.stage {
  --p-ink: #0b0c22;
  --p-2: rgba(40, 40, 60, .66);
  --p-card: rgba(255, 255, 255, .5);
  --p-card-edge: rgba(255, 255, 255, .9);
  --p-line: rgba(20, 20, 70, .08);
  --p-fill: rgba(20, 20, 70, .07);
  --p-blue: #0a84ff;
  --p-mesh:
    radial-gradient(60% 45% at 0% 0%, rgb(204 214 255) 0%, transparent 70%),
    radial-gradient(55% 40% at 55% 0%, rgb(237 219 255) 0%, transparent 70%),
    radial-gradient(55% 45% at 100% 5%, rgb(255 224 230) 0%, transparent 70%),
    radial-gradient(55% 40% at 0% 45%, rgb(209 242 247) 0%, transparent 70%),
    radial-gradient(55% 40% at 100% 55%, rgb(255 237 214) 0%, transparent 70%),
    radial-gradient(60% 40% at 0% 100%, rgb(214 247 230) 0%, transparent 70%),
    radial-gradient(60% 40% at 100% 100%, rgb(242 224 255) 0%, transparent 70%),
    rgb(244 244 255);
}
@media (prefers-color-scheme: dark) {
  .stage {
    --p-ink: #fff;
    --p-2: rgba(235, 235, 245, .64);
    --p-card: rgba(255, 255, 255, .075);
    --p-card-edge: rgba(255, 255, 255, .22);
    --p-line: rgba(255, 255, 255, .08);
    --p-fill: rgba(255, 255, 255, .1);
    --p-mesh:
      radial-gradient(60% 45% at 0% 0%, rgb(26 26 74) 0%, transparent 70%),
      radial-gradient(55% 40% at 55% 0%, rgb(56 26 86) 0%, transparent 70%),
      radial-gradient(55% 45% at 100% 5%, rgb(86 26 56) 0%, transparent 70%),
      radial-gradient(55% 40% at 0% 45%, rgb(13 56 70) 0%, transparent 70%),
      radial-gradient(55% 40% at 100% 55%, rgb(70 40 20) 0%, transparent 70%),
      radial-gradient(60% 40% at 0% 100%, rgb(13 50 40) 0%, transparent 70%),
      radial-gradient(60% 40% at 100% 100%, rgb(50 20 70) 0%, transparent 70%),
      rgb(12 12 24);
  }
}

/* Kategori renkleri */
.c-green { --k: #30c25a; }
.c-orange { --k: #ff9500; }
.c-red { --k: #ff453a; }
.c-yellow { --k: #f5b400; }
.c-pink { --k: #ff3b7f; }
.c-blue { --k: #0a84ff; }
.c-violet { --k: #8e5cff; }
.c-aqua { --k: #00b8b0; }
.c-gray { --k: #8e8e9a; }

/* ---------- Hikâye düzeni ---------- */

.story { position: relative; }

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
  z-index: 1;
  pointer-events: none;
  /* Kartlar tek cümleye inince alttaki boşluk büyüdü: telefon dar ekranda daha uzun
     olur, kart yine telefonun alt kısmının üstüne biner. */
  --pw: clamp(168px, min(66vw, calc((100svh - 250px) / 2.06)), 300px);
  --enter: 1;
  --par: 0;
}
.stage-inner { position: absolute; inset: 0; perspective: 1400px; }

.steps { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }

.phone-wrap {
  position: absolute;
  left: 50%;
  top: calc(84px + env(safe-area-inset-top, 0px));
  width: var(--pw);
  height: calc(var(--pw) * 2.06);
  margin-left: calc(var(--pw) / -2);
  transform: translate3d(0, calc(var(--enter) * 50svh), 0) scale(calc(1 - var(--enter) * .04));
  will-change: transform;
}
.phone-float { position: absolute; inset: 0; animation: phone-in 1.2s cubic-bezier(.2, .8, .2, 1) both .1s; }
@keyframes phone-in { from { opacity: 0; transform: translate3d(0, 60px, 0) scale(.94); } }

/* Telefonun arkasında sahneye göre renk değiştiren ışık */
.halo {
  position: absolute;
  inset: -22% -70%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--halo) 70%, transparent), color-mix(in srgb, var(--halo) 22%, transparent) 55%, transparent);
  opacity: .9;
  transition: --halo 1s ease;
}
.stage[data-scene="intro"] { --halo: #3d7bff; }
.stage[data-scene="quick"] { --halo: #ff9a3d; }
.stage[data-scene="import"] { --halo: #19d6c0; }
.stage[data-scene="receipt"] { --halo: #f2b632; }
.stage[data-scene="remind"] { --halo: #ff7a59; }
.stage[data-scene="stats"] { --halo: #8a63ff; }
.stage[data-scene="subs"] { --halo: #ff4f9a; }
.stage[data-scene="privacy"] { --halo: #36b3ff; }

/* ---------- iPhone çerçevesi ---------- */

.phone {
  position: absolute;
  inset: 0;
  padding: calc(var(--pw) * .03);
  border-radius: calc(var(--pw) * .165);
  background: linear-gradient(145deg, #4b4e5c 0%, #1b1c23 22%, #2c2e38 52%, #121318 78%, #43465a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 0 0 calc(var(--pw) * .012) #0a0a0e,
    0 calc(var(--pw) * .14) calc(var(--pw) * .3) calc(var(--pw) * -.1) rgba(12, 10, 60, .55),
    0 0 0 1px rgba(0, 0, 0, .35);
}
.phone::after { /* yan tuşlar */
  content: "";
  position: absolute;
  right: calc(var(--pw) * -.012);
  top: 27%;
  width: calc(var(--pw) * .012);
  height: 13%;
  border-radius: 0 3px 3px 0;
  background: #2a2c36;
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--pw) * .138);
  background: var(--p-mesh);
  color: var(--p-ink);
  font-family: var(--font);
  font-size: calc(var(--pw) / 23);
  line-height: 1.3;
  isolation: isolate;
}
/* Ekranın içinde yavaşça kayan renk: cam paneller bunu bulanık gösterir */
.phone-screen::before, .phone-screen::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--halo) 55%, transparent), transparent);
  top: 22%;
  left: -20%;
  animation: drift-a 16s ease-in-out infinite alternate;
  transition: --halo 1s;
}
.phone-screen::after { top: 58%; left: 50%; background: radial-gradient(closest-side, rgba(120, 90, 255, .4), transparent); animation-name: drift-b; animation-duration: 19s; }

.p-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 3em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.9em 0 2.2em;
  font: 650 .95em/1 var(--font);
}
.p-island { position: absolute; left: 50%; top: .7em; width: 32%; height: 1.75em; margin-left: -16%; border-radius: 1em; background: #000; }
.p-sys { display: flex; align-items: flex-end; gap: .15em; }
.p-sys i { width: .22em; border-radius: .1em; background: currentColor; }
.p-sys i:nth-child(1) { height: .4em; } .p-sys i:nth-child(2) { height: .58em; } .p-sys i:nth-child(3) { height: .76em; }
.p-sys b { width: 1.7em; height: .8em; margin-left: .35em; border-radius: .25em; background: currentColor; box-shadow: .12em 0 0 -.04em currentColor; }

/* ---------- Ekranlar ---------- */

.scr {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: .7em;
  padding: 3.6em 1.05em 1em;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 1.6em, 0) scale(.975);
  transition: opacity .5s ease, transform .75s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .75s;
}
.scr.on { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }

.p-toolbar { display: flex; justify-content: flex-end; gap: .45em; }
.p-btn {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: var(--p-card);
  box-shadow: inset 0 1px 0 var(--p-card-edge), 0 .3em .8em -.4em rgba(0, 0, 40, .3);
}
.p-btn.ghost { visibility: hidden; }
.p-btn svg { width: 1.25em; height: 1.25em; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-title { font: 750 2.1em/1.05 var(--font-display); letter-spacing: -.02em; padding-left: .1em; }
.p-sheetbar { display: flex; align-items: center; justify-content: space-between; }
.p-sheetbar b { font-size: 1.1em; }

.p-card {
  position: relative;
  padding: 1em 1.05em;
  border-radius: 1.55em;
  background: var(--p-card);
  border: 1px solid var(--p-line);
  box-shadow: inset 0 1px 0 var(--p-card-edge), 0 .7em 1.6em -1em rgba(10, 10, 60, .4);
}
@media (min-width: 960px) {
  .p-card, .p-btn, .p-tabbar, .p-accessory, .lk-card {
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    backdrop-filter: blur(14px) saturate(170%);
  }
}
.p-label { color: var(--p-2); font-size: .88em; font-weight: 600; }
.p-big { font: 760 2.65em/1.05 var(--font-round); letter-spacing: -.035em; margin: .15em 0 .25em; font-variant-numeric: tabular-nums; }
.p-small { color: var(--p-2); font-size: .86em; }
.p-pills { display: flex; flex-wrap: wrap; gap: .4em; }
.p-pills span, .chip {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .35em .65em;
  border-radius: 1em;
  background: var(--p-fill);
  font-size: .8em;
  font-weight: 600;
  white-space: nowrap;
}
.p-pills svg, .chip svg { width: 1.1em; height: 1.1em; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.p-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .55em; }
.p-head b { font-size: 1.05em; }
.p-head span { color: var(--p-2); font-size: .85em; }
.p-row { display: flex; justify-content: space-between; font-size: .85em; color: var(--p-2); margin: .5em 0 .35em; }
.p-row.strong { color: var(--p-ink); font-weight: 650; font-size: .95em; margin-top: 0; }
.p-row.strong span { display: inline-flex; align-items: center; gap: .4em; }
.p-row svg { width: 1.2em; height: 1.2em; stroke: #ff9500; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.meter { height: .55em; border-radius: 1em; background: var(--p-fill); overflow: hidden; }
.meter.big { height: .8em; margin: .55em 0 .2em; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--k) 70%, #fff), var(--k)); transform-origin: left; transform: scaleX(var(--w, 0)); }
.w80 { --w: .8; } .w72 { --w: .72; }

.cat {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: color-mix(in srgb, var(--k) 17%, transparent);
  color: var(--k);
}
.cat svg { width: 1.15em; height: 1.15em; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.p-item { display: flex; align-items: center; gap: .7em; padding: .32em 0; font-size: .95em; }
.p-item span:nth-child(2) { flex: 1; }
.p-item b { font-variant-numeric: tabular-nums; }

.p-accessory, .p-tabbar {
  position: absolute;
  left: .9em;
  right: .9em;
  display: flex;
  align-items: center;
  border-radius: 2em;
  background: var(--p-card);
  border: 1px solid var(--p-line);
  box-shadow: inset 0 1px 0 var(--p-card-edge), 0 .6em 1.6em -.8em rgba(0, 0, 50, .45);
}
.p-accessory { bottom: 5.4em; height: 2.9em; gap: .6em; padding: 0 1em; color: var(--p-2); font-size: .95em; }
.p-accessory span { flex: 1; }
.p-accessory svg { width: 1.3em; height: 1.3em; stroke: var(--p-blue); stroke-width: 2.2; stroke-linecap: round; }
.p-tabbar { bottom: 1em; height: 4em; justify-content: space-around; padding: 0 .3em; }
.p-tabbar span { display: grid; justify-items: center; gap: .15em; color: var(--p-2); font-size: .58em; font-weight: 600; }
.p-tabbar svg { width: 2.1em; height: 2.1em; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-tabbar .on { color: var(--p-blue); }

.p-glassbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 2.9em;
  border-radius: 2em;
  background: var(--p-card);
  box-shadow: inset 0 1px 0 var(--p-card-edge);
  border: 1px solid var(--p-line);
  color: var(--p-blue);
  font-size: .88em;
  font-weight: 600;
}
.p-glassbtn svg { width: 1.3em; height: 1.3em; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Uygulamadaki gibi: "Banka görüntüsü" ve "Fişi tara" yan yana */
.p-twin { display: flex; gap: .5em; }
.p-twin .p-glassbtn { flex: 1; min-width: 0; gap: .35em; font-size: .8em; white-space: nowrap; }
.p-bottom { position: absolute; left: 1em; right: 1em; bottom: 1.2em; display: flex; gap: .6em; }
.p-mic { display: grid; place-items: center; width: 3.2em; height: 3.2em; border-radius: 50%; background: var(--p-card); box-shadow: inset 0 1px 0 var(--p-card-edge); border: 1px solid var(--p-line); }
.p-mic svg { width: 1.4em; height: 1.4em; stroke: var(--p-blue); stroke-width: 2; stroke-linecap: round; }
.p-save {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 3.2em;
  padding: 0 1.2em;
  border-radius: 2em;
  background: linear-gradient(180deg, #3a9bff, #0a6cff);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 .6em 1.4em -.6em rgba(10, 100, 255, .7);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), filter .25s;
}
.p-save svg { width: 1.25em; height: 1.25em; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.p-note { color: var(--p-2); font-size: .8em; padding: 0 .3em; }

/* Hızlı giriş */
.q-line { position: relative; display: flex; align-items: center; min-height: 1.6em; margin-top: .35em; font: 560 1.35em/1.2 var(--font); }
.q-ph { position: absolute; left: 0; color: var(--p-2); opacity: .7; transition: opacity .2s; }
.scr-quick.typing .q-ph { opacity: 0; }
.q-caret { width: 2px; height: 1.15em; margin-left: 1px; background: var(--p-blue); border-radius: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.q-preview { min-height: 8.2em; }
.q-main { display: flex; align-items: center; gap: .7em; }
.q-name { flex: 1; display: grid; }
.q-name small { color: var(--p-2); font-size: .82em; }
.q-amt { font: 760 1.45em/1 var(--font-round); }
.q-chips { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .8em; }
.mini-card { width: 1.5em; height: 1em; border-radius: .25em; background: linear-gradient(135deg, #1fa36b, #0e6b4a); }
.q-learn { display: flex; align-items: center; gap: .4em; margin-top: .75em; color: var(--p-2); font-size: .8em; }
.q-learn svg { width: 1.25em; height: 1.25em; fill: #b06cff; stroke: none; }
.q-sub { margin-top: .2em; padding-left: .3em; }
.q-freq { display: flex; gap: .45em; }
.q-freq span { display: inline-flex; align-items: center; gap: .35em; padding: .5em .8em; border-radius: 1.2em; background: var(--p-card); border: 1px solid var(--p-line); box-shadow: inset 0 1px 0 var(--p-card-edge); font-size: .85em; font-weight: 600; }
.q-freq svg { width: 1.1em; height: 1.1em; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.q-toast {
  position: absolute;
  left: 50%;
  bottom: 5.4em;
  display: flex;
  align-items: center;
  gap: .45em;
  padding: .7em 1.2em;
  white-space: nowrap;
  border-radius: 2em;
  background: rgba(30, 30, 40, .82);
  color: #fff;
  font-weight: 650;
  font-size: .9em;
  transform: translate3d(-50%, 1.2em, 0) scale(.9);
  opacity: 0;
  transition: opacity .35s, transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.q-toast svg { width: 1.2em; height: 1.2em; stroke: #4cd964; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Ön izleme parçaları yazdıkça dolar */
.scr-quick .q-icon, .scr-quick .q-name, .scr-quick .q-amt, .scr-quick .q-chips > *, .scr-quick .q-learn {
  opacity: 0;
  transform: translate3d(0, .5em, 0) scale(.96);
  transition: opacity .35s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.scr-quick.t1 .q-icon, .scr-quick.t1 .q-name, .scr-quick.t1 .q-date,
.scr-quick.t2 .q-amt,
.scr-quick.t3 .q-cardchip, .stage.s2 .scr-quick .q-cat, .stage.s2 .scr-quick .q-learn { opacity: 1; transform: none; }
.scr-quick.t3 .q-cardchip { background: color-mix(in srgb, #30c25a 18%, transparent); }
.stage.s2 .scr-quick .q-cat { background: color-mix(in srgb, #ff9500 18%, transparent); transition-delay: .1s; }
.stage.s2 .scr-quick .q-learn { transition-delay: .35s; }
.stage.s3 .scr-quick .q-save { transform: scale(.94); filter: brightness(1.1); }
.stage.s3 .scr-quick .q-toast { opacity: 1; transform: translate3d(-50%, 0, 0); transition-delay: .2s; }

/* Ekran görüntüsü aktarımı */
.imp-sum { display: flex; align-items: center; gap: .75em; }
.imp-count { font-size: 1.05em; }
.imp-list { display: grid; gap: .25em; padding: .6em .8em; }
.imp-row { display: flex; align-items: center; gap: .6em; padding: .45em 0; border-bottom: 1px solid var(--p-line); font-size: .92em; }
.imp-row:last-child { border-bottom: 0; }
.imp-row > div { flex: 1; display: grid; min-width: 0; }
.imp-row small { color: var(--p-2); font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-row small.warn { display: flex; align-items: flex-start; gap: .3em; color: #c77800; white-space: normal; overflow: visible; line-height: 1.2; text-wrap: balance; }
.imp-row small.warn svg { flex: none; width: 1.1em; height: 1.1em; margin-top: .05em; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .imp-row small.warn { color: #ffc04d; } }
.tick { flex: none; display: grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; border: 1.5px solid var(--p-2); }
.tick.on { border: 0; background: var(--p-blue); color: #fff; }
.tick svg { width: .95em; height: .95em; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.scr-import .imp-row, .scr-import .imp-sum, .scr-import .p-note, .scr-import .p-bottom {
  opacity: 0;
  transform: translate3d(1.2em, 0, 0);
  transition: opacity .4s ease, transform .6s cubic-bezier(.2, .9, .3, 1);
}
.stage.s2 .scr-import .imp-row, .stage.s2 .scr-import .imp-sum { opacity: 1; transform: none; }
.stage.s2 .scr-import .r1 { transition-delay: .1s; }
.stage.s2 .scr-import .r2 { transition-delay: .25s; }
.stage.s2 .scr-import .r3 { transition-delay: .4s; }
.stage.s2 .scr-import .r4 { transition-delay: .55s; }
.stage.s3 .scr-import .p-note, .stage.s3 .scr-import .p-bottom { opacity: 1; transform: none; }
.stage.s3 .scr-import .dup { background: color-mix(in srgb, #ffb020 12%, transparent); border-radius: .8em; margin: 0 -.4em; padding-inline: .4em; transition: background .4s; }

/* Banka ekran görüntüsü */
.bankshot {
  position: absolute;
  z-index: 4;
  top: 13%;
  left: 8%;
  width: 84%;
  padding: .9em .9em 1.2em;
  border-radius: 1.4em;
  background: #f7f8fa;
  color: #1b1e24;
  font-family: var(--font);
  font-size: calc(var(--pw) / 26);
  line-height: 1.3;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2em 4em -1.5em rgba(10, 10, 60, .55);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(95%, 6%, 0) rotate(9deg) scale(.86);
  transition: opacity .5s ease, transform .9s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .9s;
}
.bs-top { font-weight: 650; font-size: .85em; }
.bs-head { display: flex; align-items: center; gap: .5em; margin: .5em 0 .6em; font-weight: 700; font-size: 1.1em; }
.bs-head span { color: #7a8190; font-size: 1.3em; line-height: 1; }
.bs-filter { display: flex; gap: .35em; margin-bottom: .5em; }
.bs-filter span { padding: .25em .7em; border-radius: 1em; background: #e8eaef; font-size: .8em; }
.bs-filter .on { background: #1b1e24; color: #fff; }
.bs-day { margin: .55em 0 .2em; color: #7a8190; font-size: .78em; font-weight: 600; }
.bs-row { display: flex; justify-content: space-between; align-items: center; gap: .5em; padding: .5em .55em; margin: 0 -.55em; border-radius: .6em; font-size: .86em; transition: background .3s, box-shadow .3s; }
.bs-row div { display: grid; }
.bs-row small { color: #7a8190; font-size: .85em; }
.bs-row > b { color: #c3263a; white-space: nowrap; }
.bs-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3.2em;
  background: linear-gradient(180deg, transparent, rgba(10, 132, 255, .25) 70%, rgba(10, 132, 255, .9) 96%, transparent);
  opacity: 0;
  transform: translate3d(0, -100%, 0);
}
.stage[data-scene="import"] .bankshot { opacity: 1; visibility: visible; transition-delay: 0s; }
.stage[data-scene="import"].s1 .bankshot { transform: translate3d(0, 0, 0) rotate(0) scale(1); }
.stage[data-scene="import"].s1 .bs-scan { animation: scan 1.3s cubic-bezier(.5, 0, .5, 1) .55s both; }
.stage[data-scene="import"].s1 .bs-row { animation: hit .5s ease both; }
.stage[data-scene="import"].s1 .b1 { animation-delay: .8s; }
.stage[data-scene="import"].s1 .b2 { animation-delay: 1s; }
.stage[data-scene="import"].s1 .b3 { animation-delay: 1.3s; }
.stage[data-scene="import"].s1 .b4 { animation-delay: 1.55s; }
.stage[data-scene="import"].s2 .bankshot { opacity: 0; transform: translate3d(-8%, -18%, 0) scale(.6) rotate(-4deg); transition-duration: .5s, .7s, 0s; }
/* Yazar kasa fişi: kâğıt telefona kayar, taranır, sonra Fişten ekranı dolar */
.paper {
  position: absolute;
  z-index: 4;
  top: 12%;
  left: 18%;
  width: 64%;
  display: grid;
  gap: .3em;
  padding: 1.1em 1.1em 1.7em;
  background: #fffdf6;
  color: #26262b;
  font: 600 calc(var(--pw) / 24)/1.3 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 2em 4em -1.5em rgba(10, 10, 60, .55);
  /* Yırtık alt kenar */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - .6em) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) bottom / 1em .6em repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - .6em) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) bottom / 1em .6em repeat-x;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(95%, 6%, 0) rotate(9deg) scale(.86);
  transition: opacity .5s ease, transform .9s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .9s;
}
.pp-name { text-align: center; font-size: 1.2em; letter-spacing: .12em; }
.paper > small { text-align: center; color: #6b6b74; font-size: .85em; margin-bottom: .4em; }
.pp-line { display: flex; justify-content: space-between; gap: .5em; font-size: .9em; }
.pp-total { margin-top: .4em; padding-top: .5em; border-top: 1.5px dashed #b9b9c2; font-size: 1.05em; font-weight: 800; }
.stage[data-scene="receipt"] .paper { opacity: 1; visibility: visible; transition-delay: 0s; }
.stage[data-scene="receipt"].s1 .paper { transform: translate3d(0, 0, 0) rotate(-2deg) scale(1); }
.stage[data-scene="receipt"].s1 .paper .bs-scan { animation: scan 1.2s cubic-bezier(.5, 0, .5, 1) .55s both; }
.stage[data-scene="receipt"].s1 .pp-total { animation: hit .5s ease 1.3s both; border-radius: .3em; }
.stage[data-scene="receipt"].s2 .paper { opacity: 0; transform: translate3d(-6%, -16%, 0) scale(.55) rotate(-6deg); transition-duration: .5s, .7s, 0s; }

.rc-row { display: flex; align-items: center; gap: .6em; padding: .8em .9em; font-size: .95em; }
.rc-row > div { flex: 1; display: grid; min-width: 0; }
.rc-row small { color: var(--p-2); font-size: .82em; }
.rc-row > b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-form { display: grid; padding: .35em 1em; }
.rc-field { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding: .6em 0; border-bottom: 1px solid var(--p-line); font-size: .9em; }
.rc-field:last-child { border-bottom: 0; }
.rc-field span { color: var(--p-2); }
.rc-field b { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; }
.rc-dot { width: .7em; height: .7em; border-radius: 50%; background: var(--k); }
.scr-receipt .rc-row, .scr-receipt .rc-sub, .scr-receipt .rc-form, .scr-receipt .rc-note, .scr-receipt .p-bottom {
  opacity: 0;
  transform: translate3d(0, .8em, 0);
  transition: opacity .4s ease, transform .6s cubic-bezier(.2, .9, .3, 1);
}
.stage.s2 .scr-receipt .rc-row, .stage.s2 .scr-receipt .rc-sub, .stage.s2 .scr-receipt .rc-form, .stage.s2 .scr-receipt .rc-note, .stage.s2 .scr-receipt .p-bottom { opacity: 1; transform: none; }
.stage.s2 .scr-receipt .rc-sub { transition-delay: .15s; }
.stage.s2 .scr-receipt .rc-form { transition-delay: .25s; }
.stage.s2 .scr-receipt .rc-note { transition-delay: .4s; }
.stage.s2 .scr-receipt .p-bottom { transition-delay: .5s; }

@keyframes scan { 0% { opacity: 0; transform: translate3d(0, -100%, 0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, 1500%, 0); } }
@keyframes hit { to { background: rgba(10, 132, 255, .12); box-shadow: inset 0 0 0 1.5px rgba(10, 132, 255, .55); } }

/* İstatistik */
.p-seg { display: flex; padding: .25em; border-radius: 1.2em; background: var(--p-fill); }
.p-seg span { flex: 1; padding: .45em 0; border-radius: 1em; text-align: center; font-size: .85em; font-weight: 600; color: var(--p-2); }
.p-seg .on { background: var(--p-card); color: var(--p-ink); box-shadow: inset 0 1px 0 var(--p-card-edge), 0 .2em .6em -.2em rgba(0, 0, 40, .25); }
.st-change {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .35em .7em;
  border-radius: 1em;
  background: color-mix(in srgb, #30c25a 16%, transparent);
  color: #138a3a;
  font-size: .8em;
  font-weight: 650;
  opacity: 0;
  transform: translate3d(0, .4em, 0);
  transition: opacity .4s, transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
@media (prefers-color-scheme: dark) { .st-change { color: #5fe08a; } }
.st-change svg { width: 1.1em; height: 1.1em; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stage.s2 .st-change { opacity: 1; transform: none; }
.st-dist { display: flex; align-items: center; gap: 1em; }
.st-donut { position: relative; flex: none; width: 8.4em; aspect-ratio: 1; }
.st-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.st-donut circle { fill: none; stroke-width: 15; }
.st-donut .track { stroke: var(--p-fill); }
.st-donut .seg { stroke-dasharray: 0 100; stroke-linecap: butt; transition: stroke-dasharray 1s cubic-bezier(.4, 0, .2, 1); }
.s-a { stroke: #30c25a; --d: 31; stroke-dashoffset: 0; }
.s-b { stroke: #ff9500; --d: 21; stroke-dashoffset: -32; }
.s-c { stroke: #ff453a; --d: 17; stroke-dashoffset: -54; }
.s-d { stroke: #f5b400; --d: 13; stroke-dashoffset: -72; }
.s-e { stroke: #8e8e9a; --d: 13; stroke-dashoffset: -86; }
.stage.s1 .scr-stats .seg { stroke-dasharray: var(--d) 100; }
.stage.s1 .scr-stats .s-b { transition-delay: .15s; }
.stage.s1 .scr-stats .s-c { transition-delay: .3s; }
.stage.s1 .scr-stats .s-d { transition-delay: .45s; }
.stage.s1 .scr-stats .s-e { transition-delay: .6s; }
.st-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.st-center small { color: var(--p-2); font-size: .75em; }
.st-center b { font: 760 1.35em/1 var(--font-round); }
.st-legend { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: .3em; font-size: .85em; }
.st-legend li { display: flex; align-items: center; gap: .45em; }
.st-legend i { width: .65em; height: .65em; border-radius: 50%; background: var(--k); }
.st-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.st-bars { display: flex; align-items: flex-end; gap: .55em; height: 5.6em; }
.st-bars i { flex: 1; height: 100%; border-radius: .45em; background: linear-gradient(180deg, #a98bff, #6b4dff); opacity: .55; transform-origin: bottom; transform: scaleY(.04); transition: transform .9s cubic-bezier(.3, 1.2, .4, 1); }
.st-bars i.hi { opacity: 1; }
.stage.s1 .scr-stats .st-bars i { transform: scaleY(var(--h)); }
.stage.s1 .scr-stats .st-bars i:nth-child(2) { transition-delay: .08s; }
.stage.s1 .scr-stats .st-bars i:nth-child(3) { transition-delay: .16s; }
.stage.s1 .scr-stats .st-bars i:nth-child(4) { transition-delay: .24s; }
.stage.s1 .scr-stats .st-bars i:nth-child(5) { transition-delay: .32s; }
.h45 { --h: .45; } .h55 { --h: .55; } .h60 { --h: .6; } .h80 { --h: .8; } .h95 { --h: .95; }

/* Abonelikler */
.scr-subs { gap: .5em; }
.sb-total { padding-block: .85em .9em; }
.sb-total .p-big { font-size: 2.3em; margin: .08em 0 .15em; }
.sb-total .p-small { line-height: 1.3; text-wrap: balance; }
.sb-cal { padding-block: .8em .55em; }
.sb-cal .p-head { margin-bottom: .35em; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: .1em; text-align: center; font-size: .8em; font-variant-numeric: tabular-nums; }
.cal span { position: relative; display: grid; place-items: center; height: 1.72em; }
.cal .wd { color: var(--p-2); font-size: .82em; font-weight: 650; height: 1.5em; }
.cal .pay { font-weight: 750; }
.cal .pay i, .sb-list i {
  display: grid;
  place-items: center;
  width: 1.75em;
  height: 1.75em;
  border-radius: .55em;
  color: #fff;
  font: 800 .95em/1 var(--font-display);
  font-style: normal;
}
.cal .pay i {
  position: absolute;
  inset: 0;
  margin: auto;
  box-shadow: 0 .3em .7em -.2em rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translate3d(0, -2.5em, 0) scale(.6);
  transition: opacity .35s, transform .6s cubic-bezier(.3, 1.5, .5, 1);
}
.l-n { background: #d81f26; } .l-s { background: #1aa34a; } .l-i { background: #2f7bf5; } .l-y { background: #ff1f3d; }
.stage.s1 .scr-subs .cal .pay i { opacity: 1; transform: none; }
.stage.s1 .scr-subs .cal .p2 i { transition-delay: .15s; }
.stage.s1 .scr-subs .cal .p3 i { transition-delay: .3s; }
.stage.s1 .scr-subs .cal .p4 i { transition-delay: .45s; }
/* Ad üstte, tutar altta: tutar ad ile aynı satırı paylaşmadığı için
   en dar maket genişliğinde de ("120 TL" gibi) kesilmeden sığar. */
.sb-list { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; }
.sb-list > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .55em;
  align-items: center;
  padding: .45em .6em;
  border-radius: 1.1em;
  background: var(--p-card);
  border: 1px solid var(--p-line);
  box-shadow: inset 0 1px 0 var(--p-card-edge);
  font-size: .8em;
  font-weight: 600;
  opacity: 0;
  transform: translate3d(0, .6em, 0);
  transition: opacity .35s, transform .5s cubic-bezier(.3, 1.3, .5, 1);
}
.sb-list i { grid-row: 1 / 3; width: 2em; height: 2em; font-size: .9em; }
.sb-list small { color: var(--p-2); font-size: .9em; line-height: 1.15; }
.sb-list b { font: 760 1.1em/1.15 var(--font-round); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage.s1 .scr-subs .sb-list > span { opacity: 1; transform: none; }
.stage.s1 .scr-subs .sb-list .p1 { transition-delay: .5s; }
.stage.s1 .scr-subs .sb-list .p2 { transition-delay: .6s; }
.stage.s1 .scr-subs .sb-list .p3 { transition-delay: .7s; }
.stage.s1 .scr-subs .sb-list .p4 { transition-delay: .8s; }
/* Tasarrufla karşıla: son alt durumda (s2) belirir */
.sb-save {
  display: grid;
  gap: .45em;
  padding-block: .7em .75em;
  opacity: 0;
  transform: translate3d(0, 1em, 0) scale(.97);
  transition: opacity .45s ease, transform .7s cubic-bezier(.3, 1.3, .5, 1);
}
.stage.s2 .scr-subs .sb-save { opacity: 1; transform: none; }
.sv-row { display: flex; align-items: center; gap: .65em; }
.sv-row > div { display: grid; min-width: 0; }
.sv-row b { font-size: .98em; }
.sv-row small { color: var(--p-2); font-size: .8em; line-height: 1.25; text-wrap: balance; }
.sv-all { padding: .4em .65em; border-radius: .9em; background: color-mix(in srgb, #30c25a 15%, transparent); color: #138a3a; font-size: .78em; font-weight: 650; line-height: 1.25; text-wrap: balance; }
@media (prefers-color-scheme: dark) { .sv-all { color: #5fe08a; } }
.scr-home .meter i { transition: transform 1.2s cubic-bezier(.3, 1, .4, 1); }

/* Akşam hatırlatması: kilit ekranı. Duvar kâğıdı akşam gökyüzü gibi düz
   bir renk geçişidir; gizlilik sahnesindeki bulanık kartlardan ayrışır. */
.scr-remind { padding: 0; gap: 0; color: #fff; }
.rm-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 38% at 12% 0%, rgba(120, 104, 255, .9), transparent 70%),
    radial-gradient(60% 34% at 100% 26%, rgba(255, 94, 150, .7), transparent 70%),
    radial-gradient(90% 40% at 30% 104%, rgba(255, 158, 84, .9), transparent 70%),
    radial-gradient(70% 30% at 100% 92%, rgba(255, 106, 120, .75), transparent 70%),
    linear-gradient(180deg, #1f1d66 0%, #42288a 46%, #9a3f7a 78%, #c45a64 100%);
}
@media (prefers-color-scheme: dark) {
  .rm-bg { filter: brightness(.78) saturate(1.05); }
}
.rm-bg::after { /* uzakta yumuşak tepeler */
  content: "";
  position: absolute;
  inset: auto -20% 0;
  height: 30%;
  background:
    radial-gradient(60% 70% at 25% 100%, rgba(30, 14, 60, .55), transparent 72%),
    radial-gradient(55% 60% at 85% 100%, rgba(40, 16, 70, .5), transparent 72%);
}
.stage[data-scene="remind"] .p-status { color: #fff; }
.stage[data-scene="remind"] .p-status > span:first-child { opacity: 0; }
.p-status, .p-status > span:first-child { transition: color .4s, opacity .3s; }
.rm-time { position: absolute; top: 3.7em; left: 0; right: 0; display: grid; justify-items: center; text-shadow: 0 .1em 1em rgba(20, 0, 60, .3); }
.rm-lock { width: 1.15em; height: 1.15em; margin-bottom: .45em; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.rm-time span { font-size: 1em; font-weight: 600; opacity: .9; }
.rm-time b { font: 700 5.4em/1 var(--font-round); letter-spacing: -.035em; margin-top: .02em; font-variant-numeric: tabular-nums; }
.rm-note {
  position: absolute;
  top: 16.2em;
  left: .75em;
  right: .75em;
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .8em .9em;
  border-radius: 1.55em;
  background: rgba(255, 255, 255, .7);
  color: #111226;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1em 2em -1em rgba(20, 0, 60, .5);
  opacity: 0;
  transform: translate3d(0, -9em, 0) scale(.9);
  transition: opacity .35s ease, transform .8s cubic-bezier(.25, 1.25, .4, 1);
}
@media (prefers-color-scheme: dark) {
  .rm-note { background: rgba(38, 36, 54, .72); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1em 2em -1em rgba(0, 0, 0, .6); }
}
@media (min-width: 960px) {
  .rm-note, .rm-dock span { -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }
}
.rm-note img { flex: none; width: 2.5em; height: 2.5em; border-radius: .6em; }
.rm-body { flex: 1; min-width: 0; display: grid; gap: .1em; }
.rm-head { display: flex; align-items: baseline; gap: .5em; }
.rm-head b { font-size: .95em; }
.rm-head span { margin-left: auto; font-size: .78em; opacity: .6; }
.rm-text { font-size: .9em; line-height: 1.25; }
.rm-note::after { /* dokunma izi */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3em;
  height: 3em;
  margin: -1.5em 0 0 -1.5em;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  opacity: 0;
  pointer-events: none;
}
.stage.s1 .scr-remind .rm-note { opacity: 1; transform: none; }
.stage.s2 .scr-remind .rm-note { animation: rm-press .55s ease .1s both; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 .2em rgba(255, 255, 255, .45), 0 1em 2em -1em rgba(20, 0, 60, .5); }
.stage.s2 .scr-remind .rm-note::after { animation: rm-ripple .9s ease-out .15s both; }
@keyframes rm-press { 40% { transform: scale(.95); } }
@keyframes rm-ripple { 0% { opacity: .75; transform: scale(.3); } 100% { opacity: 0; transform: scale(3.2); } }
.rm-dock { position: absolute; left: 2.2em; right: 2.2em; bottom: 2.4em; display: flex; justify-content: space-between; }
.rm-dock span { display: grid; place-items: center; width: 3.2em; height: 3.2em; border-radius: 50%; background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.rm-dock svg { width: 1.35em; height: 1.35em; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rm-home { position: absolute; left: 50%; bottom: .7em; width: 36%; height: .32em; margin-left: -18%; border-radius: 1em; background: rgba(255, 255, 255, .85); }

/* Kilit */
.scr-lock { justify-content: center; align-items: center; padding: 3em 1.4em; }
.lk-bg { position: absolute; inset: 4em 1em 1em; display: grid; gap: .9em; align-content: start; filter: blur(10px); opacity: .9; }
.lk-bg i { display: block; height: 7em; border-radius: 1.5em; background: linear-gradient(90deg, rgba(48, 194, 90, .55) 0 55%, var(--p-card) 55%); }
.lk-bg i:first-child { height: 2.6em; width: 58%; background: var(--p-ink); opacity: .35; }
.lk-bg i:nth-child(3) { height: 10em; background: radial-gradient(40% 50% at 25% 35%, rgba(255, 149, 0, .6), transparent), radial-gradient(45% 55% at 75% 60%, rgba(10, 132, 255, .5), transparent), var(--p-card); }
.lk-bg i:nth-child(4) { height: 6em; background: rgba(142, 92, 255, .45); }
.lk-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .55em;
  width: 100%;
  padding: 2em 1.4em 1.4em;
  border-radius: 2.2em;
  background: var(--p-card);
  border: 1px solid var(--p-line);
  box-shadow: inset 0 1px 0 var(--p-card-edge), 0 1.5em 3em -1.5em rgba(0, 0, 50, .5);
  text-align: center;
}
.lk-card > b { font: 750 1.45em/1.1 var(--font-display); }
.lk-card > span:not(.p-save) { color: var(--p-2); font-size: .95em; }
.lk-card .p-save { width: 100%; margin-top: .6em; flex: none; }
.lk-glyph { position: relative; width: 4.2em; height: 4.2em; margin-bottom: .3em; color: var(--p-blue); }
.lk-glyph svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity .35s, transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.lk-glyph .g-face, .lk-glyph .g-ok { opacity: 0; transform: scale(.7); }
.lk-glyph .g-ok { stroke: #30c25a; stroke-width: 2.4; }
.stage.s1 .scr-lock .g-lock { opacity: 0; transform: scale(.7); }
.stage.s1 .scr-lock .g-face { opacity: 1; transform: none; animation: face 1s ease-in-out .3s 2; }
.stage.s2 .scr-lock .g-face { opacity: 0; transform: scale(1.2); animation: none; }
.stage.s2 .scr-lock .g-ok { opacity: 1; transform: none; }
@keyframes face { 50% { transform: scale(.88); opacity: .55; } }

/* ---------- Yüzen cam rozetler ---------- */

.badge {
  --blur: 18px;
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 9px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--ink);
  font: 650 .95rem/1 var(--font);
  letter-spacing: -.01em;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(190%);
  backdrop-filter: blur(var(--blur)) saturate(190%);
  border: 1px solid var(--edge-soft);
  box-shadow: inset 0 1px 0 var(--edge), inset 0 -1px 0 var(--glass-3), 0 16px 36px -18px rgba(20, 20, 90, .55);
  opacity: 0;
  transform: translate3d(0, calc(var(--par) * var(--d) * -34px + 14px), 0) scale(.86);
  transition: opacity .4s ease, transform .7s cubic-bezier(.3, 1.4, .5, 1);
}
.badge.show { opacity: 1; transform: translate3d(0, calc(var(--par) * var(--d) * -34px), 0) scale(1); }
.badge.show.d1 { transition-delay: .05s; }
.badge.show.d3 { transition-delay: .18s; }
.b-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--k) 22%, transparent); color: var(--k); }
.b-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badge .b-ic .stage svg { fill: none; }
.store-button svg { fill: currentColor; }
/* Derinlik: ön plandaki cam daha az bulanık, daha büyük; arkadaki daha bulanık ve küçük */
.d1 { --d: .5; --blur: 26px; }
.d2 { --d: 1; --blur: 18px; }
.d3 { --d: 1.6; --blur: 10px; }
.badge.d1 { font-size: .86rem; }
.badge.d3 { box-shadow: inset 0 1px 0 var(--edge), 0 24px 44px -18px rgba(20, 20, 90, .6); }

/* Rozet yerleşimi. Kural: rozet telefonun kasasına taşabilir, ekrandaki
   metne, tutara, düğmeye ya da durum çubuğuna binmez. Rozetin telefona dönük
   kenarı en çok --bite kadar içeri girer. Masaüstünde bu yalnız kasa kalınlığı
   (.03 pw) ile ekran kenarının birkaç pikselidir. */
.stage { --bite: calc(var(--pw) * .035); }
.pos-l1, .pos-l2 { right: calc(100% - var(--bite)); }
.pos-r1, .pos-r2 { left: calc(100% - var(--bite)); }
.pos-l1 { top: 4%; }
.pos-l2 { top: 84%; }
.pos-r1 { top: 44%; }
.pos-r2 { top: 70%; }
.badge { line-height: 1.15; width: max-content; }
.badge > :last-child { min-width: 0; }

@media (min-width: 960px) {
  /* Sağdaki rozet, telefonla pencere kenarı arasındaki boşluğa sığar; uzun
     metin gerekirse iki satıra kırılır. */
  .badge { white-space: normal; text-wrap: balance; }
  .pos-l1, .pos-l2 { max-width: 270px; }
  .pos-r1, .pos-r2 { max-width: calc(max(50vw - 270px - var(--pw) / 2, 190px) + var(--bite) - 28px); }
}

@media (min-width: 960px) and (max-width: 1199px) {
  /* Bu aralıkta telefonun solunda metin kartı var, rozete yer kalmıyor. Telefon
     sağda en az 190px boşluk bırakacak biçimde yerleşir (aşağıda) ve bütün
     rozetler bu sağ sütunda alt alta dizilir; hiçbiri kartın arkasına düşmez.
     Paralaks kapalı: dikey konum sabit kalır, rozetler birbirine yaklaşmaz. */
  .pos-l1, .pos-l2 { right: auto; left: calc(100% - var(--bite)); max-width: calc(max(50vw - 270px - var(--pw) / 2, 190px) + var(--bite) - 28px); }
  .pos-l1 { top: 9%; }
  .pos-l2 { top: 26%; }
  .pos-r1 { top: 44%; }
  .pos-r2 { top: 63%; }
  .badge { font-size: .86rem; gap: 8px; padding: 7px 13px 7px 7px; transform: translate3d(0, 12px, 0) scale(.9); }
  .badge.d1 { font-size: .82rem; }
  .badge.show { transform: none; }
  .b-ic { flex: none; width: 26px; height: 26px; }
  .b-ic svg { width: 15px; height: 15px; }
}

@media (max-width: 959px) {
  /* Dar ekranda telefonun iki yanında yalnız dar bir şerit kalıyor. Rozetler
     küçülür, bu şeride sığacak genişlikte iki satıra kırılır ve telefona en çok
     kasa + ekran kenar boşluğu kadar (.09 pw) girer. Bu bölge kartların kenar
     boşluğudur: metin, tutar ve düğmeler daha içeride başlar. Dikey konumlar
     üstteki durum çubuğundan ve başlık düğmelerinden uzak tutulur.
     Rozetleri gizlemek yerine bu yolu seçtik: sahnenin anlattığı ipucu küçük
     ekranda da görünür kalıyor. Paralaks kapalı, konum sabit. */
  .stage { --bite: calc(var(--pw) * .09); }
  .badge {
    max-width: calc((100vw - var(--pw)) / 2 + var(--bite) - 8px);
    white-space: normal;
    text-wrap: balance;
    font-size: .68rem;
    gap: 5px;
    padding: 5px 9px 5px 5px;
    border-radius: 15px;
    transform: translate3d(0, 10px, 0) scale(.9);
  }
  .badge.d1 { font-size: .66rem; }
  .badge.show { transform: none; }
  .b-ic { flex: none; width: 18px; height: 18px; }
  .b-ic svg { width: 11px; height: 11px; }
  /* Metin kartı dar ekranda telefonun alt kısmının üstüne biner; rozetler
     telefonun üst yarısında kalır ki kartın arkasına düşmesin. */
  .pos-l1 { top: 18%; }
  .pos-r1 { top: 28%; }
  .pos-l2 { top: 47%; }
  .pos-r2 { top: 51%; }
}
@media (max-width: 959px) and (max-height: 720px) {
  /* Kısa ekranda kart telefonun yarısına kadar çıkar; alt rozetler yukarı alınır. */
  .pos-r1 { top: 25%; }
  .pos-l2 { top: 37%; }
  .pos-r2 { top: 39%; }
  /* Kilit ekranında bildirim kartı %35 ile %47 arasında: sağdaki rozetler onun üstünde ve altında durur. */
  .stage[data-scene="remind"] .pos-r1 { top: 21%; }
  .stage[data-scene="remind"] .pos-r2 { top: 51%; }
}
@media (max-width: 480px) {
  /* Telefon genişliğinde şerit 90px kadar: ikon yerine metne yer açılır. */
  .badge { padding: 6px 10px; }
  .badge .b-ic { display: none; }
}

/* ---------- Metin adımları ---------- */

.step {
  position: relative;
  min-height: 165vh;
  min-height: 165svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 16px 16px;
}
.step-card {
  position: sticky;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 22px 22px 20px;
  border-radius: 30px;
  --glass: var(--glass-2);
  transform: translate3d(0, calc((1 - var(--o, 1)) * -18px), 0) scale(calc(.97 + var(--o, 1) * .03));
  will-change: opacity, transform;
}
.step-card h2 { font-size: clamp(1.7rem, 7.4vw, 3.3rem); font-weight: 760; letter-spacing: -.04em; margin-bottom: 12px; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; }
.step-card h2 em, .hero-copy h1 em, .closing h2 em {
  background: linear-gradient(100deg, var(--accent-bright), var(--violet) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
}
.step-card p { color: var(--ink-2); font-size: clamp(.95rem, 3.6vw, 1.12rem); }
.step-card .fine { margin-top: 12px; color: var(--ink-3); font-size: .86rem; }
.step-card .fine a { font-weight: 650; }

/* ---------- Hızlı giriş kartındaki küçük maket ---------- */

.step-card {
  --mini-bg: rgba(255, 255, 255, .74);
  --mini-shadow: 0 10px 24px -16px rgba(20, 20, 90, .45);
}
@media (prefers-color-scheme: dark) {
  .step-card { --mini-bg: rgba(255, 255, 255, .07); --mini-shadow: 0 10px 24px -16px rgba(0, 0, 0, .8); }
}
.step-card .ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini { margin-top: 14px; }

/* Hızlı giriş maketi: renkli sonuç çipi (kategori, tutar, kart) */
.res {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--k) 16%, transparent);
  color: color-mix(in srgb, var(--k) 62%, var(--ink));
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}
.res .ic { flex: none; width: 13px; height: 13px; stroke-width: 2.3; }

.res .mini-card { flex: none; width: 15px; height: 10px; border-radius: 3px; }
@media (max-width: 440px) { .parse .res .mini-card { display: none; } }

/* Hızlı giriş: cümle parçaları ve karşılıkları */
.parse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tok {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 4px 11px;
  border-radius: 16px;
  background: var(--mini-bg);
  border: 1px solid var(--line);
  box-shadow: var(--mini-shadow);
}
.tok code { color: var(--ink); font: 600 .92rem/1.2 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
.tok code::after { content: "↓"; display: block; margin-top: 2px; color: var(--ink-3); font: 600 .72rem/1 var(--font); text-align: center; }

@media (max-width: 959px) {
  /* Kart telefonun altına biner: maket sıkı durur. */
  .step-card .mini { margin-top: 10px; }
}
@media (max-width: 380px) {
  .tok code { font-size: .82rem; }
  .res { font-size: .7rem; padding: 3px 7px; }
}

/* Açılışın arkasında soluk, iki yöne kayan yazı şeritleri. Süs: ekran okuyucudan gizli. */
.hero-marquee {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  color: var(--ink);
  opacity: .045;
  -webkit-mask: linear-gradient(180deg, #000 60%, transparent);
  mask: linear-gradient(180deg, #000 60%, transparent);
}
@media (prefers-color-scheme: dark) { .hero-marquee { opacity: .06; } }
.mq-row { overflow: hidden; white-space: nowrap; }
.mq-track { display: flex; width: max-content; animation: mq-left 60s linear infinite; }
.mq-track span { flex: none; padding-right: .3em; font: 800 clamp(4.5rem, 19vw, 11rem)/1 var(--font-display); letter-spacing: -.05em; }
.mq-2 .mq-track, .mq-4 .mq-track { animation-name: mq-right; animation-duration: 75s; }
.mq-2 .mq-track span, .mq-4 .mq-track span { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -.03em; }
.mq-3 .mq-track { animation-duration: 52s; }
@keyframes mq-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes mq-right { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; transform: translate3d(-12%, 0, 0); }
}


/* Açılış */
.step-hero { min-height: 140vh; min-height: 140svh; justify-content: flex-start; padding: calc(104px + env(safe-area-inset-top, 0px)) 16px 0; }
.hero-copy { width: 100%; max-width: 640px; margin-inline: auto; }
.hero-copy h1 {
  font-size: clamp(2.7rem, 12.5vw, 5.6rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
  margin-bottom: 18px;
}
.hero-copy h1 em { font-weight: 500; letter-spacing: -.035em; }
.lead { color: var(--ink-2); font-size: clamp(1.02rem, 4vw, 1.3rem); line-height: 1.5; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; }
.scroll-hint { display: none; }
.hero-copy > * { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } }

@media (max-width: 959px) {
  .hero-copy .actions { margin-top: 20px; }
  .hero-copy .lead { font-size: 1rem; }
}

/* ---------- Kapanış ---------- */

.closing { position: relative; z-index: 3; padding: 10vh 0 40px; }
.closing-panel {
  position: relative;
  padding: clamp(36px, 8vw, 88px) clamp(20px, 6vw, 72px);
  border-radius: clamp(32px, 5vw, 56px);
  text-align: center;
  --blur: 30px;
  overflow: hidden;
}
.closing-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% 10% auto;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--blob-3) 45%, transparent), transparent);
}
.closing-icon { position: relative; width: clamp(96px, 22vw, 128px); margin: 0 auto 26px; }
.closing-icon::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 120, 255, .55), transparent); z-index: -1; }
.closing-icon img { width: 100%; height: auto; border-radius: 22.5%; box-shadow: 0 30px 60px -20px rgba(30, 20, 120, .7), inset 0 0 0 1px rgba(255, 255, 255, .3); }
.wordmark { margin: -6px 0 18px; color: var(--ink); font: 800 clamp(1.6rem, 6vw, 2.2rem)/1 var(--font-display); letter-spacing: -.035em; }
.closing h2 { font-size: clamp(2.3rem, 9vw, 5rem); font-weight: 800; letter-spacing: -.05em; }
.closing-lead { margin-top: 14px; color: var(--ink-2); font-size: clamp(1.05rem, 3.6vw, 1.3rem); }
.closing .actions { justify-content: center; }
.closing .actions .small-note { flex-basis: 100%; }
.store-button svg { fill: currentColor; }
.mock-note { margin-top: 28px; color: var(--ink-3); font-size: .8rem; }

/* ---------- Geniş ekran ---------- */

@media (min-width: 960px) {
  .stage { --pw: clamp(240px, calc((100vh - 150px) / 2.06), 318px); }
  .phone-wrap {
    /* Sağda rozetler için en az 190px boşluk bırakılır. */
    left: min(calc(50% + 270px), calc(100% - 190px - var(--pw) / 2));
    top: 50%;
    margin-top: calc(var(--pw) * -1.03 + 24px);
    transform:
      translate3d(0, calc(var(--enter) * 14vh), 0)
      rotateX(calc(var(--enter) * 16deg))
      rotateY(calc(var(--enter) * -10deg))
      scale(calc(1 - var(--enter) * .06));
  }
  .step { min-height: 160vh; justify-content: flex-start; padding: 32vh 0 0; }
  .step-card {
    top: max(104px, calc(50vh - 190px));
    bottom: auto;
    width: min(500px, 44vw);
    margin-inline: max(32px, calc((100vw - 1200px) / 2)) 0;
    padding: 34px 34px 30px;
    border-radius: 36px;
    --glass: var(--glass);
  }
  .step-card h2 { font-size: clamp(2.4rem, 3.6vw, 3.4rem); }
  .step-hero { min-height: 125vh; padding: max(130px, 20vh) 0 0; }
  .hero-copy { width: min(620px, 50vw); margin-inline: max(32px, calc((100vw - 1200px) / 2)) 0; }
  .hero-copy h1 { font-size: clamp(3.6rem, 6vw, 5.8rem); }
  .scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 9vh;
    color: var(--ink-3);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .scroll-hint span { position: relative; width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid currentColor; }
  .scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.8s ease-in-out infinite; }
  @keyframes wheel { 60%, 100% { transform: translateY(10px); opacity: 0; } }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .step-card { width: min(500px, 42vw); }
}

@media (min-width: 960px) and (max-height: 700px) {
  .step-card { top: 96px; padding: 26px; }
  .step-card h2 { font-size: 2.3rem; }
}

/* ---------- Azaltılmış hareket: statik, sahneler anında değişir ---------- */

@media (prefers-reduced-motion: reduce) {
  .phone-wrap { transform: none !important; }
  .badge { transform: none !important; }
  .step-card { transform: none !important; }
  .phone-screen::before, .phone-screen::after { animation: none; }
  .stage[data-scene="import"] .bankshot { display: none; }
  .stage[data-scene="receipt"] .paper { display: none; }
  .pp-total { animation: none !important; }
  .bs-scan { display: none; }
  .rm-note::after { display: none; }
  .stage.s2 .scr-remind .rm-note { animation: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 959px) {
  .stage[data-scene="intro"] .phone-wrap { opacity: 0; }
}

@media (max-width: 420px) {
  .store-button { font-size: .95rem; padding: 0 20px 0 16px; }
  .store-button span { white-space: nowrap; }
  .closing-panel { padding-inline: 14px; }
}
